@ckeditor/ckeditor5-track-changes 45.1.0-alpha.5 → 45.1.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/link.js +1 -1
  185. package/src/integrations/list.js +1 -1
  186. package/src/integrations/listproperties.js +1 -1
  187. package/src/integrations/mediaembed.js +1 -1
  188. package/src/integrations/mention.js +1 -1
  189. package/src/integrations/mergefields.js +1 -1
  190. package/src/integrations/multilevellist.js +1 -1
  191. package/src/integrations/pagebreak.js +1 -1
  192. package/src/integrations/paragraph.js +1 -1
  193. package/src/integrations/removeformat.js +1 -1
  194. package/src/integrations/replacesourcecommand.js +1 -1
  195. package/src/integrations/restrictededitingmode.js +1 -1
  196. package/src/integrations/shiftentercommand.js +1 -1
  197. package/src/integrations/standardeditingmode.js +1 -1
  198. package/src/integrations/style.js +1 -1
  199. package/src/integrations/table.js +1 -1
  200. package/src/integrations/tablecaption.js +1 -1
  201. package/src/integrations/tableclipboard.js +1 -1
  202. package/src/integrations/tablecolumnresize.js +1 -1
  203. package/src/integrations/tableheadings.js +1 -1
  204. package/src/integrations/tablelayout.js +1 -1
  205. package/src/integrations/tablemergesplit.js +1 -1
  206. package/src/integrations/tableofcontents.js +1 -1
  207. package/src/integrations/tableproperties.js +1 -1
  208. package/src/integrations/template.js +1 -1
  209. package/src/integrations/title.js +1 -1
  210. package/src/integrations/undo.js +1 -1
  211. package/src/integrations/uploadcare.js +1 -1
  212. package/src/integrations/utils.js +1 -1
  213. package/src/suggestion.js +2 -2
  214. package/src/suggestiondescriptionfactory.js +1 -1
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.js +1 -1
  218. package/src/trackchangespreview.js +1 -1
  219. package/src/trackchangesui.js +1 -1
  220. package/src/ui/suggestioncontroller.js +2 -2
  221. package/src/ui/view/basesuggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionview.js +1 -1
  224. package/src/ui/view/trackchangespreviewview.js +1 -1
  225. package/src/utils/common-translations.js +1 -1
  226. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0xd9491d,Plugin as _0x6abf95,PendingActions as _0x55f448}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3d469d,ObservableMixin as _0x20a8ec,uid as _0x5d446a,priorities as _0x23dcbe,insertToPriorityArray as _0x302f21,toArray as _0x3449c0,logWarning as _0x20fa00,getEnvKeystrokeText as _0x593b55,FocusTracker as _0x170b6f,KeystrokeHandler as _0x21fab9,Collection as _0x1eb513}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x331d03,IconCancel as _0x4c74c8,IconTrackChanges as _0x21c474}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x370301,View as _0x4869c9,ViewCollection as _0x2b238a,FocusCycler as _0x4816ad,ViewModel as _0x2a21a9,createDropdown as _0x256442,SplitButtonView as _0x113e9f,addListToDropdown as _0x2ba772,MenuBarMenuView as _0xada8a8,MenuBarMenuListView as _0x4dea8c,ListSeparatorView as _0x24ca2b,MenuBarMenuListItemView as _0x2cab97,MenuBarMenuListItemButtonView as _0x153ad4,BodyCollection as _0x4dcb6c,Dialog as _0x85a51a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x50e121,hashObject as _0x2313a4,surroundingMarkersDetector as _0x184fc2,FOCUS_ANNOTATION_KEYSTROKE as _0x3ae0da,AriaDescriptionView as _0x4ed1c1,setupThreadKeyboardNavigation as _0x4db541,trimHtml as ti,UserView as _0x59bb09,LateFocusButtonView as _0x344f20,getDateTimeFormatter as _0x475024,getAllMarkersDomElementsSorted as _0x53e677,sanitizeEditorConfig as _0x3c2b33}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2f8b89,LiveRange as _0xd0daae,LivePosition as _0xc7aebc,DowncastWriter as _0x43f942}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x29e2ec,toWidget as _0xa6607b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5b5a0d,set as _0x1ae88a,isEqual as _0x2ed42c,unset as _0x13f8e5,omit as Ft}from'es-toolkit/compat';import{Delete as _0x18ebbf,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2d7c2e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x52a09d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xd9491d{['_enabledCommands'];constructor(_0xb5098e,_0x142f78){super(_0xb5098e),this['_enabledCommands']=_0x142f78,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 _0x1b5a6b of this['editor']['commands']['commands']())_0x1b5a6b['affectsData']&&!this['_enabledCommands']['has'](_0x1b5a6b)&&_0x1b5a6b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3623b0 of this['editor']['commands']['commands']())_0x3623b0['affectsData']&&!this['_enabledCommands']['has'](_0x3623b0)&&_0x3623b0['clearForceDisabled']('TrackChangesCommand');}}class x extends _0xd9491d{['_suggestions'];constructor(_0xba2222,_0x4012c7){super(_0xba2222),this['_suggestions']=_0x4012c7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x437b74){const _0x180e0b=this['_suggestions']['get'](_0x437b74);if(!_0x180e0b)throw new _0x3d469d('track-changes-accept-suggestion-not-found',this);const _0x535bf9=_0x180e0b['getRanges']();this['editor']['model']['canEditAt'](_0x535bf9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x180e0b);}}class O extends _0xd9491d{['_suggestions'];constructor(_0x440f80,_0x3e1fa3){super(_0x440f80),this['_suggestions']=_0x3e1fa3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e1c78){const _0x3005ad=this['_suggestions']['get'](_0x4e1c78);if(!_0x3005ad)throw new _0x3d469d('track-changes-discard-suggestion-not-found',this);const _0x35977a=_0x3005ad['getRanges']();this['editor']['model']['canEditAt'](_0x35977a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3005ad);}}function ls(_0x10eac2,_0x3a0e5a){let _0x5671e1='';return _0x5671e1+=_0x10eac2['split']('*')['map']((_0xdff8d5,_0x18e89c)=>_0x18e89c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xdff8d5)+'</span>':nn(_0xdff8d5))['join'](''),_0x3a0e5a&&(_0x5671e1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3a0e5a['value']+'\x22\x20title=\x22'+_0x3a0e5a['title']+'\x22></span>'),_0x5671e1;}function nn(_0x4c0921){const _0x1a6808=document['createElement']('span');return _0x1a6808['innerText']=_0x4c0921,_0x1a6808['innerHTML'];}function ts(_0xd2667a){return _0xd2667a['sort']((_0x55d95c,_0x11cf57)=>'deletion'==_0x55d95c['type']&&'deletion'!=_0x11cf57['type']?-0x1:'deletion'!=_0x55d95c['type']&&'deletion'==_0x11cf57['type']?0x1:0x0);}function to(_0x359108,_0x39676f){let _0x19ec3a,_0x110392=0x0;const _0x1c38b2=[],_0x5df286=_0x39676f['schema'];for(;_0x110392<_0x359108['length'];){const _0xc9214a=_0x359108[_0x110392],_0xb04ecf=_0x359108[_0x110392+0x1];_0x19ec3a||(_0x19ec3a=_0x39676f['createPositionBefore'](_0xc9214a)),on(_0x39676f,_0xc9214a,_0xb04ecf)||(_0x1c38b2['push'](_0x39676f['createRange'](_0x19ec3a,_0x5df286['isObject'](_0xc9214a)?_0x39676f['createPositionAfter'](_0xc9214a):_0x39676f['createPositionAt'](_0xc9214a,'end'))),_0x19ec3a=null),_0x110392++;}return _0x1c38b2;}function on(_0x68783a,_0x2b75b0,_0x5e37b8){if(!_0x5e37b8)return!0x1;const _0x1f44fd=_0x68783a['createPositionAfter'](_0x2b75b0),_0x5e6e2c=_0x68783a['createPositionBefore'](_0x5e37b8);return _0x1f44fd['isTouching'](_0x5e6e2c);}function rs(_0x1a6abf,_0x5756ce,_0x4014f8){for(;_0x4014f8['length'];){const _0x1e5a84=_0x4014f8['splice'](0x0,0x64);_0x1a6abf['change'](()=>{for(const _0x4b6785 of _0x1e5a84)_0x4b6785['isInContent']&&_0x5756ce['execute'](_0x4b6785['id']);});}}class R extends _0xd9491d{['_command'];['_suggestions'];constructor(_0x115116,_0x4365a7,_0x1518cb){super(_0x115116),this['_command']=_0x4365a7,this['_suggestions']=_0x1518cb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5f30cd=Array['from'](this['_suggestions']['values']())['some'](_0x269c26=>_0x269c26['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5f30cd;}['execute'](){const _0x825524=ts(Array['from'](this['_suggestions']['values']()));for(const _0x218576 of _0x825524){const _0xc8fbc1=_0x218576['getRanges']();if(!this['editor']['model']['canEditAt'](_0xc8fbc1))return;}rs(this['editor']['model'],this['_command'],_0x825524);}}class E extends _0xd9491d{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x375520,_0x9c4f5,_0x5bd620){super(_0x375520),this['_command']=_0x9c4f5,this['_suggestions']=_0x5bd620,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdf866c=this['editor']['model']['document']['selection'],_0xf437bc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x242e78,_0xccf3a5){const _0x2596ff=Array['from'](_0x242e78['getRanges']()),_0x38a729=new Set();for(const _0x18890c of _0xccf3a5)if(_0x18890c['isInContent']){for(const _0x332929 of _0x2596ff)for(const _0x46ca1a of _0x18890c['getRanges']())(_0x332929['isIntersecting'](_0x46ca1a)||_0x242e78['isCollapsed']&&!_0x18890c['isMultiRange']&&_0x18890c['next']&&_0x46ca1a['end']['isTouching'](_0x332929['start']))&&_0x38a729['add'](_0x18890c);}return _0x38a729;}(_0xdf866c,_0xf437bc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3bd22e=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2aa962 of _0x3bd22e){const _0x609935=_0x2aa962['getRanges']();if(!this['editor']['model']['canEditAt'](_0x609935))return;}rs(this['editor']['model'],this['_command'],_0x3bd22e);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x20a8ec(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x155994,_0x3736a6){super(),this['id']=_0x3736a6['id'],this['type']=_0x3736a6['type'],this['subType']=_0x3736a6['subType']||null,this['author']=_0x3736a6['author'],this['creator']=_0x3736a6['creator']||_0x3736a6['author'],this['isExternal']=Boolean(_0x3736a6['attributes']&&_0x3736a6['attributes']['@external']),this['data']=null,this['_model']=_0x155994,this['_onAccept']=_0x3736a6['onAccept'],this['_onDiscard']=_0x3736a6['onDiscard'],this['_onAttributesChange']=_0x3736a6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3736a6['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 _0x5bedc5=this;for(;_0x5bedc5['previous'];)_0x5bedc5=_0x5bedc5['previous'];return _0x5bedc5;}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'](_0x3c1c06){this['_markerNames']['add'](_0x3c1c06);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x6229bb=>this['_model']['markers']['get'](_0x6229bb))['filter'](_0x48ac19=>_0x48ac19);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2e4144=>{for(const _0x5404c4 of this['getMarkers']())_0x2e4144['removeMarker'](_0x5404c4);}),this['_markerNames']['clear']();}['removeMarker'](_0x512794){this['_model']['change'](_0x22f995=>{_0x22f995['removeMarker'](_0x512794);}),this['_markerNames']['delete'](_0x512794);}['addRange'](_0xb1ab16){const _0x12b31c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x12b31c),this['_model']['change'](_0x2378ea=>{_0x2378ea['addMarker'](_0x12b31c,{'range':_0xb1ab16,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x58e40c){for(const _0x343041 of this['getRanges']())if(_0x343041['isIntersecting'](_0x58e40c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x582fcb=>_0x582fcb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xf71e7c,_0x5acebb)=>[..._0xf71e7c,..._0x5acebb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a8d74=this['getRanges']();if(0x1!=_0x1a8d74['length'])return null;const _0x1a7f12=_0x1a8d74[0x0],_0x1f58bb=_0x1a7f12['start']['nodeAfter'],_0x431078=_0x1a7f12['end']['nodeBefore'];return _0x1f58bb instanceof _0x2f8b89?_0x1f58bb!=_0x431078?null:_0x1f58bb: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 _0x18e6c7=[];let _0xafe409=this['head'];for(;_0xafe409;)_0x18e6c7['push'](_0xafe409),_0xafe409=_0xafe409['next'];return _0x18e6c7;}['setAttribute'](_0x32f80a,_0x1a9818){const _0x4d76ad=_0x5b5a0d(this['attributes']);_0x1ae88a(_0x4d76ad,_0x32f80a,_0x1a9818),_0x2ed42c(_0x4d76ad,this['attributes'])||(this['attributes']=_0x4d76ad,this['_onAttributesChange'](_0x4d76ad));}['removeAttribute'](_0x4b1e5c){const _0x2a8f55=_0x5b5a0d(this['attributes']);_0x13f8e5(_0x2a8f55,_0x4b1e5c),_0x2ed42c(_0x2a8f55,this['attributes'])||(this['attributes']=_0x2a8f55,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 _0x5d446a()['substr'](0x1,0x5);}}function c(_0x456860,_0x344eee,_0x399420){const _0x270b94=_0x456860['t'],t=_0x456860['t'];switch(_0x344eee){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',_0x399420);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x399420);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x399420);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x399420);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x399420);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',_0x399420);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x399420);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',_0x399420);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x399420);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x399420);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x399420);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x399420);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x399420);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x399420);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x399420);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x399420);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x399420);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x399420);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x399420);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x399420);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x399420);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x399420);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x399420);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x399420);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x399420);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'},_0x399420);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x399420);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x399420);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x399420);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x399420);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x399420);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x399420);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x399420);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'},_0x399420);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x399420);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x399420);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x399420);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x399420);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'},_0x399420);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x399420);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'},_0x399420);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x399420);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x399420);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'},_0x399420);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x399420);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'},_0x399420);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x399420);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x399420);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'},_0x399420);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x399420);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 _0x270b94({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x399420);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x270b94({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x399420);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x399420);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'},_0x399420);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'},_0x399420);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'},_0x399420);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x344eee;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xb4720f,_0x162b69){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xb4720f,this['_locale']=_0x162b69;}['getDescriptions'](_0x16ecf4){const _0x3801ec=[],_0x503a23=new Set(),_0x237d14=new Set();for(let _0x3b092f=0x0;_0x3b092f<_0x16ecf4['length'];_0x3b092f++){const _0xd3719d=_0x16ecf4[_0x3b092f];if(!_0xd3719d['isInContent'])continue;const _0x3b2c0f=this['_handleCustomCallbackDescription'](_0xd3719d);if(_0x3b2c0f){if(null!=_0xd3719d['subType']){if(_0x503a23['has'](_0xd3719d['subType']))continue;_0x503a23['add'](_0xd3719d['subType']);}_0x3801ec['push'](_0x3b2c0f);}else{if('attribute'!=_0xd3719d['type'])'insertion'!=_0xd3719d['type']&&'deletion'!=_0xd3719d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3801ec,_0xd3719d,_0x16ecf4[_0x3b092f+0x1]);else{const _0x53accb=_0xd3719d['data']['key'];if(_0x237d14['has'](_0x53accb))continue;_0x237d14['add'](_0xd3719d['data']['key']),_0x53accb==u?this['_handleRenameSuggestionDescription'](_0x3801ec,_0xd3719d):this['_handleAttributeSuggestionDescription'](_0x3801ec,_0xd3719d);}}}return this['_resolveDescriptionItems'](_0x3801ec);}['registerDescriptionCallback'](_0x3c3197){this['_customCallbacks']['push'](_0x3c3197);}['registerElementLabel'](_0x1905c3,_0x268147,_0xd826af=_0x23dcbe['normal']){'function'==typeof _0x1905c3?_0x302f21(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1905c3,'label':_0x268147,'priority':_0xd826af}):this['_itemLabels']['set'](_0x1905c3,_0x268147);}['registerAttributeLabel'](_0x12f93c,_0x2ce6ee){this['_attributeLabels']['set'](_0x12f93c,_0x2ce6ee);}['getItemLabel'](_0x1b8a20,_0x152214=0x1){let _0x599bc0;for(const _0x383b2f of this['_itemLabelsCallbacks'])if(_0x383b2f['matchingCallback'](_0x1b8a20)){_0x599bc0=_0x383b2f['label'];break;}return _0x599bc0||(_0x599bc0=this['_itemLabels']['get'](_0x1b8a20['name'])),_0x599bc0?_0x599bc0(_0x152214):0x1!==_0x152214?_0x152214+'\x20'+_0x1b8a20['name']+'s':''+_0x1b8a20['name'];}['_addDescriptionItems'](_0x5e703c,_0x6f7656){const _0x4feff8=_0x6f7656['getFirstRange']()['getWalker'](),_0x103146='insertion'==_0x6f7656['type']?'add':'remove';for(const _0x3245b2 of _0x4feff8){const _0x3eef56=_0x3245b2['item'],_0x2a4663=_0x5e703c[_0x5e703c['length']-0x1];if(_0x3eef56['is']('$textProxy'))_0x2a4663&&_0x2a4663['type']['indexOf']('Container')>-0x1&&_0x5e703c['pop'](),_0x2a4663&&'text'==_0x2a4663['type']?_0x2a4663[_0x103146]+=_0x3eef56['data']:_0x5e703c['push']({'type':'text','add':'add'==_0x103146?_0x3eef56['data']:'','remove':'remove'==_0x103146?_0x3eef56['data']:''});else{if(this['_schema']['isObject'](_0x3eef56)){const _0x5a62f7=_0x3eef56;if(_0x2a4663&&_0x2a4663['type']['indexOf']('Container')>-0x1&&_0x5e703c['pop'](),'elementEnd'==_0x3245b2['type'])continue;_0x2a4663&&_0x2a4663['type']==_0x103146+'Object'&&_0x2a4663['element']['name']==_0x5a62f7['name']?_0x2a4663['quantity']++:_0x5e703c['push']({'type':_0x103146+'Object','element':_0x5a62f7,'quantity':0x1}),_0x4feff8['skip'](_0x5b203b=>!('elementEnd'==_0x5b203b['type']&&_0x5b203b['item']==_0x3eef56));}else{if(this['_schema']['checkChild'](_0x3eef56,'$text')||_0x3eef56['is']('element','softBreak')){const _0x4775ac=_0x3eef56;if('add'==_0x103146&&'elementStart'==_0x3245b2['type']||'remove'==_0x103146&&'elementEnd'==_0x3245b2['type'])continue;if(_0x2a4663&&-0x1==_0x2a4663['type']['indexOf']('Container')){'text'==_0x2a4663['type']&&(_0x2a4663[_0x103146]+='\x0a');continue;}let _0x14a546;if(_0x14a546='add'==_0x103146?_0x4775ac['nextSibling']&&!this['_schema']['isObject'](_0x4775ac['nextSibling'])?_0x4775ac['nextSibling']:null:_0x4775ac['previousSibling']&&!this['_schema']['isObject'](_0x4775ac['previousSibling'])?_0x4775ac['previousSibling']:null,_0x4775ac['isEmpty']||_0x14a546&&_0x14a546['isEmpty']){const _0x4cc96c=_0x14a546&&_0x14a546['isEmpty']?_0x14a546:_0x4775ac;_0x2a4663&&_0x2a4663['type']==_0x103146+'EmptyContainer'&&_0x2a4663['element']['name']==_0x4cc96c['name']?_0x2a4663['quantity']++:_0x5e703c['push']({'type':_0x103146+'EmptyContainer','element':_0x4cc96c,'quantity':0x1});}else _0x5e703c['push']({'type':_0x103146+'Container','element':_0x4775ac});}}}}}['_resolveDescriptionItems'](_0x596bff){const _0x318cdf=this['_locale'],_0x51aa76=[],_0x31c6b5=[],_0x23396b=[];for(const _0x3235e8 of _0x596bff)switch(_0x3235e8['type']){case'text':if(_0x3235e8['add']=_0x3235e8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3235e8['remove']=_0x3235e8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3235e8['add']&&''!=_0x3235e8['remove']){_0x51aa76['push']({'type':'replace','content':c(_0x318cdf,'REPLACE_TEXT',['\x22'+_0x3235e8['remove']+'\x22','\x22'+_0x3235e8['add']+'\x22'])});continue;}if(null!=_0x3235e8['add']['match'](/^ +$/)){_0x51aa76['push']({'type':'insertion','content':c(_0x318cdf,'*Insert:*\x20%0',c(_0x318cdf,'ELEMENT_SPACE',_0x3235e8['add']['length']))});continue;}if(null!=_0x3235e8['remove']['match'](/^ +$/)){_0x51aa76['push']({'type':'deletion','content':c(_0x318cdf,'*Remove:*\x20%0',c(_0x318cdf,'ELEMENT_SPACE',_0x3235e8['remove']['length']))});continue;}if(''!=_0x3235e8['add']){_0x51aa76['push']({'type':'insertion','content':c(_0x318cdf,'*Insert:*\x20%0','\x22'+_0x3235e8['add']+'\x22')});continue;}_0x51aa76['push']({'type':'deletion','content':c(_0x318cdf,'*Remove:*\x20%0','\x22'+_0x3235e8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x51aa76['push']({'type':'insertion','content':c(_0x318cdf,'*Insert:*\x20%0',this['getItemLabel'](_0x3235e8['element'],_0x3235e8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x51aa76['push']({'type':'deletion','content':c(_0x318cdf,'*Remove:*\x20%0',this['getItemLabel'](_0x3235e8['element'],_0x3235e8['quantity']))});continue;case'addContainer':_0x51aa76['push']({'type':'insertion','content':c(_0x318cdf,'*Split:*\x20%0',this['getItemLabel'](_0x3235e8['element'],_0x3235e8['quantity']))});continue;case'removeContainer':_0x51aa76['push']({'type':'deletion','content':c(_0x318cdf,'*Merge:*\x20%0',this['getItemLabel'](_0x3235e8['element'],_0x3235e8['quantity']))});continue;case'addFormat':_0x31c6b5['push'](_0x3235e8['key']);continue;case'removeFormat':_0x23396b['push'](_0x3235e8['key']);continue;default:_0x51aa76['push'](_0x3235e8);}if(_0x31c6b5['length']){const _0x43673b=_0x31c6b5['map'](_0x480a51=>this['_attributeLabels']['has'](_0x480a51)?this['_attributeLabels']['get'](_0x480a51):_0x480a51)['join'](',\x20');_0x51aa76['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x43673b)});}if(_0x23396b['length']){const _0x254948=_0x23396b['map'](_0x5a5cbc=>this['_attributeLabels']['has'](_0x5a5cbc)?this['_attributeLabels']['get'](_0x5a5cbc):_0x5a5cbc)['join'](',\x20');_0x51aa76['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x254948)});}return _0x51aa76;}['_handleCustomCallbackDescription'](_0x375800){for(const _0x347eef of this['_customCallbacks']){const _0x24190b=_0x347eef(_0x375800);if(_0x24190b&&'type'in _0x24190b)return _0x24190b;}}['_handleAttributeSuggestionDescription'](_0x14ee81,_0x8efb10){const _0xcc7221=_0x8efb10['data'],_0x3b6085=void 0x0===_0xcc7221['newValue']?'removeFormat':'addFormat';_0x14ee81['push']({'type':_0x3b6085,'key':_0xcc7221['key']});}['_handleRenameSuggestionDescription'](_0x267cbb,_0x33f23d){_0x267cbb['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x33f23d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xed8979,_0x389b83,_0x17ab89){if(this['_addDescriptionItems'](_0xed8979,_0x389b83),_0x17ab89&&_0x17ab89['getFirstRange']()&&!_0x389b83['getFirstRange']()['end']['isEqual'](_0x17ab89['getFirstRange']()['start'])){const _0x22bd8c=_0xed8979[_0xed8979['length']-0x1],_0x201ae5='insertion'==_0x389b83['type']?'add':'remove';_0x22bd8c&&'text'==_0x22bd8c['type']&&(_0x22bd8c[_0x201ae5]+='\x0a');}}}class U extends _0x6abf95{['afterInit'](){const _0x8afd6c=this['editor'],_0x99b590=_0x8afd6c['plugins']['get']('TrackChangesEditing');_0x8afd6c['commands']['get']('showAIAssistant')&&_0x99b590['enableCommand']('showAIAssistant');}}class V extends _0x6abf95{['afterInit'](){const _0x16a31d=this['editor'],_0xc78104=_0x16a31d['locale'];if(!_0x16a31d['plugins']['has']('AlignmentEditing'))return;const _0x4d188e=_0x16a31d['plugins']['get']('TrackChangesEditing');_0x4d188e['enableDefaultAttributesIntegration']('alignment'),_0x4d188e['registerBlockAttribute']('alignment'),_0x4d188e['descriptionFactory']['registerAttributeLabel']('alignment',c(_0xc78104,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52c969=this['editor'],_0x5b1fcb=_0x52c969['locale'];_0x52c969['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222b35=>{if('formatBlock'!=_0x222b35['type'])return;const {data:_0x1b782e}=_0x222b35;if(_0x1b782e&&'alignment'==_0x1b782e['commandName']){const _0x574105=_0x1b782e['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5b1fcb,'*Format:*\x20%0',function(_0x5afa5d){switch(_0x5afa5d){case'left':return c(_0x5b1fcb,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5b1fcb,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5b1fcb,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5b1fcb,'FORMAT_JUSTIFY_TEXT');}}(_0x574105))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x6abf95{['afterInit'](){const _0x30840e=this['editor'],_0x34f7f8=_0x30840e['plugins']['get']('TrackChangesEditing'),_0x2311b3=_0x30840e['locale'];for(const _0x2d1d5f of Zt){if(!_0x30840e['plugins']['has'](_0x2d1d5f))continue;const _0x2912d6=_0x2d1d5f['slice'](0x0,-0x7)['toLowerCase'](),_0x15e32b='FORMAT_'+_0x2912d6['toUpperCase']();_0x34f7f8['enableDefaultAttributesIntegration'](_0x2912d6),_0x34f7f8['registerInlineAttribute'](_0x2912d6),_0x34f7f8['descriptionFactory']['registerAttributeLabel'](_0x2912d6,c(_0x2311b3,_0x15e32b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b0a2d=this['editor'],_0xe25e5a=_0x4b0a2d['locale'],_0x18aaec=_0x4b0a2d['plugins']['get']('TrackChangesEditing');function _0x85829(_0x3788ab,_0x284d92){_0x18aaec['descriptionFactory']['registerDescriptionCallback'](_0x4e17c5=>{if('formatInline'!=_0x4e17c5['type'])return;const {data:_0xd18852}=_0x4e17c5;return _0xd18852&&_0xd18852['commandName']===_0x3788ab?_0xd18852['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xe25e5a,'*Format:*\x20%0',_0x284d92)}:{'type':'format','content':c(_0xe25e5a,'*Remove\x20format:*\x20%0',_0x284d92)}:void 0x0;});}_0x85829('bold',c(_0xe25e5a,'FORMAT_BOLD')),_0x85829('italic',c(_0xe25e5a,'FORMAT_ITALIC')),_0x85829('underline',c(_0xe25e5a,'FORMAT_UNDERLINE')),_0x85829('code',c(_0xe25e5a,'FORMAT_CODE')),_0x85829('strikethrough',c(_0xe25e5a,'FORMAT_STRIKETHROUGH')),_0x85829('subscript',c(_0xe25e5a,'FORMAT_SUBSCRIPT')),_0x85829('superscript',c(_0xe25e5a,'FORMAT_SUPERSCRIPT'));}}class G extends _0x6abf95{['afterInit'](){const _0x39d2c2=this['editor'],_0x16ca25=_0x39d2c2['locale'];if(!_0x39d2c2['plugins']['has']('BlockQuoteEditing'))return;const _0x32a38b=_0x39d2c2['plugins']['get']('TrackChangesEditing'),_0x3a700b=this['editor']['commands']['get']('blockQuote');_0x32a38b['enableCommand']('blockQuote',(_0x6fde8a,_0x329b39={})=>{const _0x2adc43=this['editor']['model']['document']['selection'],_0x4771ad=_0x329b39&&void 0x0!==_0x329b39['forceValue']?_0x329b39['forceValue']:!_0x3a700b['value'];let _0x222ba8=[];if(_0x4771ad){const _0x2cb00c=Array['from'](_0x2adc43['getSelectedBlocks']())['filter'](_0x218b94=>oo(_0x218b94)||function(_0x2f5e47,_0x13d6d1){const _0x4f0cfd=_0x13d6d1['checkChild'](_0x2f5e47['parent'],'blockQuote'),_0x3c750f=_0x13d6d1['checkChild'](['$root','blockQuote'],_0x2f5e47);return _0x4f0cfd&&_0x3c750f;}(_0x218b94,this['editor']['model']['schema']));_0x222ba8=to(_0x2cb00c,_0x39d2c2['model']);}else{const _0x394239=Array['from'](_0x2adc43['getSelectedBlocks']())['filter'](_0x447289=>oo(_0x447289));_0x222ba8=to(_0x394239,_0x39d2c2['model']);}_0x39d2c2['model']['change'](()=>{for(const _0x295298 of _0x222ba8)_0x32a38b['markBlockFormat'](_0x295298,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4771ad}]});});}),_0x32a38b['descriptionFactory']['registerDescriptionCallback'](_0xe9ee10=>{const {data:_0x38a33}=_0xe9ee10;if(_0x38a33&&'blockQuote'==_0x38a33['commandName']){const _0x303152=c(_0x16ca25,'ELEMENT_BLOCK_QUOTE');return _0x38a33['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x16ca25,'*Set\x20format:*\x20%0',_0x303152)}:{'type':'format','content':c(_0x16ca25,'*Remove\x20format:*\x20%0',_0x303152)};}});}}function oo(_0x423722){return'blockQuote'==_0x423722['parent']['name'];}class L extends _0x6abf95{['afterInit'](){const _0x4b9fc1=this['editor'],_0x32ffeb=_0x4b9fc1['locale'],_0x1a04c3=_0x4b9fc1['plugins']['get']('TrackChangesEditing');_0x4b9fc1['plugins']['has']('BookmarkEditing')&&(_0x1a04c3['enableCommand']('insertBookmark'),_0x1a04c3['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a04c3['registerBlockAttribute']('bookmarkId'),_0x1a04c3['descriptionFactory']['registerDescriptionCallback'](_0x4d2824=>{if('insertion'!=_0x4d2824['type']&&'deletion'!=_0x4d2824['type']&&'attribute'!=_0x4d2824['type'])return;const _0x4b43db=_0x4d2824['getContainedElement']();if(null==_0x4b43db)return;if(!_0x4b43db['is']('element','bookmark'))return;const _0xd64ab6=_0x4b43db['getAttribute']('bookmarkId');if('insertion'==_0x4d2824['type'])return{'type':'insertion','content':c(_0x32ffeb,'*Insert:*\x20%0','\x22'+_0xd64ab6+'\x22\x20'+c(_0x32ffeb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4d2824['type'])return{'type':'deletion','content':c(_0x32ffeb,'*Remove:*\x20%0','\x22'+_0xd64ab6+'\x22\x20'+c(_0x32ffeb,'ELEMENT_BOOKMARK'))};const {data:_0x2ca8dd}=_0x4d2824;if(!_0x2ca8dd||'bookmarkId'!=_0x2ca8dd['key'])return;return{'type':'format','content':c(_0x32ffeb,'*Set\x20bookmark:*\x20%0','\x22'+_0x2ca8dd['newValue']+'\x22')};}));}}class J extends _0x6abf95{['afterInit'](){const _0x187c61=this['editor'];_0x187c61['plugins']['has']('CaseChange')&&(_0x187c61['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x187c61['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x187c61['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x6abf95{['afterInit'](){const _0x254d99=this['editor'];_0x254d99['commands']['get']('ckbox')&&_0x254d99['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x6abf95{['afterInit'](){const _0xc96098=this['editor'];if(!_0xc96098['plugins']['has']('CodeBlock'))return;const _0x896231=_0xc96098['plugins']['get']('TrackChangesEditing'),_0x87ad18=_0xc96098['locale'],_0x37f722=_0xc96098['config']['get']('codeBlock')['languages'],_0x29fd88=_0xc96098['commands']['get']('codeBlock');_0x896231['enableCommand']('indentCodeBlock'),_0x896231['enableCommand']('outdentCodeBlock'),_0x896231['enableCommand']('codeBlock',(_0x3f10d4,_0x5f4fae={})=>{const _0x44496b=_0xc96098['model'],_0x5f0ecb=_0xc96098['model']['document']['selection'],_0x21e31a=_0x5f4fae&&void 0x0!==_0x5f4fae['forceValue']?_0x5f4fae['forceValue']:!_0x29fd88['value'];let _0x29ff9d;_0x5f4fae['language']||(_0x5f4fae['language']=_0x37f722[0x0]['language']),_0x29ff9d=_0x21e31a?Array['from'](_0x5f0ecb['getSelectedBlocks']())['filter'](_0x415650=>eo(_0x415650)||function(_0x10168e,_0x1f83c8){if(_0x10168e['is']('rootElement')||_0x1f83c8['isLimit'](_0x10168e))return!0x1;return _0x1f83c8['checkChild'](_0x10168e['parent'],'codeBlock');}(_0x415650,_0x44496b['schema'])):Array['from'](_0x5f0ecb['getSelectedBlocks']())['filter'](_0x47eafe=>eo(_0x47eafe));const _0x2f072e=to(_0x29ff9d,_0x44496b);_0x44496b['change'](()=>{for(const _0x306112 of _0x2f072e)_0x896231['markBlockFormat'](_0x306112,{'commandName':'codeBlock','commandParams':[{..._0x5f4fae,'forceValue':_0x21e31a}],'formatGroupId':'blockName'});});}),(_0x896231['descriptionFactory']['registerElementLabel']('codeBlock',_0x3a3ebe=>c(_0x87ad18,'ELEMENT_CODE_BLOCK',_0x3a3ebe)),_0x896231['descriptionFactory']['registerDescriptionCallback'](_0x528881=>{if('formatBlock'!=_0x528881['type'])return;const _0x58c715=_0x87ad18['t'],{data:_0x525fa6}=_0x528881;if(!_0x525fa6||'codeBlock'!=_0x525fa6['commandName'])return;const _0x27ae36=_0x525fa6['commandParams'][0x0]['language'],_0x2ae23a=_0x58c715(_0x37f722['find'](_0x23aba6=>_0x23aba6['language']===_0x27ae36)['label'])['toLowerCase']();return _0x525fa6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x87ad18,'*Set\x20format:*\x20%0',c(_0x87ad18,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2ae23a+')')}:{'type':'format','content':c(_0x87ad18,'*Remove\x20format:*\x20%0',c(_0x87ad18,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x420223){return'codeBlock'==_0x420223['name'];}class q extends _0x6abf95{['afterInit'](){const _0x1191ad=this['editor'];if(!_0x1191ad['plugins']['has']('CommentsEditing'))return;_0x1191ad['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4710f2,_0x10159c,_0x126525){const _0x5158b8=[];for(const _0x1f94ab of _0x10159c['getItems']())_0x1f94ab['hasAttribute'](_0x4710f2)&&_0x5158b8['push'](_0x126525['createRangeOn'](_0x1f94ab));return _0x5158b8;}function Fe(_0x3cbaf1,_0x10ed21,{showActiveMarker:_0x3944ed=!0x0}={}){const _0x1938c5=_0x3cbaf1['plugins']['get']('TrackChangesEditing');return(_0x130dee,_0xdd3b79,_0x143755)=>{if(!_0x143755['consumable']['test'](_0xdd3b79['markerRange'],_0x130dee['name']))return;const _0xda05ba=_0xdd3b79['markerRange']['getWalker'](),_0x5d5b97=_0xdd3b79['markerRange']['start'],_0x244bd5=_0x3cbaf1['model']['schema'];let _0x4c3a7a=null,_0x24d6f0=null,_0x5f5448=!0x1,_0x5f45dc=!0x1;for(const _0x45412d of _0xda05ba){const _0x101f9f=_0x45412d['item'];_0x5f5448=_0x5f5448||_0x244bd5['isContent'](_0x101f9f);const _0x1779b9=_0x143755['mapper']['toViewElement'](_0x101f9f);if(_0x1779b9&&_0x1779b9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45412d['type']&&(_0x244bd5['isBlock'](_0x101f9f)&&!_0x244bd5['isLimit'](_0x101f9f)&&(_0x101f9f['nextSibling']||_0x5d5b97['isAtEnd']?_0x4c3a7a&&_0x4c3a7a['parent']==_0x101f9f||(_0x4c3a7a=_0x101f9f,_0x230cb4(_0x45412d['previousPosition']),_0x5f45dc=!0x0):_0x24d6f0=_0x24d6f0||_0x45412d['previousPosition']));}function _0x230cb4(_0xe26d5){const {id:_0x420002,authorId:_0x5a0076}=_0x1938c5['_splitMarkerName'](_0xdd3b79['markerName']),_0x4b723a=_0x143755['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x10ed21,'data-suggestion':_0x420002,'data-author-id':_0x5a0076}),_0x554f96=_0x143755['mapper']['toViewPosition'](_0xe26d5);_0x3944ed&&_0x1938c5['activeMarkers']['includes'](_0xdd3b79['markerName'])&&_0x143755['writer']['addClass']('ck-suggestion-marker--active',_0x4b723a),_0x143755['writer']['insert'](_0x554f96,_0x4b723a),_0x143755['mapper']['bindElementToMarker'](_0x4b723a,_0xdd3b79['markerName']);}_0x5f5448||_0x5f45dc||!_0x24d6f0||_0x230cb4(_0x24d6f0);};}class z extends _0x6abf95{static get['requires'](){return[_0x18ebbf];}['init'](){const _0x245c82=this['editor'],_0x5b2b3c=_0x245c82['plugins']['get']('TrackChangesEditing');_0x5b2b3c['enableCommand']('delete');const _0x5971df=_0x245c82['commands']['get']('deleteForward');_0x5b2b3c['enableCommand']('deleteForward',(_0x2b047c,_0x2abe94={})=>{const _0x522442=_0x245c82['model']['createSelection'](_0x245c82['model']['document']['selection']);_0x522442['isCollapsed']&&_0x245c82['model']['modifySelection'](_0x522442,{'direction':'forward','unit':_0x2abe94['unit']});const _0x349622=_0x522442['getFirstRange'](),_0x397d5a=_0xd0daae['fromRange'](_0x349622);let _0x568ee7;_0x2b047c(_0x2abe94),_0x568ee7='$graveyard'==_0x397d5a['root']['rootName']?_0x245c82['model']['createRange'](_0x349622['start']):_0x245c82['model']['createRange'](_0x397d5a['start'],_0x397d5a['end']),_0x397d5a['detach'](),_0x245c82['model']['enqueueChange'](_0x5971df['buffer']['batch'],_0x48c991=>{_0x5971df['buffer']['lock'](),_0x48c991['setSelection'](_0x48c991['createRange'](_0x568ee7['end'])),_0x5971df['buffer']['unlock']();});}),_0x245c82['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x245c82,'merge'),{'priority':'high'}),_0x245c82['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5eb373,_0x5bbbe1,_0x545ce6)=>{_0x545ce6['options']['showSuggestionHighlights']&&Fe(_0x245c82,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5eb373,_0x5bbbe1,_0x545ce6);},{'priority':'high'}),_0x245c82['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5c87c1,_0x5ebbda,_0x11059c)=>{const _0x15b1a6=_0x11059c['mapper']['markerNameToElements'](_0x5ebbda['markerName']);if(_0x15b1a6){for(const _0x5a870a of _0x15b1a6)_0x5a870a['is']('uiElement')&&(_0x11059c['mapper']['unbindElementFromMarkerName'](_0x5a870a,_0x5ebbda['markerName']),_0x11059c['writer']['remove'](_0x5a870a));}},{'priority':'high'});}}class W extends _0x6abf95{['afterInit'](){const _0x2b025f=this['editor'];if(!_0x2b025f['plugins']['has']('ListEditing'))return;const _0x30c696=_0x2b025f['locale'],_0x33af6e=_0x2b025f['plugins']['get']('TrackChangesEditing'),_0x410d7e=_0x2b025f['plugins']['has']('TodoListEditing'),_0x176c10=!!_0x2b025f['config']['get']('list.multiBlock');function _0x2b44da(_0x5e3d39){return{'type':'format','content':''+c(_0x30c696,'*Set\x20format:*\x20%0',_0x5e3d39)};}function _0x2a8312(_0x52134e){return{'type':'format','content':''+c(_0x30c696,'*Remove\x20format:*\x20%0',_0x52134e)};}_0x33af6e['enableDefaultAttributesIntegration']('numberedList'),_0x33af6e['enableDefaultAttributesIntegration']('bulletedList'),_0x33af6e['enableDefaultAttributesIntegration']('customNumberedList'),_0x33af6e['enableDefaultAttributesIntegration']('customBulletedList'),_0x33af6e['enableDefaultAttributesIntegration']('indentList'),_0x33af6e['enableDefaultAttributesIntegration']('outdentList'),_0x33af6e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x33af6e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x33af6e['registerBlockAttribute']('listItemId'),_0x33af6e['registerBlockAttribute']('listType'),_0x33af6e['registerBlockAttribute']('listIndent'),_0x176c10&&(_0x33af6e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x33af6e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x410d7e&&(_0x33af6e['enableDefaultAttributesIntegration']('todoList'),_0x33af6e['enableDefaultAttributesIntegration']('checkTodoList'),_0x33af6e['registerBlockAttribute']('todoListChecked'),_0x33af6e['descriptionFactory']['registerDescriptionCallback'](_0x37218f=>{const {data:_0x587837}=_0x37218f;if(_0x587837&&'todoListChecked'==_0x587837['key'])return{'type':'format','content':_0x587837['newValue']?c(_0x30c696,'*Check\x20item*'):c(_0x30c696,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5863bd=>{if(_0x5863bd['batch']['isUndo'])return!0x1;let _0x1ed14d=!0x1;const _0x4a951=_0x33af6e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c191e=>'todoListChecked'===_0x33af6e['_getAttributeKey'](_0x1c191e));for(const _0x5468b0 of _0x4a951){'todo'!=_0x5468b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x33af6e['_findSuggestions'](_0x5468b0['getFirstRange'](),'attribute')['find'](_0x1a1b9a=>'listType'===_0x33af6e['_getAttributeKey'](_0x1a1b9a['suggestion']))||(_0x5863bd['removeMarker'](_0x5468b0['getFirstMarker']()),_0x1ed14d=!0x0));}return _0x1ed14d;})),_0x33af6e['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x30c696,'FORMAT_INDENT'));const _0x103a34={'type':'format','content':''};_0x33af6e['descriptionFactory']['registerDescriptionCallback'](_0x5535ed=>{const {data:_0x208d59}=_0x5535ed;if(!_0x208d59||'listType'!=_0x208d59['key'])return;let _0x2a34dd=_0x5535ed['head'];for(;_0x2a34dd;){if(_0x2a34dd['data']&&(('listStyle'==_0x2a34dd['data']['key']||'listMarkerStyle'==_0x2a34dd['data']['key'])&&(_0x2a34dd['data']['newValue']&&'default'!=_0x2a34dd['data']['newValue']||'default'!=_0x2a34dd['data']['oldValue']&&!_0x208d59['newValue'])||!_0x176c10&&_0x2a34dd['data']['key']==u))return _0x103a34;_0x2a34dd=_0x2a34dd['next'];}if(null==_0x208d59['newValue'])switch(_0x208d59['oldValue']){case'bulleted':return _0x2a8312(c(_0x30c696,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a8312(c(_0x30c696,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a8312(c(_0x30c696,'ELEMENT_TODO_LIST'));}switch(_0x208d59['newValue']){case'bulleted':return _0x2b44da(c(_0x30c696,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b44da(c(_0x30c696,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b44da(c(_0x30c696,'ELEMENT_TODO_LIST'));}}),_0x33af6e['descriptionFactory']['registerDescriptionCallback'](_0x2567bf=>{const {data:_0x3eedef}=_0x2567bf;if(_0x3eedef&&'listIndent'==_0x3eedef['key'])return null==_0x3eedef['newValue']||null==_0x3eedef['oldValue']&&0x0==_0x3eedef['newValue']?_0x103a34:void 0x0;}),_0x33af6e['descriptionFactory']['registerDescriptionCallback'](_0x31bb05=>{if('attribute'!=_0x31bb05['type'])return;const {data:_0xfca00}=_0x31bb05;if(!_0xfca00||'listItemId'!=_0xfca00['key'])return;const _0x276731=Te(_0x31bb05);return'newValue'==_0x276731?{'type':'format','content':c(_0x30c696,'*Merge:*\x20list\x20item')}:'oldValue'==_0x276731?{'type':'format','content':c(_0x30c696,'*Split:*\x20list\x20item')}:_0x103a34;}),_0x2b025f['model']['document']['registerPostFixer'](_0x3fe5f2=>this['listItemIdFixer'](_0x3fe5f2)),_0x2b025f['model']['document']['registerPostFixer'](_0x5ddb7f=>this['noTrackChangesFixer'](_0x5ddb7f)),_0x2b025f['model']['document']['on']('change:data',(_0x44f90b,_0x1e1c16)=>{if(_0x1e1c16['isUndo']||!_0x1e1c16['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2bffb7){if(_0x2bffb7['batch']['isUndo']||!_0x2bffb7['batch']['isLocal'])return!0x1;let _0x484991=!0x1;const _0x54bd7e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52b3b5=>_0x52b3b5['data']&&'listItemId'==_0x52b3b5['data']['key'])['filter'](_0xb0789f=>_0xb0789f['data']['newValue']&&_0xb0789f['data']['oldValue']);for(const _0x27da32 of _0x54bd7e)Te(_0x27da32)||(_0x2bffb7['removeMarker'](_0x27da32['getFirstMarker']()),_0x484991=!0x0);return _0x484991;}['noTrackChangesFixer'](_0x323910){if(_0x323910['batch']['isUndo']||!_0x323910['batch']['isLocal'])return!0x1;const _0x8a736a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8a736a['trackChangesCommand']['value'])return!0x1;let _0x26249f=!0x1;const _0x3aed5a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x147689=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x510d86=>'attribute'==_0x510d86['type'])['filter'](_0x5e5a68=>_0x3aed5a['includes'](_0x5e5a68['attributeKey']));if(0x0==_0x147689['length'])return _0x26249f;for(const _0x15e2cd of _0x147689){const _0x53d7b4=_0x8a736a['_findSuggestions'](_0x15e2cd['range'],'attribute')['filter'](_0x1e7982=>!_0x1e7982['meta']['isNextTo'])['map'](_0x2551b2=>_0x2551b2['suggestion'])['filter'](_0x3f2246=>{const _0x27e070=_0x8a736a['_getAttributeKey'](_0x3f2246);return _0x3aed5a['includes'](_0x27e070);});if(_0x53d7b4['length']){for(const _0x4c6de6 of _0x53d7b4)_0x323910['removeMarker'](_0x4c6de6['getFirstMarker']());_0x26249f=!0x0;}}return _0x26249f;}['assureChains'](){const _0x593b53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x99b33a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xfaa4ac;const _0x20006b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a232f=>{if(_0x3a232f['data']['oldRange']||!_0x3a232f['data']['newRange'])return null;if(!_0x3a232f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3a3e92}=_0x593b53['_splitMarkerName'](_0x3a232f['name']);if(!_0x593b53['hasSuggestion'](_0x3a3e92))return null;const _0x4a502c=_0x593b53['getSuggestion'](_0x3a3e92);return _0x99b33a['includes'](_0x4a502c['data']['key']);})['map'](_0x469ed4=>{const {id:_0x172aeb}=_0x593b53['_splitMarkerName'](_0x469ed4['name']),_0x32990c=_0x593b53['getSuggestion'](_0x172aeb);return _0xfaa4ac=_0x32990c['attributes']['groupId'],_0x32990c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x20006b['size'])return;const _0x3a799b=_0x593b53['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x305d13=>'attribute'==_0x305d13['type']&&_0x305d13['data']&&_0x99b33a['includes'](_0x305d13['data']['key'])&&_0x305d13['attributes']['groupId']!=_0xfaa4ac)['map'](_0x348f84=>({'listItem':_0x348f84['getFirstRange']()['start']['nodeAfter'],'groupId':_0x348f84['attributes']['groupId']})),_0x6e5eef=new Set();for(const {groupId:_0x1942e6,listItem:_0x2ef054}of _0x3a799b)_0x20006b['has'](_0x2ef054)&&_0x6e5eef['add'](_0x1942e6);for(const _0x37778c of _0x593b53['getSuggestions']())_0x6e5eef['has'](_0x37778c['attributes']['groupId'])&&_0x37778c['setAttribute']('groupId',_0xfaa4ac);}['_supportLegacySuggestions'](){const _0x3995d8=this['editor'],_0x617125=_0x3995d8['locale'],_0x19a138=_0x3995d8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x19a138['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x534d27,_0x5b895c){const _0x2b5283=[];for(let _0x1248b7 of _0x534d27)_0x1248b7['start']['nodeAfter']===_0x1248b7['end']['parent']&&(_0x1248b7=_0x3995d8['model']['createRange'](_0x3995d8['model']['createPositionAt'](_0x1248b7['start']['nodeAfter'],0x0))),_0x2b5283['push'](_0x1248b7);_0x3995d8['model']['change'](_0x3714f3=>{const _0x54f95c=_0x3995d8['model']['document']['selection'],_0x38b94b=Array['from'](_0x54f95c['getRanges']())['map'](_0x387749=>_0xd0daae['fromRange'](_0x387749));_0x3714f3['setSelection'](_0x2b5283),_0x3995d8['commands']['get'](_0x5b895c['commandName'])['refresh'](),_0x5b895c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3995d8['execute'](_0x5b895c['commandName'],..._0x5b895c['commandParams']),_0x3714f3['setSelection'](_0x38b94b);for(const _0x3e8ea8 of _0x38b94b)_0x3e8ea8['detach']();});}),_0x19a138['descriptionFactory']['registerElementLabel'](function(_0x5d2d8e){const _0x55e0e9=!_0x3995d8['model']['schema']['isObject'](_0x5d2d8e),_0x21f901=_0x5d2d8e['previousSibling'],_0x35610e=_0x5d2d8e['nextSibling'],_0x1c6f75=_0x5d2d8e['getAttribute']('listItemId'),_0x466736=!_0x21f901||_0x21f901['getAttribute']('listItemId')!==_0x1c6f75,_0x310f5e=!_0x35610e||_0x35610e['getAttribute']('listItemId')!==_0x1c6f75;return _0x55e0e9&&Boolean(_0x1c6f75)&&_0x466736&&_0x310f5e;},_0x209d8e=>c(_0x617125,'ELEMENT_LIST_ITEM',_0x209d8e));}['_registerLegacyDescription'](){const _0x4950b8=this['editor'],_0x159590=_0x4950b8['locale'];function _0x4b7f4a(_0x4e1872){const _0xe9e51=_0x4950b8['commands']['get']('bulletedList')['value'],_0xfe7ea8=_0x4950b8['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e1872?_0xe9e51:_0xfe7ea8;}_0x4950b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3c5b6b){if('formatBlock'!=_0x3c5b6b['type'])return;const {data:_0x445cb6}=_0x3c5b6b;if(!_0x445cb6)return;let _0x3277e1,_0x25761e,_0x372541,_0x37667e;switch(_0x445cb6['commandName']){case'bulletedList':_0x372541=_0x445cb6['commandParams'][0x0]['forceValue'],_0x37667e=_0x4b7f4a(_0x445cb6['commandName']),_0x3277e1=_0x372541?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37667e&&_0x4950b8['config']['get']('list.multiBlock')||(_0x3277e1='*Change\x20to:*\x20%0'),_0x25761e={'type':'format','content':c(_0x159590,_0x3277e1,c(_0x159590,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x372541=_0x445cb6['commandParams'][0x0]['forceValue'],_0x37667e=_0x4b7f4a(_0x445cb6['commandName']),_0x3277e1=_0x372541?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37667e&&_0x4950b8['config']['get']('list.multiBlock')||(_0x3277e1='*Change\x20to:*\x20%0'),_0x25761e={'type':'format','content':c(_0x159590,_0x3277e1,c(_0x159590,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3277e1='*Indent:*\x20%0',_0x25761e={'type':'format','content':c(_0x159590,_0x3277e1,c(_0x159590,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3277e1=function(_0x3ecf75){const _0x746e58=_0x3ecf75['getFirstRange']();let _0x5ebe1f=_0x746e58['start']['nodeAfter'];for(;_0x5ebe1f&&_0x746e58['containsItem'](_0x5ebe1f);){if(_0x5ebe1f['getAttribute']('listIndent')>0x0)return!0x1;_0x5ebe1f=_0x5ebe1f['nextSibling'];}return!0x0;}(_0x3c5b6b)?c(_0x159590,'*Format:*\x20remove\x20from\x20%0',c(_0x159590,function(_0x2c45c0){return'ELEMENT_'+_0x2c45c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3c5b6b))):c(_0x159590,'*Outdent:*\x20%0',c(_0x159590,'ELEMENT_LIST_ITEM')),_0x25761e={'type':'format','content':_0x3277e1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x445cb6['multipleBlocks']&&(_0x3277e1='*Merge:*\x20%0',_0x25761e={'type':'deletion','content':c(_0x159590,_0x3277e1,c(_0x159590,'ELEMENT_LIST_ITEM'))});}return _0x25761e;});}}function Te(_0x108f16){let _0x46de04=_0x108f16['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x46de04;){const _0x6dd914=_0x46de04['getAttribute']('listItemId');if(!_0x6dd914)return!0x1;if(_0x6dd914==_0x108f16['data']['newValue'])return'newValue';if(_0x6dd914==_0x108f16['data']['oldValue'])return'oldValue';_0x46de04=_0x46de04['previousSibling'];}return!0x1;}class Se extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x45e6bd=this['editor']['config']['get']('list.properties'),_0x5b9d94=this['editor']['plugins']['get']('TrackChangesEditing');_0x45e6bd['styles']&&(_0x5b9d94['enableDefaultAttributesIntegration']('listStyle'),_0x5b9d94['registerBlockAttribute']('listStyle')),_0x45e6bd['reversed']&&(_0x5b9d94['enableDefaultAttributesIntegration']('listReversed'),_0x5b9d94['registerBlockAttribute']('listReversed')),_0x45e6bd['startIndex']&&(_0x5b9d94['enableDefaultAttributesIntegration']('listStart'),_0x5b9d94['registerBlockAttribute']('listStart'));const _0x1babbc={'type':'format','content':''};_0x5b9d94['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b98ae=this['editor']['locale'];_0x5b9d94['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4b98ae,'FORMAT_LIST_REVERSED')),_0x5b9d94['descriptionFactory']['registerDescriptionCallback'](_0x1dabd6=>{const {data:_0x3c96cb}=_0x1dabd6;if(_0x3c96cb&&'listReversed'==_0x3c96cb['key'])return null==_0x3c96cb['newValue']||0x0==_0x3c96cb['newValue']&&null==_0x3c96cb['oldValue']?_0x1babbc:void 0x0;}),_0x5b9d94['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4b98ae,'FORMAT_LIST_START')),_0x5b9d94['descriptionFactory']['registerDescriptionCallback'](_0x2142ec=>{const {data:_0x28243c}=_0x2142ec;if(_0x28243c&&'listStart'==_0x28243c['key'])return null==_0x28243c['newValue']||0x1==_0x28243c['newValue']&&null==_0x28243c['oldValue']?_0x1babbc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x506146=>{if(_0x506146['batch']['isUndo'])return!0x1;let _0x1aa070=!0x1;const _0x55e678=_0x5b9d94['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x396faa=>{const _0x4b1a50=_0x5b9d94['_getAttributeKey'](_0x396faa);return'listStart'==_0x4b1a50||'listReversed'==_0x4b1a50;});for(const _0x409c96 of _0x55e678){const _0x54563b=_0x409c96['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x54563b||'customNumbered'==_0x54563b)continue;_0x5b9d94['_findSuggestions'](_0x409c96['getFirstRange'](),'attribute')['find'](_0x2e3c6f=>'listType'==_0x5b9d94['_getAttributeKey'](_0x2e3c6f['suggestion']))||(_0x506146['removeMarker'](_0x409c96['getFirstMarker']()),_0x1aa070=!0x0);}return _0x1aa070;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x376f01){const _0x52fb67=this['editor']['locale'],{data:_0x4396e3}=_0x376f01,_0x597a63={'type':'format','content':''};if(!_0x4396e3||'listStyle'!=_0x4396e3['key'])return;if(!_0x4396e3['oldValue'])return'default'==_0x4396e3['newValue']?_0x597a63:{'type':'format','content':''+c(_0x52fb67,'*Set\x20format:*\x20%0',c(_0x52fb67,this['_getTranslationKeyForListStyle'](_0x4396e3['newValue'])))};if(!_0x4396e3['newValue']){if('default'==_0x4396e3['oldValue'])return _0x597a63;let _0xcfd606=_0x376f01['head'];for(;_0xcfd606;){if(_0xcfd606['data']&&'listType'==_0xcfd606['data']['key']&&_0xcfd606['data']['newValue'])return _0x597a63;_0xcfd606=_0xcfd606['next'];}return{'type':'format','content':''+c(_0x52fb67,'*Remove\x20format:*\x20%0',c(_0x52fb67,this['_getTranslationKeyForListStyle'](_0x4396e3['oldValue'])))};}if('default'!=_0x4396e3['newValue'])return{'type':'format','content':''+c(_0x52fb67,'*Set\x20format:*\x20%0',c(_0x52fb67,this['_getTranslationKeyForListStyle'](_0x4396e3['newValue'])))};let _0x561e52=_0x376f01['head'];for(;_0x561e52;){if(_0x561e52['data']&&'listType'==_0x561e52['data']['key']&&_0x561e52['data']['newValue']&&_0x561e52['data']['oldValue'])return _0x597a63;_0x561e52=_0x561e52['next'];}return{'type':'format','content':c(_0x52fb67,'*Set\x20format:*\x20%0',c(_0x52fb67,'ELEMENT_'+_0x376f01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x373d9f=this['editor'],_0x2535f0=_0x373d9f['locale'];_0x373d9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56560c=>{if('formatBlock'!=_0x56560c['type'])return;const {data:_0x4f74fd}=_0x56560c;if(!_0x4f74fd)return;let _0x1ef736,_0x3c4732;switch(_0x4f74fd['commandName']){case'listStyle':_0x1ef736='*Change\x20to:*\x20%0',_0x3c4732={'type':'format','content':c(_0x2535f0,_0x1ef736,c(_0x2535f0,this['_getTranslationKeyForListStyle'](_0x4f74fd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ef736=_0x4f74fd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c4732={'type':'format','content':c(_0x2535f0,_0x1ef736)};break;case'listStart':_0x1ef736='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c4732={'type':'format','content':c(_0x2535f0,_0x1ef736,_0x4f74fd['commandParams'][0x0]['startIndex'])};}return _0x3c4732;});}['_getTranslationKeyForListStyle'](_0x15c093){return'ELEMENT_'+function(_0x179ab3){if(_e['includes'](_0x179ab3))return'bulleted';if(Re['includes'](_0x179ab3))return'numbered';return null;}(_0x15c093)['toUpperCase']()+'_LIST_'+_0x15c093['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x6abf95{['afterInit'](){const _0x2a4466=this['editor'];_0x2a4466['commands']['get']('emoji')&&_0x2a4466['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x6abf95{static get['requires'](){return[_0x2d7c2e];}['init'](){const _0x439b58=this['editor'],_0x26d4c9=_0x439b58['plugins']['get']('TrackChangesEditing'),_0x3ea35d=_0x439b58['commands']['get']('enter');_0x26d4c9['enableCommand']('enter',()=>{_0x439b58['model']['change'](_0x31c4dc=>{const _0x2e8d79=_0x439b58['model']['document']['selection'],_0x554b38=_0x2e8d79['getFirstPosition'](),_0x2e2a0b=_0xd0daae['fromRange'](_0x2e8d79['getFirstRange']());if(_0x3ea35d['enterBlock'](_0x31c4dc)){const _0x169bbe=_0x439b58['model']['createPositionAt'](_0x554b38['parent']['nextSibling'],0x0),_0x56c1f0=_0x31c4dc['createRange'](_0x554b38,_0x169bbe);_0x26d4c9['markInsertion'](_0x56c1f0);}else _0x31c4dc['setSelection'](_0x31c4dc['createRange'](_0x2e2a0b['end']));_0x2e2a0b['detach'](),_0x3ea35d['fire']('afterExecute',{'writer':_0x31c4dc});});}),_0x439b58['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x439b58,'split'),{'priority':'high'}),_0x439b58['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x52374a,_0x42711e,_0x49ec54)=>{const _0x2afe3d=_0x49ec54['mapper']['markerNameToElements'](_0x42711e['markerName']);if(_0x2afe3d){for(const _0x415b75 of _0x2afe3d)_0x415b75['hasClass']('ck-suggestion-marker-split')&&(_0x49ec54['mapper']['unbindElementFromMarkerName'](_0x415b75,_0x42711e['markerName']),_0x49ec54['writer']['remove'](_0x415b75));}},{'priority':'high'}),_0x439b58['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x343565,_0xc949f9,_0x6edb53)=>{_0x6edb53['options']['showSuggestionHighlights']&&Fe(_0x439b58,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x343565,_0xc949f9,_0x6edb53);},{'priority':'high'});}}class Z extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x587d39=this['editor']['plugins']['get']('TrackChangesEditing');_0x587d39['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x587d39['enableCommand']('findNext'),_0x587d39['enableCommand']('findPrevious'),_0x587d39['enableCommand']('replace'),_0x587d39['enableCommand']('replaceAll');}['handleFindCommand'](_0xdaa465,_0x42307e,_0xbe5dcf={}){const _0x2f2ff6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xdaa465(_0x37fc0f=>{let _0x429c64=('string'==typeof _0x42307e?_0x2f2ff6['findByTextCallback'](_0x42307e,_0xbe5dcf):_0x42307e)(_0x37fc0f);Array['isArray'](_0x429c64)&&(_0x429c64={'results':_0x429c64,'searchText':'string'==typeof _0x42307e?_0x42307e:''});const _0x1ef630=_0x429c64['results']['filter'](_0x97190d=>!0x1===this['_isInDeletionRange'](_0x97190d,_0x37fc0f['item']));return{..._0x429c64,'results':_0x1ef630};},_0xbe5dcf);}['_isInDeletionRange'](_0x13063c,_0x2b20ed){const _0x25e28f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b20ed,_0x13063c['start']),this['editor']['model']['createPositionAt'](_0x2b20ed,_0x13063c['end']));for(const _0x50f710 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25e28f['getIntersection'](_0x50f710['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x6abf95{['afterInit'](){const _0xc6f11=this['editor']['locale'],_0x59377b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x22fa28,commandName:_0x46ac84}of ro)this['editor']['plugins']['has'](_0x22fa28)&&(_0x59377b['enableDefaultAttributesIntegration'](_0x46ac84),_0x59377b['registerInlineAttribute'](_0x46ac84));_0x59377b['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xc6f11,'FORMAT_FONT_SIZE')),_0x59377b['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xc6f11,'FORMAT_FONT_FAMILY')),_0x59377b['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xc6f11,'FORMAT_FONT_COLOR')),_0x59377b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xc6f11,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c972f=this['editor'],_0x185dec=_0x4c972f['locale'];_0x4c972f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ceee9=>{const _0x18f3c4=_0x185dec['t'];if('formatInline'!=_0x3ceee9['type'])return;const {data:_0x3919bf}=_0x3ceee9;if(null!=_0x3919bf){if('fontSize'==_0x3919bf['commandName']){const _0x2528de=_0x3919bf['commandParams'][0x0]['value'];if(_0x2528de){const _0x6c687f=_0x18f3c4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3e80db=>_0x3e80db['model']==_0x2528de)['title'])['toLowerCase']();return{'type':'format','content':c(_0x185dec,'*Set\x20font\x20size:*\x20%0',_0x6c687f)};}return{'type':'format','content':c(_0x185dec,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3919bf['commandName']){const _0x3422a9=_0x3919bf['commandParams'][0x0]['value'];return _0x3422a9?{'type':'format','content':c(_0x185dec,'*Set\x20font\x20family:*\x20%0',_0x3422a9)}:{'type':'format','content':c(_0x185dec,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3919bf['commandName']){const _0x543bf2=_0x3919bf['commandParams'][0x0]['value'];if(_0x543bf2){const _0x3de460=_0x370301(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4e544a=>_0x4e544a['model']==_0x543bf2);let _0x3c303e=_0x543bf2,_0xdc8cfc='';return _0x3de460&&(_0x3c303e=_0x3de460['label'],_0xdc8cfc=_0x18f3c4(_0x3c303e)['toLowerCase']()),{'type':'format','content':c(_0x185dec,'*Set\x20font\x20color:*\x20%0',_0xdc8cfc)['trim'](),'color':{'value':_0x543bf2,'title':_0xdc8cfc||_0x3c303e}};}return{'type':'format','content':c(_0x185dec,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3919bf['commandName']){const _0x5f172f=_0x3919bf['commandParams'][0x0]['value'];if(_0x5f172f){const _0x2922fd=_0x370301(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a667c=>_0x5a667c['model']==_0x5f172f);let _0x3e4fcb=_0x5f172f,_0x4c1483='';return _0x2922fd&&(_0x3e4fcb=_0x2922fd['label'],_0x4c1483=_0x18f3c4(_0x3e4fcb)['toLowerCase']()),{'type':'format','content':c(_0x185dec,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c1483)['trim'](),'color':{'value':_0x5f172f,'title':_0x4c1483||_0x3e4fcb}};}return{'type':'format','content':c(_0x185dec,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x6abf95{['afterInit'](){const _0x8d7d1a=this['editor'],_0x28aa5e=_0x8d7d1a['plugins']['get']('TrackChangesEditing'),_0x54217c=_0x8d7d1a['commands']['get']('copyFormat'),_0x4b868f=_0x8d7d1a['commands']['get']('pasteFormat');_0x54217c&&_0x4b868f&&(_0x28aa5e['enableDefaultAttributesIntegration']('pasteFormat'),_0x28aa5e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x9dc0fb=this['editor'],_0x4dc209=_0x9dc0fb['locale'];_0x9dc0fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dcc45=>{if('formatBlock'!=_0x4dcc45['type']&&'formatInline'!=_0x4dcc45['type'])return;const {data:_0x5c5443}=_0x4dcc45;if(_0x5c5443&&'pasteFormat'===_0x5c5443['commandName']){const _0x5466bf=[],_0x52ed09=_0x5c5443['commandParams'][0x0];for(const [_0x1c92e5,_0x2d0e2e]of Object['entries'](_0x52ed09))_0x5466bf['push'](so(_0x9dc0fb,_0x1c92e5,_0x2d0e2e));return _0x5466bf['length']?{'type':'format','content':c(_0x4dc209,'*Set\x20format\x20to:*\x20%0',_0x5466bf['join'](',\x20'))}:{'type':'format','content':c(_0x4dc209,'*Remove\x20all\x20formatting*')};}});}}function so(_0x28a11a,_0x2bb52f,_0x554f08){const _0x2e5696=_0x28a11a['locale']['t'],_0x26dcb3=_0x2bb52f['split'](/(?=[A-Z])/)['join']('\x20'),_0x39d728=_0x2e5696(_0x26dcb3['charAt'](0x0)['toUpperCase']()+_0x26dcb3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x554f08)return _0x39d728;if('fontColor'===_0x2bb52f||'fontBackgroundColor'===_0x2bb52f){const _0x43cae8=_0x370301(_0x28a11a['config']['get']('fontColor.colors'))['find'](_0x2276a1=>_0x2276a1['model']==_0x554f08);return _0x39d728+'\x20('+(_0x43cae8?_0x2e5696(_0x43cae8['label'])['toLowerCase']():_0x554f08)+')';}if('fontSize'===_0x2bb52f&&isNaN(parseFloat(_0x554f08))){const _0x31fc38=_0x28a11a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x28a11a['config']['get']('fontSize.options'))['find'](_0x34749a=>_0x34749a['model']==_0x554f08);return _0x39d728+'\x20('+(_0x31fc38?_0x2e5696(_0x31fc38['title'])['toLowerCase']():_0x554f08)+')';}return _0x39d728+'\x20('+_0x554f08+')';}class et extends _0x6abf95{['_headingOptions'];['afterInit'](){const _0x210625=this['editor'];if(!_0x210625['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x210625['config']['get']('heading.options');const _0x42b4eb=_0x210625['locale'],_0x1f58ae=_0x210625['plugins']['get']('TrackChangesEditing');_0x1f58ae['enableDefaultAttributesIntegration']('heading');for(const _0x1f14b6 of this['_headingOptions'])'paragraph'!=_0x1f14b6['model']&&_0x1f58ae['descriptionFactory']['registerElementLabel'](_0x1f14b6['model'],_0x5fec1f=>{const _0xa3762a=this['_getHeadingLevel'](_0x1f14b6['model']);return null!==_0xa3762a?_0xfa0f22(_0x5fec1f,_0xa3762a):_0x465d27(_0x5fec1f,_0x1f14b6['title']);});function _0xfa0f22(_0x18ec1a,_0x513feb){return c(_0x42b4eb,'ELEMENT_HEADING',[_0x18ec1a,_0x513feb]);}function _0x465d27(_0x13face,_0x3d6c78){return c(_0x42b4eb,'ELEMENT_HEADING_CUSTOM',[_0x13face,_0x3d6c78]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8bf810=this['editor'],_0x326693=_0x8bf810['locale'];function _0x3865b4(_0xe5a712,_0x2d81b7){return c(_0x326693,'ELEMENT_HEADING_CUSTOM',[_0xe5a712,_0x2d81b7]);}_0x8bf810['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56633a=>{if('formatBlock'!=_0x56633a['type'])return;const {data:_0x2cef18}=_0x56633a;if(_0x2cef18&&'heading'==_0x2cef18['commandName']){const _0x10c2de=_0x2cef18['commandParams'][0x0]['value'],_0x398bc0=this['_getHeadingLevel'](_0x10c2de);if(null!==_0x398bc0)return{'type':'format','content':c(_0x326693,'*Change\x20to:*\x20%0',(_0x3fbb7e=0x1,_0x42f86a=_0x398bc0,c(_0x326693,'ELEMENT_HEADING',[_0x3fbb7e,_0x42f86a])))};const _0x2f555b=this['_headingOptions']['find'](_0x5c09bf=>_0x5c09bf['model']===_0x10c2de)['title'];return{'type':'format','content':c(_0x326693,'*Change\x20to:*\x20%0',_0x3865b4(0x1,_0x2f555b))};}var _0x3fbb7e,_0x42f86a;});}['_getHeadingLevel'](_0x27424d){const _0x3251c2=_0x27424d['match'](/^heading(\d+)/);if(_0x3251c2)return _0x3251c2[0x1];const _0x58c419=this['_headingOptions']?.['find'](_0x59db93=>_0x59db93['model']==_0x27424d);if(_0x58c419&&_0x58c419['view']){const _0x17a6ac=_0x58c419['view'],_0x1c49d8=(_0x17a6ac['name']??_0x17a6ac)['match'](/^h(\d+)/);if(_0x1c49d8)return _0x1c49d8[0x1];}return null;}}class nt extends _0x6abf95{['afterInit'](){const _0x4cf81f=this['editor'];if(!_0x4cf81f['plugins']['has']('HighlightEditing'))return;const _0x31ac42=_0x4cf81f['plugins']['get']('TrackChangesEditing'),_0x2385e1=_0x4cf81f['locale'];_0x31ac42['enableDefaultAttributesIntegration']('highlight'),_0x31ac42['registerInlineAttribute']('highlight'),_0x31ac42['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2385e1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27d727=this['editor'],_0x440cce=_0x27d727['locale'];_0x27d727['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcb770c=>{if('formatInline'!=_0xcb770c['type'])return;const {data:_0x32be75}=_0xcb770c;if(_0x32be75&&'highlight'==_0x32be75['commandName']){const _0x495ae1=_0x440cce['t'],_0x219a58=_0x32be75['commandParams'][0x0]['value'];if(_0x219a58){const _0x129d0f=_0x27d727['config']['get']('highlight.options')['find'](_0x302af8=>_0x302af8['model']==_0x219a58),_0x32b6c3=_0x495ae1(_0x129d0f['title'])['toLowerCase']();return{'type':'format','content':c(_0x440cce,'*Set\x20highlight:*\x20%0',_0x32b6c3),'color':{'value':_0x129d0f['color'],'title':_0x129d0f['title']}};}return{'type':'format','content':c(_0x440cce,'*Remove\x20highlight*',c(_0x440cce,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x6abf95{['afterInit'](){const _0x48c573=this['editor'];if(!_0x48c573['plugins']['has']('HorizontalLineEditing'))return;_0x48c573['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe8d753=_0x48c573['plugins']['get']('TrackChangesEditing'),_0x591a00=_0x48c573['locale'];_0xe8d753['descriptionFactory']['registerElementLabel']('horizontalLine',_0xc61baa=>c(_0x591a00,'ELEMENT_HORIZONTAL_LINE',_0xc61baa)),_0x48c573['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x11250b,{writer:_0x113811,options:_0x329712})=>{if(!_0x329712['showSuggestionHighlights'])return null;const _0x22b6b1=_0x113811['createContainerElement']('div'),_0x3f880f=_0x113811['createEmptyElement']('hr');return _0x113811['addClass']('ck-horizontal-line',_0x22b6b1),_0x113811['insert'](_0x113811['createPositionAt'](_0x22b6b1,0x0),_0x3f880f),_0x22b6b1;},'converterPriority':'high'});}}class ot extends _0x6abf95{['afterInit'](){const _0x4ff1e8=this['editor'];if(!_0x4ff1e8['plugins']['has']('HtmlEmbed'))return;const _0x3b35fd=_0x4ff1e8['plugins']['get']('TrackChangesEditing'),_0x31c475=_0x4ff1e8['locale'];_0x3b35fd['descriptionFactory']['registerElementLabel']('rawHtml',_0x3177aa=>c(_0x31c475,'ELEMENT_HTML_EMBED',_0x3177aa)),_0x3b35fd['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3b35fd['registerBlockAttribute']('value'),_0x3b35fd['descriptionFactory']['registerDescriptionCallback'](_0x342f47=>{if('attribute'!=_0x342f47['type'])return;const {data:_0x33a1da}=_0x342f47;if(_0x33a1da&&'value'==_0x33a1da['key']&&_0x342f47['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x571fe3=c(_0x31c475,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x31c475,'*Change\x20%0\x20content*',_0x571fe3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x161f75=this['editor'],_0x2088b5=_0x161f75['locale'];_0x161f75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eee10=>{if('formatBlock'!=_0x4eee10['type'])return;const {data:_0x52bbe8}=_0x4eee10;if(_0x52bbe8&&'htmlEmbed'==_0x52bbe8['commandName']){const _0x5c6f01=c(_0x2088b5,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2088b5,'*Change\x20%0\x20content*',_0x5c6f01)};}});}}class rt extends _0x6abf95{['afterInit'](){const _0x4f6ba4=this['editor'];if(!_0x4f6ba4['plugins']['has']('ImageEditing'))return;const _0x63b915=_0x4f6ba4['plugins']['get']('TrackChangesEditing'),_0x39dd78=_0x4f6ba4['plugins']['get']('ImageUtils'),_0x4e32b8=_0x4f6ba4['locale'];_0x63b915['enableCommand']('insertImage'),_0x63b915['descriptionFactory']['registerElementLabel']('imageBlock',_0x1f24d4=>c(_0x4e32b8,'ELEMENT_IMAGE',_0x1f24d4)),_0x63b915['descriptionFactory']['registerElementLabel']('imageInline',_0x26c108=>c(_0x4e32b8,'ELEMENT_INLINE_IMAGE',_0x26c108)),_0x63b915['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4e32b8,'ELEMENT_CAPTION')),_0x4f6ba4['plugins']['has']('ImageUploadEditing')&&_0x63b915['enableCommand']('uploadImage'),_0x4f6ba4['plugins']['has']('ImageBlockEditing')&&_0x4f6ba4['plugins']['has']('ImageInlineEditing')&&(_0x63b915['enableCommand']('imageTypeInline',(_0x9888f4,_0x3e558d)=>{const _0x5afdc9=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']);_0x4f6ba4['model']['change'](()=>{_0x63b915['markBlockFormat'](_0x5afdc9,{'commandName':'imageTypeInline','commandParams':[_0x3e558d]},[],'convertBlockImageToInline');});}),_0x63b915['enableCommand']('imageTypeBlock',(_0x4181f3,_0x18d837)=>{_0x4f6ba4['model']['change'](_0x5c2f22=>{let _0x287243=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']),_0x22dfa4=_0x5c2f22['createRangeOn'](_0x287243);const _0x1ba634=_0xc7aebc['fromPosition'](_0x22dfa4['start'],'toPrevious'),_0x1430c2=_0xc7aebc['fromPosition'](_0x22dfa4['end'],'toNext');_0x63b915['forceDefaultExecution'](()=>_0x4181f3(_0x18d837)),_0x287243=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']),_0x22dfa4=_0x5c2f22['createRangeOn'](_0x287243);const _0x2aae19=_0x5c2f22['createRange'](_0x1ba634,_0x1430c2);_0x1ba634['detach'](),_0x1430c2['detach'](),_0x63b915['markBlockFormat'](_0x287243,{'commandName':'imageTypeInline','commandParams':[_0x18d837]},[],'convertInlineImageToBlock'),_0x2aae19['start']['isBefore'](_0x22dfa4['start'])&&_0x63b915['markInsertion'](_0x5c2f22['createRange'](_0x2aae19['start'],_0x22dfa4['start']),'convertInlineImageToBlock'),_0x22dfa4['end']['isBefore'](_0x2aae19['end'])&&_0x63b915['markInsertion'](_0x5c2f22['createRange'](_0x22dfa4['end'],_0x2aae19['end']),'convertInlineImageToBlock');});}),_0x63b915['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x63b915['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x63b915['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x63b915['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x63b915['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x63b915['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x45dadb])=>{const _0x51e9bb=_0x63b915['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x45777d=_0x45dadb['start'],_0x55a9d8=_0x45dadb['end'];const _0x6fc5fc=_0x4f6ba4['model']['schema']['getNearestSelectionRange'](_0x45777d,'backward'),_0x24f9e7=_0x4f6ba4['model']['schema']['getNearestSelectionRange'](_0x55a9d8,'forward');_0x6fc5fc['isCollapsed']&&(_0x45777d=_0x6fc5fc['start']),_0x24f9e7['isCollapsed']&&(_0x55a9d8=_0x24f9e7['end']),_0x51e9bb([_0x4f6ba4['model']['createRange'](_0x45777d,_0x55a9d8)]);}),_0x63b915['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2b3727),_0x63b915['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2b3727)),_0x4f6ba4['plugins']['has']('ImageCaptionEditing')&&(_0x63b915['enableCommand']('toggleImageCaption',(_0x405c19,_0x2c8a93)=>{const _0x5cb542=_0x4f6ba4['plugins']['get']('ImageCaptionUtils');let _0x4fa3ca=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']),_0x98a51=_0x5cb542['getCaptionFromImageModelElement'](_0x4fa3ca);_0x4f6ba4['model']['change'](()=>{if(_0x98a51)return void _0x63b915['markDeletion'](_0x4f6ba4['model']['createRangeOn'](_0x98a51));const _0x61e944=_0x39dd78['isBlockImage'](_0x4fa3ca);_0x405c19(_0x2c8a93),_0x4fa3ca=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']),_0x98a51=_0x5cb542['getCaptionFromImageModelElement'](_0x4fa3ca),_0x63b915['markInsertion'](_0x4f6ba4['model']['createRangeOn'](_0x98a51),_0x61e944?null:'imageCaption');});}),_0x63b915['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2b3727));const _0x11934c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3eb7bc(_0x75b004,_0x23ae47){const _0x42ec62=_0x11934c['findIndex'](({type:_0x4b1a64,subType:_0x4cbc76})=>_0x75b004['type']==_0x4b1a64&&_0x75b004['subType']==_0x4cbc76),_0x1d09fa=_0x11934c['findIndex'](({type:_0x596a0e,subType:_0x31374e})=>_0x23ae47['type']==_0x596a0e&&_0x23ae47['subType']==_0x31374e);if(_0x42ec62<0x0||_0x1d09fa<0x0)return!0x1;const _0x6a5764=_0x75b004['getFirstRange'](),_0x1b0af5=_0x23ae47['getFirstRange']();if((0x0==_0x42ec62||0x1==_0x42ec62)&&0x2==_0x1d09fa&&_0x6a5764['isIntersecting'](_0x1b0af5))return!0x0;if(0x2==_0x42ec62&&0x3==_0x1d09fa){const _0x38af68=_0x63b915['_findSuggestions'](_0x6a5764,'insertion')['filter'](({suggestion:_0x2448e5,meta:_0x59f97a})=>_0x59f97a['isOwn']&&'convertInlineImageToBlock'==_0x2448e5['subType']);if(_0x38af68['length']>0x1&&_0x1b0af5['end']['isEqual'](_0x6a5764['start']))return!0x0;if(0x1==_0x38af68['length']&&(_0x6a5764['start']['isEqual'](_0x1b0af5['end'])||_0x6a5764['end']['isEqual'](_0x1b0af5['start'])))return!0x0;}if(0x3==_0x42ec62&&0x3==_0x1d09fa&&_0x6a5764['start']['isBefore'](_0x1b0af5['start'])){const _0x31cc07=_0x6a5764['end']['nodeAfter'],_0x3d86cb=_0x1b0af5['start']['nodeBefore'];return _0x39dd78['isBlockImage'](_0x31cc07)&&_0x31cc07===_0x3d86cb;}return!0x1;}function _0x2b3727(_0x17e97d,_0x12c3f0){return _0x3eb7bc(_0x17e97d,_0x12c3f0)?[_0x17e97d,_0x12c3f0]:_0x3eb7bc(_0x12c3f0,_0x17e97d)?[_0x12c3f0,_0x17e97d]:null;}_0x4f6ba4['plugins']['has']('ImageResize')&&(_0x63b915['enableDefaultAttributesIntegration']('resizeImage'),_0x63b915['registerBlockAttribute']('resizedWidth'),_0x63b915['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4e32b8,'FORMAT_IMAGE_SIZE'))),_0x4f6ba4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x63b915['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x63b915['registerBlockAttribute']('alt')),_0x4f6ba4['plugins']['has']('PictureEditing')&&(_0x63b915['registerBlockAttribute']('sources'),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x2078d2=>{if('attribute'!=_0x2078d2['type'])return;const {data:_0x2e240f}=_0x2078d2;return _0x2e240f&&'sources'==_0x2e240f['key']?{'type':'format','content':''}:void 0x0;})),_0x4f6ba4['plugins']['has']('ImageSizeAttributes')&&(_0x63b915['registerBlockAttribute']('width'),_0x63b915['registerBlockAttribute']('height'),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x2eb84a=>{if('attribute'!=_0x2eb84a['type'])return;const {data:_0x4ce356}=_0x2eb84a;return!_0x4ce356||'width'!=_0x4ce356['key']&&'height'!=_0x4ce356['key']?void 0x0:{'type':'format','content':''};})),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x2b39e0=>{if(!!_0x11934c['find'](({type:_0x4372ec,subType:_0x25422d})=>_0x2b39e0['type']==_0x4372ec&&_0x2b39e0['subType']==_0x25422d))return _0x2b39e0['previous']?{}:void 0x0;}),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0xbc3186=>{if('insertion'==_0xbc3186['type']||'deletion'==_0xbc3186['type']){const _0x4e9c18=_0xbc3186['getContainedElement']();if(_0x4e9c18&&_0x4e9c18['is']('element','caption'))return{'type':'insertion'==_0xbc3186['type']?'addObject':'removeObject','element':_0x4e9c18,'quantity':0x1};}}),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x10554c=>'formatBlock'==_0x10554c['type']&&'convertInlineImageToBlock'==_0x10554c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x10554c['type']&&'convertBlockImageToInline'==_0x10554c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x20c554=>{if('attribute'!=_0x20c554['type'])return;const {data:_0x22d2a7}=_0x20c554;if(!_0x22d2a7||'alt'!=_0x22d2a7['key'])return;const _0x4ba853=_0x22d2a7['newValue'];return _0x4ba853?{'type':'format','content':c(_0x4e32b8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4ba853+'\x22')}:{'type':'format','content':c(_0x4e32b8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11d4c5=this['editor'],_0x2ae19d=_0x11d4c5['locale'];_0x11d4c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x312a1e=>{if('formatBlock'!=_0x312a1e['type']&&'formatInline'!=_0x312a1e['type'])return;const {data:_0x47d87f}=_0x312a1e;if(_0x47d87f){if('imageTextAlternative'==_0x47d87f['commandName']){const _0x10b2b1=_0x47d87f['commandParams'][0x0]['newValue'];return _0x10b2b1?{'type':'format','content':c(_0x2ae19d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10b2b1+'\x22')}:{'type':'format','content':c(_0x2ae19d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x47d87f['commandName']){const _0x1461da=_0x47d87f['commandParams'][0x0]['width'];return _0x1461da?{'type':'format','content':c(_0x2ae19d,'*Set\x20image\x20width:*\x20%0',_0x1461da)}:{'type':'format','content':c(_0x2ae19d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xf69c0d=this['editor']['locale'],_0x4b7a7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b7a7d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b7a7d['registerBlockAttribute']('src'),_0x4b7a7d['descriptionFactory']['registerDescriptionCallback'](_0x423d78=>{if('attribute'!=_0x423d78['type'])return;const {data:_0x4ea1d9}=_0x423d78;return _0x4ea1d9&&'src'==_0x4ea1d9['key']?_0x4ea1d9['newValue']&&_0x4ea1d9['oldValue']?{'type':'format','content':c(_0xf69c0d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2ca4e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ca4e4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2ca4e4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ca4e4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2ca4e4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12ecb2=this['editor'],_0x3d2299=_0x12ecb2['locale'];_0x12ecb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x69f497=>{if('formatBlock'!=_0x69f497['type']&&'formatInline'!=_0x69f497['type'])return;const {data:_0x30339b}=_0x69f497;if(!_0x30339b||'replaceImageSource'!=_0x30339b['commandName'])return;return{'type':'format','content':c(_0x3d2299,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x6abf95{['afterInit'](){const _0x5c781a=this['editor'];if(!_0x5c781a['plugins']['has']('ImageStyleEditing'))return;const _0x2ea31f=_0x5c781a['plugins']['get']('TrackChangesEditing'),_0x3ccd3a=_0x5c781a['plugins']['get']('ImageUtils'),_0xc182e5={};_0x2ea31f['enableCommand']('imageStyle',(_0x52d1dd,_0x6f36a3)=>{const _0x53c77a=_0x5c781a['plugins']['get']('Users')['me'],_0x11e2f4=_0x5c781a['commands']['get']('imageStyle');let _0x24f095=_0x3ccd3a['getClosestSelectedImageElement'](_0x5c781a['model']['document']['selection']),_0x2bb008=_0x5c781a['model']['createRangeOn'](_0x24f095),_0x5f427e=_0x11e2f4['value'];if(_0x5f427e==_0x6f36a3['value'])return;const _0x1fc571={'commandName':'imageStyle','commandParams':[_0x6f36a3],'formatGroupId':_0x5d446a()};_0x5c781a['model']['change'](()=>{if(_0x2ea31f['getSuggestions']()['filter'](_0x211d38=>_0x211d38['isInContent']&&_0x53c77a==_0x211d38['author']&&('formatBlock'==_0x211d38['type']||'formatInline'==_0x211d38['type'])&&('imageStylePreApply'==_0x211d38['subType']||'imageStylePostApply'==_0x211d38['subType'])&&_0x211d38['getFirstRange']()['isEqual'](_0x2bb008))['forEach'](_0x2b7f2b=>_0x2ea31f['discardSuggestion'](_0x2b7f2b['head'])),_0x24f095=_0x3ccd3a['getClosestSelectedImageElement'](_0x5c781a['model']['document']['selection']),_0x2bb008=_0x5c781a['model']['createRangeOn'](_0x24f095),_0x11e2f4['refresh'](),_0x5c781a['commands']['get']('imageTypeInline')['refresh'](),_0x5c781a['commands']['get']('imageTypeBlock')['refresh'](),_0x5f427e=_0x11e2f4['value'],_0x5f427e!=_0x6f36a3['value'])return _0x3ccd3a['isInlineImage'](_0x24f095)&&_0x11e2f4['shouldConvertImageType'](_0x6f36a3['value'],_0x24f095)?(_0x52d1dd({..._0x6f36a3,'setImageSizes':!0x1}),_0x24f095=_0x3ccd3a['getClosestSelectedImageElement'](_0x5c781a['model']['document']['selection']),void _0x2ea31f['markBlockFormat'](_0x24f095,{..._0x1fc571,'commandReversedParams':[{'value':_0x5f427e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3ccd3a['isBlockImage'](_0x24f095)?_0x2ea31f['markBlockFormat'](_0x24f095,_0x1fc571,[],'imageStylePostApply'):_0x2ea31f['markInlineFormat'](_0x2bb008,_0x1fc571,'imageStylePostApply'));});});for(const _0x53fd9a of _0x5c781a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xc182e5[_0x53fd9a['name']]=_0x53fd9a['title']['toLowerCase']();_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x92d0f4])=>{_0x3ccd3a['setImageNaturalSizeAttributes'](_0x92d0f4['getContainedElement']());}),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x22acc7,_0x515293)=>{_0x2ea31f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x22acc7,{'commandName':_0x515293['commandName'],'commandParams':_0x515293['commandReversedParams']});}),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1047f4,_0x547977){if(_0x15efd6(_0x1047f4,_0x547977))return[_0x1047f4,_0x547977];if(_0x15efd6(_0x547977,_0x1047f4))return[_0x547977,_0x1047f4];return null;});const _0x3e81c6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x15efd6(_0x219d58,_0x16377e){const _0x2b4ad1=_0x3e81c6['findIndex'](({type:_0x5c1502,subType:_0x40b7b6})=>_0x219d58['type']==_0x5c1502&&_0x219d58['subType']==_0x40b7b6),_0x300d07=_0x3e81c6['findIndex'](({type:_0x5547e4,subType:_0x45da81})=>_0x16377e['type']==_0x5547e4&&_0x16377e['subType']==_0x45da81);if(_0x2b4ad1<0x0||_0x300d07<0x0)return!0x1;const _0x119434=_0x219d58['getFirstRange'](),_0x328695=_0x16377e['getFirstRange']();if((0x0==_0x2b4ad1||0x1==_0x2b4ad1)&&0x2==_0x300d07&&_0x119434['isIntersecting'](_0x328695))return!0x0;if(0x2==_0x2b4ad1&&0x3==_0x300d07){const _0x9f208a=_0x2ea31f['_findSuggestions'](_0x119434,'insertion')['filter'](({suggestion:_0x5b507f,meta:_0x4b49bf})=>_0x4b49bf['isOwn']&&'convertInlineImageToBlock'==_0x5b507f['subType']);if(_0x9f208a['length']>0x1&&_0x328695['end']['isEqual'](_0x119434['start']))return!0x0;if(0x1==_0x9f208a['length']&&(_0x119434['start']['isEqual'](_0x328695['end'])||_0x119434['end']['isEqual'](_0x328695['start'])))return!0x0;}if(0x3==_0x2b4ad1&&0x3==_0x300d07&&_0x119434['start']['isBefore'](_0x328695['start'])){const _0x5dcff7=_0x119434['end']['nodeAfter'],_0x2e09bd=_0x328695['start']['nodeBefore'];return _0x3ccd3a['isBlockImage'](_0x5dcff7)&&_0x5dcff7===_0x2e09bd;}return!0x1;}_0x5c781a['model']['document']['registerPostFixer'](()=>{let _0xc218e6=!0x1;const _0x2b8cc9=Array['from'](_0x5c781a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2921ca,data:_0x208d48}of _0x2b8cc9){const {group:_0x24e3e4,type:_0x1c6baa,subType:_0x1ccf1b,id:_0x4ca300}=_0x2ea31f['_splitMarkerName'](_0x2921ca);if('suggestion'==_0x24e3e4&&_0x2ea31f['hasSuggestion'](_0x4ca300)){if('formatBlock'==_0x1c6baa&&('imageStylePreApply'==_0x1ccf1b||'imageStylePostApply'==_0x1ccf1b)){const _0x628b56=_0x2ea31f['getSuggestion'](_0x4ca300);if(_0x208d48['newRange']){const _0x5ee0ae=_0x628b56['getFirstRange']()['getContainedElement']();if(_0x3ccd3a['isBlockImage'](_0x5ee0ae))continue;_0x2ea31f['discardSuggestion'](_0x628b56),_0xc218e6=!0x0;}}if('insertion'==_0x1c6baa&&'imageCaption'==_0x1ccf1b&&!_0x208d48['newRange']){const _0x136d0b=_0x2ea31f['getSuggestion'](_0x4ca300);_0x136d0b['next']&&_0x136d0b['next']['isInContent']&&(_0x2ea31f['discardSuggestion'](_0x136d0b['next']),_0xc218e6=!0x0);}}}return _0xc218e6;}),this['_registerLegacyDescription'](_0xc182e5);}['_registerLegacyDescription'](_0x498e4d){const _0x2beb9c=this['editor'],_0x371289=_0x2beb9c['locale'];_0x2beb9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce602=>{if('formatBlock'!=_0x4ce602['type']&&'formatInline'!=_0x4ce602['type'])return;const {data:_0x4fbabe}=_0x4ce602;if(!_0x4fbabe||'imageStyle'!=_0x4fbabe['commandName'])return;const _0x1d2a4a=_0x4fbabe['commandParams'][0x0]['value'];return _0x186948('side'===_0x1d2a4a?c(_0x371289,'FORMAT_SIDE_IMAGE'):_0x498e4d[_0x1d2a4a]||_0x1d2a4a);function _0x186948(_0x371452){return{'type':'format','content':c(_0x371289,'*Format:*\x20%0',_0x371452)};}});}}class ut extends _0x6abf95{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2ba062){super(_0x2ba062),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x54afd1=this['editor'],_0x4c76ac=_0x54afd1['commands']['get']('importWord'),_0x3a7740=_0x54afd1['commands']['get']('trackChanges');_0x4c76ac&&(_0x4c76ac['on']('execute',(_0x43dcd0,[,_0x3413b3])=>{this['_trackChangesValueDuringImport']=_0x3a7740['value'],_0x3413b3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c76ac,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c76ac,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3a7740['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x54afd1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4fa777,_0x22222c){const {suggestions:_0xc6a7e2}=_0x22222c,_0x3298f7=this['editor']['commands']['get']('trackChanges'),_0xf861f9=_0x3298f7['value'];this['_trackChangesValueDuringImport']!==_0xf861f9&&(_0x3298f7['execute'](),this['_trackChangesExecuted']=!0x0),_0xc6a7e2&&_0xc6a7e2['forEach'](({id:_0x2e39e3,type:_0x2defb1,author:_0x350ddd,created_at:_0x3609c7})=>{const _0x24a39d={'id':_0x2e39e3,'type':_0x2defb1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x350ddd,'createdAt':_0x3609c7?new Date(_0x3609c7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x24a39d);});}}class ft extends _0x6abf95{['afterInit'](){const _0x461846=this['editor'],_0x84a985=_0x461846['plugins']['get']('TrackChangesEditing');if(_0x461846['plugins']['has']('IndentEditing')&&(_0x84a985['enableCommand']('indent'),_0x84a985['enableCommand']('outdent')),_0x461846['plugins']['has']('IndentBlock')){for(const _0xa76572 of['indentBlock','outdentBlock'])_0x84a985['enableDefaultAttributesIntegration'](_0xa76572);}const _0x3d7934=_0x461846['locale'];_0x84a985['registerBlockAttribute']('blockIndent'),_0x84a985['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x3d7934,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0317=this['editor'],_0x4f155d=_0x4c0317['locale'],_0x3bebd5=_0x4c0317['plugins']['get']('TrackChangesEditing');_0x3bebd5['descriptionFactory']['registerDescriptionCallback'](_0x15f6c3=>{if('formatBlock'!=_0x15f6c3['type'])return;const {data:_0x2b1668}=_0x15f6c3;if(!_0x2b1668)return;if('indentBlock'!=_0x2b1668['commandName']&&'outdentBlock'!=_0x2b1668['commandName'])return;const _0x195b09=_0x15f6c3['getItems']()[0x0],_0x1d1e11=_0x3bebd5['descriptionFactory']['getItemLabel'](_0x195b09);return'indentBlock'==_0x2b1668['commandName']?{'type':'format','content':c(_0x4f155d,'*Indent:*\x20%0',_0x1d1e11)}:'outdentBlock'==_0x2b1668['commandName']?{'type':'format','content':c(_0x4f155d,'*Outdent:*\x20%0',_0x1d1e11)}:void 0x0;});}}class ht extends _0x6abf95{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x6abf95{['afterInit'](){const _0x257618=this['editor'];if(!_0x257618['plugins']['has']('LinkEditing'))return;const _0x405c4d=_0x257618['plugins']['get']('TrackChangesEditing'),_0x49569b=_0x257618['commands']['get']('link');_0x405c4d['enableDefaultAttributesIntegration']('link'),_0x405c4d['enableDefaultAttributesIntegration']('unlink'),_0x405c4d['registerInlineAttribute']('linkHref');for(const _0x4115bb of _0x49569b['manualDecorators'])_0x405c4d['registerInlineAttribute'](_0x4115bb['id']),_0x405c4d['descriptionFactory']['registerAttributeLabel'](_0x4115bb['id'],'link\x20('+_0x4115bb['label']['toLowerCase']()+')');_0x405c4d['descriptionFactory']['registerDescriptionCallback'](_0x54013b=>{if('attribute'!=_0x54013b['type'])return;const {data:_0x163baa}=_0x54013b;if(!_0x163baa||'linkHref'!=_0x163baa['key'])return;const _0x196aee=_0x163baa['newValue'],_0x1229f3=_0x257618['locale'];return{'type':'format','content':null==_0x196aee?c(_0x1229f3,'*Remove\x20link*'):c(_0x1229f3,'*Set\x20link:*\x20%0','\x22'+_0x196aee+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf11914=this['editor'],_0x47f7d2=_0xf11914['locale'];_0xf11914['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6b18e4=>{if('formatInline'!=_0x6b18e4['type'])return;const {data:_0x4fbde4}=_0x6b18e4;if(_0x4fbde4){if('link'==_0x4fbde4['commandName']){const _0x3bce47=_0x4fbde4['commandParams'][0x0];return{'type':'format','content':c(_0x47f7d2,'*Set\x20link:*\x20%0','\x22'+_0x3bce47+'\x22')};}return'unlink'==_0x4fbde4['commandName']?{'type':'format','content':c(_0x47f7d2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x6abf95{['afterInit'](){const _0x1145d9=this['editor'],_0x2721b6=_0x1145d9['locale'];if(!_0x1145d9['plugins']['has']('LegacyListEditing'))return;const _0xd7e31=_0x1145d9['plugins']['get']('TrackChangesEditing'),_0xcd562e=_0x1145d9['plugins']['has']('LegacyTodoListEditing');function _0x13f751(_0x1fe633){return()=>{const _0x9e26c8=_0x1145d9['model']['document']['selection'],_0x1f007b=_0x1145d9['commands']['get'](_0x1fe633);if(_0x1f007b['value'])return void _0x1145d9['execute']('paragraph',{});const _0x3ce4c5=_0x1fe633['slice'](0x0,-0x4),_0x3ded17=function(_0x393585,_0x7a0684,_0x149c6f){let _0xf73ec9=Array['from'](_0x393585)['filter'](_0x3ab255=>function(_0x44f152,_0x5e9bea){return _0x5e9bea['checkChild'](_0x44f152['parent'],'listItem')&&!_0x5e9bea['isObject'](_0x44f152);}(_0x3ab255,_0x149c6f));_0xf73ec9=_0xf73ec9['filter'](_0x13351e=>!_0x13351e['is']('element','listItem')||_0x13351e['getAttribute']('listType')!=_0x7a0684);const _0x2e7555=new Set();for(const _0x47a8e5 of _0xf73ec9)_0x47a8e5['is']('element','listItem')?_0x2e7555['add'](Le(_0x47a8e5)):_0x2e7555['add'](_0x47a8e5);return Array['from'](_0x2e7555);}(_0x9e26c8['getSelectedBlocks'](),_0x3ce4c5,_0x1145d9['model']['schema']);_0x1145d9['model']['change'](()=>{for(const _0x34e28f of _0x3ded17)_0xd7e31['markBlockFormat'](_0x34e28f,{'commandName':_0x1fe633,'commandParams':[{'forceValue':!_0x1f007b['value']}],'formatGroupId':'blockName'},Ee(_0x34e28f));});};}function _0x2be4f9(_0x33430b){return()=>{const _0x49afe8=function(_0x5ee316){let _0x5e9e1d=Array['from'](_0x5ee316);const _0x3a3528=_0x5e9e1d['findIndex'](_0x4cf2b5=>'listItem'!=_0x4cf2b5['name']);return _0x3a3528>-0x1&&(_0x5e9e1d=_0x5e9e1d['slice'](0x0,_0x3a3528)),_0x5e9e1d;}(_0x1145d9['model']['document']['selection']['getSelectedBlocks']()),_0x531ca9=_0x1145d9['model']['createRange'](_0x1145d9['model']['createPositionAt'](_0x49afe8[0x0],'before'),_0x1145d9['model']['createPositionAt'](_0x49afe8[_0x49afe8['length']-0x1],'end'));_0x1145d9['model']['change'](()=>{_0xd7e31['markBlockFormat'](_0x531ca9,{'commandName':_0x33430b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5943b5){const _0x46469a=new Set();for(const _0x3a182b of _0x5943b5){let _0xca8e58=_0x3a182b['nextSibling'];for(;_0xca8e58&&_0xca8e58['getAttribute']('listIndent')>_0x3a182b['getAttribute']('listIndent');)_0x46469a['add'](_0xca8e58),_0xca8e58=_0xca8e58['nextSibling'];}return Array['from'](_0x46469a);}(_0x49afe8));});};}_0xd7e31['enableCommand']('numberedList',_0x13f751('numberedList')),_0xd7e31['enableCommand']('bulletedList',_0x13f751('bulletedList')),_0xcd562e&&_0xd7e31['enableCommand']('todoList',_0x13f751('todoList')),_0xd7e31['enableCommand']('indentList',_0x2be4f9('indentList')),_0xd7e31['enableCommand']('outdentList',_0x2be4f9('outdentList')),_0xcd562e&&_0xd7e31['enableCommand']('checkTodoList',()=>{const _0x155f3c=_0x1145d9['commands']['get']('checkTodoList'),_0x33a6eb=Array['from'](_0x155f3c['_selectedElements']);_0x33a6eb['filter'](_0x20ceb2=>_0x20ceb2['getAttribute']('todoListChecked')!=_0x155f3c['value']),_0x1145d9['model']['change'](()=>{for(const _0x5315dc of _0x33a6eb)_0xd7e31['markBlockFormat'](_0x5315dc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x155f3c['value']}]});});}),_0xd7e31['descriptionFactory']['registerElementLabel']('listItem',_0xe21780=>c(_0x2721b6,'ELEMENT_LIST_ITEM',_0xe21780)),_0xd7e31['descriptionFactory']['registerDescriptionCallback'](_0x4533d3=>{if('formatBlock'!=_0x4533d3['type']&&'formatInline'!=_0x4533d3['type'])return;const {data:_0x5c54e9}=_0x4533d3;if(_0x5c54e9){if('numberedList'==_0x5c54e9['commandName']||'bulletedList'==_0x5c54e9['commandName']||'todoList'==_0x5c54e9['commandName'])switch(_0x5c54e9['commandName']['replace']('List','')){case'bulleted':return _0x369548(c(_0x2721b6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x369548(c(_0x2721b6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x369548(c(_0x2721b6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5c54e9['commandName'])return{'type':'format','content':c(_0x2721b6,'*Indent:*\x20%0',c(_0x2721b6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5c54e9['commandName'])return{'type':'format','content':c(_0x2721b6,'*Outdent:*\x20%0',c(_0x2721b6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5c54e9['commandName'])return _0x5c54e9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2721b6,'*Check\x20item*')}:{'type':'format','content':c(_0x2721b6,'*Uncheck\x20item*')};}function _0x369548(_0xd4f424){return{'type':'format','content':c(_0x2721b6,'*Change\x20to:*\x20%0',_0xd4f424)};}});}}function Le(_0x244265){const _0x52b31e=_0x244265['getAttribute']('listIndent');if(0x0==_0x52b31e)return _0x244265;let _0x24a6fa=_0x244265;for(;_0x244265['previousSibling']&&_0x244265['previousSibling']['is']('element','listItem');){const _0x2728f2=_0x244265['previousSibling']['getAttribute']('listIndent');if(_0x2728f2==_0x52b31e)_0x24a6fa=_0x244265['previousSibling'];else{if(_0x2728f2<_0x52b31e)break;}_0x244265=_0x244265['previousSibling'];}return _0x24a6fa;}function Ee(_0x18c21c){const _0x1c84e9=[];if(_0x18c21c['is']('element','listItem')&&_0x18c21c['getAttribute']('listIndent')>0x0){let _0x4dfacf=_0x18c21c['nextSibling'];for(;_0x4dfacf&&'listItem'==_0x4dfacf['name']&&_0x4dfacf['getAttribute']('listIndent')==_0x18c21c['getAttribute']('listIndent');)_0x1c84e9['push'](_0x4dfacf),_0x4dfacf=_0x4dfacf['nextSibling'];}return _0x1c84e9;}class Q extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1b7463=this['editor']['config']['get']('list.properties'),_0x4c4b01=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b7463['styles']&&_0x4c4b01['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1b7463['reversed']&&_0x4c4b01['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1b7463['startIndex']&&_0x4c4b01['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4c4b01['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x419167,_0x9a7b2b={}){const _0x2abd05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50501b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2abd05['markMultiRangeBlockFormat'](_0x50501b,{'commandName':'listStyle','commandParams':[{'type':_0x9a7b2b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15cb36,_0x4265c4={}){const _0x68cf74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113143=this['_getSuggestionBlocks'](_0x580c46=>_0x580c46['is']('element','listItem')&&'numbered'===_0x580c46['getAttribute']('listType'));if(_0x113143['length']<0x1)return;const _0x594303=_0x113143['map'](_0x2d765c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d765c,'before'),this['editor']['model']['createPositionAt'](_0x2d765c,0x0)));this['editor']['model']['change'](()=>{_0x68cf74['markMultiRangeBlockFormat'](_0x594303,{'commandName':'listReversed','commandParams':[{'reversed':_0x4265c4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xeacbae,_0x5f34c1={}){const _0x1fb9fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd904=this['_getSuggestionBlocks'](_0x2c0b97=>_0x2c0b97['is']('element','listItem')&&'numbered'===_0x2c0b97['getAttribute']('listType'));if(_0x1dd904['length']<0x1)return;const _0x1475ab=_0x1dd904['map'](_0x7912d5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7912d5,'before'),this['editor']['model']['createPositionAt'](_0x7912d5,0x0)));this['editor']['model']['change'](()=>{_0x1fb9fa['markMultiRangeBlockFormat'](_0x1475ab,{'commandName':'listStart','commandParams':[{'startIndex':_0x5f34c1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x179da3){if('formatBlock'!=_0x179da3['type']&&'formatInline'!=_0x179da3['type'])return;const _0x91e765=this['editor']['locale'],{data:_0x177418}=_0x179da3;if(!_0x177418)return;let _0x4aa985,_0x593f65;switch(_0x177418['commandName']){case'listStyle':_0x4aa985='*Change\x20to:*\x20%0',_0x593f65={'type':'format','content':c(_0x91e765,_0x4aa985,c(_0x91e765,this['_getTranslationKeyForListStyle'](_0x177418['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4aa985=_0x177418['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x593f65={'type':'format','content':c(_0x91e765,_0x4aa985)};break;case'listStart':_0x4aa985='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x593f65={'type':'format','content':c(_0x91e765,_0x4aa985,_0x177418['commandParams'][0x0]['startIndex'])};}return _0x593f65;}['_getSuggestionBlocksForListStyle'](){const _0x3b6766=this['editor']['plugins']['get']('LegacyListUtils');let _0x272cf0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x272cf0[0x0]?.['is']('element','listItem')&&_0x272cf0['unshift'](..._0x3b6766['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x272cf0[_0x272cf0['length']-0x1]?.['is']('element','listItem')&&_0x272cf0['push'](..._0x3b6766['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x272cf0=[...new Set(_0x272cf0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x272cf0=_0x272cf0['filter'](_0x2881f0=>_0x2881f0['is']('element','listItem'))),_0x272cf0;}['_getSuggestionBlocks'](_0x59dd06){const _0x212caf=this['editor']['plugins']['get']('LegacyListUtils');let _0x32637e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x59dd06)['map'](_0x56d045=>{const _0x2ffd18=this['editor']['model']['createPositionAt'](_0x56d045,0x0);return[..._0x212caf['getSiblingNodes'](_0x2ffd18,'backward'),..._0x212caf['getSiblingNodes'](_0x2ffd18,'forward')];})['flat']();return _0x32637e=[...new Set(_0x32637e)],_0x32637e;}['_getTranslationKeyForListStyle'](_0x3c89db){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3c89db)||'default')['toUpperCase']()+'_LIST_'+_0x3c89db['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x6abf95{['afterInit'](){const _0x21564e=this['editor'];if(!_0x21564e['plugins']['has']('MediaEmbedEditing'))return;const _0x183c9a=_0x21564e['plugins']['get']('TrackChangesEditing'),_0xb6c321=_0x21564e['locale'];_0x183c9a['enableCommand']('mediaEmbed'),_0x183c9a['descriptionFactory']['registerElementLabel']('media',_0x8e15b8=>c(_0xb6c321,'ELEMENT_MEDIA',_0x8e15b8)),_0x21564e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x495020,{writer:_0x28397a,options:_0x402844})=>{if(_0x402844['showSuggestionHighlights'])return _0x28397a['createEmptyElement']('div');},'converterPriority':'high'}),_0x21564e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x59333f,_0xbbf265,_0x1c44f9)=>{_0x1c44f9['options']['showSuggestionHighlights']&&_0x59333f['stop']();},{'priority':'high'});}}class pt extends _0x6abf95{['afterInit'](){const _0x208b9e=this['editor'];_0x208b9e['plugins']['has']('MentionEditing')&&_0x208b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x6abf95{['afterInit'](){const _0x26f68f=this['editor'];if(!_0x26f68f['plugins']['has']('MergeFieldsEditing'))return;const _0x312f3f=_0x26f68f['plugins']['get']('TrackChangesEditing'),_0x3a4739=_0x26f68f['locale'];_0x312f3f['enableCommand']('insertMergeField'),_0x312f3f['enableCommand']('insertMergeFieldBlock'),_0x312f3f['enableCommand']('insertMergeFieldImage'),_0x312f3f['descriptionFactory']['registerElementLabel']('mergeField',_0x44398d=>c(_0x3a4739,'ELEMENT_MERGE_FIELD',_0x44398d)),_0x312f3f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4b79b8=>c(_0x3a4739,'ELEMENT_MERGE_FIELD',_0x4b79b8)),_0x312f3f['descriptionFactory']['registerDescriptionCallback'](_0x3e510f=>{if('insertion'!=_0x3e510f['type']&&'deletion'!=_0x3e510f['type'])return;const _0x34f818=_0x3e510f['getContainedElement']();if(null==_0x34f818)return;const _0x3b3031=_0x26f68f['plugins']['get']('MergeFieldsEditing');let _0x339bd6;switch(_0x3b3031['getMergeFieldType'](_0x34f818)){case null:return;case'image':{const _0x4cebca=_0x3b3031['unwrapAffixes'](_0x34f818['getAttribute']('src'));_0x339bd6=_0x3b3031['getLabel'](_0x4cebca)||_0x4cebca;break;}default:{const _0x51f334=_0x34f818['getAttribute']('id');_0x339bd6=_0x3b3031['getLabel'](_0x51f334)||_0x51f334;break;}}return'insertion'==_0x3e510f['type']?{'type':'insertion','content':c(_0x3a4739,'*Insert:*\x20%0','\x22'+_0x339bd6+'\x22\x20'+c(_0x3a4739,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3a4739,'*Remove:*\x20%0','\x22'+_0x339bd6+'\x22\x20'+c(_0x3a4739,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x6abf95{['afterInit'](){const _0x58bad9=this['editor'],_0x202ca2=_0x58bad9['plugins']['get']('TrackChangesEditing');_0x58bad9['plugins']['has']('MultiLevelList')&&(_0x202ca2['enableDefaultAttributesIntegration']('multiLevelList'),_0x202ca2['registerBlockAttribute']('listMarkerStyle'),_0x202ca2['descriptionFactory']['registerDescriptionCallback'](_0x429347=>this['handleDescriptions'](_0x429347)));}['handleDescriptions'](_0x2aa4d2){const _0x5aca4b=this['editor']['locale'],{data:_0x401ffb}=_0x2aa4d2,_0xc33b3f={'type':'format','content':''};if(_0x401ffb&&'listMarkerStyle'==_0x401ffb['key']){if(!_0x401ffb['oldValue'])return{'type':'format','content':c(_0x5aca4b,'*Set\x20format:*\x20%0',c(_0x5aca4b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x401ffb['newValue']+')'};if(!_0x401ffb['newValue']){let _0x2328fb=_0x2aa4d2['head'];for(;_0x2328fb;){if(_0x2328fb['data']&&'listType'==_0x2328fb['data']['key']&&_0x2328fb['data']['newValue'])return _0xc33b3f;_0x2328fb=_0x2328fb['next'];}return{'type':'format','content':c(_0x5aca4b,'*Remove\x20format:*\x20%0',c(_0x5aca4b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x401ffb['oldValue']+')'};}}}}class bt extends _0x6abf95{['afterInit'](){const _0x4589ab=this['editor'];if(!_0x4589ab['plugins']['has']('PageBreakEditing'))return;_0x4589ab['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x481036=_0x4589ab['plugins']['get']('TrackChangesEditing'),_0x7ba071=_0x4589ab['locale'];_0x481036['descriptionFactory']['registerElementLabel']('pageBreak',_0x59b2a3=>c(_0x7ba071,'ELEMENT_PAGE_BREAK',_0x59b2a3));}}class yt extends _0x6abf95{['afterInit'](){const _0xf3dc9f=this['editor'];if(!_0xf3dc9f['plugins']['has']('Paragraph'))return;const _0x473552=_0xf3dc9f['locale'],_0x445c17=_0xf3dc9f['plugins']['get']('TrackChangesEditing');_0x445c17['descriptionFactory']['registerElementLabel']('paragraph',_0x92ecd0=>c(_0x473552,'ELEMENT_PARAGRAPH',_0x92ecd0)),_0x445c17['enableDefaultAttributesIntegration']('paragraph'),_0x445c17['enableCommand']('insertParagraph'),_0xf3dc9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xf3dc9f),{'priority':'highest'}),_0xf3dc9f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4eb6f8,_0x1655a0,_0x549732)=>{_0x549732['options']['showSuggestionHighlights']&&nr(_0xf3dc9f,{'showActiveMarker':!0x1})(_0x4eb6f8,_0x1655a0,_0x549732);},{'priority':'highest'});const _0x5c1524=_0x445c17['descriptionFactory'];_0x5c1524['registerDescriptionCallback'](_0x3b3c86=>{if('insertion'!==_0x3b3c86['type'])return;const {start:_0x5a04fe,end:_0x152792}=_0x3b3c86['getFirstRange']();if(!_0x5a04fe['isTouching'](_0x152792)||!_0x5a04fe['nodeAfter'])return;const _0x5ef993=_0xf3dc9f['model']['schema'],_0x3fbfb8=_0x5a04fe['nodeAfter'];return _0x5ef993['isBlock'](_0x3fbfb8)&&!_0x5ef993['isLimit'](_0x3fbfb8)&&_0x5ef993['checkChild'](_0x3fbfb8,'$text')?{'type':'insertion','content':c(_0x473552,'*Insert:*\x20%0',_0x5c1524['getItemLabel'](_0x3fbfb8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21b79b=this['editor'],_0x3be732=_0x21b79b['locale'];_0x21b79b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18cbcf=>{if('formatBlock'!=_0x18cbcf['type'])return;const {data:_0x34c87c}=_0x18cbcf;return _0x34c87c&&'paragraph'==_0x34c87c['commandName']?{'type':'format','content':c(_0x3be732,'*Change\x20to:*\x20%0',c(_0x3be732,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x170155,{showActiveMarker:_0x1fa6e6=!0x0}={}){return(_0xf1f3bc,_0x1a28b4,_0x584afb)=>{const _0x51efdd=_0x170155['plugins']['get']('TrackChangesEditing'),_0x2567e1=_0x1a28b4['markerRange']['start'],_0x41a962=_0x1a28b4['markerRange']['end'],_0x2925fe=_0x170155['model']['schema'];if(!_0x2567e1['isTouching'](_0x41a962)||!_0x2567e1['nodeAfter'])return;const _0x330721=_0x2567e1['nodeAfter'];if(_0x2925fe['isBlock'](_0x330721)&&!_0x2925fe['isLimit'](_0x330721)&&_0x2925fe['checkChild'](_0x330721,'$text')){if(!_0x584afb['consumable']['consume'](_0x1a28b4['markerRange'],_0xf1f3bc['name']))return;const {id:_0xb2abaa,authorId:_0x378a9b}=_0x51efdd['_splitMarkerName'](_0x1a28b4['markerName']),_0x3971d9=_0x584afb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xb2abaa,'data-author-id':_0x378a9b}),_0x4b11f4=_0x584afb['mapper']['toViewPosition'](_0x41a962);_0x1fa6e6&&_0x51efdd['activeMarkers']['includes'](_0x1a28b4['markerName'])&&_0x584afb['writer']['addClass']('ck-suggestion-marker--active',_0x3971d9),_0x584afb['writer']['insert'](_0x4b11f4,_0x3971d9),_0x584afb['mapper']['bindElementToMarker'](_0x3971d9,_0x1a28b4['markerName']);}};}class jt extends _0x6abf95{['afterInit'](){const _0x4e3a01=this['editor'];_0x4e3a01['commands']['get']('replaceSource')&&_0x4e3a01['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x6abf95{['afterInit'](){const _0x5ba4f8=this['editor'];if(!_0x5ba4f8['plugins']['has']('RemoveFormatEditing'))return;_0x5ba4f8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa0403b=this['editor'];_0xa0403b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7cea28=>{if('formatBlock'!=_0x7cea28['type']&&'formatInline'!=_0x7cea28['type'])return;const {data:_0x2ccf10}=_0x7cea28;return _0x2ccf10&&'removeFormat'==_0x2ccf10['commandName']?{'type':'format','content':c(_0xa0403b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x6abf95{['afterInit'](){const _0x18c30b=this['editor'];if(!_0x18c30b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x170994=_0x18c30b['plugins']['get']('TrackChangesEditing');_0x170994['enableCommand']('goToPreviousRestrictedEditingException'),_0x170994['enableCommand']('goToNextRestrictedEditingException');const _0x18e2db=_0x18c30b['plugins']['get']('RestrictedEditingModeEditing');_0x18e2db['enableCommand']('trackChanges'),_0x18e2db['enableCommand']('acceptSuggestion'),_0x18e2db['enableCommand']('discardSuggestion'),_0x18e2db['enableCommand']('acceptAllSuggestions'),_0x18e2db['enableCommand']('discardAllSuggestions'),_0x18e2db['enableCommand']('acceptSelectedSuggestions'),_0x18e2db['enableCommand']('discardSelectedSuggestions');}}class It extends _0x6abf95{['afterInit'](){const _0x4e669f=this['editor'];if(!_0x4e669f['plugins']['has']('ShiftEnter'))return;const _0x1cb39f=_0x4e669f['plugins']['get']('TrackChangesEditing');_0x1cb39f['enableCommand']('shiftEnter'),_0x4e669f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4e669f),{'priority':'high'}),_0x4e669f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4e669f),{'priority':'high'}),_0x4e669f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x230332,_0x2c2aa7,_0x265ba2)=>{_0x265ba2['options']['showSuggestionHighlights']&&je(_0x4e669f,{'showActiveMarker':!0x1})(_0x230332,_0x2c2aa7,_0x265ba2);}),_0x1cb39f['descriptionFactory']['registerElementLabel']('softBreak',_0x37722e=>c(_0x4e669f['locale'],'ELEMENT_LINE_BREAK',_0x37722e));}}function je(_0x41c6ed,{showActiveMarker:_0x906ef7=!0x0}={}){return(_0x161527,_0x3f3713,_0x473077)=>{const _0x12eafe=_0x41c6ed['plugins']['get']('TrackChangesEditing');if(!_0x473077['consumable']['test'](_0x3f3713['markerRange'],_0x161527['name']))return;const _0x33ad8c=_0x41c6ed['model'];for(const _0x2614a9 of _0x3f3713['markerRange']['getItems']()){if(!_0x2614a9['is']('element','softBreak'))continue;const _0x58b7b3='deletion'==_0x3f3713['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x23cf6a,authorId:_0x14f255}=_0x12eafe['_splitMarkerName'](_0x3f3713['markerName']),_0xbedb1d=_0x473077['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58b7b3,'data-suggestion':_0x23cf6a,'data-author-id':_0x14f255}),_0x219501=_0x473077['mapper']['toViewPosition'](_0x33ad8c['createPositionBefore'](_0x2614a9));_0x906ef7&&_0x12eafe['activeMarkers']['includes'](_0x3f3713['markerName'])&&_0x473077['writer']['addClass']('ck-suggestion-marker--active',_0xbedb1d),_0x473077['writer']['insert'](_0x219501,_0xbedb1d),_0x473077['mapper']['bindElementToMarker'](_0xbedb1d,_0x3f3713['markerName']);}};}class _t extends _0x6abf95{['afterInit'](){const _0x28a91a=this['editor'],_0x1eaef4=_0x28a91a['model'],_0x51efb5=_0x28a91a['locale'];if(!_0x28a91a['plugins']['has']('StandardEditingModeEditing'))return;const _0x32e3cd=_0x28a91a['plugins']['get']('TrackChangesEditing'),_0x40dbce='restrictedEditingException',_0x2ae7e7=_0x28a91a['commands']['get'](_0x40dbce);_0x32e3cd['enableCommand'](_0x40dbce,(_0x332626,_0x52b220={})=>{const _0x1abd21=_0x1eaef4['document']['selection'];if(_0x1abd21['isCollapsed'])return void _0x332626(_0x52b220);const _0x1b951c=void 0x0!==_0x52b220['forceValue']?_0x52b220['forceValue']:!_0x2ae7e7['value'];_0x1eaef4['change'](()=>{const _0x309144=Array['from'](_0x1abd21['getRanges']());for(const _0x501aa0 of _0x309144){const _0x170d3a=_0x1b951c?[_0x501aa0]:io(_0x40dbce,_0x501aa0,_0x1eaef4);for(const _0x2f371b of _0x170d3a)_0x32e3cd['markInlineFormat'](_0x2f371b,{'commandName':_0x40dbce,'commandParams':[{'forceValue':_0x1b951c}]});}});}),_0x32e3cd['descriptionFactory']['registerDescriptionCallback'](_0xb59efd=>{if('formatBlock'!=_0xb59efd['type']&&'formatInline'!=_0xb59efd['type'])return;const {data:_0x2d7b9d}=_0xb59efd;return _0x2d7b9d&&_0x2d7b9d['commandName']==_0x40dbce?_0x2d7b9d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x51efb5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x51efb5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x6abf95{['afterInit'](){const _0x360d16=this['editor'];if(!_0x360d16['plugins']['has']('Style')||!_0x360d16['plugins']['has']('DataSchema'))return;const _0x50c66c=_0x360d16['plugins']['get']('TrackChangesEditing'),_0x221b6b=_0x360d16['locale'],_0x493990=_0x360d16['config']['get']('style')||{},_0x47ed96=_0x360d16['plugins']['get']('GeneralHtmlSupport'),_0x390c60=_0x360d16['plugins']['get']('StyleUtils')['normalizeConfig'](_0x360d16['plugins']['get']('DataSchema'),_0x493990['definitions']);_0x50c66c['enableDefaultAttributesIntegration']('style');const _0x27c68f=new Set();for(const _0x2e1887 of _0x390c60['block']){const _0x18dcda=_0x47ed96['getGhsAttributeNameForElement'](_0x2e1887['element']);_0x27c68f['add'](_0x18dcda);}const _0x546756=new Set();for(const _0x4e48d4 of _0x390c60['inline']){const _0x3abee8=_0x47ed96['getGhsAttributeNameForElement'](_0x4e48d4['element']);_0x546756['add'](_0x3abee8);for(const _0x3bbcaa of _0x4e48d4['ghsAttributes'])_0x546756['add'](_0x3bbcaa);}for(const _0x285e2c of _0x27c68f)_0x50c66c['registerBlockAttribute'](_0x285e2c),_0x50c66c['descriptionFactory']['registerAttributeLabel'](_0x285e2c,c(_0x221b6b,'FORMAT_STYLE'));for(const _0x3db939 of _0x546756)_0x50c66c['registerInlineAttribute'](_0x3db939),_0x50c66c['descriptionFactory']['registerAttributeLabel'](_0x3db939,c(_0x221b6b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19fa7f=this['editor'],_0x454bd3=_0x19fa7f['locale'];_0x19fa7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22fe6e=>{if('formatBlock'!=_0x22fe6e['type']&&'formatInline'!=_0x22fe6e['type'])return;const {data:_0x2edec4}=_0x22fe6e;return _0x2edec4&&'style'===_0x2edec4['commandName']?_0x2edec4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x454bd3,'*Set\x20format:*\x20%0',_0x2edec4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x454bd3,'*Remove\x20format:*\x20%0',_0x2edec4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x6abf95{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49b3f8){super(_0x49b3f8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d6867=this['editor'],_0x504236=_0x4d6867['model']['document']['selection'];if(!_0x4d6867['plugins']['has']('TableEditing'))return;const _0x346ae6=_0x4d6867['locale'],_0x12ca8e=_0x4d6867['plugins']['get']('TrackChangesEditing'),_0x493da0=_0x4d6867['plugins']['get']('TableUtils');_0x12ca8e['descriptionFactory']['registerElementLabel']('table',_0x48f498=>c(_0x346ae6,'ELEMENT_TABLE',_0x48f498)),this['_setupColumnsRowsFixing'](),_0x12ca8e['enableCommand']('insertTable'),_0x12ca8e['enableCommand']('selectTableRow'),_0x12ca8e['enableCommand']('selectTableColumn');for(const _0x229a84 of['insertTableRowAbove','insertTableRowBelow']){const _0x2a19fa=_0x4d6867['commands']['get'](_0x229a84);_0x12ca8e['enableCommand'](_0x229a84,_0x1115a8=>{_0x4d6867['model']['change'](_0x538d93=>{_0x1115a8();const _0x3d202c='above'===_0x2a19fa['order'],_0x1adce1=_0x493da0['getSelectionAffectedTableCells'](_0x504236),_0x3b2b50=_0x493da0['getRowIndexes'](_0x1adce1),_0x423de6=_0x3d202c?_0x3b2b50['first']-0x1:_0x3b2b50['last']+0x1,_0x677c83=_0x1adce1[0x0]['findAncestor']('table'),_0xf7403c=_0x493da0['createTableWalker'](_0x677c83,{'startRow':_0x423de6,'endRow':_0x423de6}),_0x5300f3=Array['from'](_0xf7403c)['map'](_0x27d721=>_0x538d93['createRangeOn'](_0x27d721['cell']));_0x12ca8e['markMultiRangeInsertion'](_0x5300f3,'tableRow');});});}for(const _0x1209ff of['insertTableColumnLeft','insertTableColumnRight']){const _0x1fca95=_0x4d6867['commands']['get'](_0x1209ff);_0x12ca8e['enableCommand'](_0x1209ff,_0x274468=>{_0x4d6867['model']['change'](_0x6ae0ec=>{_0x274468();const _0x26b2b4='left'===_0x1fca95['order'],_0x513e45=_0x493da0['getSelectionAffectedTableCells'](_0x504236),_0x2ee100=_0x493da0['getColumnIndexes'](_0x513e45),_0x20155e=_0x26b2b4?_0x2ee100['first']-0x1:_0x2ee100['last']+0x1,_0x4dedc2=_0x513e45[0x0]['findAncestor']('table'),_0x3c4013=_0x493da0['createTableWalker'](_0x4dedc2,{'startRow':0x0,'column':_0x20155e,'includeAllSlots':!0x1}),_0x5a0d6e=Array['from'](_0x3c4013)['map'](_0x2f3c22=>_0x6ae0ec['createRangeOn'](_0x2f3c22['cell']));_0x12ca8e['markMultiRangeInsertion'](_0x5a0d6e,'tableColumn');});});}for(const _0x510302 of['removeTableRow','removeTableColumn']){const _0x617cbd=_0x510302['substr'](0xb),_0x46571f=_0x617cbd['toLowerCase'](),_0x1639b0=_0x46571f['substr'](0x0,0x3)+'span',_0x35ef07='table'+_0x617cbd,_0x572a6d='min'+_0x617cbd,_0x344ec6='max'+_0x617cbd;_0x12ca8e['enableCommand'](_0x510302,()=>{_0x4d6867['model']['change'](_0x5c1a92=>{const _0x412d2a=_0x493da0['getSelectionAffectedTableCells'](_0x504236),_0x359196=_0x412d2a[0x0]['findAncestor']('table');let _0x5d0380;if('removeTableRow'==_0x510302){const _0x34371b=_0x493da0['getRowIndexes'](_0x412d2a);_0x5d0380={'startRow':_0x34371b['first'],'endRow':_0x34371b['last'],'includeAllSlots':!0x0};}else{const _0x9b0de6=_0x493da0['getColumnIndexes'](_0x412d2a);_0x5d0380={'startColumn':_0x9b0de6['first'],'endColumn':_0x9b0de6['last'],'includeAllSlots':!0x0};}const _0x45acc4=_0x493da0['createTableWalker'](_0x359196,_0x5d0380),_0x5e6de2=Array['from'](_0x45acc4)['map'](({cell:_0x242bf7})=>_0x242bf7),_0x4fc181=xe(_0x5e6de2['filter'](_0x37bec5=>_0x37bec5['hasAttribute'](_0x1639b0))),_0x43ec17=xe(_0x5e6de2['filter'](_0x321e07=>!_0x321e07['hasAttribute'](_0x1639b0)))['map'](_0x2123e1=>_0x5c1a92['createRangeOn'](_0x2123e1)),_0x2c224a=_0x12ca8e['markMultiRangeDeletion'](_0x43ec17,_0x35ef07);if(_0x2c224a&&('tableRow'==_0x2c224a['subType']||'tableColumn'==_0x2c224a['subType'])){const _0x338e63=this['_getSuggestionCoords'](_0x2c224a);for(const _0x32c2e0 of _0x4fc181){const _0x3fff65=_0x5c1a92['createRangeOn'](_0x32c2e0),_0x3aa16c=_0x493da0['getCellLocation'](_0x32c2e0),_0x3d97d9=_0x32c2e0['getAttribute'](_0x1639b0)-0x1,_0x3a0f7c=_0x338e63[_0x572a6d],_0x93854b=_0x338e63[_0x344ec6];_0x3a0f7c<=_0x3aa16c[_0x46571f]&&_0x3aa16c[_0x46571f]+_0x3d97d9<=_0x93854b&&_0x2c224a['addRange'](_0x3fff65);}}});});}function _0x179eca(_0x461d77){const _0x1aef4e=Array['from'](_0x504236['getRanges']())['map'](_0x275da3=>_0xd0daae['fromRange'](_0x275da3));_0x4d6867['model']['change'](_0x12bebb=>{const _0x36ab95=_0x12bebb['batch'];_0x461d77=_0x461d77['filter'](_0x1631da=>'$graveyard'!=_0x1631da['root']['rootName']),_0x12bebb['setSelection'](_0x461d77),_0x4d6867['commands']['get']('removeTableRow')['refresh'](),_0x4d6867['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d6867['model']['enqueueChange'](()=>{_0x4d6867['model']['enqueueChange'](_0x36ab95,_0x2c6ce9=>{const _0x297ae6=_0x1aef4e['filter'](_0x1f278b=>'$graveyard'!=_0x1f278b['root']['rootName']);_0x297ae6['length']>0x0&&_0x2c6ce9['setSelection'](_0x297ae6);for(const _0x1016dd of _0x1aef4e)_0x1016dd['detach']();});});});}function _0x4e66be(_0x4e0b01){_0x4d6867['model']['change'](_0x4b6c46=>{const _0x42bce9=Array['from'](_0x504236['getRanges']())['map'](_0xb6407=>_0xd0daae['fromRange'](_0xb6407)),_0x2e36d9=[];for(const _0x449d6e of _0x4e0b01)for(const _0x1fac3a of _0x449d6e['getItems']({'shallow':!0x0}))_0x2e36d9['push'](_0x1fac3a);for(const _0x17305a of _0x2e36d9)'$graveyard'!=_0x17305a['root']['rootName']&&(_0x4b6c46['setSelection'](_0x4b6c46['createPositionAt'](_0x17305a,0x0)),_0x4d6867['commands']['get']('removeTableColumn')['refresh'](),_0x4d6867['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3d71d5=_0x42bce9['filter'](_0x54d88e=>'$graveyard'!=_0x54d88e['root']['rootName']);_0x3d71d5['length']>0x0&&_0x4b6c46['setSelection'](_0x3d71d5);for(const _0x154b5a of _0x42bce9)_0x154b5a['detach']();});}function _0x19718c(_0x4be21c,_0x56169f){return _0x56169f['every'](_0x53a74a=>_0x4be21c['some'](_0x1bc224=>_0x1bc224['end']['isEqual'](_0x53a74a['start'])||_0x53a74a['end']['isEqual'](_0x1bc224['start'])));}function _0x435ebe(_0x345559,_0x4169cf){return!_0x345559['some'](_0x338e55=>_0x4169cf['some'](_0x74803b=>_0x338e55['isIntersecting'](_0x74803b)))&&_0x345559['some'](_0x51da88=>_0x4169cf['some'](_0x220fad=>_0x51da88['end']['isTouching'](_0x220fad['start'])));}_0x4d6867['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x425cfb,_0x50d2eb,_0x3403c5)=>{if(!_0x3403c5['options']['showSuggestionHighlights'])return;const _0x435008=_0x50d2eb['item'];if(!_0x435008||!_0x435008['is']('element','tableCell'))return;const _0xe8bd42=_0x3403c5['mapper']['toViewElement'](_0x435008);if(_0xe8bd42){const {id:_0x3c2044,authorId:_0x3890c5}=_0x12ca8e['_splitMarkerName'](_0x50d2eb['markerName']);_0x29e2ec(_0xe8bd42,_0x3403c5['writer'],(_0x5ce00e,_0x1ef835,_0x273c9c)=>{_0x273c9c['addClass'](_0x3449c0(_0x1ef835['classes']),_0x5ce00e),_0x273c9c['setAttribute']('data-suggestion-id',_0x3c2044,_0x5ce00e),_0x273c9c['setAttribute']('data-author-id',_0x3890c5,_0x5ce00e);},(_0x5a4041,_0x30330a,_0x767984)=>{_0x767984['removeClass'](_0x3449c0(_0x30330a['classes']),_0x5a4041),_0x767984['removeAttribute']('data-suggestion-id',_0x5a4041),_0x767984['removeAttribute']('data-author-id',_0x5a4041);});}},{'priority':'highest'}),_0x12ca8e['descriptionFactory']['registerDescriptionCallback'](_0x4cf28e=>{if('insertion'!=_0x4cf28e['type']&&'deletion'!=_0x4cf28e['type'])return;const _0x238926=_0x4cf28e['getContainedElement']();if(null!=_0x238926&&_0x238926['is']('element','table')){if('insertion'==_0x4cf28e['type']){const _0x435708=_0x4cf28e['getItems']()['filter'](_0x58bfdd=>_0x58bfdd['is']('$textProxy'))['map'](_0x2f0cf2=>_0x2f0cf2['data']);if(_0x435708['length'])return{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x435708['join']('\x20')+'\x22'))};}if('deletion'==_0x4cf28e['type']){const _0x486270=_0x4cf28e['getItems']()['filter'](_0x315422=>_0x315422['is']('$textProxy'))['map'](_0x29314d=>_0x29314d['data']);if(_0x486270['length'])return{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x486270['join']('\x20')+'\x22'))};}}}),_0x12ca8e['descriptionFactory']['registerDescriptionCallback'](_0x536133=>{if('tableRow'==_0x536133['subType']){const _0x1cf6e9=_0x536133['getItems']()['filter'](_0x27d8e5=>_0x27d8e5['is']('$textProxy'))['map'](_0x348c6a=>_0x348c6a['data']),_0x3c22a2=this['_getSuggestionCoords'](_0x536133),_0x1d7476=_0x3c22a2['maxRow']-_0x3c22a2['minRow']+0x1;if('insertion'==_0x536133['type'])return _0x1cf6e9['length']?{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7476,'\x22'+_0x1cf6e9['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_ROW',_0x1d7476))};if('deletion'==_0x536133['type'])return _0x1cf6e9['length']?{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7476,'\x22'+_0x1cf6e9['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_ROW',_0x1d7476))};}if('tableColumn'==_0x536133['subType']){const _0x265f86=_0x536133['getItems']()['filter'](_0x578164=>_0x578164['is']('$textProxy'))['map'](_0x5d6c46=>_0x5d6c46['data']),_0x1ddc36=this['_getSuggestionCoords'](_0x536133),_0xe22597=_0x1ddc36['maxColumn']-_0x1ddc36['minColumn']+0x1;if('insertion'==_0x536133['type'])return _0x265f86['length']?{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe22597,'\x22'+_0x265f86['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_COLUMN',_0xe22597))};if('deletion'==_0x536133['type'])return _0x265f86['length']?{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe22597,'\x22'+_0x265f86['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_COLUMN',_0xe22597))};}}),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x179eca),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x179eca),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4e66be),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4e66be),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x19718c),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x19718c),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x435ebe),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x435ebe);}['_acceptFormatSuggestionCallbackFactory'](){const _0x42b7f2=this['editor'],_0x4b05d0=_0x42b7f2['model']['document']['selection'];return(_0x53ffae,_0x1cf3cd)=>{_0x42b7f2['model']['change'](_0xeb9303=>{const {commandName:_0x3dc5c5,commandParams:_0x441f77}=_0x1cf3cd;let _0x3f60d0=_0x53ffae[0x0]['end']['nodeBefore'];_0x441f77&&_0x441f77[0x0]&&!0x1===_0x441f77[0x0]['forceValue']&&(_0x3f60d0=_0x53ffae[0x0]['start']['nodeAfter']);const _0xe779b6=_0xeb9303['createRangeIn'](_0x3f60d0);if('$graveyard'==_0xe779b6['root']['rootName'])return;const _0x12f5ad=Array['from'](_0x4b05d0['getRanges']())['map'](_0x2b20d9=>_0xd0daae['fromRange'](_0x2b20d9));_0xeb9303['setSelection'](_0xe779b6),_0x42b7f2['commands']['get'](_0x3dc5c5)['refresh'](),_0x441f77['push']({'forceDefaultExecution':!0x0}),_0x42b7f2['execute'](_0x3dc5c5,..._0x441f77);const _0x53f8f7=_0x12f5ad['filter'](_0x36f94e=>'$graveyard'!=_0x36f94e['root']['rootName']);_0x53f8f7['length']>0x0&&_0xeb9303['setSelection'](_0x53f8f7);for(const _0xc5a60 of _0x12f5ad)_0xc5a60['detach']();});};}['_getCoordsForCells'](_0x3042ba){const _0x12c75f=this['editor']['plugins']['get']('TableUtils');let _0x4b0d8f=Number['MAX_SAFE_INTEGER'],_0x49a8a7=Number['MIN_SAFE_INTEGER'],_0x5680a6=Number['MAX_SAFE_INTEGER'],_0x493aff=Number['MIN_SAFE_INTEGER'];for(const _0x118485 of _0x3042ba){if('$graveyard'==_0x118485['root']['rootName'])continue;const {row:_0x40d9dd,column:_0x26bb73}=_0x12c75f['getCellLocation'](_0x118485),_0x4645ff=_0x118485['hasAttribute']('rowspan')?_0x118485['getAttribute']('rowspan')-0x1:0x0,_0x3d38a1=_0x118485['hasAttribute']('colspan')?_0x118485['getAttribute']('colspan')-0x1:0x0;_0x4b0d8f=_0x40d9dd<_0x4b0d8f?_0x40d9dd:_0x4b0d8f,_0x49a8a7=_0x40d9dd+_0x4645ff>_0x49a8a7?_0x40d9dd+_0x4645ff:_0x49a8a7,_0x5680a6=_0x26bb73<_0x5680a6?_0x26bb73:_0x5680a6,_0x493aff=_0x26bb73+_0x3d38a1>_0x493aff?_0x26bb73+_0x3d38a1:_0x493aff;}return{'minRow':_0x4b0d8f,'maxRow':_0x49a8a7,'minColumn':_0x5680a6,'maxColumn':_0x493aff};}['_setupColumnsRowsFixing'](){const _0x2445d5=this['editor'],_0x3389eb=_0x2445d5['plugins']['get']('TrackChangesEditing'),_0x4ffe78=_0x2445d5['plugins']['get']('TableUtils');_0x2445d5['model']['document']['on']('change:data',()=>{const _0x43c0c2=Array['from'](_0x2445d5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14f90d,data:_0x1f1852}of _0x43c0c2){const {group:_0x38d43f,id:_0x591b62,subType:_0x451d23}=_0x3389eb['_splitMarkerName'](_0x14f90d);if('suggestion'!=_0x38d43f)continue;if(null!=_0x1f1852['oldRange'])continue;const _0x1d0a53=_0x3389eb['getSuggestion'](_0x591b62);this['_tablePostFixingSubtypes']['includes'](_0x451d23)&&this['_tableSuggestions']['add'](_0x1d0a53);}},{'priority':'low'});const _0x5139c5=(_0x1b6dcb,_0x3f54a8)=>{let _0x72573c=!0x1;const _0x1fc177=_0x3f54a8['createRangeOn'](_0x1b6dcb),_0x18b8a8=_0x1b6dcb['findAncestor']('table'),_0x2149a1=_0x4ffe78['getCellLocation'](_0x1b6dcb);for(const _0x46f7f2 of this['_tableSuggestions']){const _0x44fbe7=_0x46f7f2['subType'],_0x358fba=_0x44fbe7['startsWith']('tablePaste'),_0x3e60d8=_0x44fbe7['substr'](_0x358fba?0xa:0x5),_0x1d7e40=_0x3e60d8['toLowerCase'](),_0x1d8fff=_0x1d7e40['substr'](0x0,0x3)+'span',_0x1203eb='min'+_0x3e60d8,_0x159804='max'+_0x3e60d8;if(!_0x46f7f2['isInContent'])continue;if(_0x18b8a8!=_0x46f7f2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x46f7f2['isIntersectingWithRange'](_0x1fc177))continue;const _0x5dcec8=_0x1b6dcb['hasAttribute'](_0x1d8fff)?_0x1b6dcb['getAttribute'](_0x1d8fff)-0x1:0x0,_0x42c90a=this['_getSuggestionCoords'](_0x46f7f2),_0xf43e57=_0x42c90a[_0x1203eb],_0x38b7a2=_0x42c90a[_0x159804];_0xf43e57<=_0x2149a1[_0x1d7e40]&&_0x2149a1[_0x1d7e40]+_0x5dcec8<=_0x38b7a2&&(_0x46f7f2['addRange'](_0x1fc177),_0x72573c=!0x0);}return _0x72573c;};_0x2445d5['model']['document']['registerPostFixer'](_0x9b93db=>{let _0x1476f1=!0x1;for(const _0x42a90a of _0x2445d5['model']['document']['differ']['getChanges']())if('insert'==_0x42a90a['type']){if('tableRow'==_0x42a90a['name']){for(const _0x8fa492 of _0x42a90a['position']['nodeAfter']['getChildren']())_0x1476f1=_0x1476f1||_0x5139c5(_0x8fa492,_0x9b93db);}else'tableCell'==_0x42a90a['name']&&(_0x1476f1=_0x1476f1||_0x5139c5(_0x42a90a['position']['nodeAfter'],_0x9b93db));}return _0x1476f1;});}['_getSuggestionCoords'](_0x518ecf){return this['_getCoordsForCells'](_0x518ecf['getRanges']()['map'](_0x50d34a=>_0x50d34a['start']['nodeAfter']));}}function xe(_0x1c9588){return Array['from'](new Set(_0x1c9588)['values']());}class Nt extends _0x6abf95{static get['requires'](){return[Ct];}['afterInit'](){const _0x48608d=this['editor'],_0x542aab=_0x48608d['model']['document']['selection'],_0x578da0=_0x48608d['locale'];if(!_0x48608d['plugins']['has']('TableEditing'))return;const _0xa09c97=_0x48608d['plugins']['get']('TrackChangesEditing'),_0x1aaae5=_0x48608d['plugins']['get']('TableUtils'),_0x4246e=_0x48608d['plugins']['get'](Ct);_0x4246e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xa09c97['enableCommand']('mergeTableCells',()=>{const _0x25f4c5=_0x1aaae5['getSelectionAffectedTableCells'](_0x48608d['model']['document']['selection']);_0x48608d['model']['change'](()=>{_0xa09c97['markMultiRangeBlockFormat'](_0x25f4c5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x48608d['commands']['get']('mergeTableCells')['on']('execute',(_0x4f09e9,_0x3c2e0c)=>{_0x48608d['commands']['get']('trackChanges')['value']&&(_0x3c2e0c['length']>0x0&&_0x3c2e0c[_0x3c2e0c['length']-0x1]&&_0x3c2e0c[_0x3c2e0c['length']-0x1]['forceDefaultExecution']||_0xa09c97['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4f09e9['stop']());},{'priority':'highest'});for(const _0x4559d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b2a32=_0x48608d['commands']['get'](_0x4559d9);_0xa09c97['enableCommand'](_0x4559d9,()=>{const _0x2a085a=_0x48608d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4cca4e=>_0x4cca4e['is']('element','tableCell')),_0x256162=_0x1b2a32['value'];_0x48608d['model']['change'](()=>{_0xa09c97['markMultiRangeBlockFormat']([_0x2a085a,_0x256162],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1bdee5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x30cca1=_0x48608d['commands']['get'](_0x1bdee5);_0xa09c97['enableCommand'](_0x1bdee5,()=>{const _0x10efd3=_0x1aaae5['getSelectionAffectedTableCells'](_0x48608d['model']['document']['selection'])[0x0],_0x4a2add=_0x10efd3['findAncestor']('table'),{column:_0x5b04c2,row:_0x3fe503}=_0x1aaae5['getCellLocation'](_0x10efd3);let _0x11c1fe=[];if('horizontally'==_0x30cca1['direction']){const _0x217d06=_0x1aaae5['createTableWalker'](_0x4a2add,{'startRow':_0x3fe503,'endRow':_0x3fe503,'includeAllSlots':!0x0});_0x11c1fe=Array['from'](_0x217d06)['map'](_0x16f101=>_0x16f101['cell']);}else{const _0x56c6a6=_0x1aaae5['createTableWalker'](_0x4a2add,{'column':_0x5b04c2,'includeAllSlots':!0x0});_0x11c1fe=Array['from'](_0x56c6a6)['map'](_0x51a0e8=>_0x51a0e8['cell']);}_0x48608d['model']['change'](_0x2570e9=>{_0xa09c97['markBlockFormat'](_0x2570e9['createRangeOn'](_0x10efd3),{'commandName':_0x1bdee5,'commandParams':[]},_0x11c1fe,_0x1bdee5);});});}_0xa09c97['descriptionFactory']['registerDescriptionCallback'](_0x2db136=>{if('formatBlock'!=_0x2db136['type']&&'formatInline'!=_0x2db136['type'])return;const {data:_0x1f470f}=_0x2db136;return _0x1f470f&&'mergeTableCells'==_0x1f470f['commandName']?{'type':'format','content':c(_0x578da0,'*Merge\x20cells*')}:void 0x0;}),_0xa09c97['descriptionFactory']['registerDescriptionCallback'](_0x57c8f4=>{if('formatBlock'!=_0x57c8f4['type']&&'formatInline'!=_0x57c8f4['type'])return;const {data:_0x48fc67}=_0x57c8f4;return _0x48fc67?'splitTableCellVertically'==_0x48fc67['commandName']?{'type':'format','content':c(_0x578da0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x48fc67['commandName']?{'type':'format','content':c(_0x578da0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2428d1=_0x4246e['_acceptFormatSuggestionCallbackFactory']();for(const _0x48084d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xa09c97['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48084d,'accept',_0x2428d1);for(const _0x468c2a of['splitTableCellVertically','splitTableCellHorizontally'])_0xa09c97['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x468c2a,'accept',_0x2428d1);_0xa09c97['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xe58283=>{_0x48608d['model']['change'](_0x4891da=>{const _0x38da11=Array['from'](_0x542aab['getRanges']())['map'](_0x2591f5=>_0xd0daae['fromRange'](_0x2591f5));_0x4891da['setSelection'](_0xe58283),_0x48608d['commands']['get']('mergeTableCells')['refresh'](),_0x48608d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x33690e=_0x38da11['filter'](_0xa7bef=>'$graveyard'!=_0xa7bef['root']['rootName']);_0x33690e['length']>0x0&&_0x4891da['setSelection'](_0x33690e);for(const _0x214c67 of _0x38da11)_0x214c67['detach']();});});for(const _0x310a55 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3946ae=_0x48608d['commands']['get'](_0x310a55);_0x3946ae['on']('set:isEnabled',(_0x5e5abd,_0x3d1308,_0x2ecbe6)=>{if(_0x2ecbe6){const _0x1a5749=_0x48608d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35e8d0=>_0x35e8d0['is']('element','tableCell'));this['_areMergableCells'](_0x3946ae['value'],_0x1a5749)||(_0x5e5abd['return']=!0x1,_0x5e5abd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x48658f=this['editor']['commands']['get']('mergeTableCells'),_0x4c3a20=this['editor']['plugins']['get']('TableUtils');if(!_0x48658f['isEnabled'])return!0x1;const _0x230250=_0x4c3a20['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2eedc7 of _0x230250)for(const _0x24462e of _0x230250)if(_0x2eedc7!=_0x24462e&&!this['_areMergableCells'](_0x2eedc7,_0x24462e))return!0x1;return!0x0;}['_areMergableCells'](_0x55a50f,_0x3f9a01){const _0x16cf50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e1842=this['editor']['model']['createRangeOn'](_0x55a50f),_0xf15160=this['editor']['model']['createRangeOn'](_0x3f9a01),_0x55435e=new Set(),_0x124b14=new Set();for(const _0x38e5e9 of _0x16cf50['getSuggestions']())if(('insertion'==_0x38e5e9['type']||'deletion'==_0x38e5e9['type']||'mergeTableCells'==_0x38e5e9['subType'])&&_0x38e5e9['isInContent']){for(const _0x4d6a3f of _0x38e5e9['getRanges']())_0x4d6a3f['containsRange'](_0x4e1842,!0x0)&&_0x55435e['add'](_0x38e5e9['type']+':'+_0x38e5e9['author']['id']),_0x4d6a3f['containsRange'](_0xf15160,!0x0)&&_0x124b14['add'](_0x38e5e9['type']+':'+_0x38e5e9['author']['id']);}if(_0x55435e['size']!=_0x124b14['size'])return!0x1;for(const _0x47e722 of _0x55435e)if(!_0x124b14['has'](_0x47e722))return!0x1;return!0x0;}}class Dt extends _0x6abf95{static get['requires'](){return[Ct];}['afterInit'](){const _0x192fa8=this['editor'];if(!_0x192fa8['plugins']['has']('TableEditing'))return;const _0x4ef499=_0x192fa8['locale'],_0x468b75=_0x192fa8['plugins']['get']('TrackChangesEditing');_0x468b75['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x468b75['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x468b75['registerBlockAttribute']('headingRows'),_0x468b75['registerBlockAttribute']('headingColumns'),_0x468b75['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4ef499,'FORMAT_HEADER_ROW')),_0x468b75['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4ef499,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb49d93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fca63=this['editor']['plugins']['get']('TableUtils'),_0x5edaf1=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x54e0d2({showActiveMarker:_0xaf99db=!0x0,setDataAttribute:_0x10c534=!0x0}={}){return(_0x544717,_0x299de1,_0x3dd2ad)=>{const {type:_0x2c4c6f,id:_0x21dac2}=_0xb49d93['_splitMarkerName'](_0x299de1['markerName']),_0x297393=_0xb49d93['getSuggestion'](_0x21dac2),_0x4d0ce0=_0x297393['data'];if('formatBlock'!=_0x297393['type']||!_0x4d0ce0||'setTableColumnHeader'!=_0x4d0ce0['commandName'])return;if(_0x299de1['item'])return void _0x544717['stop']();if(!_0x3dd2ad['consumable']['consume'](_0x299de1['markerRange'],_0x544717['name']))return;const _0xcc657f=_0x299de1['markerRange']['start']['nodeAfter'],_0x15ed4d=_0x299de1['markerRange']['end']['nodeBefore'],_0x526cf0=_0xcc657f['parent']['parent'],{column:_0x3e9012}=_0x3fca63['getCellLocation'](_0xcc657f),{column:_0x4559db}=_0x3fca63['getCellLocation'](_0x15ed4d);for(let _0x1234d4=_0x3e9012;_0x1234d4<=_0x4559db;_0x1234d4++){const _0x7cef42=_0x3fca63['createTableWalker'](_0x526cf0,{'column':_0x1234d4,'includeAllSlots':!0x1});for(const _0x4e6d86 of _0x7cef42){const _0x184025=_0x4e6d86['cell'],_0x376875=_0x3dd2ad['mapper']['toViewElement'](_0x184025);_0x3dd2ad['writer']['addClass']('ck-suggestion-marker-'+_0x2c4c6f,_0x376875),_0x10c534&&_0x3dd2ad['writer']['setAttribute']('data-suggestion',_0x21dac2,_0x376875),_0x3dd2ad['mapper']['bindElementToMarker'](_0x376875,_0x299de1['markerName']),_0xaf99db&&(_0xb49d93['activeMarkers']['includes'](_0x299de1['markerName'])?_0x3dd2ad['writer']['addClass']('ck-suggestion-marker--active',_0x376875):_0x3dd2ad['writer']['removeClass']('ck-suggestion-marker--active',_0x376875));}}};}_0xb49d93['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5edaf1),_0xb49d93['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5edaf1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x54e0d2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d7acb,_0x2c3960,_0x17a663)=>{_0x17a663['options']['showSuggestionHighlights']&&_0x54e0d2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1d7acb,_0x2c3960,_0x17a663);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x8486a6,_0x917375,_0x260645)=>{const {type:_0x457212,id:_0x3f3e35}=_0xb49d93['_splitMarkerName'](_0x917375['markerName']),_0x5b8835=_0xb49d93['getSuggestion'](_0x3f3e35),_0x58fd15=_0x5b8835['data'];if('formatBlock'!=_0x5b8835['type']||!_0x58fd15||'setTableColumnHeader'!=_0x58fd15['commandName'])return;const _0x14a239=_0x260645['mapper']['markerNameToElements'](_0x917375['markerName']);if(_0x14a239){for(const _0x39a7ce of _0x14a239)_0x260645['writer']['removeClass']('ck-suggestion-marker-'+_0x457212,_0x39a7ce),_0x260645['writer']['removeClass']('ck-suggestion-marker--active',_0x39a7ce),_0x260645['writer']['removeAttribute']('data-suggestion',_0x39a7ce),_0x260645['mapper']['unbindElementFromMarkerName'](_0x39a7ce,_0x917375['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fa86d=this['editor'],_0x2bfb6c=_0x4fa86d['locale'];function _0x6c76f4(_0x1d1038){return{'type':'format','content':c(_0x2bfb6c,'*Format:*\x20%0',_0x1d1038)};}_0x4fa86d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a4c51=>{if('formatBlock'!=_0x2a4c51['type'])return;const {data:_0x453260}=_0x2a4c51;if(_0x453260){if('setTableRowHeader'==_0x453260['commandName']){const _0x1b8155=_0x453260['commandParams'][0x0]['forceValue'];return _0x6c76f4(c(_0x2bfb6c,_0x1b8155?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x453260['commandName']){const _0x57a48f=_0x453260['commandParams'][0x0]['forceValue'];return _0x6c76f4(c(_0x2bfb6c,_0x57a48f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x6abf95{['afterInit'](){const _0x1c9f9c=this['editor'],_0xfa9eff=_0x1c9f9c['locale'],_0xb792eb=_0x1c9f9c['plugins']['get']('TrackChangesEditing');function _0x2d7dfd(_0x1e32f6){return{'type':'format','content':''+c(_0xfa9eff,'*Set\x20table\x20type:*\x20%0',_0x1e32f6)};}_0x1c9f9c['plugins']['has']('TableLayout')&&(_0xb792eb['enableCommand']('insertTableLayout'),_0xb792eb['enableDefaultAttributesIntegration']('tableType'),_0xb792eb['registerBlockAttribute']('tableType'),_0xb792eb['descriptionFactory']['registerElementLabel'](_0x4ba4ea=>_0x4ba4ea['is']('element','table')&&'layout'===_0x4ba4ea['getAttribute']('tableType'),_0x4897cd=>c(_0xfa9eff,'ELEMENT_LAYOUT_TABLE',_0x4897cd)),_0xb792eb['descriptionFactory']['registerDescriptionCallback'](_0x855233=>{const {data:_0x3792d4}=_0x855233;if(_0x3792d4&&'tableType'==_0x3792d4['key'])switch(_0x3792d4['newValue']){case'layout':return _0x2d7dfd(c(_0xfa9eff,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2d7dfd(c(_0xfa9eff,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x11d119=>[_0x11d119,null]));class $t extends _0x6abf95{static get['requires'](){return[Ct];}['afterInit'](){const _0x271b6c=this['editor'];if(!_0x271b6c['plugins']['has']('TableClipboard'))return;const _0x49ba7f=_0x271b6c['plugins']['get']('TrackChangesEditing'),_0x301ecc=_0x271b6c['plugins']['get']('TableUtils'),_0x50dcda=_0x271b6c['plugins']['get'](Ct),_0x117183=_0x271b6c['plugins']['get']('TableClipboard'),_0x1844a8=_0x271b6c['plugins']['get']('TableSelection'),_0x29ba70=_0x271b6c['plugins']['get'](_0x52a09d);_0x50dcda['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x271b6c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x271b6c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x34785b=null,_0x1ee8ea=!0x1;_0x29ba70['on']('contentInsertion',(_0x2004b6,_0x4adfb3)=>{_0x1ee8ea='paste'===_0x4adfb3['method'];}),_0x271b6c['model']['on']('insertContent',(_0x14bd65,_0x59964f)=>{if(!_0x1ee8ea&&null===_0x1844a8['getSelectedTableCells']())return;const [_0x1ae328,_0x1f2e26]=_0x59964f,_0x3f81e2=_0x59964f[_0x59964f['length']-0x1];_0x3f81e2&&_0x3f81e2['forceDefaultExecution']||_0x49ba7f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5e5c13,_0xc55e9f,_0x21c96e,_0x1205a3,_0x16d2e7){if(_0xc55e9f&&!_0xc55e9f['is']('documentSelection'))return!0x1;const _0x5a8f4a=_0x16d2e7['getTableIfOnlyTableInContent'](_0x5e5c13,_0x21c96e);if(!_0x5a8f4a||!He(_0x5a8f4a,void 0x0,_0x1205a3))return!0x1;const _0x125798=_0x1205a3['getSelectionAffectedTableCells'](_0x21c96e['document']['selection']);if(!_0x125798['length'])return!0x1;const _0x41608c=_0x125798[0x0]['findAncestor']('table'),_0x230c66=_0x1205a3['getRowIndexes'](_0x125798),_0x1f094b=_0x1205a3['getColumnIndexes'](_0x125798),_0x3beb66={'startRow':_0x230c66['first'],'endRow':_0x230c66['last'],'startColumn':_0x1f094b['first'],'endColumn':_0x1f094b['last']};return 0x1==_0x125798['length']&&(_0x3beb66['endRow']+=_0x1205a3['getRows'](_0x5a8f4a)-0x1,_0x3beb66['endColumn']+=_0x1205a3['getColumns'](_0x5a8f4a)-0x1),He(_0x41608c,_0x3beb66,_0x1205a3);}(_0x1ae328,_0x1f2e26,_0x271b6c['model'],_0x301ecc,_0x117183)&&(_0x14bd65['stop'](),_0x34785b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x271b6c['model']['change'](()=>{_0x271b6c['model']['insertContent'](_0x59964f[0x0],_0x59964f[0x1],_0x59964f[0x2],{'forceDefaultExecution':!0x0});const _0x5e93b0=_0x5d446a(),{rowInsertionRanges:_0x524a98,columnInsertionRanges:_0x27670f,insertionRanges:_0x2cc435,deletionRanges:_0x109fa1,cells:_0x41d7f9}=_0x34785b;_0x524a98['length']&&_0x49ba7f['markMultiRangeInsertion'](_0x524a98,'tablePasteRow',{'tablePasteChainId':_0x5e93b0}),_0x27670f['length']&&_0x49ba7f['markMultiRangeInsertion'](_0x27670f,'tablePasteColumn',{'tablePasteChainId':_0x5e93b0}),_0x2cc435['length']&&(_0x49ba7f['markMultiRangeInsertion'](_0x2cc435,'tablePaste',{'tablePasteChainId':_0x5e93b0,'skipNestingCheck':!0x0}),_0x2cc435['forEach'](_0xa56ffa=>_0xa56ffa['detach']?.())),_0x109fa1['length']&&(_0x49ba7f['markMultiRangeDeletion'](_0x109fa1,'tablePaste',{'tablePasteChainId':_0x5e93b0,'skipNestingCheck':!0x0}),_0x109fa1['forEach'](_0xf3eab2=>_0xf3eab2['detach']?.()));const _0x314ec0=_0x49ba7f['markMultiRangeBlockFormat'](_0x41d7f9['map'](({element:_0x1dc3ac})=>_0x1dc3ac),{'formatGroupId':_0x5d446a()},[],'tablePasteCell',{'tablePasteChainId':_0x5e93b0});if(_0x314ec0){const _0x56230c=_0x314ec0['getMarkers'](),_0x498cba=[];for(const {element:_0x26b7be,attributes:_0x29e183}of _0x41d7f9){if(!_0x29e183)continue;const _0x3cdc62=_0x271b6c['model']['createRangeOn'](_0x26b7be),_0xeb50e5=_0x56230c['find'](_0x56285f=>_0x56285f['getRange']()['isEqual'](_0x3cdc62));_0xeb50e5&&_0x498cba['push']([_0xeb50e5['name'],_0x29e183]);}_0x498cba['length']&&_0x314ec0['setAttribute']('markerAttributes',Object['fromEntries'](_0x498cba));}_0x34785b=null;}));},{'priority':_0x23dcbe['high']+0xa}),_0x29ba70['on']('contentInsertion',()=>{_0x1ee8ea=!0x1;},{'priority':'lowest'}),_0x271b6c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x39267f,_0x4094e9)=>{const [_0x5e4b82,_0x5090e9,,_0x2e5416]=_0x4094e9;if(!_0x34785b)return;_0x39267f['stop']();const _0x1eaf8e=_0x5e4b82['cell'],_0x37ce4c=_0x5090e9,_0x125e2c=De(_0x1eaf8e),_0x1d5991=De(_0x37ce4c);_0x39267f['return']=_0x1eaf8e;let _0x4ec19c=null,_0x1b7028=null;if(_0x1d5991||_0x125e2c){if(_0x125e2c&&!_0x1d5991){_0x2e5416['remove'](_0x1eaf8e['getChild'](0x0));for(const _0x2069b3 of Array['from'](_0x37ce4c['getChildren']()))_0x2e5416['insert'](_0x2069b3,_0x1eaf8e,'end');const _0x3ecd2f=_0x34785b['rowInsertionIndexes']['includes'](_0x5e4b82['row']),_0x21f9ee=_0x34785b['columnInsertionIndexes']['includes'](_0x5e4b82['column']);_0x3ecd2f||_0x21f9ee||(_0x4ec19c=_0xd0daae['fromRange'](_0x2e5416['createRangeIn'](_0x1eaf8e)));}else _0x1d5991&&!_0x125e2c&&(_0x1b7028=_0x2e5416['createRangeIn'](_0x1eaf8e));}else{const _0x127ab5=_0x2e5416['createElement']('tableCellSuggestion'),_0x425664=_0x2e5416['createElement']('tableCellSuggestion');_0x2e5416['wrap'](_0x2e5416['createRangeIn'](_0x1eaf8e),_0x425664),_0x2e5416['insert'](_0x127ab5,_0x1eaf8e,0x0);for(const _0x32c3eb of Array['from'](_0x37ce4c['getChildren']()))_0x2e5416['insert'](_0x32c3eb,_0x127ab5,'end');_0x4ec19c=_0xd0daae['fromRange'](_0x2e5416['createRangeOn'](_0x127ab5)),_0x1b7028=_0xd0daae['fromRange'](_0x2e5416['createRangeOn'](_0x425664));}const _0x1d946b=Array['from'](_0x37ce4c['getAttributes']())['filter'](([_0x385031])=>Oe['includes'](_0x385031));_0x34785b['cells']['push']({'element':_0x1eaf8e,'attributes':_0x1d946b['length']?Object['fromEntries'](_0x1d946b):null}),_0x4ec19c&&_0x34785b['insertionRanges']['push'](_0x4ec19c),_0x1b7028&&_0x34785b['deletionRanges']['push'](_0x1b7028);},{'priority':'high'}),_0x301ecc['on']('insertColumns',(_0x49c48f,_0x55ea9b)=>{const [_0x2a9752,_0x1995ae={}]=_0x55ea9b;if(!_0x34785b)return;const _0x20e952=_0x1995ae['at']||0x0,_0x5887f2=_0x1995ae['columns']||0x1;_0x34785b['columnInsertionIndexes']=new Array(_0x5887f2)['fill'](_0x20e952)['map']((_0x56f959,_0x511afb)=>_0x56f959+_0x511afb);for(const {cell:_0x2798d8}of _0x301ecc['createTableWalker'](_0x2a9752,{'startColumn':_0x20e952,'endColumn':_0x20e952+_0x5887f2-0x1}))_0x34785b['columnInsertionRanges']['push'](_0x271b6c['model']['createRangeOn'](_0x2798d8));},{'priority':'low'}),_0x301ecc['on']('insertRows',(_0x1b6fe3,_0x57c26f)=>{const [_0x42ab48,_0xae07f0={}]=_0x57c26f;if(!_0x34785b)return;const _0x5da371=_0xae07f0['at']||0x0,_0x321008=_0xae07f0['rows']||0x1;_0x34785b['rowInsertionIndexes']=new Array(_0x321008)['fill'](_0x5da371)['map']((_0x3656dc,_0x221fe3)=>_0x3656dc+_0x221fe3);for(const {cell:_0x1efefa}of _0x301ecc['createTableWalker'](_0x42ab48,{'startRow':_0x5da371,'endRow':_0x5da371+_0x321008-0x1}))_0x34785b['rowInsertionRanges']['push'](_0x271b6c['model']['createRangeOn'](_0x1efefa));},{'priority':'low'}),_0x49ba7f['descriptionFactory']['registerDescriptionCallback'](_0x3c0f21=>{if(_0x3c0f21['subType']&&_0x3c0f21['subType']['startsWith']('tablePaste'))return _0x3c0f21['previous']?{}:{'type':'insertion','content':c(_0x271b6c['locale'],'*Replace\x20table\x20cells*')};});const _0x4c104c=()=>!0x1;for(const _0x2a2a4d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x49ba7f['_suggestionFactory']['registerCustomCallback']('insertion',_0x2a2a4d,'join',_0x4c104c),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('deletion',_0x2a2a4d,'join',_0x4c104c),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a2a4d,'join',_0x4c104c);_0x49ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4c104c),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11d483,_0x487729,_0x2ff602)=>{const _0x572ea8=_0x11d483['map'](_0x1aa936=>_0x1aa936['getContainedElement']())['filter'](_0x40234e=>_0x40234e),_0x14f765=new Map(_0x572ea8['map'](_0x4050b5=>[_0x4050b5,null]));if(_0x34785b){for(const {element:_0x4a74bd,attributes:_0x222b6e}of _0x34785b['cells'])_0x222b6e&&_0x14f765['set'](_0x4a74bd,_0x222b6e);}else{if(_0x2ff602&&_0x2ff602['markerAttributes'])for(const [_0x281842,_0x49bae1]of Object['entries'](_0x2ff602['markerAttributes'])){const _0x10e7b0=_0x271b6c['model']['markers']['get'](_0x281842),_0x1dd402=_0x10e7b0?_0x10e7b0['getRange']()['getContainedElement']():null;_0x1dd402&&_0x14f765['set'](_0x1dd402,_0x49bae1);}}_0x271b6c['model']['change'](_0x7d276b=>{for(const [_0x28f066,_0x38de8b]of _0x14f765)_0x7d276b['setAttributes']({...Ue,..._0x38de8b},_0x28f066);});});const _0x55453a=(_0x2a249,_0x4913da)=>{_0x49ba7f['_suggestionFactory']['registerCustomCallback'](_0x2a249,'tablePaste',_0x4913da,(_0x72e9cf,_0x11052e,_0x2ce0c2)=>{_0x271b6c['model']['change'](_0x1ea092=>{const _0x5b35b2=[];for(const _0x186013 of _0x72e9cf){const _0x2ccdc7=_0x186013['start']['nodeAfter'];_0x2ccdc7['is']('element','tableCellSuggestion')&&_0x5b35b2['push'](_0x2ccdc7);}_0x49ba7f['_suggestionFactory']['getSuggestionCallback'](_0x2a249,null,_0x4913da)(_0x72e9cf,_0x11052e,_0x2ce0c2);for(const _0x40cfbb of _0x5b35b2)'$graveyard'!=_0x40cfbb['root']['rootName']&&_0x1ea092['unwrap'](_0x40cfbb);});});};_0x55453a('insertion','accept'),_0x55453a('insertion','discard'),_0x55453a('deletion','accept'),_0x55453a('deletion','discard'),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x12f308=>{const _0x240d62=_0x12f308['map'](_0x5e2c97=>_0x5e2c97['getContainedElement']()),_0xbe2586=_0x240d62[0x0]['findAncestor']('table'),{minRow:_0x55994e,maxRow:_0x11ad4d}=_0x50dcda['_getCoordsForCells'](_0x240d62);_0x301ecc['removeRows'](_0xbe2586,{'at':_0x55994e,'rows':_0x11ad4d-_0x55994e+0x1});}),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1d00aa=>{const _0x934e5e=_0x1d00aa['map'](_0x43a6d1=>_0x43a6d1['getContainedElement']()),_0x3294c4=_0x934e5e[0x0]['findAncestor']('table'),{minColumn:_0x4c6044,maxColumn:_0x80f23b}=_0x50dcda['_getCoordsForCells'](_0x934e5e);_0x301ecc['removeColumns'](_0x3294c4,{'at':_0x4c6044,'columns':_0x80f23b-_0x4c6044+0x1});});const _0x7bed6=(_0x105b7d,_0x3e16d0)=>{if(!_0x3e16d0['subType']||!_0x3e16d0['subType']['startsWith']('tablePaste'))return;const _0x1041b7=_0x3e16d0['attributes']['tablePasteChainId'],_0x1cd09e=_0x49ba7f['getSuggestions']()['filter'](_0x382513=>_0x382513['isInContent']&&_0x382513['attributes']&&_0x382513['attributes']['tablePasteChainId']==_0x1041b7);_0x1cd09e['length']&&_0x3e16d0['getAllAdjacentSuggestions']()['length']!=_0x1cd09e['length']&&_0x1cd09e['reduce']((_0x35a1a3,_0x1ea351)=>(_0x35a1a3['next']=_0x1ea351,_0x1ea351['previous']=_0x35a1a3,_0x1ea351));};function _0x4f1eb3(_0x570cc9,_0x2ffd20=!0x0){const {id:_0x52fe7d,authorId:_0x3c6519}=_0x49ba7f['_splitMarkerName'](_0x570cc9['markerName']),_0x2f34a5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x13dcb3=_0x49ba7f['activeMarkers']['includes'](_0x570cc9['markerName']);return _0x13dcb3&&_0x2f34a5['push']('ck-suggestion-marker--active'),{'classes':_0x2f34a5,'attributes':{'data-suggestion':_0x52fe7d,'data-author-id':_0x3c6519},'priority':_0x13dcb3&&_0x2ffd20?0xbc2:0xbb8};}_0x49ba7f['on']('suggestionLoaded',_0x7bed6,{'priority':'high'}),_0x49ba7f['on']('suggestionUnloaded',_0x7bed6,{'priority':'high'}),_0x271b6c['model']['document']['registerPostFixer'](()=>{let _0x42d2bf=!0x1;const _0x419e7=Array['from'](_0x271b6c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33fb2c,data:_0x596cb8}of _0x419e7){const {group:_0x2424b7,type:_0x29b23c,id:_0x4bfd54}=_0x49ba7f['_splitMarkerName'](_0x33fb2c);if('suggestion'!=_0x2424b7||'deletion'!=_0x29b23c||_0x596cb8['oldRange'])continue;if(!_0x49ba7f['hasSuggestion'](_0x4bfd54))continue;const _0x227c07=_0x49ba7f['getSuggestion'](_0x4bfd54)['getRanges'](),_0x45c171=_0x271b6c['plugins']['get']('Users')['me'];for(const _0x1f79dd of _0x49ba7f['getSuggestions']()){if(!_0x1f79dd['isInContent']||_0x1f79dd['author']!=_0x45c171)continue;if('formatBlock'!=_0x1f79dd['type']||'tablePasteCell'!=_0x1f79dd['subType'])continue;if(_0x1f79dd['getRanges']()['every'](_0x1508ea=>_0x227c07['some'](_0x72e675=>_0x72e675['containsRange'](_0x1508ea,!0x0)))){for(const _0x3aab2d of _0x1f79dd['getAllAdjacentSuggestions']())_0x3aab2d['isInContent']&&(_0x3aab2d['discard'](),_0x42d2bf=!0x0);}}}return _0x42d2bf;}),_0x271b6c['model']['document']['registerPostFixer'](_0x117cc8=>{const _0x4dd649=_0x271b6c['commands']['get']('redo');if(!_0x4dd649||!_0x4dd649['_createdBatches']['has'](_0x117cc8['batch']))return!0x1;let _0x3dc3db=!0x1;const _0x3d1b60=_0x271b6c['plugins']['get']('Users')['me'],_0x2bc5ed=_0x271b6c['model']['document']['differ']['getChanges'](),_0xaf7257=Array['from'](_0x271b6c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4fe687,data:_0x277238})=>{const {group:_0x53ef60,subType:_0x55e04d,authorId:_0x48e298}=_0x49ba7f['_splitMarkerName'](_0x4fe687);return'suggestion'==_0x53ef60&&'tablePaste'==_0x55e04d&&_0x48e298==_0x3d1b60['id']&&!_0x277238['oldRange'];});for(const _0x2dc429 of _0x2bc5ed){if('insert'!=_0x2dc429['type']||'tableCellSuggestion'!=_0x2dc429['name']||0x1!=_0x2dc429['length'])continue;const _0x43dee4=_0x117cc8['createRange'](_0x2dc429['position'],_0x2dc429['position']['getShiftedBy'](0x1));if(!_0xaf7257['find'](({data:_0x4fa3ec})=>_0x4fa3ec['newRange']['isEqual'](_0x43dee4))){for(const {name:_0x5ea80e,data:_0x251abb}of _0xaf7257)if(_0x43dee4['containsRange'](_0x251abb['newRange'])){_0x117cc8['updateMarker'](_0x5ea80e,{'range':_0x43dee4}),_0x3dc3db=!0x0;break;}}}return _0x3dc3db;}),_0x271b6c['model']['document']['registerPostFixer'](_0x35d9a5=>{let _0x295f20=!0x1;const _0x1351ae=_0x271b6c['plugins']['get']('Users')['me'],_0x59e7b5=_0x49ba7f['getSuggestions']()['filter'](_0x4b62d2=>_0x4b62d2['isInContent']&&_0x4b62d2['author']==_0x1351ae),_0x17b916=new Set(),_0x12ae85=new Set();for(const _0x32f094 of _0x59e7b5)if('tablePaste'==_0x32f094['subType'])for(const _0x398508 of _0x32f094['getMarkers']()){const _0x3222ff=_0x398508['getRange']()['getContainedElement']();if(_0x3222ff){if(_0x3222ff['is']('element','tableCellSuggestion')&&De(_0x3222ff)){_0x32f094['removeMarker'](_0x398508['name']),_0x17b916['add'](_0x3222ff),_0x295f20=!0x0;const _0x1cbe6e=_0x3222ff['nextSibling'],_0x26fe16=_0x3222ff['previousSibling'],_0x1264c3=_0x1cbe6e&&_0x1cbe6e['is']('element','tableCellSuggestion'),_0x3001da=_0x26fe16&&_0x26fe16['is']('element','tableCellSuggestion');_0x1264c3&&!_0x17b916['has'](_0x1cbe6e)&&_0x12ae85['add'](_0x1cbe6e),_0x3001da&&!_0x17b916['has'](_0x26fe16)&&_0x12ae85['add'](_0x26fe16);}else _0x3222ff['is']('element','paragraph')&&_0x3222ff['isEmpty']&&(_0x32f094['removeMarker'](_0x398508['name']),_0x295f20=!0x0);}}else{if('tablePasteCell'==_0x32f094['subType']){if(!_0x32f094['attributes']||!_0x32f094['attributes']['tablePasteChainId'])continue;const _0x11ddbf=_0x32f094['attributes']['markerAttributes'];if(_0x11ddbf&&Object['keys'](_0x11ddbf)['length'])continue;const _0x49abe7=_0x32f094['attributes']['tablePasteChainId'];let _0x2fae2e=!0x0,_0x5ab1bf=!0x0;for(const _0xf85df3 of _0x59e7b5)if(_0xf85df3['subType']&&_0xf85df3['subType']['startsWith']('tablePaste')){if(!_0xf85df3['attributes']['tablePasteChainId']){_0x5ab1bf=!0x1;break;}if(_0xf85df3['id']!=_0x32f094['id']&&_0xf85df3['attributes']['tablePasteChainId']==_0x49abe7){_0x2fae2e=!0x1;break;}}_0x5ab1bf&&_0x2fae2e&&(_0x32f094['removeMarkers'](),_0x295f20=!0x0);}}for(const _0x8c820c of _0x17b916)_0x35d9a5['remove'](_0x8c820c);for(const _0x2177f0 of _0x12ae85)_0x35d9a5['unwrap'](_0x2177f0);return _0x295f20;}),_0x271b6c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x41e901=>_0x4f1eb3(_0x41e901),'converterPriority':'high'}),_0x271b6c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5706f2,_0x197f96)=>_0x197f96['options']['showSuggestionHighlights']?_0x4f1eb3(_0x5706f2,!0x1):null,'converterPriority':'high'});const _0x57c811=_0x271b6c['editing']['view'];this['listenTo'](_0x57c811['document'],'clipboardOutput',(_0x43f636,_0x46ad2c)=>{const _0x9bdef2=[];for(const _0x40f4a9 of _0x57c811['createRangeIn'](_0x46ad2c['content'])['getItems']())_0x40f4a9['is']('element','suggestion-td')&&_0x9bdef2['push'](_0x40f4a9);_0x57c811['change'](_0xf0d766=>{for(const _0x2aefa7 of _0x9bdef2)_0xf0d766['move'](_0xf0d766['createRangeIn'](_0x2aefa7),_0xf0d766['createPositionBefore'](_0x2aefa7)),_0xf0d766['remove'](_0x2aefa7);});});}}function De(_0x241222){if(_0x241222['isEmpty'])return!0x0;const _0x2fb415=_0x241222['getChild'](0x0);return _0x2fb415['is']('element','paragraph')&&_0x2fb415['isEmpty'];}function He(_0x42c76b,_0xe1f37c={},_0x27194a){for(const {isAnchor:_0x3daba0,cellHeight:_0x150c6d,cellWidth:_0x18d1f2}of _0x27194a['createTableWalker'](_0x42c76b,{'includeAllSlots':!0x0,..._0xe1f37c}))if(!_0x3daba0||0x1!=_0x150c6d||0x1!=_0x18d1f2)return!0x1;return!0x0;}class Bt extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xa29a4b=this['editor']['plugins']['get']('TrackChangesEditing');_0xa29a4b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xa29a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xa29a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa29a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xa29a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xa29a4b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x16af2b,_0x49fff9){const _0xb07a4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1421a8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x25539f=_0x49fff9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x303cb2=_0x1421a8['getColumnGroupElement'](_0x25539f);let _0x4f0b22=_0x303cb2?_0x1421a8['getTableColumnsWidths'](_0x303cb2):null,_0x2f7476=_0x25539f['getAttribute']('tableWidth')||null;const _0xfe960d=_0x49fff9['tableWidth']||_0x2f7476,_0x1a548b=_0x49fff9['columnWidths']||_0x4f0b22,_0x2d17ec=this['editor']['plugins']['get']('Users')['me'];for(const _0x57bf0d of _0xb07a4d['getSuggestions']()){const _0x2e268e=_0x57bf0d['getContainedElement']();if('resizeTable'===_0x57bf0d['subType']&&_0x2e268e===_0x25539f){_0x57bf0d['author']!==_0x2d17ec&&_0x57bf0d['discard']();const _0x3e8836=_0x57bf0d['data']['commandParams'];_0x2f7476=_0x3e8836[0x0]['tableWidth'],_0x4f0b22=_0x3e8836[0x0]['columnWidths'];break;}}_0x16af2b({'table':_0x25539f,'tableWidth':_0xfe960d,'columnWidths':_0x1a548b}),_0xb07a4d['markBlockFormat'](_0x25539f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2f7476,'columnWidths':_0x4f0b22}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa9dcd8){if('formatBlock'!=_0xa9dcd8['type']&&'formatInline'!=_0xa9dcd8['type'])return;const {data:_0x2e482d}=_0xa9dcd8;if(_0x2e482d&&'resizeTable'===_0x2e482d['formatGroupId']){const _0x996c2e='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x996c2e)};}}}class xt extends _0x6abf95{['afterInit'](){const _0x5c68b2=this['editor'];_0x5c68b2['plugins']['has']('Template')&&_0x5c68b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x6abf95{['afterInit'](){const _0x38cec7=this['editor'];if(!_0x38cec7['commands']['get']('insertTableOfContents'))return;_0x38cec7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1f3708=_0x38cec7['plugins']['get']('TrackChangesEditing'),_0x367f16=_0x38cec7['locale'];_0x1f3708['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4af6b3=>c(_0x367f16,'ELEMENT_TABLE_OF_CONTENTS',_0x4af6b3));}}class Rt extends _0x6abf95{['afterInit'](){const _0x528521=this['editor'];if(!_0x528521['plugins']['has']('Title'))return;const _0x4f9220=_0x528521['plugins']['get']('TrackChangesEditing');_0x4f9220['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x528521['locale'],'ELEMENT_TITLE')),_0x528521['model']['document']['registerPostFixer'](_0x9a992f=>{let _0xc85a4b=!0x1;const _0x50afb7=Array['from'](_0x528521['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43ca3f,data:_0xaf3ba2}of _0x50afb7){const {group:_0x36e2ec}=_0x4f9220['_splitMarkerName'](_0x43ca3f);if('suggestion'!==_0x36e2ec||!_0xaf3ba2['newRange'])continue;const _0x9b9913=_0xaf3ba2['newRange'],_0x1d3430=_0x9b9913['end']['nodeBefore'];if(!_0x1d3430||!_0x1d3430['is']('element','title-content'))continue;if(!_0x9b9913['start']['isTouching'](_0x9b9913['end']))continue;const _0x221a54=_0x528521['model']['schema']['getNearestSelectionRange'](_0x9b9913['end'],'forward');if(_0x221a54&&_0x221a54['isCollapsed']){const _0x399e97=_0x9a992f['createRange'](_0x9b9913['start'],_0x221a54['start']);_0x399e97['isEqual'](_0x9b9913)||(_0x9a992f['updateMarker'](_0x43ca3f,{'range':_0x399e97}),_0xc85a4b=!0x0);}_0xc85a4b||(_0x9a992f['removeMarker'](_0x43ca3f),_0xc85a4b=!0x0);}return _0xc85a4b;});}}class Tt extends _0x6abf95{['afterInit'](){const _0x172990=this['editor'],_0x3c8c35=_0x172990['plugins']['get']('TrackChangesEditing');_0x172990['plugins']['has']('Uploadcare')&&(_0x3c8c35['enableCommand']('uploadcare'),_0x172990['plugins']['has']('UploadcareImageEdit')&&(_0x3c8c35['enableCommand']('uploadcareImageEdit'),_0x3c8c35['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3c8c35['registerBlockAttribute']('uploadcareImageId'),_0x3c8c35['descriptionFactory']['registerDescriptionCallback'](_0x1bec2e=>{if('attribute'!=_0x1bec2e['type'])return;const {data:_0x24f60b}=_0x1bec2e;return _0x24f60b&&'uploadcareImageId'==_0x24f60b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x6abf95{['afterInit'](){const _0x1968b0=this['editor'],_0x45d3e2=_0x1968b0['plugins']['get']('TrackChangesEditing');_0x1968b0['plugins']['has']('UndoEditing')&&(_0x45d3e2['enableCommand']('undo'),_0x45d3e2['enableCommand']('redo'));}}class Ut extends _0x6abf95{static get['requires'](){return[Ct];}['afterInit'](){const _0x15919d=this['editor'];if(!_0x15919d['plugins']['has']('TableCaptionEditing'))return;_0x15919d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x6abf95{['tableProperties'];['tableCellProperties'];constructor(_0x33c605){super(_0x33c605),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 _0x3b0415=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a5240 of this['tableProperties'])_0x3b0415['enableCommand'](_0x1a5240,(_0x41ce21,_0x7ddec9)=>{const _0x4d2bc2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a5240,[_0x4d2bc2],this['tableProperties'],'tableProperties',_0x41ce21,_0x7ddec9);});_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3b0415['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x36f753,_0x1ae6e3)=>this['handleDiscardAction'](this['tableProperties'],_0x36f753,_0x1ae6e3)),_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x30a646 of this['tableCellProperties'])_0x3b0415['enableCommand'](_0x30a646,(_0x15754b,_0xb3d22f)=>{const _0x410e1d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x30a646,_0x410e1d,this['tableCellProperties'],'tableCellProperties',_0x15754b,_0xb3d22f);});_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3b0415['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3f1524,_0x2c6847)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3f1524,_0x2c6847)),_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3b0415['descriptionFactory']['registerDescriptionCallback'](_0x4c6eca=>this['handleSuggestionDescription'](_0x4c6eca));}['_handlePropertyChange'](_0x4b50e6,_0x45e694,_0x1fe631,_0x55807a,_0x52205f,_0x1f1a47){const _0x561929=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f1a47['batch'],()=>{for(const _0x53865d of _0x45e694){if(this['_getSuggestion'](_0x53865d,_0x55807a))_0x52205f(_0x1f1a47);else{const _0x2fe1d5={};for(const _0x295ac8 of _0x1fe631){const _0x486c5e=_0x53865d['getAttribute'](_0x295ac8);void 0x0!==_0x486c5e&&(_0x2fe1d5[_0x295ac8]=_0x486c5e);}_0x52205f(_0x1f1a47),_0x561929['markBlockFormat'](_0x53865d,{'commandParams':[_0x2fe1d5]},[],_0x55807a);}}});}['handleDiscardAction'](_0xabe7aa,_0x274009,_0x34daba){const _0x45afe4=_0x274009[0x0]['start']['nodeAfter'],_0x1d5c3b=_0x34daba['commandParams'][0x0];this['editor']['model']['change'](_0x528617=>{for(const _0x45a73b of _0xabe7aa)void 0x0!==_0x1d5c3b[_0x45a73b]?_0x528617['setAttribute'](_0x45a73b,_0x1d5c3b[_0x45a73b],_0x45afe4):_0x528617['removeAttribute'](_0x45a73b,_0x45afe4);});}['handleSuggestionDescription'](_0x58f101){if(_0x58f101['data'])switch(_0x58f101['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1c0404,_0x4a6288){const _0x527e33=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b20fa of _0x527e33['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c7f0a=_0x5b20fa['getContainedElement']();if(_0x5b20fa['subType']===_0x4a6288&&_0x5c7f0a===_0x1c0404)return _0x5b20fa;}return null;}}const u='$elementName';class p extends _0x6abf95{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x50e121,_0x55f448,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2232de){super(_0x2232de),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x359081,_0x5d44a1,_0x5d57bc,_0x98ff06)=>{this['_model']['change'](()=>{for(const _0x39353d of[..._0x98ff06,..._0x5d57bc])this['_model']['markers']['has'](_0x39353d)&&_0x2232de['editing']['reconvertMarker'](_0x39353d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2232de['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2232de['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2232de['config']['get']('trackChanges.trackFormatChanges'),_0x2232de['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2232de['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2232de,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3a8eb7=this['editor'],_0x185ae6=(_0x2e6453,_0x40db14)=>{if('attribute'!=_0x2e6453)return'ck-suggestion-marker-'+_0x2e6453;const _0x107988=_0x40db14['split']('|')[0x0];return this['_isBlockAttribute'](_0x107988)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3a8eb7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4fe64f=>{const {id:_0x15f3ab,authorId:_0xf4ac87,type:_0x5cfb28,subType:_0x4a3476}=this['_splitMarkerName'](_0x4fe64f['markerName']),_0x223fa5=['ck-suggestion-marker',_0x185ae6(_0x5cfb28,_0x4a3476)];let _0x98d294=0xbb8;return this['activeMarkers']['includes'](_0x4fe64f['markerName'])&&(_0x223fa5['push']('ck-suggestion-marker--active'),_0x98d294=0xbc2),'deletion'==_0x5cfb28&&(_0x98d294+=0x5),{'classes':_0x223fa5,'attributes':{'data-suggestion':_0x15f3ab,'data-author-id':_0xf4ac87},'priority':_0x98d294};}}),_0x3a8eb7['conversion']['for']('dataDowncast')['add'](_0x2f9f1c=>{_0x2f9f1c['on']('addMarker:suggestion',(_0x483948,_0xfa5604,_0x556ea2)=>{if(!_0x556ea2['options']['showSuggestionHighlights'])return;const _0x5162b7=_0xfa5604['item'];if(!_0x5162b7)return;const _0x2d5da8=_0x556ea2['mapper']['toViewElement'](_0x5162b7);_0x3a8eb7['model']['schema']['isObject'](_0x5162b7)&&_0x2d5da8&&!_0x2d5da8['getCustomProperty']('widget')&&_0x2d5da8['is']('containerElement')&&_0xa6607b(_0x2d5da8,_0x556ea2['writer']);},{'priority':'high'});}),_0x3a8eb7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x389211,_0x297bc3)=>{if(!_0x297bc3['options']['showSuggestionHighlights'])return null;const {id:_0x132026,authorId:_0x3c2fd3,type:_0x308bb5,subType:_0x39702b}=this['_splitMarkerName'](_0x389211['markerName']);return{'classes':['ck-suggestion-marker',_0x185ae6(_0x308bb5,_0x39702b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x132026,'data-author-id':_0x3c2fd3}};}});const _0x5b83e3=({showActiveMarkers:_0x13e942=!0x0,isAttributeSuggestion:_0x33cc19=!0x1}={})=>(_0x2715e1,_0x464643,_0x22c50d)=>{if(!_0x464643['item'])return;const {id:_0x2fdeb6,authorId:_0x3ed75d}=this['_splitMarkerName'](_0x464643['markerName']);if(_0x33cc19){const _0x59bd93=this['_suggestions']['get'](_0x2fdeb6),_0x885bef=this['_getAttributeKey'](_0x59bd93);if(!this['_isBlockAttribute'](_0x885bef))return;}if(_0x464643['item']['is']('selection'))return void _0x22c50d['consumable']['consume'](_0x464643['item'],_0x2715e1['name']);const _0x325468=_0x22c50d['mapper']['toViewElement'](_0x464643['item']);if(_0x464643['item']['is']('element')&&_0x3a8eb7['model']['schema']['isBlock'](_0x464643['item'])&&!_0x325468['getCustomProperty']('addHighlight')){_0x22c50d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x325468),_0x22c50d['writer']['setAttribute']('data-suggestion',_0x2fdeb6,_0x325468),_0x22c50d['writer']['setAttribute']('data-author-id',_0x3ed75d,_0x325468),_0x22c50d['mapper']['bindElementToMarker'](_0x325468,_0x464643['markerName']),_0x13e942&&(this['activeMarkers']['includes'](_0x464643['markerName'])?_0x22c50d['writer']['addClass']('ck-suggestion-marker--active',_0x325468):_0x22c50d['writer']['removeClass']('ck-suggestion-marker--active',_0x325468));for(const _0xdd8ed3 of _0x3a8eb7['model']['createRangeIn'](_0x464643['item'])['getItems']())_0x22c50d['consumable']['consume'](_0xdd8ed3,_0x2715e1['name']);_0x22c50d['consumable']['consume'](_0x464643['item'],_0x2715e1['name']);}};_0x3a8eb7['conversion']['for']('dataDowncast')['add'](_0x2682f7=>{_0x2682f7['on']('addMarker:suggestion:formatBlock',(_0x37049f,_0x40b570,_0x5cca0b)=>{_0x5cca0b['options']['showSuggestionHighlights']&&_0x5b83e3({'showActiveMarkers':!0x1})(_0x37049f,_0x40b570,_0x5cca0b);},{'priority':'highest'});}),_0x3a8eb7['conversion']['for']('dataDowncast')['add'](_0x3cd2e7=>{_0x3cd2e7['on']('addMarker:suggestion:attribute',(_0x1b59df,_0x3fc672,_0x39b71c)=>{_0x39b71c['options']['showSuggestionHighlights']&&_0x5b83e3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1b59df,_0x3fc672,_0x39b71c);},{'priority':'highest'});}),_0x3a8eb7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3ec96f,_0x485739)=>{if(_0x485739['options']['showSuggestionHighlights']){const {id:_0x108d46,authorId:_0x49e8f8}=this['_splitMarkerName'](_0x3ec96f);return _0x3ec96f['includes'](':split')||_0x3ec96f['includes'](':merge')?{'group':'suggestion','name':_0x3ec96f['substr'](0xb),'attributes':{'data-suggestion':_0x108d46,'data-author-id':_0x49e8f8}}:null;}return{'group':'suggestion','name':_0x3ec96f['substr'](0xb)};}}),_0x3a8eb7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x52b2b2,{writer:_0x38ab44})=>{let _0x136bf0='suggestion:'+_0x52b2b2['getAttribute']('suggestion-type')+':'+_0x52b2b2['getAttribute']('id');return _0x52b2b2['getAttribute']('marker-count')&&(_0x136bf0+=':'+_0x52b2b2['getAttribute']('marker-count')),_0x38ab44['createElement']('$marker',{'data-name':_0x136bf0});}}),_0x3a8eb7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3a8eb7['conversion']['for']('editingDowncast')['add'](_0x1c75fe=>{_0x1c75fe['on']('addMarker:suggestion:formatBlock',_0x5b83e3(),{'priority':'high'});}),_0x3a8eb7['conversion']['for']('editingDowncast')['add'](_0x11260d=>{_0x11260d['on']('addMarker:suggestion:attribute',_0x5b83e3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3a8eb7['conversion']['for']('editingDowncast')['add'](_0xfe75cb=>{_0xfe75cb['on']('removeMarker:suggestion:formatBlock',(_0x2c4859,_0x585fd4,_0x7a83c0)=>{const _0x27e80c=_0x7a83c0['mapper']['markerNameToElements'](_0x585fd4['markerName']);if(_0x27e80c){for(const _0x1a7404 of _0x27e80c)_0x1a7404['getCustomProperty']('addHighlight')||(_0x7a83c0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a7404),_0x7a83c0['writer']['removeAttribute']('data-suggestion',_0x1a7404),_0x7a83c0['writer']['removeAttribute']('data-author-id',_0x1a7404),_0x7a83c0['mapper']['unbindElementFromMarkerName'](_0x1a7404,_0x585fd4['markerName']));}},{'priority':'high'});}),_0x3a8eb7['conversion']['for']('editingDowncast')['add'](_0x5f2190=>{_0x5f2190['on']('removeMarker:suggestion:attribute',(_0x5c16a5,_0x2a0ae5,_0x1b7a6c)=>{const _0x48230c=_0x1b7a6c['mapper']['markerNameToElements'](_0x2a0ae5['markerName']);if(!_0x48230c)return;const {id:_0x56cdaa}=this['_splitMarkerName'](_0x2a0ae5['markerName']),_0x5893c7=this['_suggestions']['get'](_0x56cdaa),_0x45bf9d=this['_getAttributeKey'](_0x5893c7);if(this['_isBlockAttribute'](_0x45bf9d)){for(const _0x468351 of _0x48230c)_0x468351['getCustomProperty']('addHighlight')||(_0x1b7a6c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x468351),_0x1b7a6c['writer']['removeAttribute']('data-suggestion',_0x468351),_0x1b7a6c['writer']['removeAttribute']('data-author-id',_0x468351),_0x1b7a6c['mapper']['unbindElementFromMarkerName'](_0x468351,_0x2a0ae5['markerName']));}},{'priority':'high'});}),_0x3a8eb7['model']['document']['registerPostFixer'](_0x3e533b=>{let _0x8dd576=!0x1;const _0x62f2c8=Array['from'](_0x3a8eb7['model']['document']['differ']['getChangedMarkers']()),_0x50983c=new Set();for(const {name:_0x4696d3,data:_0xf50762}of _0x62f2c8){const {group:_0x528299,type:_0x4a4af1,subType:_0x267121,id:_0x58f607}=this['_splitMarkerName'](_0x4696d3);if('suggestion'!==_0x528299)continue;const _0x29f9d1=this['_suggestions']['get'](_0x58f607);if(null!=_0xf50762['newRange']){'formatInline'==_0x4a4af1&&(_0x8dd576=_0x8dd576||Jt(_0xf50762['newRange'],_0x4696d3,_0x3e533b,_0x3a8eb7['model']['schema']));const _0x2d8c0f='attribute'==_0x4a4af1&&this['_isBlockAttribute'](_0x267121['split']('|')[0x0]);if(_0xf50762['newRange']['isCollapsed']||'$graveyard'==_0xf50762['newRange']['root']['rootName']||'formatBlock'==_0x4a4af1&&!Ht(_0xf50762['newRange'])||_0x2d8c0f&&!Ht(_0xf50762['newRange'])||'deletion'==_0x4a4af1&&!(!Lt(_0x48cdc6=_0xf50762['newRange'])&&!function(_0x2652c5){return _0x2652c5['start']['parent']==_0x2652c5['end']['nodeBefore']&&_0x2652c5['start']['isAtEnd'];}(_0x48cdc6)))_0x3e533b['removeMarker'](_0x4696d3),_0x8dd576=!0x0;else{if(!_0x29f9d1||!_0x29f9d1['isInContent'])continue;if(_0xf50762['newRange']&&_0xf50762['oldRange']&&_0xf50762['newRange']['isEqual'](_0xf50762['oldRange']))continue;_0x50983c['add'](_0x29f9d1);}}}var _0x48cdc6;return _0x50983c['size']>0x0&&(_0x8dd576=!!this['_joinWithAdjacentSuggestions'](_0x50983c)||_0x8dd576),_0x8dd576;}),_0x3a8eb7['model']['document']['registerPostFixer'](_0x61d01a=>{let _0x32b928=!0x1;for(const _0xee78e2 of _0x3a8eb7['model']['document']['differ']['getChanges']())if('insert'==_0xee78e2['type'])for(const _0x2bca1f of this['_suggestions']['values']()){if(_0x2bca1f['isMultiRange']||!_0x2bca1f['isInContent'])continue;const _0x3ef3d4='formatBlock'==_0x2bca1f['type'],_0x1d7c4e=this['_getAttributeKey'](_0x2bca1f),_0xd4f550=_0x1d7c4e&&this['_isBlockAttribute'](_0x1d7c4e);if(!_0x3ef3d4&&!_0xd4f550)continue;const _0x389974=_0x2bca1f['getFirstRange']();if(_0x389974['start']['parent']!=_0x389974['end']['parent']&&!_0x389974['end']['isAtEnd']){const _0x5de399=_0x3a8eb7['model']['createPositionAt'](_0x389974['start']['nodeAfter'],'end'),_0x4b7f1a=_0x3a8eb7['model']['createRange'](_0x389974['start'],_0x5de399);_0x61d01a['updateMarker'](_0x2bca1f['getFirstMarker'](),{'range':_0x4b7f1a}),_0x32b928=!0x0;}}return _0x32b928;}),_0x3a8eb7['model']['document']['registerPostFixer'](_0x34e31a=>this['_processAttributeChanges'](_0x34e31a)),_0x3a8eb7['model']['document']['registerPostFixer'](_0x1fb132=>!_0x1fb132['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1fb132)),_0x3a8eb7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3a8eb7['model']['document']['on']('change:data',(_0x2b819f,_0x12b589)=>{if(!_0x12b589['isLocal']||_0x12b589['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x343777=_0x3a8eb7['model']['document']['differ']['getChanges']();if(0x0==_0x343777['length'])return;const _0x2cfa6f=[],_0x4b2f3c=_0x343777['filter'](_0x51bcb2=>'attribute'==_0x51bcb2['type']),_0x3dcab3=_0x343777['filter'](_0xeb3bd9=>'insert'==_0xeb3bd9['type']&&'$text'!=_0xeb3bd9['name']);for(const _0x28403d of _0x4b2f3c)this['_isRegisteredAttribute'](_0x28403d['attributeKey'])&&_0x2cfa6f['push']({'key':_0x28403d['attributeKey'],'newValue':_0x28403d['attributeNewValue'],'oldValue':_0x28403d['attributeOldValue'],'range':qt(_0x28403d['range'],_0x3a8eb7['model'])});for(const _0x54a84e of _0x3dcab3){if('rename'!=_0x54a84e['action']&&'refresh'!=_0x54a84e['action'])continue;const _0x450c22=zt(_0x54a84e['position']['nodeAfter'],_0x3a8eb7['model']),_0x3ce473=_0x54a84e['before'];'rename'==_0x54a84e['action']&&_0x2cfa6f['push']({'key':u,'newValue':_0x54a84e['name'],'oldValue':_0x3ce473['name'],'range':_0x450c22});for(const [_0x46d01d,_0x14b978]of _0x3ce473['attributes']){if(!this['_isRegisteredAttribute'](_0x46d01d))continue;const _0x52c360=_0x54a84e['attributes']['get'](_0x46d01d);_0x14b978!==_0x52c360&&_0x2cfa6f['push']({'key':_0x46d01d,'newValue':_0x52c360,'oldValue':_0x14b978,'range':_0x450c22});}for(const [_0x228f18,_0x1b4648]of _0x54a84e['attributes'])this['_isRegisteredAttribute'](_0x228f18)&&(_0x3ce473['attributes']['has'](_0x228f18)||_0x2cfa6f['push']({'key':_0x228f18,'newValue':_0x1b4648,'oldValue':null,'range':_0x450c22}));}0x0!=_0x2cfa6f['length']&&_0x3a8eb7['model']['enqueueChange'](_0x12b589,_0x3c92f9=>{const _0x1b05e8=_0x5d446a();for(const {range:_0x26a64d,key:_0x217510,oldValue:_0x4749ee,newValue:_0x56272f}of _0x2cfa6f)this['markAttributeChange'](_0x26a64d,_0x217510,_0x4749ee,_0x56272f,{'groupId':_0x1b05e8});this['_reduceExistingSuggestions'](_0x3c92f9,_0x2cfa6f);});},{'priority':'lowest'}),_0x3a8eb7['model']['markers']['on']('update:suggestion',(_0x35dedf,_0x3128d8,_0x19afed)=>{if(null==_0x19afed){const {id:_0x22cccf}=this['_splitMarkerName'](_0x3128d8['name']),_0x43bba5=this['_suggestions']['get'](_0x22cccf);_0x43bba5&&_0x43bba5['addMarkerName'](_0x3128d8['name']);}}),_0x3a8eb7['model']['document']['on']('change:data',()=>{const _0x5a6fe7=Array['from'](_0x3a8eb7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x57bb2a=>'suggestion'===this['_splitMarkerName'](_0x57bb2a['name'])['group']);if(0x0===_0x5a6fe7['length'])return;_0x5a6fe7['sort']((_0x4bc07d,_0x404fa4)=>{const _0x2d59ca=_0x4bc07d['data']['oldRange'],_0xd3767a=_0x404fa4['data']['oldRange'];return null===_0x2d59ca&&null===_0xd3767a?0x0:null===_0x2d59ca&&null!==_0xd3767a?-0x1:null!==_0x2d59ca&&null===_0xd3767a?0x1:_0x2d59ca['start']['isBefore'](_0xd3767a['start'])?-0x1:0x1;});const _0x3b7c16=new Set(),_0x5a64f1=new Set();for(const {name:_0x253fc3,data:_0xfa6305}of _0x5a6fe7){const {id:_0x48c110}=this['_splitMarkerName'](_0x253fc3);if(null===_0xfa6305['oldRange']){const _0x3e9a03=this['_handleNewSuggestionMarker'](_0x253fc3);_0x5a64f1['add'](_0x3e9a03);}else{const _0x343099=this['_suggestions']['get'](_0x48c110);null!==_0xfa6305['newRange']||_0x343099['isInContent']?(_0x3b7c16['add'](_0x343099['head']),_0x5a64f1['add'](_0x343099)):this['_removeSuggestion'](_0x343099);}}_0x5a64f1['size']>0x0&&this['_refreshSuggestionsChain'](_0x5a64f1);for(const _0x299472 of _0x3b7c16)this['fire']('suggestionChanged',_0x299472);}),_0x3a8eb7['model']['on']('applyOperation',(_0x1c8aa3,_0x47a68f)=>{const _0x22c750=_0x47a68f[0x0];if(!this['_suggestions']['size'])return;if(!_0x22c750['isDocumentOperation'])return;if(_0x22c750['batch']['isUndo']||!_0x22c750['batch']['isLocal'])return;let _0x475570,_0x19ad75;switch(_0x22c750['type']){case'insert':_0x475570=_0x3a8eb7['model']['createPositionAt'](_0x22c750['position']),_0x19ad75=_0x475570['getShiftedBy'](_0x22c750['howMany']);break;case'split':_0x475570=_0x3a8eb7['model']['createPositionAt'](_0x22c750['splitPosition']),_0x19ad75=_0x3a8eb7['model']['createPositionAt'](_0x22c750['moveTargetPosition']);break;case'move':_0x475570=_0x3a8eb7['model']['createPositionAt'](_0x22c750['targetPosition']),_0x19ad75=_0x475570['getShiftedBy'](_0x22c750['howMany']);break;default:return;}const _0x5e91f6=_0x3a8eb7['model']['createRange'](_0x475570,_0x19ad75);_0x3a8eb7['model']['change'](()=>{for(const {suggestion:_0x633ace,meta:_0x39a351}of this['_findSuggestions'](_0x5e91f6)){if(_0x633ace['isMultiRange'])continue;if('formatInline'==_0x633ace['type'])continue;const _0x906995=this['_getAttributeKey'](_0x633ace);if(_0x906995&&this['_isBlockAttribute'](_0x906995)&&'split'!=_0x22c750['type'])continue;const _0x419e2e=_0x633ace['data']&&_0x633ace['data']['multipleBlocks'];('formatBlock'!=_0x633ace['type']||'split'==_0x22c750['type']&&!_0x419e2e)&&(_0x39a351['containsRangeInObject']||'insertion'==_0x633ace['type']&&_0x39a351['isOwn']||_0x633ace['getFirstRange']()['containsRange'](_0x5e91f6)&&this['_breakSuggestionMarker'](_0x633ace,_0x475570,_0x19ad75));}});},{'priority':'lowest'}),_0x3a8eb7['model']['on']('deleteContent',(_0x498e13,_0x522724)=>{const _0x359ce6=_0x522724[0x0],_0x480a7c=_0x522724[0x1];if(_0x480a7c&&_0x480a7c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x359ce6['isCollapsed'])return;const _0x5e269a=_0x3a8eb7['model']['schema'],{start:_0x1ff4b3,end:_0x5c4e4a}=_0x359ce6['getFirstRange'](),_0x416f00=_0x1ff4b3['nodeAfter']&&_0x5e269a['isLimit'](_0x1ff4b3['nodeAfter'])?null:_0x5e269a['getNearestSelectionRange'](_0x1ff4b3,'forward'),_0x2130ad=_0x5c4e4a['nodeBefore']&&_0x5e269a['isLimit'](_0x5c4e4a['nodeBefore'])?null:_0x5e269a['getNearestSelectionRange'](_0x5c4e4a,'backward'),_0x158ed8=_0x3a8eb7['model']['createRange'](_0x416f00?_0x416f00['start']:_0x1ff4b3,_0x2130ad?_0x2130ad['end']:_0x5c4e4a);_0x3a8eb7['model']['change'](_0x229ce5=>{this['markDeletion'](_0x158ed8);const _0x51f09f=_0x3a8eb7['model']['schema']['getNearestSelectionRange'](_0x158ed8['start']);_0x359ce6['is']('documentSelection')?_0x229ce5['setSelection'](_0x51f09f):_0x359ce6['setTo'](_0x51f09f);}),_0x498e13['stop']();},{'priority':_0x23dcbe['normal']+0xa}),_0x3a8eb7['model']['on']('insertContent',(_0x5f0a72,_0x325a77)=>{const _0x649eae=_0x325a77[_0x325a77['length']-0x1];_0x649eae&&_0x649eae['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3a8eb7['model']['change'](()=>{let _0x5f57ae=_0x3a8eb7['model']['insertContent'](_0x325a77[0x0],_0x325a77[0x1],_0x325a77[0x2],{'forceDefaultExecution':!0x0});if(!_0x5f57ae)return;_0x5f0a72['return']=_0x5f57ae['clone']();const _0x5bdbba=_0x5f57ae['end']['nodeBefore'],_0x30d368=_0x3a8eb7['model']['schema'];_0x5bdbba&&_0x30d368['isBlock'](_0x5bdbba)&&!_0x30d368['isObject'](_0x5bdbba)&&(_0x5f57ae=_0x3a8eb7['model']['createRange'](_0x5f57ae['start'],_0x3a8eb7['model']['createPositionAt'](_0x5bdbba,'end'))),this['markInsertion'](_0x5f57ae);}),_0x5f0a72['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x37e7fa=new x(_0x3a8eb7,this['_suggestions']);_0x3a8eb7['commands']['add']('acceptSuggestion',_0x37e7fa),this['enableCommand']('acceptSuggestion');const _0x151df4=new O(_0x3a8eb7,this['_suggestions']);_0x3a8eb7['commands']['add']('discardSuggestion',_0x151df4),this['enableCommand']('discardSuggestion'),_0x3a8eb7['commands']['add']('acceptAllSuggestions',new R(_0x3a8eb7,_0x37e7fa,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3a8eb7['commands']['add']('discardAllSuggestions',new R(_0x3a8eb7,_0x151df4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3a8eb7['commands']['add']('acceptSelectedSuggestions',new E(_0x3a8eb7,_0x37e7fa,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3a8eb7['commands']['add']('discardSelectedSuggestions',new E(_0x3a8eb7,_0x151df4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10ada0=_0x3a8eb7['plugins']['get']('CommentsRepository');this['listenTo'](_0x10ada0,'addComment',(_0x1a3710,{threadId:_0x4c691e})=>{const _0x6f40e8=this['_suggestions']['get'](_0x4c691e);_0x6f40e8&&_0x6f40e8['commentThread']&&0x1===_0x6f40e8['commentThread']['length']&&this['_updateSuggestionData'](_0x4c691e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10ada0,'removeComment',(_0x19d1b9,{threadId:_0x51cfa6})=>{const _0x1e081c=this['_suggestions']['get'](_0x51cfa6);_0x1e081c&&_0x1e081c['commentThread']&&!_0x1e081c['commentThread']['length']&&this['_updateSuggestionData'](_0x51cfa6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x41917a){const _0x23dbbe=_0x4af112([0x59,0x4f,0x49,0x6c,0x6a,0x45,0x6b,0x4d,0x56,0x63,0x72,0x37,0x4b,0x6f,0x61,0x46,0x77,0x75,0x34,0x58,0x52,0x43,0x6e,0x6d,0x41,0x4c,0x4a,0x78,0x5a,0x48,0x31,0x76,0x73,0x36,0x64,0x67,0x74,0x55,0x32,0x68,0x50,0x42,0x7a,0x66,0x38,0x53,0x69,0x71,0x62,0x4e,0x54,0x79,0x39,0x47,0x70,0x65,0x35,0x51,0x33,0x30,0x57,0x44]),_0x265877=0x6bbef98e,_0x3d813f=0x6bb99e2e^_0x265877,_0x2be5a0=window[_0x4af112([0x44,0x61,0x74,0x65])][_0x4af112([0x6e,0x6f,0x77])](),_0x4a5703=_0x41917a[_0x4af112([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3187d3=new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337585=>{_0x4a5703[_0x4af112([0x6f,0x6e,0x63,0x65])](_0x4af112([0x72,0x65,0x61,0x64,0x79]),_0x337585);}),_0x450999={[_0x4af112([0x6b,0x74,0x79])]:_0x4af112([0x45,0x43]),[_0x4af112([0x75,0x73,0x65])]:_0x4af112([0x73,0x69,0x67]),[_0x4af112([0x63,0x72,0x76])]:_0x4af112([0x50,0x2d,0x32,0x35,0x36]),[_0x4af112([0x78])]:_0x4af112([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]),[_0x4af112([0x79])]:_0x4af112([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]),[_0x4af112([0x61,0x6c,0x67])]:_0x4af112([0x45,0x53,0x32,0x35,0x36])},_0x525816=_0x4a5703[_0x4af112([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4af112([0x67,0x65,0x74])](_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a140d(){let _0x11dcd1,_0x370529=null,_0x7efcb4=null;try{if(_0x525816==_0x4af112([0x47,0x50,0x4c]))return _0x4af112([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11dcd1=_0x201adf(),!_0x11dcd1)return _0x4af112([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11dcd1[_0x4af112([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7efcb4=_0x234338(_0x11dcd1[_0x4af112([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11dcd1[_0x4af112([0x6a,0x74,0x69])])),await _0x2577c7()?_0x2802a7()?_0x45c4a7()?_0x4af112([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3209e5()?(_0x11dcd1[_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4af112([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x370529=_0x27e3c5(_0x4af112([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11dcd1[_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4af112([0x74,0x72,0x69,0x61,0x6c])&&(_0x370529=_0x27e3c5(_0x4af112([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d9bca()):_0x4af112([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4af112([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4af112([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xc6295e){return _0x4af112([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45c4a7(){const _0x3e0861=[_0x4af112([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4af112([0x74,0x72,0x69,0x61,0x6c])][_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11dcd1[_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2be5a0/0x3e8:0xe10*_0x3d813f;return _0x11dcd1[_0x4af112([0x65,0x78,0x70])]<_0x3e0861;}function _0x2802a7(){const _0x4f8801=_0x11dcd1[_0x4af112([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4f8801)return!0x1;if(_0x4f8801[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af112([0x2a])))return!0x0;if(_0x4f8801[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af112([0x54,0x43])))return!0x0;if(_0x4f8801[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af112([0x52,0x54,0x43]))){if(_0xb83857())return!0x0;if(_0x27353e()||_0x278f65())return!0x0;}return!0x1;}function _0x3209e5(){const _0x5d8aea=_0x11dcd1[_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d8aea||0x0==_0x5d8aea[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c9eb3}=new URL(window[_0x4af112([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d8aea[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c9eb3))return!0x0;const _0x421453=_0x5c9eb3[_0x4af112([0x73,0x70,0x6c,0x69,0x74])](_0x4af112([0x2e]));return _0x5d8aea[_0x4af112([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x257af4=>_0x257af4[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af112([0x2a])))[_0x4af112([0x6d,0x61,0x70])](_0x32d612=>_0x32d612[_0x4af112([0x73,0x70,0x6c,0x69,0x74])](_0x4af112([0x2e])))[_0x4af112([0x73,0x6f,0x6d,0x65])](_0x2b8743=>_0x421453[_0x4af112([0x65,0x76,0x65,0x72,0x79])]((_0x13f094,_0x1484e3)=>_0x2b8743[_0x1484e3]===_0x13f094||_0x2b8743[_0x1484e3]===_0x4af112([0x2a])));}function _0x1d9bca(){return _0x370529&&_0x7efcb4?new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15699b,_0x426565)=>{_0x370529[_0x4af112([0x74,0x68,0x65,0x6e])](_0x15699b,_0x426565),_0x7efcb4[_0x4af112([0x74,0x68,0x65,0x6e])](_0x204011=>{_0x204011!=_0x4af112([0x56,0x61,0x6c,0x69,0x64])&&_0x15699b(_0x204011);},_0x426565);}):_0x370529||_0x7efcb4||_0x4af112([0x56,0x61,0x6c,0x69,0x64]);}}function _0x234338(_0x2d3517,_0x2ac8c0){return new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4313ec=>{if(_0x30a340())return _0x4313ec(_0x4af112([0x56,0x61,0x6c,0x69,0x64]));_0x23fff6(),_0x4a5703[_0x4af112([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4af112([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10cddd=!0x1;const _0x1e41af=_0x5d446a();function _0x2f3507(_0x35e497){return!!_0x35e497&&(typeof _0x35e497===_0x4af112([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35e497===_0x4af112([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35e497[_0x4af112([0x74,0x68,0x65,0x6e])]===_0x4af112([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35e497[_0x4af112([0x63,0x61,0x74,0x63,0x68])]===_0x4af112([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbfcd6e(_0xf3d880){_0x34d9c1(_0xf3d880)[_0x4af112([0x74,0x68,0x65,0x6e])](_0x4daebf=>{if(!_0x4daebf||_0x4daebf[_0x4af112([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4af112([0x6f,0x6b]))return _0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x103582(_0x3944af(_0x1e41af+_0x2ac8c0))!=_0x4daebf[_0x4af112([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4af112([0x56,0x61,0x6c,0x69,0x64]);})[_0x4af112([0x74,0x68,0x65,0x6e])](_0x2ecf7e=>(_0x29676c(),_0x2ecf7e),()=>{const _0xc13cec=_0x40a53e();return null==_0xc13cec?(_0x29676c(),_0x4af112([0x56,0x61,0x6c,0x69,0x64])):_0x4af112(_0x2be5a0-_0xc13cec>(0x4fb27d8e^_0x265877)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4af112([0x74,0x68,0x65,0x6e])](_0x4313ec)[_0x4af112([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4313ec(_0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x165e5a=0x6b88170e^_0x265877;function _0x29676c(){const _0x6ae4b1=_0x4af112([0x6c,0x6c,0x63,0x74,0x2d])+_0x103582(_0x3944af(_0x2d3517)),_0x23f4b3=_0x515f94(_0x103582(window[_0x4af112([0x4d,0x61,0x74,0x68])][_0x4af112([0x63,0x65,0x69,0x6c])](_0x2be5a0/_0x165e5a)));window[_0x4af112([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af112([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6ae4b1,_0x23f4b3);}function _0x40a53e(){const _0x298e40=_0x4af112([0x6c,0x6c,0x63,0x74,0x2d])+_0x103582(_0x3944af(_0x2d3517)),_0x38bbdf=window[_0x4af112([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af112([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x298e40);return _0x38bbdf?window[_0x4af112([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x515f94(_0x38bbdf),0x10)*_0x165e5a:null;}function _0x34d9c1(_0x3e4484){return new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x223e16,_0x38ef15)=>{_0x3e4484[_0x4af112([0x74,0x68,0x65,0x6e])](_0x223e16,_0x38ef15),window[_0x4af112([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38ef15,0x6bbf2d4e^_0x265877);});}}_0x4a5703[_0x4af112([0x6f,0x6e])](_0x4af112([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45fb8a,_0x416bea)=>{if(_0x416bea[0x0]!=_0x2d3517)return _0x4313ec(_0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x416bea[0x1]={..._0x416bea[0x1],[_0x4af112([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e41af};},{[_0x4af112([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af112([0x68,0x69,0x67,0x68])}),_0x4a5703[_0x4af112([0x6f,0x6e])](_0x4af112([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c3033=>{_0x2f3507(_0x2c3033[_0x4af112([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10cddd=!0x0,_0xbfcd6e(_0x2c3033[_0x4af112([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4af112([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af112([0x6c,0x6f,0x77])}),_0x3187d3[_0x4af112([0x74,0x68,0x65,0x6e])](()=>{_0x10cddd||_0x4313ec(_0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x30a340(){return _0x4a5703[_0x4af112([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af112([0x76,0x69,0x65,0x77])][_0x4af112([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4af112([0x61,0x75,0x74,0x6f]);}function _0x23fff6(){_0x4a5703[_0x4af112([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af112([0x76,0x69,0x65,0x77])][_0x4af112([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4af112([0x61,0x75,0x74,0x6f]);}}function _0x27e3c5(_0x502e84){const _0x325ddd=[new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d696=>setTimeout(_0x3d696,0x6bb7c742^_0x265877)),_0x3187d3[_0x4af112([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57146e=>{let _0x26ef37=0x0;_0x4a5703[_0x4af112([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af112([0x6f,0x6e])](_0x4af112([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x138cf7,_0x55c20c)=>{_0x55c20c[0x0][_0x4af112([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26ef37++,_0x26ef37==(0x6bbef876^_0x265877)&&(_0x57146e(),_0x138cf7[_0x4af112([0x6f,0x66,0x66])]());});}))];return window[_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4af112([0x72,0x61,0x63,0x65])](_0x325ddd)[_0x4af112([0x74,0x68,0x65,0x6e])](()=>_0x502e84);}async function _0x4afb14(){await _0x3187d3,_0x4a5703[_0x4af112([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af112([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a1d75,_0x4a5703[_0x4af112([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af112([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a1d75,_0x4a5703[_0x4af112([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4af112([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb83857(){return _0x2479ff(_0x4af112([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54dca1(_0x4af112([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4af112([0x73,0x74,0x61,0x74,0x65])]==_0x4af112([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x27353e(){return _0x2479ff(_0x4af112([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 _0x278f65(){return _0x2479ff(_0x4af112([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2cfec3(_0x516311){const _0x1e9b79=_0x52492a();_0x4a5703[_0x1e9b79]=_0x4af112([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x516311,_0x516311!=_0x4af112([0x56,0x61,0x6c,0x69,0x64])&&_0x4afb14();}function _0x52492a(){const _0x417864=window[_0x4af112([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4af112([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4af112([0x6e,0x6f,0x77])]())[_0x4af112([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4af112([0x2e]),'');let _0x4deceb=_0x4af112([0x59]);for(let _0x2bde0a=0x0;_0x2bde0a<_0x417864[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bde0a+=0x2){let _0x1ab768=window[_0x4af112([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x417864[_0x4af112([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bde0a,_0x2bde0a+0x2));_0x1ab768>=_0x23dbbe[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ab768-=_0x23dbbe[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4deceb+=_0x23dbbe[_0x1ab768];}return _0x4deceb;}function _0x201adf(){const _0x389886=_0x525816[_0x4af112([0x73,0x70,0x6c,0x69,0x74])](_0x4af112([0x2e]));if(0x3!=_0x389886[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50a234(_0x389886[0x1]);function _0x50a234(_0x23f1bd){const _0x11b022=_0x51b606(_0x23f1bd);return _0x11b022&&_0x48146b()?_0x11b022:null;function _0x48146b(){const _0x832235=_0x11b022[_0x4af112([0x6a,0x74,0x69])],_0x1c59c8=window[_0x4af112([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x832235[_0x4af112([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x832235[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c71d4={..._0x11b022,[_0x4af112([0x6a,0x74,0x69])]:_0x832235[_0x4af112([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x832235[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c71d4[_0x4af112([0x76,0x63])],_0x3944af(_0x1c71d4)==_0x1c59c8;}}}async function _0x2577c7(){let _0x4e7971=!0x0;try{const _0x1e91d3=_0x525816[_0x4af112([0x73,0x70,0x6c,0x69,0x74])](_0x4af112([0x2e])),[_0x16da5b,_0x3a73c9,_0x3111f2]=_0x1e91d3;return _0x264ed3(_0x16da5b),await _0x44fda1(_0x16da5b,_0x3a73c9,_0x3111f2),_0x4e7971;}catch(_0x248ada){return!0x1;}function _0x264ed3(_0x54dead){const _0x111158=_0x51b606(_0x54dead);_0x111158&&_0x111158[_0x4af112([0x61,0x6c,0x67])]==_0x4af112([0x45,0x53,0x32,0x35,0x36])||(_0x4e7971=!0x1);}async function _0x44fda1(_0xd2132e,_0x4a511a,_0x40c4c3){const _0x5217dc=window[_0x4af112([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4af112([0x66,0x72,0x6f,0x6d])](_0x4344cf(_0x40c4c3),_0x4b9f0e=>_0x4b9f0e[_0x4af112([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18883a=new window[(_0x4af112([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4af112([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd2132e+_0x4af112([0x2e])+_0x4a511a),_0x5e1229=window[_0x4af112([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4af112([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e1229)return;const _0x203696=await _0x5e1229[_0x4af112([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4af112([0x6a,0x77,0x6b]),_0x450999,{[_0x4af112([0x6e,0x61,0x6d,0x65])]:_0x4af112([0x45,0x43,0x44,0x53,0x41]),[_0x4af112([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4af112([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4af112([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e1229[_0x4af112([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4af112([0x6e,0x61,0x6d,0x65])]:_0x4af112([0x45,0x43,0x44,0x53,0x41]),[_0x4af112([0x68,0x61,0x73,0x68])]:{[_0x4af112([0x6e,0x61,0x6d,0x65])]:_0x4af112([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x203696,_0x5217dc,_0x18883a)||(_0x4e7971=!0x1);}}function _0x51b606(_0x49baa2){return _0x49baa2[_0x4af112([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4af112([0x65,0x79]))?JSON[_0x4af112([0x70,0x61,0x72,0x73,0x65])](_0x4344cf(_0x49baa2)):null;}function _0x4344cf(_0x1b3234){return window[_0x4af112([0x61,0x74,0x6f,0x62])](_0x1b3234[_0x4af112([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4af112([0x2b]))[_0x4af112([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4af112([0x2f])));}function _0x3944af(_0x4dee4c){let _0x4b3850=0x1505;function _0x43da51(_0x24aaeb){for(let _0x349eff=0x0;_0x349eff<_0x24aaeb[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x349eff++){const _0x3a3047=_0x24aaeb[_0x4af112([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x349eff);_0x4b3850=(_0x4b3850<<0x5)+_0x4b3850+_0x3a3047,_0x4b3850&=_0x4b3850;}}function _0x280f30(_0xd8b049){Array[_0x4af112([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd8b049)?_0xd8b049[_0x4af112([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x280f30):_0xd8b049&&typeof _0xd8b049==_0x4af112([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4af112([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd8b049)[_0x4af112([0x73,0x6f,0x72,0x74])]()[_0x4af112([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37aadf,_0x29814a])=>{_0x43da51(_0x37aadf),_0x280f30(_0x29814a);}):_0x43da51(window[_0x4af112([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd8b049));}return _0x280f30(_0x4dee4c),_0x4b3850>>>0x0;}function _0x103582(_0x5a3b57){return _0x5a3b57[_0x4af112([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4af112([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4af112([0x30]));}function _0x515f94(_0x4d9620){return _0x4d9620[_0x4af112([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4af112([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4af112([0x6a,0x6f,0x69,0x6e])]('');}function _0x2479ff(_0x4b4dc0){return _0x4a5703[_0x4af112([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4af112([0x68,0x61,0x73])](_0x4b4dc0);}function _0x54dca1(_0x3e9393){return _0x4a5703[_0x4af112([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4af112([0x67,0x65,0x74])](_0x3e9393);}function _0x5a1d75(){}function _0x4af112(_0xa2992){return _0xa2992['map'](_0x39adde=>String['fromCharCode'](_0x39adde))['join']('');}_0x2cfec3(await _0x4a140d());}(this);}set['adapter'](_0x3edc33){if(this['_adapter'])throw new _0x3d469d('track-changes-adapter-already-set',this);this['_adapter']=_0x3edc33;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x37c0b7=!0x1,toJSON:_0x275b1a=!0x1}={}){const _0x109d7e=[];for(const _0x10a901 of this['_suggestions']['values']())_0x37c0b7&&!_0x10a901['isInContent']||_0x109d7e['push'](_0x10a901);return _0x275b1a?_0x109d7e['map'](_0x2f9652=>_0x2f9652['toJSON']()):_0x109d7e;}['getSuggestion'](_0x7493af){const _0x2c49cc=this['_suggestions']['get'](_0x7493af);if(!_0x2c49cc)throw new _0x3d469d('track-changes-suggestion-not-found',this);return _0x2c49cc;}['hasSuggestion'](_0x3813ff){return this['_suggestions']['has'](_0x3813ff);}['addSuggestionData'](_0x506bee){const {authorId:_0x5db131,id:_0x161a7b,attributes:_0x51e08a}=_0x506bee,[_0x3ee4d8,_0x4addaf]=_0x506bee['type']['split'](':'),_0x26ebf7=this['_suggestions']['get'](_0x161a7b)||this['_createSuggestion'](_0x3ee4d8,_0x4addaf,_0x161a7b,_0x5db131,_0x51e08a);if(this['_addThreadToSuggestion'](_0x26ebf7),this['_checkSuggestionCorrectness'](_0x26ebf7,_0x3ee4d8,_0x4addaf||null,_0x5db131),_0x26ebf7['createdAt']=_0x506bee['createdAt'],_0x26ebf7['_isDataLoaded']=!0x0,_0x51e08a&&_0x51e08a['@external']){const _0x54ca01=_0x51e08a['@external'],_0x1f0a47=this['_getExternalAuthor'](_0x54ca01['authorName']);_0x26ebf7['authoredAt']=_0x54ca01['createdAt'],_0x26ebf7['author']=_0x1f0a47,_0x26ebf7['isExternal']=!0x0;}else _0x26ebf7['authoredAt']=_0x506bee['createdAt'];switch(_0x506bee['data']&&(_0x26ebf7['data']=_0x506bee['data']),_0x506bee['attributes']&&(_0x26ebf7['attributes']=_0x506bee['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x26ebf7['_saved']=!0x0),this['_suggestionState']['get'](_0x26ebf7)){case'notReady':this['_suggestionState']['set'](_0x26ebf7,'dataReady');break;case'markerReady':_0x26ebf7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x26ebf7])),this['_refreshSuggestionsChain'](new Set([_0x26ebf7])),this['_suggestionState']['set'](_0x26ebf7,'ready'),this['fire']('suggestionLoaded',_0x26ebf7)):this['_suggestionState']['set'](_0x26ebf7,'removed');}return _0x26ebf7;}['acceptSuggestion'](_0x2d3600){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3f619a of _0x2d3600['getAllAdjacentSuggestions']())_0x3f619a['accept']();});});}['discardSuggestion'](_0x223113){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ba3f0 of _0x223113['getAllAdjacentSuggestions']())_0x2ba3f0['discard']();});});}['enableCommand'](_0x5bd835,_0x10f5ff){const _0x4f962d=this['editor']['commands']['get'](_0x5bd835);if(!_0x4f962d)throw new _0x3d469d('track-changes-command-not-found',this,{'commandName':_0x5bd835});if(this['_enabledCommands']['has'](_0x4f962d))throw new _0x3d469d('track-changes-enable-command-twice',this,{'commandName':_0x5bd835});this['_enabledCommands']['add'](_0x4f962d),_0x10f5ff&&_0x4f962d['on']('execute',(_0x3d1295,_0x31f69e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x31f69e['length']>0x0&&_0x31f69e[_0x31f69e['length']-0x1]&&_0x31f69e[_0x31f69e['length']-0x1]['forceDefaultExecution']?_0x31f69e['pop']():(_0x3d1295['return']=_0x10f5ff((..._0x263af3)=>_0x4f962d['execute'](..._0x263af3,{'forceDefaultExecution':!0x0}),..._0x31f69e),_0x3d1295['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x567f61){let _0x52c1d8,_0x29f4fe;const _0x4987c5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x52c1d8=_0x567f61();}catch(_0x68bbc6){_0x29f4fe=_0x68bbc6;}return _0x4987c5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29f4fe&&_0x3d469d['rethrowUnexpectedError'](_0x29f4fe,this),_0x52c1d8;}['markInsertion'](_0x3e5f5a,_0xe79ad8=null,_0x3aa208={}){if(_0x3e5f5a['isCollapsed'])return null;const _0x2bdd73=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3aa208['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a1d42,meta:_0xb5fa87}of this['_findSuggestions'](_0x3e5f5a,'insertion'))if(_0xb5fa87['isOwn']){if(!_0xb5fa87['isNextTo']){if(_0xb5fa87['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1a1d42,_0x3aa208))continue;return _0x1a1d42;}if(Xt(_0x1a1d42,_0x3aa208))return _0x1a1d42;this['_breakSuggestionMarker'](_0x1a1d42,_0x3e5f5a['start'],_0x3e5f5a['end']);break;}if(_0xe79ad8==_0x1a1d42['subType']&&Xt(_0x1a1d42,_0x3aa208)){const _0x193cdc=_0x1a1d42['getFirstRange']();return _0x193cdc['start']['isEqual'](_0x3e5f5a['end'])?this['_setSuggestionRange'](_0x1a1d42,this['_model']['createRange'](_0x3e5f5a['start'],_0x193cdc['end'])):this['_setSuggestionRange'](_0x1a1d42,this['_model']['createRange'](_0x193cdc['start'],_0x3e5f5a['end'])),_0x1a1d42;}}const _0x1f32c9=_0x5d446a(),_0x317e44=_0x2bdd73['id'],_0x4c9060=_0xe79ad8?'insertion:'+_0xe79ad8:'insertion',_0x1b57f1=this['_setSuggestionData']({'id':_0x1f32c9,'type':_0x4c9060,'createdAt':new Date(),'authorId':_0x317e44,'attributes':_0x3aa208});return this['_addSuggestionMarker'](_0x4c9060,_0x1f32c9,_0x317e44,_0x3e5f5a),_0x1b57f1;}['markMultiRangeInsertion'](_0x36d635,_0x58265e='multi',_0x2bc997={}){const _0x40d88d=this['editor']['plugins']['get']('Users')['me'],_0x5cb03a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x58265e,'join');this['_trackingSessionId']&&(_0x2bc997['trackingSessionId']=this['_trackingSessionId']);for(const _0x199ef7 of this['getSuggestions']())if(_0x199ef7['author']['id']==_0x40d88d['id']&&'insertion'==_0x199ef7['type']&&_0x199ef7['subType']==_0x58265e&&Xt(_0x199ef7,_0x2bc997)&&(_0x5cb03a(_0x199ef7['getRanges'](),_0x36d635)||_0x5cb03a(_0x36d635,_0x199ef7['getRanges']()))){for(const _0x58feea of _0x36d635)_0x199ef7['addRange'](_0x58feea);return _0x199ef7;}for(const {suggestion:_0x4e7507,meta:_0x31786a}of this['_findSuggestions'](_0x36d635,'insertion')){if(!_0x31786a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x31786a['containsRangeInObject'])continue;if(!Xt(_0x4e7507,_0x2bc997))continue;let _0x8e8d11=!0x0;for(const _0x41c874 of _0x4e7507['getRanges']())for(const _0x4c5472 of _0x36d635)if(!_0x41c874['containsRange'](_0x4c5472)){_0x8e8d11=!0x1;break;}if(_0x8e8d11)return _0x4e7507;}const _0xf92c76=_0x5d446a(),_0x5bf05c=_0x40d88d['id'],_0x153695='insertion:'+_0x58265e,_0xb0b95b=this['_setSuggestionData']({'id':_0xf92c76,'type':_0x153695,'createdAt':new Date(),'authorId':_0x5bf05c,'attributes':_0x2bc997});for(const _0x35908f of _0x36d635)this['_addSuggestionMarker'](_0x153695,_0xf92c76,_0x5bf05c,_0x35908f,o['getMultiRangeId']());return _0xb0b95b;}['markInlineFormat'](_0x1281f8,_0xfa1d74,_0x4178d7=null,_0x274b00={}){if(_0x4178d7=_0x4178d7||Kt(_0xfa1d74),_0x1281f8['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x274b00['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x36ec7f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4178d7,'accept');return this['forceDefaultExecution'](()=>_0x36ec7f([_0x1281f8],_0xfa1d74,_0x274b00)),null;}const _0x17c8b4=this['editor']['plugins']['get']('Users')['me'],_0x46994c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35da8c,meta:_0xc46197}of this['_findSuggestions'](_0x1281f8,'insertion'))_0xc46197['isOwn']&&!_0xc46197['isInsideObject']&&_0x46994c['push'](..._0x35da8c['getRanges']());}const _0x14fc08=function(_0x4ee7ea,_0x406ef2){const _0x35884b=[];for(const _0x10f3ab of _0x406ef2){const _0x8608a9=_0x4ee7ea['getIntersection'](_0x10f3ab);_0x8608a9&&_0x35884b['push'](_0x8608a9);}return _0x35884b;}(_0x1281f8,_0x46994c),_0x10c9e9=function(_0x8ffc27,_0x4d2a8a){const _0xbbb8bd=[_0x8ffc27];for(const _0x626dd4 of _0x4d2a8a){let _0x4c51b9=0x0;for(;_0x4c51b9<_0xbbb8bd['length'];){const _0x3aa39e=_0xbbb8bd[_0x4c51b9]['getDifference'](_0x626dd4);_0xbbb8bd['splice'](_0x4c51b9,0x1,..._0x3aa39e),_0x4c51b9+=_0x3aa39e['length'];}}return _0xbbb8bd;}(_0x1281f8,_0x46994c);_0x14fc08['length']&&this['_model']['change'](()=>{for(const _0xc7b9b4 of _0x14fc08){const _0x4afe20=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4178d7,'accept');this['forceDefaultExecution'](()=>_0x4afe20([_0xc7b9b4],_0xfa1d74,_0x274b00));}});for(const _0x15f973 of _0x10c9e9){let _0x477344=null,_0x21d83b=_0x15f973['start'],_0x2bbbe5=_0x15f973['end'];for(const {suggestion:_0xf925db,meta:_0xbecc28}of this['_findSuggestions'](_0x15f973,'formatInline')){if(!_0xbecc28['isOwn'])continue;if(_0xf925db['subType']!=_0x4178d7)continue;if(!Xt(_0xf925db,_0x274b00))continue;const _0x1f1c4a=_0xf925db['getFirstRange']();if(_0x1f1c4a['containsRange'](_0x15f973,!0x0))return null;_0x21d83b=_0x21d83b['isBefore'](_0x1f1c4a['start'])?_0x21d83b:_0x1f1c4a['start'],_0x2bbbe5=_0x2bbbe5['isAfter'](_0x1f1c4a['end'])?_0x2bbbe5:_0x1f1c4a['end'],_0x477344?_0x1f1c4a['start']['isBefore'](_0x477344['getFirstRange']()['start'])?(_0x477344['removeMarkers'](),_0x477344=_0xf925db):_0xf925db['removeMarkers']():_0x477344=_0xf925db;}const _0x4f8c18=this['_model']['createRange'](_0x21d83b,_0x2bbbe5);if(_0x477344)this['_setSuggestionRange'](_0x477344,_0x4f8c18);else{const _0x23d6d9=_0x5d446a(),_0x54112f=_0x17c8b4['id'];this['_setSuggestionData']({'id':_0x23d6d9,'type':'formatInline:'+_0x4178d7,'data':_0xfa1d74,'createdAt':new Date(),'authorId':_0x54112f,'attributes':_0x274b00}),this['_addSuggestionMarker']('formatInline:'+_0x4178d7,_0x23d6d9,_0x54112f,_0x4f8c18);}}return null;}['markBlockFormat'](_0x46da9a,_0x3223d8,_0x46c6cf=[],_0x5b6201=null,_0x671e94={}){_0x3223d8['formatGroupId']||(_0x3223d8['formatGroupId']=_0x3223d8['commandName']),_0x3223d8['multipleBlocks']=_0x46da9a['is']('range'),_0x5b6201=_0x5b6201||Kt(_0x3223d8);const _0x2296c4=_0x46c6cf['map'](_0x251e4a=>zt(_0x251e4a,this['_model'])),_0x2ba186=_0x46da9a['is']('range')?_0x46da9a:zt(_0x46da9a,this['_model']);if(this['_trackingSessionId']&&(_0x671e94['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x325bd0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b6201,'accept');return this['forceDefaultExecution'](()=>_0x325bd0([_0x2ba186],_0x3223d8,_0x671e94)),null;}_0x2296c4['push'](_0x2ba186);let _0x55da1f=!0x0;for(const _0x5889ff of _0x2296c4)if(!this['_rangeIsInLocalUserInsertion'](_0x5889ff)){_0x55da1f=!0x1;break;}if(_0x55da1f&&'always'!==this['_trackFormatChanges']){const _0x3244ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b6201,'accept');return this['forceDefaultExecution'](()=>_0x3244ca([_0x2ba186],_0x3223d8,_0x671e94)),null;}let _0x4896e2=null,_0x2f8f9f=_0x2ba186['start'],_0x1baa43=_0x2ba186['end'];for(const {suggestion:_0x251102,meta:_0x352dbc}of this['_findSuggestions'](_0x2ba186,'formatBlock')){if(!_0x352dbc['isOwn'])continue;if(_0x352dbc['isNextTo']||_0x352dbc['containsRangeInObject']||_0x352dbc['isInsideObject'])continue;if(_0x251102['data']['formatGroupId']!=_0x3223d8['formatGroupId'])continue;if(!Xt(_0x251102,_0x671e94))continue;const _0x4fc715=_0x251102['getFirstRange']();if(_0x251102['subType']==_0x5b6201){if(_0x4fc715['containsRange'](_0x2ba186,!0x0))return null;_0x2f8f9f=_0x2f8f9f['isBefore'](_0x4fc715['start'])?_0x2f8f9f:_0x4fc715['start'],_0x1baa43=_0x1baa43['isAfter'](_0x4fc715['end'])?_0x1baa43:_0x4fc715['end'],_0x4896e2?_0x4fc715['start']['isBefore'](_0x4896e2['getFirstRange']()['start'])?(_0x4896e2['removeMarkers'](),_0x4896e2=_0x251102):_0x251102['removeMarkers']():_0x4896e2=_0x251102;}else{const _0x5b274a=_0x2ba186['getIntersection'](_0x4fc715);this['_cutOutSuggestionMarker'](_0x251102,_0x5b274a);}}const _0x4c4ff2=this['editor']['plugins']['get']('Users')['me'],_0x19140c=_0x5d446a(),_0x2579f9=_0x4c4ff2['id'];if(_0x4896e2)return this['_setSuggestionRange'](_0x4896e2,this['_model']['createRange'](_0x2f8f9f,_0x1baa43)),_0x4896e2;{const _0x4bfc61=this['_setSuggestionData']({'id':_0x19140c,'type':'formatBlock:'+_0x5b6201,'data':_0x3223d8,'createdAt':new Date(),'authorId':_0x2579f9,'attributes':_0x671e94});return this['_addSuggestionMarker']('formatBlock:'+_0x5b6201,_0x19140c,_0x2579f9,this['_model']['createRange'](_0x2f8f9f,_0x1baa43)),_0x4bfc61;}}['markMultiRangeBlockFormat'](_0x407fa1,_0x182b3e,_0x401566=[],_0x343df9=null,_0x2b8452={}){_0x182b3e['formatGroupId']||(_0x182b3e['formatGroupId']=_0x182b3e['commandName']);const _0x21d695=_0x407fa1[0x0];_0x182b3e['multipleBlocks']=_0x21d695['is']('range'),_0x343df9=_0x343df9||Kt(_0x182b3e);const _0x518672=_0x401566['map'](_0x1be0f5=>zt(_0x1be0f5,this['_model'])),_0x35e732=_0x21d695['is']('range')?_0x407fa1:_0x407fa1['map'](_0xb3e9b0=>zt(_0xb3e9b0,this['_model']));if(this['_trackingSessionId']&&(_0x2b8452['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32d953=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343df9,'accept');return this['forceDefaultExecution'](()=>_0x32d953(_0x35e732,_0x182b3e,_0x2b8452)),null;}_0x518672['push'](..._0x35e732);let _0x2a56e7=!0x0;for(const _0x344986 of _0x518672)if(!this['_rangeIsInLocalUserInsertion'](_0x344986)){_0x2a56e7=!0x1;break;}if(_0x2a56e7&&'always'!==this['_trackFormatChanges']){const _0x1fa1bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343df9,'accept');return this['forceDefaultExecution'](()=>_0x1fa1bf(_0x35e732,_0x182b3e,_0x2b8452)),null;}const _0x28cfbc=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f85f4 of this['getSuggestions']()){if(_0x3f85f4['author']['id']!=_0x28cfbc['id'])continue;if('formatBlock'!=_0x3f85f4['type']||_0x3f85f4['data']['formatGroupId']!=_0x182b3e['formatGroupId'])continue;if(!Xt(_0x3f85f4,_0x2b8452))continue;const _0x35acbd=_0x3f85f4['subType']==_0x343df9;for(let _0x2e604e=0x0;_0x2e604e<_0x35e732['length'];_0x2e604e++){const _0x10507b=_0x35e732[_0x2e604e];for(const _0x250f18 of _0x3f85f4['getMarkers']()){const _0x5cb8ca=_0x250f18['getRange']();if(_0x10507b['isEqual'](_0x5cb8ca)){_0x35acbd?(_0x35e732['splice'](_0x2e604e,0x1),_0x2e604e--):_0x3f85f4['removeMarker'](_0x250f18['name']);break;}}}}if(0x0==_0x35e732['length'])return null;const _0x363ddd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343df9,'join');for(const _0x321351 of this['getSuggestions']())if(_0x321351['author']['id']==_0x28cfbc['id']&&'formatBlock'==_0x321351['type']&&_0x321351['data']['formatGroupId']==_0x182b3e['formatGroupId']&&_0x321351['subType']==_0x343df9&&Xt(_0x321351,_0x2b8452)&&(_0x363ddd(_0x321351['getRanges'](),_0x35e732)||_0x363ddd(_0x35e732,_0x321351['getRanges']()))){for(const _0x5329e0 of _0x35e732)_0x321351['addRange'](_0x5329e0);return _0x321351;}const _0x182759=_0x5d446a(),_0x18b02b=_0x28cfbc['id'],_0x401dc7='formatBlock:'+_0x343df9,_0x4d1cc6=this['_setSuggestionData']({'id':_0x182759,'type':_0x401dc7,'data':_0x182b3e,'createdAt':new Date(),'authorId':_0x18b02b,'attributes':_0x2b8452});for(const _0xa033e of _0x35e732)this['_addSuggestionMarker'](_0x401dc7,_0x182759,_0x18b02b,_0xa033e,o['getMultiRangeId']());return _0x4d1cc6;}['markDeletion'](_0x5c58fd,_0x52b9f1=null,_0x281b3a={}){if(_0x5c58fd['isCollapsed'])return null;const _0x426120=this['editor']['plugins']['get']('Users')['me'],_0x56a084=new _0xd0daae(_0x5c58fd['start'],_0x5c58fd['end']);this['_trackingSessionId']&&(_0x281b3a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x39b11a,meta:_0x51b9a6}of this['_findSuggestions'](_0x56a084,'insertion'))if(_0x51b9a6['isOwn']&&!_0x51b9a6['isNextTo']){if(_0x39b11a['isMultiRange']){const _0x4c5a35=_0x39b11a['getRanges']()['filter'](_0xfa330f=>'$graveyard'!=_0xfa330f['root']['rootName']);_0x4c5a35['every'](_0x7347a3=>_0x56a084['containsRange'](_0x7347a3,!0x0))&&_0x39b11a['discard']();if(_0x4c5a35['some'](_0x58aa52=>_0x58aa52['containsRange'](_0x56a084,!0x0))){const _0x4436cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52b9f1,'accept');return this['forceDefaultExecution'](()=>_0x4436cf([_0x56a084],null,_0x281b3a)),null;}}else{const _0x5f8c03=_0x56a084['getIntersection'](_0x39b11a['getFirstRange']());null!==_0x5f8c03&&_0x39b11a['_onDiscard']([_0x5f8c03],null,_0x281b3a);}}if(_0x56a084['detach'](),_0x56a084['isCollapsed']||'$graveyard'==_0x56a084['root']['rootName'])return null;let _0x1668db=null,_0x17f031=_0x56a084['start'],_0x223d2e=_0x56a084['end'];const _0x52f166=this['_findSuggestions'](_0x56a084,'deletion');for(const {suggestion:_0x2f2a3d,meta:_0x4d96c7}of _0x52f166){const _0x1c8ac3=this['_model']['createRange'](_0x17f031,_0x223d2e);if(_0x4d96c7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d96c7['containsRangeInObject']&&!_0x4d96c7['isInsideObject'])){if(_0x2f2a3d['isMultiRange']){if(!Xt(_0x2f2a3d,_0x281b3a))continue;let _0xc1a14c=!0x0;for(const _0x45c4a8 of _0x2f2a3d['getRanges']()){if(_0x45c4a8['containsRange'](_0x1c8ac3,!0x0))return _0x2f2a3d;_0x1c8ac3['containsRange'](_0x45c4a8)||(_0xc1a14c=!0x1);}_0xc1a14c&&_0x2f2a3d['discard']();}else{const _0x324f2e=_0x2f2a3d['getFirstRange']();if(_0x324f2e['containsRange'](_0x1c8ac3,!0x0))return _0x2f2a3d;if(!Xt(_0x2f2a3d,_0x281b3a)){_0x1c8ac3['containsRange'](_0x324f2e)?_0x2f2a3d['removeMarkers']():_0x324f2e['containsPosition'](_0x17f031)?_0x17f031=_0x324f2e['end']:_0x324f2e['containsPosition'](_0x223d2e)&&(_0x223d2e=_0x324f2e['start']);continue;}_0x17f031=_0x17f031['isBefore'](_0x324f2e['start'])?_0x17f031:_0x324f2e['start'],_0x223d2e=_0x223d2e['isAfter'](_0x324f2e['end'])?_0x223d2e:_0x324f2e['end'],_0x281b3a=Object['assign']({},_0x2f2a3d['attributes']),_0x1668db?_0x324f2e['start']['isBefore'](_0x1668db['getFirstRange']()['start'])?(_0x1668db['removeMarkers'](),_0x1668db=_0x2f2a3d):_0x2f2a3d['removeMarkers']():_0x1668db=_0x2f2a3d;}}}if(_0x1668db)return this['_setSuggestionRange'](_0x1668db,this['_model']['createRange'](_0x17f031,_0x223d2e)),_0x1668db;{const _0x18e00b=_0x5d446a(),_0x582c53=this['_model']['createRange'](_0x17f031,_0x223d2e),_0x39312a=_0x426120['id'],_0x213275=_0x52b9f1?'deletion:'+_0x52b9f1:'deletion',_0x3d8bd9=this['_setSuggestionData']({'id':_0x18e00b,'type':_0x213275,'createdAt':new Date(),'authorId':_0x39312a,'attributes':_0x281b3a});return this['_addSuggestionMarker'](_0x213275,_0x18e00b,_0x39312a,_0x582c53),_0x3d8bd9;}}['markMultiRangeDeletion'](_0x1ca6fe,_0x5f01ce='multi',_0x4034c5={}){const _0x41fdaf=this['editor']['plugins']['get']('Users')['me'],_0x4f64d8=_0x1ca6fe['map'](_0x13384c=>new _0xd0daae(_0x13384c['start'],_0x13384c['end'])),_0x785b59=new Set();this['_trackingSessionId']&&(_0x4034c5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xdb8eab,meta:_0x5ece64}of this['_findSuggestions'](_0x4f64d8,'insertion'))_0x5ece64['isOwn']&&!_0x5ece64['isNextTo']&&_0x785b59['add'](_0xdb8eab);for(const _0x5a9564 of _0x785b59)if(_0x5a9564['isMultiRange']){const _0x1aad9b=_0x5a9564['getRanges']();(!_0x5a9564['attributes']||!_0x5a9564['attributes']['skipNestingCheck'])&&(_0x1aad9b['every'](_0x581d4b=>_0x4f64d8['some'](_0x1f891d=>_0x1f891d['containsRange'](_0x581d4b,!0x0)))&&_0x5a9564['discard']());if(_0x4f64d8['every'](_0x301bc2=>_0x1aad9b['some'](_0x1f4e13=>_0x1f4e13['containsRange'](_0x301bc2,!0x0)))){const _0x2ffdca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f01ce,'accept');return this['forceDefaultExecution'](()=>_0x2ffdca(_0x1ca6fe,null,_0x4034c5)),null;}}else{const _0x36b871=_0x5a9564['getFirstRange']();_0x4f64d8['some'](_0x358c7c=>_0x358c7c['containsRange'](_0x36b871,!0x0))&&_0x5a9564['discard']();if(_0x4f64d8['every'](_0xc91a50=>_0x36b871['containsRange'](_0xc91a50,!0x0))){const _0x5432cb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f01ce,'accept');return this['forceDefaultExecution'](()=>_0x5432cb(_0x4f64d8,null,_0x4034c5)),null;}}const _0x44763c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f01ce,'join');let _0x17ea71=null;for(const _0x3828af of this['getSuggestions']())if(_0x3828af['author']['id']==_0x41fdaf['id']&&_0x3828af['isInContent']&&'deletion'==_0x3828af['type']&&_0x3828af['subType']==_0x5f01ce&&Xt(_0x3828af,_0x4034c5)&&(_0x44763c(_0x3828af['getRanges'](),_0x4f64d8)||_0x44763c(_0x4f64d8,_0x3828af['getRanges']()))){if(_0x17ea71){if(_0x3828af['commentThread']&&_0x3828af['commentThread']['length'])continue;for(const _0x1387bd of _0x3828af['getRanges']())_0x17ea71['isIntersectingWithRange'](_0x1387bd)||_0x17ea71['addRange'](_0x1387bd);_0x3828af['removeMarkers']();}else{_0x17ea71=_0x3828af;for(const _0x2c3d20 of _0x4f64d8)_0x3828af['isIntersectingWithRange'](_0x2c3d20)||_0x3828af['addRange'](_0x2c3d20);}}if(_0x17ea71)return _0x17ea71;_0x785b59['clear']();for(const {suggestion:_0x35dfa9,meta:_0x3ae324}of this['_findSuggestions'](_0x4f64d8,'deletion'))_0x3ae324['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ae324['containsRangeInObject']&&!_0x3ae324['isInsideObject'])&&Xt(_0x35dfa9,_0x4034c5)&&_0x785b59['add'](_0x35dfa9);for(const _0x57b15c of _0x785b59){const _0x49cb25=_0x57b15c['getRanges']();if(!_0x4034c5||!_0x4034c5['skipNestingCheck']){if(_0x4f64d8['every'](_0x3c86a1=>_0x49cb25['some'](_0x16273b=>_0x16273b['containsRange'](_0x3c86a1,!0x0))))return _0x57b15c;}(!_0x57b15c['attributes']||!_0x57b15c['attributes']['skipNestingCheck'])&&(_0x49cb25['every'](_0x5db817=>_0x4f64d8['some'](_0x7e649d=>_0x7e649d['containsRange'](_0x5db817,!0x0)))&&_0x57b15c['discard']());}const _0x456386=_0x5d446a(),_0x291ca7=_0x41fdaf['id'],_0x1cb0ed='deletion:'+_0x5f01ce,_0x312afe=this['_setSuggestionData']({'id':_0x456386,'type':_0x1cb0ed,'createdAt':new Date(),'authorId':_0x291ca7,'attributes':_0x4034c5});for(const _0x3da476 of _0x4f64d8)_0x3da476['detach'](),_0x3da476['isCollapsed']||'$graveyard'==_0x3da476['root']['rootName']||this['_addSuggestionMarker'](_0x1cb0ed,_0x456386,_0x291ca7,_0x3da476,o['getMultiRangeId']());return _0x312afe;}['markAttributeChange'](_0x5e64a7,_0x41357b,_0x37c431,_0x88eee4,_0x507659){if(_0x5e64a7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27d67e=this['editor']['plugins']['get']('Users')['me']['id'],_0x998dd6=Array['from'](this['_suggestions']['values']())['filter'](_0x2bcadc=>'attribute'==_0x2bcadc['type']&&_0x2bcadc['data']['key']==_0x41357b&&_0x2bcadc['isIntersectingWithRange'](_0x5e64a7));if(this['_trackingSessionId']&&(_0x507659['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x8af986=this['_findSuggestions'](_0x5e64a7,'insertion')['filter'](({meta:_0x489745})=>_0x489745['isOwn']&&!_0x489745['isInsideObject']&&!_0x489745['isNextTo'])['map'](({suggestion:_0x717755})=>_0x717755);_0x998dd6['unshift'](..._0x8af986);}const _0x4e770=new Map([[_0x5e64a7,_0x37c431]]);for(const _0x5a1246 of _0x998dd6){const _0x9b0f55='attribute'==_0x5a1246['type']?_0x5a1246['data']['oldValue']:void 0x0,_0x1c4737=_0x5a1246['getFirstRange'](),_0x1c5f19=Array['from'](_0x4e770['keys']())['find'](_0x5e4313=>_0x5e4313['isIntersecting'](_0x1c4737));if(!_0x1c5f19)continue;const _0x27e575=_0x1c5f19['getDifference'](_0x1c4737);this['_isBlockAttribute'](_0x41357b)&&'insertion'==_0x5a1246['type']&&0x0!=_0x27e575['length']||(_0x4e770['delete'](_0x1c5f19),_0x27e575['forEach'](_0x213d6b=>{_0x4e770['set'](_0x213d6b,_0x37c431);}),'insertion'!=_0x5a1246['type']&&_0x9b0f55!=_0x88eee4&&_0x4e770['set'](_0x1c5f19['getIntersection'](_0x1c4737),_0x9b0f55));}const _0x2aed6e=[];for(const [_0x44d176,_0x347f32]of _0x4e770){const _0x557e21=_0x5d446a(),_0x1877aa={'key':_0x41357b,'oldValue':_0x347f32,'newValue':_0x88eee4};_0x41357b['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':_0x41357b});const _0x40fc69=('attribute:'+(_0x41357b+'|'+Kt({'newValue':_0x88eee4})))['substring'](0x0,0x3c),_0x3052bd=this['_setSuggestionData']({'id':_0x557e21,'type':_0x40fc69,'data':_0x1877aa,'createdAt':new Date(),'authorId':_0x27d67e,'attributes':_0x507659});_0x2aed6e['push'](_0x3052bd),this['_addSuggestionMarker'](_0x40fc69,_0x557e21,_0x27d67e,_0x44d176);}return _0x2aed6e;}['enableDefaultAttributesIntegration'](_0x510ad0){this['enableCommand'](_0x510ad0,(_0x549b9b,..._0x3880d9)=>{this['_recordAttributeChanges'](()=>{_0x549b9b(..._0x3880d9);});});}['registerBlockAttribute'](_0x189a1a){this['_blockAttributeKeys']['add'](_0x189a1a);}['registerInlineAttribute'](_0x48d631){this['_inlineAttributeKeys']['add'](_0x48d631);}['startTrackingSession'](_0x364d5a){return this['_trackingSessionId']=void 0x0!==_0x364d5a?_0x364d5a:_0x5d446a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3bd65e){return'attribute'==_0x3bd65e['type']?_0x3bd65e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x41b00f,_0x1fb0a8){const _0x4d9b8f=_0x41b00f['getFirstMarker']();this['_model']['change'](_0x5cbc6d=>{_0x5cbc6d['updateMarker'](_0x4d9b8f,{'range':_0x1fb0a8});});}['_addThreadToSuggestion'](_0x5e1786){const _0x4092b7=_0x5e1786['id'],_0x516f2a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4092b7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x516f2a,'threadId':_0x4092b7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x47c935=this['_commentsRepository']['getCommentThread'](_0x4092b7);_0x47c935['unbind']('isRemovable'),_0x47c935['isRemovable']=!0x1,_0x5e1786['commentThread']=_0x47c935;}['_checkSuggestionCorrectness'](_0x4709b9,_0x1bee56,_0x21bfe4,_0x1f1933){if(_0x4709b9['type']!=_0x1bee56||_0x4709b9['subType']!=_0x21bfe4||_0x4709b9['creator']['id']!=_0x1f1933)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3d469d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xa750ca,_0x1648f1){const _0xf5479d=_0xa750ca['getFirstRange']();if(_0x1648f1['isEqual'](_0xf5479d))_0xa750ca['removeMarkers']();else{if(_0xf5479d['containsRange'](_0x1648f1)){const _0x2935b7=this['_model']['createPositionAt'](_0x1648f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa750ca,this['_model']['createRange'](_0xf5479d['start'],_0x2935b7));const _0x38df77=_0x5d446a(),_0x11d609=_0xa750ca['creator']['id'],_0x506c8f=_0xa750ca['type']+':'+_0xa750ca['subType'];this['_setSuggestionData']({'id':_0x38df77,'type':_0x506c8f,'createdAt':new Date(),'authorId':_0x11d609,'data':_0xa750ca['data'],'attributes':_0xa750ca['attributes']});const _0x25219c=this['_model']['createPositionAt'](_0x1648f1['end']['parent'],'after'),_0x4315d6=this['_model']['createRange'](_0x25219c,_0xf5479d['end']);this['_addSuggestionMarker'](_0x506c8f,_0x38df77,_0x11d609,_0x4315d6);}else{if(_0xf5479d['containsPosition'](_0x1648f1['start'])){const _0x28c1d5=this['_model']['createPositionAt'](_0x1648f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa750ca,this['_model']['createRange'](_0xf5479d['start'],_0x28c1d5));}else{const _0x40b650=this['_model']['createPositionAt'](_0x1648f1['end']['parent'],'after');this['_setSuggestionRange'](_0xa750ca,this['_model']['createRange'](_0x40b650,_0xf5479d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x412b16){for(const {suggestion:_0x5b1acc,meta:_0x5c037a}of this['_findSuggestions'](_0x412b16,'insertion')){if(!_0x5c037a['isOwn'])continue;const _0x5f8c25=_0x5b1acc['getRanges']();for(const _0x19640e of _0x5f8c25)if(!_0x412b16['getDifference'](_0x19640e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x592784){const _0x576ce4=this['editor']['plugins']['get']('Users')['getUser'](_0x592784);if(!_0x576ce4)throw new _0x3d469d('track-changes-user-not-found',this);return _0x576ce4;}['_getExternalAuthor'](_0x18dc8c){const _0x2f5151=this['editor']['plugins']['get']('Users'),_0x48bce9=_0x2313a4('external:'+_0x18dc8c),_0x53b63c=_0x2f5151['getUser'](_0x48bce9);return _0x53b63c||_0x2f5151['addUser']({'id':_0x48bce9,'name':_0x18dc8c});}['_createSuggestion'](_0x3bad49,_0x154050,_0x2f43c3,_0x252ac2,_0x41eab7){const _0xe9ec5e=this['_getAuthorFromId'](_0x252ac2),_0x3be03d=this['_suggestionFactory']['buildSuggestion'](_0x3bad49,_0x154050,_0x2f43c3,_0xe9ec5e,_0x41eab7,_0xb02eb2=>{this['_updateSuggestionData'](_0x2f43c3,{'attributes':_0xb02eb2});const _0x448275=this['getSuggestion'](_0x2f43c3);this['_joinWithAdjacentSuggestions'](new Set([_0x448275])),this['_refreshSuggestionsChain'](new Set([_0x448275]));});return this['listenTo'](_0x3be03d,'accept',()=>{this['_updateSuggestionData'](_0x2f43c3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3be03d,'discard',()=>{this['_updateSuggestionData'](_0x2f43c3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f43c3,_0x3be03d),this['_suggestionState']['set'](_0x3be03d,'notReady'),_0x3be03d;}['_splitMarkerName'](_0x3a5d98){const _0x425b78=_0x3a5d98['split'](':');return{'group':_0x425b78[0x0],'type':_0x425b78[0x1],'subType':_0x425b78['length']>=0x5?_0x425b78[0x2]:null,'id':_0x425b78['length']<0x5?_0x425b78[0x2]:_0x425b78[0x3],'authorId':_0x425b78['length']<0x5?_0x425b78[0x3]:_0x425b78[0x4],'markerCount':0x6==_0x425b78['length']?_0x425b78[0x5]:null};}['_breakSuggestionMarker'](_0x39ccf0,_0x26fc58,_0x164819){const _0x48f2a5=_0x39ccf0['getFirstRange'](),_0x44006d=_0x48f2a5['start'],_0xd15a52=_0x48f2a5['end'];this['_setSuggestionRange'](_0x39ccf0,this['_model']['createRange'](_0x44006d,_0x26fc58));const _0x73676c=_0x5d446a(),_0x44bb6e=_0x39ccf0['creator']['id'],_0x445c67=_0x39ccf0['type']+(_0x39ccf0['subType']?':'+_0x39ccf0['subType']:'');this['_setSuggestionData']({'id':_0x73676c,'type':_0x445c67,'createdAt':new Date(),'authorId':_0x44bb6e,'originalSuggestionId':_0x39ccf0['id'],'attributes':_0x39ccf0['attributes'],'data':_0x39ccf0['data']});const _0xcece9=this['_getAttributeKey'](_0x39ccf0);('formatBlock'==_0x39ccf0['type']||_0xcece9&&this['_isBlockAttribute'](_0xcece9))&&(_0x164819=this['_model']['createPositionBefore'](_0x164819['parent'])),this['_addSuggestionMarker'](_0x445c67,_0x73676c,_0x44bb6e,this['_model']['createRange'](_0x164819,_0xd15a52));}['_findSuggestions'](_0x231e2d,_0x48e96d=null){const _0x171560=[],_0x5c24cf=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x231e2d)||(_0x231e2d=[_0x231e2d]);for(const _0x1deacf of this['getSuggestions']()){if(!_0x1deacf['isInContent'])continue;if(_0x48e96d&&_0x1deacf['type']!=_0x48e96d)continue;let _0x11faca=!0x1;for(const _0x2e4ef6 of _0x1deacf['getRanges']()){for(const _0x3a8c61 of _0x231e2d){const _0x2011e7=_0x3a8c61['start']['isEqual'](_0x2e4ef6['end'])||_0x3a8c61['end']['isEqual'](_0x2e4ef6['start']);if(_0x2011e7||_0x3a8c61['getIntersection'](_0x2e4ef6)){const _0x4f870d=_0x3a8c61['containsRange'](_0x2e4ef6)&&Gt(this['_model']['schema'],_0x2e4ef6['start'],_0x3a8c61),_0x3aa8f2=_0x2e4ef6['containsRange'](_0x3a8c61)&&Gt(this['_model']['schema'],_0x3a8c61['start'],_0x2e4ef6);_0x171560['push']({'suggestion':_0x1deacf,'meta':{'isOwn':_0x5c24cf==_0x1deacf['author'],'isNextTo':_0x2011e7,'isInsideObject':_0x4f870d,'containsRangeInObject':_0x3aa8f2}}),_0x11faca=!0x0;break;}}if(_0x11faca)break;}}return _0x171560;}['_addSuggestionMarker'](_0x367779,_0x45454b,_0x2d8f60,_0x141208,_0x12a7ab){this['_model']['change'](_0x1e8e26=>{let _0x1f72d8='suggestion:'+_0x367779+':'+_0x45454b+':'+_0x2d8f60;_0x12a7ab&&(_0x1f72d8=_0x1f72d8+':'+_0x12a7ab),_0x1e8e26['addMarker'](_0x1f72d8,{'range':_0x141208,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x860933){const _0x1acbe5=_0x860933['previous'],_0x589466=_0x860933['next'];_0x860933['previous']=null,_0x860933['next']=null,null!=_0x1acbe5&&_0x1acbe5['next']==_0x860933&&(_0x1acbe5['next']=_0x589466),null!=_0x589466&&_0x589466['previous']==_0x860933&&(_0x589466['previous']=_0x1acbe5),'ready'==this['_suggestionState']['get'](_0x860933)&&(this['_suggestionState']['set'](_0x860933,'removed'),this['fire']('suggestionUnloaded',_0x860933,_0x1acbe5,_0x589466));}['_setSuggestionData'](_0x37746a){const _0x433638=_0x37746a['id'],_0x12b3e6=this['addSuggestionData'](_0x37746a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56c18b=this['editor']['plugins']['get']('PendingActions'),_0x322d23=_0x12b3e6['hasComments'],_0x4c62f7=_0x12b3e6['subType']?_0x12b3e6['type']+':'+_0x12b3e6['subType']:_0x12b3e6['type'],_0x5ed26e=this['editor']['locale'],_0x1cd2ac=_0x56c18b['add'](c(_0x5ed26e,'PENDING_ACTION_SUGGESTION')),_0x57636b={'id':_0x433638,'type':_0x4c62f7,'hasComments':_0x322d23,'data':_0x37746a['data']||null,'originalSuggestionId':_0x37746a['originalSuggestionId']||null,'attributes':_0x12b3e6['attributes']};this['_adapter']['addSuggestion'](_0x57636b)['then'](_0x587d01=>{_0x12b3e6['_saved']=!0x0,_0x56c18b['remove'](_0x1cd2ac),_0x587d01&&_0x587d01['createdAt']&&(this['_suggestions']['get'](_0x433638)['createdAt']=_0x587d01['createdAt']);})['catch'](_0x349648=>{throw _0x20fa00('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x12b3e6['discard']();}),_0x12b3e6['stopListening'](),this['_suggestions']['delete'](_0x12b3e6['id']),this['_suggestionState']['delete'](_0x12b3e6),_0x349648;});}return _0x12b3e6;}['_isBlockAttribute'](_0x32a65b){return this['_blockAttributeKeys']['has'](_0x32a65b);}['_updateSuggestionData'](_0x2db8c5,_0x298fb5){const _0x188ad3=this['editor']['plugins']['get']('PendingActions'),_0xe50c34=this['getSuggestion'](_0x2db8c5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xe50c34['_saved']){const _0x2ce2c1=_0x188ad3['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2db8c5,_0x298fb5)['then'](()=>{_0x188ad3['remove'](_0x2ce2c1);});}else _0xe50c34['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2db8c5,_0x298fb5);});}}['_getSuggestionData'](_0x36a701){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3d469d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x36a701);}['_handleNewSuggestionMarker'](_0x418338){const {id:_0xed00e5,type:_0x44f05c,subType:_0x1998f0,authorId:_0x5d1dba}=this['_splitMarkerName'](_0x418338),_0x11f16e=this['_suggestions']['get'](_0xed00e5)||this['_createSuggestion'](_0x44f05c,_0x1998f0,_0xed00e5,_0x5d1dba,{});switch(this['_checkSuggestionCorrectness'](_0x11f16e,_0x44f05c,_0x1998f0,_0x5d1dba),this['_suggestionState']['get'](_0x11f16e)){case'notReady':this['_getSuggestionData'](_0xed00e5)['then'](_0x55212d=>{let _0x3fedb1=Promise['resolve']();_0x55212d['hasComments']&&(_0x3fedb1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xed00e5})),_0x3fedb1['then'](()=>{this['addSuggestionData'](_0x55212d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x11f16e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xed00e5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x11f16e,'ready'),this['fire']('suggestionLoaded',_0x11f16e);break;case'ready':this['fire']('suggestionChanged',_0x11f16e);}return _0x11f16e['addMarkerName'](_0x418338),_0x11f16e;}['_refreshSuggestionsChain'](_0x468e57){const _0x3834c5=Array['from'](_0x468e57),_0x58979f=_0x3834c5['filter'](_0x3528b0=>'attribute'==_0x3528b0['type']);this['_refreshAttributeSuggestionsChain'](_0x58979f);const _0x1a7446=_0x3834c5['filter'](_0x163de7=>!_0x163de7['isMultiRange']&&'attribute'!=_0x163de7['type']),_0x2d6443=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x272e32=>!_0x272e32['isMultiRange']&&'attribute'!=_0x272e32['type']),_0x36f417=_0x2d6443['filter'](_0x13a437=>!_0x468e57['has'](_0x13a437)),_0x4cb1de=new Map(_0x2d6443['map'](_0x107d6c=>[_0x107d6c,this['_suggestionFactory']['getSuggestionCallback'](_0x107d6c['type'],_0x107d6c['subType'],'chain')])),_0x5405a6=new Map(_0x2d6443['map'](_0x49bdac=>[_0x49bdac,_0x49bdac['getFirstRange']()])),_0x294994=new Set(),_0x34e186=new Set();for(let _0x364ab9=0x0;_0x364ab9<_0x1a7446['length'];_0x364ab9++)_0x308d37(_0x1a7446[_0x364ab9],_0x1a7446,_0x364ab9+0x1);for(let _0x1d3051=0x0;_0x1d3051<_0x1a7446['length'];_0x1d3051++)_0x308d37(_0x1a7446[_0x1d3051],_0x36f417,0x0);const _0x2ae4ad=new Set();for(let _0x5d756b=0x0;_0x5d756b<_0x1a7446['length'];_0x5d756b++){const _0x7c1ef9=_0x1a7446[_0x5d756b];!_0x34e186['has'](_0x7c1ef9)&&_0x7c1ef9['previous']&&(_0x2ae4ad['add'](_0x7c1ef9['previous']),_0x7c1ef9['previous']['next']===_0x7c1ef9&&(_0x7c1ef9['previous']['next']=null),_0x7c1ef9['previous']=null),!_0x294994['has'](_0x7c1ef9)&&_0x7c1ef9['next']&&(_0x2ae4ad['add'](_0x7c1ef9['next']),_0x7c1ef9['next']['previous']===_0x7c1ef9&&(_0x7c1ef9['next']['previous']=null),_0x7c1ef9['next']=null);}function _0x308d37(_0x18dd9b,_0x39cfdf,_0x17e977){for(let _0x3485aa=_0x17e977;_0x3485aa<_0x39cfdf['length'];_0x3485aa++){const _0x65026d=_0xf88367(_0x18dd9b,_0x39cfdf[_0x3485aa]);_0x65026d&&(_0x65026d[0x0]['next']=_0x65026d[0x1],_0x65026d[0x1]['previous']=_0x65026d[0x0],_0x294994['add'](_0x65026d[0x0]),_0x34e186['add'](_0x65026d[0x1]));}}function _0xf88367(_0x317ae6,_0x46efe8){if(_0x317ae6['author']['id']!==_0x46efe8['author']['id'])return null;const _0x3a044e=_0x4cb1de['get'](_0x317ae6)(_0x317ae6,_0x46efe8,_0x5405a6['get'](_0x317ae6),_0x5405a6['get'](_0x46efe8));if(!_0x3a044e)return null;return _0x4cb1de['get'](_0x46efe8)(_0x317ae6,_0x46efe8,_0x5405a6['get'](_0x317ae6),_0x5405a6['get'](_0x46efe8))?_0x3a044e[0x1]['commentThread']&&_0x3a044e[0x1]['commentThread']['length']?null:_0x3a044e:null;}_0x2ae4ad['size']&&this['_refreshSuggestionsChain'](_0x2ae4ad);}['_refreshAttributeSuggestionsChain'](_0x3674f6){if(0x0==_0x3674f6['length'])return;const _0x2dcf9d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e2b70=>'attribute'==_0x5e2b70['type']&&_0x5e2b70['_isDataLoaded']),_0x34098f=[],_0x4a020a=new Map();for(const _0x35906b of _0x2dcf9d){const _0x88fd4a=_0x2313a4(_0x35906b['attributes']);_0x4a020a['has'](_0x88fd4a)||(_0x4a020a['set'](_0x88fd4a,_0x34098f['length']),_0x34098f['push']([]));const _0x39c25f=_0x4a020a['get'](_0x88fd4a);_0x34098f[_0x39c25f]['push'](_0x35906b);}!(function(){_0x34098f['sort']((_0x1f8a13,_0x646ac5)=>{const _0x199e17=_0x1f8a13[0x0]['createdAt'],_0x17dcac=_0x646ac5[0x0]['createdAt'];return _0x199e17==_0x17dcac?_0x1f8a13[0x0]['attributes']['groupId']<_0x646ac5[0x0]['attributes']['groupId']?-0x1:0x1:_0x199e17<_0x17dcac?-0x1:0x1;});for(const _0x3772a1 of _0x34098f)_0x3772a1['sort']((_0x5280e8,_0x25cb41)=>_0x5280e8['id']<_0x25cb41['id']?-0x1:0x1);}());for(let _0x494253=0x0;_0x494253<_0x34098f['length'];_0x494253++){if(0x0==_0x34098f[_0x494253]['length'])continue;const _0x25ed54=[];for(let _0x107487=_0x494253+0x1;_0x107487<_0x34098f['length'];_0x107487++)0x0!=_0x34098f[_0x107487]['length']&&_0x574832(_0x34098f[_0x494253],_0x34098f[_0x107487])&&_0x25ed54['push'](_0x107487);for(const _0x8fd454 of _0x25ed54)_0x34098f[_0x494253]=_0x34098f[_0x494253]['concat'](_0x34098f[_0x8fd454]),_0x34098f[_0x8fd454]=[];}for(const _0x3c290e of _0x34098f)for(let _0x3324b0=0x0;_0x3324b0<_0x3c290e['length'];_0x3324b0++){const _0x2a1667=_0x3c290e[_0x3324b0+0x1]||null;_0x3c290e[_0x3324b0]['next']!==_0x2a1667&&(_0x3c290e[_0x3324b0]['next']=_0x2a1667);}for(const _0x4650b4 of _0x34098f)for(let _0x419f0f=0x0;_0x419f0f<_0x4650b4['length'];_0x419f0f++){const _0x387efe=_0x4650b4[_0x419f0f-0x1]||null;_0x4650b4[_0x419f0f]['previous']!==_0x387efe&&(_0x4650b4[_0x419f0f]['previous']=_0x387efe);}function _0x574832(_0x41b96d,_0x238d17){if(_0x41b96d[0x0]['attributes']['groupId']!==_0x238d17[0x0]['attributes']['groupId']&&_0x41b96d[0x0]['author']!==_0x238d17[0x0]['author'])return!0x1;if(!function(_0x2fb6a7,_0x3a7051){if(!_0x2fb6a7['hasComments']&&!_0x3a7051['hasComments'])return!0x0;if(_0x2fb6a7['hasComments']&&_0x3a7051['hasComments'])return!0x1;if(_0x2fb6a7['hasComments']&&_0x3a7051['createdAt']<_0x2fb6a7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3a7051['hasComments']&&_0x2fb6a7['createdAt']<_0x3a7051['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x41b96d[0x0],_0x238d17[0x0]))return!0x1;const _0x2c0142=Ft(_0x41b96d[0x0]['attributes'],['groupId','trackingSessionId']),_0x3997cb=Ft(_0x238d17[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2ed42c(_0x2c0142,_0x3997cb))return!0x1;if(_0x41b96d[0x0]['attributes']['groupId']==_0x238d17[0x0]['attributes']['groupId'])return!0x0;if(_0x41b96d[0x0]['attributes']['trackingSessionId']!==_0x238d17[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x41b96d['every'](_0x506cae=>_0x238d17['some'](_0x25589a=>_0x506cae['getFirstRange']()['isEqual'](_0x25589a['getFirstRange']())))&&_0x238d17['every'](_0x24a45f=>_0x41b96d['some'](_0x39ae30=>_0x24a45f['getFirstRange']()['isEqual'](_0x39ae30['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4fde97){const _0x1c4106=Array['from'](_0x4fde97),_0x596220=this['getSuggestions']({'skipNotAttached':!0x0}),_0x151856=_0x596220['filter'](_0xc97404=>!_0x4fde97['has'](_0xc97404)),_0x558412=new Map(_0x1c4106['map'](_0x44d1a5=>[_0x44d1a5,this['_suggestionFactory']['getSuggestionCallback'](_0x44d1a5['type'],_0x44d1a5['subType'],'join')])),_0x2e8b1b=new Map(_0x596220['map'](_0x3edbfb=>[_0x3edbfb,_0x3edbfb['getRanges']()]));for(let _0x3f1be0=0x0;_0x3f1be0<_0x1c4106['length'];_0x3f1be0++){if(_0x221a7e(this,_0x1c4106[_0x3f1be0],_0x1c4106,_0x3f1be0+0x1))return!0x0;}for(let _0x3bede5=0x0;_0x3bede5<_0x1c4106['length'];_0x3bede5++){if(_0x221a7e(this,_0x1c4106[_0x3bede5],_0x151856,0x0))return!0x0;}return!0x1;function _0x221a7e(_0x5663df,_0x3801aa,_0x3b18e0,_0x108942){for(let _0x55613a=_0x108942;_0x55613a<_0x3b18e0['length'];_0x55613a++){const _0x4c1773=_0x3b18e0[_0x55613a];if(_0x4c1773['type']!==_0x3801aa['type']||_0x4c1773['author']['id']!==_0x3801aa['author']['id']||_0x4c1773['subType']!==_0x3801aa['subType'])continue;if(!Qt(_0x3801aa,_0x4c1773))continue;if('attribute'==_0x3801aa['type']&&_0x3801aa['data']['oldValue']!=_0x4c1773['data']['oldValue'])continue;if('attribute'==_0x3801aa['type']&&_0x5663df['_isBlockAttribute'](_0x3801aa['data']['key']))continue;if('formatBlock'==_0x3801aa['type']){const _0x1d441f=_0x5663df['editor']['model'],_0x423b04=_0x3801aa['getContainedElement']();if(_0x423b04&&(_0x1d441f['schema']['isObject'](_0x423b04)||_0x1d441f['schema']['isLimit'](_0x423b04)))continue;}const _0x2142b0=_0x558412['get'](_0x3801aa),_0x3f9ee1=_0x2e8b1b['get'](_0x3801aa),_0x4bf2bf=_0x2e8b1b['get'](_0x4c1773),_0x44fa17=_0x3801aa['commentThread']&&_0x3801aa['commentThread']['length'],_0x977e2c=_0x4c1773['commentThread']&&_0x4c1773['commentThread']['length'];if(!_0x44fa17&&_0x2142b0(_0x4bf2bf,_0x3f9ee1))return _0x5663df['_joinSuggestions'](_0x4c1773,_0x3801aa),_0x2e8b1b['delete'](_0x3801aa),!0x0;if(!_0x977e2c&&_0x2142b0(_0x3f9ee1,_0x4bf2bf))return _0x5663df['_joinSuggestions'](_0x3801aa,_0x4c1773),_0x2e8b1b['delete'](_0x4c1773),!0x0;}return!0x1;}}['_joinSuggestions'](_0x7bf612,_0x196ff2){if(_0x7bf612['isMultiRange']){for(const _0x89e415 of _0x196ff2['getRanges']())_0x7bf612['addRange'](_0x89e415);}else{const _0x3b7e13=_0x196ff2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x7bf612,this['_model']['createRange'](_0x7bf612['getFirstRange']()['start'],_0x3b7e13));}_0x196ff2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x53ecb8,_0x51b288,_0x2837c0){const _0x49c754=_0x53ecb8['startsWith']('format')||_0x53ecb8['startsWith']('attribute')?'FORMATTING':_0x53ecb8['toUpperCase']();return c(this['editor']['locale'],_0x51b288+'_'+_0x49c754+'_SUGGESTION_ANNOUNCEMENT',_0x2837c0);}['_initAriaMarkerChangeAnnouncements'](){const _0x414694=this['editor'];if(!_0x414694['ui'])return;const {ariaLiveAnnouncer:_0x29227b}=_0x414694['ui'];_0x184fc2(this['_model'],({left:_0x56dcdf,entered:_0x40c7f9})=>{for(const _0x103b94 of _0x56dcdf){const {group:_0x558bb9,type:_0x3c00c8}=this['_splitMarkerName'](_0x103b94['name']);if('suggestion'===_0x558bb9){_0x29227b['announce'](this['_getMarkerAnnouncementText'](_0x3c00c8,'LEAVE'));break;}}for(const _0x1da5b5 of _0x40c7f9){const {group:_0x14e840,type:_0x136063}=this['_splitMarkerName'](_0x1da5b5['name']);if('suggestion'===_0x14e840){_0x29227b['announce'](this['_getMarkerAnnouncementText'](_0x136063,'ENTER',_0x593b55(_0x3ae0da)));break;}}});}['_processAttributeChanges'](_0x4dbd6d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1d9637=this['editor'],_0x4e3fe4=_0x1d9637['model']['document']['differ']['getChanges']();if(0x0==_0x4e3fe4['length'])return!0x1;const _0x29d4a9=[],_0x400d35=_0x4e3fe4['filter'](_0x24f45b=>'attribute'==_0x24f45b['type']),_0x4979e5=_0x4e3fe4['filter'](_0x23c61e=>'insert'==_0x23c61e['type']&&'$text'!=_0x23c61e['name']),_0x182a7e=_0x4e3fe4['filter'](_0x3f972b=>'remove'==_0x3f972b['type']&&'$text'!=_0x3f972b['name']);for(const _0x416fd7 of _0x400d35)_0x29d4a9['push']({'key':_0x416fd7['attributeKey'],'newValue':_0x416fd7['attributeNewValue'],'oldValue':_0x416fd7['attributeOldValue'],'range':qt(_0x416fd7['range'],_0x1d9637['model'])});for(const _0x16bf3f of _0x4979e5){const _0x20f869=_0x182a7e['find'](_0x37d38f=>_0x37d38f['position']['isEqual'](_0x16bf3f['position']));_0x20f869&&_0x29d4a9['push']({'key':u,'newValue':_0x16bf3f['name'],'oldValue':_0x20f869['name'],'range':_0x1d9637['model']['createRangeOn'](_0x16bf3f['position']['nodeAfter'])});}return 0x0!=_0x29d4a9['length']&&this['_reduceExistingSuggestions'](_0x4dbd6d,_0x29d4a9);}['_processAttributeSuggestions'](_0x4b2063){let _0x36750b=!0x1;const _0x1ceb17=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x414254=>_0x414254['data']['newRange']&&_0x414254['name']['startsWith']('suggestion:attribute:'));for(const _0x102952 of _0x1ceb17){const {subType:_0x429e23,id:_0x1e8ea3}=this['_splitMarkerName'](_0x102952['name']),_0x1a725d=_0x429e23['split']('|')[0x0];for(const _0x3bbf5f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bbf5f['id']!=_0x1e8ea3&&'attribute'==_0x3bbf5f['type']&&_0x3bbf5f['data']&&_0x3bbf5f['data']['key']==_0x1a725d&&_0x3bbf5f['getFirstRange']()['isIntersecting'](_0x102952['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bbf5f,_0x102952['data']['newRange'],_0x4b2063),_0x36750b=!0x0);}return _0x36750b;}['_recordAttributeChanges'](_0x1d8c32){this['_recordAttributeSuggestions']=!0x0,_0x1d8c32();}['_isRegisteredAttribute'](_0x2d17c7){const _0x43e252=this['_isBlockAttribute'](_0x2d17c7),_0x20b6c4=this['_inlineAttributeKeys']['has'](_0x2d17c7);return _0x43e252||_0x20b6c4;}['_reduceExistingSuggestions'](_0x358dd4,_0x52e434){if(0x0==_0x52e434['length'])return!0x1;let _0x55580b=!0x1;for(const _0x4f50ed of _0x52e434){const _0x49f7b3=this['_findSuggestions'](_0x4f50ed['range'],'attribute')['filter'](_0x2ac70e=>!_0x2ac70e['meta']['isNextTo'])['map'](_0x54fa9d=>_0x54fa9d['suggestion']),_0x296944=_0x2313a4({'newValue':_0x4f50ed['newValue']});_0x49f7b3['filter'](_0x4bdb99=>{const [_0xb65a20,_0x5766ff]=_0x4bdb99['subType']['split']('|');return _0xb65a20==_0x4f50ed['key']&&_0x5766ff!=_0x296944;})['forEach'](_0x2953e6=>{this['_reduceSuggestionAttributeRange'](_0x2953e6,_0x4f50ed['range'],_0x358dd4),_0x55580b=!0x0;});}return _0x55580b;}['_reduceSuggestionAttributeRange'](_0x5f5b91,_0x387e0b,_0x23b50d){const _0x12bb14=_0x5f5b91['getFirstRange']()['getDifference'](_0x387e0b);0x0!==_0x12bb14['length']?0x1!==_0x12bb14['length']?this['_breakSuggestionMarker'](_0x5f5b91,_0x387e0b['start'],_0x387e0b['end']):this['_setSuggestionRange'](_0x5f5b91,_0x12bb14[0x0]):_0x23b50d['removeMarker'](_0x5f5b91['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x57a020){this['_editor']=_0x57a020,this['_model']=_0x57a020['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x38b24d,_0x2b7b93,_0x43a2e0,_0x570ae4,_0x5db68f,_0x738ee3){return new o(this['_model'],{'type':_0x38b24d,'subType':_0x2b7b93,'id':_0x43a2e0,'author':_0x570ae4,'creator':_0x570ae4,'attributes':_0x5db68f,'onAttributesChange':_0x738ee3,'onAccept':(..._0x529fd6)=>this['getSuggestionCallback'](_0x38b24d,_0x2b7b93,'accept')(..._0x529fd6),'onDiscard':(..._0x324e4e)=>this['getSuggestionCallback'](_0x38b24d,_0x2b7b93,'discard')(..._0x324e4e)});}['registerCustomCallback'](_0x6ddffd,_0x4beeb5,_0x11146b,_0x25c65f){const _0x11fd91=_0x6ddffd+':'+_0x4beeb5+':'+_0x11146b;this['_customCallbacks']['set'](_0x11fd91,_0x25c65f);}['getSuggestionCallback'](_0x2d200b,_0x24145c,_0x1c5a53){const _0x56d664=_0x2d200b+':'+_0x24145c+':'+_0x1c5a53;return this['_customCallbacks']['get'](_0x56d664)||this['_defaultCallbacks']['get'](_0x2d200b+':'+_0x1c5a53);}['_registerDefaultCallbacks'](){const _0x50b42e=()=>!0x1,_0x35b6d6=_0x54896b=>{_0x54896b['sort']((_0x16e9b2,_0x1ccbce)=>_0x16e9b2['start']['isBefore'](_0x1ccbce['start'])?0x1:-0x1),this['_model']['change'](_0x593cdf=>{for(const _0x41c6d2 of _0x54896b){let _0x4401b6;_0x4401b6=_0x41c6d2['end']['isAtEnd']&&_0x41c6d2['end']['parent']==_0x41c6d2['start']['nodeAfter']?_0x593cdf['createSelection'](_0x41c6d2['start']['nodeAfter'],'on'):_0x593cdf['createSelection'](_0x41c6d2),this['_model']['deleteContent'](_0x4401b6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x99f880=(_0x3da96,_0x5c1ca8)=>{_0x5c1ca8&&this['_model']['change'](_0x252146=>{const {commandName:_0x523a02,commandParams:_0x46e93b=[]}=_0x5c1ca8,_0x5e476e=_0x3da96['map'](_0x19ff21=>(Lt(_0x19ff21)&&(_0x19ff21=this['_model']['createRange'](_0x19ff21['end'])),_0x19ff21))['filter'](_0x194dda=>'$graveyard'!==_0x194dda['root']['rootName']);if(_0x5e476e['length']<0x1)return;const _0x4cc2c5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc4c5d7=>_0xd0daae['fromRange'](_0xc4c5d7));_0x252146['setSelection'](_0x5e476e);for(const _0x130425 of this['_editor']['commands']['commands']())_0x130425['refresh']();_0x46e93b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x523a02,..._0x46e93b);const _0x52a61a=_0x4cc2c5['filter'](_0x3a8b10=>'$graveyard'!=_0x3a8b10['root']['rootName']);_0x52a61a['length']>0x0&&_0x252146['setSelection'](_0x52a61a);for(const _0x35aa7a of _0x4cc2c5)_0x35aa7a['detach']();});},_0x361c90=(_0x2fb188,_0x4a0c3e)=>0x1==_0x2fb188['length']&&0x1==_0x4a0c3e['length']&&_0x2fb188[0x0]['end']['isEqual'](_0x4a0c3e[0x0]['start']),_0x328013=(_0x1e855c,_0x99dd8c,_0x3e9cd5,_0x156159)=>Wt(_0x1e855c,_0x99dd8c,_0x3e9cd5,_0x156159)?[_0x1e855c,_0x99dd8c]:Wt(_0x99dd8c,_0x1e855c,_0x156159,_0x3e9cd5)?[_0x99dd8c,_0x1e855c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x50b42e),this['_defaultCallbacks']['set']('insertion:discard',_0x35b6d6),this['_defaultCallbacks']['set']('insertion:join',_0x361c90),this['_defaultCallbacks']['set']('insertion:chain',_0x328013),this['_defaultCallbacks']['set']('deletion:accept',_0x35b6d6),this['_defaultCallbacks']['set']('deletion:discard',_0x50b42e),this['_defaultCallbacks']['set']('deletion:join',_0x361c90),this['_defaultCallbacks']['set']('deletion:chain',_0x328013),this['_defaultCallbacks']['set']('formatInline:accept',_0x99f880),this['_defaultCallbacks']['set']('formatInline:discard',_0x50b42e),this['_defaultCallbacks']['set']('formatInline:join',_0x361c90),this['_defaultCallbacks']['set']('formatInline:chain',_0x50b42e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x99f880),this['_defaultCallbacks']['set']('formatBlock:discard',_0x50b42e),this['_defaultCallbacks']['set']('formatBlock:join',_0x361c90),this['_defaultCallbacks']['set']('formatBlock:chain',_0x50b42e),this['_defaultCallbacks']['set']('attribute:accept',_0x50b42e),this['_defaultCallbacks']['set']('attribute:discard',(_0xa4662,_0x494b42)=>{if(!_0x494b42)return;const _0x1bb753=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x560f7c=>{if(_0x494b42['key']==u)for(const _0x41eb62 of _0xa4662){const _0x18627f=_0x41eb62['start']['nodeAfter'],_0x5869c8=_0x494b42['oldValue'];_0x560f7c['rename'](_0x18627f,_0x5869c8);}else{if(_0x1bb753['_isBlockAttribute'](_0x494b42['key'])){for(const _0xf5e665 of _0xa4662)void 0x0!==_0x494b42['oldValue']?_0x560f7c['setAttribute'](_0x494b42['key'],_0x494b42['oldValue'],_0xf5e665['start']['nodeAfter']):_0x560f7c['removeAttribute'](_0x494b42['key'],_0xf5e665['start']['nodeAfter']);}else{for(const _0x1ee25e of _0xa4662)_0x494b42['oldValue']?_0x560f7c['setAttribute'](_0x494b42['key'],_0x494b42['oldValue'],_0x1ee25e):_0x560f7c['removeAttribute'](_0x494b42['key'],_0x1ee25e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x361c90);}}function Gt(_0xba2ef3,_0x32456c,_0x1df4ed){for(const _0x31e3c5 of _0x32456c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x31e3c5['root']==_0x31e3c5)return!0x1;if(!_0x1df4ed['containsItem'](_0x31e3c5))return!0x1;if(_0xba2ef3['isObject'](_0x31e3c5)||_0xba2ef3['isLimit'](_0x31e3c5))return!0x0;}return!0x1;}function Lt(_0xcc1d26){return _0xcc1d26['end']['parent']==_0xcc1d26['start']['nodeAfter']&&_0xcc1d26['end']['isAtStart'];}function Jt(_0x589b68,_0x30e4ce,_0x4f2bc6,_0x395e33){const _0x46f5f2=_0x2ec1c3=>!_0x2ec1c3['item']['is']('$textProxy')&&!_0x395e33['isObject'](_0x2ec1c3['item']),_0x1e721a=_0x589b68['start']['getLastMatchingPosition'](_0x46f5f2),_0xec0b9=_0x589b68['end']['getLastMatchingPosition'](_0x46f5f2,{'direction':'backward'});return(!_0x589b68['start']['isEqual'](_0x1e721a)||!_0x589b68['end']['isEqual'](_0xec0b9))&&(_0x1e721a['isBefore'](_0xec0b9)?_0x4f2bc6['updateMarker'](_0x30e4ce,{'range':_0x4f2bc6['createRange'](_0x1e721a,_0xec0b9)}):_0x4f2bc6['removeMarker'](_0x30e4ce),!0x0);}function Kt(_0x220e24){return _0x2313a4(_0x220e24);}function Ht(_0xca7bce){const _0x439be5=_0xca7bce['start']['nodeAfter'];return _0x439be5&&_0x439be5['is']('element');}function qt(_0x4a2c96,_0x5aa714){return null==_0x4a2c96['end']['nodeBefore']&&_0x4a2c96['end']['parent']==_0x4a2c96['start']['nodeAfter']?zt(_0x4a2c96['start']['nodeAfter'],_0x5aa714):_0x4a2c96;}function zt(_0x339df4,_0x4e3630){const _0x3f7be8=_0x4e3630['schema']['isObject'](_0x339df4)||_0x4e3630['schema']['isSelectable'](_0x339df4);return _0x4e3630['createRange'](_0x4e3630['createPositionAt'](_0x339df4,'before'),_0x3f7be8?_0x4e3630['createPositionAfter'](_0x339df4):_0x4e3630['createPositionAt'](_0x339df4,'end'));}function Wt(_0x226e64,_0x29d627,_0x1c6502,_0x1882f4){return!!Qt(_0x226e64,_0x29d627)&&_0x1c6502['end']['isEqual'](_0x1882f4['start']);}function Qt(_0x2de69f,_0x4940fd){if(!_0x2de69f['_isDataLoaded']||!_0x4940fd['_isDataLoaded'])return!0x1;const _0x199406=new Set(Object['keys'](_0x2de69f['attributes'])),_0x220872=new Set(Object['keys'](_0x4940fd['attributes']));if(_0x199406['delete']('groupId'),_0x220872['delete']('groupId'),0x0==_0x199406['size']&&0x0==_0x220872['size'])return!0x0;if(_0x199406['size']!=_0x220872['size'])return!0x1;const _0x470419={..._0x2de69f['attributes']},_0x5556f9={..._0x4940fd['attributes']};return delete _0x470419['groupId'],delete _0x5556f9['groupId'],JSON['stringify'](_0x470419)==JSON['stringify'](_0x5556f9);}function Xt(_0x5f4dec,_0x5e9fe3){const _0x4b23cb=Yt(_0x5f4dec['attributes']),_0x3bb79e=Yt(_0x5e9fe3);if(!_0x5f4dec['_isDataLoaded'])return!0x1;for(const _0x201a6e of Object['keys'](_0x3bb79e))if(!_0x2ed42c(_0x4b23cb[_0x201a6e],_0x3bb79e[_0x201a6e]))return!0x1;return!0x0;}function Yt(_0x365b64){const _0x37ffa7=Object['assign']({},_0x365b64);return delete _0x37ffa7['skipNestingCheck'],delete _0x37ffa7['tablePasteChainId'],_0x37ffa7;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x20a8ec(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x6a2d2d,_0x4b9797,_0x433d52,_0xbfcb72){super(),this['model']=_0x4b9797,this['view']=_0x433d52,this['commentThreadController']=_0xbfcb72,this['_editor']=_0x6a2d2d,this['_acceptCommand']=_0x6a2d2d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x6a2d2d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x41fa6e,_0x22f6d4)=>_0x41fa6e||_0x22f6d4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xca48a9=>_0xca48a9&&this['_editor']['model']['canEditAt'](_0x4b9797['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2323ab=>_0x2323ab&&this['_editor']['model']['canEditAt'](_0x4b9797['getRanges']())),this['_pendingAction']=null,_0x433d52['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x433d52,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x433d52,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x433d52,'change:isDirty',()=>{_0x433d52['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 _0x15dd18=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x15dd18);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4869c9{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5e0029,_0x378419,_0x2cca69,_0x266b37){super(_0x5e0029),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4ed1c1(_0x5e0029,c(_0x5e0029,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x378419['authoredAt']),this['bind']('authoredAt')['to'](_0x378419),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',_0x378419,'authoredAt',this,'descriptionParts',(_0x48855b,_0x890c40,_0x9a4776)=>{const _0x3cb0c9=_0x9a4776['map'](_0x24ffcb=>ls(_0x24ffcb['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48855b-0x1,_0x378419['author']['name'],_0x890c40?_0x266b37['formatDateTime'](_0x890c40):'',new DOMParser()['parseFromString'](_0x3cb0c9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2b238a(),this['focusTracker']=new _0x170b6f(),this['keystrokes']=new _0x21fab9(),this['focusCycler']=new _0x4816ad({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d1be6=>_0x4d1be6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x378419,this['_localUser']=_0x2cca69,this['_config']=_0x266b37,_0x266b37['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4db541(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xaa238a}=this['_config'];this['commentsListView']=new _0xaa238a(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',_0x28b1cd=>_0x28b1cd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x276993,_0x56450b)=>_0x276993||!!_0x56450b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c858e}=this['_config'],_0x45b9f9=new _0x1c858e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1feadc=_0x45b9f9['commentInputView'];return _0x45b9f9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1feadc,'value',(_0x130c81,_0x55a527,_0x8e3959)=>!!_0x8e3959||_0x130c81&&!_0x55a527),_0x1feadc['on']('submit',(_0x350b66,_0x46af59)=>{this['fire']('addComment',_0x46af59),_0x1feadc['editor']['setData']('');}),_0x1feadc['on']('cancel',()=>this['focus']()),_0x1feadc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x45b9f9;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x583494,_0x3971aa,_0x3e3a0d,_0x5707e9){super(_0x583494,_0x3971aa,_0x3e3a0d,_0x5707e9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x338319=>_0x338319&&_0x338319[0x0]?_0x338319[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3cf3f1,_0x3b1079)=>{let _0x45bdf8='';for(const _0x2643ba of _0x3cf3f1)_0x45bdf8+='<p>'+ls(_0x2643ba['content'],_0x2643ba['color'])+'</p>';return _0x3b1079?_0x45bdf8:ti(_0x45bdf8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5707e9['SuggestionView'](_0x583494,_0x3971aa,{'formatDateTime':_0x5707e9['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 _0x20af5b=this['bindTemplate'],_0x48ce58=[this['suggestionView']];return this['commentsListView']&&_0x48ce58['push'](this['commentsListView']),this['commentThreadInputView']&&_0x48ce58['push'](this['commentThreadInputView']),_0x48ce58['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x20af5b['if']('isActive','ck-suggestion-wrapper--active'),_0x20af5b['to']('type',_0x32c0b9=>'ck-suggestion-'+_0x32c0b9),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':_0x20af5b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x48ce58};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4869c9{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x406ab6,_0x102dc3,_0x3ee02a){super(_0x406ab6),this['_model']=_0x102dc3,this['_config']=_0x3ee02a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x102dc3),this['acceptButton']=this['_createButton'](c(_0x406ab6,'Accept\x20suggestion'),_0x331d03,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x406ab6,'Discard\x20suggestion'),_0x4c74c8,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x59bb09(_0x406ab6,_0x102dc3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2b238a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x170b6f(),this['keystrokes']=new _0x21fab9(),this['focusCycler']=new _0x4816ad({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x120324=>_0x120324['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xb09379=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xb09379['innerHTML']=this['description'],this['on']('change:description',(_0xeeca23,_0x561648,_0x5069a5)=>{_0xb09379['innerHTML']=_0x5069a5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4e0e31=this['bindTemplate'],_0x4ae734=[{'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':_0x4e0e31['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4e0e31['to']('authoredAt',_0x2b4c46=>this['_config']['formatDateTime'](_0x2b4c46))}]}]},{'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']&&_0x4ae734['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':_0x4ae734}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x537144,_0x43dd3c,_0x44037b,_0x14fde7,_0x22314a){const _0x215e98=new _0x344f20(this['locale']);return _0x215e98['set']({'label':_0x537144,'icon':_0x43dd3c,'tooltip':!0x0,'tooltipPosition':_0x22314a}),_0x215e98['extendTemplate']({'attributes':{'class':_0x44037b}}),_0x215e98['on']('execute',()=>{this['fire'](_0x14fde7,this['_model']['id']);}),_0x215e98;}['_setupKeyboardNavigation'](){const _0x38a02d=this['element'];this['keystrokes']['listenTo'](_0x38a02d);for(const _0x2c9802 of this['focusables'])this['focusTracker']['add'](_0x2c9802['element']),this['keystrokes']['listenTo'](_0x2c9802['element']);this['keystrokes']['set']('enter',(_0x5c48df,_0x48797a)=>{_0x38a02d===_0x5c48df['target']&&(this['focusCycler']['focusFirst'](),_0x48797a());}),this['keystrokes']['set']('esc',(_0x58d2f9,_0x547392)=>{_0x38a02d!==_0x58d2f9['target']&&(this['focus'](),_0x547392());});}}class d extends _0x6abf95{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x50e121,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f9d64){super(_0x1f9d64),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x529e5e=this['editor']['config'];_0x529e5e['define']('trackChanges.SuggestionThreadView',fe),_0x529e5e['define']('trackChanges.SuggestionView',we),_0x529e5e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x529e5e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1d4f66,_0x30c97a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x369572,_0x1d8228]of this['_handleControllerBuffer']){const _0x17036a=this['_suggestionToController']['has'](_0x369572);_0x17036a||_0x1d8228?_0x17036a&&_0x1d8228&&this['_destroyController'](_0x369572):this['_initializeController'](_0x369572);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1d4f66,_0x30c97a);}['init'](){const _0x743e2f=this['editor'],_0x47c7cd=_0x743e2f['plugins']['get']('TrackChangesEditing'),_0x69847=_0x743e2f['plugins']['get']('Annotations'),_0x5e8647=_0x743e2f['plugins']['get']('EditorAnnotations'),_0x2a546e=_0x743e2f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5e8647['addSourceCollector'](()=>{const _0x4042a9=[];for(const [_0x30756e,_0x281648]of Array['from'](this['_suggestionToController'])){const _0x156a4d=_0x30756e['getAllAdjacentSuggestions'](),_0x469bce=[];for(const _0x37022f of _0x156a4d){if(!_0x37022f['isInContent'])continue;if(_0x37022f['isMultiRange']){_0x469bce['push'](..._0x37022f['getRanges']());continue;}const _0xa0a43e=_0x37022f['getFirstRange']();if(_0x469bce['length']>0x0){const _0x148ca9=_0x469bce[0x0]['getJoined'](_0xa0a43e);if(_0x148ca9){_0x469bce[0x0]=_0x148ca9;continue;}}_0x469bce['push'](_0xa0a43e);}_0x4042a9['push']([_0x281648['view'],_0x469bce]);}return _0x4042a9;}),this['listenTo'](_0x47c7cd,'suggestionLoaded',(_0x3fe3f4,_0x35fa04)=>{this['listenTo'](_0x35fa04,'change:previous',(_0x379cee,_0x55ba7e,_0x4cd3bf,_0x42121a)=>{_0x35fa04['isInContent']&&(null==_0x4cd3bf?(this['_updateController'](_0x42121a['head']),this['_handleSuggestionControllerDelayed'](_0x35fa04,!0x1)):(this['_updateController'](_0x4cd3bf['head']),null==_0x42121a&&this['_handleSuggestionControllerDelayed'](_0x35fa04,!0x0)));}),null!==_0x35fa04['previous']?this['_updateController'](_0x35fa04['head']):this['_handleSuggestionControllerDelayed'](_0x35fa04,!0x1);}),this['listenTo'](_0x47c7cd,'suggestionUnloaded',(_0x1563af,_0x3cae08,_0x4ce2c8)=>{this['stopListening'](_0x3cae08,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3cae08),this['_suggestionToController']['has'](_0x3cae08)&&this['_destroyController'](_0x3cae08),_0x4ce2c8&&this['_updateController'](_0x4ce2c8['head']);}),this['listenTo'](_0x47c7cd,'suggestionChanged',(_0x440011,_0x5a6401)=>{this['_updateController'](_0x5a6401);}),this['listenTo'](_0x69847,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a546e,'addComment',(_0xcd5b4b,{threadId:_0x3a69ff,isFromAdapter:_0x14ff41})=>{if(_0x14ff41||!_0x47c7cd['hasSuggestion'](_0x3a69ff))return;const _0x39c99d=_0x47c7cd['getSuggestion'](_0x3a69ff);this['_suggestionToController']['get'](_0x39c99d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1059ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3374c6;for(const _0x575d91 in _0x1059ec){const _0x213268=_0x575d91,_0x54eb31=_0x1059ec[_0x213268];if('trackChangesLicenseKeyValid'==_0x54eb31||'trackChangesLicenseKeyInvalid'==_0x54eb31||'trackChangesLicenseKeyExpired'==_0x54eb31||'trackChangesLicenseKeyDomainLimit'==_0x54eb31||'trackChangesLicenseKeyNotAllowed'==_0x54eb31||'trackChangesLicenseKeyEvaluationLimit'==_0x54eb31||'trackChangesLicenseKeyTrialLimit'==_0x54eb31||'trackChangesLicenseKeyUsageLimit'==_0x54eb31){delete _0x1059ec[_0x213268],_0x3374c6=_0x54eb31,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3374c6&&_0x1059ec['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3374c6&&_0x1059ec['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3374c6&&_0x1059ec['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3374c6&&_0x1059ec['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3374c6&&_0x1059ec['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3374c6&&_0x1059ec['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3374c6&&_0x1059ec['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x48ddcf=this['editor']['plugins']['get']('Annotations'),_0x36d822=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54a8b1=Array['from'](_0x48ddcf['activeAnnotations'],_0x30c049=>_0x30c049['innerView'])['filter'](_0x559cdd=>this['_viewToController']['has'](_0x559cdd)),_0x26d1f6=[];for(const _0xb38222 of _0x54a8b1){const _0x14c080=this['_viewToController']['get'](_0xb38222)['model']['getAllAdjacentSuggestions']();_0x26d1f6['push'](..._0x14c080['reduce']((_0xc3cb24,_0x508129)=>[..._0xc3cb24,..._0x508129['getMarkerNames']()],[]));}_0x36d822['activeMarkers']=_0x26d1f6;}['_addUIComponentsToFactory'](){const _0x16ace4=this['editor'],_0x3305aa=_0x16ace4['locale'],_0x2353d1=c(_0x3305aa,'Track\x20changes'),_0xbadfaa=new _0x1eb513([{'type':'switchbutton','model':new _0x2a21a9({'withText':!0x0,'isToggleable':!0x0,'label':_0x2353d1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x16ace4['plugins']['has']('TrackChangesPreview')&&_0xbadfaa['addMany']([{'type':'separator'},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3c62f0 of _0xbadfaa)if(ke(_0x3c62f0)){const _0x24301b=_0x16ace4['commands']['get'](_0x3c62f0['model']['commandName']);_0x3c62f0['model']['bind']('isOn','isEnabled')['to'](_0x24301b,'value','isEnabled');}_0x16ace4['ui']['componentFactory']['add']('trackChanges',_0x193b8f=>this['_createToolbarButton'](_0x193b8f,_0xbadfaa,_0x2353d1)),_0x16ace4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x52ce40=>this['_createMenuBarMenu'](_0x52ce40,_0xbadfaa,_0x2353d1));}['_createToolbarButton'](_0x2b54eb,_0x4b5c79,_0xbb3879){const _0x4c3bab=_0x256442(_0x2b54eb,_0x113e9f),_0x4270a3=this['editor']['commands']['get']('trackChanges');_0x4c3bab['buttonView']['set']({'tooltip':_0xbb3879,'label':_0xbb3879,'icon':_0x21c474}),_0x4c3bab['buttonView']['bind']('isOn')['to'](_0x4270a3,'value'),_0x4c3bab['buttonView']['on']('execute',()=>{_0x4270a3['execute'](),this['editor']['editing']['view']['focus']();}),_0x2ba772(_0x4c3bab,_0x4b5c79,{'role':'menu'});const _0x479659=[];for(const _0x1f69e8 of _0x4b5c79)ke(_0x1f69e8)&&_0x479659['push'](this['editor']['commands']['get'](_0x1f69e8['model']['commandName']));const _0x47176c=_0x4c3bab['buttonView'];return _0x47176c['actionView']['unbind']('isEnabled'),_0x47176c['arrowView']['unbind']('isEnabled'),_0x47176c['actionView']['bind']('isEnabled')['to'](_0x4270a3,'isEnabled'),_0x47176c['arrowView']['bind']('isEnabled')['toMany'](_0x479659,'isEnabled',(..._0x19f764)=>_0x19f764['some'](_0x3c52ab=>_0x3c52ab)),_0x4c3bab['on']('execute',_0x5dad5b=>{this['editor']['execute'](_0x5dad5b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c3bab;}['_createMenuBarMenu'](_0x23e7b1,_0x1f82ac,_0x3a2d7e){const _0x18bc3c=new _0xada8a8(_0x23e7b1),_0x4b6eac=this['editor']['commands']['get']('trackChanges');_0x18bc3c['buttonView']['set']({'label':_0x3a2d7e,'icon':_0x21c474});const _0x371660=new _0x4dea8c(_0x23e7b1);for(const _0x2a6f5d of _0x1f82ac){if('separator'==_0x2a6f5d['type']){_0x371660['items']['add'](new _0x24ca2b(_0x23e7b1));continue;}const _0x14efef=new _0x2cab97(_0x23e7b1,_0x18bc3c),_0x54bf04=new _0x153ad4(_0x23e7b1),_0x17d4db=_0x2a6f5d['model'];_0x54bf04['bind'](...Object['keys'](_0x17d4db))['to'](_0x17d4db),_0x54bf04['delegate']('execute')['to'](_0x18bc3c),_0x54bf04['on']('execute',()=>{this['editor']['execute'](_0x17d4db['commandName']),this['editor']['editing']['view']['focus']();}),_0x14efef['children']['add'](_0x54bf04),_0x371660['items']['add'](_0x14efef);}return _0x18bc3c['bind']('isEnabled')['to'](_0x4b6eac,'isEnabled'),_0x18bc3c['panelView']['children']['add'](_0x371660),_0x18bc3c;}['_initializeController'](_0x6a2a83){const _0x159af6=this['editor'],_0x4a93c2=_0x159af6['config'],_0x421042=_0x159af6['plugins']['get']('Annotations'),_0x232739=_0x159af6['plugins']['get']('CommentsRepository'),_0x57e0e1=_0x159af6['plugins']['get']('EditorAnnotations'),_0x35750b=_0x159af6['plugins']['get'](_0x50e121)['me'],_0x10fa76=_0x4a93c2['get']('trackChanges')['SuggestionThreadView'],_0x21bdba=_0x4a93c2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x6483e0,CommentThreadInputView:_0x385a86}=_0x159af6['plugins']['get']('CommentsUI');let _0x1eacfe,_0x57e371,_0x358512;this['_annotationViews']['has'](_0x6a2a83['id'])?(_0x57e371=this['_annotationViews']['get'](_0x6a2a83['id']),_0x1eacfe=_0x57e371['mainView']):(_0x1eacfe=new _0x10fa76(_0x159af6['locale'],_0x6a2a83,_0x35750b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4a93c2['get']('comments.editorConfig'),'licenseKey':_0x4a93c2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4a93c2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a93c2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a93c2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x475024(_0x4a93c2['get']('locale'),_0x159af6['locale']),'CommentView':_0x4a93c2['get']('comments')['CommentView'],'CommentsListView':_0x6483e0,'CommentThreadInputView':_0x385a86,'SuggestionView':_0x21bdba}),_0x1eacfe['suggestionView']['acceptButton']['on']('execute',()=>{_0x159af6['editing']['view']['focus']();}),_0x1eacfe['suggestionView']['discardButton']['on']('execute',()=>{_0x159af6['editing']['view']['focus']();}),_0x57e371=_0x421042['createAnnotationView'](this['editor']['locale'],_0x1eacfe),_0x57e371['bind']('isDirty')['to'](_0x1eacfe,'isDirty'),_0x57e371['bind']('length')['to'](_0x1eacfe),_0x57e371['bind']('type')['to'](_0x1eacfe,'type',_0x17d28f=>'suggestion-'+_0x17d28f),_0x1eacfe['on']('escape',()=>{_0x358512['fire']('escape');}),this['_annotationViews']['set'](_0x6a2a83['id'],_0x57e371));const _0x3461a3=_0x232739['createCommentThreadController'](_0x6a2a83['commentThread'],_0x1eacfe),_0x4cd773=new pe(_0x159af6,_0x6a2a83,_0x1eacfe,_0x3461a3),_0x119893=_0x6a2a83['getAllAdjacentSuggestions']()['filter'](_0x5a6939=>_0x5a6939['isInContent']);_0x1eacfe['descriptionParts']=_0x159af6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x119893),this['_suggestionToController']['set'](_0x6a2a83,_0x4cd773),this['_viewToController']['set'](_0x1eacfe,_0x4cd773),_0x358512=_0x421042['createAnnotation']({'view':_0x57e371,'target':()=>{const _0x559af8=[],_0x40daac=_0x6a2a83['getAllAdjacentSuggestions']()['filter'](_0x30053e=>_0x30053e['isInContent']);for(const _0x3a5cb8 of _0x40daac)_0x559af8['push'](..._0x3a5cb8['getMarkers']());return _0x53e677(_0x159af6['editing'],_0x559af8);},'type':()=>'suggestion-'+_0x4cd773['view']['type']}),_0x232739['_bindAnnotationToEditors'](_0x1eacfe,_0x358512),_0x421042['add'](_0x358512),_0x57e0e1['registerAnnotation'](_0x358512);}['_destroyController'](_0x311690){const _0x1792b0=this['editor']['plugins']['get']('CommentsRepository'),_0x23acf1=this['editor']['plugins']['get']('Annotations'),_0x27af6a=this['_suggestionToController']['get'](_0x311690),_0x39a61b=_0x27af6a['view'],_0x7ec405=_0x23acf1['getByInnerView'](_0x39a61b);_0x1792b0['_unbindEditors'](_0x39a61b),_0x7ec405&&_0x23acf1['remove'](_0x7ec405),this['_suggestionToController']['delete'](_0x311690),this['_viewToController']['delete'](_0x39a61b),_0x27af6a['destroy']();}['_updateController'](_0x320d2f){if(!_0x320d2f['isInContent']||!this['_suggestionToController']['has'](_0x320d2f))return;const _0x28cd1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d3c7a=this['_suggestionToController']['get'](_0x320d2f),_0x5523e6=_0x320d2f['getAllAdjacentSuggestions']();_0x5d3c7a['view']['descriptionParts']=_0x28cd1e['descriptionFactory']['getDescriptions'](_0x5523e6);}['destroy'](){for(const _0x5e35c5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5e35c5);for(const _0x1eff65 of this['_annotationViews']['values']())_0x1eff65['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x37f5d0){return'model'in _0x37f5d0;}class k extends _0x6abf95{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x299d2f){this['editor']['plugins']['get'](p)['adapter']=_0x299d2f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x48026){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x48026);}['getSuggestions']({skipNotAttached:_0x12ff62=!0x1,toJSON:_0x478515=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x12ff62,'toJSON':_0x478515});}['getSuggestion'](_0x2404f1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2404f1);}}const w=['Pagination'];class T extends _0x6abf95{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x465289=this['editor'];if(_0x465289['config']['define']('trackChangesData.editorCreator',_0x37a7f1=>{const _0x3ec443=_0x465289['model']['document']['getRootNames']()['reduce']((_0x32ca76,_0x25ca5a)=>(_0x32ca76[_0x25ca5a]='',_0x32ca76),{});return _0x465289['constructor']['create'](_0x3ec443,_0x37a7f1);}),'function'!=typeof _0x465289['config']['get']('trackChangesData')['editorCreator'])throw new _0x3d469d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f1060){return N(this['editor'],!0x0,_0x1f1060);}['getDataWithDiscardedSuggestions'](_0x454cd5){return N(this['editor'],!0x1,_0x454cd5);}}class D extends _0x6abf95{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x116537){function _0x143e4f(_0x2cecc6){return _0x2cecc6['map'](_0x308e=>String['fromCharCode'](_0x308e))['join']('');}super(_0x116537),this['result']='end',_0x116537[_0x143e4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x143e4f([0x76,0x69,0x65,0x77])][_0x143e4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x143e4f([0x61,0x75,0x74,0x6f]),_0x116537[_0x143e4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x143e4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x143e4f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x143e4f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x143e4f([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 Ge(_0x50a34a){return void 0x0!==_0x50a34a['getRootsAttributes'];}async function N(_0x55c164,_0x2a55a8,_0x3f35b6){const _0x25e615=_0x3c2b33(_0x55c164,w);_0x25e615['plugins']['push'](p,D),_0x25e615['rootsAttributes']=Ge(_0x55c164)?_0x55c164['getRootsAttributes']():void 0x0;const _0x23bbdf=document['createDocumentFragment'](),_0x27415a=_0x55c164['config']['get']('trackChangesData')['editorCreator'],_0x1e1a00=await _0x27415a(_0x25e615,()=>function(_0x295842){const _0x4b6e68=document['createElement']('div');return _0x295842['appendChild'](_0x4b6e68),_0x4b6e68;}(_0x23bbdf));!function(_0xfe17b5,_0x349a37){const _0x3da2df=_0xfe17b5['model']['document']['getRootNames']()['reduce']((_0x2e567b,_0x5c6e66)=>(_0x2e567b[_0x5c6e66]=_0xfe17b5['data']['get']({'rootName':_0x5c6e66}),_0x2e567b),{}),_0x3f9655=_0xfe17b5['plugins']['get']('Users')['users']['map'](_0x2be255=>({'id':_0x2be255['id'],'name':_0x2be255['name']})),_0x3639ff=_0xfe17b5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x791ad=_0xfe17b5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x311203=_0x349a37['plugins']['get']('Users'),_0x1092e9=_0x349a37['plugins']['get']('TrackChangesEditing'),_0x4aec31=_0x349a37['plugins']['get']('CommentsRepository');for(const _0x3588a3 of _0x4aec31['getCommentThreads']())_0x3588a3['remove']();for(const _0x56b70f of _0x3f9655)_0x311203['getUser'](_0x56b70f['id'])||_0x311203['addUser'](_0x56b70f);_0x311203['me']||_0x311203['useAnonymousUser']();for(const _0x5eefd3 of _0x791ad)_0x4aec31['addCommentThread'](_0x5eefd3);for(const _0x51427d of _0x3639ff)_0x1092e9['addSuggestionData'](_0x51427d);_0x349a37['data']['set'](_0x3da2df);}(_0x55c164,_0x1e1a00),_0x1e1a00['execute'](_0x2a55a8?'acceptAllSuggestions':'discardAllSuggestions');const _0x2b0731=Ge(_0x1e1a00)?_0x1e1a00['getFullData'](_0x3f35b6):_0x1e1a00['data']['get'](_0x3f35b6);return await _0x1e1a00['destroy'](),_0x2b0731;}class Me extends _0x4869c9{['options'];constructor(_0x3dee5a,_0x337ffa){super(_0x3dee5a),this['options']=_0x337ffa,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'](_0x488f31,_0x49f18f){if(!this['element'])return;const _0x2a68eb=[];for(const [_0x160729,_0x1f7e55]of _0x488f31){const _0x17c8a1=document['createElement']('div');_0x17c8a1['setAttribute']('data-ck-root-name',_0x160729),_0x17c8a1['className']=_0x1f7e55['classes']+'\x20ck-track-changes-preview__root-container',_0x17c8a1['innerHTML']=_0x1f7e55['content'],_0x2a68eb['push'](_0x17c8a1);}_0x49f18f(this['element'],_0x2a68eb),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xd9491d{constructor(_0x56b9ef){super(_0x56b9ef),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2fce96=this['editor'],_0x214e6b=_0x2fce96['locale'],_0x20034b=_0x2fce96['plugins']['get']('Dialog');let _0x25fc89;const _0x6cc145=function(_0x5b1962){const _0x5ecdc1={};if('editables'in _0x5b1962['ui']['view']){for(const [_0x225f07,_0x324235]of Object['entries'](_0x5b1962['ui']['view']['editables']))_0x5ecdc1[_0x225f07]=_0x324235['element'];}else _0x5ecdc1[_0x5b1962['model']['document']['getRootNames']()[0x0]]=_0x5b1962['ui']['view']['editable']['element'];return _0x5ecdc1;}(_0x2fce96),_0x43f11b=function(_0x2e31b4){let _0x4789b9=0x0;for(const _0x177d9f of Object['values'](_0x2e31b4))_0x4789b9=Math['max'](_0x4789b9,_0x177d9f['getBoundingClientRect']()['width']);let _0x339bf3=0x0;for(const _0x20e879 of Object['values'](_0x2e31b4))_0x339bf3+=_0x20e879['getBoundingClientRect']()['height'];const _0x52e222=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x908e92=Math['min'](_0x339bf3,_0x52e222);return{'width':_0x4789b9,'height':_0x908e92};}(_0x6cc145);_0x20034b['show']({'id':'finalContentPreview','title':c(_0x214e6b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x214e6b,{'dialogRects':_0x43f11b}),'onHide':()=>{_0x25fc89['detachFromDom']();},'onShow':()=>{_0x2fce96['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x231db8=>{const _0x40872c=this['_standarizeRootsData'](_0x231db8,_0x2fce96,_0x6cc145);_0x20034b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x40872c,_0x2fce96['config']['get']('trackChanges.preview.renderFunction'));}),_0x25fc89=new _0x4dcb6c(_0x214e6b,[_0x20034b['view']]),_0x25fc89['attachToDom'](),_0x25fc89['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2fce96['once']('destroy',()=>{_0x25fc89['detachFromDom']();});const _0x5bc486=_0x20034b['view']['headerView']['class'];_0x20034b['view']['headerView']['class']=_0x5bc486?_0x5bc486+'\x20ck-reset_all':'ck-reset_all',_0x20034b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x20034b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3145ee=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x307de0=_0x3145ee['previewMode'],_0x31864e={};if('$labels'===_0x307de0){for(const _0x10a729 of _0x3145ee['getMergeFieldsIds']())_0x31864e[_0x10a729]=_0x3145ee['getLabel'](_0x10a729)||_0x10a729;}else{const _0xff01b='$defaultValues'===_0x307de0?_0x3145ee['getDefaultValues']():_0x3145ee['getDataSetValues'](_0x307de0,!0x0);for(const _0x593329 of Object['entries'](_0xff01b)){const [_0x4926a0,_0x1ceaca]=_0x593329;_0x31864e[_0x4926a0]=null!==_0x1ceaca?_0x1ceaca:_0x3145ee['getLabel'](_0x4926a0)||_0x4926a0;}}return{'mergeFieldsData':_0x31864e};}['_standarizeRootsData'](_0x29e315,_0x35af2c,_0x43d433){let _0x24cd38;if('string'==typeof _0x29e315){const _0x1ef391=_0x35af2c['model']['document']['getRootNames']()[0x0];_0x24cd38={[_0x1ef391]:_0x29e315};}else _0x24cd38=_0x29e315;const _0x2e1bbd=this['_fixMediaEmbeds'](_0x24cd38,_0x35af2c),_0x1c6612=function(_0x1efb7d,_0x31ed05){for(const [_0x17c46e,_0x7156da]of _0x1efb7d)_0x7156da['classes']=_0x31ed05[_0x17c46e]['classList']['value']['replace']('ck-focused','');return _0x1efb7d;}(this['_sortRoots'](_0x35af2c)['reduce']((_0x5d42fa,_0x22dfb7)=>(_0x5d42fa['push']([_0x22dfb7,{'content':_0x2e1bbd[_0x22dfb7],'classes':''}]),_0x5d42fa),[]),_0x43d433);return _0x1c6612;}['_fixMediaEmbeds'](_0x51c69b,_0x316095){if(!_0x316095['plugins']['has']('MediaEmbedEditing'))return _0x51c69b;const _0x200c46=_0x316095['plugins']['get']('MediaEmbedEditing');for(const [_0xc34a63,_0x5922c1]of Object['entries'](_0x51c69b)){const _0x2d4553=document['createElement']('div');_0x2d4553['innerHTML']=_0x5922c1,(_0x2d4553['querySelectorAll']('figure.media')['forEach'](_0x5b81ed=>{const _0x567091=_0x5b81ed['querySelector']('oembed');if(_0x567091){const _0x211f14=_0x567091['getAttribute']('url');if(_0x211f14){const _0x26ceb6=_0x200c46['registry']['getMediaViewElement'](new _0x43f942(_0x316095['editing']['view']['document']),_0x211f14,{'elementName':'','renderForEditingView':!0x0}),_0x368c38=document['createElement']('div');_0x368c38['classList']['add']('ck-media__wrapper'),_0x26ceb6['render'](_0x368c38,_0x316095['editing']['view']['domConverter']),_0x567091['replaceWith'](_0x368c38);}}}),_0x51c69b[_0xc34a63]=_0x2d4553['innerHTML']);}return _0x51c69b;}['_sortRoots'](_0xbc2284){if(!function(_0xa64b93){return void 0x0!==_0xa64b93['getRootsAttributes'];}(_0xbc2284))return _0xbc2284['model']['document']['getRootNames']();const _0x205a3c=[],_0x15ebd9=new Map();for(const _0x23b989 of _0xbc2284['model']['document']['getRootNames']()){const _0x105e2f=_0xbc2284['editing']['view']['getDomRoot'](_0x23b989)['getClientRects']()['item'](0x0);_0x205a3c['push'](_0x23b989),_0x15ebd9['set'](_0x23b989,_0x105e2f);}return _0x205a3c['sort']((_0x5c29c5,_0x28d7b6)=>{const _0x30dcfd=_0x15ebd9['get'](_0x5c29c5),_0x46665b=_0x15ebd9['get'](_0x28d7b6);return _0x30dcfd['y']-_0x46665b['y']||_0x30dcfd['x']-_0x46665b['x'];}),_0x205a3c;}}class te extends _0x6abf95{static get['requires'](){return[T,_0x85a51a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5720d7){super(_0x5720d7),_0x5720d7['commands']['add']('previewFinalContent',new re(this['editor'])),_0x5720d7['config']['define']('trackChanges.preview.renderFunction',(_0x56b145,_0x3f60fb)=>{for(const _0x2a6d32 of _0x3f60fb)_0x56b145['appendChild'](_0x2a6d32);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x2731a5,Plugin as _0x3ff648,PendingActions as _0x3e9f68}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x328969,ObservableMixin as _0x1a7ad4,uid as _0x65b9b5,priorities as _0x1fc7e0,insertToPriorityArray as _0x4d5741,toArray as _0x1eedfa,logWarning as _0x406a97,getEnvKeystrokeText as _0x599e40,FocusTracker as _0x2d2a08,KeystrokeHandler as _0x2868fa,Collection as _0x443155}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x527c88,IconCancel as _0xf1864a,IconTrackChanges as _0x3d38d9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x241c56,View as _0x192474,ViewCollection as _0x192394,FocusCycler as _0x362be6,ViewModel as _0x1a2bb5,createDropdown as _0x7654e1,SplitButtonView as _0x160840,addListToDropdown as _0x3042ec,MenuBarMenuView as _0x4dafe0,MenuBarMenuListView as _0x3cdbbe,ListSeparatorView as _0x26cbfd,MenuBarMenuListItemView as _0x404883,MenuBarMenuListItemButtonView as _0x23f794,BodyCollection as _0x3ea2d3,Dialog as _0x3d53d1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3da637,hashObject as _0x4ad782,surroundingMarkersDetector as _0x155b57,FOCUS_ANNOTATION_KEYSTROKE as _0xb4b862,AriaDescriptionView as _0x2bb02c,setupThreadKeyboardNavigation as _0x540acf,trimHtml as ti,UserView as _0x2515a5,LateFocusButtonView as _0x586f95,getDateTimeFormatter as _0x5ded0e,getAllMarkersDomElementsSorted as _0x1e08c5,sanitizeEditorConfig as _0x515678}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1e913c,LiveRange as _0xc48f37,LivePosition as _0x123968,DowncastWriter as _0x2b6151}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x469766,toWidget as _0x4e4d73}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xadd145,set as _0x7a0bc9,isEqual as _0x36734a,unset as _0x21e2bf,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5ef8aa,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x455c9b}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2c909b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x2731a5{['_enabledCommands'];constructor(_0x6872dd,_0x549fe5){super(_0x6872dd),this['_enabledCommands']=_0x549fe5,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 _0x1cbec7 of this['editor']['commands']['commands']())_0x1cbec7['affectsData']&&!this['_enabledCommands']['has'](_0x1cbec7)&&_0x1cbec7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x11b0f0 of this['editor']['commands']['commands']())_0x11b0f0['affectsData']&&!this['_enabledCommands']['has'](_0x11b0f0)&&_0x11b0f0['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x2731a5{['_suggestions'];constructor(_0x4aca65,_0x1b2735){super(_0x4aca65),this['_suggestions']=_0x1b2735,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x439b36){const _0x3f79bc=this['_suggestions']['get'](_0x439b36);if(!_0x3f79bc)throw new _0x328969('track-changes-accept-suggestion-not-found',this);const _0x512d48=_0x3f79bc['getRanges']();this['editor']['model']['canEditAt'](_0x512d48)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f79bc);}}class O extends _0x2731a5{['_suggestions'];constructor(_0x56bc88,_0x565d72){super(_0x56bc88),this['_suggestions']=_0x565d72,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x372f65){const _0x3f9c7e=this['_suggestions']['get'](_0x372f65);if(!_0x3f9c7e)throw new _0x328969('track-changes-discard-suggestion-not-found',this);const _0xfd855a=_0x3f9c7e['getRanges']();this['editor']['model']['canEditAt'](_0xfd855a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3f9c7e);}}function ls(_0x1c9077,_0x42b500){let _0x4ec534='';return _0x4ec534+=_0x1c9077['split']('*')['map']((_0x43cccc,_0x44a2e8)=>_0x44a2e8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x43cccc)+'</span>':nn(_0x43cccc))['join'](''),_0x42b500&&(_0x4ec534+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x42b500['value']+'\x22\x20title=\x22'+_0x42b500['title']+'\x22></span>'),_0x4ec534;}function nn(_0x550a2a){const _0x22c430=document['createElement']('span');return _0x22c430['innerText']=_0x550a2a,_0x22c430['innerHTML'];}function ts(_0x10456f){return _0x10456f['sort']((_0x2a87c2,_0x4dc72c)=>'deletion'==_0x2a87c2['type']&&'deletion'!=_0x4dc72c['type']?-0x1:'deletion'!=_0x2a87c2['type']&&'deletion'==_0x4dc72c['type']?0x1:0x0);}function to(_0x20a9ed,_0x26411b){let _0x126679,_0x44690f=0x0;const _0x4e44e6=[],_0x58ee57=_0x26411b['schema'];for(;_0x44690f<_0x20a9ed['length'];){const _0x9797cb=_0x20a9ed[_0x44690f],_0xa8efd4=_0x20a9ed[_0x44690f+0x1];_0x126679||(_0x126679=_0x26411b['createPositionBefore'](_0x9797cb)),on(_0x26411b,_0x9797cb,_0xa8efd4)||(_0x4e44e6['push'](_0x26411b['createRange'](_0x126679,_0x58ee57['isObject'](_0x9797cb)?_0x26411b['createPositionAfter'](_0x9797cb):_0x26411b['createPositionAt'](_0x9797cb,'end'))),_0x126679=null),_0x44690f++;}return _0x4e44e6;}function on(_0xdf3dde,_0x1d1596,_0xf3a297){if(!_0xf3a297)return!0x1;const _0x267334=_0xdf3dde['createPositionAfter'](_0x1d1596),_0x1751d8=_0xdf3dde['createPositionBefore'](_0xf3a297);return _0x267334['isTouching'](_0x1751d8);}function rs(_0x1f1466,_0x2035bd,_0x591795){for(;_0x591795['length'];){const _0x4e61d4=_0x591795['splice'](0x0,0x64);_0x1f1466['change'](()=>{for(const _0x2d578e of _0x4e61d4)_0x2d578e['isInContent']&&_0x2035bd['execute'](_0x2d578e['id']);});}}class R extends _0x2731a5{['_command'];['_suggestions'];constructor(_0x1f13af,_0x10aa74,_0x57af48){super(_0x1f13af),this['_command']=_0x10aa74,this['_suggestions']=_0x57af48,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3dcdfc=Array['from'](this['_suggestions']['values']())['some'](_0x1b48ec=>_0x1b48ec['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3dcdfc;}['execute'](){const _0x11a7ff=ts(Array['from'](this['_suggestions']['values']()));for(const _0x131b2e of _0x11a7ff){const _0x2e2ec3=_0x131b2e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e2ec3))return;}rs(this['editor']['model'],this['_command'],_0x11a7ff);}}class E extends _0x2731a5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4f3d0a,_0x2728a8,_0x40f326){super(_0x4f3d0a),this['_command']=_0x2728a8,this['_suggestions']=_0x40f326,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a5f82=this['editor']['model']['document']['selection'],_0x56faba=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x399ae3,_0x10024c){const _0x1dda02=Array['from'](_0x399ae3['getRanges']()),_0x6a4b47=new Set();for(const _0xedfcf3 of _0x10024c)if(_0xedfcf3['isInContent']){for(const _0x5aca73 of _0x1dda02)for(const _0x3b88c3 of _0xedfcf3['getRanges']())(_0x5aca73['isIntersecting'](_0x3b88c3)||_0x399ae3['isCollapsed']&&!_0xedfcf3['isMultiRange']&&_0xedfcf3['next']&&_0x3b88c3['end']['isTouching'](_0x5aca73['start']))&&_0x6a4b47['add'](_0xedfcf3);}return _0x6a4b47;}(_0x3a5f82,_0x56faba),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xf3dd90=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4ee184 of _0xf3dd90){const _0x1aeb92=_0x4ee184['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1aeb92))return;}rs(this['editor']['model'],this['_command'],_0xf3dd90);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x1a7ad4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x538c0a,_0x3cb6d8){super(),this['id']=_0x3cb6d8['id'],this['type']=_0x3cb6d8['type'],this['subType']=_0x3cb6d8['subType']||null,this['author']=_0x3cb6d8['author'],this['creator']=_0x3cb6d8['creator']||_0x3cb6d8['author'],this['isExternal']=Boolean(_0x3cb6d8['attributes']&&_0x3cb6d8['attributes']['@external']),this['data']=null,this['_model']=_0x538c0a,this['_onAccept']=_0x3cb6d8['onAccept'],this['_onDiscard']=_0x3cb6d8['onDiscard'],this['_onAttributesChange']=_0x3cb6d8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3cb6d8['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 _0x2d49cf=this;for(;_0x2d49cf['previous'];)_0x2d49cf=_0x2d49cf['previous'];return _0x2d49cf;}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'](_0x4ff4ca){this['_markerNames']['add'](_0x4ff4ca);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x117920=>this['_model']['markers']['get'](_0x117920))['filter'](_0x3b426b=>_0x3b426b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1b41f1=>{for(const _0x3736d3 of this['getMarkers']())_0x1b41f1['removeMarker'](_0x3736d3);}),this['_markerNames']['clear']();}['removeMarker'](_0x35308c){this['_model']['change'](_0x3a14b6=>{_0x3a14b6['removeMarker'](_0x35308c);}),this['_markerNames']['delete'](_0x35308c);}['addRange'](_0x349144){const _0x2cf36d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2cf36d),this['_model']['change'](_0x4ca2b9=>{_0x4ca2b9['addMarker'](_0x2cf36d,{'range':_0x349144,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a729e){for(const _0x4d3d32 of this['getRanges']())if(_0x4d3d32['isIntersecting'](_0x3a729e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x57da97=>_0x57da97['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fa062,_0x12386c)=>[..._0x2fa062,..._0x12386c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xeed8dc=this['getRanges']();if(0x1!=_0xeed8dc['length'])return null;const _0x3084ae=_0xeed8dc[0x0],_0xd910bd=_0x3084ae['start']['nodeAfter'],_0x3be69c=_0x3084ae['end']['nodeBefore'];return _0xd910bd instanceof _0x1e913c?_0xd910bd!=_0x3be69c?null:_0xd910bd: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 _0x438147=[];let _0x29a065=this['head'];for(;_0x29a065;)_0x438147['push'](_0x29a065),_0x29a065=_0x29a065['next'];return _0x438147;}['setAttribute'](_0x3c9b36,_0x1ba4a9){const _0x8f1bc=_0xadd145(this['attributes']);_0x7a0bc9(_0x8f1bc,_0x3c9b36,_0x1ba4a9),_0x36734a(_0x8f1bc,this['attributes'])||(this['attributes']=_0x8f1bc,this['_onAttributesChange'](_0x8f1bc));}['removeAttribute'](_0x15032f){const _0x294cbb=_0xadd145(this['attributes']);_0x21e2bf(_0x294cbb,_0x15032f),_0x36734a(_0x294cbb,this['attributes'])||(this['attributes']=_0x294cbb,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 _0x65b9b5()['substr'](0x1,0x5);}}function c(_0x1f990a,_0x10e442,_0x3dd996){const _0x49b60d=_0x1f990a['t'],t=_0x1f990a['t'];switch(_0x10e442){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',_0x3dd996);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3dd996);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3dd996);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3dd996);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3dd996);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',_0x3dd996);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3dd996);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',_0x3dd996);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3dd996);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3dd996);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3dd996);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3dd996);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3dd996);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3dd996);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3dd996);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3dd996);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3dd996);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3dd996);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3dd996);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3dd996);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3dd996);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3dd996);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3dd996);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3dd996);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3dd996);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'},_0x3dd996);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3dd996);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3dd996);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3dd996);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3dd996);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3dd996);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3dd996);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3dd996);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3dd996);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3dd996);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3dd996);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'},_0x3dd996);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3dd996);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3dd996);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3dd996);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 _0x49b60d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3dd996);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x49b60d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3dd996);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3dd996);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'},_0x3dd996);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'},_0x3dd996);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'},_0x3dd996);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x10e442;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38d2ae,_0x4e73c1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38d2ae,this['_locale']=_0x4e73c1;}['getDescriptions'](_0x21d1f9){const _0x502d67=[],_0x2080e6=new Set(),_0x19f187=new Set();for(let _0x307cd7=0x0;_0x307cd7<_0x21d1f9['length'];_0x307cd7++){const _0x1d87c2=_0x21d1f9[_0x307cd7];if(!_0x1d87c2['isInContent'])continue;const _0x519ad8=this['_handleCustomCallbackDescription'](_0x1d87c2);if(_0x519ad8){if(null!=_0x1d87c2['subType']){if(_0x2080e6['has'](_0x1d87c2['subType']))continue;_0x2080e6['add'](_0x1d87c2['subType']);}_0x502d67['push'](_0x519ad8);}else{if('attribute'!=_0x1d87c2['type'])'insertion'!=_0x1d87c2['type']&&'deletion'!=_0x1d87c2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x502d67,_0x1d87c2,_0x21d1f9[_0x307cd7+0x1]);else{const _0xd4498e=_0x1d87c2['data']['key'];if(_0x19f187['has'](_0xd4498e))continue;_0x19f187['add'](_0x1d87c2['data']['key']),_0xd4498e==u?this['_handleRenameSuggestionDescription'](_0x502d67,_0x1d87c2):this['_handleAttributeSuggestionDescription'](_0x502d67,_0x1d87c2);}}}return this['_resolveDescriptionItems'](_0x502d67);}['registerDescriptionCallback'](_0x3d78b0){this['_customCallbacks']['push'](_0x3d78b0);}['registerElementLabel'](_0x1d45e9,_0x500c62,_0x2e9e49=_0x1fc7e0['normal']){'function'==typeof _0x1d45e9?_0x4d5741(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1d45e9,'label':_0x500c62,'priority':_0x2e9e49}):this['_itemLabels']['set'](_0x1d45e9,_0x500c62);}['registerAttributeLabel'](_0x5d60cf,_0x11ee79){this['_attributeLabels']['set'](_0x5d60cf,_0x11ee79);}['getItemLabel'](_0x5befd0,_0x364e37=0x1){let _0x3ee685;for(const _0x5239ab of this['_itemLabelsCallbacks'])if(_0x5239ab['matchingCallback'](_0x5befd0)){_0x3ee685=_0x5239ab['label'];break;}return _0x3ee685||(_0x3ee685=this['_itemLabels']['get'](_0x5befd0['name'])),_0x3ee685?_0x3ee685(_0x364e37):0x1!==_0x364e37?_0x364e37+'\x20'+_0x5befd0['name']+'s':''+_0x5befd0['name'];}['_addDescriptionItems'](_0xb3162,_0x18a70){const _0x3319be=_0x18a70['getFirstRange']()['getWalker'](),_0x34b965='insertion'==_0x18a70['type']?'add':'remove';for(const _0x2fa43a of _0x3319be){const _0x52a8e1=_0x2fa43a['item'],_0x5d5253=_0xb3162[_0xb3162['length']-0x1];if(_0x52a8e1['is']('$textProxy'))_0x5d5253&&_0x5d5253['type']['indexOf']('Container')>-0x1&&_0xb3162['pop'](),_0x5d5253&&'text'==_0x5d5253['type']?_0x5d5253[_0x34b965]+=_0x52a8e1['data']:_0xb3162['push']({'type':'text','add':'add'==_0x34b965?_0x52a8e1['data']:'','remove':'remove'==_0x34b965?_0x52a8e1['data']:''});else{if(this['_schema']['isObject'](_0x52a8e1)){const _0x502b11=_0x52a8e1;if(_0x5d5253&&_0x5d5253['type']['indexOf']('Container')>-0x1&&_0xb3162['pop'](),'elementEnd'==_0x2fa43a['type'])continue;_0x5d5253&&_0x5d5253['type']==_0x34b965+'Object'&&_0x5d5253['element']['name']==_0x502b11['name']?_0x5d5253['quantity']++:_0xb3162['push']({'type':_0x34b965+'Object','element':_0x502b11,'quantity':0x1}),_0x3319be['skip'](_0x3b0376=>!('elementEnd'==_0x3b0376['type']&&_0x3b0376['item']==_0x52a8e1));}else{if(this['_schema']['checkChild'](_0x52a8e1,'$text')||_0x52a8e1['is']('element','softBreak')){const _0x1be362=_0x52a8e1;if('add'==_0x34b965&&'elementStart'==_0x2fa43a['type']||'remove'==_0x34b965&&'elementEnd'==_0x2fa43a['type'])continue;if(_0x5d5253&&-0x1==_0x5d5253['type']['indexOf']('Container')){'text'==_0x5d5253['type']&&(_0x5d5253[_0x34b965]+='\x0a');continue;}let _0x406009;if(_0x406009='add'==_0x34b965?_0x1be362['nextSibling']&&!this['_schema']['isObject'](_0x1be362['nextSibling'])?_0x1be362['nextSibling']:null:_0x1be362['previousSibling']&&!this['_schema']['isObject'](_0x1be362['previousSibling'])?_0x1be362['previousSibling']:null,_0x1be362['isEmpty']||_0x406009&&_0x406009['isEmpty']){const _0x494472=_0x406009&&_0x406009['isEmpty']?_0x406009:_0x1be362;_0x5d5253&&_0x5d5253['type']==_0x34b965+'EmptyContainer'&&_0x5d5253['element']['name']==_0x494472['name']?_0x5d5253['quantity']++:_0xb3162['push']({'type':_0x34b965+'EmptyContainer','element':_0x494472,'quantity':0x1});}else _0xb3162['push']({'type':_0x34b965+'Container','element':_0x1be362});}}}}}['_resolveDescriptionItems'](_0x2537a9){const _0x11f26c=this['_locale'],_0x2cd2ee=[],_0x9f1e52=[],_0x42db7f=[];for(const _0x5b067f of _0x2537a9)switch(_0x5b067f['type']){case'text':if(_0x5b067f['add']=_0x5b067f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b067f['remove']=_0x5b067f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b067f['add']&&''!=_0x5b067f['remove']){_0x2cd2ee['push']({'type':'replace','content':c(_0x11f26c,'REPLACE_TEXT',['\x22'+_0x5b067f['remove']+'\x22','\x22'+_0x5b067f['add']+'\x22'])});continue;}if(null!=_0x5b067f['add']['match'](/^ +$/)){_0x2cd2ee['push']({'type':'insertion','content':c(_0x11f26c,'*Insert:*\x20%0',c(_0x11f26c,'ELEMENT_SPACE',_0x5b067f['add']['length']))});continue;}if(null!=_0x5b067f['remove']['match'](/^ +$/)){_0x2cd2ee['push']({'type':'deletion','content':c(_0x11f26c,'*Remove:*\x20%0',c(_0x11f26c,'ELEMENT_SPACE',_0x5b067f['remove']['length']))});continue;}if(''!=_0x5b067f['add']){_0x2cd2ee['push']({'type':'insertion','content':c(_0x11f26c,'*Insert:*\x20%0','\x22'+_0x5b067f['add']+'\x22')});continue;}_0x2cd2ee['push']({'type':'deletion','content':c(_0x11f26c,'*Remove:*\x20%0','\x22'+_0x5b067f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2cd2ee['push']({'type':'insertion','content':c(_0x11f26c,'*Insert:*\x20%0',this['getItemLabel'](_0x5b067f['element'],_0x5b067f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2cd2ee['push']({'type':'deletion','content':c(_0x11f26c,'*Remove:*\x20%0',this['getItemLabel'](_0x5b067f['element'],_0x5b067f['quantity']))});continue;case'addContainer':_0x2cd2ee['push']({'type':'insertion','content':c(_0x11f26c,'*Split:*\x20%0',this['getItemLabel'](_0x5b067f['element'],_0x5b067f['quantity']))});continue;case'removeContainer':_0x2cd2ee['push']({'type':'deletion','content':c(_0x11f26c,'*Merge:*\x20%0',this['getItemLabel'](_0x5b067f['element'],_0x5b067f['quantity']))});continue;case'addFormat':_0x9f1e52['push'](_0x5b067f['key']);continue;case'removeFormat':_0x42db7f['push'](_0x5b067f['key']);continue;default:_0x2cd2ee['push'](_0x5b067f);}if(_0x9f1e52['length']){const _0x394730=_0x9f1e52['map'](_0x9eff42=>this['_attributeLabels']['has'](_0x9eff42)?this['_attributeLabels']['get'](_0x9eff42):_0x9eff42)['join'](',\x20');_0x2cd2ee['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x394730)});}if(_0x42db7f['length']){const _0x1883f7=_0x42db7f['map'](_0x32592f=>this['_attributeLabels']['has'](_0x32592f)?this['_attributeLabels']['get'](_0x32592f):_0x32592f)['join'](',\x20');_0x2cd2ee['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1883f7)});}return _0x2cd2ee;}['_handleCustomCallbackDescription'](_0x51c4e6){for(const _0x5cd9f7 of this['_customCallbacks']){const _0x172420=_0x5cd9f7(_0x51c4e6);if(_0x172420&&'type'in _0x172420)return _0x172420;}}['_handleAttributeSuggestionDescription'](_0x22e74e,_0x1c62eb){const _0x40c85f=_0x1c62eb['data'],_0x3207a1=void 0x0===_0x40c85f['newValue']?'removeFormat':'addFormat';_0x22e74e['push']({'type':_0x3207a1,'key':_0x40c85f['key']});}['_handleRenameSuggestionDescription'](_0x532d38,_0x2a7947){_0x532d38['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2a7947['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4788ba,_0x22c470,_0x510346){if(this['_addDescriptionItems'](_0x4788ba,_0x22c470),_0x510346&&_0x510346['getFirstRange']()&&!_0x22c470['getFirstRange']()['end']['isEqual'](_0x510346['getFirstRange']()['start'])){const _0x1c52b0=_0x4788ba[_0x4788ba['length']-0x1],_0x14f28b='insertion'==_0x22c470['type']?'add':'remove';_0x1c52b0&&'text'==_0x1c52b0['type']&&(_0x1c52b0[_0x14f28b]+='\x0a');}}}class U extends _0x3ff648{['afterInit'](){const _0x12d234=this['editor'],_0x4d051b=_0x12d234['plugins']['get']('TrackChangesEditing');_0x12d234['commands']['get']('showAIAssistant')&&_0x4d051b['enableCommand']('showAIAssistant');}}class V extends _0x3ff648{['afterInit'](){const _0x23534d=this['editor'],_0x4f43cb=_0x23534d['locale'];if(!_0x23534d['plugins']['has']('AlignmentEditing'))return;const _0x314d15=_0x23534d['plugins']['get']('TrackChangesEditing');_0x314d15['enableDefaultAttributesIntegration']('alignment'),_0x314d15['registerBlockAttribute']('alignment'),_0x314d15['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4f43cb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dacea=this['editor'],_0x5705ef=_0x1dacea['locale'];_0x1dacea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55efc3=>{if('formatBlock'!=_0x55efc3['type'])return;const {data:_0xe6fdac}=_0x55efc3;if(_0xe6fdac&&'alignment'==_0xe6fdac['commandName']){const _0x24dc73=_0xe6fdac['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5705ef,'*Format:*\x20%0',function(_0x280d66){switch(_0x280d66){case'left':return c(_0x5705ef,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5705ef,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5705ef,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5705ef,'FORMAT_JUSTIFY_TEXT');}}(_0x24dc73))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3ff648{['afterInit'](){const _0x9fe393=this['editor'],_0x629e84=_0x9fe393['plugins']['get']('TrackChangesEditing'),_0xf4b1a3=_0x9fe393['locale'];for(const _0x4e54d5 of Zt){if(!_0x9fe393['plugins']['has'](_0x4e54d5))continue;const _0x2ad4b1=_0x4e54d5['slice'](0x0,-0x7)['toLowerCase'](),_0x4184e1='FORMAT_'+_0x2ad4b1['toUpperCase']();_0x629e84['enableDefaultAttributesIntegration'](_0x2ad4b1),_0x629e84['registerInlineAttribute'](_0x2ad4b1),_0x629e84['descriptionFactory']['registerAttributeLabel'](_0x2ad4b1,c(_0xf4b1a3,_0x4184e1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22d8e2=this['editor'],_0x3d7d63=_0x22d8e2['locale'],_0x434abd=_0x22d8e2['plugins']['get']('TrackChangesEditing');function _0x3e033a(_0x15b2b7,_0x24785a){_0x434abd['descriptionFactory']['registerDescriptionCallback'](_0x3e7fb4=>{if('formatInline'!=_0x3e7fb4['type'])return;const {data:_0x4a928f}=_0x3e7fb4;return _0x4a928f&&_0x4a928f['commandName']===_0x15b2b7?_0x4a928f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3d7d63,'*Format:*\x20%0',_0x24785a)}:{'type':'format','content':c(_0x3d7d63,'*Remove\x20format:*\x20%0',_0x24785a)}:void 0x0;});}_0x3e033a('bold',c(_0x3d7d63,'FORMAT_BOLD')),_0x3e033a('italic',c(_0x3d7d63,'FORMAT_ITALIC')),_0x3e033a('underline',c(_0x3d7d63,'FORMAT_UNDERLINE')),_0x3e033a('code',c(_0x3d7d63,'FORMAT_CODE')),_0x3e033a('strikethrough',c(_0x3d7d63,'FORMAT_STRIKETHROUGH')),_0x3e033a('subscript',c(_0x3d7d63,'FORMAT_SUBSCRIPT')),_0x3e033a('superscript',c(_0x3d7d63,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3ff648{['afterInit'](){const _0x3adf33=this['editor'],_0x14fa59=_0x3adf33['locale'];if(!_0x3adf33['plugins']['has']('BlockQuoteEditing'))return;const _0x55e94e=_0x3adf33['plugins']['get']('TrackChangesEditing'),_0x62295=this['editor']['commands']['get']('blockQuote');_0x55e94e['enableCommand']('blockQuote',(_0x17a10d,_0x381f42={})=>{const _0x5de693=this['editor']['model']['document']['selection'],_0xcb45d2=_0x381f42&&void 0x0!==_0x381f42['forceValue']?_0x381f42['forceValue']:!_0x62295['value'];let _0x28ff3c=[];if(_0xcb45d2){const _0x355687=Array['from'](_0x5de693['getSelectedBlocks']())['filter'](_0x5a74ee=>oo(_0x5a74ee)||function(_0x148ca1,_0x3cd269){const _0x3661f2=_0x3cd269['checkChild'](_0x148ca1['parent'],'blockQuote'),_0x3bf1c9=_0x3cd269['checkChild'](['$root','blockQuote'],_0x148ca1);return _0x3661f2&&_0x3bf1c9;}(_0x5a74ee,this['editor']['model']['schema']));_0x28ff3c=to(_0x355687,_0x3adf33['model']);}else{const _0x32c980=Array['from'](_0x5de693['getSelectedBlocks']())['filter'](_0x220aaa=>oo(_0x220aaa));_0x28ff3c=to(_0x32c980,_0x3adf33['model']);}_0x3adf33['model']['change'](()=>{for(const _0x5bf649 of _0x28ff3c)_0x55e94e['markBlockFormat'](_0x5bf649,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xcb45d2}]});});}),_0x55e94e['descriptionFactory']['registerDescriptionCallback'](_0x50b4e2=>{const {data:_0x5d6bb4}=_0x50b4e2;if(_0x5d6bb4&&'blockQuote'==_0x5d6bb4['commandName']){const _0x388301=c(_0x14fa59,'ELEMENT_BLOCK_QUOTE');return _0x5d6bb4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14fa59,'*Set\x20format:*\x20%0',_0x388301)}:{'type':'format','content':c(_0x14fa59,'*Remove\x20format:*\x20%0',_0x388301)};}});}}function oo(_0x15b64b){return'blockQuote'==_0x15b64b['parent']['name'];}class L extends _0x3ff648{['afterInit'](){const _0x5c1642=this['editor'],_0x3b5771=_0x5c1642['locale'],_0x16952a=_0x5c1642['plugins']['get']('TrackChangesEditing');_0x5c1642['plugins']['has']('BookmarkEditing')&&(_0x16952a['enableCommand']('insertBookmark'),_0x16952a['enableDefaultAttributesIntegration']('updateBookmark'),_0x16952a['registerBlockAttribute']('bookmarkId'),_0x16952a['descriptionFactory']['registerDescriptionCallback'](_0x5f57de=>{if('insertion'!=_0x5f57de['type']&&'deletion'!=_0x5f57de['type']&&'attribute'!=_0x5f57de['type'])return;const _0x318590=_0x5f57de['getContainedElement']();if(null==_0x318590)return;if(!_0x318590['is']('element','bookmark'))return;const _0x318a98=_0x318590['getAttribute']('bookmarkId');if('insertion'==_0x5f57de['type'])return{'type':'insertion','content':c(_0x3b5771,'*Insert:*\x20%0','\x22'+_0x318a98+'\x22\x20'+c(_0x3b5771,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5f57de['type'])return{'type':'deletion','content':c(_0x3b5771,'*Remove:*\x20%0','\x22'+_0x318a98+'\x22\x20'+c(_0x3b5771,'ELEMENT_BOOKMARK'))};const {data:_0x5f4757}=_0x5f57de;if(!_0x5f4757||'bookmarkId'!=_0x5f4757['key'])return;return{'type':'format','content':c(_0x3b5771,'*Set\x20bookmark:*\x20%0','\x22'+_0x5f4757['newValue']+'\x22')};}));}}class J extends _0x3ff648{['afterInit'](){const _0x450042=this['editor'];_0x450042['plugins']['has']('CaseChange')&&(_0x450042['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x450042['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x450042['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3ff648{['afterInit'](){const _0x30004d=this['editor'];_0x30004d['commands']['get']('ckbox')&&_0x30004d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3ff648{['afterInit'](){const _0x3f6c80=this['editor'];if(!_0x3f6c80['plugins']['has']('CodeBlock'))return;const _0x108e41=_0x3f6c80['plugins']['get']('TrackChangesEditing'),_0x57d0c7=_0x3f6c80['locale'],_0x31ccea=_0x3f6c80['config']['get']('codeBlock')['languages'],_0x16d45e=_0x3f6c80['commands']['get']('codeBlock');_0x108e41['enableCommand']('indentCodeBlock'),_0x108e41['enableCommand']('outdentCodeBlock'),_0x108e41['enableCommand']('codeBlock',(_0x463074,_0x147e72={})=>{const _0x21645c=_0x3f6c80['model'],_0x136cf3=_0x3f6c80['model']['document']['selection'],_0x50ee07=_0x147e72&&void 0x0!==_0x147e72['forceValue']?_0x147e72['forceValue']:!_0x16d45e['value'];let _0x59a173;_0x147e72['language']||(_0x147e72['language']=_0x31ccea[0x0]['language']),_0x59a173=_0x50ee07?Array['from'](_0x136cf3['getSelectedBlocks']())['filter'](_0x4e405d=>eo(_0x4e405d)||function(_0x921d8,_0x57cc86){if(_0x921d8['is']('rootElement')||_0x57cc86['isLimit'](_0x921d8))return!0x1;return _0x57cc86['checkChild'](_0x921d8['parent'],'codeBlock');}(_0x4e405d,_0x21645c['schema'])):Array['from'](_0x136cf3['getSelectedBlocks']())['filter'](_0x26798b=>eo(_0x26798b));const _0x4efee9=to(_0x59a173,_0x21645c);_0x21645c['change'](()=>{for(const _0x3aaca8 of _0x4efee9)_0x108e41['markBlockFormat'](_0x3aaca8,{'commandName':'codeBlock','commandParams':[{..._0x147e72,'forceValue':_0x50ee07}],'formatGroupId':'blockName'});});}),(_0x108e41['descriptionFactory']['registerElementLabel']('codeBlock',_0x4889c2=>c(_0x57d0c7,'ELEMENT_CODE_BLOCK',_0x4889c2)),_0x108e41['descriptionFactory']['registerDescriptionCallback'](_0x41fdef=>{if('formatBlock'!=_0x41fdef['type'])return;const _0x5a926a=_0x57d0c7['t'],{data:_0x2c7ba5}=_0x41fdef;if(!_0x2c7ba5||'codeBlock'!=_0x2c7ba5['commandName'])return;const _0x9894f6=_0x2c7ba5['commandParams'][0x0]['language'],_0x40f853=_0x5a926a(_0x31ccea['find'](_0x1901d8=>_0x1901d8['language']===_0x9894f6)['label'])['toLowerCase']();return _0x2c7ba5['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x57d0c7,'*Set\x20format:*\x20%0',c(_0x57d0c7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40f853+')')}:{'type':'format','content':c(_0x57d0c7,'*Remove\x20format:*\x20%0',c(_0x57d0c7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3502f1){return'codeBlock'==_0x3502f1['name'];}class q extends _0x3ff648{['afterInit'](){const _0x54c6fb=this['editor'];if(!_0x54c6fb['plugins']['has']('CommentsEditing'))return;_0x54c6fb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xfcfd8a,_0x3000e4,_0x289ab7){const _0x109e76=[];for(const _0x570abe of _0x3000e4['getItems']())_0x570abe['hasAttribute'](_0xfcfd8a)&&_0x109e76['push'](_0x289ab7['createRangeOn'](_0x570abe));return _0x109e76;}function Fe(_0x417799,_0x38b87a,{showActiveMarker:_0x46334c=!0x0}={}){const _0x281bdd=_0x417799['plugins']['get']('TrackChangesEditing');return(_0x415191,_0x13445e,_0x42591b)=>{if(!_0x42591b['consumable']['test'](_0x13445e['markerRange'],_0x415191['name']))return;const _0x47ff54=_0x13445e['markerRange']['getWalker'](),_0x3bc2a4=_0x13445e['markerRange']['start'],_0x46ebb6=_0x417799['model']['schema'];let _0xe14fd1=null,_0x5da1f6=null,_0x4f4b11=!0x1,_0x45c49e=!0x1;for(const _0x10858d of _0x47ff54){const _0x2385c1=_0x10858d['item'];_0x4f4b11=_0x4f4b11||_0x46ebb6['isContent'](_0x2385c1);const _0x1616d7=_0x42591b['mapper']['toViewElement'](_0x2385c1);if(_0x1616d7&&_0x1616d7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10858d['type']&&(_0x46ebb6['isBlock'](_0x2385c1)&&!_0x46ebb6['isLimit'](_0x2385c1)&&(_0x2385c1['nextSibling']||_0x3bc2a4['isAtEnd']?_0xe14fd1&&_0xe14fd1['parent']==_0x2385c1||(_0xe14fd1=_0x2385c1,_0x4c40af(_0x10858d['previousPosition']),_0x45c49e=!0x0):_0x5da1f6=_0x5da1f6||_0x10858d['previousPosition']));}function _0x4c40af(_0x314d24){const {id:_0x16be52,authorId:_0x5eb2a0}=_0x281bdd['_splitMarkerName'](_0x13445e['markerName']),_0x85157e=_0x42591b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38b87a,'data-suggestion':_0x16be52,'data-author-id':_0x5eb2a0}),_0x4b4542=_0x42591b['mapper']['toViewPosition'](_0x314d24);_0x46334c&&_0x281bdd['activeMarkers']['includes'](_0x13445e['markerName'])&&_0x42591b['writer']['addClass']('ck-suggestion-marker--active',_0x85157e),_0x42591b['writer']['insert'](_0x4b4542,_0x85157e),_0x42591b['mapper']['bindElementToMarker'](_0x85157e,_0x13445e['markerName']);}_0x4f4b11||_0x45c49e||!_0x5da1f6||_0x4c40af(_0x5da1f6);};}class z extends _0x3ff648{static get['requires'](){return[_0x5ef8aa];}['init'](){const _0x227cef=this['editor'],_0x38c913=_0x227cef['plugins']['get']('TrackChangesEditing');_0x38c913['enableCommand']('delete');const _0x21cc2f=_0x227cef['commands']['get']('deleteForward');_0x38c913['enableCommand']('deleteForward',(_0x2a2eb5,_0x319eda={})=>{const _0x1049bf=_0x227cef['model']['createSelection'](_0x227cef['model']['document']['selection']);_0x1049bf['isCollapsed']&&_0x227cef['model']['modifySelection'](_0x1049bf,{'direction':'forward','unit':_0x319eda['unit']});const _0x31f0d3=_0x1049bf['getFirstRange'](),_0x4088c5=_0xc48f37['fromRange'](_0x31f0d3);let _0xd5a614;_0x2a2eb5(_0x319eda),_0xd5a614='$graveyard'==_0x4088c5['root']['rootName']?_0x227cef['model']['createRange'](_0x31f0d3['start']):_0x227cef['model']['createRange'](_0x4088c5['start'],_0x4088c5['end']),_0x4088c5['detach'](),_0x227cef['model']['enqueueChange'](_0x21cc2f['buffer']['batch'],_0x5aa17f=>{_0x21cc2f['buffer']['lock'](),_0x5aa17f['setSelection'](_0x5aa17f['createRange'](_0xd5a614['end'])),_0x21cc2f['buffer']['unlock']();});}),_0x227cef['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x227cef,'merge'),{'priority':'high'}),_0x227cef['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xa18463,_0x2332d7,_0x20f1eb)=>{_0x20f1eb['options']['showSuggestionHighlights']&&Fe(_0x227cef,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xa18463,_0x2332d7,_0x20f1eb);},{'priority':'high'}),_0x227cef['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1de0ae,_0x31a5b8,_0x27ad65)=>{const _0x53c57d=_0x27ad65['mapper']['markerNameToElements'](_0x31a5b8['markerName']);if(_0x53c57d){for(const _0x15c2eb of _0x53c57d)_0x15c2eb['is']('uiElement')&&(_0x27ad65['mapper']['unbindElementFromMarkerName'](_0x15c2eb,_0x31a5b8['markerName']),_0x27ad65['writer']['remove'](_0x15c2eb));}},{'priority':'high'});}}class W extends _0x3ff648{['afterInit'](){const _0x424f0a=this['editor'];if(!_0x424f0a['plugins']['has']('ListEditing'))return;const _0x2e68fe=_0x424f0a['locale'],_0x4c0bf7=_0x424f0a['plugins']['get']('TrackChangesEditing'),_0x36467b=_0x424f0a['plugins']['has']('TodoListEditing'),_0x1054a7=!!_0x424f0a['config']['get']('list.multiBlock');function _0xcdbf3(_0x1cdc31){return{'type':'format','content':''+c(_0x2e68fe,'*Set\x20format:*\x20%0',_0x1cdc31)};}function _0x194d5e(_0x2066ef){return{'type':'format','content':''+c(_0x2e68fe,'*Remove\x20format:*\x20%0',_0x2066ef)};}_0x4c0bf7['enableDefaultAttributesIntegration']('numberedList'),_0x4c0bf7['enableDefaultAttributesIntegration']('bulletedList'),_0x4c0bf7['enableDefaultAttributesIntegration']('customNumberedList'),_0x4c0bf7['enableDefaultAttributesIntegration']('customBulletedList'),_0x4c0bf7['enableDefaultAttributesIntegration']('indentList'),_0x4c0bf7['enableDefaultAttributesIntegration']('outdentList'),_0x4c0bf7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4c0bf7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4c0bf7['registerBlockAttribute']('listItemId'),_0x4c0bf7['registerBlockAttribute']('listType'),_0x4c0bf7['registerBlockAttribute']('listIndent'),_0x1054a7&&(_0x4c0bf7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4c0bf7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x36467b&&(_0x4c0bf7['enableDefaultAttributesIntegration']('todoList'),_0x4c0bf7['enableDefaultAttributesIntegration']('checkTodoList'),_0x4c0bf7['registerBlockAttribute']('todoListChecked'),_0x4c0bf7['descriptionFactory']['registerDescriptionCallback'](_0x1bc57e=>{const {data:_0x149d81}=_0x1bc57e;if(_0x149d81&&'todoListChecked'==_0x149d81['key'])return{'type':'format','content':_0x149d81['newValue']?c(_0x2e68fe,'*Check\x20item*'):c(_0x2e68fe,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x42cb0c=>{if(_0x42cb0c['batch']['isUndo'])return!0x1;let _0x220e12=!0x1;const _0x4e067f=_0x4c0bf7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20b54f=>'todoListChecked'===_0x4c0bf7['_getAttributeKey'](_0x20b54f));for(const _0xab973e of _0x4e067f){'todo'!=_0xab973e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4c0bf7['_findSuggestions'](_0xab973e['getFirstRange'](),'attribute')['find'](_0x5a9ee3=>'listType'===_0x4c0bf7['_getAttributeKey'](_0x5a9ee3['suggestion']))||(_0x42cb0c['removeMarker'](_0xab973e['getFirstMarker']()),_0x220e12=!0x0));}return _0x220e12;})),_0x4c0bf7['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2e68fe,'FORMAT_INDENT'));const _0x40fa3b={'type':'format','content':''};_0x4c0bf7['descriptionFactory']['registerDescriptionCallback'](_0x28df03=>{const {data:_0x1b2724}=_0x28df03;if(!_0x1b2724||'listType'!=_0x1b2724['key'])return;let _0xd1c6e7=_0x28df03['head'];for(;_0xd1c6e7;){if(_0xd1c6e7['data']&&(('listStyle'==_0xd1c6e7['data']['key']||'listMarkerStyle'==_0xd1c6e7['data']['key'])&&(_0xd1c6e7['data']['newValue']&&'default'!=_0xd1c6e7['data']['newValue']||'default'!=_0xd1c6e7['data']['oldValue']&&!_0x1b2724['newValue'])||!_0x1054a7&&_0xd1c6e7['data']['key']==u))return _0x40fa3b;_0xd1c6e7=_0xd1c6e7['next'];}if(null==_0x1b2724['newValue'])switch(_0x1b2724['oldValue']){case'bulleted':return _0x194d5e(c(_0x2e68fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x194d5e(c(_0x2e68fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x194d5e(c(_0x2e68fe,'ELEMENT_TODO_LIST'));}switch(_0x1b2724['newValue']){case'bulleted':return _0xcdbf3(c(_0x2e68fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xcdbf3(c(_0x2e68fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xcdbf3(c(_0x2e68fe,'ELEMENT_TODO_LIST'));}}),_0x4c0bf7['descriptionFactory']['registerDescriptionCallback'](_0x37cce3=>{const {data:_0x5ed924}=_0x37cce3;if(_0x5ed924&&'listIndent'==_0x5ed924['key'])return null==_0x5ed924['newValue']||null==_0x5ed924['oldValue']&&0x0==_0x5ed924['newValue']?_0x40fa3b:void 0x0;}),_0x4c0bf7['descriptionFactory']['registerDescriptionCallback'](_0x11d517=>{if('attribute'!=_0x11d517['type'])return;const {data:_0x573b46}=_0x11d517;if(!_0x573b46||'listItemId'!=_0x573b46['key'])return;const _0x102cb0=Te(_0x11d517);return'newValue'==_0x102cb0?{'type':'format','content':c(_0x2e68fe,'*Merge:*\x20list\x20item')}:'oldValue'==_0x102cb0?{'type':'format','content':c(_0x2e68fe,'*Split:*\x20list\x20item')}:_0x40fa3b;}),_0x424f0a['model']['document']['registerPostFixer'](_0x4307c7=>this['listItemIdFixer'](_0x4307c7)),_0x424f0a['model']['document']['registerPostFixer'](_0x5c13aa=>this['noTrackChangesFixer'](_0x5c13aa)),_0x424f0a['model']['document']['on']('change:data',(_0xcd3423,_0x982982)=>{if(_0x982982['isUndo']||!_0x982982['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5927a2){if(_0x5927a2['batch']['isUndo']||!_0x5927a2['batch']['isLocal'])return!0x1;let _0x150ee8=!0x1;const _0x56689a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f0a63=>_0x5f0a63['data']&&'listItemId'==_0x5f0a63['data']['key'])['filter'](_0x2cc4b5=>_0x2cc4b5['data']['newValue']&&_0x2cc4b5['data']['oldValue']);for(const _0x5f014f of _0x56689a)Te(_0x5f014f)||(_0x5927a2['removeMarker'](_0x5f014f['getFirstMarker']()),_0x150ee8=!0x0);return _0x150ee8;}['noTrackChangesFixer'](_0x21831b){if(_0x21831b['batch']['isUndo']||!_0x21831b['batch']['isLocal'])return!0x1;const _0xfcdb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xfcdb['trackChangesCommand']['value'])return!0x1;let _0x1b79c3=!0x1;const _0x4acc84=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb753c2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x356423=>'attribute'==_0x356423['type'])['filter'](_0x173358=>_0x4acc84['includes'](_0x173358['attributeKey']));if(0x0==_0xb753c2['length'])return _0x1b79c3;for(const _0x1c2989 of _0xb753c2){const _0x3b0cdd=_0xfcdb['_findSuggestions'](_0x1c2989['range'],'attribute')['filter'](_0x473d46=>!_0x473d46['meta']['isNextTo'])['map'](_0x5d3337=>_0x5d3337['suggestion'])['filter'](_0x1e64e5=>{const _0xee305b=_0xfcdb['_getAttributeKey'](_0x1e64e5);return _0x4acc84['includes'](_0xee305b);});if(_0x3b0cdd['length']){for(const _0x3379d1 of _0x3b0cdd)_0x21831b['removeMarker'](_0x3379d1['getFirstMarker']());_0x1b79c3=!0x0;}}return _0x1b79c3;}['assureChains'](){const _0x3d771b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a83c9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1d20e7;const _0xc343c6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d7e1a=>{if(_0x2d7e1a['data']['oldRange']||!_0x2d7e1a['data']['newRange'])return null;if(!_0x2d7e1a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1aeacb}=_0x3d771b['_splitMarkerName'](_0x2d7e1a['name']);if(!_0x3d771b['hasSuggestion'](_0x1aeacb))return null;const _0x1c0dcc=_0x3d771b['getSuggestion'](_0x1aeacb);return _0x1a83c9['includes'](_0x1c0dcc['data']['key']);})['map'](_0x23769e=>{const {id:_0xa8959c}=_0x3d771b['_splitMarkerName'](_0x23769e['name']),_0x52615b=_0x3d771b['getSuggestion'](_0xa8959c);return _0x1d20e7=_0x52615b['attributes']['groupId'],_0x52615b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xc343c6['size'])return;const _0x780334=_0x3d771b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a541f=>'attribute'==_0x2a541f['type']&&_0x2a541f['data']&&_0x1a83c9['includes'](_0x2a541f['data']['key'])&&_0x2a541f['attributes']['groupId']!=_0x1d20e7)['map'](_0x16cf98=>({'listItem':_0x16cf98['getFirstRange']()['start']['nodeAfter'],'groupId':_0x16cf98['attributes']['groupId']})),_0x1182a1=new Set();for(const {groupId:_0x3a7417,listItem:_0x4f2748}of _0x780334)_0xc343c6['has'](_0x4f2748)&&_0x1182a1['add'](_0x3a7417);for(const _0xa0d856 of _0x3d771b['getSuggestions']())_0x1182a1['has'](_0xa0d856['attributes']['groupId'])&&_0xa0d856['setAttribute']('groupId',_0x1d20e7);}['_supportLegacySuggestions'](){const _0x438bf2=this['editor'],_0x5db4a8=_0x438bf2['locale'],_0x399428=_0x438bf2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x399428['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x22dccf,_0x39a018){const _0x5c02b9=[];for(let _0x433701 of _0x22dccf)_0x433701['start']['nodeAfter']===_0x433701['end']['parent']&&(_0x433701=_0x438bf2['model']['createRange'](_0x438bf2['model']['createPositionAt'](_0x433701['start']['nodeAfter'],0x0))),_0x5c02b9['push'](_0x433701);_0x438bf2['model']['change'](_0x3c856e=>{const _0x2b5fb7=_0x438bf2['model']['document']['selection'],_0x5df561=Array['from'](_0x2b5fb7['getRanges']())['map'](_0x395461=>_0xc48f37['fromRange'](_0x395461));_0x3c856e['setSelection'](_0x5c02b9),_0x438bf2['commands']['get'](_0x39a018['commandName'])['refresh'](),_0x39a018['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x438bf2['execute'](_0x39a018['commandName'],..._0x39a018['commandParams']),_0x3c856e['setSelection'](_0x5df561);for(const _0x4d6f0c of _0x5df561)_0x4d6f0c['detach']();});}),_0x399428['descriptionFactory']['registerElementLabel'](function(_0x3cc967){const _0x4122f9=!_0x438bf2['model']['schema']['isObject'](_0x3cc967),_0x46db88=_0x3cc967['previousSibling'],_0x215b42=_0x3cc967['nextSibling'],_0x4e5958=_0x3cc967['getAttribute']('listItemId'),_0x3bd4ed=!_0x46db88||_0x46db88['getAttribute']('listItemId')!==_0x4e5958,_0x6547de=!_0x215b42||_0x215b42['getAttribute']('listItemId')!==_0x4e5958;return _0x4122f9&&Boolean(_0x4e5958)&&_0x3bd4ed&&_0x6547de;},_0x515608=>c(_0x5db4a8,'ELEMENT_LIST_ITEM',_0x515608));}['_registerLegacyDescription'](){const _0x573076=this['editor'],_0x45bd9f=_0x573076['locale'];function _0x38f4a5(_0x247222){const _0x410ee5=_0x573076['commands']['get']('bulletedList')['value'],_0x1f0a07=_0x573076['commands']['get']('numberedList')['value'];return'numberedList'===_0x247222?_0x410ee5:_0x1f0a07;}_0x573076['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x59831c){if('formatBlock'!=_0x59831c['type'])return;const {data:_0x37baa5}=_0x59831c;if(!_0x37baa5)return;let _0x2e9e8f,_0x4cc55e,_0x54a735,_0x1c16e3;switch(_0x37baa5['commandName']){case'bulletedList':_0x54a735=_0x37baa5['commandParams'][0x0]['forceValue'],_0x1c16e3=_0x38f4a5(_0x37baa5['commandName']),_0x2e9e8f=_0x54a735?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c16e3&&_0x573076['config']['get']('list.multiBlock')||(_0x2e9e8f='*Change\x20to:*\x20%0'),_0x4cc55e={'type':'format','content':c(_0x45bd9f,_0x2e9e8f,c(_0x45bd9f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x54a735=_0x37baa5['commandParams'][0x0]['forceValue'],_0x1c16e3=_0x38f4a5(_0x37baa5['commandName']),_0x2e9e8f=_0x54a735?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c16e3&&_0x573076['config']['get']('list.multiBlock')||(_0x2e9e8f='*Change\x20to:*\x20%0'),_0x4cc55e={'type':'format','content':c(_0x45bd9f,_0x2e9e8f,c(_0x45bd9f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2e9e8f='*Indent:*\x20%0',_0x4cc55e={'type':'format','content':c(_0x45bd9f,_0x2e9e8f,c(_0x45bd9f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2e9e8f=function(_0x4eb218){const _0x517098=_0x4eb218['getFirstRange']();let _0x282074=_0x517098['start']['nodeAfter'];for(;_0x282074&&_0x517098['containsItem'](_0x282074);){if(_0x282074['getAttribute']('listIndent')>0x0)return!0x1;_0x282074=_0x282074['nextSibling'];}return!0x0;}(_0x59831c)?c(_0x45bd9f,'*Format:*\x20remove\x20from\x20%0',c(_0x45bd9f,function(_0x4ecc8a){return'ELEMENT_'+_0x4ecc8a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x59831c))):c(_0x45bd9f,'*Outdent:*\x20%0',c(_0x45bd9f,'ELEMENT_LIST_ITEM')),_0x4cc55e={'type':'format','content':_0x2e9e8f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x37baa5['multipleBlocks']&&(_0x2e9e8f='*Merge:*\x20%0',_0x4cc55e={'type':'deletion','content':c(_0x45bd9f,_0x2e9e8f,c(_0x45bd9f,'ELEMENT_LIST_ITEM'))});}return _0x4cc55e;});}}function Te(_0x12d2f9){let _0x2745f0=_0x12d2f9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2745f0;){const _0x36a3d7=_0x2745f0['getAttribute']('listItemId');if(!_0x36a3d7)return!0x1;if(_0x36a3d7==_0x12d2f9['data']['newValue'])return'newValue';if(_0x36a3d7==_0x12d2f9['data']['oldValue'])return'oldValue';_0x2745f0=_0x2745f0['previousSibling'];}return!0x1;}class Se extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f44aa=this['editor']['config']['get']('list.properties'),_0x2d1102=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f44aa['styles']&&(_0x2d1102['enableDefaultAttributesIntegration']('listStyle'),_0x2d1102['registerBlockAttribute']('listStyle')),_0x5f44aa['reversed']&&(_0x2d1102['enableDefaultAttributesIntegration']('listReversed'),_0x2d1102['registerBlockAttribute']('listReversed')),_0x5f44aa['startIndex']&&(_0x2d1102['enableDefaultAttributesIntegration']('listStart'),_0x2d1102['registerBlockAttribute']('listStart'));const _0x2eb55b={'type':'format','content':''};_0x2d1102['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x370176=this['editor']['locale'];_0x2d1102['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x370176,'FORMAT_LIST_REVERSED')),_0x2d1102['descriptionFactory']['registerDescriptionCallback'](_0x41f161=>{const {data:_0xf3fa11}=_0x41f161;if(_0xf3fa11&&'listReversed'==_0xf3fa11['key'])return null==_0xf3fa11['newValue']||0x0==_0xf3fa11['newValue']&&null==_0xf3fa11['oldValue']?_0x2eb55b:void 0x0;}),_0x2d1102['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x370176,'FORMAT_LIST_START')),_0x2d1102['descriptionFactory']['registerDescriptionCallback'](_0x217ac5=>{const {data:_0x21f54a}=_0x217ac5;if(_0x21f54a&&'listStart'==_0x21f54a['key'])return null==_0x21f54a['newValue']||0x1==_0x21f54a['newValue']&&null==_0x21f54a['oldValue']?_0x2eb55b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2ccf62=>{if(_0x2ccf62['batch']['isUndo'])return!0x1;let _0x444a60=!0x1;const _0x516bda=_0x2d1102['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cfe8a=>{const _0x2313ce=_0x2d1102['_getAttributeKey'](_0x1cfe8a);return'listStart'==_0x2313ce||'listReversed'==_0x2313ce;});for(const _0x20196a of _0x516bda){const _0x490ce2=_0x20196a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x490ce2||'customNumbered'==_0x490ce2)continue;_0x2d1102['_findSuggestions'](_0x20196a['getFirstRange'](),'attribute')['find'](_0x3710b7=>'listType'==_0x2d1102['_getAttributeKey'](_0x3710b7['suggestion']))||(_0x2ccf62['removeMarker'](_0x20196a['getFirstMarker']()),_0x444a60=!0x0);}return _0x444a60;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1735b5){const _0x31df02=this['editor']['locale'],{data:_0x28dddf}=_0x1735b5,_0x581955={'type':'format','content':''};if(!_0x28dddf||'listStyle'!=_0x28dddf['key'])return;if(!_0x28dddf['oldValue'])return'default'==_0x28dddf['newValue']?_0x581955:{'type':'format','content':''+c(_0x31df02,'*Set\x20format:*\x20%0',c(_0x31df02,this['_getTranslationKeyForListStyle'](_0x28dddf['newValue'])))};if(!_0x28dddf['newValue']){if('default'==_0x28dddf['oldValue'])return _0x581955;let _0x2f6b6d=_0x1735b5['head'];for(;_0x2f6b6d;){if(_0x2f6b6d['data']&&'listType'==_0x2f6b6d['data']['key']&&_0x2f6b6d['data']['newValue'])return _0x581955;_0x2f6b6d=_0x2f6b6d['next'];}return{'type':'format','content':''+c(_0x31df02,'*Remove\x20format:*\x20%0',c(_0x31df02,this['_getTranslationKeyForListStyle'](_0x28dddf['oldValue'])))};}if('default'!=_0x28dddf['newValue'])return{'type':'format','content':''+c(_0x31df02,'*Set\x20format:*\x20%0',c(_0x31df02,this['_getTranslationKeyForListStyle'](_0x28dddf['newValue'])))};let _0x583996=_0x1735b5['head'];for(;_0x583996;){if(_0x583996['data']&&'listType'==_0x583996['data']['key']&&_0x583996['data']['newValue']&&_0x583996['data']['oldValue'])return _0x581955;_0x583996=_0x583996['next'];}return{'type':'format','content':c(_0x31df02,'*Set\x20format:*\x20%0',c(_0x31df02,'ELEMENT_'+_0x1735b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x48771a=this['editor'],_0x39e588=_0x48771a['locale'];_0x48771a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46b21d=>{if('formatBlock'!=_0x46b21d['type'])return;const {data:_0x230c7d}=_0x46b21d;if(!_0x230c7d)return;let _0x5adf78,_0x56b854;switch(_0x230c7d['commandName']){case'listStyle':_0x5adf78='*Change\x20to:*\x20%0',_0x56b854={'type':'format','content':c(_0x39e588,_0x5adf78,c(_0x39e588,this['_getTranslationKeyForListStyle'](_0x230c7d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5adf78=_0x230c7d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56b854={'type':'format','content':c(_0x39e588,_0x5adf78)};break;case'listStart':_0x5adf78='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56b854={'type':'format','content':c(_0x39e588,_0x5adf78,_0x230c7d['commandParams'][0x0]['startIndex'])};}return _0x56b854;});}['_getTranslationKeyForListStyle'](_0x722ebb){return'ELEMENT_'+function(_0x2c8d2c){if(_e['includes'](_0x2c8d2c))return'bulleted';if(Re['includes'](_0x2c8d2c))return'numbered';return null;}(_0x722ebb)['toUpperCase']()+'_LIST_'+_0x722ebb['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3ff648{['afterInit'](){const _0x5a0b4a=this['editor'];_0x5a0b4a['commands']['get']('emoji')&&_0x5a0b4a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3ff648{static get['requires'](){return[_0x455c9b];}['init'](){const _0x5711eb=this['editor'],_0x5b4b6e=_0x5711eb['plugins']['get']('TrackChangesEditing'),_0x2e01b3=_0x5711eb['commands']['get']('enter');_0x5b4b6e['enableCommand']('enter',()=>{_0x5711eb['model']['change'](_0x117966=>{const _0x5e4303=_0x5711eb['model']['document']['selection'],_0x5bc655=_0x5e4303['getFirstPosition'](),_0xdb1898=_0xc48f37['fromRange'](_0x5e4303['getFirstRange']());if(_0x2e01b3['enterBlock'](_0x117966)){const _0x26b230=_0x5711eb['model']['createPositionAt'](_0x5bc655['parent']['nextSibling'],0x0),_0x22084a=_0x117966['createRange'](_0x5bc655,_0x26b230);_0x5b4b6e['markInsertion'](_0x22084a);}else _0x117966['setSelection'](_0x117966['createRange'](_0xdb1898['end']));_0xdb1898['detach'](),_0x2e01b3['fire']('afterExecute',{'writer':_0x117966});});}),_0x5711eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x5711eb,'split'),{'priority':'high'}),_0x5711eb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3dcc9c,_0x40e8d8,_0xe09dd8)=>{const _0x155e6c=_0xe09dd8['mapper']['markerNameToElements'](_0x40e8d8['markerName']);if(_0x155e6c){for(const _0x5f264c of _0x155e6c)_0x5f264c['hasClass']('ck-suggestion-marker-split')&&(_0xe09dd8['mapper']['unbindElementFromMarkerName'](_0x5f264c,_0x40e8d8['markerName']),_0xe09dd8['writer']['remove'](_0x5f264c));}},{'priority':'high'}),_0x5711eb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x10cbe6,_0x474492,_0x421802)=>{_0x421802['options']['showSuggestionHighlights']&&Fe(_0x5711eb,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x10cbe6,_0x474492,_0x421802);},{'priority':'high'});}}class Z extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4a5074=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a5074['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4a5074['enableCommand']('findNext'),_0x4a5074['enableCommand']('findPrevious'),_0x4a5074['enableCommand']('replace'),_0x4a5074['enableCommand']('replaceAll');}['handleFindCommand'](_0x45dbe9,_0x445465,_0xf51122={}){const _0x479f18=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x45dbe9(_0x505f95=>{let _0x5512a7=('string'==typeof _0x445465?_0x479f18['findByTextCallback'](_0x445465,_0xf51122):_0x445465)(_0x505f95);Array['isArray'](_0x5512a7)&&(_0x5512a7={'results':_0x5512a7,'searchText':'string'==typeof _0x445465?_0x445465:''});const _0x142cca=_0x5512a7['results']['filter'](_0x2ca1fb=>!0x1===this['_isInDeletionRange'](_0x2ca1fb,_0x505f95['item']));return{..._0x5512a7,'results':_0x142cca};},_0xf51122);}['_isInDeletionRange'](_0x456df1,_0x4d24ce){const _0x152a99=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d24ce,_0x456df1['start']),this['editor']['model']['createPositionAt'](_0x4d24ce,_0x456df1['end']));for(const _0x8d5f79 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x152a99['getIntersection'](_0x8d5f79['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3ff648{['afterInit'](){const _0x47a894=this['editor']['locale'],_0x372f18=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x23a14b,commandName:_0x56fd36}of ro)this['editor']['plugins']['has'](_0x23a14b)&&(_0x372f18['enableDefaultAttributesIntegration'](_0x56fd36),_0x372f18['registerInlineAttribute'](_0x56fd36));_0x372f18['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x47a894,'FORMAT_FONT_SIZE')),_0x372f18['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x47a894,'FORMAT_FONT_FAMILY')),_0x372f18['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x47a894,'FORMAT_FONT_COLOR')),_0x372f18['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x47a894,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9c9d6=this['editor'],_0x1ebee2=_0xa9c9d6['locale'];_0xa9c9d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49e1a5=>{const _0x2bd868=_0x1ebee2['t'];if('formatInline'!=_0x49e1a5['type'])return;const {data:_0x235df9}=_0x49e1a5;if(null!=_0x235df9){if('fontSize'==_0x235df9['commandName']){const _0x4fa94e=_0x235df9['commandParams'][0x0]['value'];if(_0x4fa94e){const _0x1b4566=_0x2bd868(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3c79fd=>_0x3c79fd['model']==_0x4fa94e)['title'])['toLowerCase']();return{'type':'format','content':c(_0x1ebee2,'*Set\x20font\x20size:*\x20%0',_0x1b4566)};}return{'type':'format','content':c(_0x1ebee2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x235df9['commandName']){const _0x596323=_0x235df9['commandParams'][0x0]['value'];return _0x596323?{'type':'format','content':c(_0x1ebee2,'*Set\x20font\x20family:*\x20%0',_0x596323)}:{'type':'format','content':c(_0x1ebee2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x235df9['commandName']){const _0x109649=_0x235df9['commandParams'][0x0]['value'];if(_0x109649){const _0xcee86e=_0x241c56(this['editor']['config']['get']('fontColor.colors'))['find'](_0x525f39=>_0x525f39['model']==_0x109649);let _0x1347ce=_0x109649,_0x4e0747='';return _0xcee86e&&(_0x1347ce=_0xcee86e['label'],_0x4e0747=_0x2bd868(_0x1347ce)['toLowerCase']()),{'type':'format','content':c(_0x1ebee2,'*Set\x20font\x20color:*\x20%0',_0x4e0747)['trim'](),'color':{'value':_0x109649,'title':_0x4e0747||_0x1347ce}};}return{'type':'format','content':c(_0x1ebee2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x235df9['commandName']){const _0x3ce207=_0x235df9['commandParams'][0x0]['value'];if(_0x3ce207){const _0x717458=_0x241c56(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49af43=>_0x49af43['model']==_0x3ce207);let _0x248d24=_0x3ce207,_0x29d40a='';return _0x717458&&(_0x248d24=_0x717458['label'],_0x29d40a=_0x2bd868(_0x248d24)['toLowerCase']()),{'type':'format','content':c(_0x1ebee2,'*Set\x20font\x20background\x20color:*\x20%0',_0x29d40a)['trim'](),'color':{'value':_0x3ce207,'title':_0x29d40a||_0x248d24}};}return{'type':'format','content':c(_0x1ebee2,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3ff648{['afterInit'](){const _0x106dce=this['editor'],_0x1a4e26=_0x106dce['plugins']['get']('TrackChangesEditing'),_0xa9fcd5=_0x106dce['commands']['get']('copyFormat'),_0x534733=_0x106dce['commands']['get']('pasteFormat');_0xa9fcd5&&_0x534733&&(_0x1a4e26['enableDefaultAttributesIntegration']('pasteFormat'),_0x1a4e26['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f2bad=this['editor'],_0x419383=_0x3f2bad['locale'];_0x3f2bad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b7a3d=>{if('formatBlock'!=_0x3b7a3d['type']&&'formatInline'!=_0x3b7a3d['type'])return;const {data:_0x5108f8}=_0x3b7a3d;if(_0x5108f8&&'pasteFormat'===_0x5108f8['commandName']){const _0x4aaacc=[],_0x11fd37=_0x5108f8['commandParams'][0x0];for(const [_0x42f175,_0x3ece1d]of Object['entries'](_0x11fd37))_0x4aaacc['push'](so(_0x3f2bad,_0x42f175,_0x3ece1d));return _0x4aaacc['length']?{'type':'format','content':c(_0x419383,'*Set\x20format\x20to:*\x20%0',_0x4aaacc['join'](',\x20'))}:{'type':'format','content':c(_0x419383,'*Remove\x20all\x20formatting*')};}});}}function so(_0x10d831,_0x2561d6,_0xc53ef){const _0x1f21ed=_0x10d831['locale']['t'],_0x565c6c=_0x2561d6['split'](/(?=[A-Z])/)['join']('\x20'),_0xf402c1=_0x1f21ed(_0x565c6c['charAt'](0x0)['toUpperCase']()+_0x565c6c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xc53ef)return _0xf402c1;if('fontColor'===_0x2561d6||'fontBackgroundColor'===_0x2561d6){const _0x53dd64=_0x241c56(_0x10d831['config']['get']('fontColor.colors'))['find'](_0x55a561=>_0x55a561['model']==_0xc53ef);return _0xf402c1+'\x20('+(_0x53dd64?_0x1f21ed(_0x53dd64['label'])['toLowerCase']():_0xc53ef)+')';}if('fontSize'===_0x2561d6&&isNaN(parseFloat(_0xc53ef))){const _0x1641be=_0x10d831['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x10d831['config']['get']('fontSize.options'))['find'](_0x63dde5=>_0x63dde5['model']==_0xc53ef);return _0xf402c1+'\x20('+(_0x1641be?_0x1f21ed(_0x1641be['title'])['toLowerCase']():_0xc53ef)+')';}return _0xf402c1+'\x20('+_0xc53ef+')';}class et extends _0x3ff648{['_headingOptions'];['afterInit'](){const _0x59a97f=this['editor'];if(!_0x59a97f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x59a97f['config']['get']('heading.options');const _0x121b51=_0x59a97f['locale'],_0x47571e=_0x59a97f['plugins']['get']('TrackChangesEditing');_0x47571e['enableDefaultAttributesIntegration']('heading');for(const _0x59e452 of this['_headingOptions'])'paragraph'!=_0x59e452['model']&&_0x47571e['descriptionFactory']['registerElementLabel'](_0x59e452['model'],_0x5caa42=>{const _0x18fe39=this['_getHeadingLevel'](_0x59e452['model']);return null!==_0x18fe39?_0x4c0780(_0x5caa42,_0x18fe39):_0x4597a8(_0x5caa42,_0x59e452['title']);});function _0x4c0780(_0x14c927,_0x1b1f4a){return c(_0x121b51,'ELEMENT_HEADING',[_0x14c927,_0x1b1f4a]);}function _0x4597a8(_0xbd7a4e,_0x5b10aa){return c(_0x121b51,'ELEMENT_HEADING_CUSTOM',[_0xbd7a4e,_0x5b10aa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234b18=this['editor'],_0x870a7c=_0x234b18['locale'];function _0x1a1550(_0x52396a,_0x2b6580){return c(_0x870a7c,'ELEMENT_HEADING_CUSTOM',[_0x52396a,_0x2b6580]);}_0x234b18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c80c9=>{if('formatBlock'!=_0x5c80c9['type'])return;const {data:_0xc730b7}=_0x5c80c9;if(_0xc730b7&&'heading'==_0xc730b7['commandName']){const _0x9332da=_0xc730b7['commandParams'][0x0]['value'],_0x445f22=this['_getHeadingLevel'](_0x9332da);if(null!==_0x445f22)return{'type':'format','content':c(_0x870a7c,'*Change\x20to:*\x20%0',(_0x22bb9a=0x1,_0x31542c=_0x445f22,c(_0x870a7c,'ELEMENT_HEADING',[_0x22bb9a,_0x31542c])))};const _0x49bebe=this['_headingOptions']['find'](_0xd52391=>_0xd52391['model']===_0x9332da)['title'];return{'type':'format','content':c(_0x870a7c,'*Change\x20to:*\x20%0',_0x1a1550(0x1,_0x49bebe))};}var _0x22bb9a,_0x31542c;});}['_getHeadingLevel'](_0x2e1379){const _0x354e65=_0x2e1379['match'](/^heading(\d+)/);if(_0x354e65)return _0x354e65[0x1];const _0x19d338=this['_headingOptions']?.['find'](_0x45a66c=>_0x45a66c['model']==_0x2e1379);if(_0x19d338&&_0x19d338['view']){const _0xf48ed2=_0x19d338['view'],_0x2ee77f=(_0xf48ed2['name']??_0xf48ed2)['match'](/^h(\d+)/);if(_0x2ee77f)return _0x2ee77f[0x1];}return null;}}class nt extends _0x3ff648{['afterInit'](){const _0x35fa07=this['editor'];if(!_0x35fa07['plugins']['has']('HighlightEditing'))return;const _0x55998e=_0x35fa07['plugins']['get']('TrackChangesEditing'),_0x1b213b=_0x35fa07['locale'];_0x55998e['enableDefaultAttributesIntegration']('highlight'),_0x55998e['registerInlineAttribute']('highlight'),_0x55998e['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1b213b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cef61=this['editor'],_0x2d3386=_0x2cef61['locale'];_0x2cef61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b5c24=>{if('formatInline'!=_0x2b5c24['type'])return;const {data:_0x2e4aad}=_0x2b5c24;if(_0x2e4aad&&'highlight'==_0x2e4aad['commandName']){const _0x368385=_0x2d3386['t'],_0x36ef40=_0x2e4aad['commandParams'][0x0]['value'];if(_0x36ef40){const _0x57d918=_0x2cef61['config']['get']('highlight.options')['find'](_0x3d4c1b=>_0x3d4c1b['model']==_0x36ef40),_0x2ba264=_0x368385(_0x57d918['title'])['toLowerCase']();return{'type':'format','content':c(_0x2d3386,'*Set\x20highlight:*\x20%0',_0x2ba264),'color':{'value':_0x57d918['color'],'title':_0x57d918['title']}};}return{'type':'format','content':c(_0x2d3386,'*Remove\x20highlight*',c(_0x2d3386,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3ff648{['afterInit'](){const _0x2d7db5=this['editor'];if(!_0x2d7db5['plugins']['has']('HorizontalLineEditing'))return;_0x2d7db5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe0c6ae=_0x2d7db5['plugins']['get']('TrackChangesEditing'),_0x510f26=_0x2d7db5['locale'];_0xe0c6ae['descriptionFactory']['registerElementLabel']('horizontalLine',_0x128e3f=>c(_0x510f26,'ELEMENT_HORIZONTAL_LINE',_0x128e3f)),_0x2d7db5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xc79c9e,{writer:_0x22a9ba,options:_0x98ac77})=>{if(!_0x98ac77['showSuggestionHighlights'])return null;const _0x4146d4=_0x22a9ba['createContainerElement']('div'),_0x43a29c=_0x22a9ba['createEmptyElement']('hr');return _0x22a9ba['addClass']('ck-horizontal-line',_0x4146d4),_0x22a9ba['insert'](_0x22a9ba['createPositionAt'](_0x4146d4,0x0),_0x43a29c),_0x4146d4;},'converterPriority':'high'});}}class ot extends _0x3ff648{['afterInit'](){const _0x389d07=this['editor'];if(!_0x389d07['plugins']['has']('HtmlEmbed'))return;const _0x314b16=_0x389d07['plugins']['get']('TrackChangesEditing'),_0x5a2fff=_0x389d07['locale'];_0x314b16['descriptionFactory']['registerElementLabel']('rawHtml',_0x392159=>c(_0x5a2fff,'ELEMENT_HTML_EMBED',_0x392159)),_0x314b16['enableDefaultAttributesIntegration']('htmlEmbed'),_0x314b16['registerBlockAttribute']('value'),_0x314b16['descriptionFactory']['registerDescriptionCallback'](_0x131f7f=>{if('attribute'!=_0x131f7f['type'])return;const {data:_0x1337c8}=_0x131f7f;if(_0x1337c8&&'value'==_0x1337c8['key']&&_0x131f7f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x14a44f=c(_0x5a2fff,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5a2fff,'*Change\x20%0\x20content*',_0x14a44f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x82f60f=this['editor'],_0x507820=_0x82f60f['locale'];_0x82f60f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5479c9=>{if('formatBlock'!=_0x5479c9['type'])return;const {data:_0x2b33ba}=_0x5479c9;if(_0x2b33ba&&'htmlEmbed'==_0x2b33ba['commandName']){const _0x2afb69=c(_0x507820,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x507820,'*Change\x20%0\x20content*',_0x2afb69)};}});}}class rt extends _0x3ff648{['afterInit'](){const _0x31bb3f=this['editor'];if(!_0x31bb3f['plugins']['has']('ImageEditing'))return;const _0x1bc566=_0x31bb3f['plugins']['get']('TrackChangesEditing'),_0x569a85=_0x31bb3f['plugins']['get']('ImageUtils'),_0x2557c6=_0x31bb3f['locale'];_0x1bc566['enableCommand']('insertImage'),_0x1bc566['descriptionFactory']['registerElementLabel']('imageBlock',_0x21f6ca=>c(_0x2557c6,'ELEMENT_IMAGE',_0x21f6ca)),_0x1bc566['descriptionFactory']['registerElementLabel']('imageInline',_0x2b4c13=>c(_0x2557c6,'ELEMENT_INLINE_IMAGE',_0x2b4c13)),_0x1bc566['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2557c6,'ELEMENT_CAPTION')),_0x31bb3f['plugins']['has']('ImageUploadEditing')&&_0x1bc566['enableCommand']('uploadImage'),_0x31bb3f['plugins']['has']('ImageBlockEditing')&&_0x31bb3f['plugins']['has']('ImageInlineEditing')&&(_0x1bc566['enableCommand']('imageTypeInline',(_0x1bdc57,_0x8280e7)=>{const _0x6664dc=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']);_0x31bb3f['model']['change'](()=>{_0x1bc566['markBlockFormat'](_0x6664dc,{'commandName':'imageTypeInline','commandParams':[_0x8280e7]},[],'convertBlockImageToInline');});}),_0x1bc566['enableCommand']('imageTypeBlock',(_0x41a42b,_0x10506e)=>{_0x31bb3f['model']['change'](_0x48240d=>{let _0x5707a2=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']),_0x572bc4=_0x48240d['createRangeOn'](_0x5707a2);const _0x3896d6=_0x123968['fromPosition'](_0x572bc4['start'],'toPrevious'),_0x34bcd6=_0x123968['fromPosition'](_0x572bc4['end'],'toNext');_0x1bc566['forceDefaultExecution'](()=>_0x41a42b(_0x10506e)),_0x5707a2=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']),_0x572bc4=_0x48240d['createRangeOn'](_0x5707a2);const _0x428086=_0x48240d['createRange'](_0x3896d6,_0x34bcd6);_0x3896d6['detach'](),_0x34bcd6['detach'](),_0x1bc566['markBlockFormat'](_0x5707a2,{'commandName':'imageTypeInline','commandParams':[_0x10506e]},[],'convertInlineImageToBlock'),_0x428086['start']['isBefore'](_0x572bc4['start'])&&_0x1bc566['markInsertion'](_0x48240d['createRange'](_0x428086['start'],_0x572bc4['start']),'convertInlineImageToBlock'),_0x572bc4['end']['isBefore'](_0x428086['end'])&&_0x1bc566['markInsertion'](_0x48240d['createRange'](_0x572bc4['end'],_0x428086['end']),'convertInlineImageToBlock');});}),_0x1bc566['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1bc566['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1bc566['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1bc566['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1bc566['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1bc566['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x43f42c])=>{const _0x459fdc=_0x1bc566['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x215431=_0x43f42c['start'],_0x114275=_0x43f42c['end'];const _0x2d9b19=_0x31bb3f['model']['schema']['getNearestSelectionRange'](_0x215431,'backward'),_0x43860b=_0x31bb3f['model']['schema']['getNearestSelectionRange'](_0x114275,'forward');_0x2d9b19['isCollapsed']&&(_0x215431=_0x2d9b19['start']),_0x43860b['isCollapsed']&&(_0x114275=_0x43860b['end']),_0x459fdc([_0x31bb3f['model']['createRange'](_0x215431,_0x114275)]);}),_0x1bc566['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3621f9),_0x1bc566['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3621f9)),_0x31bb3f['plugins']['has']('ImageCaptionEditing')&&(_0x1bc566['enableCommand']('toggleImageCaption',(_0x33d384,_0x470861)=>{const _0x13b1b2=_0x31bb3f['plugins']['get']('ImageCaptionUtils');let _0x4ba220=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']),_0x4b9bfd=_0x13b1b2['getCaptionFromImageModelElement'](_0x4ba220);_0x31bb3f['model']['change'](()=>{if(_0x4b9bfd)return void _0x1bc566['markDeletion'](_0x31bb3f['model']['createRangeOn'](_0x4b9bfd));const _0x42f27c=_0x569a85['isBlockImage'](_0x4ba220);_0x33d384(_0x470861),_0x4ba220=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']),_0x4b9bfd=_0x13b1b2['getCaptionFromImageModelElement'](_0x4ba220),_0x1bc566['markInsertion'](_0x31bb3f['model']['createRangeOn'](_0x4b9bfd),_0x42f27c?null:'imageCaption');});}),_0x1bc566['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3621f9));const _0x4fd82c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x430670(_0x7673e3,_0x3e2734){const _0x525d75=_0x4fd82c['findIndex'](({type:_0x1b5060,subType:_0x32c824})=>_0x7673e3['type']==_0x1b5060&&_0x7673e3['subType']==_0x32c824),_0x3c9964=_0x4fd82c['findIndex'](({type:_0x498ae5,subType:_0x2ed845})=>_0x3e2734['type']==_0x498ae5&&_0x3e2734['subType']==_0x2ed845);if(_0x525d75<0x0||_0x3c9964<0x0)return!0x1;const _0x5d3568=_0x7673e3['getFirstRange'](),_0x27df27=_0x3e2734['getFirstRange']();if((0x0==_0x525d75||0x1==_0x525d75)&&0x2==_0x3c9964&&_0x5d3568['isIntersecting'](_0x27df27))return!0x0;if(0x2==_0x525d75&&0x3==_0x3c9964){const _0x4449d5=_0x1bc566['_findSuggestions'](_0x5d3568,'insertion')['filter'](({suggestion:_0x50c20f,meta:_0x15dd6e})=>_0x15dd6e['isOwn']&&'convertInlineImageToBlock'==_0x50c20f['subType']);if(_0x4449d5['length']>0x1&&_0x27df27['end']['isEqual'](_0x5d3568['start']))return!0x0;if(0x1==_0x4449d5['length']&&(_0x5d3568['start']['isEqual'](_0x27df27['end'])||_0x5d3568['end']['isEqual'](_0x27df27['start'])))return!0x0;}if(0x3==_0x525d75&&0x3==_0x3c9964&&_0x5d3568['start']['isBefore'](_0x27df27['start'])){const _0x5607f0=_0x5d3568['end']['nodeAfter'],_0x43a9dc=_0x27df27['start']['nodeBefore'];return _0x569a85['isBlockImage'](_0x5607f0)&&_0x5607f0===_0x43a9dc;}return!0x1;}function _0x3621f9(_0x284c57,_0x1438fa){return _0x430670(_0x284c57,_0x1438fa)?[_0x284c57,_0x1438fa]:_0x430670(_0x1438fa,_0x284c57)?[_0x1438fa,_0x284c57]:null;}_0x31bb3f['plugins']['has']('ImageResize')&&(_0x1bc566['enableDefaultAttributesIntegration']('resizeImage'),_0x1bc566['registerBlockAttribute']('resizedWidth'),_0x1bc566['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2557c6,'FORMAT_IMAGE_SIZE'))),_0x31bb3f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1bc566['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1bc566['registerBlockAttribute']('alt')),_0x31bb3f['plugins']['has']('PictureEditing')&&(_0x1bc566['registerBlockAttribute']('sources'),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x1861ed=>{if('attribute'!=_0x1861ed['type'])return;const {data:_0x273e5b}=_0x1861ed;return _0x273e5b&&'sources'==_0x273e5b['key']?{'type':'format','content':''}:void 0x0;})),_0x31bb3f['plugins']['has']('ImageSizeAttributes')&&(_0x1bc566['registerBlockAttribute']('width'),_0x1bc566['registerBlockAttribute']('height'),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x240e03=>{if('attribute'!=_0x240e03['type'])return;const {data:_0x37fb84}=_0x240e03;return!_0x37fb84||'width'!=_0x37fb84['key']&&'height'!=_0x37fb84['key']?void 0x0:{'type':'format','content':''};})),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x1e3586=>{if(!!_0x4fd82c['find'](({type:_0x4f0101,subType:_0x912232})=>_0x1e3586['type']==_0x4f0101&&_0x1e3586['subType']==_0x912232))return _0x1e3586['previous']?{}:void 0x0;}),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x5d34d8=>{if('insertion'==_0x5d34d8['type']||'deletion'==_0x5d34d8['type']){const _0x2ac16f=_0x5d34d8['getContainedElement']();if(_0x2ac16f&&_0x2ac16f['is']('element','caption'))return{'type':'insertion'==_0x5d34d8['type']?'addObject':'removeObject','element':_0x2ac16f,'quantity':0x1};}}),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x433d9e=>'formatBlock'==_0x433d9e['type']&&'convertInlineImageToBlock'==_0x433d9e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x433d9e['type']&&'convertBlockImageToInline'==_0x433d9e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x2e00f7=>{if('attribute'!=_0x2e00f7['type'])return;const {data:_0x1ff8f1}=_0x2e00f7;if(!_0x1ff8f1||'alt'!=_0x1ff8f1['key'])return;const _0x5570b3=_0x1ff8f1['newValue'];return _0x5570b3?{'type':'format','content':c(_0x2557c6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5570b3+'\x22')}:{'type':'format','content':c(_0x2557c6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdde934=this['editor'],_0x5af1ce=_0xdde934['locale'];_0xdde934['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17e76e=>{if('formatBlock'!=_0x17e76e['type']&&'formatInline'!=_0x17e76e['type'])return;const {data:_0x3b7906}=_0x17e76e;if(_0x3b7906){if('imageTextAlternative'==_0x3b7906['commandName']){const _0x444973=_0x3b7906['commandParams'][0x0]['newValue'];return _0x444973?{'type':'format','content':c(_0x5af1ce,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x444973+'\x22')}:{'type':'format','content':c(_0x5af1ce,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b7906['commandName']){const _0x57582c=_0x3b7906['commandParams'][0x0]['width'];return _0x57582c?{'type':'format','content':c(_0x5af1ce,'*Set\x20image\x20width:*\x20%0',_0x57582c)}:{'type':'format','content':c(_0x5af1ce,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3d5ded=this['editor']['locale'],_0x4eb15b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eb15b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4eb15b['registerBlockAttribute']('src'),_0x4eb15b['descriptionFactory']['registerDescriptionCallback'](_0x16af78=>{if('attribute'!=_0x16af78['type'])return;const {data:_0x414aa4}=_0x16af78;return _0x414aa4&&'src'==_0x414aa4['key']?_0x414aa4['newValue']&&_0x414aa4['oldValue']?{'type':'format','content':c(_0x3d5ded,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x210b92=this['editor']['plugins']['get']('TrackChangesEditing');_0x210b92['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x210b92['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x210b92['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x210b92['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11dda1=this['editor'],_0x3ef685=_0x11dda1['locale'];_0x11dda1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b1a9=>{if('formatBlock'!=_0x47b1a9['type']&&'formatInline'!=_0x47b1a9['type'])return;const {data:_0x2349a4}=_0x47b1a9;if(!_0x2349a4||'replaceImageSource'!=_0x2349a4['commandName'])return;return{'type':'format','content':c(_0x3ef685,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3ff648{['afterInit'](){const _0x8937e=this['editor'];if(!_0x8937e['plugins']['has']('ImageStyleEditing'))return;const _0x200bb5=_0x8937e['plugins']['get']('TrackChangesEditing'),_0x4de9e7=_0x8937e['plugins']['get']('ImageUtils'),_0x57be97={};_0x200bb5['enableCommand']('imageStyle',(_0x1c3d8e,_0x3e5cbc)=>{const _0x4cd89b=_0x8937e['plugins']['get']('Users')['me'],_0x6a5af7=_0x8937e['commands']['get']('imageStyle');let _0x2cd41a=_0x4de9e7['getClosestSelectedImageElement'](_0x8937e['model']['document']['selection']),_0x209f5f=_0x8937e['model']['createRangeOn'](_0x2cd41a),_0x2e103c=_0x6a5af7['value'];if(_0x2e103c==_0x3e5cbc['value'])return;const _0x48eedf={'commandName':'imageStyle','commandParams':[_0x3e5cbc],'formatGroupId':_0x65b9b5()};_0x8937e['model']['change'](()=>{if(_0x200bb5['getSuggestions']()['filter'](_0x44183f=>_0x44183f['isInContent']&&_0x4cd89b==_0x44183f['author']&&('formatBlock'==_0x44183f['type']||'formatInline'==_0x44183f['type'])&&('imageStylePreApply'==_0x44183f['subType']||'imageStylePostApply'==_0x44183f['subType'])&&_0x44183f['getFirstRange']()['isEqual'](_0x209f5f))['forEach'](_0x44b0d4=>_0x200bb5['discardSuggestion'](_0x44b0d4['head'])),_0x2cd41a=_0x4de9e7['getClosestSelectedImageElement'](_0x8937e['model']['document']['selection']),_0x209f5f=_0x8937e['model']['createRangeOn'](_0x2cd41a),_0x6a5af7['refresh'](),_0x8937e['commands']['get']('imageTypeInline')['refresh'](),_0x8937e['commands']['get']('imageTypeBlock')['refresh'](),_0x2e103c=_0x6a5af7['value'],_0x2e103c!=_0x3e5cbc['value'])return _0x4de9e7['isInlineImage'](_0x2cd41a)&&_0x6a5af7['shouldConvertImageType'](_0x3e5cbc['value'],_0x2cd41a)?(_0x1c3d8e({..._0x3e5cbc,'setImageSizes':!0x1}),_0x2cd41a=_0x4de9e7['getClosestSelectedImageElement'](_0x8937e['model']['document']['selection']),void _0x200bb5['markBlockFormat'](_0x2cd41a,{..._0x48eedf,'commandReversedParams':[{'value':_0x2e103c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4de9e7['isBlockImage'](_0x2cd41a)?_0x200bb5['markBlockFormat'](_0x2cd41a,_0x48eedf,[],'imageStylePostApply'):_0x200bb5['markInlineFormat'](_0x209f5f,_0x48eedf,'imageStylePostApply'));});});for(const _0x2d76a6 of _0x8937e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x57be97[_0x2d76a6['name']]=_0x2d76a6['title']['toLowerCase']();_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1b53f6])=>{_0x4de9e7['setImageNaturalSizeAttributes'](_0x1b53f6['getContainedElement']());}),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c67bc,_0x503a6)=>{_0x200bb5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c67bc,{'commandName':_0x503a6['commandName'],'commandParams':_0x503a6['commandReversedParams']});}),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5c3480,_0x5dcc8d){if(_0x3d439e(_0x5c3480,_0x5dcc8d))return[_0x5c3480,_0x5dcc8d];if(_0x3d439e(_0x5dcc8d,_0x5c3480))return[_0x5dcc8d,_0x5c3480];return null;});const _0x2b46cd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d439e(_0x82f81f,_0x24f195){const _0x403958=_0x2b46cd['findIndex'](({type:_0x5c4a18,subType:_0x241430})=>_0x82f81f['type']==_0x5c4a18&&_0x82f81f['subType']==_0x241430),_0x1507fe=_0x2b46cd['findIndex'](({type:_0x53c1c9,subType:_0x328045})=>_0x24f195['type']==_0x53c1c9&&_0x24f195['subType']==_0x328045);if(_0x403958<0x0||_0x1507fe<0x0)return!0x1;const _0x3eee95=_0x82f81f['getFirstRange'](),_0x93403d=_0x24f195['getFirstRange']();if((0x0==_0x403958||0x1==_0x403958)&&0x2==_0x1507fe&&_0x3eee95['isIntersecting'](_0x93403d))return!0x0;if(0x2==_0x403958&&0x3==_0x1507fe){const _0x59c5d8=_0x200bb5['_findSuggestions'](_0x3eee95,'insertion')['filter'](({suggestion:_0x4451b5,meta:_0x37598e})=>_0x37598e['isOwn']&&'convertInlineImageToBlock'==_0x4451b5['subType']);if(_0x59c5d8['length']>0x1&&_0x93403d['end']['isEqual'](_0x3eee95['start']))return!0x0;if(0x1==_0x59c5d8['length']&&(_0x3eee95['start']['isEqual'](_0x93403d['end'])||_0x3eee95['end']['isEqual'](_0x93403d['start'])))return!0x0;}if(0x3==_0x403958&&0x3==_0x1507fe&&_0x3eee95['start']['isBefore'](_0x93403d['start'])){const _0x13b9ee=_0x3eee95['end']['nodeAfter'],_0x45c462=_0x93403d['start']['nodeBefore'];return _0x4de9e7['isBlockImage'](_0x13b9ee)&&_0x13b9ee===_0x45c462;}return!0x1;}_0x8937e['model']['document']['registerPostFixer'](()=>{let _0x442b22=!0x1;const _0x561a49=Array['from'](_0x8937e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a4b3b,data:_0x45f047}of _0x561a49){const {group:_0x2b4fc,type:_0x5b2bf6,subType:_0x48b600,id:_0x3fc1b7}=_0x200bb5['_splitMarkerName'](_0x2a4b3b);if('suggestion'==_0x2b4fc&&_0x200bb5['hasSuggestion'](_0x3fc1b7)){if('formatBlock'==_0x5b2bf6&&('imageStylePreApply'==_0x48b600||'imageStylePostApply'==_0x48b600)){const _0x4e3acc=_0x200bb5['getSuggestion'](_0x3fc1b7);if(_0x45f047['newRange']){const _0x21be72=_0x4e3acc['getFirstRange']()['getContainedElement']();if(_0x4de9e7['isBlockImage'](_0x21be72))continue;_0x200bb5['discardSuggestion'](_0x4e3acc),_0x442b22=!0x0;}}if('insertion'==_0x5b2bf6&&'imageCaption'==_0x48b600&&!_0x45f047['newRange']){const _0x41ad55=_0x200bb5['getSuggestion'](_0x3fc1b7);_0x41ad55['next']&&_0x41ad55['next']['isInContent']&&(_0x200bb5['discardSuggestion'](_0x41ad55['next']),_0x442b22=!0x0);}}}return _0x442b22;}),this['_registerLegacyDescription'](_0x57be97);}['_registerLegacyDescription'](_0x2b1a67){const _0x4eecda=this['editor'],_0x2e0780=_0x4eecda['locale'];_0x4eecda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29dbac=>{if('formatBlock'!=_0x29dbac['type']&&'formatInline'!=_0x29dbac['type'])return;const {data:_0x118464}=_0x29dbac;if(!_0x118464||'imageStyle'!=_0x118464['commandName'])return;const _0x2f221e=_0x118464['commandParams'][0x0]['value'];return _0x2c69ac('side'===_0x2f221e?c(_0x2e0780,'FORMAT_SIDE_IMAGE'):_0x2b1a67[_0x2f221e]||_0x2f221e);function _0x2c69ac(_0x121290){return{'type':'format','content':c(_0x2e0780,'*Format:*\x20%0',_0x121290)};}});}}class ut extends _0x3ff648{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e4a03){super(_0x1e4a03),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x331071=this['editor'],_0x13229d=_0x331071['commands']['get']('importWord'),_0x5d0c89=_0x331071['commands']['get']('trackChanges');_0x13229d&&(_0x13229d['on']('execute',(_0xdfbe2e,[,_0x5f457b])=>{this['_trackChangesValueDuringImport']=_0x5d0c89['value'],_0x5f457b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13229d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13229d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5d0c89['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x331071['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5d57ea,_0x3cbf52){const {suggestions:_0x3d25cb}=_0x3cbf52,_0x386e90=this['editor']['commands']['get']('trackChanges'),_0x521985=_0x386e90['value'];this['_trackChangesValueDuringImport']!==_0x521985&&(_0x386e90['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d25cb&&_0x3d25cb['forEach'](({id:_0x1041cb,type:_0x54002a,author:_0x15baa2,created_at:_0x7a9d8c})=>{const _0x48ed61={'id':_0x1041cb,'type':_0x54002a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15baa2,'createdAt':_0x7a9d8c?new Date(_0x7a9d8c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x48ed61);});}}class ft extends _0x3ff648{['afterInit'](){const _0x3dc9c9=this['editor'],_0x30dbe6=_0x3dc9c9['plugins']['get']('TrackChangesEditing');if(_0x3dc9c9['plugins']['has']('IndentEditing')&&(_0x30dbe6['enableCommand']('indent'),_0x30dbe6['enableCommand']('outdent')),_0x3dc9c9['plugins']['has']('IndentBlock')){for(const _0x641ea1 of['indentBlock','outdentBlock'])_0x30dbe6['enableDefaultAttributesIntegration'](_0x641ea1);}const _0x5d7aee=_0x3dc9c9['locale'];_0x30dbe6['registerBlockAttribute']('blockIndent'),_0x30dbe6['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5d7aee,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe3dd0c=this['editor'],_0x3234f3=_0xe3dd0c['locale'],_0x16f02b=_0xe3dd0c['plugins']['get']('TrackChangesEditing');_0x16f02b['descriptionFactory']['registerDescriptionCallback'](_0x701581=>{if('formatBlock'!=_0x701581['type'])return;const {data:_0x2905ac}=_0x701581;if(!_0x2905ac)return;if('indentBlock'!=_0x2905ac['commandName']&&'outdentBlock'!=_0x2905ac['commandName'])return;const _0x115e60=_0x701581['getItems']()[0x0],_0x45414d=_0x16f02b['descriptionFactory']['getItemLabel'](_0x115e60);return'indentBlock'==_0x2905ac['commandName']?{'type':'format','content':c(_0x3234f3,'*Indent:*\x20%0',_0x45414d)}:'outdentBlock'==_0x2905ac['commandName']?{'type':'format','content':c(_0x3234f3,'*Outdent:*\x20%0',_0x45414d)}:void 0x0;});}}class ht extends _0x3ff648{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3ff648{['afterInit'](){const _0x32a6e6=this['editor'];if(!_0x32a6e6['plugins']['has']('LinkEditing'))return;const _0x29feac=_0x32a6e6['plugins']['get']('TrackChangesEditing'),_0x13653d=_0x32a6e6['commands']['get']('link');_0x29feac['enableDefaultAttributesIntegration']('link'),_0x29feac['enableDefaultAttributesIntegration']('unlink'),_0x29feac['registerInlineAttribute']('linkHref');for(const _0x56a26e of _0x13653d['manualDecorators'])_0x29feac['registerInlineAttribute'](_0x56a26e['id']),_0x29feac['descriptionFactory']['registerAttributeLabel'](_0x56a26e['id'],'link\x20('+_0x56a26e['label']['toLowerCase']()+')');_0x29feac['descriptionFactory']['registerDescriptionCallback'](_0xcbb67f=>{if('attribute'!=_0xcbb67f['type'])return;const {data:_0x5d6cfd}=_0xcbb67f;if(!_0x5d6cfd||'linkHref'!=_0x5d6cfd['key'])return;const _0x172698=_0x5d6cfd['newValue'],_0x5d35a0=_0x32a6e6['locale'];return{'type':'format','content':null==_0x172698?c(_0x5d35a0,'*Remove\x20link*'):c(_0x5d35a0,'*Set\x20link:*\x20%0','\x22'+_0x172698+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20a0f4=this['editor'],_0x331c90=_0x20a0f4['locale'];_0x20a0f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b79bb=>{if('formatInline'!=_0x1b79bb['type'])return;const {data:_0x39cd1a}=_0x1b79bb;if(_0x39cd1a){if('link'==_0x39cd1a['commandName']){const _0x4f9fc2=_0x39cd1a['commandParams'][0x0];return{'type':'format','content':c(_0x331c90,'*Set\x20link:*\x20%0','\x22'+_0x4f9fc2+'\x22')};}return'unlink'==_0x39cd1a['commandName']?{'type':'format','content':c(_0x331c90,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3ff648{['afterInit'](){const _0x765cb=this['editor'],_0x43e819=_0x765cb['locale'];if(!_0x765cb['plugins']['has']('LegacyListEditing'))return;const _0x291d8c=_0x765cb['plugins']['get']('TrackChangesEditing'),_0xc41639=_0x765cb['plugins']['has']('LegacyTodoListEditing');function _0x34f278(_0x1a555e){return()=>{const _0x516703=_0x765cb['model']['document']['selection'],_0x26b6c7=_0x765cb['commands']['get'](_0x1a555e);if(_0x26b6c7['value'])return void _0x765cb['execute']('paragraph',{});const _0x5b2510=_0x1a555e['slice'](0x0,-0x4),_0x286569=function(_0x430a15,_0x31200a,_0x103e6e){let _0x11c3ab=Array['from'](_0x430a15)['filter'](_0x50785b=>function(_0x428600,_0x4fd8ec){return _0x4fd8ec['checkChild'](_0x428600['parent'],'listItem')&&!_0x4fd8ec['isObject'](_0x428600);}(_0x50785b,_0x103e6e));_0x11c3ab=_0x11c3ab['filter'](_0x3cf547=>!_0x3cf547['is']('element','listItem')||_0x3cf547['getAttribute']('listType')!=_0x31200a);const _0x18a2a7=new Set();for(const _0x59491b of _0x11c3ab)_0x59491b['is']('element','listItem')?_0x18a2a7['add'](Le(_0x59491b)):_0x18a2a7['add'](_0x59491b);return Array['from'](_0x18a2a7);}(_0x516703['getSelectedBlocks'](),_0x5b2510,_0x765cb['model']['schema']);_0x765cb['model']['change'](()=>{for(const _0x5b278b of _0x286569)_0x291d8c['markBlockFormat'](_0x5b278b,{'commandName':_0x1a555e,'commandParams':[{'forceValue':!_0x26b6c7['value']}],'formatGroupId':'blockName'},Ee(_0x5b278b));});};}function _0x4c1759(_0x55edf2){return()=>{const _0x56d7d1=function(_0x1c24b4){let _0x6acc7d=Array['from'](_0x1c24b4);const _0xa4f3af=_0x6acc7d['findIndex'](_0x25212f=>'listItem'!=_0x25212f['name']);return _0xa4f3af>-0x1&&(_0x6acc7d=_0x6acc7d['slice'](0x0,_0xa4f3af)),_0x6acc7d;}(_0x765cb['model']['document']['selection']['getSelectedBlocks']()),_0x548160=_0x765cb['model']['createRange'](_0x765cb['model']['createPositionAt'](_0x56d7d1[0x0],'before'),_0x765cb['model']['createPositionAt'](_0x56d7d1[_0x56d7d1['length']-0x1],'end'));_0x765cb['model']['change'](()=>{_0x291d8c['markBlockFormat'](_0x548160,{'commandName':_0x55edf2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3dffe7){const _0x1ff064=new Set();for(const _0x239495 of _0x3dffe7){let _0x44b199=_0x239495['nextSibling'];for(;_0x44b199&&_0x44b199['getAttribute']('listIndent')>_0x239495['getAttribute']('listIndent');)_0x1ff064['add'](_0x44b199),_0x44b199=_0x44b199['nextSibling'];}return Array['from'](_0x1ff064);}(_0x56d7d1));});};}_0x291d8c['enableCommand']('numberedList',_0x34f278('numberedList')),_0x291d8c['enableCommand']('bulletedList',_0x34f278('bulletedList')),_0xc41639&&_0x291d8c['enableCommand']('todoList',_0x34f278('todoList')),_0x291d8c['enableCommand']('indentList',_0x4c1759('indentList')),_0x291d8c['enableCommand']('outdentList',_0x4c1759('outdentList')),_0xc41639&&_0x291d8c['enableCommand']('checkTodoList',()=>{const _0xf687f9=_0x765cb['commands']['get']('checkTodoList'),_0x43f3ac=Array['from'](_0xf687f9['_selectedElements']);_0x43f3ac['filter'](_0x102493=>_0x102493['getAttribute']('todoListChecked')!=_0xf687f9['value']),_0x765cb['model']['change'](()=>{for(const _0x47753e of _0x43f3ac)_0x291d8c['markBlockFormat'](_0x47753e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xf687f9['value']}]});});}),_0x291d8c['descriptionFactory']['registerElementLabel']('listItem',_0x1e506e=>c(_0x43e819,'ELEMENT_LIST_ITEM',_0x1e506e)),_0x291d8c['descriptionFactory']['registerDescriptionCallback'](_0x163a32=>{if('formatBlock'!=_0x163a32['type']&&'formatInline'!=_0x163a32['type'])return;const {data:_0x2f9fe7}=_0x163a32;if(_0x2f9fe7){if('numberedList'==_0x2f9fe7['commandName']||'bulletedList'==_0x2f9fe7['commandName']||'todoList'==_0x2f9fe7['commandName'])switch(_0x2f9fe7['commandName']['replace']('List','')){case'bulleted':return _0x36ef29(c(_0x43e819,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36ef29(c(_0x43e819,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36ef29(c(_0x43e819,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2f9fe7['commandName'])return{'type':'format','content':c(_0x43e819,'*Indent:*\x20%0',c(_0x43e819,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2f9fe7['commandName'])return{'type':'format','content':c(_0x43e819,'*Outdent:*\x20%0',c(_0x43e819,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2f9fe7['commandName'])return _0x2f9fe7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x43e819,'*Check\x20item*')}:{'type':'format','content':c(_0x43e819,'*Uncheck\x20item*')};}function _0x36ef29(_0x5a4e48){return{'type':'format','content':c(_0x43e819,'*Change\x20to:*\x20%0',_0x5a4e48)};}});}}function Le(_0x360d84){const _0x2f8c24=_0x360d84['getAttribute']('listIndent');if(0x0==_0x2f8c24)return _0x360d84;let _0x138c7d=_0x360d84;for(;_0x360d84['previousSibling']&&_0x360d84['previousSibling']['is']('element','listItem');){const _0xa25477=_0x360d84['previousSibling']['getAttribute']('listIndent');if(_0xa25477==_0x2f8c24)_0x138c7d=_0x360d84['previousSibling'];else{if(_0xa25477<_0x2f8c24)break;}_0x360d84=_0x360d84['previousSibling'];}return _0x138c7d;}function Ee(_0x40a53c){const _0x3c56a3=[];if(_0x40a53c['is']('element','listItem')&&_0x40a53c['getAttribute']('listIndent')>0x0){let _0x37aeaf=_0x40a53c['nextSibling'];for(;_0x37aeaf&&'listItem'==_0x37aeaf['name']&&_0x37aeaf['getAttribute']('listIndent')==_0x40a53c['getAttribute']('listIndent');)_0x3c56a3['push'](_0x37aeaf),_0x37aeaf=_0x37aeaf['nextSibling'];}return _0x3c56a3;}class Q extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x58a528=this['editor']['config']['get']('list.properties'),_0x56511c=this['editor']['plugins']['get']('TrackChangesEditing');_0x58a528['styles']&&_0x56511c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x58a528['reversed']&&_0x56511c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x58a528['startIndex']&&_0x56511c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x56511c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x20667d,_0x140966={}){const _0x5df3ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44c6c5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5df3ec['markMultiRangeBlockFormat'](_0x44c6c5,{'commandName':'listStyle','commandParams':[{'type':_0x140966['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5a2024,_0x3fbc31={}){const _0x49c6ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d0d6d=this['_getSuggestionBlocks'](_0x5d81df=>_0x5d81df['is']('element','listItem')&&'numbered'===_0x5d81df['getAttribute']('listType'));if(_0x3d0d6d['length']<0x1)return;const _0x124225=_0x3d0d6d['map'](_0x2a519d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a519d,'before'),this['editor']['model']['createPositionAt'](_0x2a519d,0x0)));this['editor']['model']['change'](()=>{_0x49c6ab['markMultiRangeBlockFormat'](_0x124225,{'commandName':'listReversed','commandParams':[{'reversed':_0x3fbc31['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b5181,_0x920b25={}){const _0xaa0250=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e50e1=this['_getSuggestionBlocks'](_0x478e52=>_0x478e52['is']('element','listItem')&&'numbered'===_0x478e52['getAttribute']('listType'));if(_0x2e50e1['length']<0x1)return;const _0x26ba12=_0x2e50e1['map'](_0x244a61=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x244a61,'before'),this['editor']['model']['createPositionAt'](_0x244a61,0x0)));this['editor']['model']['change'](()=>{_0xaa0250['markMultiRangeBlockFormat'](_0x26ba12,{'commandName':'listStart','commandParams':[{'startIndex':_0x920b25['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a8582){if('formatBlock'!=_0x5a8582['type']&&'formatInline'!=_0x5a8582['type'])return;const _0xcbd673=this['editor']['locale'],{data:_0x4434d6}=_0x5a8582;if(!_0x4434d6)return;let _0x2fc5a8,_0x180e5e;switch(_0x4434d6['commandName']){case'listStyle':_0x2fc5a8='*Change\x20to:*\x20%0',_0x180e5e={'type':'format','content':c(_0xcbd673,_0x2fc5a8,c(_0xcbd673,this['_getTranslationKeyForListStyle'](_0x4434d6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2fc5a8=_0x4434d6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x180e5e={'type':'format','content':c(_0xcbd673,_0x2fc5a8)};break;case'listStart':_0x2fc5a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x180e5e={'type':'format','content':c(_0xcbd673,_0x2fc5a8,_0x4434d6['commandParams'][0x0]['startIndex'])};}return _0x180e5e;}['_getSuggestionBlocksForListStyle'](){const _0x15949a=this['editor']['plugins']['get']('LegacyListUtils');let _0x3d8e4c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3d8e4c[0x0]?.['is']('element','listItem')&&_0x3d8e4c['unshift'](..._0x15949a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3d8e4c[_0x3d8e4c['length']-0x1]?.['is']('element','listItem')&&_0x3d8e4c['push'](..._0x15949a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3d8e4c=[...new Set(_0x3d8e4c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3d8e4c=_0x3d8e4c['filter'](_0x38b564=>_0x38b564['is']('element','listItem'))),_0x3d8e4c;}['_getSuggestionBlocks'](_0x3808e4){const _0x43ace6=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d1cd2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3808e4)['map'](_0x30f38a=>{const _0x24e6f5=this['editor']['model']['createPositionAt'](_0x30f38a,0x0);return[..._0x43ace6['getSiblingNodes'](_0x24e6f5,'backward'),..._0x43ace6['getSiblingNodes'](_0x24e6f5,'forward')];})['flat']();return _0x1d1cd2=[...new Set(_0x1d1cd2)],_0x1d1cd2;}['_getTranslationKeyForListStyle'](_0x12e041){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x12e041)||'default')['toUpperCase']()+'_LIST_'+_0x12e041['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3ff648{['afterInit'](){const _0x2490dc=this['editor'];if(!_0x2490dc['plugins']['has']('MediaEmbedEditing'))return;const _0x36f2d0=_0x2490dc['plugins']['get']('TrackChangesEditing'),_0x120308=_0x2490dc['locale'];_0x36f2d0['enableCommand']('mediaEmbed'),_0x36f2d0['descriptionFactory']['registerElementLabel']('media',_0x2b7731=>c(_0x120308,'ELEMENT_MEDIA',_0x2b7731)),_0x2490dc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3f3a40,{writer:_0x34a374,options:_0x86b24d})=>{if(_0x86b24d['showSuggestionHighlights'])return _0x34a374['createEmptyElement']('div');},'converterPriority':'high'}),_0x2490dc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x310dca,_0x423ff9,_0x124ad2)=>{_0x124ad2['options']['showSuggestionHighlights']&&_0x310dca['stop']();},{'priority':'high'});}}class pt extends _0x3ff648{['afterInit'](){const _0x1d1463=this['editor'];_0x1d1463['plugins']['has']('MentionEditing')&&_0x1d1463['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3ff648{['afterInit'](){const _0x493a24=this['editor'];if(!_0x493a24['plugins']['has']('MergeFieldsEditing'))return;const _0x2c1088=_0x493a24['plugins']['get']('TrackChangesEditing'),_0x3f1bb6=_0x493a24['locale'];_0x2c1088['enableCommand']('insertMergeField'),_0x2c1088['enableCommand']('insertMergeFieldBlock'),_0x2c1088['enableCommand']('insertMergeFieldImage'),_0x2c1088['descriptionFactory']['registerElementLabel']('mergeField',_0x18c938=>c(_0x3f1bb6,'ELEMENT_MERGE_FIELD',_0x18c938)),_0x2c1088['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x26b6ac=>c(_0x3f1bb6,'ELEMENT_MERGE_FIELD',_0x26b6ac)),_0x2c1088['descriptionFactory']['registerDescriptionCallback'](_0xb8768b=>{if('insertion'!=_0xb8768b['type']&&'deletion'!=_0xb8768b['type'])return;const _0xb295a=_0xb8768b['getContainedElement']();if(null==_0xb295a)return;const _0x5e2ebc=_0x493a24['plugins']['get']('MergeFieldsEditing');let _0x3485fc;switch(_0x5e2ebc['getMergeFieldType'](_0xb295a)){case null:return;case'image':{const _0x4034a7=_0x5e2ebc['unwrapAffixes'](_0xb295a['getAttribute']('src'));_0x3485fc=_0x5e2ebc['getLabel'](_0x4034a7)||_0x4034a7;break;}default:{const _0x29d6ca=_0xb295a['getAttribute']('id');_0x3485fc=_0x5e2ebc['getLabel'](_0x29d6ca)||_0x29d6ca;break;}}return'insertion'==_0xb8768b['type']?{'type':'insertion','content':c(_0x3f1bb6,'*Insert:*\x20%0','\x22'+_0x3485fc+'\x22\x20'+c(_0x3f1bb6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3f1bb6,'*Remove:*\x20%0','\x22'+_0x3485fc+'\x22\x20'+c(_0x3f1bb6,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3ff648{['afterInit'](){const _0x2facc7=this['editor'],_0x481872=_0x2facc7['plugins']['get']('TrackChangesEditing');_0x2facc7['plugins']['has']('MultiLevelList')&&(_0x481872['enableDefaultAttributesIntegration']('multiLevelList'),_0x481872['registerBlockAttribute']('listMarkerStyle'),_0x481872['descriptionFactory']['registerDescriptionCallback'](_0x33f12c=>this['handleDescriptions'](_0x33f12c)));}['handleDescriptions'](_0x5c034a){const _0x2d3ec3=this['editor']['locale'],{data:_0x4f27c0}=_0x5c034a,_0x3eef8d={'type':'format','content':''};if(_0x4f27c0&&'listMarkerStyle'==_0x4f27c0['key']){if(!_0x4f27c0['oldValue'])return{'type':'format','content':c(_0x2d3ec3,'*Set\x20format:*\x20%0',c(_0x2d3ec3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f27c0['newValue']+')'};if(!_0x4f27c0['newValue']){let _0x219b5c=_0x5c034a['head'];for(;_0x219b5c;){if(_0x219b5c['data']&&'listType'==_0x219b5c['data']['key']&&_0x219b5c['data']['newValue'])return _0x3eef8d;_0x219b5c=_0x219b5c['next'];}return{'type':'format','content':c(_0x2d3ec3,'*Remove\x20format:*\x20%0',c(_0x2d3ec3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f27c0['oldValue']+')'};}}}}class bt extends _0x3ff648{['afterInit'](){const _0xea10ad=this['editor'];if(!_0xea10ad['plugins']['has']('PageBreakEditing'))return;_0xea10ad['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1f35be=_0xea10ad['plugins']['get']('TrackChangesEditing'),_0x3b76c8=_0xea10ad['locale'];_0x1f35be['descriptionFactory']['registerElementLabel']('pageBreak',_0x47fb2d=>c(_0x3b76c8,'ELEMENT_PAGE_BREAK',_0x47fb2d));}}class yt extends _0x3ff648{['afterInit'](){const _0x95c4aa=this['editor'];if(!_0x95c4aa['plugins']['has']('Paragraph'))return;const _0x1258c4=_0x95c4aa['locale'],_0x154127=_0x95c4aa['plugins']['get']('TrackChangesEditing');_0x154127['descriptionFactory']['registerElementLabel']('paragraph',_0x33b3ff=>c(_0x1258c4,'ELEMENT_PARAGRAPH',_0x33b3ff)),_0x154127['enableDefaultAttributesIntegration']('paragraph'),_0x154127['enableCommand']('insertParagraph'),_0x95c4aa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x95c4aa),{'priority':'highest'}),_0x95c4aa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x42f710,_0x266f8d,_0x1fe43e)=>{_0x1fe43e['options']['showSuggestionHighlights']&&nr(_0x95c4aa,{'showActiveMarker':!0x1})(_0x42f710,_0x266f8d,_0x1fe43e);},{'priority':'highest'});const _0x3a36a0=_0x154127['descriptionFactory'];_0x3a36a0['registerDescriptionCallback'](_0x241b96=>{if('insertion'!==_0x241b96['type'])return;const {start:_0x507bef,end:_0x503f24}=_0x241b96['getFirstRange']();if(!_0x507bef['isTouching'](_0x503f24)||!_0x507bef['nodeAfter'])return;const _0x7ec85=_0x95c4aa['model']['schema'],_0x46700c=_0x507bef['nodeAfter'];return _0x7ec85['isBlock'](_0x46700c)&&!_0x7ec85['isLimit'](_0x46700c)&&_0x7ec85['checkChild'](_0x46700c,'$text')?{'type':'insertion','content':c(_0x1258c4,'*Insert:*\x20%0',_0x3a36a0['getItemLabel'](_0x46700c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dba9c=this['editor'],_0x251862=_0x3dba9c['locale'];_0x3dba9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150f33=>{if('formatBlock'!=_0x150f33['type'])return;const {data:_0x48a7c1}=_0x150f33;return _0x48a7c1&&'paragraph'==_0x48a7c1['commandName']?{'type':'format','content':c(_0x251862,'*Change\x20to:*\x20%0',c(_0x251862,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x28647f,{showActiveMarker:_0x25d450=!0x0}={}){return(_0x1d8f19,_0x1b8f85,_0x4882ac)=>{const _0x27ef11=_0x28647f['plugins']['get']('TrackChangesEditing'),_0x1b6d3d=_0x1b8f85['markerRange']['start'],_0x50be75=_0x1b8f85['markerRange']['end'],_0x504ce7=_0x28647f['model']['schema'];if(!_0x1b6d3d['isTouching'](_0x50be75)||!_0x1b6d3d['nodeAfter'])return;const _0x36c96a=_0x1b6d3d['nodeAfter'];if(_0x504ce7['isBlock'](_0x36c96a)&&!_0x504ce7['isLimit'](_0x36c96a)&&_0x504ce7['checkChild'](_0x36c96a,'$text')){if(!_0x4882ac['consumable']['consume'](_0x1b8f85['markerRange'],_0x1d8f19['name']))return;const {id:_0x24e008,authorId:_0x2ff46d}=_0x27ef11['_splitMarkerName'](_0x1b8f85['markerName']),_0x23c9b4=_0x4882ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x24e008,'data-author-id':_0x2ff46d}),_0x2eb983=_0x4882ac['mapper']['toViewPosition'](_0x50be75);_0x25d450&&_0x27ef11['activeMarkers']['includes'](_0x1b8f85['markerName'])&&_0x4882ac['writer']['addClass']('ck-suggestion-marker--active',_0x23c9b4),_0x4882ac['writer']['insert'](_0x2eb983,_0x23c9b4),_0x4882ac['mapper']['bindElementToMarker'](_0x23c9b4,_0x1b8f85['markerName']);}};}class jt extends _0x3ff648{['afterInit'](){const _0x328371=this['editor'];_0x328371['commands']['get']('replaceSource')&&_0x328371['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3ff648{['afterInit'](){const _0x261961=this['editor'];if(!_0x261961['plugins']['has']('RemoveFormatEditing'))return;_0x261961['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18bf36=this['editor'];_0x18bf36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9f21dd=>{if('formatBlock'!=_0x9f21dd['type']&&'formatInline'!=_0x9f21dd['type'])return;const {data:_0x5c3840}=_0x9f21dd;return _0x5c3840&&'removeFormat'==_0x5c3840['commandName']?{'type':'format','content':c(_0x18bf36['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3ff648{['afterInit'](){const _0x47afa4=this['editor'];if(!_0x47afa4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3ee766=_0x47afa4['plugins']['get']('TrackChangesEditing');_0x3ee766['enableCommand']('goToPreviousRestrictedEditingException'),_0x3ee766['enableCommand']('goToNextRestrictedEditingException');const _0x8d2939=_0x47afa4['plugins']['get']('RestrictedEditingModeEditing');_0x8d2939['enableCommand']('trackChanges'),_0x8d2939['enableCommand']('acceptSuggestion'),_0x8d2939['enableCommand']('discardSuggestion'),_0x8d2939['enableCommand']('acceptAllSuggestions'),_0x8d2939['enableCommand']('discardAllSuggestions'),_0x8d2939['enableCommand']('acceptSelectedSuggestions'),_0x8d2939['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3ff648{['afterInit'](){const _0x102e0c=this['editor'];if(!_0x102e0c['plugins']['has']('ShiftEnter'))return;const _0x1f708a=_0x102e0c['plugins']['get']('TrackChangesEditing');_0x1f708a['enableCommand']('shiftEnter'),_0x102e0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x102e0c),{'priority':'high'}),_0x102e0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x102e0c),{'priority':'high'}),_0x102e0c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x31ade8,_0xcb5d0a,_0x51cad1)=>{_0x51cad1['options']['showSuggestionHighlights']&&je(_0x102e0c,{'showActiveMarker':!0x1})(_0x31ade8,_0xcb5d0a,_0x51cad1);}),_0x1f708a['descriptionFactory']['registerElementLabel']('softBreak',_0x1b274b=>c(_0x102e0c['locale'],'ELEMENT_LINE_BREAK',_0x1b274b));}}function je(_0x1499e2,{showActiveMarker:_0xc560cc=!0x0}={}){return(_0x58e678,_0x2d8bf4,_0x2d713e)=>{const _0x458904=_0x1499e2['plugins']['get']('TrackChangesEditing');if(!_0x2d713e['consumable']['test'](_0x2d8bf4['markerRange'],_0x58e678['name']))return;const _0xb47f4c=_0x1499e2['model'];for(const _0x549ff2 of _0x2d8bf4['markerRange']['getItems']()){if(!_0x549ff2['is']('element','softBreak'))continue;const _0x13371e='deletion'==_0x2d8bf4['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x366add,authorId:_0x55ec23}=_0x458904['_splitMarkerName'](_0x2d8bf4['markerName']),_0x41dd58=_0x2d713e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13371e,'data-suggestion':_0x366add,'data-author-id':_0x55ec23}),_0x4edd1d=_0x2d713e['mapper']['toViewPosition'](_0xb47f4c['createPositionBefore'](_0x549ff2));_0xc560cc&&_0x458904['activeMarkers']['includes'](_0x2d8bf4['markerName'])&&_0x2d713e['writer']['addClass']('ck-suggestion-marker--active',_0x41dd58),_0x2d713e['writer']['insert'](_0x4edd1d,_0x41dd58),_0x2d713e['mapper']['bindElementToMarker'](_0x41dd58,_0x2d8bf4['markerName']);}};}class _t extends _0x3ff648{['afterInit'](){const _0x46d621=this['editor'],_0x36f168=_0x46d621['model'],_0x2101d9=_0x46d621['locale'];if(!_0x46d621['plugins']['has']('StandardEditingModeEditing'))return;const _0x1a24f3=_0x46d621['plugins']['get']('TrackChangesEditing'),_0x191ce1='restrictedEditingException',_0x55e2be=_0x46d621['commands']['get'](_0x191ce1);_0x1a24f3['enableCommand'](_0x191ce1,(_0x5d69d7,_0xb83f37={})=>{const _0x51b68a=_0x36f168['document']['selection'];if(_0x51b68a['isCollapsed'])return void _0x5d69d7(_0xb83f37);const _0x50f51c=void 0x0!==_0xb83f37['forceValue']?_0xb83f37['forceValue']:!_0x55e2be['value'];_0x36f168['change'](()=>{const _0x5a2b11=Array['from'](_0x51b68a['getRanges']());for(const _0x3f0f0b of _0x5a2b11){const _0xc1d369=_0x50f51c?[_0x3f0f0b]:io(_0x191ce1,_0x3f0f0b,_0x36f168);for(const _0x53ec8a of _0xc1d369)_0x1a24f3['markInlineFormat'](_0x53ec8a,{'commandName':_0x191ce1,'commandParams':[{'forceValue':_0x50f51c}]});}});}),_0x1a24f3['descriptionFactory']['registerDescriptionCallback'](_0x1e2f6e=>{if('formatBlock'!=_0x1e2f6e['type']&&'formatInline'!=_0x1e2f6e['type'])return;const {data:_0x4e9128}=_0x1e2f6e;return _0x4e9128&&_0x4e9128['commandName']==_0x191ce1?_0x4e9128['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2101d9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x2101d9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3ff648{['afterInit'](){const _0x2fa21b=this['editor'];if(!_0x2fa21b['plugins']['has']('Style')||!_0x2fa21b['plugins']['has']('DataSchema'))return;const _0x107dea=_0x2fa21b['plugins']['get']('TrackChangesEditing'),_0x5b5273=_0x2fa21b['locale'],_0x453792=_0x2fa21b['config']['get']('style')||{},_0x33650a=_0x2fa21b['plugins']['get']('GeneralHtmlSupport'),_0x354ddb=_0x2fa21b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fa21b['plugins']['get']('DataSchema'),_0x453792['definitions']);_0x107dea['enableDefaultAttributesIntegration']('style');const _0x5bd931=new Set();for(const _0x3a8f34 of _0x354ddb['block']){const _0x2c0119=_0x33650a['getGhsAttributeNameForElement'](_0x3a8f34['element']);_0x5bd931['add'](_0x2c0119);}const _0x24bb2d=new Set();for(const _0x3b8857 of _0x354ddb['inline']){const _0x319d87=_0x33650a['getGhsAttributeNameForElement'](_0x3b8857['element']);_0x24bb2d['add'](_0x319d87);for(const _0x5e82af of _0x3b8857['ghsAttributes'])_0x24bb2d['add'](_0x5e82af);}for(const _0x497462 of _0x5bd931)_0x107dea['registerBlockAttribute'](_0x497462),_0x107dea['descriptionFactory']['registerAttributeLabel'](_0x497462,c(_0x5b5273,'FORMAT_STYLE'));for(const _0xe547 of _0x24bb2d)_0x107dea['registerInlineAttribute'](_0xe547),_0x107dea['descriptionFactory']['registerAttributeLabel'](_0xe547,c(_0x5b5273,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cbc6f=this['editor'],_0x50330d=_0x4cbc6f['locale'];_0x4cbc6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150d56=>{if('formatBlock'!=_0x150d56['type']&&'formatInline'!=_0x150d56['type'])return;const {data:_0x113820}=_0x150d56;return _0x113820&&'style'===_0x113820['commandName']?_0x113820['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x50330d,'*Set\x20format:*\x20%0',_0x113820['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x50330d,'*Remove\x20format:*\x20%0',_0x113820['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3ff648{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x52d630){super(_0x52d630),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x64c584=this['editor'],_0x4f7911=_0x64c584['model']['document']['selection'];if(!_0x64c584['plugins']['has']('TableEditing'))return;const _0x2efb38=_0x64c584['locale'],_0x36b1b0=_0x64c584['plugins']['get']('TrackChangesEditing'),_0x37bcfb=_0x64c584['plugins']['get']('TableUtils');_0x36b1b0['descriptionFactory']['registerElementLabel']('table',_0x10a068=>c(_0x2efb38,'ELEMENT_TABLE',_0x10a068)),this['_setupColumnsRowsFixing'](),_0x36b1b0['enableCommand']('insertTable'),_0x36b1b0['enableCommand']('selectTableRow'),_0x36b1b0['enableCommand']('selectTableColumn');for(const _0x269ee2 of['insertTableRowAbove','insertTableRowBelow']){const _0x31dd21=_0x64c584['commands']['get'](_0x269ee2);_0x36b1b0['enableCommand'](_0x269ee2,_0x4cb7c3=>{_0x64c584['model']['change'](_0x43829a=>{_0x4cb7c3();const _0x2ed4e9='above'===_0x31dd21['order'],_0x40c737=_0x37bcfb['getSelectionAffectedTableCells'](_0x4f7911),_0x346657=_0x37bcfb['getRowIndexes'](_0x40c737),_0x137775=_0x2ed4e9?_0x346657['first']-0x1:_0x346657['last']+0x1,_0x2ed4a7=_0x40c737[0x0]['findAncestor']('table'),_0x36b10d=_0x37bcfb['createTableWalker'](_0x2ed4a7,{'startRow':_0x137775,'endRow':_0x137775}),_0x5a1281=Array['from'](_0x36b10d)['map'](_0x4e2339=>_0x43829a['createRangeOn'](_0x4e2339['cell']));_0x36b1b0['markMultiRangeInsertion'](_0x5a1281,'tableRow');});});}for(const _0x3aa372 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1fec27=_0x64c584['commands']['get'](_0x3aa372);_0x36b1b0['enableCommand'](_0x3aa372,_0x54252c=>{_0x64c584['model']['change'](_0xdb041f=>{_0x54252c();const _0x9ba032='left'===_0x1fec27['order'],_0x10cc39=_0x37bcfb['getSelectionAffectedTableCells'](_0x4f7911),_0x656901=_0x37bcfb['getColumnIndexes'](_0x10cc39),_0x507b87=_0x9ba032?_0x656901['first']-0x1:_0x656901['last']+0x1,_0x3de50f=_0x10cc39[0x0]['findAncestor']('table'),_0x5e6a29=_0x37bcfb['createTableWalker'](_0x3de50f,{'startRow':0x0,'column':_0x507b87,'includeAllSlots':!0x1}),_0x33f911=Array['from'](_0x5e6a29)['map'](_0x1a9a78=>_0xdb041f['createRangeOn'](_0x1a9a78['cell']));_0x36b1b0['markMultiRangeInsertion'](_0x33f911,'tableColumn');});});}for(const _0x3d5e59 of['removeTableRow','removeTableColumn']){const _0x465287=_0x3d5e59['substr'](0xb),_0x1338bb=_0x465287['toLowerCase'](),_0x25424e=_0x1338bb['substr'](0x0,0x3)+'span',_0x3524e0='table'+_0x465287,_0x22ed02='min'+_0x465287,_0xb5de89='max'+_0x465287;_0x36b1b0['enableCommand'](_0x3d5e59,()=>{_0x64c584['model']['change'](_0x180771=>{const _0x515683=_0x37bcfb['getSelectionAffectedTableCells'](_0x4f7911),_0x32eab7=_0x515683[0x0]['findAncestor']('table');let _0x4d0198;if('removeTableRow'==_0x3d5e59){const _0x4a368a=_0x37bcfb['getRowIndexes'](_0x515683);_0x4d0198={'startRow':_0x4a368a['first'],'endRow':_0x4a368a['last'],'includeAllSlots':!0x0};}else{const _0x3d75d3=_0x37bcfb['getColumnIndexes'](_0x515683);_0x4d0198={'startColumn':_0x3d75d3['first'],'endColumn':_0x3d75d3['last'],'includeAllSlots':!0x0};}const _0x3d61f4=_0x37bcfb['createTableWalker'](_0x32eab7,_0x4d0198),_0x5a4bfb=Array['from'](_0x3d61f4)['map'](({cell:_0x30c5af})=>_0x30c5af),_0x44b366=xe(_0x5a4bfb['filter'](_0x215673=>_0x215673['hasAttribute'](_0x25424e))),_0x3fc4d3=xe(_0x5a4bfb['filter'](_0x49783c=>!_0x49783c['hasAttribute'](_0x25424e)))['map'](_0x4e8a52=>_0x180771['createRangeOn'](_0x4e8a52)),_0x36329d=_0x36b1b0['markMultiRangeDeletion'](_0x3fc4d3,_0x3524e0);if(_0x36329d&&('tableRow'==_0x36329d['subType']||'tableColumn'==_0x36329d['subType'])){const _0xb9e0a5=this['_getSuggestionCoords'](_0x36329d);for(const _0x1bd09c of _0x44b366){const _0x3fde4d=_0x180771['createRangeOn'](_0x1bd09c),_0x52e699=_0x37bcfb['getCellLocation'](_0x1bd09c),_0x347b6e=_0x1bd09c['getAttribute'](_0x25424e)-0x1,_0x481863=_0xb9e0a5[_0x22ed02],_0x3ca51a=_0xb9e0a5[_0xb5de89];_0x481863<=_0x52e699[_0x1338bb]&&_0x52e699[_0x1338bb]+_0x347b6e<=_0x3ca51a&&_0x36329d['addRange'](_0x3fde4d);}}});});}function _0x1623e6(_0x4b40a6){const _0x1239a3=Array['from'](_0x4f7911['getRanges']())['map'](_0x82644c=>_0xc48f37['fromRange'](_0x82644c));_0x64c584['model']['change'](_0x37c0b8=>{const _0x289232=_0x37c0b8['batch'];_0x4b40a6=_0x4b40a6['filter'](_0x3cd0bc=>'$graveyard'!=_0x3cd0bc['root']['rootName']),_0x37c0b8['setSelection'](_0x4b40a6),_0x64c584['commands']['get']('removeTableRow')['refresh'](),_0x64c584['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x64c584['model']['enqueueChange'](()=>{_0x64c584['model']['enqueueChange'](_0x289232,_0x4acaee=>{const _0x4a0d7d=_0x1239a3['filter'](_0x3ada1d=>'$graveyard'!=_0x3ada1d['root']['rootName']);_0x4a0d7d['length']>0x0&&_0x4acaee['setSelection'](_0x4a0d7d);for(const _0xd1d49f of _0x1239a3)_0xd1d49f['detach']();});});});}function _0x199238(_0x77d316){_0x64c584['model']['change'](_0x370857=>{const _0x2961ac=Array['from'](_0x4f7911['getRanges']())['map'](_0x751f45=>_0xc48f37['fromRange'](_0x751f45)),_0x33c455=[];for(const _0x79c463 of _0x77d316)for(const _0x4acd35 of _0x79c463['getItems']({'shallow':!0x0}))_0x33c455['push'](_0x4acd35);for(const _0x4b77f7 of _0x33c455)'$graveyard'!=_0x4b77f7['root']['rootName']&&(_0x370857['setSelection'](_0x370857['createPositionAt'](_0x4b77f7,0x0)),_0x64c584['commands']['get']('removeTableColumn')['refresh'](),_0x64c584['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x47fd85=_0x2961ac['filter'](_0xd35aa=>'$graveyard'!=_0xd35aa['root']['rootName']);_0x47fd85['length']>0x0&&_0x370857['setSelection'](_0x47fd85);for(const _0x68b3f8 of _0x2961ac)_0x68b3f8['detach']();});}function _0xe2e1ca(_0x56c2f2,_0x3f6aaa){return _0x3f6aaa['every'](_0x379497=>_0x56c2f2['some'](_0x3337d5=>_0x3337d5['end']['isEqual'](_0x379497['start'])||_0x379497['end']['isEqual'](_0x3337d5['start'])));}function _0x217d5e(_0x4d8004,_0x3da7b6){return!_0x4d8004['some'](_0x2d9e14=>_0x3da7b6['some'](_0x327bd3=>_0x2d9e14['isIntersecting'](_0x327bd3)))&&_0x4d8004['some'](_0x383787=>_0x3da7b6['some'](_0x54fac6=>_0x383787['end']['isTouching'](_0x54fac6['start'])));}_0x64c584['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6f4b2e,_0xf4fee2,_0x2bc32b)=>{if(!_0x2bc32b['options']['showSuggestionHighlights'])return;const _0x136ec3=_0xf4fee2['item'];if(!_0x136ec3||!_0x136ec3['is']('element','tableCell'))return;const _0x18bd9f=_0x2bc32b['mapper']['toViewElement'](_0x136ec3);if(_0x18bd9f){const {id:_0x188c4a,authorId:_0x7ce211}=_0x36b1b0['_splitMarkerName'](_0xf4fee2['markerName']);_0x469766(_0x18bd9f,_0x2bc32b['writer'],(_0x2bf937,_0x54840d,_0x3cfcb8)=>{_0x3cfcb8['addClass'](_0x1eedfa(_0x54840d['classes']),_0x2bf937),_0x3cfcb8['setAttribute']('data-suggestion-id',_0x188c4a,_0x2bf937),_0x3cfcb8['setAttribute']('data-author-id',_0x7ce211,_0x2bf937);},(_0x1a6aa1,_0x48ace,_0x277f51)=>{_0x277f51['removeClass'](_0x1eedfa(_0x48ace['classes']),_0x1a6aa1),_0x277f51['removeAttribute']('data-suggestion-id',_0x1a6aa1),_0x277f51['removeAttribute']('data-author-id',_0x1a6aa1);});}},{'priority':'highest'}),_0x36b1b0['descriptionFactory']['registerDescriptionCallback'](_0x3c8aef=>{if('insertion'!=_0x3c8aef['type']&&'deletion'!=_0x3c8aef['type'])return;const _0x2f2d05=_0x3c8aef['getContainedElement']();if(null!=_0x2f2d05&&_0x2f2d05['is']('element','table')){if('insertion'==_0x3c8aef['type']){const _0x19abc3=_0x3c8aef['getItems']()['filter'](_0x568625=>_0x568625['is']('$textProxy'))['map'](_0x3c06b3=>_0x3c06b3['data']);if(_0x19abc3['length'])return{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19abc3['join']('\x20')+'\x22'))};}if('deletion'==_0x3c8aef['type']){const _0x464cf7=_0x3c8aef['getItems']()['filter'](_0x349cd4=>_0x349cd4['is']('$textProxy'))['map'](_0xdcd087=>_0xdcd087['data']);if(_0x464cf7['length'])return{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x464cf7['join']('\x20')+'\x22'))};}}}),_0x36b1b0['descriptionFactory']['registerDescriptionCallback'](_0x481c7b=>{if('tableRow'==_0x481c7b['subType']){const _0x1ddf9e=_0x481c7b['getItems']()['filter'](_0x4d1c69=>_0x4d1c69['is']('$textProxy'))['map'](_0x4d415b=>_0x4d415b['data']),_0x1a3662=this['_getSuggestionCoords'](_0x481c7b),_0x1f39da=_0x1a3662['maxRow']-_0x1a3662['minRow']+0x1;if('insertion'==_0x481c7b['type'])return _0x1ddf9e['length']?{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f39da,'\x22'+_0x1ddf9e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_ROW',_0x1f39da))};if('deletion'==_0x481c7b['type'])return _0x1ddf9e['length']?{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f39da,'\x22'+_0x1ddf9e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_ROW',_0x1f39da))};}if('tableColumn'==_0x481c7b['subType']){const _0x5a3a9a=_0x481c7b['getItems']()['filter'](_0x290b0a=>_0x290b0a['is']('$textProxy'))['map'](_0x2143d0=>_0x2143d0['data']),_0x2a84d2=this['_getSuggestionCoords'](_0x481c7b),_0x2fca0d=_0x2a84d2['maxColumn']-_0x2a84d2['minColumn']+0x1;if('insertion'==_0x481c7b['type'])return _0x5a3a9a['length']?{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2fca0d,'\x22'+_0x5a3a9a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_COLUMN',_0x2fca0d))};if('deletion'==_0x481c7b['type'])return _0x5a3a9a['length']?{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2fca0d,'\x22'+_0x5a3a9a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_COLUMN',_0x2fca0d))};}}),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1623e6),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1623e6),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x199238),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x199238),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe2e1ca),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe2e1ca),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x217d5e),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x217d5e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3f1b47=this['editor'],_0x7d3e9d=_0x3f1b47['model']['document']['selection'];return(_0x39e8ac,_0x485e9f)=>{_0x3f1b47['model']['change'](_0x35fe60=>{const {commandName:_0x4e4f25,commandParams:_0x521594}=_0x485e9f;let _0x5ca7e4=_0x39e8ac[0x0]['end']['nodeBefore'];_0x521594&&_0x521594[0x0]&&!0x1===_0x521594[0x0]['forceValue']&&(_0x5ca7e4=_0x39e8ac[0x0]['start']['nodeAfter']);const _0x5cd015=_0x35fe60['createRangeIn'](_0x5ca7e4);if('$graveyard'==_0x5cd015['root']['rootName'])return;const _0x356037=Array['from'](_0x7d3e9d['getRanges']())['map'](_0x52bcb9=>_0xc48f37['fromRange'](_0x52bcb9));_0x35fe60['setSelection'](_0x5cd015),_0x3f1b47['commands']['get'](_0x4e4f25)['refresh'](),_0x521594['push']({'forceDefaultExecution':!0x0}),_0x3f1b47['execute'](_0x4e4f25,..._0x521594);const _0x384f8a=_0x356037['filter'](_0x187230=>'$graveyard'!=_0x187230['root']['rootName']);_0x384f8a['length']>0x0&&_0x35fe60['setSelection'](_0x384f8a);for(const _0x156d7d of _0x356037)_0x156d7d['detach']();});};}['_getCoordsForCells'](_0x1021bb){const _0x2f9600=this['editor']['plugins']['get']('TableUtils');let _0x1f14cb=Number['MAX_SAFE_INTEGER'],_0x5ef58f=Number['MIN_SAFE_INTEGER'],_0x4f0146=Number['MAX_SAFE_INTEGER'],_0x21a641=Number['MIN_SAFE_INTEGER'];for(const _0x4a301a of _0x1021bb){if('$graveyard'==_0x4a301a['root']['rootName'])continue;const {row:_0x3f24e3,column:_0x8cb402}=_0x2f9600['getCellLocation'](_0x4a301a),_0x45e9f=_0x4a301a['hasAttribute']('rowspan')?_0x4a301a['getAttribute']('rowspan')-0x1:0x0,_0x1d67e0=_0x4a301a['hasAttribute']('colspan')?_0x4a301a['getAttribute']('colspan')-0x1:0x0;_0x1f14cb=_0x3f24e3<_0x1f14cb?_0x3f24e3:_0x1f14cb,_0x5ef58f=_0x3f24e3+_0x45e9f>_0x5ef58f?_0x3f24e3+_0x45e9f:_0x5ef58f,_0x4f0146=_0x8cb402<_0x4f0146?_0x8cb402:_0x4f0146,_0x21a641=_0x8cb402+_0x1d67e0>_0x21a641?_0x8cb402+_0x1d67e0:_0x21a641;}return{'minRow':_0x1f14cb,'maxRow':_0x5ef58f,'minColumn':_0x4f0146,'maxColumn':_0x21a641};}['_setupColumnsRowsFixing'](){const _0x2517f1=this['editor'],_0x16e22f=_0x2517f1['plugins']['get']('TrackChangesEditing'),_0x11a51a=_0x2517f1['plugins']['get']('TableUtils');_0x2517f1['model']['document']['on']('change:data',()=>{const _0x5a96a9=Array['from'](_0x2517f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x474bed,data:_0x4d1f61}of _0x5a96a9){const {group:_0x18dd07,id:_0x534f35,subType:_0xc7ef12}=_0x16e22f['_splitMarkerName'](_0x474bed);if('suggestion'!=_0x18dd07)continue;if(null!=_0x4d1f61['oldRange'])continue;const _0x31257f=_0x16e22f['getSuggestion'](_0x534f35);this['_tablePostFixingSubtypes']['includes'](_0xc7ef12)&&this['_tableSuggestions']['add'](_0x31257f);}},{'priority':'low'});const _0x4f85fa=(_0x126d8b,_0x36d34c)=>{let _0x4240c5=!0x1;const _0xfd1680=_0x36d34c['createRangeOn'](_0x126d8b),_0x3bf268=_0x126d8b['findAncestor']('table'),_0x4f1f10=_0x11a51a['getCellLocation'](_0x126d8b);for(const _0x28b9eb of this['_tableSuggestions']){const _0x35dfdb=_0x28b9eb['subType'],_0x18585e=_0x35dfdb['startsWith']('tablePaste'),_0xe8733=_0x35dfdb['substr'](_0x18585e?0xa:0x5),_0x31ec71=_0xe8733['toLowerCase'](),_0x4cd126=_0x31ec71['substr'](0x0,0x3)+'span',_0x415ef2='min'+_0xe8733,_0x1c4cb7='max'+_0xe8733;if(!_0x28b9eb['isInContent'])continue;if(_0x3bf268!=_0x28b9eb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28b9eb['isIntersectingWithRange'](_0xfd1680))continue;const _0x42a039=_0x126d8b['hasAttribute'](_0x4cd126)?_0x126d8b['getAttribute'](_0x4cd126)-0x1:0x0,_0x2a3f4a=this['_getSuggestionCoords'](_0x28b9eb),_0x19f963=_0x2a3f4a[_0x415ef2],_0x4be9ba=_0x2a3f4a[_0x1c4cb7];_0x19f963<=_0x4f1f10[_0x31ec71]&&_0x4f1f10[_0x31ec71]+_0x42a039<=_0x4be9ba&&(_0x28b9eb['addRange'](_0xfd1680),_0x4240c5=!0x0);}return _0x4240c5;};_0x2517f1['model']['document']['registerPostFixer'](_0x116665=>{let _0x2e8c3e=!0x1;for(const _0xc8c4cc of _0x2517f1['model']['document']['differ']['getChanges']())if('insert'==_0xc8c4cc['type']){if('tableRow'==_0xc8c4cc['name']){for(const _0x483771 of _0xc8c4cc['position']['nodeAfter']['getChildren']())_0x2e8c3e=_0x2e8c3e||_0x4f85fa(_0x483771,_0x116665);}else'tableCell'==_0xc8c4cc['name']&&(_0x2e8c3e=_0x2e8c3e||_0x4f85fa(_0xc8c4cc['position']['nodeAfter'],_0x116665));}return _0x2e8c3e;});}['_getSuggestionCoords'](_0x17a796){return this['_getCoordsForCells'](_0x17a796['getRanges']()['map'](_0x22fe1b=>_0x22fe1b['start']['nodeAfter']));}}function xe(_0x4fc665){return Array['from'](new Set(_0x4fc665)['values']());}class Nt extends _0x3ff648{static get['requires'](){return[Ct];}['afterInit'](){const _0x1de40e=this['editor'],_0x453ec2=_0x1de40e['model']['document']['selection'],_0x6bcb9f=_0x1de40e['locale'];if(!_0x1de40e['plugins']['has']('TableEditing'))return;const _0x4f8145=_0x1de40e['plugins']['get']('TrackChangesEditing'),_0x4bc0a9=_0x1de40e['plugins']['get']('TableUtils'),_0x63a8fd=_0x1de40e['plugins']['get'](Ct);_0x63a8fd['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4f8145['enableCommand']('mergeTableCells',()=>{const _0x13f570=_0x4bc0a9['getSelectionAffectedTableCells'](_0x1de40e['model']['document']['selection']);_0x1de40e['model']['change'](()=>{_0x4f8145['markMultiRangeBlockFormat'](_0x13f570,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1de40e['commands']['get']('mergeTableCells')['on']('execute',(_0x40a9e5,_0xc3ba5c)=>{_0x1de40e['commands']['get']('trackChanges')['value']&&(_0xc3ba5c['length']>0x0&&_0xc3ba5c[_0xc3ba5c['length']-0x1]&&_0xc3ba5c[_0xc3ba5c['length']-0x1]['forceDefaultExecution']||_0x4f8145['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40a9e5['stop']());},{'priority':'highest'});for(const _0x388074 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b0858=_0x1de40e['commands']['get'](_0x388074);_0x4f8145['enableCommand'](_0x388074,()=>{const _0x362ce5=_0x1de40e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x183588=>_0x183588['is']('element','tableCell')),_0x5b35c8=_0x5b0858['value'];_0x1de40e['model']['change'](()=>{_0x4f8145['markMultiRangeBlockFormat']([_0x362ce5,_0x5b35c8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x6b4a3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1e0d6d=_0x1de40e['commands']['get'](_0x6b4a3);_0x4f8145['enableCommand'](_0x6b4a3,()=>{const _0x272c13=_0x4bc0a9['getSelectionAffectedTableCells'](_0x1de40e['model']['document']['selection'])[0x0],_0x343765=_0x272c13['findAncestor']('table'),{column:_0xcc9e54,row:_0x4fbf04}=_0x4bc0a9['getCellLocation'](_0x272c13);let _0x31eb95=[];if('horizontally'==_0x1e0d6d['direction']){const _0x2804c6=_0x4bc0a9['createTableWalker'](_0x343765,{'startRow':_0x4fbf04,'endRow':_0x4fbf04,'includeAllSlots':!0x0});_0x31eb95=Array['from'](_0x2804c6)['map'](_0x2e1bb8=>_0x2e1bb8['cell']);}else{const _0x5e34ad=_0x4bc0a9['createTableWalker'](_0x343765,{'column':_0xcc9e54,'includeAllSlots':!0x0});_0x31eb95=Array['from'](_0x5e34ad)['map'](_0xc7d382=>_0xc7d382['cell']);}_0x1de40e['model']['change'](_0x57c0f5=>{_0x4f8145['markBlockFormat'](_0x57c0f5['createRangeOn'](_0x272c13),{'commandName':_0x6b4a3,'commandParams':[]},_0x31eb95,_0x6b4a3);});});}_0x4f8145['descriptionFactory']['registerDescriptionCallback'](_0xb98072=>{if('formatBlock'!=_0xb98072['type']&&'formatInline'!=_0xb98072['type'])return;const {data:_0x1088a5}=_0xb98072;return _0x1088a5&&'mergeTableCells'==_0x1088a5['commandName']?{'type':'format','content':c(_0x6bcb9f,'*Merge\x20cells*')}:void 0x0;}),_0x4f8145['descriptionFactory']['registerDescriptionCallback'](_0x15191d=>{if('formatBlock'!=_0x15191d['type']&&'formatInline'!=_0x15191d['type'])return;const {data:_0x109973}=_0x15191d;return _0x109973?'splitTableCellVertically'==_0x109973['commandName']?{'type':'format','content':c(_0x6bcb9f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x109973['commandName']?{'type':'format','content':c(_0x6bcb9f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x179abd=_0x63a8fd['_acceptFormatSuggestionCallbackFactory']();for(const _0x329128 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4f8145['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x329128,'accept',_0x179abd);for(const _0x3667ab of['splitTableCellVertically','splitTableCellHorizontally'])_0x4f8145['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3667ab,'accept',_0x179abd);_0x4f8145['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4f24e8=>{_0x1de40e['model']['change'](_0x1c421e=>{const _0x113fd6=Array['from'](_0x453ec2['getRanges']())['map'](_0x486f43=>_0xc48f37['fromRange'](_0x486f43));_0x1c421e['setSelection'](_0x4f24e8),_0x1de40e['commands']['get']('mergeTableCells')['refresh'](),_0x1de40e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x46dcf0=_0x113fd6['filter'](_0x3fa2b6=>'$graveyard'!=_0x3fa2b6['root']['rootName']);_0x46dcf0['length']>0x0&&_0x1c421e['setSelection'](_0x46dcf0);for(const _0x5603c3 of _0x113fd6)_0x5603c3['detach']();});});for(const _0x432197 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1854d9=_0x1de40e['commands']['get'](_0x432197);_0x1854d9['on']('set:isEnabled',(_0x5bd6be,_0x47c0b1,_0x233118)=>{if(_0x233118){const _0xa63f5c=_0x1de40e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf4f65a=>_0xf4f65a['is']('element','tableCell'));this['_areMergableCells'](_0x1854d9['value'],_0xa63f5c)||(_0x5bd6be['return']=!0x1,_0x5bd6be['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1da63b=this['editor']['commands']['get']('mergeTableCells'),_0x5aaa04=this['editor']['plugins']['get']('TableUtils');if(!_0x1da63b['isEnabled'])return!0x1;const _0x4bb7f5=_0x5aaa04['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x303979 of _0x4bb7f5)for(const _0x49e0b3 of _0x4bb7f5)if(_0x303979!=_0x49e0b3&&!this['_areMergableCells'](_0x303979,_0x49e0b3))return!0x1;return!0x0;}['_areMergableCells'](_0x22a555,_0x33c6b9){const _0x21db14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11ea0b=this['editor']['model']['createRangeOn'](_0x22a555),_0x362bdc=this['editor']['model']['createRangeOn'](_0x33c6b9),_0x5ebd8b=new Set(),_0x18a30b=new Set();for(const _0x11bfdd of _0x21db14['getSuggestions']())if(('insertion'==_0x11bfdd['type']||'deletion'==_0x11bfdd['type']||'mergeTableCells'==_0x11bfdd['subType'])&&_0x11bfdd['isInContent']){for(const _0x1fd2e1 of _0x11bfdd['getRanges']())_0x1fd2e1['containsRange'](_0x11ea0b,!0x0)&&_0x5ebd8b['add'](_0x11bfdd['type']+':'+_0x11bfdd['author']['id']),_0x1fd2e1['containsRange'](_0x362bdc,!0x0)&&_0x18a30b['add'](_0x11bfdd['type']+':'+_0x11bfdd['author']['id']);}if(_0x5ebd8b['size']!=_0x18a30b['size'])return!0x1;for(const _0x4f99e8 of _0x5ebd8b)if(!_0x18a30b['has'](_0x4f99e8))return!0x1;return!0x0;}}class Dt extends _0x3ff648{static get['requires'](){return[Ct];}['afterInit'](){const _0x2ab237=this['editor'];if(!_0x2ab237['plugins']['has']('TableEditing'))return;const _0x132669=_0x2ab237['locale'],_0x34f2e0=_0x2ab237['plugins']['get']('TrackChangesEditing');_0x34f2e0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x34f2e0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x34f2e0['registerBlockAttribute']('headingRows'),_0x34f2e0['registerBlockAttribute']('headingColumns'),_0x34f2e0['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x132669,'FORMAT_HEADER_ROW')),_0x34f2e0['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x132669,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48d55f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x414c3d=this['editor']['plugins']['get']('TableUtils'),_0x539f74=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5169cb({showActiveMarker:_0x13cd35=!0x0,setDataAttribute:_0x1032ed=!0x0}={}){return(_0x230e78,_0x14a819,_0x25b13c)=>{const {type:_0x5c1184,id:_0x50f3aa}=_0x48d55f['_splitMarkerName'](_0x14a819['markerName']),_0x26ca0d=_0x48d55f['getSuggestion'](_0x50f3aa),_0x52ba74=_0x26ca0d['data'];if('formatBlock'!=_0x26ca0d['type']||!_0x52ba74||'setTableColumnHeader'!=_0x52ba74['commandName'])return;if(_0x14a819['item'])return void _0x230e78['stop']();if(!_0x25b13c['consumable']['consume'](_0x14a819['markerRange'],_0x230e78['name']))return;const _0x5f45c9=_0x14a819['markerRange']['start']['nodeAfter'],_0x1d0e1e=_0x14a819['markerRange']['end']['nodeBefore'],_0xc11180=_0x5f45c9['parent']['parent'],{column:_0x51bcae}=_0x414c3d['getCellLocation'](_0x5f45c9),{column:_0x1ba70e}=_0x414c3d['getCellLocation'](_0x1d0e1e);for(let _0x1df12e=_0x51bcae;_0x1df12e<=_0x1ba70e;_0x1df12e++){const _0x32499c=_0x414c3d['createTableWalker'](_0xc11180,{'column':_0x1df12e,'includeAllSlots':!0x1});for(const _0x2a626f of _0x32499c){const _0x24cab1=_0x2a626f['cell'],_0x2cbbd4=_0x25b13c['mapper']['toViewElement'](_0x24cab1);_0x25b13c['writer']['addClass']('ck-suggestion-marker-'+_0x5c1184,_0x2cbbd4),_0x1032ed&&_0x25b13c['writer']['setAttribute']('data-suggestion',_0x50f3aa,_0x2cbbd4),_0x25b13c['mapper']['bindElementToMarker'](_0x2cbbd4,_0x14a819['markerName']),_0x13cd35&&(_0x48d55f['activeMarkers']['includes'](_0x14a819['markerName'])?_0x25b13c['writer']['addClass']('ck-suggestion-marker--active',_0x2cbbd4):_0x25b13c['writer']['removeClass']('ck-suggestion-marker--active',_0x2cbbd4));}}};}_0x48d55f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x539f74),_0x48d55f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x539f74),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5169cb(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4fffb8,_0x5136e4,_0x47d59c)=>{_0x47d59c['options']['showSuggestionHighlights']&&_0x5169cb({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4fffb8,_0x5136e4,_0x47d59c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x56af29,_0x5063c2,_0x35f2d1)=>{const {type:_0x2ab463,id:_0x231727}=_0x48d55f['_splitMarkerName'](_0x5063c2['markerName']),_0x502ef9=_0x48d55f['getSuggestion'](_0x231727),_0x8cc0a=_0x502ef9['data'];if('formatBlock'!=_0x502ef9['type']||!_0x8cc0a||'setTableColumnHeader'!=_0x8cc0a['commandName'])return;const _0x3ecd3d=_0x35f2d1['mapper']['markerNameToElements'](_0x5063c2['markerName']);if(_0x3ecd3d){for(const _0x4dc3bf of _0x3ecd3d)_0x35f2d1['writer']['removeClass']('ck-suggestion-marker-'+_0x2ab463,_0x4dc3bf),_0x35f2d1['writer']['removeClass']('ck-suggestion-marker--active',_0x4dc3bf),_0x35f2d1['writer']['removeAttribute']('data-suggestion',_0x4dc3bf),_0x35f2d1['mapper']['unbindElementFromMarkerName'](_0x4dc3bf,_0x5063c2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd9d98=this['editor'],_0x2bab7c=_0xd9d98['locale'];function _0x1233f4(_0x5ae0a1){return{'type':'format','content':c(_0x2bab7c,'*Format:*\x20%0',_0x5ae0a1)};}_0xd9d98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xad44de=>{if('formatBlock'!=_0xad44de['type'])return;const {data:_0x2f80f0}=_0xad44de;if(_0x2f80f0){if('setTableRowHeader'==_0x2f80f0['commandName']){const _0x44a1cd=_0x2f80f0['commandParams'][0x0]['forceValue'];return _0x1233f4(c(_0x2bab7c,_0x44a1cd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2f80f0['commandName']){const _0x15b2a8=_0x2f80f0['commandParams'][0x0]['forceValue'];return _0x1233f4(c(_0x2bab7c,_0x15b2a8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3ff648{['afterInit'](){const _0x4c8788=this['editor'],_0x213f1b=_0x4c8788['locale'],_0x10f3ce=_0x4c8788['plugins']['get']('TrackChangesEditing');function _0x1cd4a1(_0x4ed8e3){return{'type':'format','content':''+c(_0x213f1b,'*Set\x20table\x20type:*\x20%0',_0x4ed8e3)};}_0x4c8788['plugins']['has']('TableLayout')&&(_0x10f3ce['enableCommand']('insertTableLayout'),_0x10f3ce['enableDefaultAttributesIntegration']('tableType'),_0x10f3ce['registerBlockAttribute']('tableType'),_0x10f3ce['descriptionFactory']['registerElementLabel'](_0x1749b2=>_0x1749b2['is']('element','table')&&'layout'===_0x1749b2['getAttribute']('tableType'),_0x6e88f3=>c(_0x213f1b,'ELEMENT_LAYOUT_TABLE',_0x6e88f3)),_0x10f3ce['descriptionFactory']['registerDescriptionCallback'](_0x32a167=>{const {data:_0x2b5bfb}=_0x32a167;if(_0x2b5bfb&&'tableType'==_0x2b5bfb['key'])switch(_0x2b5bfb['newValue']){case'layout':return _0x1cd4a1(c(_0x213f1b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1cd4a1(c(_0x213f1b,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x2698bb=>[_0x2698bb,null]));class $t extends _0x3ff648{static get['requires'](){return[Ct];}['afterInit'](){const _0x860bb5=this['editor'];if(!_0x860bb5['plugins']['has']('TableClipboard'))return;const _0x45d72d=_0x860bb5['plugins']['get']('TrackChangesEditing'),_0x1dc0d2=_0x860bb5['plugins']['get']('TableUtils'),_0x19a66d=_0x860bb5['plugins']['get'](Ct),_0x1a0893=_0x860bb5['plugins']['get']('TableClipboard'),_0xe4800f=_0x860bb5['plugins']['get']('TableSelection'),_0x3d2068=_0x860bb5['plugins']['get'](_0x2c909b);_0x19a66d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x860bb5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x860bb5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x45338c=null,_0xba80d7=!0x1;_0x3d2068['on']('contentInsertion',(_0x397a9a,_0x168a73)=>{_0xba80d7='paste'===_0x168a73['method'];}),_0x860bb5['model']['on']('insertContent',(_0x51968d,_0x49dbde)=>{if(!_0xba80d7&&null===_0xe4800f['getSelectedTableCells']())return;const [_0x3d09d5,_0x288e48]=_0x49dbde,_0x1b1327=_0x49dbde[_0x49dbde['length']-0x1];_0x1b1327&&_0x1b1327['forceDefaultExecution']||_0x45d72d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xaf83d,_0x1d15bb,_0x309109,_0x9ce5f4,_0x279a55){if(_0x1d15bb&&!_0x1d15bb['is']('documentSelection'))return!0x1;const _0xeefc5c=_0x279a55['getTableIfOnlyTableInContent'](_0xaf83d,_0x309109);if(!_0xeefc5c||!He(_0xeefc5c,void 0x0,_0x9ce5f4))return!0x1;const _0x6cdd24=_0x9ce5f4['getSelectionAffectedTableCells'](_0x309109['document']['selection']);if(!_0x6cdd24['length'])return!0x1;const _0x42e592=_0x6cdd24[0x0]['findAncestor']('table'),_0x564584=_0x9ce5f4['getRowIndexes'](_0x6cdd24),_0x4a6526=_0x9ce5f4['getColumnIndexes'](_0x6cdd24),_0x401f1f={'startRow':_0x564584['first'],'endRow':_0x564584['last'],'startColumn':_0x4a6526['first'],'endColumn':_0x4a6526['last']};return 0x1==_0x6cdd24['length']&&(_0x401f1f['endRow']+=_0x9ce5f4['getRows'](_0xeefc5c)-0x1,_0x401f1f['endColumn']+=_0x9ce5f4['getColumns'](_0xeefc5c)-0x1),He(_0x42e592,_0x401f1f,_0x9ce5f4);}(_0x3d09d5,_0x288e48,_0x860bb5['model'],_0x1dc0d2,_0x1a0893)&&(_0x51968d['stop'](),_0x45338c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x860bb5['model']['change'](()=>{_0x860bb5['model']['insertContent'](_0x49dbde[0x0],_0x49dbde[0x1],_0x49dbde[0x2],{'forceDefaultExecution':!0x0});const _0x1e267e=_0x65b9b5(),{rowInsertionRanges:_0x20b831,columnInsertionRanges:_0x5a2890,insertionRanges:_0x313f97,deletionRanges:_0xc5e25e,cells:_0x1da548}=_0x45338c;_0x20b831['length']&&_0x45d72d['markMultiRangeInsertion'](_0x20b831,'tablePasteRow',{'tablePasteChainId':_0x1e267e}),_0x5a2890['length']&&_0x45d72d['markMultiRangeInsertion'](_0x5a2890,'tablePasteColumn',{'tablePasteChainId':_0x1e267e}),_0x313f97['length']&&(_0x45d72d['markMultiRangeInsertion'](_0x313f97,'tablePaste',{'tablePasteChainId':_0x1e267e,'skipNestingCheck':!0x0}),_0x313f97['forEach'](_0x438641=>_0x438641['detach']?.())),_0xc5e25e['length']&&(_0x45d72d['markMultiRangeDeletion'](_0xc5e25e,'tablePaste',{'tablePasteChainId':_0x1e267e,'skipNestingCheck':!0x0}),_0xc5e25e['forEach'](_0x41d3f7=>_0x41d3f7['detach']?.()));const _0x7fa8bf=_0x45d72d['markMultiRangeBlockFormat'](_0x1da548['map'](({element:_0x4d3e2d})=>_0x4d3e2d),{'formatGroupId':_0x65b9b5()},[],'tablePasteCell',{'tablePasteChainId':_0x1e267e});if(_0x7fa8bf){const _0x463342=_0x7fa8bf['getMarkers'](),_0x25d43a=[];for(const {element:_0x4e1e08,attributes:_0x5d9a72}of _0x1da548){if(!_0x5d9a72)continue;const _0x1f2256=_0x860bb5['model']['createRangeOn'](_0x4e1e08),_0x573d61=_0x463342['find'](_0x4817f5=>_0x4817f5['getRange']()['isEqual'](_0x1f2256));_0x573d61&&_0x25d43a['push']([_0x573d61['name'],_0x5d9a72]);}_0x25d43a['length']&&_0x7fa8bf['setAttribute']('markerAttributes',Object['fromEntries'](_0x25d43a));}_0x45338c=null;}));},{'priority':_0x1fc7e0['high']+0xa}),_0x3d2068['on']('contentInsertion',()=>{_0xba80d7=!0x1;},{'priority':'lowest'}),_0x860bb5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3f329c,_0xa68621)=>{const [_0x4d0021,_0x38eee5,,_0x49594d]=_0xa68621;if(!_0x45338c)return;_0x3f329c['stop']();const _0x1dc390=_0x4d0021['cell'],_0x295d8e=_0x38eee5,_0x38f7e5=De(_0x1dc390),_0x3459d1=De(_0x295d8e);_0x3f329c['return']=_0x1dc390;let _0x14a886=null,_0x4ecf00=null;if(_0x3459d1||_0x38f7e5){if(_0x38f7e5&&!_0x3459d1){_0x49594d['remove'](_0x1dc390['getChild'](0x0));for(const _0x5bf02f of Array['from'](_0x295d8e['getChildren']()))_0x49594d['insert'](_0x5bf02f,_0x1dc390,'end');const _0x10a75d=_0x45338c['rowInsertionIndexes']['includes'](_0x4d0021['row']),_0x103bee=_0x45338c['columnInsertionIndexes']['includes'](_0x4d0021['column']);_0x10a75d||_0x103bee||(_0x14a886=_0xc48f37['fromRange'](_0x49594d['createRangeIn'](_0x1dc390)));}else _0x3459d1&&!_0x38f7e5&&(_0x4ecf00=_0x49594d['createRangeIn'](_0x1dc390));}else{const _0x52cf=_0x49594d['createElement']('tableCellSuggestion'),_0x80bf33=_0x49594d['createElement']('tableCellSuggestion');_0x49594d['wrap'](_0x49594d['createRangeIn'](_0x1dc390),_0x80bf33),_0x49594d['insert'](_0x52cf,_0x1dc390,0x0);for(const _0x4d4e3a of Array['from'](_0x295d8e['getChildren']()))_0x49594d['insert'](_0x4d4e3a,_0x52cf,'end');_0x14a886=_0xc48f37['fromRange'](_0x49594d['createRangeOn'](_0x52cf)),_0x4ecf00=_0xc48f37['fromRange'](_0x49594d['createRangeOn'](_0x80bf33));}const _0x192770=Array['from'](_0x295d8e['getAttributes']())['filter'](([_0x4208bb])=>Oe['includes'](_0x4208bb));_0x45338c['cells']['push']({'element':_0x1dc390,'attributes':_0x192770['length']?Object['fromEntries'](_0x192770):null}),_0x14a886&&_0x45338c['insertionRanges']['push'](_0x14a886),_0x4ecf00&&_0x45338c['deletionRanges']['push'](_0x4ecf00);},{'priority':'high'}),_0x1dc0d2['on']('insertColumns',(_0x30882c,_0x16a6ce)=>{const [_0x52d839,_0x3db6fc={}]=_0x16a6ce;if(!_0x45338c)return;const _0x41d2f4=_0x3db6fc['at']||0x0,_0x522275=_0x3db6fc['columns']||0x1;_0x45338c['columnInsertionIndexes']=new Array(_0x522275)['fill'](_0x41d2f4)['map']((_0x198c5a,_0x146718)=>_0x198c5a+_0x146718);for(const {cell:_0x5937cf}of _0x1dc0d2['createTableWalker'](_0x52d839,{'startColumn':_0x41d2f4,'endColumn':_0x41d2f4+_0x522275-0x1}))_0x45338c['columnInsertionRanges']['push'](_0x860bb5['model']['createRangeOn'](_0x5937cf));},{'priority':'low'}),_0x1dc0d2['on']('insertRows',(_0x3917cc,_0x4b247a)=>{const [_0x5ab15a,_0xb7d6d0={}]=_0x4b247a;if(!_0x45338c)return;const _0x4f90bc=_0xb7d6d0['at']||0x0,_0x58d58b=_0xb7d6d0['rows']||0x1;_0x45338c['rowInsertionIndexes']=new Array(_0x58d58b)['fill'](_0x4f90bc)['map']((_0x235209,_0x59fef4)=>_0x235209+_0x59fef4);for(const {cell:_0x2936f3}of _0x1dc0d2['createTableWalker'](_0x5ab15a,{'startRow':_0x4f90bc,'endRow':_0x4f90bc+_0x58d58b-0x1}))_0x45338c['rowInsertionRanges']['push'](_0x860bb5['model']['createRangeOn'](_0x2936f3));},{'priority':'low'}),_0x45d72d['descriptionFactory']['registerDescriptionCallback'](_0x261d8f=>{if(_0x261d8f['subType']&&_0x261d8f['subType']['startsWith']('tablePaste'))return _0x261d8f['previous']?{}:{'type':'insertion','content':c(_0x860bb5['locale'],'*Replace\x20table\x20cells*')};});const _0xf5e6bf=()=>!0x1;for(const _0x14ad5e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x45d72d['_suggestionFactory']['registerCustomCallback']('insertion',_0x14ad5e,'join',_0xf5e6bf),_0x45d72d['_suggestionFactory']['registerCustomCallback']('deletion',_0x14ad5e,'join',_0xf5e6bf),_0x45d72d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14ad5e,'join',_0xf5e6bf);_0x45d72d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xf5e6bf),_0x45d72d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5092db,_0x2b437e,_0x3212c9)=>{const _0x5813fe=_0x5092db['map'](_0xc99875=>_0xc99875['getContainedElement']())['filter'](_0x342f98=>_0x342f98),_0x16b27d=new Map(_0x5813fe['map'](_0x5d605b=>[_0x5d605b,null]));if(_0x45338c){for(const {element:_0x1e750a,attributes:_0x3ba4fd}of _0x45338c['cells'])_0x3ba4fd&&_0x16b27d['set'](_0x1e750a,_0x3ba4fd);}else{if(_0x3212c9&&_0x3212c9['markerAttributes'])for(const [_0x50dc20,_0x536475]of Object['entries'](_0x3212c9['markerAttributes'])){const _0x547934=_0x860bb5['model']['markers']['get'](_0x50dc20),_0x5cf4c9=_0x547934?_0x547934['getRange']()['getContainedElement']():null;_0x5cf4c9&&_0x16b27d['set'](_0x5cf4c9,_0x536475);}}_0x860bb5['model']['change'](_0x529414=>{for(const [_0x4741a5,_0x1e59c1]of _0x16b27d)_0x529414['setAttributes']({...Ue,..._0x1e59c1},_0x4741a5);});});const _0x19d5a7=(_0x51ae00,_0x22a37c)=>{_0x45d72d['_suggestionFactory']['registerCustomCallback'](_0x51ae00,'tablePaste',_0x22a37c,(_0xd802c5,_0x2ff198,_0x317f69)=>{_0x860bb5['model']['change'](_0x591a58=>{const _0x5ebd04=[];for(const _0x3028fa of _0xd802c5){const _0x2e9f00=_0x3028fa['start']['nodeAfter'];_0x2e9f00['is']('element','tableCellSuggestion')&&_0x5ebd04['push'](_0x2e9f00);}_0x45d72d['_suggestionFactory']['getSuggestionCallback'](_0x51ae00,null,_0x22a37c)(_0xd802c5,_0x2ff198,_0x317f69);for(const _0x52d119 of _0x5ebd04)'$graveyard'!=_0x52d119['root']['rootName']&&_0x591a58['unwrap'](_0x52d119);});});};_0x19d5a7('insertion','accept'),_0x19d5a7('insertion','discard'),_0x19d5a7('deletion','accept'),_0x19d5a7('deletion','discard'),_0x45d72d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x52ab45=>{const _0x53f646=_0x52ab45['map'](_0x30b55f=>_0x30b55f['getContainedElement']()),_0x5161a6=_0x53f646[0x0]['findAncestor']('table'),{minRow:_0x152ddb,maxRow:_0x15c232}=_0x19a66d['_getCoordsForCells'](_0x53f646);_0x1dc0d2['removeRows'](_0x5161a6,{'at':_0x152ddb,'rows':_0x15c232-_0x152ddb+0x1});}),_0x45d72d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5388bc=>{const _0xeb0f88=_0x5388bc['map'](_0x46c1da=>_0x46c1da['getContainedElement']()),_0x839110=_0xeb0f88[0x0]['findAncestor']('table'),{minColumn:_0x1bf488,maxColumn:_0x238c4b}=_0x19a66d['_getCoordsForCells'](_0xeb0f88);_0x1dc0d2['removeColumns'](_0x839110,{'at':_0x1bf488,'columns':_0x238c4b-_0x1bf488+0x1});});const _0x2de46e=(_0x2bf170,_0x102146)=>{if(!_0x102146['subType']||!_0x102146['subType']['startsWith']('tablePaste'))return;const _0x34a380=_0x102146['attributes']['tablePasteChainId'],_0x3ebe3c=_0x45d72d['getSuggestions']()['filter'](_0x3fd88a=>_0x3fd88a['isInContent']&&_0x3fd88a['attributes']&&_0x3fd88a['attributes']['tablePasteChainId']==_0x34a380);_0x3ebe3c['length']&&_0x102146['getAllAdjacentSuggestions']()['length']!=_0x3ebe3c['length']&&_0x3ebe3c['reduce']((_0x5cd7cf,_0x3df6c4)=>(_0x5cd7cf['next']=_0x3df6c4,_0x3df6c4['previous']=_0x5cd7cf,_0x3df6c4));};function _0x50994c(_0x184ff2,_0x26f63e=!0x0){const {id:_0x1d4ece,authorId:_0x1b4be3}=_0x45d72d['_splitMarkerName'](_0x184ff2['markerName']),_0x40fb22=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x47eeb1=_0x45d72d['activeMarkers']['includes'](_0x184ff2['markerName']);return _0x47eeb1&&_0x40fb22['push']('ck-suggestion-marker--active'),{'classes':_0x40fb22,'attributes':{'data-suggestion':_0x1d4ece,'data-author-id':_0x1b4be3},'priority':_0x47eeb1&&_0x26f63e?0xbc2:0xbb8};}_0x45d72d['on']('suggestionLoaded',_0x2de46e,{'priority':'high'}),_0x45d72d['on']('suggestionUnloaded',_0x2de46e,{'priority':'high'}),_0x860bb5['model']['document']['registerPostFixer'](()=>{let _0x4f6101=!0x1;const _0x552671=Array['from'](_0x860bb5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4532f9,data:_0x20969e}of _0x552671){const {group:_0x19cdf4,type:_0x5ea96a,id:_0xa0e9c9}=_0x45d72d['_splitMarkerName'](_0x4532f9);if('suggestion'!=_0x19cdf4||'deletion'!=_0x5ea96a||_0x20969e['oldRange'])continue;if(!_0x45d72d['hasSuggestion'](_0xa0e9c9))continue;const _0x13160a=_0x45d72d['getSuggestion'](_0xa0e9c9)['getRanges'](),_0x3e7854=_0x860bb5['plugins']['get']('Users')['me'];for(const _0x4e7bff of _0x45d72d['getSuggestions']()){if(!_0x4e7bff['isInContent']||_0x4e7bff['author']!=_0x3e7854)continue;if('formatBlock'!=_0x4e7bff['type']||'tablePasteCell'!=_0x4e7bff['subType'])continue;if(_0x4e7bff['getRanges']()['every'](_0x3b5636=>_0x13160a['some'](_0x49ff37=>_0x49ff37['containsRange'](_0x3b5636,!0x0)))){for(const _0x141dff of _0x4e7bff['getAllAdjacentSuggestions']())_0x141dff['isInContent']&&(_0x141dff['discard'](),_0x4f6101=!0x0);}}}return _0x4f6101;}),_0x860bb5['model']['document']['registerPostFixer'](_0x46f5ac=>{const _0xf40064=_0x860bb5['commands']['get']('redo');if(!_0xf40064||!_0xf40064['_createdBatches']['has'](_0x46f5ac['batch']))return!0x1;let _0x4b111f=!0x1;const _0x5462c6=_0x860bb5['plugins']['get']('Users')['me'],_0x32c551=_0x860bb5['model']['document']['differ']['getChanges'](),_0x6c6d3f=Array['from'](_0x860bb5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x392ff2,data:_0x3c745e})=>{const {group:_0x4e295a,subType:_0x461359,authorId:_0x20ae92}=_0x45d72d['_splitMarkerName'](_0x392ff2);return'suggestion'==_0x4e295a&&'tablePaste'==_0x461359&&_0x20ae92==_0x5462c6['id']&&!_0x3c745e['oldRange'];});for(const _0x3caa4c of _0x32c551){if('insert'!=_0x3caa4c['type']||'tableCellSuggestion'!=_0x3caa4c['name']||0x1!=_0x3caa4c['length'])continue;const _0x43ec68=_0x46f5ac['createRange'](_0x3caa4c['position'],_0x3caa4c['position']['getShiftedBy'](0x1));if(!_0x6c6d3f['find'](({data:_0x1bee9b})=>_0x1bee9b['newRange']['isEqual'](_0x43ec68))){for(const {name:_0x15bf1c,data:_0x32dfc6}of _0x6c6d3f)if(_0x43ec68['containsRange'](_0x32dfc6['newRange'])){_0x46f5ac['updateMarker'](_0x15bf1c,{'range':_0x43ec68}),_0x4b111f=!0x0;break;}}}return _0x4b111f;}),_0x860bb5['model']['document']['registerPostFixer'](_0x4f33df=>{let _0x30e45f=!0x1;const _0x530610=_0x860bb5['plugins']['get']('Users')['me'],_0x4b3a80=_0x45d72d['getSuggestions']()['filter'](_0x166c60=>_0x166c60['isInContent']&&_0x166c60['author']==_0x530610),_0x31479d=new Set(),_0x28521d=new Set();for(const _0x52b602 of _0x4b3a80)if('tablePaste'==_0x52b602['subType'])for(const _0xacffc2 of _0x52b602['getMarkers']()){const _0x1fe45e=_0xacffc2['getRange']()['getContainedElement']();if(_0x1fe45e){if(_0x1fe45e['is']('element','tableCellSuggestion')&&De(_0x1fe45e)){_0x52b602['removeMarker'](_0xacffc2['name']),_0x31479d['add'](_0x1fe45e),_0x30e45f=!0x0;const _0x24e1e7=_0x1fe45e['nextSibling'],_0x26ccb8=_0x1fe45e['previousSibling'],_0x5bdb64=_0x24e1e7&&_0x24e1e7['is']('element','tableCellSuggestion'),_0x404373=_0x26ccb8&&_0x26ccb8['is']('element','tableCellSuggestion');_0x5bdb64&&!_0x31479d['has'](_0x24e1e7)&&_0x28521d['add'](_0x24e1e7),_0x404373&&!_0x31479d['has'](_0x26ccb8)&&_0x28521d['add'](_0x26ccb8);}else _0x1fe45e['is']('element','paragraph')&&_0x1fe45e['isEmpty']&&(_0x52b602['removeMarker'](_0xacffc2['name']),_0x30e45f=!0x0);}}else{if('tablePasteCell'==_0x52b602['subType']){if(!_0x52b602['attributes']||!_0x52b602['attributes']['tablePasteChainId'])continue;const _0x1bc2c5=_0x52b602['attributes']['markerAttributes'];if(_0x1bc2c5&&Object['keys'](_0x1bc2c5)['length'])continue;const _0x549ce5=_0x52b602['attributes']['tablePasteChainId'];let _0x5b857c=!0x0,_0x31d184=!0x0;for(const _0x3a758b of _0x4b3a80)if(_0x3a758b['subType']&&_0x3a758b['subType']['startsWith']('tablePaste')){if(!_0x3a758b['attributes']['tablePasteChainId']){_0x31d184=!0x1;break;}if(_0x3a758b['id']!=_0x52b602['id']&&_0x3a758b['attributes']['tablePasteChainId']==_0x549ce5){_0x5b857c=!0x1;break;}}_0x31d184&&_0x5b857c&&(_0x52b602['removeMarkers'](),_0x30e45f=!0x0);}}for(const _0x483804 of _0x31479d)_0x4f33df['remove'](_0x483804);for(const _0x4cfea1 of _0x28521d)_0x4f33df['unwrap'](_0x4cfea1);return _0x30e45f;}),_0x860bb5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1c6ff1=>_0x50994c(_0x1c6ff1),'converterPriority':'high'}),_0x860bb5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4e3123,_0x30f30d)=>_0x30f30d['options']['showSuggestionHighlights']?_0x50994c(_0x4e3123,!0x1):null,'converterPriority':'high'});const _0x3f055a=_0x860bb5['editing']['view'];this['listenTo'](_0x3f055a['document'],'clipboardOutput',(_0x7b1c5d,_0x1a77aa)=>{const _0x31df5f=[];for(const _0x5a77da of _0x3f055a['createRangeIn'](_0x1a77aa['content'])['getItems']())_0x5a77da['is']('element','suggestion-td')&&_0x31df5f['push'](_0x5a77da);_0x3f055a['change'](_0x52ee5a=>{for(const _0x58404a of _0x31df5f)_0x52ee5a['move'](_0x52ee5a['createRangeIn'](_0x58404a),_0x52ee5a['createPositionBefore'](_0x58404a)),_0x52ee5a['remove'](_0x58404a);});});}}function De(_0xf5d7ec){if(_0xf5d7ec['isEmpty'])return!0x0;const _0x27242a=_0xf5d7ec['getChild'](0x0);return _0x27242a['is']('element','paragraph')&&_0x27242a['isEmpty'];}function He(_0x593350,_0x23769d={},_0x276cd2){for(const {isAnchor:_0x1c3f23,cellHeight:_0x3f1d8d,cellWidth:_0x5f40fb}of _0x276cd2['createTableWalker'](_0x593350,{'includeAllSlots':!0x0,..._0x23769d}))if(!_0x1c3f23||0x1!=_0x3f1d8d||0x1!=_0x5f40fb)return!0x1;return!0x0;}class Bt extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x161148=this['editor']['plugins']['get']('TrackChangesEditing');_0x161148['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x161148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x161148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x161148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x161148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x161148['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x545f3f,_0x5cfea1){const _0x39dadf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47f4ee=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5ce4b7=_0x5cfea1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7dff15=_0x47f4ee['getColumnGroupElement'](_0x5ce4b7);let _0x2fd8b3=_0x7dff15?_0x47f4ee['getTableColumnsWidths'](_0x7dff15):null,_0x28909b=_0x5ce4b7['getAttribute']('tableWidth')||null;const _0x99c0ef=_0x5cfea1['tableWidth']||_0x28909b,_0x5a1fa0=_0x5cfea1['columnWidths']||_0x2fd8b3,_0x36b512=this['editor']['plugins']['get']('Users')['me'];for(const _0x145ac1 of _0x39dadf['getSuggestions']()){const _0x2280f7=_0x145ac1['getContainedElement']();if('resizeTable'===_0x145ac1['subType']&&_0x2280f7===_0x5ce4b7){_0x145ac1['author']!==_0x36b512&&_0x145ac1['discard']();const _0x25d513=_0x145ac1['data']['commandParams'];_0x28909b=_0x25d513[0x0]['tableWidth'],_0x2fd8b3=_0x25d513[0x0]['columnWidths'];break;}}_0x545f3f({'table':_0x5ce4b7,'tableWidth':_0x99c0ef,'columnWidths':_0x5a1fa0}),_0x39dadf['markBlockFormat'](_0x5ce4b7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x28909b,'columnWidths':_0x2fd8b3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1b408d){if('formatBlock'!=_0x1b408d['type']&&'formatInline'!=_0x1b408d['type'])return;const {data:_0xfb67c6}=_0x1b408d;if(_0xfb67c6&&'resizeTable'===_0xfb67c6['formatGroupId']){const _0x153233='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x153233)};}}}class xt extends _0x3ff648{['afterInit'](){const _0x3d9468=this['editor'];_0x3d9468['plugins']['has']('Template')&&_0x3d9468['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3ff648{['afterInit'](){const _0x65f88a=this['editor'];if(!_0x65f88a['commands']['get']('insertTableOfContents'))return;_0x65f88a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7ba23a=_0x65f88a['plugins']['get']('TrackChangesEditing'),_0x47b626=_0x65f88a['locale'];_0x7ba23a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x53dfba=>c(_0x47b626,'ELEMENT_TABLE_OF_CONTENTS',_0x53dfba));}}class Rt extends _0x3ff648{['afterInit'](){const _0x5f6bd8=this['editor'];if(!_0x5f6bd8['plugins']['has']('Title'))return;const _0x56909d=_0x5f6bd8['plugins']['get']('TrackChangesEditing');_0x56909d['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5f6bd8['locale'],'ELEMENT_TITLE')),_0x5f6bd8['model']['document']['registerPostFixer'](_0x2bfa2b=>{let _0x3a5d48=!0x1;const _0x30e5cc=Array['from'](_0x5f6bd8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bcd63,data:_0x5b3d57}of _0x30e5cc){const {group:_0x148681}=_0x56909d['_splitMarkerName'](_0x2bcd63);if('suggestion'!==_0x148681||!_0x5b3d57['newRange'])continue;const _0x2c3302=_0x5b3d57['newRange'],_0x15b54c=_0x2c3302['end']['nodeBefore'];if(!_0x15b54c||!_0x15b54c['is']('element','title-content'))continue;if(!_0x2c3302['start']['isTouching'](_0x2c3302['end']))continue;const _0x4bc3f2=_0x5f6bd8['model']['schema']['getNearestSelectionRange'](_0x2c3302['end'],'forward');if(_0x4bc3f2&&_0x4bc3f2['isCollapsed']){const _0x1efe2d=_0x2bfa2b['createRange'](_0x2c3302['start'],_0x4bc3f2['start']);_0x1efe2d['isEqual'](_0x2c3302)||(_0x2bfa2b['updateMarker'](_0x2bcd63,{'range':_0x1efe2d}),_0x3a5d48=!0x0);}_0x3a5d48||(_0x2bfa2b['removeMarker'](_0x2bcd63),_0x3a5d48=!0x0);}return _0x3a5d48;});}}class Tt extends _0x3ff648{['afterInit'](){const _0x2e02ce=this['editor'],_0x3a877e=_0x2e02ce['plugins']['get']('TrackChangesEditing');_0x2e02ce['plugins']['has']('Uploadcare')&&(_0x3a877e['enableCommand']('uploadcare'),_0x2e02ce['plugins']['has']('UploadcareImageEdit')&&(_0x3a877e['enableCommand']('uploadcareImageEdit'),_0x3a877e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3a877e['registerBlockAttribute']('uploadcareImageId'),_0x3a877e['descriptionFactory']['registerDescriptionCallback'](_0x5dc9f8=>{if('attribute'!=_0x5dc9f8['type'])return;const {data:_0x348369}=_0x5dc9f8;return _0x348369&&'uploadcareImageId'==_0x348369['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3ff648{['afterInit'](){const _0x54c9a6=this['editor'],_0x5c9a9a=_0x54c9a6['plugins']['get']('TrackChangesEditing');_0x54c9a6['plugins']['has']('UndoEditing')&&(_0x5c9a9a['enableCommand']('undo'),_0x5c9a9a['enableCommand']('redo'));}}class Ut extends _0x3ff648{static get['requires'](){return[Ct];}['afterInit'](){const _0x193246=this['editor'];if(!_0x193246['plugins']['has']('TableCaptionEditing'))return;_0x193246['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3ff648{['tableProperties'];['tableCellProperties'];constructor(_0x1cd692){super(_0x1cd692),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 _0x5231de=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6acd47 of this['tableProperties'])_0x5231de['enableCommand'](_0x6acd47,(_0x5988c9,_0x8bff1)=>{const _0x42100a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6acd47,[_0x42100a],this['tableProperties'],'tableProperties',_0x5988c9,_0x8bff1);});_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5231de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4fb31e,_0x2acfbf)=>this['handleDiscardAction'](this['tableProperties'],_0x4fb31e,_0x2acfbf)),_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x28ffc2 of this['tableCellProperties'])_0x5231de['enableCommand'](_0x28ffc2,(_0x491fb3,_0x349056)=>{const _0x282efe=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x28ffc2,_0x282efe,this['tableCellProperties'],'tableCellProperties',_0x491fb3,_0x349056);});_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5231de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33bee6,_0x13ce05)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33bee6,_0x13ce05)),_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5231de['descriptionFactory']['registerDescriptionCallback'](_0x231d45=>this['handleSuggestionDescription'](_0x231d45));}['_handlePropertyChange'](_0xecb885,_0x1aa89b,_0x334320,_0x237577,_0x559f1,_0x3e0dca){const _0x34a8eb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3e0dca['batch'],()=>{for(const _0x5eb49e of _0x1aa89b){if(this['_getSuggestion'](_0x5eb49e,_0x237577))_0x559f1(_0x3e0dca);else{const _0x83833={};for(const _0x444410 of _0x334320){const _0xc106e8=_0x5eb49e['getAttribute'](_0x444410);void 0x0!==_0xc106e8&&(_0x83833[_0x444410]=_0xc106e8);}_0x559f1(_0x3e0dca),_0x34a8eb['markBlockFormat'](_0x5eb49e,{'commandParams':[_0x83833]},[],_0x237577);}}});}['handleDiscardAction'](_0x2bffdd,_0x5f23e3,_0x3b39af){const _0x89f253=_0x5f23e3[0x0]['start']['nodeAfter'],_0x269a53=_0x3b39af['commandParams'][0x0];this['editor']['model']['change'](_0x160e41=>{for(const _0x522547 of _0x2bffdd)void 0x0!==_0x269a53[_0x522547]?_0x160e41['setAttribute'](_0x522547,_0x269a53[_0x522547],_0x89f253):_0x160e41['removeAttribute'](_0x522547,_0x89f253);});}['handleSuggestionDescription'](_0x2c54ac){if(_0x2c54ac['data'])switch(_0x2c54ac['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x42c1d4,_0x26a473){const _0x31a09d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2ec972 of _0x31a09d['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ad36f=_0x2ec972['getContainedElement']();if(_0x2ec972['subType']===_0x26a473&&_0x1ad36f===_0x42c1d4)return _0x2ec972;}return null;}}const u='$elementName';class p extends _0x3ff648{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3da637,_0x3e9f68,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb3650){super(_0xeb3650),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xa0a406,_0x44792e,_0x14084e,_0x4dac92)=>{this['_model']['change'](()=>{for(const _0xd0558 of[..._0x4dac92,..._0x14084e])this['_model']['markers']['has'](_0xd0558)&&_0xeb3650['editing']['reconvertMarker'](_0xd0558);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xeb3650['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0xeb3650['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xeb3650['config']['get']('trackChanges.trackFormatChanges'),_0xeb3650['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xeb3650['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xeb3650,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x39d9c2=this['editor'],_0x11837e=(_0x488f88,_0x5f241a)=>{if('attribute'!=_0x488f88)return'ck-suggestion-marker-'+_0x488f88;const _0x355b7e=_0x5f241a['split']('|')[0x0];return this['_isBlockAttribute'](_0x355b7e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x39d9c2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x57af02=>{const {id:_0x1fa66a,authorId:_0x145546,type:_0x98c964,subType:_0x701ccf}=this['_splitMarkerName'](_0x57af02['markerName']),_0x44450d=['ck-suggestion-marker',_0x11837e(_0x98c964,_0x701ccf)];let _0x321b05=0xbb8;return this['activeMarkers']['includes'](_0x57af02['markerName'])&&(_0x44450d['push']('ck-suggestion-marker--active'),_0x321b05=0xbc2),'deletion'==_0x98c964&&(_0x321b05+=0x5),{'classes':_0x44450d,'attributes':{'data-suggestion':_0x1fa66a,'data-author-id':_0x145546},'priority':_0x321b05};}}),_0x39d9c2['conversion']['for']('dataDowncast')['add'](_0x3a6391=>{_0x3a6391['on']('addMarker:suggestion',(_0x3220e1,_0x551202,_0x15351f)=>{if(!_0x15351f['options']['showSuggestionHighlights'])return;const _0x39621f=_0x551202['item'];if(!_0x39621f)return;const _0x49cbe0=_0x15351f['mapper']['toViewElement'](_0x39621f);_0x39d9c2['model']['schema']['isObject'](_0x39621f)&&_0x49cbe0&&!_0x49cbe0['getCustomProperty']('widget')&&_0x49cbe0['is']('containerElement')&&_0x4e4d73(_0x49cbe0,_0x15351f['writer']);},{'priority':'high'});}),_0x39d9c2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2351d7,_0xd3a31c)=>{if(!_0xd3a31c['options']['showSuggestionHighlights'])return null;const {id:_0x116d3b,authorId:_0x45eb10,type:_0x580118,subType:_0x3bd7f6}=this['_splitMarkerName'](_0x2351d7['markerName']);return{'classes':['ck-suggestion-marker',_0x11837e(_0x580118,_0x3bd7f6)],'priority':0xbb8,'attributes':{'data-suggestion':_0x116d3b,'data-author-id':_0x45eb10}};}});const _0x16031a=({showActiveMarkers:_0x1340b9=!0x0,isAttributeSuggestion:_0xd06f16=!0x1}={})=>(_0x23b6a6,_0x37685c,_0x36db6c)=>{if(!_0x37685c['item'])return;const {id:_0x2130c3,authorId:_0x566f99}=this['_splitMarkerName'](_0x37685c['markerName']);if(_0xd06f16){const _0xe5610=this['_suggestions']['get'](_0x2130c3),_0x47349c=this['_getAttributeKey'](_0xe5610);if(!this['_isBlockAttribute'](_0x47349c))return;}if(_0x37685c['item']['is']('selection'))return void _0x36db6c['consumable']['consume'](_0x37685c['item'],_0x23b6a6['name']);const _0x2cd923=_0x36db6c['mapper']['toViewElement'](_0x37685c['item']);if(_0x37685c['item']['is']('element')&&_0x39d9c2['model']['schema']['isBlock'](_0x37685c['item'])&&!_0x2cd923['getCustomProperty']('addHighlight')){_0x36db6c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2cd923),_0x36db6c['writer']['setAttribute']('data-suggestion',_0x2130c3,_0x2cd923),_0x36db6c['writer']['setAttribute']('data-author-id',_0x566f99,_0x2cd923),_0x36db6c['mapper']['bindElementToMarker'](_0x2cd923,_0x37685c['markerName']),_0x1340b9&&(this['activeMarkers']['includes'](_0x37685c['markerName'])?_0x36db6c['writer']['addClass']('ck-suggestion-marker--active',_0x2cd923):_0x36db6c['writer']['removeClass']('ck-suggestion-marker--active',_0x2cd923));for(const _0x3d8023 of _0x39d9c2['model']['createRangeIn'](_0x37685c['item'])['getItems']())_0x36db6c['consumable']['consume'](_0x3d8023,_0x23b6a6['name']);_0x36db6c['consumable']['consume'](_0x37685c['item'],_0x23b6a6['name']);}};_0x39d9c2['conversion']['for']('dataDowncast')['add'](_0x382010=>{_0x382010['on']('addMarker:suggestion:formatBlock',(_0x294bca,_0x267239,_0x31fb24)=>{_0x31fb24['options']['showSuggestionHighlights']&&_0x16031a({'showActiveMarkers':!0x1})(_0x294bca,_0x267239,_0x31fb24);},{'priority':'highest'});}),_0x39d9c2['conversion']['for']('dataDowncast')['add'](_0x31ddf6=>{_0x31ddf6['on']('addMarker:suggestion:attribute',(_0xa32ba4,_0x453268,_0x30ae45)=>{_0x30ae45['options']['showSuggestionHighlights']&&_0x16031a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xa32ba4,_0x453268,_0x30ae45);},{'priority':'highest'});}),_0x39d9c2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x402384,_0x37d8d7)=>{if(_0x37d8d7['options']['showSuggestionHighlights']){const {id:_0x4925a5,authorId:_0x256e44}=this['_splitMarkerName'](_0x402384);return _0x402384['includes'](':split')||_0x402384['includes'](':merge')?{'group':'suggestion','name':_0x402384['substr'](0xb),'attributes':{'data-suggestion':_0x4925a5,'data-author-id':_0x256e44}}:null;}return{'group':'suggestion','name':_0x402384['substr'](0xb)};}}),_0x39d9c2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x23693a,{writer:_0x131aa1})=>{let _0x5cda99='suggestion:'+_0x23693a['getAttribute']('suggestion-type')+':'+_0x23693a['getAttribute']('id');return _0x23693a['getAttribute']('marker-count')&&(_0x5cda99+=':'+_0x23693a['getAttribute']('marker-count')),_0x131aa1['createElement']('$marker',{'data-name':_0x5cda99});}}),_0x39d9c2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x39d9c2['conversion']['for']('editingDowncast')['add'](_0x35640e=>{_0x35640e['on']('addMarker:suggestion:formatBlock',_0x16031a(),{'priority':'high'});}),_0x39d9c2['conversion']['for']('editingDowncast')['add'](_0x3be8c5=>{_0x3be8c5['on']('addMarker:suggestion:attribute',_0x16031a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x39d9c2['conversion']['for']('editingDowncast')['add'](_0x2148fa=>{_0x2148fa['on']('removeMarker:suggestion:formatBlock',(_0x706d55,_0x576549,_0x4a8841)=>{const _0x42046d=_0x4a8841['mapper']['markerNameToElements'](_0x576549['markerName']);if(_0x42046d){for(const _0x4932aa of _0x42046d)_0x4932aa['getCustomProperty']('addHighlight')||(_0x4a8841['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4932aa),_0x4a8841['writer']['removeAttribute']('data-suggestion',_0x4932aa),_0x4a8841['writer']['removeAttribute']('data-author-id',_0x4932aa),_0x4a8841['mapper']['unbindElementFromMarkerName'](_0x4932aa,_0x576549['markerName']));}},{'priority':'high'});}),_0x39d9c2['conversion']['for']('editingDowncast')['add'](_0x5cc019=>{_0x5cc019['on']('removeMarker:suggestion:attribute',(_0x37e3e3,_0x2503a0,_0x630884)=>{const _0x531acf=_0x630884['mapper']['markerNameToElements'](_0x2503a0['markerName']);if(!_0x531acf)return;const {id:_0x20a0f6}=this['_splitMarkerName'](_0x2503a0['markerName']),_0xf54fc=this['_suggestions']['get'](_0x20a0f6),_0x1e4898=this['_getAttributeKey'](_0xf54fc);if(this['_isBlockAttribute'](_0x1e4898)){for(const _0x46f2a3 of _0x531acf)_0x46f2a3['getCustomProperty']('addHighlight')||(_0x630884['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x46f2a3),_0x630884['writer']['removeAttribute']('data-suggestion',_0x46f2a3),_0x630884['writer']['removeAttribute']('data-author-id',_0x46f2a3),_0x630884['mapper']['unbindElementFromMarkerName'](_0x46f2a3,_0x2503a0['markerName']));}},{'priority':'high'});}),_0x39d9c2['model']['document']['registerPostFixer'](_0x3dd743=>{let _0x1a7798=!0x1;const _0x2e8643=Array['from'](_0x39d9c2['model']['document']['differ']['getChangedMarkers']()),_0x4661c9=new Set();for(const {name:_0x46452d,data:_0x1e9f21}of _0x2e8643){const {group:_0x48c31e,type:_0x1c7c61,subType:_0x4b6104,id:_0x41d14a}=this['_splitMarkerName'](_0x46452d);if('suggestion'!==_0x48c31e)continue;const _0x10e3b0=this['_suggestions']['get'](_0x41d14a);if(null!=_0x1e9f21['newRange']){'formatInline'==_0x1c7c61&&(_0x1a7798=_0x1a7798||Jt(_0x1e9f21['newRange'],_0x46452d,_0x3dd743,_0x39d9c2['model']['schema']));const _0x1844a4='attribute'==_0x1c7c61&&this['_isBlockAttribute'](_0x4b6104['split']('|')[0x0]);if(_0x1e9f21['newRange']['isCollapsed']||'$graveyard'==_0x1e9f21['newRange']['root']['rootName']||'formatBlock'==_0x1c7c61&&!Ht(_0x1e9f21['newRange'])||_0x1844a4&&!Ht(_0x1e9f21['newRange'])||'deletion'==_0x1c7c61&&!(!Lt(_0x378f7f=_0x1e9f21['newRange'])&&!function(_0x3c1a51){return _0x3c1a51['start']['parent']==_0x3c1a51['end']['nodeBefore']&&_0x3c1a51['start']['isAtEnd'];}(_0x378f7f)))_0x3dd743['removeMarker'](_0x46452d),_0x1a7798=!0x0;else{if(!_0x10e3b0||!_0x10e3b0['isInContent'])continue;if(_0x1e9f21['newRange']&&_0x1e9f21['oldRange']&&_0x1e9f21['newRange']['isEqual'](_0x1e9f21['oldRange']))continue;_0x4661c9['add'](_0x10e3b0);}}}var _0x378f7f;return _0x4661c9['size']>0x0&&(_0x1a7798=!!this['_joinWithAdjacentSuggestions'](_0x4661c9)||_0x1a7798),_0x1a7798;}),_0x39d9c2['model']['document']['registerPostFixer'](_0x9bdf7d=>{let _0x2119a1=!0x1;for(const _0x9df9db of _0x39d9c2['model']['document']['differ']['getChanges']())if('insert'==_0x9df9db['type'])for(const _0x4de615 of this['_suggestions']['values']()){if(_0x4de615['isMultiRange']||!_0x4de615['isInContent'])continue;const _0x4b3c23='formatBlock'==_0x4de615['type'],_0x7ce9e6=this['_getAttributeKey'](_0x4de615),_0x145ac3=_0x7ce9e6&&this['_isBlockAttribute'](_0x7ce9e6);if(!_0x4b3c23&&!_0x145ac3)continue;const _0x4d44f1=_0x4de615['getFirstRange']();if(_0x4d44f1['start']['parent']!=_0x4d44f1['end']['parent']&&!_0x4d44f1['end']['isAtEnd']){const _0x3f5879=_0x39d9c2['model']['createPositionAt'](_0x4d44f1['start']['nodeAfter'],'end'),_0x567ed3=_0x39d9c2['model']['createRange'](_0x4d44f1['start'],_0x3f5879);_0x9bdf7d['updateMarker'](_0x4de615['getFirstMarker'](),{'range':_0x567ed3}),_0x2119a1=!0x0;}}return _0x2119a1;}),_0x39d9c2['model']['document']['registerPostFixer'](_0x1f4ad9=>this['_processAttributeChanges'](_0x1f4ad9)),_0x39d9c2['model']['document']['registerPostFixer'](_0x4b547e=>!_0x4b547e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4b547e)),_0x39d9c2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x39d9c2['model']['document']['on']('change:data',(_0x13d059,_0x4969f5)=>{if(!_0x4969f5['isLocal']||_0x4969f5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4cf692=_0x39d9c2['model']['document']['differ']['getChanges']();if(0x0==_0x4cf692['length'])return;const _0x3fd37f=[],_0x4f8cd2=_0x4cf692['filter'](_0x4ee451=>'attribute'==_0x4ee451['type']),_0x5f3125=_0x4cf692['filter'](_0x34881a=>'insert'==_0x34881a['type']&&'$text'!=_0x34881a['name']);for(const _0x274b52 of _0x4f8cd2)this['_isRegisteredAttribute'](_0x274b52['attributeKey'])&&_0x3fd37f['push']({'key':_0x274b52['attributeKey'],'newValue':_0x274b52['attributeNewValue'],'oldValue':_0x274b52['attributeOldValue'],'range':qt(_0x274b52['range'],_0x39d9c2['model'])});for(const _0x2f89e9 of _0x5f3125){if('rename'!=_0x2f89e9['action']&&'refresh'!=_0x2f89e9['action'])continue;const _0x3a7981=zt(_0x2f89e9['position']['nodeAfter'],_0x39d9c2['model']),_0xe2edd=_0x2f89e9['before'];'rename'==_0x2f89e9['action']&&_0x3fd37f['push']({'key':u,'newValue':_0x2f89e9['name'],'oldValue':_0xe2edd['name'],'range':_0x3a7981});for(const [_0x46c623,_0xc7c2d1]of _0xe2edd['attributes']){if(!this['_isRegisteredAttribute'](_0x46c623))continue;const _0x2921da=_0x2f89e9['attributes']['get'](_0x46c623);_0xc7c2d1!==_0x2921da&&_0x3fd37f['push']({'key':_0x46c623,'newValue':_0x2921da,'oldValue':_0xc7c2d1,'range':_0x3a7981});}for(const [_0x2ae33d,_0x5f2f19]of _0x2f89e9['attributes'])this['_isRegisteredAttribute'](_0x2ae33d)&&(_0xe2edd['attributes']['has'](_0x2ae33d)||_0x3fd37f['push']({'key':_0x2ae33d,'newValue':_0x5f2f19,'oldValue':null,'range':_0x3a7981}));}0x0!=_0x3fd37f['length']&&_0x39d9c2['model']['enqueueChange'](_0x4969f5,_0x4e5239=>{const _0x3264c9=_0x65b9b5();for(const {range:_0x3acc2b,key:_0x4e0e36,oldValue:_0x3c7fde,newValue:_0x3b10c6}of _0x3fd37f)this['markAttributeChange'](_0x3acc2b,_0x4e0e36,_0x3c7fde,_0x3b10c6,{'groupId':_0x3264c9});this['_reduceExistingSuggestions'](_0x4e5239,_0x3fd37f);});},{'priority':'lowest'}),_0x39d9c2['model']['markers']['on']('update:suggestion',(_0x4c639f,_0x53b120,_0x1dde3b)=>{if(null==_0x1dde3b){const {id:_0x4394e6}=this['_splitMarkerName'](_0x53b120['name']),_0x1db269=this['_suggestions']['get'](_0x4394e6);_0x1db269&&_0x1db269['addMarkerName'](_0x53b120['name']);}}),_0x39d9c2['model']['document']['on']('change:data',()=>{const _0x133fdc=Array['from'](_0x39d9c2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x25a425=>'suggestion'===this['_splitMarkerName'](_0x25a425['name'])['group']);if(0x0===_0x133fdc['length'])return;_0x133fdc['sort']((_0x371e20,_0xd7b9dc)=>{const _0x194eeb=_0x371e20['data']['oldRange'],_0x26fd68=_0xd7b9dc['data']['oldRange'];return null===_0x194eeb&&null===_0x26fd68?0x0:null===_0x194eeb&&null!==_0x26fd68?-0x1:null!==_0x194eeb&&null===_0x26fd68?0x1:_0x194eeb['start']['isBefore'](_0x26fd68['start'])?-0x1:0x1;});const _0x426cb2=new Set(),_0x2d3a74=new Set();for(const {name:_0xc1922d,data:_0x56b3ff}of _0x133fdc){const {id:_0x2ef239}=this['_splitMarkerName'](_0xc1922d);if(null===_0x56b3ff['oldRange']){const _0x146979=this['_handleNewSuggestionMarker'](_0xc1922d);_0x2d3a74['add'](_0x146979);}else{const _0x868671=this['_suggestions']['get'](_0x2ef239);null!==_0x56b3ff['newRange']||_0x868671['isInContent']?(_0x426cb2['add'](_0x868671['head']),_0x2d3a74['add'](_0x868671)):this['_removeSuggestion'](_0x868671);}}_0x2d3a74['size']>0x0&&this['_refreshSuggestionsChain'](_0x2d3a74);for(const _0x404b18 of _0x426cb2)this['fire']('suggestionChanged',_0x404b18);}),_0x39d9c2['model']['on']('applyOperation',(_0x1451c6,_0x1c7840)=>{const _0xfe58f4=_0x1c7840[0x0];if(!this['_suggestions']['size'])return;if(!_0xfe58f4['isDocumentOperation'])return;if(_0xfe58f4['batch']['isUndo']||!_0xfe58f4['batch']['isLocal'])return;let _0xdec246,_0x54b4b2;switch(_0xfe58f4['type']){case'insert':_0xdec246=_0x39d9c2['model']['createPositionAt'](_0xfe58f4['position']),_0x54b4b2=_0xdec246['getShiftedBy'](_0xfe58f4['howMany']);break;case'split':_0xdec246=_0x39d9c2['model']['createPositionAt'](_0xfe58f4['splitPosition']),_0x54b4b2=_0x39d9c2['model']['createPositionAt'](_0xfe58f4['moveTargetPosition']);break;case'move':_0xdec246=_0x39d9c2['model']['createPositionAt'](_0xfe58f4['targetPosition']),_0x54b4b2=_0xdec246['getShiftedBy'](_0xfe58f4['howMany']);break;default:return;}const _0x1e83ca=_0x39d9c2['model']['createRange'](_0xdec246,_0x54b4b2);_0x39d9c2['model']['change'](()=>{for(const {suggestion:_0x3d0c9e,meta:_0x4166f5}of this['_findSuggestions'](_0x1e83ca)){if(_0x3d0c9e['isMultiRange'])continue;if('formatInline'==_0x3d0c9e['type'])continue;const _0x4319e=this['_getAttributeKey'](_0x3d0c9e);if(_0x4319e&&this['_isBlockAttribute'](_0x4319e)&&'split'!=_0xfe58f4['type'])continue;const _0x25cd5c=_0x3d0c9e['data']&&_0x3d0c9e['data']['multipleBlocks'];('formatBlock'!=_0x3d0c9e['type']||'split'==_0xfe58f4['type']&&!_0x25cd5c)&&(_0x4166f5['containsRangeInObject']||'insertion'==_0x3d0c9e['type']&&_0x4166f5['isOwn']||_0x3d0c9e['getFirstRange']()['containsRange'](_0x1e83ca)&&this['_breakSuggestionMarker'](_0x3d0c9e,_0xdec246,_0x54b4b2));}});},{'priority':'lowest'}),_0x39d9c2['model']['on']('deleteContent',(_0x193e47,_0x520d18)=>{const _0x4b4c37=_0x520d18[0x0],_0x4c4c62=_0x520d18[0x1];if(_0x4c4c62&&_0x4c4c62['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4b4c37['isCollapsed'])return;const _0x35a1ad=_0x39d9c2['model']['schema'],{start:_0x39edff,end:_0x27a1ac}=_0x4b4c37['getFirstRange'](),_0x4760ea=_0x39edff['nodeAfter']&&_0x35a1ad['isLimit'](_0x39edff['nodeAfter'])?null:_0x35a1ad['getNearestSelectionRange'](_0x39edff,'forward'),_0x5115fb=_0x27a1ac['nodeBefore']&&_0x35a1ad['isLimit'](_0x27a1ac['nodeBefore'])?null:_0x35a1ad['getNearestSelectionRange'](_0x27a1ac,'backward'),_0x50d710=_0x39d9c2['model']['createRange'](_0x4760ea?_0x4760ea['start']:_0x39edff,_0x5115fb?_0x5115fb['end']:_0x27a1ac);_0x39d9c2['model']['change'](_0x1dd8f7=>{this['markDeletion'](_0x50d710);const _0x3e0641=_0x39d9c2['model']['schema']['getNearestSelectionRange'](_0x50d710['start']);_0x4b4c37['is']('documentSelection')?_0x1dd8f7['setSelection'](_0x3e0641):_0x4b4c37['setTo'](_0x3e0641);}),_0x193e47['stop']();},{'priority':_0x1fc7e0['normal']+0xa}),_0x39d9c2['model']['on']('insertContent',(_0x2bd932,_0x53649d)=>{const _0x551739=_0x53649d[_0x53649d['length']-0x1];_0x551739&&_0x551739['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x39d9c2['model']['change'](()=>{let _0x23d906=_0x39d9c2['model']['insertContent'](_0x53649d[0x0],_0x53649d[0x1],_0x53649d[0x2],{'forceDefaultExecution':!0x0});if(!_0x23d906)return;_0x2bd932['return']=_0x23d906['clone']();const _0x7aab06=_0x23d906['end']['nodeBefore'],_0x1e63de=_0x39d9c2['model']['schema'];_0x7aab06&&_0x1e63de['isBlock'](_0x7aab06)&&!_0x1e63de['isObject'](_0x7aab06)&&(_0x23d906=_0x39d9c2['model']['createRange'](_0x23d906['start'],_0x39d9c2['model']['createPositionAt'](_0x7aab06,'end'))),this['markInsertion'](_0x23d906);}),_0x2bd932['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2924ea=new x(_0x39d9c2,this['_suggestions']);_0x39d9c2['commands']['add']('acceptSuggestion',_0x2924ea),this['enableCommand']('acceptSuggestion');const _0x244c04=new O(_0x39d9c2,this['_suggestions']);_0x39d9c2['commands']['add']('discardSuggestion',_0x244c04),this['enableCommand']('discardSuggestion'),_0x39d9c2['commands']['add']('acceptAllSuggestions',new R(_0x39d9c2,_0x2924ea,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x39d9c2['commands']['add']('discardAllSuggestions',new R(_0x39d9c2,_0x244c04,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x39d9c2['commands']['add']('acceptSelectedSuggestions',new E(_0x39d9c2,_0x2924ea,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x39d9c2['commands']['add']('discardSelectedSuggestions',new E(_0x39d9c2,_0x244c04,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3c5397=_0x39d9c2['plugins']['get']('CommentsRepository');this['listenTo'](_0x3c5397,'addComment',(_0x467c79,{threadId:_0x166ddf})=>{const _0x2b1a4c=this['_suggestions']['get'](_0x166ddf);_0x2b1a4c&&_0x2b1a4c['commentThread']&&0x1===_0x2b1a4c['commentThread']['length']&&this['_updateSuggestionData'](_0x166ddf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3c5397,'removeComment',(_0x2d9909,{threadId:_0x3cb5f6})=>{const _0x353e86=this['_suggestions']['get'](_0x3cb5f6);_0x353e86&&_0x353e86['commentThread']&&!_0x353e86['commentThread']['length']&&this['_updateSuggestionData'](_0x3cb5f6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x20ac91){const _0x45c913=_0x5b5215([0x34,0x4b,0x37,0x75,0x56,0x51,0x6f,0x33,0x45,0x4e,0x46,0x5a,0x72,0x70,0x6c,0x48,0x30,0x57,0x35,0x6b,0x74,0x49,0x78,0x7a,0x65,0x6d,0x52,0x6a,0x47,0x64,0x43,0x71,0x69,0x44,0x32,0x38,0x62,0x59,0x61,0x4c,0x66,0x4f,0x39,0x63,0x42,0x68,0x36,0x50,0x76,0x77,0x79,0x41,0x58,0x4a,0x55,0x54,0x31,0x6e,0x67,0x73,0x53,0x4d]),_0x57a6dd=0x42dadd73,_0x4069db=0x42ddbacb^_0x57a6dd,_0x548c7d=window[_0x5b5215([0x44,0x61,0x74,0x65])][_0x5b5215([0x6e,0x6f,0x77])](),_0x5d5652=_0x20ac91[_0x5b5215([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e86e0=new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a8d19=>{_0x5d5652[_0x5b5215([0x6f,0x6e,0x63,0x65])](_0x5b5215([0x72,0x65,0x61,0x64,0x79]),_0x5a8d19);}),_0x583f92={[_0x5b5215([0x6b,0x74,0x79])]:_0x5b5215([0x45,0x43]),[_0x5b5215([0x75,0x73,0x65])]:_0x5b5215([0x73,0x69,0x67]),[_0x5b5215([0x63,0x72,0x76])]:_0x5b5215([0x50,0x2d,0x32,0x35,0x36]),[_0x5b5215([0x78])]:_0x5b5215([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]),[_0x5b5215([0x79])]:_0x5b5215([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]),[_0x5b5215([0x61,0x6c,0x67])]:_0x5b5215([0x45,0x53,0x32,0x35,0x36])},_0x4d7b9f=_0x5d5652[_0x5b5215([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b5215([0x67,0x65,0x74])](_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x274bdb(){let _0x17a821,_0x820161=null,_0x143834=null;try{if(_0x4d7b9f==_0x5b5215([0x47,0x50,0x4c]))return _0x5b5215([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17a821=_0x3f5bb2(),!_0x17a821)return _0x5b5215([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17a821[_0x5b5215([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x143834=_0x34662a(_0x17a821[_0x5b5215([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17a821[_0x5b5215([0x6a,0x74,0x69])])),await _0x26abbc()?_0x1c981e()?_0x385d3a()?_0x5b5215([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a27a3()?(_0x17a821[_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b5215([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x820161=_0xf9df77(_0x5b5215([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17a821[_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b5215([0x74,0x72,0x69,0x61,0x6c])&&(_0x820161=_0xf9df77(_0x5b5215([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x350c66()):_0x5b5215([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b5215([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b5215([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f860b){return _0x5b5215([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x385d3a(){const _0x401fd9=[_0x5b5215([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b5215([0x74,0x72,0x69,0x61,0x6c])][_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a821[_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x548c7d/0x3e8:0xe10*_0x4069db;return _0x17a821[_0x5b5215([0x65,0x78,0x70])]<_0x401fd9;}function _0x1c981e(){const _0xe8ee84=_0x17a821[_0x5b5215([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xe8ee84)return!0x1;if(_0xe8ee84[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b5215([0x2a])))return!0x0;if(_0xe8ee84[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b5215([0x54,0x43])))return!0x0;if(_0xe8ee84[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b5215([0x52,0x54,0x43]))){if(_0x13e3e2())return!0x0;if(_0x43fd89()||_0x55a775())return!0x0;}return!0x1;}function _0x5a27a3(){const _0xe8fe1f=_0x17a821[_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe8fe1f||0x0==_0xe8fe1f[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52b620}=new URL(window[_0x5b5215([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe8fe1f[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52b620))return!0x0;const _0xb88ce=_0x52b620[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])](_0x5b5215([0x2e]));return _0xe8fe1f[_0x5b5215([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33200e=>_0x33200e[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b5215([0x2a])))[_0x5b5215([0x6d,0x61,0x70])](_0x410b57=>_0x410b57[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])](_0x5b5215([0x2e])))[_0x5b5215([0x73,0x6f,0x6d,0x65])](_0x7c97e4=>_0xb88ce[_0x5b5215([0x65,0x76,0x65,0x72,0x79])]((_0x688b30,_0x621372)=>_0x7c97e4[_0x621372]===_0x688b30||_0x7c97e4[_0x621372]===_0x5b5215([0x2a])));}function _0x350c66(){return _0x820161&&_0x143834?new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x283b3d,_0x74da13)=>{_0x820161[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x283b3d,_0x74da13),_0x143834[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x1b2b59=>{_0x1b2b59!=_0x5b5215([0x56,0x61,0x6c,0x69,0x64])&&_0x283b3d(_0x1b2b59);},_0x74da13);}):_0x820161||_0x143834||_0x5b5215([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34662a(_0x16a589,_0x5a6bed){return new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x593117=>{if(_0x1617a8())return _0x593117(_0x5b5215([0x56,0x61,0x6c,0x69,0x64]));_0x34b03a(),_0x5d5652[_0x5b5215([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b5215([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xdbedcc=!0x1;const _0x3ba30e=_0x65b9b5();function _0x229fe4(_0x5a9015){return!!_0x5a9015&&(typeof _0x5a9015===_0x5b5215([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a9015===_0x5b5215([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a9015[_0x5b5215([0x74,0x68,0x65,0x6e])]===_0x5b5215([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a9015[_0x5b5215([0x63,0x61,0x74,0x63,0x68])]===_0x5b5215([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1244fd(_0x120e0c){_0x12c68a(_0x120e0c)[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x453c81=>{if(!_0x453c81||_0x453c81[_0x5b5215([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b5215([0x6f,0x6b]))return _0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9282c0(_0x1aa657(_0x3ba30e+_0x5a6bed))!=_0x453c81[_0x5b5215([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b5215([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x56d225=>(_0x3be06a(),_0x56d225),()=>{const _0x59a42c=_0x4a59fb();return null==_0x59a42c?(_0x3be06a(),_0x5b5215([0x56,0x61,0x6c,0x69,0x64])):_0x5b5215(_0x548c7d-_0x59a42c>(0x66d65973^_0x57a6dd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x593117)[_0x5b5215([0x63,0x61,0x74,0x63,0x68])](()=>{_0x593117(_0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59c91d=0x42ec33f3^_0x57a6dd;function _0x3be06a(){const _0x433a2b=_0x5b5215([0x6c,0x6c,0x63,0x74,0x2d])+_0x9282c0(_0x1aa657(_0x16a589)),_0x22f91f=_0x2f1172(_0x9282c0(window[_0x5b5215([0x4d,0x61,0x74,0x68])][_0x5b5215([0x63,0x65,0x69,0x6c])](_0x548c7d/_0x59c91d)));window[_0x5b5215([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b5215([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x433a2b,_0x22f91f);}function _0x4a59fb(){const _0x15b621=_0x5b5215([0x6c,0x6c,0x63,0x74,0x2d])+_0x9282c0(_0x1aa657(_0x16a589)),_0x30e33c=window[_0x5b5215([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b5215([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b621);return _0x30e33c?window[_0x5b5215([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f1172(_0x30e33c),0x10)*_0x59c91d:null;}function _0x12c68a(_0x20e722){return new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22e4b2,_0xaaea4c)=>{_0x20e722[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x22e4b2,_0xaaea4c),window[_0x5b5215([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaaea4c,0x42db09b3^_0x57a6dd);});}}_0x5d5652[_0x5b5215([0x6f,0x6e])](_0x5b5215([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd0145e,_0x5eb045)=>{if(_0x5eb045[0x0]!=_0x16a589)return _0x593117(_0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5eb045[0x1]={..._0x5eb045[0x1],[_0x5b5215([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ba30e};},{[_0x5b5215([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b5215([0x68,0x69,0x67,0x68])}),_0x5d5652[_0x5b5215([0x6f,0x6e])](_0x5b5215([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4afb9b=>{_0x229fe4(_0x4afb9b[_0x5b5215([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xdbedcc=!0x0,_0x1244fd(_0x4afb9b[_0x5b5215([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b5215([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b5215([0x6c,0x6f,0x77])}),_0x5e86e0[_0x5b5215([0x74,0x68,0x65,0x6e])](()=>{_0xdbedcc||_0x593117(_0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1617a8(){return _0x5d5652[_0x5b5215([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b5215([0x76,0x69,0x65,0x77])][_0x5b5215([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b5215([0x61,0x75,0x74,0x6f]);}function _0x34b03a(){_0x5d5652[_0x5b5215([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b5215([0x76,0x69,0x65,0x77])][_0x5b5215([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b5215([0x61,0x75,0x74,0x6f]);}}function _0xf9df77(_0x3f9332){const _0x5f5262=[new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39b0e2=>setTimeout(_0x39b0e2,0x42d3e3bf^_0x57a6dd)),_0x5e86e0[_0x5b5215([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e48ab=>{let _0x4254b3=0x0;_0x5d5652[_0x5b5215([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b5215([0x6f,0x6e])](_0x5b5215([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x574b7d,_0x14716c)=>{_0x14716c[0x0][_0x5b5215([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4254b3++,_0x4254b3==(0x42dadc8b^_0x57a6dd)&&(_0x3e48ab(),_0x574b7d[_0x5b5215([0x6f,0x66,0x66])]());});}))];return window[_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b5215([0x72,0x61,0x63,0x65])](_0x5f5262)[_0x5b5215([0x74,0x68,0x65,0x6e])](()=>_0x3f9332);}async function _0x2e666a(){await _0x5e86e0,_0x5d5652[_0x5b5215([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b5215([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ddaba,_0x5d5652[_0x5b5215([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b5215([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ddaba,_0x5d5652[_0x5b5215([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b5215([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13e3e2(){return _0x1d3117(_0x5b5215([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x12fe12(_0x5b5215([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5b5215([0x73,0x74,0x61,0x74,0x65])]==_0x5b5215([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43fd89(){return _0x1d3117(_0x5b5215([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 _0x55a775(){return _0x1d3117(_0x5b5215([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2cc07e(_0xf06fd9){const _0x1d096f=_0x436396();_0x5d5652[_0x1d096f]=_0x5b5215([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf06fd9,_0xf06fd9!=_0x5b5215([0x56,0x61,0x6c,0x69,0x64])&&_0x2e666a();}function _0x436396(){const _0x283ab2=window[_0x5b5215([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b5215([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b5215([0x6e,0x6f,0x77])]())[_0x5b5215([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b5215([0x2e]),'');let _0x8434da=_0x5b5215([0x4b]);for(let _0x20a501=0x0;_0x20a501<_0x283ab2[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20a501+=0x2){let _0x41d679=window[_0x5b5215([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x283ab2[_0x5b5215([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20a501,_0x20a501+0x2));_0x41d679>=_0x45c913[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41d679-=_0x45c913[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8434da+=_0x45c913[_0x41d679];}return _0x8434da;}function _0x3f5bb2(){const _0x34d87e=_0x4d7b9f[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])](_0x5b5215([0x2e]));if(0x3!=_0x34d87e[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x33040e(_0x34d87e[0x1]);function _0x33040e(_0x226190){const _0x9bfeec=_0x379bb5(_0x226190);return _0x9bfeec&&_0x21adb4()?_0x9bfeec:null;function _0x21adb4(){const _0x5bffb6=_0x9bfeec[_0x5b5215([0x6a,0x74,0x69])],_0x4ee662=window[_0x5b5215([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bffb6[_0x5b5215([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bffb6[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5874f1={..._0x9bfeec,[_0x5b5215([0x6a,0x74,0x69])]:_0x5bffb6[_0x5b5215([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bffb6[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5874f1[_0x5b5215([0x76,0x63])],_0x1aa657(_0x5874f1)==_0x4ee662;}}}async function _0x26abbc(){let _0x2247e5=!0x0;try{const _0x57bd78=_0x4d7b9f[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])](_0x5b5215([0x2e])),[_0x29c7f8,_0x14d868,_0x5acb2]=_0x57bd78;return _0x310756(_0x29c7f8),await _0x2ee2d2(_0x29c7f8,_0x14d868,_0x5acb2),_0x2247e5;}catch(_0x179423){return!0x1;}function _0x310756(_0x4db37d){const _0x5139b4=_0x379bb5(_0x4db37d);_0x5139b4&&_0x5139b4[_0x5b5215([0x61,0x6c,0x67])]==_0x5b5215([0x45,0x53,0x32,0x35,0x36])||(_0x2247e5=!0x1);}async function _0x2ee2d2(_0xb61b78,_0x4af776,_0x7a4351){const _0x225a6c=window[_0x5b5215([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b5215([0x66,0x72,0x6f,0x6d])](_0x39fb6(_0x7a4351),_0x304dda=>_0x304dda[_0x5b5215([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47923f=new window[(_0x5b5215([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b5215([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb61b78+_0x5b5215([0x2e])+_0x4af776),_0x15ab21=window[_0x5b5215([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b5215([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15ab21)return;const _0x9fe1c5=await _0x15ab21[_0x5b5215([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b5215([0x6a,0x77,0x6b]),_0x583f92,{[_0x5b5215([0x6e,0x61,0x6d,0x65])]:_0x5b5215([0x45,0x43,0x44,0x53,0x41]),[_0x5b5215([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b5215([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b5215([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15ab21[_0x5b5215([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b5215([0x6e,0x61,0x6d,0x65])]:_0x5b5215([0x45,0x43,0x44,0x53,0x41]),[_0x5b5215([0x68,0x61,0x73,0x68])]:{[_0x5b5215([0x6e,0x61,0x6d,0x65])]:_0x5b5215([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9fe1c5,_0x225a6c,_0x47923f)||(_0x2247e5=!0x1);}}function _0x379bb5(_0x59209f){return _0x59209f[_0x5b5215([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b5215([0x65,0x79]))?JSON[_0x5b5215([0x70,0x61,0x72,0x73,0x65])](_0x39fb6(_0x59209f)):null;}function _0x39fb6(_0x1b87a1){return window[_0x5b5215([0x61,0x74,0x6f,0x62])](_0x1b87a1[_0x5b5215([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b5215([0x2b]))[_0x5b5215([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b5215([0x2f])));}function _0x1aa657(_0x545090){let _0x19f3a1=0x1505;function _0x290714(_0x25a9d7){for(let _0x24653a=0x0;_0x24653a<_0x25a9d7[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24653a++){const _0x38178f=_0x25a9d7[_0x5b5215([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24653a);_0x19f3a1=(_0x19f3a1<<0x5)+_0x19f3a1+_0x38178f,_0x19f3a1&=_0x19f3a1;}}function _0x47a3c3(_0x4f7542){Array[_0x5b5215([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f7542)?_0x4f7542[_0x5b5215([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47a3c3):_0x4f7542&&typeof _0x4f7542==_0x5b5215([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b5215([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f7542)[_0x5b5215([0x73,0x6f,0x72,0x74])]()[_0x5b5215([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x351783,_0x308927])=>{_0x290714(_0x351783),_0x47a3c3(_0x308927);}):_0x290714(window[_0x5b5215([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f7542));}return _0x47a3c3(_0x545090),_0x19f3a1>>>0x0;}function _0x9282c0(_0x5a8f7d){return _0x5a8f7d[_0x5b5215([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b5215([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b5215([0x30]));}function _0x2f1172(_0x580deb){return _0x580deb[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b5215([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b5215([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d3117(_0x32c7ad){return _0x5d5652[_0x5b5215([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b5215([0x68,0x61,0x73])](_0x32c7ad);}function _0x12fe12(_0x26abe3){return _0x5d5652[_0x5b5215([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b5215([0x67,0x65,0x74])](_0x26abe3);}function _0x3ddaba(){}function _0x5b5215(_0x4477ca){return _0x4477ca['map'](_0x478d82=>String['fromCharCode'](_0x478d82))['join']('');}_0x2cc07e(await _0x274bdb());}(this);}set['adapter'](_0xc7a08){if(this['_adapter'])throw new _0x328969('track-changes-adapter-already-set',this);this['_adapter']=_0xc7a08;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3bf280=!0x1,toJSON:_0x32ad6f=!0x1}={}){const _0x47b360=[];for(const _0x19c2d7 of this['_suggestions']['values']())_0x3bf280&&!_0x19c2d7['isInContent']||_0x47b360['push'](_0x19c2d7);return _0x32ad6f?_0x47b360['map'](_0x32e0d2=>_0x32e0d2['toJSON']()):_0x47b360;}['getSuggestion'](_0x2f0222){const _0x41b938=this['_suggestions']['get'](_0x2f0222);if(!_0x41b938)throw new _0x328969('track-changes-suggestion-not-found',this);return _0x41b938;}['hasSuggestion'](_0x56451c){return this['_suggestions']['has'](_0x56451c);}['addSuggestionData'](_0x4fa29a){const {authorId:_0x334556,id:_0x399e3f,attributes:_0x41fb4c}=_0x4fa29a,[_0x3ed59f,_0x446626]=_0x4fa29a['type']['split'](':'),_0x39a456=this['_suggestions']['get'](_0x399e3f)||this['_createSuggestion'](_0x3ed59f,_0x446626,_0x399e3f,_0x334556,_0x41fb4c);if(this['_addThreadToSuggestion'](_0x39a456),this['_checkSuggestionCorrectness'](_0x39a456,_0x3ed59f,_0x446626||null,_0x334556),_0x39a456['createdAt']=_0x4fa29a['createdAt'],_0x39a456['_isDataLoaded']=!0x0,_0x41fb4c&&_0x41fb4c['@external']){const _0x45ed29=_0x41fb4c['@external'],_0x29e55a=this['_getExternalAuthor'](_0x45ed29['authorName']);_0x39a456['authoredAt']=_0x45ed29['createdAt'],_0x39a456['author']=_0x29e55a,_0x39a456['isExternal']=!0x0;}else _0x39a456['authoredAt']=_0x4fa29a['createdAt'];switch(_0x4fa29a['data']&&(_0x39a456['data']=_0x4fa29a['data']),_0x4fa29a['attributes']&&(_0x39a456['attributes']=_0x4fa29a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x39a456['_saved']=!0x0),this['_suggestionState']['get'](_0x39a456)){case'notReady':this['_suggestionState']['set'](_0x39a456,'dataReady');break;case'markerReady':_0x39a456['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x39a456])),this['_refreshSuggestionsChain'](new Set([_0x39a456])),this['_suggestionState']['set'](_0x39a456,'ready'),this['fire']('suggestionLoaded',_0x39a456)):this['_suggestionState']['set'](_0x39a456,'removed');}return _0x39a456;}['acceptSuggestion'](_0x9229b5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43c142 of _0x9229b5['getAllAdjacentSuggestions']())_0x43c142['accept']();});});}['discardSuggestion'](_0xb974d6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58d519 of _0xb974d6['getAllAdjacentSuggestions']())_0x58d519['discard']();});});}['enableCommand'](_0x91bd59,_0x4dcb81){const _0x24c894=this['editor']['commands']['get'](_0x91bd59);if(!_0x24c894)throw new _0x328969('track-changes-command-not-found',this,{'commandName':_0x91bd59});if(this['_enabledCommands']['has'](_0x24c894))throw new _0x328969('track-changes-enable-command-twice',this,{'commandName':_0x91bd59});this['_enabledCommands']['add'](_0x24c894),_0x4dcb81&&_0x24c894['on']('execute',(_0x43f3b5,_0x4bae8a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4bae8a['length']>0x0&&_0x4bae8a[_0x4bae8a['length']-0x1]&&_0x4bae8a[_0x4bae8a['length']-0x1]['forceDefaultExecution']?_0x4bae8a['pop']():(_0x43f3b5['return']=_0x4dcb81((..._0x5d4270)=>_0x24c894['execute'](..._0x5d4270,{'forceDefaultExecution':!0x0}),..._0x4bae8a),_0x43f3b5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8d5263){let _0x181eac,_0x2c15aa;const _0x304873=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x181eac=_0x8d5263();}catch(_0x5a88c6){_0x2c15aa=_0x5a88c6;}return _0x304873||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c15aa&&_0x328969['rethrowUnexpectedError'](_0x2c15aa,this),_0x181eac;}['markInsertion'](_0x2c34d7,_0x3a61e5=null,_0x41d604={}){if(_0x2c34d7['isCollapsed'])return null;const _0x4444a1=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x41d604['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x30cb57,meta:_0x10c038}of this['_findSuggestions'](_0x2c34d7,'insertion'))if(_0x10c038['isOwn']){if(!_0x10c038['isNextTo']){if(_0x10c038['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x30cb57,_0x41d604))continue;return _0x30cb57;}if(Xt(_0x30cb57,_0x41d604))return _0x30cb57;this['_breakSuggestionMarker'](_0x30cb57,_0x2c34d7['start'],_0x2c34d7['end']);break;}if(_0x3a61e5==_0x30cb57['subType']&&Xt(_0x30cb57,_0x41d604)){const _0x344ef1=_0x30cb57['getFirstRange']();return _0x344ef1['start']['isEqual'](_0x2c34d7['end'])?this['_setSuggestionRange'](_0x30cb57,this['_model']['createRange'](_0x2c34d7['start'],_0x344ef1['end'])):this['_setSuggestionRange'](_0x30cb57,this['_model']['createRange'](_0x344ef1['start'],_0x2c34d7['end'])),_0x30cb57;}}const _0x451c60=_0x65b9b5(),_0x498a94=_0x4444a1['id'],_0x134831=_0x3a61e5?'insertion:'+_0x3a61e5:'insertion',_0x53d103=this['_setSuggestionData']({'id':_0x451c60,'type':_0x134831,'createdAt':new Date(),'authorId':_0x498a94,'attributes':_0x41d604});return this['_addSuggestionMarker'](_0x134831,_0x451c60,_0x498a94,_0x2c34d7),_0x53d103;}['markMultiRangeInsertion'](_0x345278,_0x48e706='multi',_0x2aa12e={}){const _0x1c11d1=this['editor']['plugins']['get']('Users')['me'],_0x580115=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x48e706,'join');this['_trackingSessionId']&&(_0x2aa12e['trackingSessionId']=this['_trackingSessionId']);for(const _0x130c24 of this['getSuggestions']())if(_0x130c24['author']['id']==_0x1c11d1['id']&&'insertion'==_0x130c24['type']&&_0x130c24['subType']==_0x48e706&&Xt(_0x130c24,_0x2aa12e)&&(_0x580115(_0x130c24['getRanges'](),_0x345278)||_0x580115(_0x345278,_0x130c24['getRanges']()))){for(const _0x17cfe4 of _0x345278)_0x130c24['addRange'](_0x17cfe4);return _0x130c24;}for(const {suggestion:_0x530577,meta:_0x21bfa2}of this['_findSuggestions'](_0x345278,'insertion')){if(!_0x21bfa2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x21bfa2['containsRangeInObject'])continue;if(!Xt(_0x530577,_0x2aa12e))continue;let _0x19d694=!0x0;for(const _0x2603fc of _0x530577['getRanges']())for(const _0x1b4c53 of _0x345278)if(!_0x2603fc['containsRange'](_0x1b4c53)){_0x19d694=!0x1;break;}if(_0x19d694)return _0x530577;}const _0x190528=_0x65b9b5(),_0x2dd243=_0x1c11d1['id'],_0x4be03f='insertion:'+_0x48e706,_0x38a5ee=this['_setSuggestionData']({'id':_0x190528,'type':_0x4be03f,'createdAt':new Date(),'authorId':_0x2dd243,'attributes':_0x2aa12e});for(const _0x11adaf of _0x345278)this['_addSuggestionMarker'](_0x4be03f,_0x190528,_0x2dd243,_0x11adaf,o['getMultiRangeId']());return _0x38a5ee;}['markInlineFormat'](_0x477583,_0x3c0196,_0x11cfd1=null,_0x349d00={}){if(_0x11cfd1=_0x11cfd1||Kt(_0x3c0196),_0x477583['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x349d00['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa928bf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11cfd1,'accept');return this['forceDefaultExecution'](()=>_0xa928bf([_0x477583],_0x3c0196,_0x349d00)),null;}const _0x55c8c4=this['editor']['plugins']['get']('Users')['me'],_0x11b12c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x43589a,meta:_0x2f82b8}of this['_findSuggestions'](_0x477583,'insertion'))_0x2f82b8['isOwn']&&!_0x2f82b8['isInsideObject']&&_0x11b12c['push'](..._0x43589a['getRanges']());}const _0x46b8a7=function(_0x1c07b7,_0x297414){const _0x2e71c6=[];for(const _0x3580a0 of _0x297414){const _0x3a107f=_0x1c07b7['getIntersection'](_0x3580a0);_0x3a107f&&_0x2e71c6['push'](_0x3a107f);}return _0x2e71c6;}(_0x477583,_0x11b12c),_0x28b8fe=function(_0x295be5,_0x25a388){const _0x2dd5a8=[_0x295be5];for(const _0x577c7a of _0x25a388){let _0x5dfda5=0x0;for(;_0x5dfda5<_0x2dd5a8['length'];){const _0x4da86f=_0x2dd5a8[_0x5dfda5]['getDifference'](_0x577c7a);_0x2dd5a8['splice'](_0x5dfda5,0x1,..._0x4da86f),_0x5dfda5+=_0x4da86f['length'];}}return _0x2dd5a8;}(_0x477583,_0x11b12c);_0x46b8a7['length']&&this['_model']['change'](()=>{for(const _0x302e46 of _0x46b8a7){const _0x3ba541=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11cfd1,'accept');this['forceDefaultExecution'](()=>_0x3ba541([_0x302e46],_0x3c0196,_0x349d00));}});for(const _0x15981d of _0x28b8fe){let _0x47b784=null,_0x59183=_0x15981d['start'],_0x572ef3=_0x15981d['end'];for(const {suggestion:_0x236ca1,meta:_0x142f75}of this['_findSuggestions'](_0x15981d,'formatInline')){if(!_0x142f75['isOwn'])continue;if(_0x236ca1['subType']!=_0x11cfd1)continue;if(!Xt(_0x236ca1,_0x349d00))continue;const _0x5ea3dc=_0x236ca1['getFirstRange']();if(_0x5ea3dc['containsRange'](_0x15981d,!0x0))return null;_0x59183=_0x59183['isBefore'](_0x5ea3dc['start'])?_0x59183:_0x5ea3dc['start'],_0x572ef3=_0x572ef3['isAfter'](_0x5ea3dc['end'])?_0x572ef3:_0x5ea3dc['end'],_0x47b784?_0x5ea3dc['start']['isBefore'](_0x47b784['getFirstRange']()['start'])?(_0x47b784['removeMarkers'](),_0x47b784=_0x236ca1):_0x236ca1['removeMarkers']():_0x47b784=_0x236ca1;}const _0x1134e0=this['_model']['createRange'](_0x59183,_0x572ef3);if(_0x47b784)this['_setSuggestionRange'](_0x47b784,_0x1134e0);else{const _0x1b080c=_0x65b9b5(),_0x4bca64=_0x55c8c4['id'];this['_setSuggestionData']({'id':_0x1b080c,'type':'formatInline:'+_0x11cfd1,'data':_0x3c0196,'createdAt':new Date(),'authorId':_0x4bca64,'attributes':_0x349d00}),this['_addSuggestionMarker']('formatInline:'+_0x11cfd1,_0x1b080c,_0x4bca64,_0x1134e0);}}return null;}['markBlockFormat'](_0x3f088f,_0x1fa039,_0x4bdf84=[],_0x1d2dca=null,_0x183e9a={}){_0x1fa039['formatGroupId']||(_0x1fa039['formatGroupId']=_0x1fa039['commandName']),_0x1fa039['multipleBlocks']=_0x3f088f['is']('range'),_0x1d2dca=_0x1d2dca||Kt(_0x1fa039);const _0x3ba1a1=_0x4bdf84['map'](_0x24ee48=>zt(_0x24ee48,this['_model'])),_0x49264a=_0x3f088f['is']('range')?_0x3f088f:zt(_0x3f088f,this['_model']);if(this['_trackingSessionId']&&(_0x183e9a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40b6fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d2dca,'accept');return this['forceDefaultExecution'](()=>_0x40b6fb([_0x49264a],_0x1fa039,_0x183e9a)),null;}_0x3ba1a1['push'](_0x49264a);let _0x2992a2=!0x0;for(const _0xd73b36 of _0x3ba1a1)if(!this['_rangeIsInLocalUserInsertion'](_0xd73b36)){_0x2992a2=!0x1;break;}if(_0x2992a2&&'always'!==this['_trackFormatChanges']){const _0x8126c7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d2dca,'accept');return this['forceDefaultExecution'](()=>_0x8126c7([_0x49264a],_0x1fa039,_0x183e9a)),null;}let _0x4c2b29=null,_0x1c8d42=_0x49264a['start'],_0x5e158d=_0x49264a['end'];for(const {suggestion:_0x372e07,meta:_0x25eb5b}of this['_findSuggestions'](_0x49264a,'formatBlock')){if(!_0x25eb5b['isOwn'])continue;if(_0x25eb5b['isNextTo']||_0x25eb5b['containsRangeInObject']||_0x25eb5b['isInsideObject'])continue;if(_0x372e07['data']['formatGroupId']!=_0x1fa039['formatGroupId'])continue;if(!Xt(_0x372e07,_0x183e9a))continue;const _0x58c861=_0x372e07['getFirstRange']();if(_0x372e07['subType']==_0x1d2dca){if(_0x58c861['containsRange'](_0x49264a,!0x0))return null;_0x1c8d42=_0x1c8d42['isBefore'](_0x58c861['start'])?_0x1c8d42:_0x58c861['start'],_0x5e158d=_0x5e158d['isAfter'](_0x58c861['end'])?_0x5e158d:_0x58c861['end'],_0x4c2b29?_0x58c861['start']['isBefore'](_0x4c2b29['getFirstRange']()['start'])?(_0x4c2b29['removeMarkers'](),_0x4c2b29=_0x372e07):_0x372e07['removeMarkers']():_0x4c2b29=_0x372e07;}else{const _0x23e7ac=_0x49264a['getIntersection'](_0x58c861);this['_cutOutSuggestionMarker'](_0x372e07,_0x23e7ac);}}const _0x57dc80=this['editor']['plugins']['get']('Users')['me'],_0x1677a2=_0x65b9b5(),_0x519ade=_0x57dc80['id'];if(_0x4c2b29)return this['_setSuggestionRange'](_0x4c2b29,this['_model']['createRange'](_0x1c8d42,_0x5e158d)),_0x4c2b29;{const _0xfe8bcf=this['_setSuggestionData']({'id':_0x1677a2,'type':'formatBlock:'+_0x1d2dca,'data':_0x1fa039,'createdAt':new Date(),'authorId':_0x519ade,'attributes':_0x183e9a});return this['_addSuggestionMarker']('formatBlock:'+_0x1d2dca,_0x1677a2,_0x519ade,this['_model']['createRange'](_0x1c8d42,_0x5e158d)),_0xfe8bcf;}}['markMultiRangeBlockFormat'](_0xb9c954,_0x3f77f3,_0x400443=[],_0x4b122f=null,_0x279476={}){_0x3f77f3['formatGroupId']||(_0x3f77f3['formatGroupId']=_0x3f77f3['commandName']);const _0x35f868=_0xb9c954[0x0];_0x3f77f3['multipleBlocks']=_0x35f868['is']('range'),_0x4b122f=_0x4b122f||Kt(_0x3f77f3);const _0x207308=_0x400443['map'](_0x1042bb=>zt(_0x1042bb,this['_model'])),_0x10afee=_0x35f868['is']('range')?_0xb9c954:_0xb9c954['map'](_0x284e5e=>zt(_0x284e5e,this['_model']));if(this['_trackingSessionId']&&(_0x279476['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2e6d2f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b122f,'accept');return this['forceDefaultExecution'](()=>_0x2e6d2f(_0x10afee,_0x3f77f3,_0x279476)),null;}_0x207308['push'](..._0x10afee);let _0x42b41f=!0x0;for(const _0x211d20 of _0x207308)if(!this['_rangeIsInLocalUserInsertion'](_0x211d20)){_0x42b41f=!0x1;break;}if(_0x42b41f&&'always'!==this['_trackFormatChanges']){const _0x3c49c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b122f,'accept');return this['forceDefaultExecution'](()=>_0x3c49c6(_0x10afee,_0x3f77f3,_0x279476)),null;}const _0x55dbac=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c840d of this['getSuggestions']()){if(_0x3c840d['author']['id']!=_0x55dbac['id'])continue;if('formatBlock'!=_0x3c840d['type']||_0x3c840d['data']['formatGroupId']!=_0x3f77f3['formatGroupId'])continue;if(!Xt(_0x3c840d,_0x279476))continue;const _0x77dc9b=_0x3c840d['subType']==_0x4b122f;for(let _0x23dec8=0x0;_0x23dec8<_0x10afee['length'];_0x23dec8++){const _0x3e8568=_0x10afee[_0x23dec8];for(const _0x5b992d of _0x3c840d['getMarkers']()){const _0x7f0408=_0x5b992d['getRange']();if(_0x3e8568['isEqual'](_0x7f0408)){_0x77dc9b?(_0x10afee['splice'](_0x23dec8,0x1),_0x23dec8--):_0x3c840d['removeMarker'](_0x5b992d['name']);break;}}}}if(0x0==_0x10afee['length'])return null;const _0x3160d3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b122f,'join');for(const _0x188a60 of this['getSuggestions']())if(_0x188a60['author']['id']==_0x55dbac['id']&&'formatBlock'==_0x188a60['type']&&_0x188a60['data']['formatGroupId']==_0x3f77f3['formatGroupId']&&_0x188a60['subType']==_0x4b122f&&Xt(_0x188a60,_0x279476)&&(_0x3160d3(_0x188a60['getRanges'](),_0x10afee)||_0x3160d3(_0x10afee,_0x188a60['getRanges']()))){for(const _0x11b949 of _0x10afee)_0x188a60['addRange'](_0x11b949);return _0x188a60;}const _0x126c4d=_0x65b9b5(),_0x312350=_0x55dbac['id'],_0x576285='formatBlock:'+_0x4b122f,_0x287d65=this['_setSuggestionData']({'id':_0x126c4d,'type':_0x576285,'data':_0x3f77f3,'createdAt':new Date(),'authorId':_0x312350,'attributes':_0x279476});for(const _0x946efa of _0x10afee)this['_addSuggestionMarker'](_0x576285,_0x126c4d,_0x312350,_0x946efa,o['getMultiRangeId']());return _0x287d65;}['markDeletion'](_0x33bd56,_0x19ce7d=null,_0x22a56e={}){if(_0x33bd56['isCollapsed'])return null;const _0x3e5af1=this['editor']['plugins']['get']('Users')['me'],_0x113dab=new _0xc48f37(_0x33bd56['start'],_0x33bd56['end']);this['_trackingSessionId']&&(_0x22a56e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ff0dc,meta:_0x54922a}of this['_findSuggestions'](_0x113dab,'insertion'))if(_0x54922a['isOwn']&&!_0x54922a['isNextTo']){if(_0x3ff0dc['isMultiRange']){const _0x11a45f=_0x3ff0dc['getRanges']()['filter'](_0x440851=>'$graveyard'!=_0x440851['root']['rootName']);_0x11a45f['every'](_0x1e22f2=>_0x113dab['containsRange'](_0x1e22f2,!0x0))&&_0x3ff0dc['discard']();if(_0x11a45f['some'](_0x1841ca=>_0x1841ca['containsRange'](_0x113dab,!0x0))){const _0x339ef2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19ce7d,'accept');return this['forceDefaultExecution'](()=>_0x339ef2([_0x113dab],null,_0x22a56e)),null;}}else{const _0x53a33d=_0x113dab['getIntersection'](_0x3ff0dc['getFirstRange']());null!==_0x53a33d&&_0x3ff0dc['_onDiscard']([_0x53a33d],null,_0x22a56e);}}if(_0x113dab['detach'](),_0x113dab['isCollapsed']||'$graveyard'==_0x113dab['root']['rootName'])return null;let _0x56b27d=null,_0x41f139=_0x113dab['start'],_0x4c37d2=_0x113dab['end'];const _0x8dcc0d=this['_findSuggestions'](_0x113dab,'deletion');for(const {suggestion:_0x2e4adc,meta:_0x4a6f12}of _0x8dcc0d){const _0x23e102=this['_model']['createRange'](_0x41f139,_0x4c37d2);if(_0x4a6f12['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a6f12['containsRangeInObject']&&!_0x4a6f12['isInsideObject'])){if(_0x2e4adc['isMultiRange']){if(!Xt(_0x2e4adc,_0x22a56e))continue;let _0x4a1eb9=!0x0;for(const _0x1d3d30 of _0x2e4adc['getRanges']()){if(_0x1d3d30['containsRange'](_0x23e102,!0x0))return _0x2e4adc;_0x23e102['containsRange'](_0x1d3d30)||(_0x4a1eb9=!0x1);}_0x4a1eb9&&_0x2e4adc['discard']();}else{const _0x5345e4=_0x2e4adc['getFirstRange']();if(_0x5345e4['containsRange'](_0x23e102,!0x0))return _0x2e4adc;if(!Xt(_0x2e4adc,_0x22a56e)){_0x23e102['containsRange'](_0x5345e4)?_0x2e4adc['removeMarkers']():_0x5345e4['containsPosition'](_0x41f139)?_0x41f139=_0x5345e4['end']:_0x5345e4['containsPosition'](_0x4c37d2)&&(_0x4c37d2=_0x5345e4['start']);continue;}_0x41f139=_0x41f139['isBefore'](_0x5345e4['start'])?_0x41f139:_0x5345e4['start'],_0x4c37d2=_0x4c37d2['isAfter'](_0x5345e4['end'])?_0x4c37d2:_0x5345e4['end'],_0x22a56e=Object['assign']({},_0x2e4adc['attributes']),_0x56b27d?_0x5345e4['start']['isBefore'](_0x56b27d['getFirstRange']()['start'])?(_0x56b27d['removeMarkers'](),_0x56b27d=_0x2e4adc):_0x2e4adc['removeMarkers']():_0x56b27d=_0x2e4adc;}}}if(_0x56b27d)return this['_setSuggestionRange'](_0x56b27d,this['_model']['createRange'](_0x41f139,_0x4c37d2)),_0x56b27d;{const _0x3df2ee=_0x65b9b5(),_0x460a8c=this['_model']['createRange'](_0x41f139,_0x4c37d2),_0x2cbec8=_0x3e5af1['id'],_0x619b90=_0x19ce7d?'deletion:'+_0x19ce7d:'deletion',_0x38726a=this['_setSuggestionData']({'id':_0x3df2ee,'type':_0x619b90,'createdAt':new Date(),'authorId':_0x2cbec8,'attributes':_0x22a56e});return this['_addSuggestionMarker'](_0x619b90,_0x3df2ee,_0x2cbec8,_0x460a8c),_0x38726a;}}['markMultiRangeDeletion'](_0x2b54a3,_0x32fb4e='multi',_0x92c8a4={}){const _0x44d306=this['editor']['plugins']['get']('Users')['me'],_0x4df6a3=_0x2b54a3['map'](_0x2a6baf=>new _0xc48f37(_0x2a6baf['start'],_0x2a6baf['end'])),_0x131961=new Set();this['_trackingSessionId']&&(_0x92c8a4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x40f36c,meta:_0x2077b6}of this['_findSuggestions'](_0x4df6a3,'insertion'))_0x2077b6['isOwn']&&!_0x2077b6['isNextTo']&&_0x131961['add'](_0x40f36c);for(const _0x557447 of _0x131961)if(_0x557447['isMultiRange']){const _0x1bfdfe=_0x557447['getRanges']();(!_0x557447['attributes']||!_0x557447['attributes']['skipNestingCheck'])&&(_0x1bfdfe['every'](_0xd05e35=>_0x4df6a3['some'](_0x1a2897=>_0x1a2897['containsRange'](_0xd05e35,!0x0)))&&_0x557447['discard']());if(_0x4df6a3['every'](_0x512eb0=>_0x1bfdfe['some'](_0x55df6f=>_0x55df6f['containsRange'](_0x512eb0,!0x0)))){const _0x2e21ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32fb4e,'accept');return this['forceDefaultExecution'](()=>_0x2e21ba(_0x2b54a3,null,_0x92c8a4)),null;}}else{const _0xd0b90c=_0x557447['getFirstRange']();_0x4df6a3['some'](_0x18f99b=>_0x18f99b['containsRange'](_0xd0b90c,!0x0))&&_0x557447['discard']();if(_0x4df6a3['every'](_0x2e419d=>_0xd0b90c['containsRange'](_0x2e419d,!0x0))){const _0x3a61d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32fb4e,'accept');return this['forceDefaultExecution'](()=>_0x3a61d6(_0x4df6a3,null,_0x92c8a4)),null;}}const _0x4200c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32fb4e,'join');let _0x15cb6b=null;for(const _0x5c5ef5 of this['getSuggestions']())if(_0x5c5ef5['author']['id']==_0x44d306['id']&&_0x5c5ef5['isInContent']&&'deletion'==_0x5c5ef5['type']&&_0x5c5ef5['subType']==_0x32fb4e&&Xt(_0x5c5ef5,_0x92c8a4)&&(_0x4200c3(_0x5c5ef5['getRanges'](),_0x4df6a3)||_0x4200c3(_0x4df6a3,_0x5c5ef5['getRanges']()))){if(_0x15cb6b){if(_0x5c5ef5['commentThread']&&_0x5c5ef5['commentThread']['length'])continue;for(const _0xa62a0f of _0x5c5ef5['getRanges']())_0x15cb6b['isIntersectingWithRange'](_0xa62a0f)||_0x15cb6b['addRange'](_0xa62a0f);_0x5c5ef5['removeMarkers']();}else{_0x15cb6b=_0x5c5ef5;for(const _0x206c37 of _0x4df6a3)_0x5c5ef5['isIntersectingWithRange'](_0x206c37)||_0x5c5ef5['addRange'](_0x206c37);}}if(_0x15cb6b)return _0x15cb6b;_0x131961['clear']();for(const {suggestion:_0x5de1f5,meta:_0x478cee}of this['_findSuggestions'](_0x4df6a3,'deletion'))_0x478cee['isOwn']&&(this['_mergeNestedSuggestions']||!_0x478cee['containsRangeInObject']&&!_0x478cee['isInsideObject'])&&Xt(_0x5de1f5,_0x92c8a4)&&_0x131961['add'](_0x5de1f5);for(const _0x2d9a54 of _0x131961){const _0x3792ce=_0x2d9a54['getRanges']();if(!_0x92c8a4||!_0x92c8a4['skipNestingCheck']){if(_0x4df6a3['every'](_0x37959a=>_0x3792ce['some'](_0x525ee8=>_0x525ee8['containsRange'](_0x37959a,!0x0))))return _0x2d9a54;}(!_0x2d9a54['attributes']||!_0x2d9a54['attributes']['skipNestingCheck'])&&(_0x3792ce['every'](_0x509a4f=>_0x4df6a3['some'](_0x178c5a=>_0x178c5a['containsRange'](_0x509a4f,!0x0)))&&_0x2d9a54['discard']());}const _0x4d826a=_0x65b9b5(),_0x46c2db=_0x44d306['id'],_0x4535bc='deletion:'+_0x32fb4e,_0x10994f=this['_setSuggestionData']({'id':_0x4d826a,'type':_0x4535bc,'createdAt':new Date(),'authorId':_0x46c2db,'attributes':_0x92c8a4});for(const _0x29a969 of _0x4df6a3)_0x29a969['detach'](),_0x29a969['isCollapsed']||'$graveyard'==_0x29a969['root']['rootName']||this['_addSuggestionMarker'](_0x4535bc,_0x4d826a,_0x46c2db,_0x29a969,o['getMultiRangeId']());return _0x10994f;}['markAttributeChange'](_0x55da2c,_0x32d3e7,_0x568444,_0x1c5dad,_0x1731ef){if(_0x55da2c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x564bf8=this['editor']['plugins']['get']('Users')['me']['id'],_0x1befe4=Array['from'](this['_suggestions']['values']())['filter'](_0x2528b9=>'attribute'==_0x2528b9['type']&&_0x2528b9['data']['key']==_0x32d3e7&&_0x2528b9['isIntersectingWithRange'](_0x55da2c));if(this['_trackingSessionId']&&(_0x1731ef['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x488393=this['_findSuggestions'](_0x55da2c,'insertion')['filter'](({meta:_0x316cf5})=>_0x316cf5['isOwn']&&!_0x316cf5['isInsideObject']&&!_0x316cf5['isNextTo'])['map'](({suggestion:_0x21bcb4})=>_0x21bcb4);_0x1befe4['unshift'](..._0x488393);}const _0x328998=new Map([[_0x55da2c,_0x568444]]);for(const _0x172f4d of _0x1befe4){const _0x5f6581='attribute'==_0x172f4d['type']?_0x172f4d['data']['oldValue']:void 0x0,_0x20b0dc=_0x172f4d['getFirstRange'](),_0x41f902=Array['from'](_0x328998['keys']())['find'](_0x3113dc=>_0x3113dc['isIntersecting'](_0x20b0dc));if(!_0x41f902)continue;const _0x16b7e3=_0x41f902['getDifference'](_0x20b0dc);this['_isBlockAttribute'](_0x32d3e7)&&'insertion'==_0x172f4d['type']&&0x0!=_0x16b7e3['length']||(_0x328998['delete'](_0x41f902),_0x16b7e3['forEach'](_0xb24d93=>{_0x328998['set'](_0xb24d93,_0x568444);}),'insertion'!=_0x172f4d['type']&&_0x5f6581!=_0x1c5dad&&_0x328998['set'](_0x41f902['getIntersection'](_0x20b0dc),_0x5f6581));}const _0x4e8599=[];for(const [_0x4757e9,_0x266f68]of _0x328998){const _0x528951=_0x65b9b5(),_0x25ea29={'key':_0x32d3e7,'oldValue':_0x266f68,'newValue':_0x1c5dad};_0x32d3e7['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':_0x32d3e7});const _0x593945=('attribute:'+(_0x32d3e7+'|'+Kt({'newValue':_0x1c5dad})))['substring'](0x0,0x3c),_0x5d4ef1=this['_setSuggestionData']({'id':_0x528951,'type':_0x593945,'data':_0x25ea29,'createdAt':new Date(),'authorId':_0x564bf8,'attributes':_0x1731ef});_0x4e8599['push'](_0x5d4ef1),this['_addSuggestionMarker'](_0x593945,_0x528951,_0x564bf8,_0x4757e9);}return _0x4e8599;}['enableDefaultAttributesIntegration'](_0x174d01){this['enableCommand'](_0x174d01,(_0x2ac230,..._0xbb18e2)=>{this['_recordAttributeChanges'](()=>{_0x2ac230(..._0xbb18e2);});});}['registerBlockAttribute'](_0x49eb8c){this['_blockAttributeKeys']['add'](_0x49eb8c);}['registerInlineAttribute'](_0x7b967a){this['_inlineAttributeKeys']['add'](_0x7b967a);}['startTrackingSession'](_0x93a546){return this['_trackingSessionId']=void 0x0!==_0x93a546?_0x93a546:_0x65b9b5(),this['_trackingSessionId'];}['_getAttributeKey'](_0x37d710){return'attribute'==_0x37d710['type']?_0x37d710['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x203a8a,_0xf6e6a6){const _0x23344b=_0x203a8a['getFirstMarker']();this['_model']['change'](_0x3076ae=>{_0x3076ae['updateMarker'](_0x23344b,{'range':_0xf6e6a6});});}['_addThreadToSuggestion'](_0x282a61){const _0x2bf9ac=_0x282a61['id'],_0xb0b7f9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2bf9ac)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb0b7f9,'threadId':_0x2bf9ac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x17142a=this['_commentsRepository']['getCommentThread'](_0x2bf9ac);_0x17142a['unbind']('isRemovable'),_0x17142a['isRemovable']=!0x1,_0x282a61['commentThread']=_0x17142a;}['_checkSuggestionCorrectness'](_0xd79194,_0x1b5cf0,_0x57ceaf,_0x1311a8){if(_0xd79194['type']!=_0x1b5cf0||_0xd79194['subType']!=_0x57ceaf||_0xd79194['creator']['id']!=_0x1311a8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x328969('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x691d4,_0x4f3bb7){const _0x11a6c5=_0x691d4['getFirstRange']();if(_0x4f3bb7['isEqual'](_0x11a6c5))_0x691d4['removeMarkers']();else{if(_0x11a6c5['containsRange'](_0x4f3bb7)){const _0x3b7f40=this['_model']['createPositionAt'](_0x4f3bb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x691d4,this['_model']['createRange'](_0x11a6c5['start'],_0x3b7f40));const _0x24eacc=_0x65b9b5(),_0x4a5760=_0x691d4['creator']['id'],_0x147a4a=_0x691d4['type']+':'+_0x691d4['subType'];this['_setSuggestionData']({'id':_0x24eacc,'type':_0x147a4a,'createdAt':new Date(),'authorId':_0x4a5760,'data':_0x691d4['data'],'attributes':_0x691d4['attributes']});const _0x4dd01e=this['_model']['createPositionAt'](_0x4f3bb7['end']['parent'],'after'),_0x333b2c=this['_model']['createRange'](_0x4dd01e,_0x11a6c5['end']);this['_addSuggestionMarker'](_0x147a4a,_0x24eacc,_0x4a5760,_0x333b2c);}else{if(_0x11a6c5['containsPosition'](_0x4f3bb7['start'])){const _0x471baa=this['_model']['createPositionAt'](_0x4f3bb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x691d4,this['_model']['createRange'](_0x11a6c5['start'],_0x471baa));}else{const _0x170c63=this['_model']['createPositionAt'](_0x4f3bb7['end']['parent'],'after');this['_setSuggestionRange'](_0x691d4,this['_model']['createRange'](_0x170c63,_0x11a6c5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2e2f28){for(const {suggestion:_0xfeda77,meta:_0x363f21}of this['_findSuggestions'](_0x2e2f28,'insertion')){if(!_0x363f21['isOwn'])continue;const _0x39842f=_0xfeda77['getRanges']();for(const _0x3fad75 of _0x39842f)if(!_0x2e2f28['getDifference'](_0x3fad75)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4b4078){const _0x3cbaa1=this['editor']['plugins']['get']('Users')['getUser'](_0x4b4078);if(!_0x3cbaa1)throw new _0x328969('track-changes-user-not-found',this);return _0x3cbaa1;}['_getExternalAuthor'](_0x5da9d8){const _0x47efb6=this['editor']['plugins']['get']('Users'),_0x494865=_0x4ad782('external:'+_0x5da9d8),_0x3cd301=_0x47efb6['getUser'](_0x494865);return _0x3cd301||_0x47efb6['addUser']({'id':_0x494865,'name':_0x5da9d8});}['_createSuggestion'](_0x5c3ea3,_0x31298b,_0x305b3d,_0x157bfc,_0x2a7952){const _0x1ab7db=this['_getAuthorFromId'](_0x157bfc),_0xb07e94=this['_suggestionFactory']['buildSuggestion'](_0x5c3ea3,_0x31298b,_0x305b3d,_0x1ab7db,_0x2a7952,_0x190b61=>{this['_updateSuggestionData'](_0x305b3d,{'attributes':_0x190b61});const _0x4e860f=this['getSuggestion'](_0x305b3d);this['_joinWithAdjacentSuggestions'](new Set([_0x4e860f])),this['_refreshSuggestionsChain'](new Set([_0x4e860f]));});return this['listenTo'](_0xb07e94,'accept',()=>{this['_updateSuggestionData'](_0x305b3d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb07e94,'discard',()=>{this['_updateSuggestionData'](_0x305b3d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x305b3d,_0xb07e94),this['_suggestionState']['set'](_0xb07e94,'notReady'),_0xb07e94;}['_splitMarkerName'](_0x4681aa){const _0x42fdc5=_0x4681aa['split'](':');return{'group':_0x42fdc5[0x0],'type':_0x42fdc5[0x1],'subType':_0x42fdc5['length']>=0x5?_0x42fdc5[0x2]:null,'id':_0x42fdc5['length']<0x5?_0x42fdc5[0x2]:_0x42fdc5[0x3],'authorId':_0x42fdc5['length']<0x5?_0x42fdc5[0x3]:_0x42fdc5[0x4],'markerCount':0x6==_0x42fdc5['length']?_0x42fdc5[0x5]:null};}['_breakSuggestionMarker'](_0x23dd09,_0x2fdf26,_0x1bf356){const _0x19b7b4=_0x23dd09['getFirstRange'](),_0x1a770f=_0x19b7b4['start'],_0x55938f=_0x19b7b4['end'];this['_setSuggestionRange'](_0x23dd09,this['_model']['createRange'](_0x1a770f,_0x2fdf26));const _0x2bcc7c=_0x65b9b5(),_0x12b094=_0x23dd09['creator']['id'],_0x377472=_0x23dd09['type']+(_0x23dd09['subType']?':'+_0x23dd09['subType']:'');this['_setSuggestionData']({'id':_0x2bcc7c,'type':_0x377472,'createdAt':new Date(),'authorId':_0x12b094,'originalSuggestionId':_0x23dd09['id'],'attributes':_0x23dd09['attributes'],'data':_0x23dd09['data']});const _0x462553=this['_getAttributeKey'](_0x23dd09);('formatBlock'==_0x23dd09['type']||_0x462553&&this['_isBlockAttribute'](_0x462553))&&(_0x1bf356=this['_model']['createPositionBefore'](_0x1bf356['parent'])),this['_addSuggestionMarker'](_0x377472,_0x2bcc7c,_0x12b094,this['_model']['createRange'](_0x1bf356,_0x55938f));}['_findSuggestions'](_0x4eef03,_0x5eb856=null){const _0x51c7d1=[],_0x4295fa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4eef03)||(_0x4eef03=[_0x4eef03]);for(const _0x1ad9a9 of this['getSuggestions']()){if(!_0x1ad9a9['isInContent'])continue;if(_0x5eb856&&_0x1ad9a9['type']!=_0x5eb856)continue;let _0x4023ac=!0x1;for(const _0x1a58e8 of _0x1ad9a9['getRanges']()){for(const _0x43594a of _0x4eef03){const _0x20cd4a=_0x43594a['start']['isEqual'](_0x1a58e8['end'])||_0x43594a['end']['isEqual'](_0x1a58e8['start']);if(_0x20cd4a||_0x43594a['getIntersection'](_0x1a58e8)){const _0x3f2c6d=_0x43594a['containsRange'](_0x1a58e8)&&Gt(this['_model']['schema'],_0x1a58e8['start'],_0x43594a),_0x50ca9d=_0x1a58e8['containsRange'](_0x43594a)&&Gt(this['_model']['schema'],_0x43594a['start'],_0x1a58e8);_0x51c7d1['push']({'suggestion':_0x1ad9a9,'meta':{'isOwn':_0x4295fa==_0x1ad9a9['author'],'isNextTo':_0x20cd4a,'isInsideObject':_0x3f2c6d,'containsRangeInObject':_0x50ca9d}}),_0x4023ac=!0x0;break;}}if(_0x4023ac)break;}}return _0x51c7d1;}['_addSuggestionMarker'](_0xcfc5d0,_0x279ad7,_0x3a60f3,_0x2205c9,_0x1f83c5){this['_model']['change'](_0x275f32=>{let _0x519102='suggestion:'+_0xcfc5d0+':'+_0x279ad7+':'+_0x3a60f3;_0x1f83c5&&(_0x519102=_0x519102+':'+_0x1f83c5),_0x275f32['addMarker'](_0x519102,{'range':_0x2205c9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x51b99f){const _0x32504a=_0x51b99f['previous'],_0x5e0e2b=_0x51b99f['next'];_0x51b99f['previous']=null,_0x51b99f['next']=null,null!=_0x32504a&&_0x32504a['next']==_0x51b99f&&(_0x32504a['next']=_0x5e0e2b),null!=_0x5e0e2b&&_0x5e0e2b['previous']==_0x51b99f&&(_0x5e0e2b['previous']=_0x32504a),'ready'==this['_suggestionState']['get'](_0x51b99f)&&(this['_suggestionState']['set'](_0x51b99f,'removed'),this['fire']('suggestionUnloaded',_0x51b99f,_0x32504a,_0x5e0e2b));}['_setSuggestionData'](_0x13522d){const _0x1b8888=_0x13522d['id'],_0x1f56f3=this['addSuggestionData'](_0x13522d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5af287=this['editor']['plugins']['get']('PendingActions'),_0x5ef9b8=_0x1f56f3['hasComments'],_0x5945a5=_0x1f56f3['subType']?_0x1f56f3['type']+':'+_0x1f56f3['subType']:_0x1f56f3['type'],_0xfb829f=this['editor']['locale'],_0x10fa3e=_0x5af287['add'](c(_0xfb829f,'PENDING_ACTION_SUGGESTION')),_0x4b284b={'id':_0x1b8888,'type':_0x5945a5,'hasComments':_0x5ef9b8,'data':_0x13522d['data']||null,'originalSuggestionId':_0x13522d['originalSuggestionId']||null,'attributes':_0x1f56f3['attributes']};this['_adapter']['addSuggestion'](_0x4b284b)['then'](_0x80d5c3=>{_0x1f56f3['_saved']=!0x0,_0x5af287['remove'](_0x10fa3e),_0x80d5c3&&_0x80d5c3['createdAt']&&(this['_suggestions']['get'](_0x1b8888)['createdAt']=_0x80d5c3['createdAt']);})['catch'](_0x2aa22b=>{throw _0x406a97('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1f56f3['discard']();}),_0x1f56f3['stopListening'](),this['_suggestions']['delete'](_0x1f56f3['id']),this['_suggestionState']['delete'](_0x1f56f3),_0x2aa22b;});}return _0x1f56f3;}['_isBlockAttribute'](_0x1b0a50){return this['_blockAttributeKeys']['has'](_0x1b0a50);}['_updateSuggestionData'](_0xafc84d,_0x3b1086){const _0x37767d=this['editor']['plugins']['get']('PendingActions'),_0x1b3f6d=this['getSuggestion'](_0xafc84d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1b3f6d['_saved']){const _0x314917=_0x37767d['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xafc84d,_0x3b1086)['then'](()=>{_0x37767d['remove'](_0x314917);});}else _0x1b3f6d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xafc84d,_0x3b1086);});}}['_getSuggestionData'](_0x56acde){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x328969('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x56acde);}['_handleNewSuggestionMarker'](_0x4a2083){const {id:_0x4301cd,type:_0x5267d0,subType:_0x2260bc,authorId:_0x6e3da4}=this['_splitMarkerName'](_0x4a2083),_0x45dc32=this['_suggestions']['get'](_0x4301cd)||this['_createSuggestion'](_0x5267d0,_0x2260bc,_0x4301cd,_0x6e3da4,{});switch(this['_checkSuggestionCorrectness'](_0x45dc32,_0x5267d0,_0x2260bc,_0x6e3da4),this['_suggestionState']['get'](_0x45dc32)){case'notReady':this['_getSuggestionData'](_0x4301cd)['then'](_0x2abdbe=>{let _0x430fb0=Promise['resolve']();_0x2abdbe['hasComments']&&(_0x430fb0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4301cd})),_0x430fb0['then'](()=>{this['addSuggestionData'](_0x2abdbe)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x45dc32,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4301cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x45dc32,'ready'),this['fire']('suggestionLoaded',_0x45dc32);break;case'ready':this['fire']('suggestionChanged',_0x45dc32);}return _0x45dc32['addMarkerName'](_0x4a2083),_0x45dc32;}['_refreshSuggestionsChain'](_0x14da5d){const _0x57b97f=Array['from'](_0x14da5d),_0x25dfae=_0x57b97f['filter'](_0x28744c=>'attribute'==_0x28744c['type']);this['_refreshAttributeSuggestionsChain'](_0x25dfae);const _0x29694c=_0x57b97f['filter'](_0x4320f8=>!_0x4320f8['isMultiRange']&&'attribute'!=_0x4320f8['type']),_0x13f720=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20153f=>!_0x20153f['isMultiRange']&&'attribute'!=_0x20153f['type']),_0x4a5e19=_0x13f720['filter'](_0x3512fe=>!_0x14da5d['has'](_0x3512fe)),_0x1ab8a4=new Map(_0x13f720['map'](_0xefc519=>[_0xefc519,this['_suggestionFactory']['getSuggestionCallback'](_0xefc519['type'],_0xefc519['subType'],'chain')])),_0x584d09=new Map(_0x13f720['map'](_0x419e6f=>[_0x419e6f,_0x419e6f['getFirstRange']()])),_0x1470b0=new Set(),_0x2e5888=new Set();for(let _0x5a6b38=0x0;_0x5a6b38<_0x29694c['length'];_0x5a6b38++)_0xecde67(_0x29694c[_0x5a6b38],_0x29694c,_0x5a6b38+0x1);for(let _0x5a8034=0x0;_0x5a8034<_0x29694c['length'];_0x5a8034++)_0xecde67(_0x29694c[_0x5a8034],_0x4a5e19,0x0);const _0x2ea7e2=new Set();for(let _0x51fb5e=0x0;_0x51fb5e<_0x29694c['length'];_0x51fb5e++){const _0x106a71=_0x29694c[_0x51fb5e];!_0x2e5888['has'](_0x106a71)&&_0x106a71['previous']&&(_0x2ea7e2['add'](_0x106a71['previous']),_0x106a71['previous']['next']===_0x106a71&&(_0x106a71['previous']['next']=null),_0x106a71['previous']=null),!_0x1470b0['has'](_0x106a71)&&_0x106a71['next']&&(_0x2ea7e2['add'](_0x106a71['next']),_0x106a71['next']['previous']===_0x106a71&&(_0x106a71['next']['previous']=null),_0x106a71['next']=null);}function _0xecde67(_0x56ba8a,_0x2132b4,_0x4f82db){for(let _0x1f4865=_0x4f82db;_0x1f4865<_0x2132b4['length'];_0x1f4865++){const _0x2657f1=_0x59900f(_0x56ba8a,_0x2132b4[_0x1f4865]);_0x2657f1&&(_0x2657f1[0x0]['next']=_0x2657f1[0x1],_0x2657f1[0x1]['previous']=_0x2657f1[0x0],_0x1470b0['add'](_0x2657f1[0x0]),_0x2e5888['add'](_0x2657f1[0x1]));}}function _0x59900f(_0x251c4d,_0x5b3941){if(_0x251c4d['author']['id']!==_0x5b3941['author']['id'])return null;const _0x2f4a4a=_0x1ab8a4['get'](_0x251c4d)(_0x251c4d,_0x5b3941,_0x584d09['get'](_0x251c4d),_0x584d09['get'](_0x5b3941));if(!_0x2f4a4a)return null;return _0x1ab8a4['get'](_0x5b3941)(_0x251c4d,_0x5b3941,_0x584d09['get'](_0x251c4d),_0x584d09['get'](_0x5b3941))?_0x2f4a4a[0x1]['commentThread']&&_0x2f4a4a[0x1]['commentThread']['length']?null:_0x2f4a4a:null;}_0x2ea7e2['size']&&this['_refreshSuggestionsChain'](_0x2ea7e2);}['_refreshAttributeSuggestionsChain'](_0xa3aa46){if(0x0==_0xa3aa46['length'])return;const _0x136522=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4900af=>'attribute'==_0x4900af['type']&&_0x4900af['_isDataLoaded']),_0x24be8d=[],_0x469e14=new Map();for(const _0x2b6bf4 of _0x136522){const _0x247338=_0x4ad782(_0x2b6bf4['attributes']);_0x469e14['has'](_0x247338)||(_0x469e14['set'](_0x247338,_0x24be8d['length']),_0x24be8d['push']([]));const _0x2c84d1=_0x469e14['get'](_0x247338);_0x24be8d[_0x2c84d1]['push'](_0x2b6bf4);}!(function(){_0x24be8d['sort']((_0x24e413,_0x449021)=>{const _0x226fa5=_0x24e413[0x0]['createdAt'],_0x5894fd=_0x449021[0x0]['createdAt'];return _0x226fa5==_0x5894fd?_0x24e413[0x0]['attributes']['groupId']<_0x449021[0x0]['attributes']['groupId']?-0x1:0x1:_0x226fa5<_0x5894fd?-0x1:0x1;});for(const _0x5769e0 of _0x24be8d)_0x5769e0['sort']((_0x145723,_0x11694e)=>_0x145723['id']<_0x11694e['id']?-0x1:0x1);}());for(let _0x356192=0x0;_0x356192<_0x24be8d['length'];_0x356192++){if(0x0==_0x24be8d[_0x356192]['length'])continue;const _0x5c3875=[];for(let _0x298208=_0x356192+0x1;_0x298208<_0x24be8d['length'];_0x298208++)0x0!=_0x24be8d[_0x298208]['length']&&_0x3a8ab5(_0x24be8d[_0x356192],_0x24be8d[_0x298208])&&_0x5c3875['push'](_0x298208);for(const _0x1042fa of _0x5c3875)_0x24be8d[_0x356192]=_0x24be8d[_0x356192]['concat'](_0x24be8d[_0x1042fa]),_0x24be8d[_0x1042fa]=[];}for(const _0x547e0f of _0x24be8d)for(let _0x2bdea1=0x0;_0x2bdea1<_0x547e0f['length'];_0x2bdea1++){const _0x558219=_0x547e0f[_0x2bdea1+0x1]||null;_0x547e0f[_0x2bdea1]['next']!==_0x558219&&(_0x547e0f[_0x2bdea1]['next']=_0x558219);}for(const _0x353ad9 of _0x24be8d)for(let _0xeaaa0c=0x0;_0xeaaa0c<_0x353ad9['length'];_0xeaaa0c++){const _0x2f9626=_0x353ad9[_0xeaaa0c-0x1]||null;_0x353ad9[_0xeaaa0c]['previous']!==_0x2f9626&&(_0x353ad9[_0xeaaa0c]['previous']=_0x2f9626);}function _0x3a8ab5(_0x17ccda,_0x2b893c){if(_0x17ccda[0x0]['attributes']['groupId']!==_0x2b893c[0x0]['attributes']['groupId']&&_0x17ccda[0x0]['author']!==_0x2b893c[0x0]['author'])return!0x1;if(!function(_0x44dfbb,_0xa72bd7){if(!_0x44dfbb['hasComments']&&!_0xa72bd7['hasComments'])return!0x0;if(_0x44dfbb['hasComments']&&_0xa72bd7['hasComments'])return!0x1;if(_0x44dfbb['hasComments']&&_0xa72bd7['createdAt']<_0x44dfbb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xa72bd7['hasComments']&&_0x44dfbb['createdAt']<_0xa72bd7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x17ccda[0x0],_0x2b893c[0x0]))return!0x1;const _0x762ffb=Ft(_0x17ccda[0x0]['attributes'],['groupId','trackingSessionId']),_0x5150a0=Ft(_0x2b893c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x36734a(_0x762ffb,_0x5150a0))return!0x1;if(_0x17ccda[0x0]['attributes']['groupId']==_0x2b893c[0x0]['attributes']['groupId'])return!0x0;if(_0x17ccda[0x0]['attributes']['trackingSessionId']!==_0x2b893c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x17ccda['every'](_0x427f60=>_0x2b893c['some'](_0xaec0f3=>_0x427f60['getFirstRange']()['isEqual'](_0xaec0f3['getFirstRange']())))&&_0x2b893c['every'](_0x695bc0=>_0x17ccda['some'](_0x4e37dd=>_0x695bc0['getFirstRange']()['isEqual'](_0x4e37dd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c73cb){const _0x16ad3f=Array['from'](_0x5c73cb),_0x30d146=this['getSuggestions']({'skipNotAttached':!0x0}),_0x24c7c6=_0x30d146['filter'](_0x56d97b=>!_0x5c73cb['has'](_0x56d97b)),_0x371e1f=new Map(_0x16ad3f['map'](_0x386b68=>[_0x386b68,this['_suggestionFactory']['getSuggestionCallback'](_0x386b68['type'],_0x386b68['subType'],'join')])),_0xcd4915=new Map(_0x30d146['map'](_0x3dd1c3=>[_0x3dd1c3,_0x3dd1c3['getRanges']()]));for(let _0x1a2eb1=0x0;_0x1a2eb1<_0x16ad3f['length'];_0x1a2eb1++){if(_0x2eaeb5(this,_0x16ad3f[_0x1a2eb1],_0x16ad3f,_0x1a2eb1+0x1))return!0x0;}for(let _0x2a16bf=0x0;_0x2a16bf<_0x16ad3f['length'];_0x2a16bf++){if(_0x2eaeb5(this,_0x16ad3f[_0x2a16bf],_0x24c7c6,0x0))return!0x0;}return!0x1;function _0x2eaeb5(_0x11feb1,_0x22f604,_0x364db6,_0x17d178){for(let _0xadc69b=_0x17d178;_0xadc69b<_0x364db6['length'];_0xadc69b++){const _0x3a51f0=_0x364db6[_0xadc69b];if(_0x3a51f0['type']!==_0x22f604['type']||_0x3a51f0['author']['id']!==_0x22f604['author']['id']||_0x3a51f0['subType']!==_0x22f604['subType'])continue;if(!Qt(_0x22f604,_0x3a51f0))continue;if('attribute'==_0x22f604['type']&&_0x22f604['data']['oldValue']!=_0x3a51f0['data']['oldValue'])continue;if('attribute'==_0x22f604['type']&&_0x11feb1['_isBlockAttribute'](_0x22f604['data']['key']))continue;if('formatBlock'==_0x22f604['type']){const _0x59b75b=_0x11feb1['editor']['model'],_0xb9b11d=_0x22f604['getContainedElement']();if(_0xb9b11d&&(_0x59b75b['schema']['isObject'](_0xb9b11d)||_0x59b75b['schema']['isLimit'](_0xb9b11d)))continue;}const _0x2b31a6=_0x371e1f['get'](_0x22f604),_0x25774c=_0xcd4915['get'](_0x22f604),_0x28b912=_0xcd4915['get'](_0x3a51f0),_0x25f6ee=_0x22f604['commentThread']&&_0x22f604['commentThread']['length'],_0x28fe37=_0x3a51f0['commentThread']&&_0x3a51f0['commentThread']['length'];if(!_0x25f6ee&&_0x2b31a6(_0x28b912,_0x25774c))return _0x11feb1['_joinSuggestions'](_0x3a51f0,_0x22f604),_0xcd4915['delete'](_0x22f604),!0x0;if(!_0x28fe37&&_0x2b31a6(_0x25774c,_0x28b912))return _0x11feb1['_joinSuggestions'](_0x22f604,_0x3a51f0),_0xcd4915['delete'](_0x3a51f0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c556b,_0x298b9b){if(_0x2c556b['isMultiRange']){for(const _0x347f4e of _0x298b9b['getRanges']())_0x2c556b['addRange'](_0x347f4e);}else{const _0x35b5c0=_0x298b9b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c556b,this['_model']['createRange'](_0x2c556b['getFirstRange']()['start'],_0x35b5c0));}_0x298b9b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e5b1a,_0x4e768d,_0x43acf8){const _0x3b3a87=_0x5e5b1a['startsWith']('format')||_0x5e5b1a['startsWith']('attribute')?'FORMATTING':_0x5e5b1a['toUpperCase']();return c(this['editor']['locale'],_0x4e768d+'_'+_0x3b3a87+'_SUGGESTION_ANNOUNCEMENT',_0x43acf8);}['_initAriaMarkerChangeAnnouncements'](){const _0x3d4ac2=this['editor'];if(!_0x3d4ac2['ui'])return;const {ariaLiveAnnouncer:_0x5e1ff5}=_0x3d4ac2['ui'];_0x155b57(this['_model'],({left:_0x1dbcef,entered:_0x10b99c})=>{for(const _0x308dad of _0x1dbcef){const {group:_0x2c5fa4,type:_0x2c8c8d}=this['_splitMarkerName'](_0x308dad['name']);if('suggestion'===_0x2c5fa4){_0x5e1ff5['announce'](this['_getMarkerAnnouncementText'](_0x2c8c8d,'LEAVE'));break;}}for(const _0x2b0ca7 of _0x10b99c){const {group:_0x28c5fb,type:_0x2a909d}=this['_splitMarkerName'](_0x2b0ca7['name']);if('suggestion'===_0x28c5fb){_0x5e1ff5['announce'](this['_getMarkerAnnouncementText'](_0x2a909d,'ENTER',_0x599e40(_0xb4b862)));break;}}});}['_processAttributeChanges'](_0x4d82a0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3f257a=this['editor'],_0x51cd05=_0x3f257a['model']['document']['differ']['getChanges']();if(0x0==_0x51cd05['length'])return!0x1;const _0x3999df=[],_0x15f80a=_0x51cd05['filter'](_0x46630e=>'attribute'==_0x46630e['type']),_0x3dc56c=_0x51cd05['filter'](_0x4727ad=>'insert'==_0x4727ad['type']&&'$text'!=_0x4727ad['name']),_0x26a4d2=_0x51cd05['filter'](_0x1fe3cf=>'remove'==_0x1fe3cf['type']&&'$text'!=_0x1fe3cf['name']);for(const _0x57cca8 of _0x15f80a)_0x3999df['push']({'key':_0x57cca8['attributeKey'],'newValue':_0x57cca8['attributeNewValue'],'oldValue':_0x57cca8['attributeOldValue'],'range':qt(_0x57cca8['range'],_0x3f257a['model'])});for(const _0x3b814d of _0x3dc56c){const _0x4cddbc=_0x26a4d2['find'](_0x3cd61b=>_0x3cd61b['position']['isEqual'](_0x3b814d['position']));_0x4cddbc&&_0x3999df['push']({'key':u,'newValue':_0x3b814d['name'],'oldValue':_0x4cddbc['name'],'range':_0x3f257a['model']['createRangeOn'](_0x3b814d['position']['nodeAfter'])});}return 0x0!=_0x3999df['length']&&this['_reduceExistingSuggestions'](_0x4d82a0,_0x3999df);}['_processAttributeSuggestions'](_0x800e64){let _0x23b1dd=!0x1;const _0x3f43ce=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a6da3=>_0x3a6da3['data']['newRange']&&_0x3a6da3['name']['startsWith']('suggestion:attribute:'));for(const _0x5de58a of _0x3f43ce){const {subType:_0x459ad0,id:_0x354d6f}=this['_splitMarkerName'](_0x5de58a['name']),_0xc16f3a=_0x459ad0['split']('|')[0x0];for(const _0x250642 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x250642['id']!=_0x354d6f&&'attribute'==_0x250642['type']&&_0x250642['data']&&_0x250642['data']['key']==_0xc16f3a&&_0x250642['getFirstRange']()['isIntersecting'](_0x5de58a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x250642,_0x5de58a['data']['newRange'],_0x800e64),_0x23b1dd=!0x0);}return _0x23b1dd;}['_recordAttributeChanges'](_0x31c6f8){this['_recordAttributeSuggestions']=!0x0,_0x31c6f8();}['_isRegisteredAttribute'](_0x3d3115){const _0x4c87d8=this['_isBlockAttribute'](_0x3d3115),_0x2a2d25=this['_inlineAttributeKeys']['has'](_0x3d3115);return _0x4c87d8||_0x2a2d25;}['_reduceExistingSuggestions'](_0x276fba,_0x318012){if(0x0==_0x318012['length'])return!0x1;let _0x1d3d4e=!0x1;for(const _0x1881e9 of _0x318012){const _0x17ff11=this['_findSuggestions'](_0x1881e9['range'],'attribute')['filter'](_0x336766=>!_0x336766['meta']['isNextTo'])['map'](_0x56642a=>_0x56642a['suggestion']),_0x3f5c48=_0x4ad782({'newValue':_0x1881e9['newValue']});_0x17ff11['filter'](_0x2a6f6b=>{const [_0x4dd1ea,_0x45df5f]=_0x2a6f6b['subType']['split']('|');return _0x4dd1ea==_0x1881e9['key']&&_0x45df5f!=_0x3f5c48;})['forEach'](_0x1208a6=>{this['_reduceSuggestionAttributeRange'](_0x1208a6,_0x1881e9['range'],_0x276fba),_0x1d3d4e=!0x0;});}return _0x1d3d4e;}['_reduceSuggestionAttributeRange'](_0x403ba0,_0x279bc3,_0x5ae1bb){const _0xc8713b=_0x403ba0['getFirstRange']()['getDifference'](_0x279bc3);0x0!==_0xc8713b['length']?0x1!==_0xc8713b['length']?this['_breakSuggestionMarker'](_0x403ba0,_0x279bc3['start'],_0x279bc3['end']):this['_setSuggestionRange'](_0x403ba0,_0xc8713b[0x0]):_0x5ae1bb['removeMarker'](_0x403ba0['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x511946){this['_editor']=_0x511946,this['_model']=_0x511946['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x54be64,_0x653a84,_0x1932b4,_0x345008,_0x5c2956,_0x29cea7){return new o(this['_model'],{'type':_0x54be64,'subType':_0x653a84,'id':_0x1932b4,'author':_0x345008,'creator':_0x345008,'attributes':_0x5c2956,'onAttributesChange':_0x29cea7,'onAccept':(..._0x39e3c9)=>this['getSuggestionCallback'](_0x54be64,_0x653a84,'accept')(..._0x39e3c9),'onDiscard':(..._0x14c9e7)=>this['getSuggestionCallback'](_0x54be64,_0x653a84,'discard')(..._0x14c9e7)});}['registerCustomCallback'](_0x15601c,_0x424c15,_0x4de42c,_0x2808ef){const _0x5dfb80=_0x15601c+':'+_0x424c15+':'+_0x4de42c;this['_customCallbacks']['set'](_0x5dfb80,_0x2808ef);}['getSuggestionCallback'](_0x5c6167,_0x575fc4,_0x371754){const _0x2b130e=_0x5c6167+':'+_0x575fc4+':'+_0x371754;return this['_customCallbacks']['get'](_0x2b130e)||this['_defaultCallbacks']['get'](_0x5c6167+':'+_0x371754);}['_registerDefaultCallbacks'](){const _0x1015e0=()=>!0x1,_0x540871=_0x476161=>{_0x476161['sort']((_0x2c4946,_0x22e836)=>_0x2c4946['start']['isBefore'](_0x22e836['start'])?0x1:-0x1),this['_model']['change'](_0x1bf67a=>{for(const _0x5891ec of _0x476161){let _0x21b475;_0x21b475=_0x5891ec['end']['isAtEnd']&&_0x5891ec['end']['parent']==_0x5891ec['start']['nodeAfter']?_0x1bf67a['createSelection'](_0x5891ec['start']['nodeAfter'],'on'):_0x1bf67a['createSelection'](_0x5891ec),this['_model']['deleteContent'](_0x21b475,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4aa553=(_0x3abcda,_0x36edaa)=>{_0x36edaa&&this['_model']['change'](_0x4fcc67=>{const {commandName:_0x1be808,commandParams:_0x4858d3=[]}=_0x36edaa,_0x380383=_0x3abcda['map'](_0x4c0868=>(Lt(_0x4c0868)&&(_0x4c0868=this['_model']['createRange'](_0x4c0868['end'])),_0x4c0868))['filter'](_0x45d933=>'$graveyard'!==_0x45d933['root']['rootName']);if(_0x380383['length']<0x1)return;const _0x5ae5f7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5928dd=>_0xc48f37['fromRange'](_0x5928dd));_0x4fcc67['setSelection'](_0x380383);for(const _0x131cb2 of this['_editor']['commands']['commands']())_0x131cb2['refresh']();_0x4858d3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1be808,..._0x4858d3);const _0x14e026=_0x5ae5f7['filter'](_0x13dadc=>'$graveyard'!=_0x13dadc['root']['rootName']);_0x14e026['length']>0x0&&_0x4fcc67['setSelection'](_0x14e026);for(const _0x2503e0 of _0x5ae5f7)_0x2503e0['detach']();});},_0x5dcef4=(_0x2768d6,_0x1ddb65)=>0x1==_0x2768d6['length']&&0x1==_0x1ddb65['length']&&_0x2768d6[0x0]['end']['isEqual'](_0x1ddb65[0x0]['start']),_0x5df3a6=(_0x3a3b6a,_0x1bb361,_0x563815,_0x5c01df)=>Wt(_0x3a3b6a,_0x1bb361,_0x563815,_0x5c01df)?[_0x3a3b6a,_0x1bb361]:Wt(_0x1bb361,_0x3a3b6a,_0x5c01df,_0x563815)?[_0x1bb361,_0x3a3b6a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1015e0),this['_defaultCallbacks']['set']('insertion:discard',_0x540871),this['_defaultCallbacks']['set']('insertion:join',_0x5dcef4),this['_defaultCallbacks']['set']('insertion:chain',_0x5df3a6),this['_defaultCallbacks']['set']('deletion:accept',_0x540871),this['_defaultCallbacks']['set']('deletion:discard',_0x1015e0),this['_defaultCallbacks']['set']('deletion:join',_0x5dcef4),this['_defaultCallbacks']['set']('deletion:chain',_0x5df3a6),this['_defaultCallbacks']['set']('formatInline:accept',_0x4aa553),this['_defaultCallbacks']['set']('formatInline:discard',_0x1015e0),this['_defaultCallbacks']['set']('formatInline:join',_0x5dcef4),this['_defaultCallbacks']['set']('formatInline:chain',_0x1015e0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4aa553),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1015e0),this['_defaultCallbacks']['set']('formatBlock:join',_0x5dcef4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1015e0),this['_defaultCallbacks']['set']('attribute:accept',_0x1015e0),this['_defaultCallbacks']['set']('attribute:discard',(_0x48c4b4,_0x44f65f)=>{if(!_0x44f65f)return;const _0x5acbe0=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3bca49=>{if(_0x44f65f['key']==u)for(const _0x5c8be4 of _0x48c4b4){const _0xac3ed6=_0x5c8be4['start']['nodeAfter'],_0x206e8d=_0x44f65f['oldValue'];_0x3bca49['rename'](_0xac3ed6,_0x206e8d);}else{if(_0x5acbe0['_isBlockAttribute'](_0x44f65f['key'])){for(const _0x3d3eb1 of _0x48c4b4)void 0x0!==_0x44f65f['oldValue']?_0x3bca49['setAttribute'](_0x44f65f['key'],_0x44f65f['oldValue'],_0x3d3eb1['start']['nodeAfter']):_0x3bca49['removeAttribute'](_0x44f65f['key'],_0x3d3eb1['start']['nodeAfter']);}else{for(const _0x2ff56c of _0x48c4b4)_0x44f65f['oldValue']?_0x3bca49['setAttribute'](_0x44f65f['key'],_0x44f65f['oldValue'],_0x2ff56c):_0x3bca49['removeAttribute'](_0x44f65f['key'],_0x2ff56c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5dcef4);}}function Gt(_0x7ba680,_0x892721,_0x2d7208){for(const _0x43ec42 of _0x892721['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43ec42['root']==_0x43ec42)return!0x1;if(!_0x2d7208['containsItem'](_0x43ec42))return!0x1;if(_0x7ba680['isObject'](_0x43ec42)||_0x7ba680['isLimit'](_0x43ec42))return!0x0;}return!0x1;}function Lt(_0x6f5db0){return _0x6f5db0['end']['parent']==_0x6f5db0['start']['nodeAfter']&&_0x6f5db0['end']['isAtStart'];}function Jt(_0x58fed9,_0x470e1b,_0x6c4167,_0x2a364f){const _0x46dc8a=_0x5f5acb=>!_0x5f5acb['item']['is']('$textProxy')&&!_0x2a364f['isObject'](_0x5f5acb['item']),_0x431166=_0x58fed9['start']['getLastMatchingPosition'](_0x46dc8a),_0x4ac2a9=_0x58fed9['end']['getLastMatchingPosition'](_0x46dc8a,{'direction':'backward'});return(!_0x58fed9['start']['isEqual'](_0x431166)||!_0x58fed9['end']['isEqual'](_0x4ac2a9))&&(_0x431166['isBefore'](_0x4ac2a9)?_0x6c4167['updateMarker'](_0x470e1b,{'range':_0x6c4167['createRange'](_0x431166,_0x4ac2a9)}):_0x6c4167['removeMarker'](_0x470e1b),!0x0);}function Kt(_0x496c08){return _0x4ad782(_0x496c08);}function Ht(_0x4476dd){const _0x493537=_0x4476dd['start']['nodeAfter'];return _0x493537&&_0x493537['is']('element');}function qt(_0x4655a9,_0x165a67){return null==_0x4655a9['end']['nodeBefore']&&_0x4655a9['end']['parent']==_0x4655a9['start']['nodeAfter']?zt(_0x4655a9['start']['nodeAfter'],_0x165a67):_0x4655a9;}function zt(_0x390612,_0x4c3458){const _0x51b000=_0x4c3458['schema']['isObject'](_0x390612)||_0x4c3458['schema']['isSelectable'](_0x390612);return _0x4c3458['createRange'](_0x4c3458['createPositionAt'](_0x390612,'before'),_0x51b000?_0x4c3458['createPositionAfter'](_0x390612):_0x4c3458['createPositionAt'](_0x390612,'end'));}function Wt(_0x55511b,_0x314128,_0x5f1f09,_0x4b3f3f){return!!Qt(_0x55511b,_0x314128)&&_0x5f1f09['end']['isEqual'](_0x4b3f3f['start']);}function Qt(_0x4e0b0b,_0x70bbf8){if(!_0x4e0b0b['_isDataLoaded']||!_0x70bbf8['_isDataLoaded'])return!0x1;const _0x95f147=new Set(Object['keys'](_0x4e0b0b['attributes'])),_0x35e282=new Set(Object['keys'](_0x70bbf8['attributes']));if(_0x95f147['delete']('groupId'),_0x35e282['delete']('groupId'),0x0==_0x95f147['size']&&0x0==_0x35e282['size'])return!0x0;if(_0x95f147['size']!=_0x35e282['size'])return!0x1;const _0x435b41={..._0x4e0b0b['attributes']},_0x5e86cb={..._0x70bbf8['attributes']};return delete _0x435b41['groupId'],delete _0x5e86cb['groupId'],JSON['stringify'](_0x435b41)==JSON['stringify'](_0x5e86cb);}function Xt(_0x18f9d9,_0x3c212a){const _0x5386dc=Yt(_0x18f9d9['attributes']),_0x539e93=Yt(_0x3c212a);if(!_0x18f9d9['_isDataLoaded'])return!0x1;for(const _0x14aaea of Object['keys'](_0x539e93))if(!_0x36734a(_0x5386dc[_0x14aaea],_0x539e93[_0x14aaea]))return!0x1;return!0x0;}function Yt(_0x11e418){const _0x2d3ecb=Object['assign']({},_0x11e418);return delete _0x2d3ecb['skipNestingCheck'],delete _0x2d3ecb['tablePasteChainId'],_0x2d3ecb;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x1a7ad4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5c3c59,_0x33c663,_0x26abfb,_0xc9bffa){super(),this['model']=_0x33c663,this['view']=_0x26abfb,this['commentThreadController']=_0xc9bffa,this['_editor']=_0x5c3c59,this['_acceptCommand']=_0x5c3c59['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5c3c59['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x36c754,_0x3b92bd)=>_0x36c754||_0x3b92bd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xa1383c=>_0xa1383c&&this['_editor']['model']['canEditAt'](_0x33c663['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x170f53=>_0x170f53&&this['_editor']['model']['canEditAt'](_0x33c663['getRanges']())),this['_pendingAction']=null,_0x26abfb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x26abfb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x26abfb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x26abfb,'change:isDirty',()=>{_0x26abfb['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 _0x4a6bfb=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a6bfb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x192474{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x568fb0,_0x137934,_0x122f3f,_0x59e229){super(_0x568fb0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2bb02c(_0x568fb0,c(_0x568fb0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x137934['authoredAt']),this['bind']('authoredAt')['to'](_0x137934),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',_0x137934,'authoredAt',this,'descriptionParts',(_0x8e9b06,_0x25cb4f,_0x1a968d)=>{const _0x4020f8=_0x1a968d['map'](_0x39b005=>ls(_0x39b005['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x8e9b06-0x1,_0x137934['author']['name'],_0x25cb4f?_0x59e229['formatDateTime'](_0x25cb4f):'',new DOMParser()['parseFromString'](_0x4020f8,'text/html')['body']['textContent']]);}),this['focusables']=new _0x192394(),this['focusTracker']=new _0x2d2a08(),this['keystrokes']=new _0x2868fa(),this['focusCycler']=new _0x362be6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a71ca=>_0x3a71ca['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x137934,this['_localUser']=_0x122f3f,this['_config']=_0x59e229,_0x59e229['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x540acf(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2ddea3}=this['_config'];this['commentsListView']=new _0x2ddea3(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',_0x3c2d64=>_0x3c2d64+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1b4282,_0x5e3ed9)=>_0x1b4282||!!_0x5e3ed9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1baa7e}=this['_config'],_0x4b2294=new _0x1baa7e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15b1a3=_0x4b2294['commentInputView'];return _0x4b2294['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15b1a3,'value',(_0xc9a59a,_0x51abb1,_0x3ce3a8)=>!!_0x3ce3a8||_0xc9a59a&&!_0x51abb1),_0x15b1a3['on']('submit',(_0x4aab33,_0x2ddf3f)=>{this['fire']('addComment',_0x2ddf3f),_0x15b1a3['editor']['setData']('');}),_0x15b1a3['on']('cancel',()=>this['focus']()),_0x15b1a3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4b2294;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x59e1a3,_0xba0c9a,_0x1895dc,_0x1f4d23){super(_0x59e1a3,_0xba0c9a,_0x1895dc,_0x1f4d23),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1507f8=>_0x1507f8&&_0x1507f8[0x0]?_0x1507f8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x47a425,_0x32170f)=>{let _0x31d7f9='';for(const _0x4b2f0b of _0x47a425)_0x31d7f9+='<p>'+ls(_0x4b2f0b['content'],_0x4b2f0b['color'])+'</p>';return _0x32170f?_0x31d7f9:ti(_0x31d7f9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1f4d23['SuggestionView'](_0x59e1a3,_0xba0c9a,{'formatDateTime':_0x1f4d23['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 _0x8b9192=this['bindTemplate'],_0xa2a076=[this['suggestionView']];return this['commentsListView']&&_0xa2a076['push'](this['commentsListView']),this['commentThreadInputView']&&_0xa2a076['push'](this['commentThreadInputView']),_0xa2a076['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x8b9192['if']('isActive','ck-suggestion-wrapper--active'),_0x8b9192['to']('type',_0x5562da=>'ck-suggestion-'+_0x5562da),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':_0x8b9192['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xa2a076};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x192474{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x49d955,_0x4dd143,_0x21a4dd){super(_0x49d955),this['_model']=_0x4dd143,this['_config']=_0x21a4dd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4dd143),this['acceptButton']=this['_createButton'](c(_0x49d955,'Accept\x20suggestion'),_0x527c88,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x49d955,'Discard\x20suggestion'),_0xf1864a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2515a5(_0x49d955,_0x4dd143['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x192394([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2d2a08(),this['keystrokes']=new _0x2868fa(),this['focusCycler']=new _0x362be6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x255121=>_0x255121['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x336e9d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x336e9d['innerHTML']=this['description'],this['on']('change:description',(_0x1e3312,_0x19953c,_0x4c48fe)=>{_0x336e9d['innerHTML']=_0x4c48fe;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2eeda9=this['bindTemplate'],_0x2abf0e=[{'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':_0x2eeda9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2eeda9['to']('authoredAt',_0x109ab5=>this['_config']['formatDateTime'](_0x109ab5))}]}]},{'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']&&_0x2abf0e['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':_0x2abf0e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4dfdeb,_0x5c259e,_0x1e971b,_0x2a217f,_0x3d0a75){const _0x2b293f=new _0x586f95(this['locale']);return _0x2b293f['set']({'label':_0x4dfdeb,'icon':_0x5c259e,'tooltip':!0x0,'tooltipPosition':_0x3d0a75}),_0x2b293f['extendTemplate']({'attributes':{'class':_0x1e971b}}),_0x2b293f['on']('execute',()=>{this['fire'](_0x2a217f,this['_model']['id']);}),_0x2b293f;}['_setupKeyboardNavigation'](){const _0x31a6bd=this['element'];this['keystrokes']['listenTo'](_0x31a6bd);for(const _0x20cb06 of this['focusables'])this['focusTracker']['add'](_0x20cb06['element']),this['keystrokes']['listenTo'](_0x20cb06['element']);this['keystrokes']['set']('enter',(_0x112ed7,_0x5c3d50)=>{_0x31a6bd===_0x112ed7['target']&&(this['focusCycler']['focusFirst'](),_0x5c3d50());}),this['keystrokes']['set']('esc',(_0x3018fd,_0x1da55e)=>{_0x31a6bd!==_0x3018fd['target']&&(this['focus'](),_0x1da55e());});}}class d extends _0x3ff648{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3da637,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42d5a3){super(_0x42d5a3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c8b7e=this['editor']['config'];_0x3c8b7e['define']('trackChanges.SuggestionThreadView',fe),_0x3c8b7e['define']('trackChanges.SuggestionView',we),_0x3c8b7e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c8b7e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4a5f9d,_0x3e0d4d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x47100b,_0x4b591c]of this['_handleControllerBuffer']){const _0x5f258f=this['_suggestionToController']['has'](_0x47100b);_0x5f258f||_0x4b591c?_0x5f258f&&_0x4b591c&&this['_destroyController'](_0x47100b):this['_initializeController'](_0x47100b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a5f9d,_0x3e0d4d);}['init'](){const _0x26f190=this['editor'],_0x35d525=_0x26f190['plugins']['get']('TrackChangesEditing'),_0x3c2838=_0x26f190['plugins']['get']('Annotations'),_0x232bb6=_0x26f190['plugins']['get']('EditorAnnotations'),_0x36d84e=_0x26f190['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x232bb6['addSourceCollector'](()=>{const _0x2e1363=[];for(const [_0x14fbd2,_0x54e558]of Array['from'](this['_suggestionToController'])){const _0x5ace27=_0x14fbd2['getAllAdjacentSuggestions'](),_0x1d25b9=[];for(const _0x49b071 of _0x5ace27){if(!_0x49b071['isInContent'])continue;if(_0x49b071['isMultiRange']){_0x1d25b9['push'](..._0x49b071['getRanges']());continue;}const _0xe5f531=_0x49b071['getFirstRange']();if(_0x1d25b9['length']>0x0){const _0x293ddb=_0x1d25b9[0x0]['getJoined'](_0xe5f531);if(_0x293ddb){_0x1d25b9[0x0]=_0x293ddb;continue;}}_0x1d25b9['push'](_0xe5f531);}_0x2e1363['push']([_0x54e558['view'],_0x1d25b9]);}return _0x2e1363;}),this['listenTo'](_0x35d525,'suggestionLoaded',(_0x2d5af7,_0x288200)=>{this['listenTo'](_0x288200,'change:previous',(_0x5ed02c,_0x346708,_0x22c28e,_0x33c9d9)=>{_0x288200['isInContent']&&(null==_0x22c28e?(this['_updateController'](_0x33c9d9['head']),this['_handleSuggestionControllerDelayed'](_0x288200,!0x1)):(this['_updateController'](_0x22c28e['head']),null==_0x33c9d9&&this['_handleSuggestionControllerDelayed'](_0x288200,!0x0)));}),null!==_0x288200['previous']?this['_updateController'](_0x288200['head']):this['_handleSuggestionControllerDelayed'](_0x288200,!0x1);}),this['listenTo'](_0x35d525,'suggestionUnloaded',(_0x31f6e6,_0x31a456,_0x26afe1)=>{this['stopListening'](_0x31a456,'change:previous'),this['_handleControllerBuffer']['delete'](_0x31a456),this['_suggestionToController']['has'](_0x31a456)&&this['_destroyController'](_0x31a456),_0x26afe1&&this['_updateController'](_0x26afe1['head']);}),this['listenTo'](_0x35d525,'suggestionChanged',(_0xec410d,_0x3b7682)=>{this['_updateController'](_0x3b7682);}),this['listenTo'](_0x3c2838,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x36d84e,'addComment',(_0x2c2a6d,{threadId:_0x25fac3,isFromAdapter:_0x188978})=>{if(_0x188978||!_0x35d525['hasSuggestion'](_0x25fac3))return;const _0x499b7b=_0x35d525['getSuggestion'](_0x25fac3);this['_suggestionToController']['get'](_0x499b7b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x477715=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42d827;for(const _0x4d5e04 in _0x477715){const _0x8b08b3=_0x4d5e04,_0x467e43=_0x477715[_0x8b08b3];if('trackChangesLicenseKeyValid'==_0x467e43||'trackChangesLicenseKeyInvalid'==_0x467e43||'trackChangesLicenseKeyExpired'==_0x467e43||'trackChangesLicenseKeyDomainLimit'==_0x467e43||'trackChangesLicenseKeyNotAllowed'==_0x467e43||'trackChangesLicenseKeyEvaluationLimit'==_0x467e43||'trackChangesLicenseKeyTrialLimit'==_0x467e43||'trackChangesLicenseKeyUsageLimit'==_0x467e43){delete _0x477715[_0x8b08b3],_0x42d827=_0x467e43,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x42d827&&_0x477715['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x42d827&&_0x477715['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x42d827&&_0x477715['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x42d827&&_0x477715['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x42d827&&_0x477715['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x42d827&&_0x477715['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x42d827&&_0x477715['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xa2674e=this['editor']['plugins']['get']('Annotations'),_0x41e8ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x187c7d=Array['from'](_0xa2674e['activeAnnotations'],_0x4d4221=>_0x4d4221['innerView'])['filter'](_0x47aaf8=>this['_viewToController']['has'](_0x47aaf8)),_0x254781=[];for(const _0x647f06 of _0x187c7d){const _0x217474=this['_viewToController']['get'](_0x647f06)['model']['getAllAdjacentSuggestions']();_0x254781['push'](..._0x217474['reduce']((_0x2bf942,_0x1f68b6)=>[..._0x2bf942,..._0x1f68b6['getMarkerNames']()],[]));}_0x41e8ce['activeMarkers']=_0x254781;}['_addUIComponentsToFactory'](){const _0x5395c7=this['editor'],_0x35104d=_0x5395c7['locale'],_0x299815=c(_0x35104d,'Track\x20changes'),_0x54148d=new _0x443155([{'type':'switchbutton','model':new _0x1a2bb5({'withText':!0x0,'isToggleable':!0x0,'label':_0x299815,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5395c7['plugins']['has']('TrackChangesPreview')&&_0x54148d['addMany']([{'type':'separator'},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x19a87a of _0x54148d)if(ke(_0x19a87a)){const _0x34e591=_0x5395c7['commands']['get'](_0x19a87a['model']['commandName']);_0x19a87a['model']['bind']('isOn','isEnabled')['to'](_0x34e591,'value','isEnabled');}_0x5395c7['ui']['componentFactory']['add']('trackChanges',_0x1b77e3=>this['_createToolbarButton'](_0x1b77e3,_0x54148d,_0x299815)),_0x5395c7['ui']['componentFactory']['add']('menuBar:trackChanges',_0x979ec8=>this['_createMenuBarMenu'](_0x979ec8,_0x54148d,_0x299815));}['_createToolbarButton'](_0x22d554,_0x2be98b,_0x349336){const _0x166332=_0x7654e1(_0x22d554,_0x160840),_0x4c0aa4=this['editor']['commands']['get']('trackChanges');_0x166332['buttonView']['set']({'tooltip':_0x349336,'label':_0x349336,'icon':_0x3d38d9}),_0x166332['buttonView']['bind']('isOn')['to'](_0x4c0aa4,'value'),_0x166332['buttonView']['on']('execute',()=>{_0x4c0aa4['execute'](),this['editor']['editing']['view']['focus']();}),_0x3042ec(_0x166332,_0x2be98b,{'role':'menu'});const _0x8a7d55=[];for(const _0x16c05e of _0x2be98b)ke(_0x16c05e)&&_0x8a7d55['push'](this['editor']['commands']['get'](_0x16c05e['model']['commandName']));const _0x4b33c6=_0x166332['buttonView'];return _0x4b33c6['actionView']['unbind']('isEnabled'),_0x4b33c6['arrowView']['unbind']('isEnabled'),_0x4b33c6['actionView']['bind']('isEnabled')['to'](_0x4c0aa4,'isEnabled'),_0x4b33c6['arrowView']['bind']('isEnabled')['toMany'](_0x8a7d55,'isEnabled',(..._0x17444d)=>_0x17444d['some'](_0x5ec9c8=>_0x5ec9c8)),_0x166332['on']('execute',_0x4b12ec=>{this['editor']['execute'](_0x4b12ec['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x166332;}['_createMenuBarMenu'](_0x468c9c,_0x163f59,_0x24b7ba){const _0x46a763=new _0x4dafe0(_0x468c9c),_0x2f32ee=this['editor']['commands']['get']('trackChanges');_0x46a763['buttonView']['set']({'label':_0x24b7ba,'icon':_0x3d38d9});const _0x25846a=new _0x3cdbbe(_0x468c9c);for(const _0x247dbe of _0x163f59){if('separator'==_0x247dbe['type']){_0x25846a['items']['add'](new _0x26cbfd(_0x468c9c));continue;}const _0x4e9646=new _0x404883(_0x468c9c,_0x46a763),_0x1f6f61=new _0x23f794(_0x468c9c),_0x1c6b92=_0x247dbe['model'];_0x1f6f61['bind'](...Object['keys'](_0x1c6b92))['to'](_0x1c6b92),_0x1f6f61['delegate']('execute')['to'](_0x46a763),_0x1f6f61['on']('execute',()=>{this['editor']['execute'](_0x1c6b92['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e9646['children']['add'](_0x1f6f61),_0x25846a['items']['add'](_0x4e9646);}return _0x46a763['bind']('isEnabled')['to'](_0x2f32ee,'isEnabled'),_0x46a763['panelView']['children']['add'](_0x25846a),_0x46a763;}['_initializeController'](_0x330893){const _0x27d910=this['editor'],_0x25c46d=_0x27d910['config'],_0x50bbda=_0x27d910['plugins']['get']('Annotations'),_0x5d359f=_0x27d910['plugins']['get']('CommentsRepository'),_0x30cd03=_0x27d910['plugins']['get']('EditorAnnotations'),_0x1b8559=_0x27d910['plugins']['get'](_0x3da637)['me'],_0x4bb0a=_0x25c46d['get']('trackChanges')['SuggestionThreadView'],_0x5bc8a9=_0x25c46d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a0755,CommentThreadInputView:_0xacd357}=_0x27d910['plugins']['get']('CommentsUI');let _0x4b4c9e,_0x58f728,_0x3596c7;this['_annotationViews']['has'](_0x330893['id'])?(_0x58f728=this['_annotationViews']['get'](_0x330893['id']),_0x4b4c9e=_0x58f728['mainView']):(_0x4b4c9e=new _0x4bb0a(_0x27d910['locale'],_0x330893,_0x1b8559,{'disableComments':this['_disableComments'],'editorConfig':{..._0x25c46d['get']('comments.editorConfig'),'licenseKey':_0x25c46d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x25c46d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x25c46d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x25c46d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ded0e(_0x25c46d['get']('locale'),_0x27d910['locale']),'CommentView':_0x25c46d['get']('comments')['CommentView'],'CommentsListView':_0x2a0755,'CommentThreadInputView':_0xacd357,'SuggestionView':_0x5bc8a9}),_0x4b4c9e['suggestionView']['acceptButton']['on']('execute',()=>{_0x27d910['editing']['view']['focus']();}),_0x4b4c9e['suggestionView']['discardButton']['on']('execute',()=>{_0x27d910['editing']['view']['focus']();}),_0x58f728=_0x50bbda['createAnnotationView'](this['editor']['locale'],_0x4b4c9e),_0x58f728['bind']('isDirty')['to'](_0x4b4c9e,'isDirty'),_0x58f728['bind']('length')['to'](_0x4b4c9e),_0x58f728['bind']('type')['to'](_0x4b4c9e,'type',_0x170e9a=>'suggestion-'+_0x170e9a),_0x4b4c9e['on']('escape',()=>{_0x3596c7['fire']('escape');}),this['_annotationViews']['set'](_0x330893['id'],_0x58f728));const _0x39f950=_0x5d359f['createCommentThreadController'](_0x330893['commentThread'],_0x4b4c9e),_0x1bee6b=new pe(_0x27d910,_0x330893,_0x4b4c9e,_0x39f950),_0x1d09b4=_0x330893['getAllAdjacentSuggestions']()['filter'](_0x827f3f=>_0x827f3f['isInContent']);_0x4b4c9e['descriptionParts']=_0x27d910['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1d09b4),this['_suggestionToController']['set'](_0x330893,_0x1bee6b),this['_viewToController']['set'](_0x4b4c9e,_0x1bee6b),_0x3596c7=_0x50bbda['createAnnotation']({'view':_0x58f728,'target':()=>{const _0x294ead=[],_0x3a40b2=_0x330893['getAllAdjacentSuggestions']()['filter'](_0x1e589f=>_0x1e589f['isInContent']);for(const _0x35e8f0 of _0x3a40b2)_0x294ead['push'](..._0x35e8f0['getMarkers']());return _0x1e08c5(_0x27d910['editing'],_0x294ead);},'type':()=>'suggestion-'+_0x1bee6b['view']['type']}),_0x5d359f['_bindAnnotationToEditors'](_0x4b4c9e,_0x3596c7),_0x50bbda['add'](_0x3596c7),_0x30cd03['registerAnnotation'](_0x3596c7);}['_destroyController'](_0x44eeca){const _0x5bb929=this['editor']['plugins']['get']('CommentsRepository'),_0x3682e8=this['editor']['plugins']['get']('Annotations'),_0x94d08c=this['_suggestionToController']['get'](_0x44eeca),_0xbc4566=_0x94d08c['view'],_0x42f8e4=_0x3682e8['getByInnerView'](_0xbc4566);_0x5bb929['_unbindEditors'](_0xbc4566),_0x42f8e4&&_0x3682e8['remove'](_0x42f8e4),this['_suggestionToController']['delete'](_0x44eeca),this['_viewToController']['delete'](_0xbc4566),_0x94d08c['destroy']();}['_updateController'](_0x3a5ece){if(!_0x3a5ece['isInContent']||!this['_suggestionToController']['has'](_0x3a5ece))return;const _0x3e00f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x241de9=this['_suggestionToController']['get'](_0x3a5ece),_0x54ca30=_0x3a5ece['getAllAdjacentSuggestions']();_0x241de9['view']['descriptionParts']=_0x3e00f1['descriptionFactory']['getDescriptions'](_0x54ca30);}['destroy'](){for(const _0x54bc20 of this['_suggestionToController']['keys']())this['_destroyController'](_0x54bc20);for(const _0x58fc2c of this['_annotationViews']['values']())_0x58fc2c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x34de17){return'model'in _0x34de17;}class k extends _0x3ff648{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x195a33){this['editor']['plugins']['get'](p)['adapter']=_0x195a33;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x47e97a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x47e97a);}['getSuggestions']({skipNotAttached:_0xfe048=!0x1,toJSON:_0xe9853d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xfe048,'toJSON':_0xe9853d});}['getSuggestion'](_0x8da12e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x8da12e);}}const w=['Pagination'];class T extends _0x3ff648{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x446f7a=this['editor'];if(_0x446f7a['config']['define']('trackChangesData.editorCreator',_0x1f46d7=>{const _0x209382=_0x446f7a['model']['document']['getRootNames']()['reduce']((_0x3a92b0,_0xd327a6)=>(_0x3a92b0[_0xd327a6]='',_0x3a92b0),{});return _0x446f7a['constructor']['create'](_0x209382,_0x1f46d7);}),'function'!=typeof _0x446f7a['config']['get']('trackChangesData')['editorCreator'])throw new _0x328969('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28dabc){return N(this['editor'],!0x0,_0x28dabc);}['getDataWithDiscardedSuggestions'](_0x5c8bef){return N(this['editor'],!0x1,_0x5c8bef);}}class D extends _0x3ff648{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c150d){function _0xa70a50(_0x2cf6af){return _0x2cf6af['map'](_0x2e7ce2=>String['fromCharCode'](_0x2e7ce2))['join']('');}super(_0x5c150d),this['result']='end',_0x5c150d[_0xa70a50([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa70a50([0x76,0x69,0x65,0x77])][_0xa70a50([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa70a50([0x61,0x75,0x74,0x6f]),_0x5c150d[_0xa70a50([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xa70a50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa70a50([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xa70a50([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xa70a50([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 Ge(_0x4ef584){return void 0x0!==_0x4ef584['getRootsAttributes'];}async function N(_0x10f29e,_0x5a390c,_0x839626){const _0x41a91b=_0x515678(_0x10f29e,w);_0x41a91b['plugins']['push'](p,D),_0x41a91b['rootsAttributes']=Ge(_0x10f29e)?_0x10f29e['getRootsAttributes']():void 0x0;const _0x4b87c0=document['createDocumentFragment'](),_0xd8be4a=_0x10f29e['config']['get']('trackChangesData')['editorCreator'],_0x3a280c=await _0xd8be4a(_0x41a91b,()=>function(_0x3cdd15){const _0x397edd=document['createElement']('div');return _0x3cdd15['appendChild'](_0x397edd),_0x397edd;}(_0x4b87c0));!function(_0x4b6318,_0x34adeb){const _0xac1d21=_0x4b6318['model']['document']['getRootNames']()['reduce']((_0x53c93d,_0x3e215e)=>(_0x53c93d[_0x3e215e]=_0x4b6318['data']['get']({'rootName':_0x3e215e}),_0x53c93d),{}),_0x1a187d=_0x4b6318['plugins']['get']('Users')['users']['map'](_0x481065=>({'id':_0x481065['id'],'name':_0x481065['name']})),_0x259d71=_0x4b6318['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x13c86d=_0x4b6318['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a8a28=_0x34adeb['plugins']['get']('Users'),_0xe1f655=_0x34adeb['plugins']['get']('TrackChangesEditing'),_0x257baa=_0x34adeb['plugins']['get']('CommentsRepository');for(const _0x562b35 of _0x257baa['getCommentThreads']())_0x562b35['remove']();for(const _0x48d350 of _0x1a187d)_0x4a8a28['getUser'](_0x48d350['id'])||_0x4a8a28['addUser'](_0x48d350);_0x4a8a28['me']||_0x4a8a28['useAnonymousUser']();for(const _0x19ad88 of _0x13c86d)_0x257baa['addCommentThread'](_0x19ad88);for(const _0x4e05d8 of _0x259d71)_0xe1f655['addSuggestionData'](_0x4e05d8);_0x34adeb['data']['set'](_0xac1d21);}(_0x10f29e,_0x3a280c),_0x3a280c['execute'](_0x5a390c?'acceptAllSuggestions':'discardAllSuggestions');const _0x203500=Ge(_0x3a280c)?_0x3a280c['getFullData'](_0x839626):_0x3a280c['data']['get'](_0x839626);return await _0x3a280c['destroy'](),_0x203500;}class Me extends _0x192474{['options'];constructor(_0x5859c9,_0x33bd79){super(_0x5859c9),this['options']=_0x33bd79,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'](_0x2476cf,_0x51b6eb){if(!this['element'])return;const _0x425fc6=[];for(const [_0x2d371c,_0x512fc5]of _0x2476cf){const _0x54a290=document['createElement']('div');_0x54a290['setAttribute']('data-ck-root-name',_0x2d371c),_0x54a290['className']=_0x512fc5['classes']+'\x20ck-track-changes-preview__root-container',_0x54a290['innerHTML']=_0x512fc5['content'],_0x425fc6['push'](_0x54a290);}_0x51b6eb(this['element'],_0x425fc6),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2731a5{constructor(_0x1cdefd){super(_0x1cdefd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x50b615=this['editor'],_0x33c3d3=_0x50b615['locale'],_0x1c1953=_0x50b615['plugins']['get']('Dialog');let _0x467a94;const _0x1f7613=function(_0x8f4a24){const _0x3f916f={};if('editables'in _0x8f4a24['ui']['view']){for(const [_0x8c0a2b,_0x26cc1a]of Object['entries'](_0x8f4a24['ui']['view']['editables']))_0x3f916f[_0x8c0a2b]=_0x26cc1a['element'];}else _0x3f916f[_0x8f4a24['model']['document']['getRootNames']()[0x0]]=_0x8f4a24['ui']['view']['editable']['element'];return _0x3f916f;}(_0x50b615),_0xe9bee8=function(_0xb9f70a){let _0x3c238e=0x0;for(const _0x2d7535 of Object['values'](_0xb9f70a))_0x3c238e=Math['max'](_0x3c238e,_0x2d7535['getBoundingClientRect']()['width']);let _0x1ca5b0=0x0;for(const _0x5df2e1 of Object['values'](_0xb9f70a))_0x1ca5b0+=_0x5df2e1['getBoundingClientRect']()['height'];const _0x2cf11b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3c8aba=Math['min'](_0x1ca5b0,_0x2cf11b);return{'width':_0x3c238e,'height':_0x3c8aba};}(_0x1f7613);_0x1c1953['show']({'id':'finalContentPreview','title':c(_0x33c3d3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x33c3d3,{'dialogRects':_0xe9bee8}),'onHide':()=>{_0x467a94['detachFromDom']();},'onShow':()=>{_0x50b615['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4f948b=>{const _0x22af83=this['_standarizeRootsData'](_0x4f948b,_0x50b615,_0x1f7613);_0x1c1953['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x22af83,_0x50b615['config']['get']('trackChanges.preview.renderFunction'));}),_0x467a94=new _0x3ea2d3(_0x33c3d3,[_0x1c1953['view']]),_0x467a94['attachToDom'](),_0x467a94['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x50b615['once']('destroy',()=>{_0x467a94['detachFromDom']();});const _0x2eceac=_0x1c1953['view']['headerView']['class'];_0x1c1953['view']['headerView']['class']=_0x2eceac?_0x2eceac+'\x20ck-reset_all':'ck-reset_all',_0x1c1953['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1c1953['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x25d12e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57adb8=_0x25d12e['previewMode'],_0x362df6={};if('$labels'===_0x57adb8){for(const _0x21eed6 of _0x25d12e['getMergeFieldsIds']())_0x362df6[_0x21eed6]=_0x25d12e['getLabel'](_0x21eed6)||_0x21eed6;}else{const _0x3110a2='$defaultValues'===_0x57adb8?_0x25d12e['getDefaultValues']():_0x25d12e['getDataSetValues'](_0x57adb8,!0x0);for(const _0x191627 of Object['entries'](_0x3110a2)){const [_0x498334,_0x4563c6]=_0x191627;_0x362df6[_0x498334]=null!==_0x4563c6?_0x4563c6:_0x25d12e['getLabel'](_0x498334)||_0x498334;}}return{'mergeFieldsData':_0x362df6};}['_standarizeRootsData'](_0x5caca7,_0x11b113,_0x569c38){let _0x1d0d18;if('string'==typeof _0x5caca7){const _0x21fdb8=_0x11b113['model']['document']['getRootNames']()[0x0];_0x1d0d18={[_0x21fdb8]:_0x5caca7};}else _0x1d0d18=_0x5caca7;const _0x3d27a6=this['_fixMediaEmbeds'](_0x1d0d18,_0x11b113),_0xf0ceaa=function(_0x310884,_0x2ea97c){for(const [_0x324806,_0x1f75ee]of _0x310884)_0x1f75ee['classes']=_0x2ea97c[_0x324806]['classList']['value']['replace']('ck-focused','');return _0x310884;}(this['_sortRoots'](_0x11b113)['reduce']((_0x1a59d7,_0x1ebe66)=>(_0x1a59d7['push']([_0x1ebe66,{'content':_0x3d27a6[_0x1ebe66],'classes':''}]),_0x1a59d7),[]),_0x569c38);return _0xf0ceaa;}['_fixMediaEmbeds'](_0x2fb5ba,_0x1e7829){if(!_0x1e7829['plugins']['has']('MediaEmbedEditing'))return _0x2fb5ba;const _0x18d9dd=_0x1e7829['plugins']['get']('MediaEmbedEditing');for(const [_0x5285c8,_0x497f1e]of Object['entries'](_0x2fb5ba)){const _0x45ac21=document['createElement']('div');_0x45ac21['innerHTML']=_0x497f1e,(_0x45ac21['querySelectorAll']('figure.media')['forEach'](_0x16a632=>{const _0xb633dc=_0x16a632['querySelector']('oembed');if(_0xb633dc){const _0x252b0e=_0xb633dc['getAttribute']('url');if(_0x252b0e){const _0x28006c=_0x18d9dd['registry']['getMediaViewElement'](new _0x2b6151(_0x1e7829['editing']['view']['document']),_0x252b0e,{'elementName':'','renderForEditingView':!0x0}),_0x24667f=document['createElement']('div');_0x24667f['classList']['add']('ck-media__wrapper'),_0x28006c['render'](_0x24667f,_0x1e7829['editing']['view']['domConverter']),_0xb633dc['replaceWith'](_0x24667f);}}}),_0x2fb5ba[_0x5285c8]=_0x45ac21['innerHTML']);}return _0x2fb5ba;}['_sortRoots'](_0x2d7840){if(!function(_0x5a9310){return void 0x0!==_0x5a9310['getRootsAttributes'];}(_0x2d7840))return _0x2d7840['model']['document']['getRootNames']();const _0x2f94dc=[],_0x1b41c5=new Map();for(const _0xe25a5f of _0x2d7840['model']['document']['getRootNames']()){const _0x17c25f=_0x2d7840['editing']['view']['getDomRoot'](_0xe25a5f)['getClientRects']()['item'](0x0);_0x2f94dc['push'](_0xe25a5f),_0x1b41c5['set'](_0xe25a5f,_0x17c25f);}return _0x2f94dc['sort']((_0xa49452,_0x3e8fe1)=>{const _0x409b54=_0x1b41c5['get'](_0xa49452),_0x551b5e=_0x1b41c5['get'](_0x3e8fe1);return _0x409b54['y']-_0x551b5e['y']||_0x409b54['x']-_0x551b5e['x'];}),_0x2f94dc;}}class te extends _0x3ff648{static get['requires'](){return[T,_0x3d53d1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa0885d){super(_0xa0885d),_0xa0885d['commands']['add']('previewFinalContent',new re(this['editor'])),_0xa0885d['config']['define']('trackChanges.preview.renderFunction',(_0x5150cd,_0x1f77d1)=>{for(const _0x558040 of _0x1f77d1)_0x5150cd['appendChild'](_0x558040);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};