@ckeditor/ckeditor5-track-changes 44.2.1 → 44.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +25 -25
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. 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 Yt,Plugin as _0xa4b53f,PendingActions as _0x2f23c0,icons as _0x146320}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x11aaec,ObservableMixin as _0x28b3e7,uid as _0xf688c7,priorities as _0x2435d0,insertToPriorityArray as _0x337c6b,logWarning as _0x578fad,getEnvKeystrokeText as _0x3cca6d,FocusTracker as _0x2c535c,KeystrokeHandler as _0x411b8d,Collection as _0xbd48a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3e4cac,View as _0x33b69b,ViewCollection as _0x5ba900,FocusCycler as _0x3a69b4,ViewModel as _0x56f17e,createDropdown as _0x12c985,SplitButtonView as _0x120e2f,addListToDropdown as _0x2136e8,MenuBarMenuView as _0x922c1d,MenuBarMenuListView as _0xceb2eb,ListSeparatorView as _0x297364,MenuBarMenuListItemView as _0x29da40,MenuBarMenuListItemButtonView as _0x23292a,BodyCollection as _0x187050,Dialog as _0x32ba8b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x110e12,hashObject as _0x1c2190,surroundingMarkersDetector as _0x5c679e,FOCUS_ANNOTATION_KEYSTROKE as _0x17554f,AriaDescriptionView as _0xde46fc,setupThreadKeyboardNavigation as _0x3df98c,trimHtml as _0xce5d8e,UserView as _0x28de63,LateFocusButtonView as _0x5e2872,getDateTimeFormatter as _0x11931c,getAllMarkersDomElementsSorted as _0x300bcd,sanitizeEditorConfig as _0x3f9cf9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x7e3eca,LiveRange as _0x4f46eb,LivePosition as _0x38a415,DowncastWriter as _0x1145a5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5cfe2f,toWidget as _0x517cc2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x272af8,set as _0x3e29d3,isEqual as _0x483e20,unset as _0x5cdb86,omit as Vt}from'lodash-es';import{Delete as _0x3bbbf9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x30a68b,ShiftEnter as _0x9d657b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x3ebb28,_0x6d5964){super(_0x3ebb28),this['_enabledCommands']=_0x6d5964,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 _0x1dcc76 of this['editor']['commands']['commands']())_0x1dcc76['affectsData']&&!this['_enabledCommands']['has'](_0x1dcc76)&&_0x1dcc76['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4fc695 of this['editor']['commands']['commands']())_0x4fc695['affectsData']&&!this['_enabledCommands']['has'](_0x4fc695)&&_0x4fc695['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x2c11fc,_0x544d1d){super(_0x2c11fc),this['_suggestions']=_0x544d1d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x14ebf3){const _0x338795=this['_suggestions']['get'](_0x14ebf3);if(!_0x338795)throw new _0x11aaec('track-changes-accept-suggestion-not-found',this);const _0x3c6265=_0x338795['getRanges']();this['editor']['model']['canEditAt'](_0x3c6265)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x338795);}}class R extends Yt{['_suggestions'];constructor(_0x47a3eb,_0x45170f){super(_0x47a3eb),this['_suggestions']=_0x45170f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x39321b){const _0x28e8e8=this['_suggestions']['get'](_0x39321b);if(!_0x28e8e8)throw new _0x11aaec('track-changes-discard-suggestion-not-found',this);const _0xca10d=_0x28e8e8['getRanges']();this['editor']['model']['canEditAt'](_0xca10d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x28e8e8);}}function cs(_0x4bbfdf,_0x1bd6fc){let _0x5edb7e='';return _0x5edb7e+=_0x4bbfdf['split']('*')['map']((_0x34abd1,_0x2b5f57)=>_0x2b5f57%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x34abd1)+'</span>':nn(_0x34abd1))['join'](''),_0x1bd6fc&&(_0x5edb7e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1bd6fc['value']+'\x22\x20title=\x22'+_0x1bd6fc['title']+'\x22></span>'),_0x5edb7e;}function nn(_0x56d02f){const _0xeeb40c=document['createElement']('span');return _0xeeb40c['innerText']=_0x56d02f,_0xeeb40c['innerHTML'];}function Zt(_0x336779){return _0x336779['sort']((_0x47ad79,_0x310c6f)=>'deletion'==_0x47ad79['type']&&'deletion'!=_0x310c6f['type']?-0x1:'deletion'!=_0x47ad79['type']&&'deletion'==_0x310c6f['type']?0x1:0x0);}function to(_0x237010,_0x1a21ca){let _0x5c87bd,_0x2e774f=0x0;const _0x3badf7=[],_0x4ab627=_0x1a21ca['schema'];for(;_0x2e774f<_0x237010['length'];){const _0x2203a2=_0x237010[_0x2e774f],_0x31580d=_0x237010[_0x2e774f+0x1];_0x5c87bd||(_0x5c87bd=_0x1a21ca['createPositionBefore'](_0x2203a2)),on(_0x1a21ca,_0x2203a2,_0x31580d)||(_0x3badf7['push'](_0x1a21ca['createRange'](_0x5c87bd,_0x4ab627['isObject'](_0x2203a2)?_0x1a21ca['createPositionAfter'](_0x2203a2):_0x1a21ca['createPositionAt'](_0x2203a2,'end'))),_0x5c87bd=null),_0x2e774f++;}return _0x3badf7;}function on(_0x515aa9,_0x3c83fd,_0x17e5ea){if(!_0x17e5ea)return!0x1;const _0x515686=_0x515aa9['createPositionAfter'](_0x3c83fd),_0x135148=_0x515aa9['createPositionBefore'](_0x17e5ea);return _0x515686['isTouching'](_0x135148);}function ts(_0x1bb509,_0x1f4ac6,_0x30061b){for(;_0x30061b['length'];){const _0x5da59f=_0x30061b['splice'](0x0,0x64);_0x1bb509['change'](()=>{for(const _0x2733a8 of _0x5da59f)_0x2733a8['isInContent']&&_0x1f4ac6['execute'](_0x2733a8['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x5cf58f,_0x24c2ce,_0xdceeff){super(_0x5cf58f),this['_command']=_0x24c2ce,this['_suggestions']=_0xdceeff,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x193a29=Array['from'](this['_suggestions']['values']())['some'](_0x2e47cc=>_0x2e47cc['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x193a29;}['execute'](){const _0x2aa7ca=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x108499 of _0x2aa7ca){const _0x19e9d6=_0x108499['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19e9d6))return;}ts(this['editor']['model'],this['_command'],_0x2aa7ca);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3ddba2,_0x125cc5,_0x4b1b13){super(_0x3ddba2),this['_command']=_0x125cc5,this['_suggestions']=_0x4b1b13,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x54818d=this['editor']['model']['document']['selection'],_0xda12c4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x594cd4,_0x4f0fa8){const _0x17fb36=Array['from'](_0x594cd4['getRanges']()),_0x14b40e=new Set();for(const _0x260d6c of _0x4f0fa8)if(_0x260d6c['isInContent']){for(const _0x411f8e of _0x17fb36)for(const _0x1c0acc of _0x260d6c['getRanges']())(_0x411f8e['isIntersecting'](_0x1c0acc)||_0x594cd4['isCollapsed']&&!_0x260d6c['isMultiRange']&&_0x260d6c['next']&&_0x1c0acc['end']['isTouching'](_0x411f8e['start']))&&_0x14b40e['add'](_0x260d6c);}return _0x14b40e;}(_0x54818d,_0xda12c4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5f1417=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x95c2fd of _0x5f1417){const _0x4b6dc5=_0x95c2fd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b6dc5))return;}ts(this['editor']['model'],this['_command'],_0x5f1417);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x28b3e7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x6309,_0x981165){super(),this['id']=_0x981165['id'],this['type']=_0x981165['type'],this['subType']=_0x981165['subType']||null,this['author']=_0x981165['author'],this['creator']=_0x981165['creator']||_0x981165['author'],this['isExternal']=Boolean(_0x981165['attributes']&&_0x981165['attributes']['@external']),this['data']=null,this['_model']=_0x6309,this['_onAccept']=_0x981165['onAccept'],this['_onDiscard']=_0x981165['onDiscard'],this['_onAttributesChange']=_0x981165['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x981165['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 _0x5928f8=this;for(;_0x5928f8['previous'];)_0x5928f8=_0x5928f8['previous'];return _0x5928f8;}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'](_0x2fc270){this['_markerNames']['add'](_0x2fc270);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x23b1f0=>this['_model']['markers']['get'](_0x23b1f0))['filter'](_0x4466ea=>_0x4466ea);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3be6bb=>{for(const _0x508c06 of this['getMarkers']())_0x3be6bb['removeMarker'](_0x508c06);}),this['_markerNames']['clear']();}['removeMarker'](_0x10ad3a){this['_model']['change'](_0x4d92cd=>{_0x4d92cd['removeMarker'](_0x10ad3a);}),this['_markerNames']['delete'](_0x10ad3a);}['addRange'](_0xff1833){const _0x48caa1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x48caa1),this['_model']['change'](_0xf4f216=>{_0xf4f216['addMarker'](_0x48caa1,{'range':_0xff1833,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x30b97a){for(const _0x46f94b of this['getRanges']())if(_0x46f94b['isIntersecting'](_0x30b97a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x32c0c0=>_0x32c0c0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x27b8b6,_0x273ec3)=>[..._0x27b8b6,..._0x273ec3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xfabec8=this['getRanges']();if(0x1!=_0xfabec8['length'])return null;const _0x4f10d4=_0xfabec8[0x0],_0x2ecd5e=_0x4f10d4['start']['nodeAfter'],_0x58df82=_0x4f10d4['end']['nodeBefore'];return _0x2ecd5e instanceof _0x7e3eca?_0x2ecd5e!=_0x58df82?null:_0x2ecd5e: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 _0x2031b6=[];let _0x1d80a1=this['head'];for(;_0x1d80a1;)_0x2031b6['push'](_0x1d80a1),_0x1d80a1=_0x1d80a1['next'];return _0x2031b6;}['setAttribute'](_0x3ca6ae,_0x3f0159){const _0xeca2ed=_0x272af8(this['attributes']);_0x3e29d3(_0xeca2ed,_0x3ca6ae,_0x3f0159),_0x483e20(_0xeca2ed,this['attributes'])||(this['attributes']=_0xeca2ed,this['_onAttributesChange'](_0xeca2ed));}['removeAttribute'](_0x49be3c){const _0x3fe613=_0x272af8(this['attributes']);_0x5cdb86(_0x3fe613,_0x49be3c),_0x483e20(_0x3fe613,this['attributes'])||(this['attributes']=_0x3fe613,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 _0xf688c7()['substr'](0x1,0x5);}}function o(_0x1e5de7,_0x1755a4,_0x2350e6){const _0x47a48b=_0x1e5de7['t'],t=_0x1e5de7['t'];switch(_0x1755a4){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',_0x2350e6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2350e6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2350e6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2350e6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2350e6);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',_0x2350e6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2350e6);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',_0x2350e6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2350e6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2350e6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2350e6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2350e6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2350e6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2350e6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2350e6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2350e6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2350e6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2350e6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2350e6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2350e6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2350e6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2350e6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2350e6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2350e6);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'},_0x2350e6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2350e6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2350e6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2350e6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2350e6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2350e6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2350e6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2350e6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2350e6);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'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2350e6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2350e6);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 _0x47a48b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2350e6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x47a48b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2350e6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2350e6);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'},_0x2350e6);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'},_0x2350e6);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'},_0x2350e6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1755a4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xf22364,_0x240c8a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xf22364,this['_locale']=_0x240c8a;}['getDescriptions'](_0x2f5eec){const _0x50e833=[],_0x23f07d=new Set(),_0x1b5fdc=new Set();for(let _0x287d45=0x0;_0x287d45<_0x2f5eec['length'];_0x287d45++){const _0x4313ff=_0x2f5eec[_0x287d45];if(!_0x4313ff['isInContent'])continue;const _0x4e1816=this['_handleCustomCallbackDescription'](_0x4313ff);if(_0x4e1816){if(null!=_0x4313ff['subType']){if(_0x23f07d['has'](_0x4313ff['subType']))continue;_0x23f07d['add'](_0x4313ff['subType']);}_0x50e833['push'](_0x4e1816);}else{if('attribute'!=_0x4313ff['type'])'insertion'!=_0x4313ff['type']&&'deletion'!=_0x4313ff['type']||this['_handleInsertRemoveSuggestionDescription'](_0x50e833,_0x4313ff,_0x2f5eec[_0x287d45+0x1]);else{const _0x1a8ee0=_0x4313ff['data']['key'];if(_0x1b5fdc['has'](_0x1a8ee0))continue;_0x1b5fdc['add'](_0x4313ff['data']['key']),_0x1a8ee0==m?this['_handleRenameSuggestionDescription'](_0x50e833,_0x4313ff):this['_handleAttributeSuggestionDescription'](_0x50e833,_0x4313ff);}}}return this['_resolveDescriptionItems'](_0x50e833);}['registerDescriptionCallback'](_0x2a0e64){this['_customCallbacks']['push'](_0x2a0e64);}['registerElementLabel'](_0x23f043,_0x3b7f73,_0x35fca7=_0x2435d0['normal']){'function'==typeof _0x23f043?_0x337c6b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23f043,'label':_0x3b7f73,'priority':_0x35fca7}):this['_itemLabels']['set'](_0x23f043,_0x3b7f73);}['registerAttributeLabel'](_0x5176b9,_0x4a3707){this['_attributeLabels']['set'](_0x5176b9,_0x4a3707);}['getItemLabel'](_0x35494e,_0x550f6b=0x1){let _0x44bece;for(const _0xeb22ff of this['_itemLabelsCallbacks'])if(_0xeb22ff['matchingCallback'](_0x35494e)){_0x44bece=_0xeb22ff['label'];break;}return _0x44bece||(_0x44bece=this['_itemLabels']['get'](_0x35494e['name'])),_0x44bece?_0x44bece(_0x550f6b):0x1!==_0x550f6b?_0x550f6b+'\x20'+_0x35494e['name']+'s':''+_0x35494e['name'];}['_addDescriptionItems'](_0x174e4d,_0x4b2b82){const _0x123e5a=_0x4b2b82['getFirstRange']()['getWalker'](),_0x5d3ea2='insertion'==_0x4b2b82['type']?'add':'remove';for(const _0x1bfe32 of _0x123e5a){const _0x4f17dc=_0x1bfe32['item'],_0x391cfb=_0x174e4d[_0x174e4d['length']-0x1];if(_0x4f17dc['is']('$textProxy'))_0x391cfb&&_0x391cfb['type']['indexOf']('Container')>-0x1&&_0x174e4d['pop'](),_0x391cfb&&'text'==_0x391cfb['type']?_0x391cfb[_0x5d3ea2]+=_0x4f17dc['data']:_0x174e4d['push']({'type':'text','add':'add'==_0x5d3ea2?_0x4f17dc['data']:'','remove':'remove'==_0x5d3ea2?_0x4f17dc['data']:''});else{if(this['_schema']['isObject'](_0x4f17dc)){const _0x19709f=_0x4f17dc;if(_0x391cfb&&_0x391cfb['type']['indexOf']('Container')>-0x1&&_0x174e4d['pop'](),'elementEnd'==_0x1bfe32['type'])continue;_0x391cfb&&_0x391cfb['type']==_0x5d3ea2+'Object'&&_0x391cfb['element']['name']==_0x19709f['name']?_0x391cfb['quantity']++:_0x174e4d['push']({'type':_0x5d3ea2+'Object','element':_0x19709f,'quantity':0x1}),_0x123e5a['skip'](_0x44afa6=>!('elementEnd'==_0x44afa6['type']&&_0x44afa6['item']==_0x4f17dc));}else{if(this['_schema']['checkChild'](_0x4f17dc,'$text')||_0x4f17dc['is']('element','softBreak')){const _0x965033=_0x4f17dc;if('add'==_0x5d3ea2&&'elementStart'==_0x1bfe32['type']||'remove'==_0x5d3ea2&&'elementEnd'==_0x1bfe32['type'])continue;if(_0x391cfb&&-0x1==_0x391cfb['type']['indexOf']('Container')){'text'==_0x391cfb['type']&&(_0x391cfb[_0x5d3ea2]+='\x0a');continue;}let _0x4e7586;if(_0x4e7586='add'==_0x5d3ea2?_0x965033['nextSibling']&&!this['_schema']['isObject'](_0x965033['nextSibling'])?_0x965033['nextSibling']:null:_0x965033['previousSibling']&&!this['_schema']['isObject'](_0x965033['previousSibling'])?_0x965033['previousSibling']:null,_0x965033['isEmpty']||_0x4e7586&&_0x4e7586['isEmpty']){const _0x4db218=_0x4e7586&&_0x4e7586['isEmpty']?_0x4e7586:_0x965033;_0x391cfb&&_0x391cfb['type']==_0x5d3ea2+'EmptyContainer'&&_0x391cfb['element']['name']==_0x4db218['name']?_0x391cfb['quantity']++:_0x174e4d['push']({'type':_0x5d3ea2+'EmptyContainer','element':_0x4db218,'quantity':0x1});}else _0x174e4d['push']({'type':_0x5d3ea2+'Container','element':_0x965033});}}}}}['_resolveDescriptionItems'](_0x1ac6d7){const _0x18aace=this['_locale'],_0x3bf59d=[],_0x5da50=[],_0x54c29c=[];for(const _0xb411ca of _0x1ac6d7)switch(_0xb411ca['type']){case'text':if(_0xb411ca['add']=_0xb411ca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb411ca['remove']=_0xb411ca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb411ca['add']&&''!=_0xb411ca['remove']){_0x3bf59d['push']({'type':'replace','content':o(_0x18aace,'REPLACE_TEXT',['\x22'+_0xb411ca['remove']+'\x22','\x22'+_0xb411ca['add']+'\x22'])});continue;}if(null!=_0xb411ca['add']['match'](/^ +$/)){_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Insert:*\x20%0',o(_0x18aace,'ELEMENT_SPACE',_0xb411ca['add']['length']))});continue;}if(null!=_0xb411ca['remove']['match'](/^ +$/)){_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Remove:*\x20%0',o(_0x18aace,'ELEMENT_SPACE',_0xb411ca['remove']['length']))});continue;}if(''!=_0xb411ca['add']){_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Insert:*\x20%0','\x22'+_0xb411ca['add']+'\x22')});continue;}_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Remove:*\x20%0','\x22'+_0xb411ca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Insert:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Remove:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'addContainer':_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Split:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'removeContainer':_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Merge:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'addFormat':_0x5da50['push'](_0xb411ca['key']);continue;case'removeFormat':_0x54c29c['push'](_0xb411ca['key']);continue;default:_0x3bf59d['push'](_0xb411ca);}if(_0x5da50['length']){const _0x5c4a99=_0x5da50['map'](_0x43dc30=>this['_attributeLabels']['has'](_0x43dc30)?this['_attributeLabels']['get'](_0x43dc30):_0x43dc30)['join'](',\x20');_0x3bf59d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5c4a99)});}if(_0x54c29c['length']){const _0xa596a=_0x54c29c['map'](_0x117217=>this['_attributeLabels']['has'](_0x117217)?this['_attributeLabels']['get'](_0x117217):_0x117217)['join'](',\x20');_0x3bf59d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xa596a)});}return _0x3bf59d;}['_handleCustomCallbackDescription'](_0x59e72f){for(const _0x3884c8 of this['_customCallbacks']){const _0x284386=_0x3884c8(_0x59e72f);if(_0x284386&&'type'in _0x284386)return _0x284386;}}['_handleAttributeSuggestionDescription'](_0x3524e8,_0x593eeb){const _0x50cb15=_0x593eeb['data'],_0x10953a=void 0x0===_0x50cb15['newValue']?'removeFormat':'addFormat';_0x3524e8['push']({'type':_0x10953a,'key':_0x50cb15['key']});}['_handleRenameSuggestionDescription'](_0xc50f68,_0x158840){_0xc50f68['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x158840['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x37d7cc,_0x464186,_0x565111){if(this['_addDescriptionItems'](_0x37d7cc,_0x464186),_0x565111&&_0x565111['getFirstRange']()&&!_0x464186['getFirstRange']()['end']['isEqual'](_0x565111['getFirstRange']()['start'])){const _0x1ed467=_0x37d7cc[_0x37d7cc['length']-0x1],_0x88790a='insertion'==_0x464186['type']?'add':'remove';_0x1ed467&&'text'==_0x1ed467['type']&&(_0x1ed467[_0x88790a]+='\x0a');}}}class U extends _0xa4b53f{['afterInit'](){const _0x233b93=this['editor'],_0x2bb709=_0x233b93['plugins']['get']('TrackChangesEditing');_0x233b93['commands']['get']('showAIAssistant')&&_0x2bb709['enableCommand']('showAIAssistant');}}class V extends _0xa4b53f{['afterInit'](){const _0xb2639c=this['editor'],_0xd91a1d=_0xb2639c['locale'];if(!_0xb2639c['plugins']['has']('AlignmentEditing'))return;const _0x2fc70c=_0xb2639c['plugins']['get']('TrackChangesEditing');_0x2fc70c['enableDefaultAttributesIntegration']('alignment'),_0x2fc70c['registerBlockAttribute']('alignment'),_0x2fc70c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xd91a1d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x498934=this['editor'],_0x234676=_0x498934['locale'];_0x498934['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3be098=>{if('formatBlock'!=_0x3be098['type'])return;const {data:_0x35e6b2}=_0x3be098;if(_0x35e6b2&&'alignment'==_0x35e6b2['commandName']){const _0x50e05f=_0x35e6b2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x234676,'*Format:*\x20%0',function(_0x3ac4a2){switch(_0x3ac4a2){case'left':return o(_0x234676,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x234676,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x234676,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x234676,'FORMAT_JUSTIFY_TEXT');}}(_0x50e05f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xa4b53f{['afterInit'](){const _0x5ae9ab=this['editor'],_0x1b2b6b=_0x5ae9ab['plugins']['get']('TrackChangesEditing'),_0x404bb8=_0x5ae9ab['locale'];for(const _0x3c546d of ti){if(!_0x5ae9ab['plugins']['has'](_0x3c546d))continue;const _0x541d7d=_0x3c546d['slice'](0x0,-0x7)['toLowerCase'](),_0x4616fa='FORMAT_'+_0x541d7d['toUpperCase']();_0x1b2b6b['enableDefaultAttributesIntegration'](_0x541d7d),_0x1b2b6b['registerInlineAttribute'](_0x541d7d),_0x1b2b6b['descriptionFactory']['registerAttributeLabel'](_0x541d7d,o(_0x404bb8,_0x4616fa));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59bcda=this['editor'],_0x12c8ba=_0x59bcda['locale'],_0x56a1a8=_0x59bcda['plugins']['get']('TrackChangesEditing');function _0x46bff7(_0x303914,_0x277120){_0x56a1a8['descriptionFactory']['registerDescriptionCallback'](_0x4dd5a9=>{if('formatInline'!=_0x4dd5a9['type'])return;const {data:_0x26f2ab}=_0x4dd5a9;return _0x26f2ab&&_0x26f2ab['commandName']===_0x303914?_0x26f2ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12c8ba,'*Format:*\x20%0',_0x277120)}:{'type':'format','content':o(_0x12c8ba,'*Remove\x20format:*\x20%0',_0x277120)}:void 0x0;});}_0x46bff7('bold',o(_0x12c8ba,'FORMAT_BOLD')),_0x46bff7('italic',o(_0x12c8ba,'FORMAT_ITALIC')),_0x46bff7('underline',o(_0x12c8ba,'FORMAT_UNDERLINE')),_0x46bff7('code',o(_0x12c8ba,'FORMAT_CODE')),_0x46bff7('strikethrough',o(_0x12c8ba,'FORMAT_STRIKETHROUGH')),_0x46bff7('subscript',o(_0x12c8ba,'FORMAT_SUBSCRIPT')),_0x46bff7('superscript',o(_0x12c8ba,'FORMAT_SUPERSCRIPT'));}}class F extends _0xa4b53f{['afterInit'](){const _0x5c6b59=this['editor'],_0x11c1cb=_0x5c6b59['locale'];if(!_0x5c6b59['plugins']['has']('BlockQuoteEditing'))return;const _0x44bfb1=_0x5c6b59['plugins']['get']('TrackChangesEditing'),_0x42dde8=this['editor']['commands']['get']('blockQuote');_0x44bfb1['enableCommand']('blockQuote',(_0x51feee,_0x180564={})=>{const _0x34abb6=this['editor']['model']['document']['selection'],_0x2c87b3=_0x180564&&void 0x0!==_0x180564['forceValue']?_0x180564['forceValue']:!_0x42dde8['value'];let _0x480e8c=[];if(_0x2c87b3){const _0x5717e3=Array['from'](_0x34abb6['getSelectedBlocks']())['filter'](_0x453691=>oo(_0x453691)||function(_0x4e6bb3,_0x30d1f4){const _0x230880=_0x30d1f4['checkChild'](_0x4e6bb3['parent'],'blockQuote'),_0x41c4d3=_0x30d1f4['checkChild'](['$root','blockQuote'],_0x4e6bb3);return _0x230880&&_0x41c4d3;}(_0x453691,this['editor']['model']['schema']));_0x480e8c=to(_0x5717e3,_0x5c6b59['model']);}else{const _0x25e0a5=Array['from'](_0x34abb6['getSelectedBlocks']())['filter'](_0x592589=>oo(_0x592589));_0x480e8c=to(_0x25e0a5,_0x5c6b59['model']);}_0x5c6b59['model']['change'](()=>{for(const _0xd3415c of _0x480e8c)_0x44bfb1['markBlockFormat'](_0xd3415c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c87b3}]});});}),_0x44bfb1['descriptionFactory']['registerDescriptionCallback'](_0x330bff=>{const {data:_0x1eabfe}=_0x330bff;if(_0x1eabfe&&'blockQuote'==_0x1eabfe['commandName']){const _0x38ebcd=o(_0x11c1cb,'ELEMENT_BLOCK_QUOTE');return _0x1eabfe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11c1cb,'*Set\x20format:*\x20%0',_0x38ebcd)}:{'type':'format','content':o(_0x11c1cb,'*Remove\x20format:*\x20%0',_0x38ebcd)};}});}}function oo(_0x3b0426){return'blockQuote'==_0x3b0426['parent']['name'];}class L extends _0xa4b53f{['afterInit'](){const _0x1012a4=this['editor'],_0x48ee15=_0x1012a4['locale'],_0x4d365d=_0x1012a4['plugins']['get']('TrackChangesEditing');_0x1012a4['plugins']['has']('BookmarkEditing')&&(_0x4d365d['enableCommand']('insertBookmark'),_0x4d365d['enableDefaultAttributesIntegration']('updateBookmark'),_0x4d365d['registerBlockAttribute']('bookmarkId'),_0x4d365d['descriptionFactory']['registerDescriptionCallback'](_0x430fa2=>{if('insertion'!=_0x430fa2['type']&&'deletion'!=_0x430fa2['type']&&'attribute'!=_0x430fa2['type'])return;const _0x4723fb=_0x430fa2['getContainedElement']();if(null==_0x4723fb)return;if(!_0x4723fb['is']('element','bookmark'))return;const _0x5554a9=_0x4723fb['getAttribute']('bookmarkId');if('insertion'==_0x430fa2['type'])return{'type':'insertion','content':o(_0x48ee15,'*Insert:*\x20%0','\x22'+_0x5554a9+'\x22\x20'+o(_0x48ee15,'ELEMENT_BOOKMARK'))};if('deletion'==_0x430fa2['type'])return{'type':'deletion','content':o(_0x48ee15,'*Remove:*\x20%0','\x22'+_0x5554a9+'\x22\x20'+o(_0x48ee15,'ELEMENT_BOOKMARK'))};const {data:_0x3da3eb}=_0x430fa2;if(!_0x3da3eb||'bookmarkId'!=_0x3da3eb['key'])return;return{'type':'format','content':o(_0x48ee15,'*Set\x20bookmark:*\x20%0','\x22'+_0x3da3eb['newValue']+'\x22')};}));}}class J extends _0xa4b53f{['afterInit'](){const _0x2cded3=this['editor'];_0x2cded3['plugins']['has']('CaseChange')&&(_0x2cded3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2cded3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2cded3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xa4b53f{['afterInit'](){const _0x34ede4=this['editor'];_0x34ede4['commands']['get']('ckbox')&&_0x34ede4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0xa4b53f{['afterInit'](){const _0x761b54=this['editor'];if(!_0x761b54['plugins']['has']('CodeBlock'))return;const _0x504346=_0x761b54['plugins']['get']('TrackChangesEditing'),_0x44b617=_0x761b54['locale'],_0x301b1d=_0x761b54['config']['get']('codeBlock')['languages'],_0x1ea9c9=_0x761b54['commands']['get']('codeBlock');_0x504346['enableCommand']('indentCodeBlock'),_0x504346['enableCommand']('outdentCodeBlock'),_0x504346['enableCommand']('codeBlock',(_0x4daeca,_0x3b448a={})=>{const _0x5b034e=_0x761b54['model'],_0x204893=_0x761b54['model']['document']['selection'],_0x523e99=_0x3b448a&&void 0x0!==_0x3b448a['forceValue']?_0x3b448a['forceValue']:!_0x1ea9c9['value'];let _0x14f5ec;_0x3b448a['language']||(_0x3b448a['language']=_0x301b1d[0x0]['language']),_0x14f5ec=_0x523e99?Array['from'](_0x204893['getSelectedBlocks']())['filter'](_0x112f90=>eo(_0x112f90)||function(_0x447a4c,_0xb3b1e3){if(_0x447a4c['is']('rootElement')||_0xb3b1e3['isLimit'](_0x447a4c))return!0x1;return _0xb3b1e3['checkChild'](_0x447a4c['parent'],'codeBlock');}(_0x112f90,_0x5b034e['schema'])):Array['from'](_0x204893['getSelectedBlocks']())['filter'](_0x1d3e25=>eo(_0x1d3e25));const _0x96fc42=to(_0x14f5ec,_0x5b034e);_0x5b034e['change'](()=>{for(const _0xdce852 of _0x96fc42)_0x504346['markBlockFormat'](_0xdce852,{'commandName':'codeBlock','commandParams':[{..._0x3b448a,'forceValue':_0x523e99}],'formatGroupId':'blockName'});});}),(_0x504346['descriptionFactory']['registerElementLabel']('codeBlock',_0x26ae34=>o(_0x44b617,'ELEMENT_CODE_BLOCK',_0x26ae34)),_0x504346['descriptionFactory']['registerDescriptionCallback'](_0x512bda=>{if('formatBlock'!=_0x512bda['type'])return;const _0x980978=_0x44b617['t'],{data:_0x55fca0}=_0x512bda;if(!_0x55fca0||'codeBlock'!=_0x55fca0['commandName'])return;const _0x30b0e1=_0x55fca0['commandParams'][0x0]['language'],_0x480beb=_0x980978(_0x301b1d['find'](_0x327125=>_0x327125['language']===_0x30b0e1)['label'])['toLowerCase']();return _0x55fca0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44b617,'*Set\x20format:*\x20%0',o(_0x44b617,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x480beb+')')}:{'type':'format','content':o(_0x44b617,'*Remove\x20format:*\x20%0',o(_0x44b617,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b5bb8){return'codeBlock'==_0x5b5bb8['name'];}class z extends _0xa4b53f{['afterInit'](){const _0x4c828d=this['editor'];if(!_0x4c828d['plugins']['has']('CommentsEditing'))return;_0x4c828d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5b096e,_0x3533ae,_0x19fa20){const _0x3a5d98=[];for(const _0x2e193f of _0x3533ae['getItems']())_0x2e193f['hasAttribute'](_0x5b096e)&&_0x3a5d98['push'](_0x19fa20['createRangeOn'](_0x2e193f));return _0x3a5d98;}function De(_0x4b6e92,_0x2b9e98,{showActiveMarker:_0x424b86=!0x0}={}){const _0x3ac555=_0x4b6e92['plugins']['get']('TrackChangesEditing');return(_0x22e128,_0x53dcd4,_0x4fcc56)=>{if(!_0x4fcc56['consumable']['test'](_0x53dcd4['markerRange'],_0x22e128['name']))return;const _0x4363be=_0x53dcd4['markerRange']['getWalker'](),_0x367039=_0x53dcd4['markerRange']['start'],_0x3850b8=_0x4b6e92['model']['schema'];let _0x3452f8=null,_0x1d374a=null,_0xd17b3f=!0x1,_0x22c904=!0x1;for(const _0x10d7a2 of _0x4363be){const _0x5b08bc=_0x10d7a2['item'];_0xd17b3f=_0xd17b3f||_0x3850b8['isContent'](_0x5b08bc);const _0x442168=_0x4fcc56['mapper']['toViewElement'](_0x5b08bc);if(_0x442168&&_0x442168['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10d7a2['type']&&(_0x3850b8['isBlock'](_0x5b08bc)&&!_0x3850b8['isLimit'](_0x5b08bc)&&(_0x5b08bc['nextSibling']||_0x367039['isAtEnd']?_0x3452f8&&_0x3452f8['parent']==_0x5b08bc||(_0x3452f8=_0x5b08bc,_0x5d87c6(_0x10d7a2['previousPosition']),_0x22c904=!0x0):_0x1d374a=_0x1d374a||_0x10d7a2['previousPosition']));}function _0x5d87c6(_0x5c2b2f){const {authorId:_0xa68223}=_0x3ac555['_splitMarkerName'](_0x53dcd4['markerName']),_0x20ae09=_0x4fcc56['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b9e98,'data-author-id':_0xa68223}),_0x1c76d4=_0x4fcc56['mapper']['toViewPosition'](_0x5c2b2f);_0x424b86&&_0x3ac555['activeMarkers']['includes'](_0x53dcd4['markerName'])&&_0x4fcc56['writer']['addClass']('ck-suggestion-marker--active',_0x20ae09),_0x4fcc56['writer']['insert'](_0x1c76d4,_0x20ae09),_0x4fcc56['mapper']['bindElementToMarker'](_0x20ae09,_0x53dcd4['markerName']);}_0xd17b3f||_0x22c904||!_0x1d374a||_0x5d87c6(_0x1d374a);};}class K extends _0xa4b53f{static get['requires'](){return[_0x3bbbf9];}['init'](){const _0x4b6e22=this['editor'],_0x50f19f=_0x4b6e22['plugins']['get']('TrackChangesEditing');_0x50f19f['enableCommand']('delete');const _0x3f6d6c=_0x4b6e22['commands']['get']('deleteForward');_0x50f19f['enableCommand']('deleteForward',(_0xea0d52,_0x367fa5={})=>{const _0x3f671b=_0x4b6e22['model']['createSelection'](_0x4b6e22['model']['document']['selection']);_0x3f671b['isCollapsed']&&_0x4b6e22['model']['modifySelection'](_0x3f671b,{'direction':'forward','unit':_0x367fa5['unit']});const _0x7725bf=_0x3f671b['getFirstRange'](),_0x129a6b=_0x4f46eb['fromRange'](_0x7725bf);let _0x1aad0c;_0xea0d52(_0x367fa5),_0x1aad0c='$graveyard'==_0x129a6b['root']['rootName']?_0x4b6e22['model']['createRange'](_0x7725bf['start']):_0x4b6e22['model']['createRange'](_0x129a6b['start'],_0x129a6b['end']),_0x129a6b['detach'](),_0x4b6e22['model']['enqueueChange'](_0x3f6d6c['buffer']['batch'],_0x2fe4d8=>{_0x3f6d6c['buffer']['lock'](),_0x2fe4d8['setSelection'](_0x2fe4d8['createRange'](_0x1aad0c['end'])),_0x3f6d6c['buffer']['unlock']();});}),_0x4b6e22['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4b6e22,'merge'),{'priority':'high'}),_0x4b6e22['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4c859d,_0xcd01a2,_0x10872b)=>{_0x10872b['options']['showSuggestionHighlights']&&De(_0x4b6e22,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4c859d,_0xcd01a2,_0x10872b);},{'priority':'high'}),_0x4b6e22['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x292dc5,_0x2a27b5,_0x5120c6)=>{const _0x8318f2=_0x5120c6['mapper']['markerNameToElements'](_0x2a27b5['markerName']);if(_0x8318f2){for(const _0x4e54e4 of _0x8318f2)_0x4e54e4['is']('uiElement')&&(_0x5120c6['mapper']['unbindElementFromMarkerName'](_0x4e54e4,_0x2a27b5['markerName']),_0x5120c6['writer']['remove'](_0x4e54e4));}},{'priority':'high'});}}class W extends _0xa4b53f{['afterInit'](){const _0x4118a1=this['editor'];if(!_0x4118a1['plugins']['has']('ListEditing'))return;const _0x49e1c=_0x4118a1['locale'],_0x382fbe=_0x4118a1['plugins']['get']('TrackChangesEditing'),_0x4ad249=_0x4118a1['plugins']['has']('TodoListEditing'),_0x190871=!!_0x4118a1['config']['get']('list.multiBlock');function _0x4f5d3d(_0x5b2208){return{'type':'format','content':''+o(_0x49e1c,'*Set\x20format:*\x20%0',_0x5b2208)};}function _0x529fc9(_0x80ad4c){return{'type':'format','content':''+o(_0x49e1c,'*Remove\x20format:*\x20%0',_0x80ad4c)};}_0x382fbe['enableDefaultAttributesIntegration']('numberedList'),_0x382fbe['enableDefaultAttributesIntegration']('bulletedList'),_0x382fbe['enableDefaultAttributesIntegration']('customNumberedList'),_0x382fbe['enableDefaultAttributesIntegration']('customBulletedList'),_0x382fbe['enableDefaultAttributesIntegration']('indentList'),_0x382fbe['enableDefaultAttributesIntegration']('outdentList'),_0x382fbe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x382fbe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x382fbe['registerBlockAttribute']('listItemId'),_0x382fbe['registerBlockAttribute']('listType'),_0x382fbe['registerBlockAttribute']('listIndent'),_0x190871&&(_0x382fbe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x382fbe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4ad249&&(_0x382fbe['enableDefaultAttributesIntegration']('todoList'),_0x382fbe['enableDefaultAttributesIntegration']('checkTodoList'),_0x382fbe['registerBlockAttribute']('todoListChecked'),_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0x46f6d4=>{const {data:_0xfb201d}=_0x46f6d4;if(_0xfb201d&&'todoListChecked'==_0xfb201d['key'])return{'type':'format','content':_0xfb201d['newValue']?o(_0x49e1c,'*Check\x20item*'):o(_0x49e1c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ab683=>{if(_0x2ab683['batch']['isUndo'])return!0x1;let _0x39733c=!0x1;const _0x2e9dc3=_0x382fbe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d37b8=>'todoListChecked'===_0x382fbe['_getAttributeKey'](_0x3d37b8));for(const _0x30ff0f of _0x2e9dc3){'todo'!=_0x30ff0f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x382fbe['_findSuggestions'](_0x30ff0f['getFirstRange'](),'attribute')['find'](_0x5cedbb=>'listType'===_0x382fbe['_getAttributeKey'](_0x5cedbb['suggestion']))||(_0x2ab683['removeMarker'](_0x30ff0f['getFirstMarker']()),_0x39733c=!0x0));}return _0x39733c;})),_0x382fbe['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x49e1c,'FORMAT_INDENT'));const _0x6da670={'type':'format','content':''};_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0xcacf4c=>{const {data:_0x21cf7b}=_0xcacf4c;if(!_0x21cf7b||'listType'!=_0x21cf7b['key'])return;let _0x38fb7c=_0xcacf4c['head'];for(;_0x38fb7c;){if(_0x38fb7c['data']&&(('listStyle'==_0x38fb7c['data']['key']||'listMarkerStyle'==_0x38fb7c['data']['key'])&&(_0x38fb7c['data']['newValue']&&'default'!=_0x38fb7c['data']['newValue']||'default'!=_0x38fb7c['data']['oldValue']&&!_0x21cf7b['newValue'])||!_0x190871&&_0x38fb7c['data']['key']==m))return _0x6da670;_0x38fb7c=_0x38fb7c['next'];}if(null==_0x21cf7b['newValue'])switch(_0x21cf7b['oldValue']){case'bulleted':return _0x529fc9(o(_0x49e1c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x529fc9(o(_0x49e1c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x529fc9(o(_0x49e1c,'ELEMENT_TODO_LIST'));}switch(_0x21cf7b['newValue']){case'bulleted':return _0x4f5d3d(o(_0x49e1c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f5d3d(o(_0x49e1c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f5d3d(o(_0x49e1c,'ELEMENT_TODO_LIST'));}}),_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0x59ffdd=>{const {data:_0x5c9702}=_0x59ffdd;if(_0x5c9702&&'listIndent'==_0x5c9702['key'])return null==_0x5c9702['newValue']||null==_0x5c9702['oldValue']&&0x0==_0x5c9702['newValue']?_0x6da670:void 0x0;}),_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0x333150=>{if('attribute'!=_0x333150['type'])return;const {data:_0x13750b}=_0x333150;if(!_0x13750b||'listItemId'!=_0x13750b['key'])return;const _0x7099cf=Te(_0x333150);return'newValue'==_0x7099cf?{'type':'format','content':o(_0x49e1c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x7099cf?{'type':'format','content':o(_0x49e1c,'*Split:*\x20list\x20item')}:_0x6da670;}),_0x4118a1['model']['document']['registerPostFixer'](_0x902294=>this['listItemIdFixer'](_0x902294)),_0x4118a1['model']['document']['registerPostFixer'](_0x1f0dcb=>this['noTrackChangesFixer'](_0x1f0dcb)),_0x4118a1['model']['document']['on']('change:data',(_0x1d0e7c,_0x2f1adc)=>{if(_0x2f1adc['isUndo']||!_0x2f1adc['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6c075){if(_0x6c075['batch']['isUndo']||!_0x6c075['batch']['isLocal'])return!0x1;let _0x57dcfb=!0x1;const _0x28c061=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21952c=>_0x21952c['data']&&'listItemId'==_0x21952c['data']['key'])['filter'](_0x1d2404=>_0x1d2404['data']['newValue']&&_0x1d2404['data']['oldValue']);for(const _0x7474d0 of _0x28c061)Te(_0x7474d0)||(_0x6c075['removeMarker'](_0x7474d0['getFirstMarker']()),_0x57dcfb=!0x0);return _0x57dcfb;}['noTrackChangesFixer'](_0x3663b7){if(_0x3663b7['batch']['isUndo']||!_0x3663b7['batch']['isLocal'])return!0x1;const _0x237a78=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x237a78['trackChangesCommand']['value'])return!0x1;let _0x189428=!0x1;const _0x233441=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xea46d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x17c94a=>'attribute'==_0x17c94a['type'])['filter'](_0x34fa57=>_0x233441['includes'](_0x34fa57['attributeKey']));if(0x0==_0xea46d1['length'])return _0x189428;for(const _0x19eaae of _0xea46d1){const _0x4515a8=_0x237a78['_findSuggestions'](_0x19eaae['range'],'attribute')['filter'](_0x48e762=>!_0x48e762['meta']['isNextTo'])['map'](_0x2a7f68=>_0x2a7f68['suggestion'])['filter'](_0x23ac85=>{const _0x1fd4f0=_0x237a78['_getAttributeKey'](_0x23ac85);return _0x233441['includes'](_0x1fd4f0);});if(_0x4515a8['length']){for(const _0x31c5d8 of _0x4515a8)_0x3663b7['removeMarker'](_0x31c5d8['getFirstMarker']());_0x189428=!0x0;}}return _0x189428;}['assureChains'](){const _0x588102=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29e613=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x17942e;const _0x4c8f41=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x371cf4=>{if(_0x371cf4['data']['oldRange']||!_0x371cf4['data']['newRange'])return null;if(!_0x371cf4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39ef17}=_0x588102['_splitMarkerName'](_0x371cf4['name']);if(!_0x588102['hasSuggestion'](_0x39ef17))return null;const _0x15b911=_0x588102['getSuggestion'](_0x39ef17);return _0x29e613['includes'](_0x15b911['data']['key']);})['map'](_0x32cc1a=>{const {id:_0x17f612}=_0x588102['_splitMarkerName'](_0x32cc1a['name']),_0x4f3250=_0x588102['getSuggestion'](_0x17f612);return _0x17942e=_0x4f3250['attributes']['groupId'],_0x4f3250['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4c8f41['size'])return;const _0x4aefbd=_0x588102['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52e2c2=>'attribute'==_0x52e2c2['type']&&_0x52e2c2['data']&&_0x29e613['includes'](_0x52e2c2['data']['key'])&&_0x52e2c2['attributes']['groupId']!=_0x17942e)['map'](_0x3259ce=>({'listItem':_0x3259ce['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3259ce['attributes']['groupId']})),_0x3edc96=new Set();for(const {groupId:_0x1c1660,listItem:_0x12a620}of _0x4aefbd)_0x4c8f41['has'](_0x12a620)&&_0x3edc96['add'](_0x1c1660);for(const _0x4d2bd7 of _0x588102['getSuggestions']())_0x3edc96['has'](_0x4d2bd7['attributes']['groupId'])&&_0x4d2bd7['setAttribute']('groupId',_0x17942e);}['_supportLegacySuggestions'](){const _0x3faa4f=this['editor'],_0x21c8b5=_0x3faa4f['locale'],_0x2760ba=_0x3faa4f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2760ba['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3c4f96,_0xcff5ba){const _0xf0794c=[];for(let _0x4f72ab of _0x3c4f96)_0x4f72ab['start']['nodeAfter']===_0x4f72ab['end']['parent']&&(_0x4f72ab=_0x3faa4f['model']['createRange'](_0x3faa4f['model']['createPositionAt'](_0x4f72ab['start']['nodeAfter'],0x0))),_0xf0794c['push'](_0x4f72ab);_0x3faa4f['model']['change'](_0x2fa9e2=>{const _0x37600d=_0x3faa4f['model']['document']['selection'],_0x2e41b7=Array['from'](_0x37600d['getRanges']())['map'](_0x4f97bd=>_0x4f46eb['fromRange'](_0x4f97bd));_0x2fa9e2['setSelection'](_0xf0794c),_0x3faa4f['commands']['get'](_0xcff5ba['commandName'])['refresh'](),_0xcff5ba['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3faa4f['execute'](_0xcff5ba['commandName'],..._0xcff5ba['commandParams']),_0x2fa9e2['setSelection'](_0x2e41b7);for(const _0x5bd996 of _0x2e41b7)_0x5bd996['detach']();});}),_0x2760ba['descriptionFactory']['registerElementLabel'](function(_0x459931){const _0x276bf8=!_0x3faa4f['model']['schema']['isObject'](_0x459931),_0x3ea004=_0x459931['previousSibling'],_0x32710b=_0x459931['nextSibling'],_0x1daece=_0x459931['getAttribute']('listItemId'),_0x169796=!_0x3ea004||_0x3ea004['getAttribute']('listItemId')!==_0x1daece,_0x371891=!_0x32710b||_0x32710b['getAttribute']('listItemId')!==_0x1daece;return _0x276bf8&&Boolean(_0x1daece)&&_0x169796&&_0x371891;},_0x24ca4e=>o(_0x21c8b5,'ELEMENT_LIST_ITEM',_0x24ca4e));}['_registerLegacyDescription'](){const _0x1effe9=this['editor'],_0x97d072=_0x1effe9['locale'];function _0x37dec4(_0x16612a){const _0x1f1042=_0x1effe9['commands']['get']('bulletedList')['value'],_0xec52f4=_0x1effe9['commands']['get']('numberedList')['value'];return'numberedList'===_0x16612a?_0x1f1042:_0xec52f4;}_0x1effe9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x21182e){if('formatBlock'!=_0x21182e['type'])return;const {data:_0xd64e1e}=_0x21182e;if(!_0xd64e1e)return;let _0x36f39b,_0x5c4caf,_0x5a8ea4,_0x58f031;switch(_0xd64e1e['commandName']){case'bulletedList':_0x5a8ea4=_0xd64e1e['commandParams'][0x0]['forceValue'],_0x58f031=_0x37dec4(_0xd64e1e['commandName']),_0x36f39b=_0x5a8ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58f031&&_0x1effe9['config']['get']('list.multiBlock')||(_0x36f39b='*Change\x20to:*\x20%0'),_0x5c4caf={'type':'format','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a8ea4=_0xd64e1e['commandParams'][0x0]['forceValue'],_0x58f031=_0x37dec4(_0xd64e1e['commandName']),_0x36f39b=_0x5a8ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58f031&&_0x1effe9['config']['get']('list.multiBlock')||(_0x36f39b='*Change\x20to:*\x20%0'),_0x5c4caf={'type':'format','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36f39b='*Indent:*\x20%0',_0x5c4caf={'type':'format','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36f39b=function(_0x286e2d){const _0x4b1281=_0x286e2d['getFirstRange']();let _0x584c0a=_0x4b1281['start']['nodeAfter'];for(;_0x584c0a&&_0x4b1281['containsItem'](_0x584c0a);){if(_0x584c0a['getAttribute']('listIndent')>0x0)return!0x1;_0x584c0a=_0x584c0a['nextSibling'];}return!0x0;}(_0x21182e)?o(_0x97d072,'*Format:*\x20remove\x20from\x20%0',o(_0x97d072,function(_0x3e80c7){return'ELEMENT_'+_0x3e80c7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x21182e))):o(_0x97d072,'*Outdent:*\x20%0',o(_0x97d072,'ELEMENT_LIST_ITEM')),_0x5c4caf={'type':'format','content':_0x36f39b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xd64e1e['multipleBlocks']&&(_0x36f39b='*Merge:*\x20%0',_0x5c4caf={'type':'deletion','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_LIST_ITEM'))});}return _0x5c4caf;});}}function Te(_0x477a91){let _0x38b393=_0x477a91['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38b393;){const _0x53aff1=_0x38b393['getAttribute']('listItemId');if(!_0x53aff1)return!0x1;if(_0x53aff1==_0x477a91['data']['newValue'])return'newValue';if(_0x53aff1==_0x477a91['data']['oldValue'])return'oldValue';_0x38b393=_0x38b393['previousSibling'];}return!0x1;}class Se extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x27e85c=this['editor']['config']['get']('list.properties'),_0x2fa434=this['editor']['plugins']['get']('TrackChangesEditing');_0x27e85c['styles']&&(_0x2fa434['enableDefaultAttributesIntegration']('listStyle'),_0x2fa434['registerBlockAttribute']('listStyle')),_0x27e85c['reversed']&&(_0x2fa434['enableDefaultAttributesIntegration']('listReversed'),_0x2fa434['registerBlockAttribute']('listReversed')),_0x27e85c['startIndex']&&(_0x2fa434['enableDefaultAttributesIntegration']('listStart'),_0x2fa434['registerBlockAttribute']('listStart'));const _0x58efd5={'type':'format','content':''};_0x2fa434['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x57bad3=this['editor']['locale'];_0x2fa434['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x57bad3,'FORMAT_LIST_REVERSED')),_0x2fa434['descriptionFactory']['registerDescriptionCallback'](_0x5cfd1d=>{const {data:_0x7dc9d}=_0x5cfd1d;if(_0x7dc9d&&'listReversed'==_0x7dc9d['key'])return null==_0x7dc9d['newValue']||0x0==_0x7dc9d['newValue']&&null==_0x7dc9d['oldValue']?_0x58efd5:void 0x0;}),_0x2fa434['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x57bad3,'FORMAT_LIST_START')),_0x2fa434['descriptionFactory']['registerDescriptionCallback'](_0x442c41=>{const {data:_0x35bc21}=_0x442c41;if(_0x35bc21&&'listStart'==_0x35bc21['key'])return null==_0x35bc21['newValue']||0x1==_0x35bc21['newValue']&&null==_0x35bc21['oldValue']?_0x58efd5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x124356=>{if(_0x124356['batch']['isUndo'])return!0x1;let _0x2c7bf8=!0x1;const _0x4a063b=_0x2fa434['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x189189=>{const _0x84e083=_0x2fa434['_getAttributeKey'](_0x189189);return'listStart'==_0x84e083||'listReversed'==_0x84e083;});for(const _0xdda5bd of _0x4a063b){const _0x444cc2=_0xdda5bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x444cc2||'customNumbered'==_0x444cc2)continue;_0x2fa434['_findSuggestions'](_0xdda5bd['getFirstRange'](),'attribute')['find'](_0x3ff693=>'listType'==_0x2fa434['_getAttributeKey'](_0x3ff693['suggestion']))||(_0x124356['removeMarker'](_0xdda5bd['getFirstMarker']()),_0x2c7bf8=!0x0);}return _0x2c7bf8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4556c5){const _0xb81ca7=this['editor']['locale'],{data:_0x47705e}=_0x4556c5,_0x205acb={'type':'format','content':''};if(!_0x47705e||'listStyle'!=_0x47705e['key'])return;if(!_0x47705e['oldValue'])return'default'==_0x47705e['newValue']?_0x205acb:{'type':'format','content':''+o(_0xb81ca7,'*Set\x20format:*\x20%0',o(_0xb81ca7,this['_getTranslationKeyForListStyle'](_0x47705e['newValue'])))};if(!_0x47705e['newValue']){if('default'==_0x47705e['oldValue'])return _0x205acb;let _0x48ed6e=_0x4556c5['head'];for(;_0x48ed6e;){if(_0x48ed6e['data']&&'listType'==_0x48ed6e['data']['key']&&_0x48ed6e['data']['newValue'])return _0x205acb;_0x48ed6e=_0x48ed6e['next'];}return{'type':'format','content':''+o(_0xb81ca7,'*Remove\x20format:*\x20%0',o(_0xb81ca7,this['_getTranslationKeyForListStyle'](_0x47705e['oldValue'])))};}if('default'!=_0x47705e['newValue'])return{'type':'format','content':''+o(_0xb81ca7,'*Set\x20format:*\x20%0',o(_0xb81ca7,this['_getTranslationKeyForListStyle'](_0x47705e['newValue'])))};let _0x64fbe9=_0x4556c5['head'];for(;_0x64fbe9;){if(_0x64fbe9['data']&&'listType'==_0x64fbe9['data']['key']&&_0x64fbe9['data']['newValue']&&_0x64fbe9['data']['oldValue'])return _0x205acb;_0x64fbe9=_0x64fbe9['next'];}return{'type':'format','content':o(_0xb81ca7,'*Set\x20format:*\x20%0',o(_0xb81ca7,'ELEMENT_'+_0x4556c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x497c57=this['editor'],_0x58f3b4=_0x497c57['locale'];_0x497c57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50fd9c=>{if('formatBlock'!=_0x50fd9c['type'])return;const {data:_0x1b3bb0}=_0x50fd9c;if(!_0x1b3bb0)return;let _0x8aafc7,_0x2d71ee;switch(_0x1b3bb0['commandName']){case'listStyle':_0x8aafc7='*Change\x20to:*\x20%0',_0x2d71ee={'type':'format','content':o(_0x58f3b4,_0x8aafc7,o(_0x58f3b4,this['_getTranslationKeyForListStyle'](_0x1b3bb0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8aafc7=_0x1b3bb0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d71ee={'type':'format','content':o(_0x58f3b4,_0x8aafc7)};break;case'listStart':_0x8aafc7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d71ee={'type':'format','content':o(_0x58f3b4,_0x8aafc7,_0x1b3bb0['commandParams'][0x0]['startIndex'])};}return _0x2d71ee;});}['_getTranslationKeyForListStyle'](_0xcba927){return'ELEMENT_'+function(_0x31f3c4){if(_e['includes'](_0x31f3c4))return'bulleted';if(Re['includes'](_0x31f3c4))return'numbered';return null;}(_0xcba927)['toUpperCase']()+'_LIST_'+_0xcba927['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xa4b53f{['afterInit'](){const _0x1b333c=this['editor'];_0x1b333c['commands']['get']('emoji')&&_0x1b333c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xa4b53f{static get['requires'](){return[_0x30a68b];}['init'](){const _0xecd9c2=this['editor'],_0xc375f7=_0xecd9c2['plugins']['get']('TrackChangesEditing'),_0x5ab5f6=_0xecd9c2['commands']['get']('enter');_0xc375f7['enableCommand']('enter',()=>{_0xecd9c2['model']['change'](_0x3bf6f2=>{const _0x469cfe=_0xecd9c2['model']['document']['selection'],_0x62f7ae=_0x469cfe['getFirstPosition'](),_0x3f32fd=_0x4f46eb['fromRange'](_0x469cfe['getFirstRange']());if(_0x5ab5f6['enterBlock'](_0x3bf6f2)){const _0x465bc6=_0xecd9c2['model']['createPositionAt'](_0x62f7ae['parent']['nextSibling'],0x0),_0xcd7f96=_0x3bf6f2['createRange'](_0x62f7ae,_0x465bc6);_0xc375f7['markInsertion'](_0xcd7f96);}else _0x3bf6f2['setSelection'](_0x3bf6f2['createRange'](_0x3f32fd['end']));_0x3f32fd['detach'](),_0x5ab5f6['fire']('afterExecute',{'writer':_0x3bf6f2});});}),_0xecd9c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xecd9c2,'split'),{'priority':'high'}),_0xecd9c2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20becd,_0x56c982,_0x22275b)=>{const _0x54a20b=_0x22275b['mapper']['markerNameToElements'](_0x56c982['markerName']);if(_0x54a20b){for(const _0x3204fe of _0x54a20b)_0x3204fe['hasClass']('ck-suggestion-marker-split')&&(_0x22275b['mapper']['unbindElementFromMarkerName'](_0x3204fe,_0x56c982['markerName']),_0x22275b['writer']['remove'](_0x3204fe));}},{'priority':'high'}),_0xecd9c2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b3fd2,_0x18ddd6,_0x59a3af)=>{_0x59a3af['options']['showSuggestionHighlights']&&De(_0xecd9c2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b3fd2,_0x18ddd6,_0x59a3af);},{'priority':'high'});}}class Z extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x47b9a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x47b9a2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x47b9a2['enableCommand']('findNext'),_0x47b9a2['enableCommand']('findPrevious'),_0x47b9a2['enableCommand']('replace'),_0x47b9a2['enableCommand']('replaceAll');}['handleFindCommand'](_0x2f8e93,_0xc49a4a,_0x25a30b={}){const _0x337c2b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2f8e93(_0x559ca7=>{let _0x24651a=('string'==typeof _0xc49a4a?_0x337c2b['findByTextCallback'](_0xc49a4a,_0x25a30b):_0xc49a4a)(_0x559ca7);Array['isArray'](_0x24651a)&&(_0x24651a={'results':_0x24651a,'searchText':'string'==typeof _0xc49a4a?_0xc49a4a:''});const _0x547701=_0x24651a['results']['filter'](_0x170db4=>!0x1===this['_isInDeletionRange'](_0x170db4,_0x559ca7['item']));return{..._0x24651a,'results':_0x547701};},_0x25a30b);}['_isInDeletionRange'](_0x59798a,_0x2fe349){const _0x3845b3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fe349,_0x59798a['start']),this['editor']['model']['createPositionAt'](_0x2fe349,_0x59798a['end']));for(const _0x39ea91 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3845b3['getIntersection'](_0x39ea91['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 _0xa4b53f{['afterInit'](){const _0xb5cca4=this['editor']['locale'],_0x2357f6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x33f82b,commandName:_0x204921}of ro)this['editor']['plugins']['has'](_0x33f82b)&&(_0x2357f6['enableDefaultAttributesIntegration'](_0x204921),_0x2357f6['registerInlineAttribute'](_0x204921));_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xb5cca4,'FORMAT_FONT_SIZE')),_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xb5cca4,'FORMAT_FONT_FAMILY')),_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xb5cca4,'FORMAT_FONT_COLOR')),_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xb5cca4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5153e7=this['editor'],_0x374170=_0x5153e7['locale'];_0x5153e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4631d=>{const _0x47fe03=_0x374170['t'];if('formatInline'!=_0xd4631d['type'])return;const {data:_0x4794f2}=_0xd4631d;if(null!=_0x4794f2){if('fontSize'==_0x4794f2['commandName']){const _0x37d9ed=_0x4794f2['commandParams'][0x0]['value'];if(_0x37d9ed){const _0x325b7c=_0x47fe03(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3d140e=>_0x3d140e['model']==_0x37d9ed)['title'])['toLowerCase']();return{'type':'format','content':o(_0x374170,'*Set\x20font\x20size:*\x20%0',_0x325b7c)};}return{'type':'format','content':o(_0x374170,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4794f2['commandName']){const _0x49c72e=_0x4794f2['commandParams'][0x0]['value'];return _0x49c72e?{'type':'format','content':o(_0x374170,'*Set\x20font\x20family:*\x20%0',_0x49c72e)}:{'type':'format','content':o(_0x374170,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4794f2['commandName']){const _0xaeb521=_0x4794f2['commandParams'][0x0]['value'];if(_0xaeb521){const _0x1682d9=_0x3e4cac(this['editor']['config']['get']('fontColor.colors'))['find'](_0x18daf6=>_0x18daf6['model']==_0xaeb521);let _0x5934d0=_0xaeb521,_0x2c6607='';return _0x1682d9&&(_0x5934d0=_0x1682d9['label'],_0x2c6607=_0x47fe03(_0x5934d0)['toLowerCase']()),{'type':'format','content':o(_0x374170,'*Set\x20font\x20color:*\x20%0',_0x2c6607)['trim'](),'color':{'value':_0xaeb521,'title':_0x2c6607||_0x5934d0}};}return{'type':'format','content':o(_0x374170,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4794f2['commandName']){const _0x140b3f=_0x4794f2['commandParams'][0x0]['value'];if(_0x140b3f){const _0x38eddc=_0x3e4cac(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3a54e9=>_0x3a54e9['model']==_0x140b3f);let _0x1f9366=_0x140b3f,_0x2cfe35='';return _0x38eddc&&(_0x1f9366=_0x38eddc['label'],_0x2cfe35=_0x47fe03(_0x1f9366)['toLowerCase']()),{'type':'format','content':o(_0x374170,'*Set\x20font\x20background\x20color:*\x20%0',_0x2cfe35)['trim'](),'color':{'value':_0x140b3f,'title':_0x2cfe35||_0x1f9366}};}return{'type':'format','content':o(_0x374170,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0xa4b53f{['afterInit'](){const _0x5e55e2=this['editor'],_0x4cf8c2=_0x5e55e2['plugins']['get']('TrackChangesEditing'),_0x3c6908=_0x5e55e2['commands']['get']('copyFormat'),_0x4905d5=_0x5e55e2['commands']['get']('pasteFormat');_0x3c6908&&_0x4905d5&&(_0x4cf8c2['enableDefaultAttributesIntegration']('pasteFormat'),_0x4cf8c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5608df=this['editor'],_0x3057c8=_0x5608df['locale'];_0x5608df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18d565=>{if('formatBlock'!=_0x18d565['type']&&'formatInline'!=_0x18d565['type'])return;const {data:_0x5001df}=_0x18d565;if(_0x5001df&&'pasteFormat'===_0x5001df['commandName']){const _0x52af15=[],_0x5493f6=_0x5001df['commandParams'][0x0];for(const [_0x2d60a1,_0x168a2d]of Object['entries'](_0x5493f6))_0x52af15['push'](so(_0x5608df,_0x2d60a1,_0x168a2d));return _0x52af15['length']?{'type':'format','content':o(_0x3057c8,'*Set\x20format\x20to:*\x20%0',_0x52af15['join'](',\x20'))}:{'type':'format','content':o(_0x3057c8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4b6f55,_0x76d578,_0x38a76d){const _0x5a1fdd=_0x4b6f55['locale']['t'],_0x22b5b0=_0x76d578['split'](/(?=[A-Z])/)['join']('\x20'),_0x4ff8cf=_0x5a1fdd(_0x22b5b0['charAt'](0x0)['toUpperCase']()+_0x22b5b0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x38a76d)return _0x4ff8cf;if('fontColor'===_0x76d578||'fontBackgroundColor'===_0x76d578){const _0x53ecd3=_0x3e4cac(_0x4b6f55['config']['get']('fontColor.colors'))['find'](_0x187079=>_0x187079['model']==_0x38a76d);return _0x4ff8cf+'\x20('+(_0x53ecd3?_0x5a1fdd(_0x53ecd3['label'])['toLowerCase']():_0x38a76d)+')';}if('fontSize'===_0x76d578&&isNaN(parseFloat(_0x38a76d))){const _0x1bf051=_0x4b6f55['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4b6f55['config']['get']('fontSize.options'))['find'](_0x30f17c=>_0x30f17c['model']==_0x38a76d);return _0x4ff8cf+'\x20('+(_0x1bf051?_0x5a1fdd(_0x1bf051['title'])['toLowerCase']():_0x38a76d)+')';}return _0x4ff8cf+'\x20('+_0x38a76d+')';}class it extends _0xa4b53f{['_headingOptions'];['afterInit'](){const _0x418cdc=this['editor'];if(!_0x418cdc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x418cdc['config']['get']('heading.options');const _0x7d38d5=_0x418cdc['locale'],_0x4c6ee2=_0x418cdc['plugins']['get']('TrackChangesEditing');_0x4c6ee2['enableDefaultAttributesIntegration']('heading');for(const _0x6a1a2a of this['_headingOptions'])'paragraph'!=_0x6a1a2a['model']&&_0x4c6ee2['descriptionFactory']['registerElementLabel'](_0x6a1a2a['model'],_0x2fb5a4=>{const _0x333e59=this['_getHeadingLevel'](_0x6a1a2a['model']);return null!==_0x333e59?_0x176b37(_0x2fb5a4,_0x333e59):_0x200822(_0x2fb5a4,_0x6a1a2a['title']);});function _0x176b37(_0x534b58,_0x4b9e51){return o(_0x7d38d5,'ELEMENT_HEADING',[_0x534b58,_0x4b9e51]);}function _0x200822(_0x4bab0f,_0x3becef){return o(_0x7d38d5,'ELEMENT_HEADING_CUSTOM',[_0x4bab0f,_0x3becef]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7293a6=this['editor'],_0x55f383=_0x7293a6['locale'];function _0x329961(_0x23f293,_0x33b24f){return o(_0x55f383,'ELEMENT_HEADING_CUSTOM',[_0x23f293,_0x33b24f]);}_0x7293a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33bbf1=>{if('formatBlock'!=_0x33bbf1['type'])return;const {data:_0x3e112e}=_0x33bbf1;if(_0x3e112e&&'heading'==_0x3e112e['commandName']){const _0x561530=_0x3e112e['commandParams'][0x0]['value'],_0x3fe186=this['_getHeadingLevel'](_0x561530);if(null!==_0x3fe186)return{'type':'format','content':o(_0x55f383,'*Change\x20to:*\x20%0',(_0x3a21b7=0x1,_0x4c3483=_0x3fe186,o(_0x55f383,'ELEMENT_HEADING',[_0x3a21b7,_0x4c3483])))};const _0x4259fc=this['_headingOptions']['find'](_0x129013=>_0x129013['model']===_0x561530)['title'];return{'type':'format','content':o(_0x55f383,'*Change\x20to:*\x20%0',_0x329961(0x1,_0x4259fc))};}var _0x3a21b7,_0x4c3483;});}['_getHeadingLevel'](_0x29877a){const _0x1c97c9=_0x29877a['match'](/^heading(\d+)/);if(_0x1c97c9)return _0x1c97c9[0x1];const _0x2104a4=this['_headingOptions']?.['find'](_0x109810=>_0x109810['model']==_0x29877a);if(_0x2104a4&&_0x2104a4['view']){const _0x2c4aa0=_0x2104a4['view'],_0x5b4898=(_0x2c4aa0['name']??_0x2c4aa0)['match'](/^h(\d+)/);if(_0x5b4898)return _0x5b4898[0x1];}return null;}}class et extends _0xa4b53f{['afterInit'](){const _0x2ad346=this['editor'];if(!_0x2ad346['plugins']['has']('HighlightEditing'))return;const _0x1e7561=_0x2ad346['plugins']['get']('TrackChangesEditing'),_0x2a6c1a=_0x2ad346['locale'];_0x1e7561['enableDefaultAttributesIntegration']('highlight'),_0x1e7561['registerInlineAttribute']('highlight'),_0x1e7561['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2a6c1a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32a5fa=this['editor'],_0x4989d5=_0x32a5fa['locale'];_0x32a5fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x439552=>{if('formatInline'!=_0x439552['type'])return;const {data:_0x775c5e}=_0x439552;if(_0x775c5e&&'highlight'==_0x775c5e['commandName']){const _0x1d3008=_0x4989d5['t'],_0x5d01d0=_0x775c5e['commandParams'][0x0]['value'];if(_0x5d01d0){const _0x360bee=_0x32a5fa['config']['get']('highlight.options')['find'](_0xcbd3ed=>_0xcbd3ed['model']==_0x5d01d0),_0x4c6148=_0x1d3008(_0x360bee['title'])['toLowerCase']();return{'type':'format','content':o(_0x4989d5,'*Set\x20highlight:*\x20%0',_0x4c6148),'color':{'value':_0x360bee['color'],'title':_0x360bee['title']}};}return{'type':'format','content':o(_0x4989d5,'*Remove\x20highlight*',o(_0x4989d5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xa4b53f{['afterInit'](){const _0x156fee=this['editor'];if(!_0x156fee['plugins']['has']('HorizontalLineEditing'))return;_0x156fee['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x104408=_0x156fee['plugins']['get']('TrackChangesEditing'),_0x3dfef9=_0x156fee['locale'];_0x104408['descriptionFactory']['registerElementLabel']('horizontalLine',_0x377cb9=>o(_0x3dfef9,'ELEMENT_HORIZONTAL_LINE',_0x377cb9)),_0x156fee['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3a2d24,{writer:_0x4cd8c8,options:_0x5baea8})=>{if(!_0x5baea8['showSuggestionHighlights'])return null;const _0x3d1c46=_0x4cd8c8['createContainerElement']('div'),_0x3f44a5=_0x4cd8c8['createEmptyElement']('hr');return _0x4cd8c8['addClass']('ck-horizontal-line',_0x3d1c46),_0x4cd8c8['insert'](_0x4cd8c8['createPositionAt'](_0x3d1c46,0x0),_0x3f44a5),_0x3d1c46;},'converterPriority':'high'});}}class ot extends _0xa4b53f{['afterInit'](){const _0x2935e5=this['editor'];if(!_0x2935e5['plugins']['has']('HtmlEmbed'))return;const _0x57ae0a=_0x2935e5['plugins']['get']('TrackChangesEditing'),_0x35e0d6=_0x2935e5['locale'];_0x57ae0a['descriptionFactory']['registerElementLabel']('rawHtml',_0x11743d=>o(_0x35e0d6,'ELEMENT_HTML_EMBED',_0x11743d)),_0x57ae0a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x57ae0a['registerBlockAttribute']('value'),_0x57ae0a['descriptionFactory']['registerDescriptionCallback'](_0x3e656c=>{if('attribute'!=_0x3e656c['type'])return;const {data:_0x83abd2}=_0x3e656c;if(_0x83abd2&&'value'==_0x83abd2['key']&&_0x3e656c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x323b87=o(_0x35e0d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x35e0d6,'*Change\x20%0\x20content*',_0x323b87)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x462826=this['editor'],_0x255f6b=_0x462826['locale'];_0x462826['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33e23d=>{if('formatBlock'!=_0x33e23d['type'])return;const {data:_0x5cc5c1}=_0x33e23d;if(_0x5cc5c1&&'htmlEmbed'==_0x5cc5c1['commandName']){const _0x5568c0=o(_0x255f6b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x255f6b,'*Change\x20%0\x20content*',_0x5568c0)};}});}}class rt extends _0xa4b53f{['afterInit'](){const _0x80d26c=this['editor'];if(!_0x80d26c['plugins']['has']('ImageEditing'))return;const _0x5e8397=_0x80d26c['plugins']['get']('TrackChangesEditing'),_0x26d8c5=_0x80d26c['plugins']['get']('ImageUtils'),_0x25bb81=_0x80d26c['locale'];_0x5e8397['enableCommand']('insertImage'),_0x5e8397['descriptionFactory']['registerElementLabel']('imageBlock',_0x503f1c=>o(_0x25bb81,'ELEMENT_IMAGE',_0x503f1c)),_0x5e8397['descriptionFactory']['registerElementLabel']('imageInline',_0x50675d=>o(_0x25bb81,'ELEMENT_INLINE_IMAGE',_0x50675d)),_0x5e8397['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x25bb81,'ELEMENT_CAPTION')),_0x80d26c['plugins']['has']('ImageUploadEditing')&&_0x5e8397['enableCommand']('uploadImage'),_0x80d26c['plugins']['has']('ImageBlockEditing')&&_0x80d26c['plugins']['has']('ImageInlineEditing')&&(_0x5e8397['enableCommand']('imageTypeInline',(_0x49031a,_0x11e25b)=>{const _0x50a17e=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']);_0x80d26c['model']['change'](()=>{_0x5e8397['markBlockFormat'](_0x50a17e,{'commandName':'imageTypeInline','commandParams':[_0x11e25b]},[],'convertBlockImageToInline');});}),_0x5e8397['enableCommand']('imageTypeBlock',(_0x3f6145,_0x473d7b)=>{_0x80d26c['model']['change'](_0x4b1328=>{let _0x350543=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x2aa530=_0x4b1328['createRangeOn'](_0x350543);const _0x2ab21f=_0x38a415['fromPosition'](_0x2aa530['start'],'toPrevious'),_0x7d9188=_0x38a415['fromPosition'](_0x2aa530['end'],'toNext');_0x5e8397['forceDefaultExecution'](()=>_0x3f6145(_0x473d7b)),_0x350543=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x2aa530=_0x4b1328['createRangeOn'](_0x350543);const _0x4590c7=_0x4b1328['createRange'](_0x2ab21f,_0x7d9188);_0x2ab21f['detach'](),_0x7d9188['detach'](),_0x5e8397['markBlockFormat'](_0x350543,{'commandName':'imageTypeInline','commandParams':[_0x473d7b]},[],'convertInlineImageToBlock'),_0x4590c7['start']['isBefore'](_0x2aa530['start'])&&_0x5e8397['markInsertion'](_0x4b1328['createRange'](_0x4590c7['start'],_0x2aa530['start']),'convertInlineImageToBlock'),_0x2aa530['end']['isBefore'](_0x4590c7['end'])&&_0x5e8397['markInsertion'](_0x4b1328['createRange'](_0x2aa530['end'],_0x4590c7['end']),'convertInlineImageToBlock');});}),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e8397['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x334782])=>{const _0x15b54e=_0x5e8397['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x492632=_0x334782['start'],_0x5c6975=_0x334782['end'];const _0x55b7b8=_0x80d26c['model']['schema']['getNearestSelectionRange'](_0x492632,'backward'),_0xb360f1=_0x80d26c['model']['schema']['getNearestSelectionRange'](_0x5c6975,'forward');_0x55b7b8['isCollapsed']&&(_0x492632=_0x55b7b8['start']),_0xb360f1['isCollapsed']&&(_0x5c6975=_0xb360f1['end']),_0x15b54e([_0x80d26c['model']['createRange'](_0x492632,_0x5c6975)]);}),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x146021),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x146021)),_0x80d26c['plugins']['has']('ImageCaptionEditing')&&(_0x5e8397['enableCommand']('toggleImageCaption',(_0x45af99,_0x4be894)=>{const _0xb7e24b=_0x80d26c['plugins']['get']('ImageCaptionUtils');let _0x2297e4=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x47ebd7=_0xb7e24b['getCaptionFromImageModelElement'](_0x2297e4);_0x80d26c['model']['change'](()=>{if(_0x47ebd7)return void _0x5e8397['markDeletion'](_0x80d26c['model']['createRangeOn'](_0x47ebd7));const _0xd2abfe=_0x26d8c5['isBlockImage'](_0x2297e4);_0x45af99(_0x4be894),_0x2297e4=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x47ebd7=_0xb7e24b['getCaptionFromImageModelElement'](_0x2297e4),_0x5e8397['markInsertion'](_0x80d26c['model']['createRangeOn'](_0x47ebd7),_0xd2abfe?null:'imageCaption');});}),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x146021));const _0x195066=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x204d89(_0x19ee07,_0x216663){const _0x550c36=_0x195066['findIndex'](({type:_0x46079c,subType:_0x101162})=>_0x19ee07['type']==_0x46079c&&_0x19ee07['subType']==_0x101162),_0xd3f278=_0x195066['findIndex'](({type:_0x1e01d4,subType:_0x47f57d})=>_0x216663['type']==_0x1e01d4&&_0x216663['subType']==_0x47f57d);if(_0x550c36<0x0||_0xd3f278<0x0)return!0x1;const _0x2a36b1=_0x19ee07['getFirstRange'](),_0x44a86a=_0x216663['getFirstRange']();if((0x0==_0x550c36||0x1==_0x550c36)&&0x2==_0xd3f278&&_0x2a36b1['isIntersecting'](_0x44a86a))return!0x0;if(0x2==_0x550c36&&0x3==_0xd3f278){const _0x3d0add=_0x5e8397['_findSuggestions'](_0x2a36b1,'insertion')['filter'](({suggestion:_0x1e584a,meta:_0x3c1a06})=>_0x3c1a06['isOwn']&&'convertInlineImageToBlock'==_0x1e584a['subType']);if(_0x3d0add['length']>0x1&&_0x44a86a['end']['isEqual'](_0x2a36b1['start']))return!0x0;if(0x1==_0x3d0add['length']&&(_0x2a36b1['start']['isEqual'](_0x44a86a['end'])||_0x2a36b1['end']['isEqual'](_0x44a86a['start'])))return!0x0;}if(0x3==_0x550c36&&0x3==_0xd3f278&&_0x2a36b1['start']['isBefore'](_0x44a86a['start'])){const _0x295ef6=_0x2a36b1['end']['nodeAfter'],_0x5b8465=_0x44a86a['start']['nodeBefore'];return _0x26d8c5['isBlockImage'](_0x295ef6)&&_0x295ef6===_0x5b8465;}return!0x1;}function _0x146021(_0xa5cc45,_0x419b36){return _0x204d89(_0xa5cc45,_0x419b36)?[_0xa5cc45,_0x419b36]:_0x204d89(_0x419b36,_0xa5cc45)?[_0x419b36,_0xa5cc45]:null;}_0x80d26c['plugins']['has']('ImageResize')&&(_0x5e8397['enableDefaultAttributesIntegration']('resizeImage'),_0x5e8397['registerBlockAttribute']('resizedWidth'),_0x5e8397['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x25bb81,'FORMAT_IMAGE_SIZE'))),_0x80d26c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e8397['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e8397['registerBlockAttribute']('alt')),_0x80d26c['plugins']['has']('PictureEditing')&&(_0x5e8397['registerBlockAttribute']('sources'),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x36a9ac=>{if('attribute'!=_0x36a9ac['type'])return;const {data:_0x27f2b7}=_0x36a9ac;return _0x27f2b7&&'sources'==_0x27f2b7['key']?{'type':'format','content':''}:void 0x0;})),_0x80d26c['plugins']['has']('ImageSizeAttributes')&&(_0x5e8397['registerBlockAttribute']('width'),_0x5e8397['registerBlockAttribute']('height'),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x24bb27=>{if('attribute'!=_0x24bb27['type'])return;const {data:_0x5d73fa}=_0x24bb27;return!_0x5d73fa||'width'!=_0x5d73fa['key']&&'height'!=_0x5d73fa['key']?void 0x0:{'type':'format','content':''};})),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x5ee743=>{if(!!_0x195066['find'](({type:_0x2e97ca,subType:_0x4b5659})=>_0x5ee743['type']==_0x2e97ca&&_0x5ee743['subType']==_0x4b5659))return _0x5ee743['previous']?{}:void 0x0;}),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0xbb9e7c=>{if('insertion'==_0xbb9e7c['type']||'deletion'==_0xbb9e7c['type']){const _0x59f1ed=_0xbb9e7c['getContainedElement']();if(_0x59f1ed&&_0x59f1ed['is']('element','caption'))return{'type':'insertion'==_0xbb9e7c['type']?'addObject':'removeObject','element':_0x59f1ed,'quantity':0x1};}}),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x10a020=>'formatBlock'==_0x10a020['type']&&'convertInlineImageToBlock'==_0x10a020['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x10a020['type']&&'convertBlockImageToInline'==_0x10a020['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x40b703=>{if('attribute'!=_0x40b703['type'])return;const {data:_0x37cea9}=_0x40b703;if(!_0x37cea9||'alt'!=_0x37cea9['key'])return;const _0x20007c=_0x37cea9['newValue'];return _0x20007c?{'type':'format','content':o(_0x25bb81,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20007c+'\x22')}:{'type':'format','content':o(_0x25bb81,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1861a5=this['editor'],_0x471ab5=_0x1861a5['locale'];_0x1861a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4584c2=>{if('formatBlock'!=_0x4584c2['type']&&'formatInline'!=_0x4584c2['type'])return;const {data:_0x4e7232}=_0x4584c2;if(_0x4e7232){if('imageTextAlternative'==_0x4e7232['commandName']){const _0x1ff87e=_0x4e7232['commandParams'][0x0]['newValue'];return _0x1ff87e?{'type':'format','content':o(_0x471ab5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ff87e+'\x22')}:{'type':'format','content':o(_0x471ab5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4e7232['commandName']){const _0x16caea=_0x4e7232['commandParams'][0x0]['width'];return _0x16caea?{'type':'format','content':o(_0x471ab5,'*Set\x20image\x20width:*\x20%0',_0x16caea)}:{'type':'format','content':o(_0x471ab5,'*Reset\x20image\x20width*')};}}});}}class at extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x175a3b=this['editor']['locale'],_0x299bd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x299bd7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x299bd7['registerBlockAttribute']('src'),_0x299bd7['descriptionFactory']['registerDescriptionCallback'](_0x2e900c=>{if('attribute'!=_0x2e900c['type'])return;const {data:_0x58a0c9}=_0x2e900c;return _0x58a0c9&&'src'==_0x58a0c9['key']?_0x58a0c9['newValue']&&_0x58a0c9['oldValue']?{'type':'format','content':o(_0x175a3b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c2c7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c2c7d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1c2c7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c2c7d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1c2c7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x261c22=this['editor'],_0x264055=_0x261c22['locale'];_0x261c22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28bfb4=>{if('formatBlock'!=_0x28bfb4['type']&&'formatInline'!=_0x28bfb4['type'])return;const {data:_0x478318}=_0x28bfb4;if(!_0x478318||'replaceImageSource'!=_0x478318['commandName'])return;return{'type':'format','content':o(_0x264055,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xa4b53f{['afterInit'](){const _0x590bd2=this['editor'];if(!_0x590bd2['plugins']['has']('ImageStyleEditing'))return;const _0x1f19e2=_0x590bd2['plugins']['get']('TrackChangesEditing'),_0x54fe54=_0x590bd2['plugins']['get']('ImageUtils'),_0x472cb6={};_0x1f19e2['enableCommand']('imageStyle',(_0x326c41,_0x186293)=>{const _0x1e8abd=_0x590bd2['plugins']['get']('Users')['me'],_0x368a92=_0x590bd2['commands']['get']('imageStyle');let _0x373190=_0x54fe54['getClosestSelectedImageElement'](_0x590bd2['model']['document']['selection']),_0x2872f6=_0x590bd2['model']['createRangeOn'](_0x373190),_0x187953=_0x368a92['value'];if(_0x187953==_0x186293['value'])return;const _0x3eb525={'commandName':'imageStyle','commandParams':[_0x186293],'formatGroupId':_0xf688c7()};_0x590bd2['model']['change'](()=>{if(_0x1f19e2['getSuggestions']()['filter'](_0x2fb1b1=>_0x2fb1b1['isInContent']&&_0x1e8abd==_0x2fb1b1['author']&&('formatBlock'==_0x2fb1b1['type']||'formatInline'==_0x2fb1b1['type'])&&('imageStylePreApply'==_0x2fb1b1['subType']||'imageStylePostApply'==_0x2fb1b1['subType'])&&_0x2fb1b1['getFirstRange']()['isEqual'](_0x2872f6))['forEach'](_0x1eda7a=>_0x1f19e2['discardSuggestion'](_0x1eda7a['head'])),_0x373190=_0x54fe54['getClosestSelectedImageElement'](_0x590bd2['model']['document']['selection']),_0x2872f6=_0x590bd2['model']['createRangeOn'](_0x373190),_0x368a92['refresh'](),_0x590bd2['commands']['get']('imageTypeInline')['refresh'](),_0x590bd2['commands']['get']('imageTypeBlock')['refresh'](),_0x187953=_0x368a92['value'],_0x187953!=_0x186293['value'])return _0x54fe54['isInlineImage'](_0x373190)&&_0x368a92['shouldConvertImageType'](_0x186293['value'],_0x373190)?(_0x326c41({..._0x186293,'setImageSizes':!0x1}),_0x373190=_0x54fe54['getClosestSelectedImageElement'](_0x590bd2['model']['document']['selection']),void _0x1f19e2['markBlockFormat'](_0x373190,{..._0x3eb525,'commandReversedParams':[{'value':_0x187953||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54fe54['isBlockImage'](_0x373190)?_0x1f19e2['markBlockFormat'](_0x373190,_0x3eb525,[],'imageStylePostApply'):_0x1f19e2['markInlineFormat'](_0x2872f6,_0x3eb525,'imageStylePostApply'));});});for(const _0x58a884 of _0x590bd2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x472cb6[_0x58a884['name']]=_0x58a884['title']['toLowerCase']();_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x38996b])=>{_0x54fe54['setImageNaturalSizeAttributes'](_0x38996b['getContainedElement']());}),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x17b7fa,_0x218290)=>{_0x1f19e2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x17b7fa,{'commandName':_0x218290['commandName'],'commandParams':_0x218290['commandReversedParams']});}),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x22e17d,_0x4cb271){if(_0x4d9041(_0x22e17d,_0x4cb271))return[_0x22e17d,_0x4cb271];if(_0x4d9041(_0x4cb271,_0x22e17d))return[_0x4cb271,_0x22e17d];return null;});const _0x56763f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d9041(_0x2f7543,_0x80a30f){const _0x1054b4=_0x56763f['findIndex'](({type:_0x54b2a7,subType:_0x11f7bf})=>_0x2f7543['type']==_0x54b2a7&&_0x2f7543['subType']==_0x11f7bf),_0x580763=_0x56763f['findIndex'](({type:_0x32496f,subType:_0x6e284e})=>_0x80a30f['type']==_0x32496f&&_0x80a30f['subType']==_0x6e284e);if(_0x1054b4<0x0||_0x580763<0x0)return!0x1;const _0x2939f3=_0x2f7543['getFirstRange'](),_0x2d13f=_0x80a30f['getFirstRange']();if((0x0==_0x1054b4||0x1==_0x1054b4)&&0x2==_0x580763&&_0x2939f3['isIntersecting'](_0x2d13f))return!0x0;if(0x2==_0x1054b4&&0x3==_0x580763){const _0x399902=_0x1f19e2['_findSuggestions'](_0x2939f3,'insertion')['filter'](({suggestion:_0x40aee0,meta:_0x3efb98})=>_0x3efb98['isOwn']&&'convertInlineImageToBlock'==_0x40aee0['subType']);if(_0x399902['length']>0x1&&_0x2d13f['end']['isEqual'](_0x2939f3['start']))return!0x0;if(0x1==_0x399902['length']&&(_0x2939f3['start']['isEqual'](_0x2d13f['end'])||_0x2939f3['end']['isEqual'](_0x2d13f['start'])))return!0x0;}if(0x3==_0x1054b4&&0x3==_0x580763&&_0x2939f3['start']['isBefore'](_0x2d13f['start'])){const _0x21af37=_0x2939f3['end']['nodeAfter'],_0x35125b=_0x2d13f['start']['nodeBefore'];return _0x54fe54['isBlockImage'](_0x21af37)&&_0x21af37===_0x35125b;}return!0x1;}_0x590bd2['model']['document']['registerPostFixer'](()=>{let _0x4081dc=!0x1;const _0x153e85=Array['from'](_0x590bd2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32fd97,data:_0x125082}of _0x153e85){const {group:_0x4b5af7,type:_0x278b31,subType:_0x3fa4d0,id:_0x3248e0}=_0x1f19e2['_splitMarkerName'](_0x32fd97);if('suggestion'==_0x4b5af7&&_0x1f19e2['hasSuggestion'](_0x3248e0)){if('formatBlock'==_0x278b31&&('imageStylePreApply'==_0x3fa4d0||'imageStylePostApply'==_0x3fa4d0)){const _0x8830c0=_0x1f19e2['getSuggestion'](_0x3248e0);if(_0x125082['newRange']){const _0xaa4e40=_0x8830c0['getFirstRange']()['getContainedElement']();if(_0x54fe54['isBlockImage'](_0xaa4e40))continue;_0x1f19e2['discardSuggestion'](_0x8830c0),_0x4081dc=!0x0;}}if('insertion'==_0x278b31&&'imageCaption'==_0x3fa4d0&&!_0x125082['newRange']){const _0x3b16d0=_0x1f19e2['getSuggestion'](_0x3248e0);_0x3b16d0['next']&&_0x3b16d0['next']['isInContent']&&(_0x1f19e2['discardSuggestion'](_0x3b16d0['next']),_0x4081dc=!0x0);}}}return _0x4081dc;}),this['_registerLegacyDescription'](_0x472cb6);}['_registerLegacyDescription'](_0x52f8eb){const _0xbd73c2=this['editor'],_0x221425=_0xbd73c2['locale'];_0xbd73c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed61c=>{if('formatBlock'!=_0x3ed61c['type']&&'formatInline'!=_0x3ed61c['type'])return;const {data:_0x5aee55}=_0x3ed61c;if(!_0x5aee55||'imageStyle'!=_0x5aee55['commandName'])return;const _0x3fd4bb=_0x5aee55['commandParams'][0x0]['value'];return _0x3b9c76('side'===_0x3fd4bb?o(_0x221425,'FORMAT_SIDE_IMAGE'):_0x52f8eb[_0x3fd4bb]||_0x3fd4bb);function _0x3b9c76(_0x19bbaf){return{'type':'format','content':o(_0x221425,'*Format:*\x20%0',_0x19bbaf)};}});}}class ut extends _0xa4b53f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5be19a){super(_0x5be19a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4ce58d=this['editor'],_0x4c7c5c=_0x4ce58d['commands']['get']('importWord'),_0x2587e5=_0x4ce58d['commands']['get']('trackChanges');_0x4c7c5c&&(_0x4c7c5c['on']('execute',(_0x9a53a9,[,_0x3b118c])=>{this['_trackChangesValueDuringImport']=_0x2587e5['value'],_0x3b118c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c7c5c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c7c5c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2587e5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4ce58d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x14f891,_0x1d7d54){const {suggestions:_0xca37da}=_0x1d7d54,_0x41ad9f=this['editor']['commands']['get']('trackChanges'),_0x314597=_0x41ad9f['value'];this['_trackChangesValueDuringImport']!==_0x314597&&(_0x41ad9f['execute'](),this['_trackChangesExecuted']=!0x0),_0xca37da&&_0xca37da['forEach'](({id:_0x3e7cdf,type:_0x3d460e,author:_0x26bc59,created_at:_0x4f8d48})=>{const _0x309c5d={'id':_0x3e7cdf,'type':_0x3d460e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26bc59,'createdAt':_0x4f8d48?new Date(_0x4f8d48):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x309c5d);});}}class ft extends _0xa4b53f{['afterInit'](){const _0x241663=this['editor'],_0xa9919d=_0x241663['plugins']['get']('TrackChangesEditing');if(_0x241663['plugins']['has']('IndentEditing')&&(_0xa9919d['enableCommand']('indent'),_0xa9919d['enableCommand']('outdent')),_0x241663['plugins']['has']('IndentBlock')){for(const _0x35a5f9 of['indentBlock','outdentBlock'])_0xa9919d['enableDefaultAttributesIntegration'](_0x35a5f9);}const _0x94c6bb=_0x241663['locale'];_0xa9919d['registerBlockAttribute']('blockIndent'),_0xa9919d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x94c6bb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9abc85=this['editor'],_0x4cdaef=_0x9abc85['locale'],_0x466032=_0x9abc85['plugins']['get']('TrackChangesEditing');_0x466032['descriptionFactory']['registerDescriptionCallback'](_0x20039d=>{if('formatBlock'!=_0x20039d['type'])return;const {data:_0x474e92}=_0x20039d;if(!_0x474e92)return;if('indentBlock'!=_0x474e92['commandName']&&'outdentBlock'!=_0x474e92['commandName'])return;const _0x31934d=_0x20039d['getItems']()[0x0],_0xbb2301=_0x466032['descriptionFactory']['getItemLabel'](_0x31934d);return'indentBlock'==_0x474e92['commandName']?{'type':'format','content':o(_0x4cdaef,'*Indent:*\x20%0',_0xbb2301)}:'outdentBlock'==_0x474e92['commandName']?{'type':'format','content':o(_0x4cdaef,'*Outdent:*\x20%0',_0xbb2301)}:void 0x0;});}}class ht extends _0xa4b53f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xa4b53f{['afterInit'](){const _0x4ae21a=this['editor'];if(!_0x4ae21a['plugins']['has']('LinkEditing'))return;const _0x16514a=_0x4ae21a['plugins']['get']('TrackChangesEditing'),_0x33baa5=_0x4ae21a['commands']['get']('link');_0x16514a['enableDefaultAttributesIntegration']('link'),_0x16514a['enableDefaultAttributesIntegration']('unlink'),_0x16514a['registerInlineAttribute']('linkHref');for(const _0xcc385a of _0x33baa5['manualDecorators'])_0x16514a['registerInlineAttribute'](_0xcc385a['id']),_0x16514a['descriptionFactory']['registerAttributeLabel'](_0xcc385a['id'],'link\x20('+_0xcc385a['label']['toLowerCase']()+')');_0x16514a['descriptionFactory']['registerDescriptionCallback'](_0x52d337=>{if('attribute'!=_0x52d337['type'])return;const {data:_0x5e61fe}=_0x52d337;if(!_0x5e61fe||'linkHref'!=_0x5e61fe['key'])return;const _0x115935=_0x5e61fe['newValue'],_0x3d09b3=_0x4ae21a['locale'];return{'type':'format','content':null==_0x115935?o(_0x3d09b3,'*Remove\x20link*'):o(_0x3d09b3,'*Set\x20link:*\x20%0','\x22'+_0x115935+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4829f0=this['editor'],_0x1e57ed=_0x4829f0['locale'];_0x4829f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe2ed31=>{if('formatInline'!=_0xe2ed31['type'])return;const {data:_0x70f096}=_0xe2ed31;if(_0x70f096){if('link'==_0x70f096['commandName']){const _0xeaab32=_0x70f096['commandParams'][0x0];return{'type':'format','content':o(_0x1e57ed,'*Set\x20link:*\x20%0','\x22'+_0xeaab32+'\x22')};}return'unlink'==_0x70f096['commandName']?{'type':'format','content':o(_0x1e57ed,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xa4b53f{['afterInit'](){const _0x481b52=this['editor'],_0x145324=_0x481b52['locale'];if(!_0x481b52['plugins']['has']('LegacyListEditing'))return;const _0x36f11e=_0x481b52['plugins']['get']('TrackChangesEditing'),_0x5d626f=_0x481b52['plugins']['has']('LegacyTodoListEditing');function _0x121c67(_0x390f21){return()=>{const _0xb15c3b=_0x481b52['model']['document']['selection'],_0x2fc83c=_0x481b52['commands']['get'](_0x390f21);if(_0x2fc83c['value'])return void _0x481b52['execute']('paragraph',{});const _0x550b3d=_0x390f21['slice'](0x0,-0x4),_0x43f8c4=function(_0x57fcd2,_0x15dc30,_0x26da32){let _0x581a69=Array['from'](_0x57fcd2)['filter'](_0x289887=>function(_0x20122e,_0x1912e4){return _0x1912e4['checkChild'](_0x20122e['parent'],'listItem')&&!_0x1912e4['isObject'](_0x20122e);}(_0x289887,_0x26da32));_0x581a69=_0x581a69['filter'](_0x3d4101=>!_0x3d4101['is']('element','listItem')||_0x3d4101['getAttribute']('listType')!=_0x15dc30);const _0x39def6=new Set();for(const _0x1abbfa of _0x581a69)_0x1abbfa['is']('element','listItem')?_0x39def6['add'](Le(_0x1abbfa)):_0x39def6['add'](_0x1abbfa);return Array['from'](_0x39def6);}(_0xb15c3b['getSelectedBlocks'](),_0x550b3d,_0x481b52['model']['schema']);_0x481b52['model']['change'](()=>{for(const _0x255787 of _0x43f8c4)_0x36f11e['markBlockFormat'](_0x255787,{'commandName':_0x390f21,'commandParams':[{'forceValue':!_0x2fc83c['value']}],'formatGroupId':'blockName'},Ee(_0x255787));});};}function _0x546dd8(_0x1120ff){return()=>{const _0x1c66bc=function(_0xe13fc9){let _0x2218ec=Array['from'](_0xe13fc9);const _0xf4ade7=_0x2218ec['findIndex'](_0x9c224d=>'listItem'!=_0x9c224d['name']);return _0xf4ade7>-0x1&&(_0x2218ec=_0x2218ec['slice'](0x0,_0xf4ade7)),_0x2218ec;}(_0x481b52['model']['document']['selection']['getSelectedBlocks']()),_0x2c8388=_0x481b52['model']['createRange'](_0x481b52['model']['createPositionAt'](_0x1c66bc[0x0],'before'),_0x481b52['model']['createPositionAt'](_0x1c66bc[_0x1c66bc['length']-0x1],'end'));_0x481b52['model']['change'](()=>{_0x36f11e['markBlockFormat'](_0x2c8388,{'commandName':_0x1120ff,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4895d8){const _0x240d2e=new Set();for(const _0x152252 of _0x4895d8){let _0x48760d=_0x152252['nextSibling'];for(;_0x48760d&&_0x48760d['getAttribute']('listIndent')>_0x152252['getAttribute']('listIndent');)_0x240d2e['add'](_0x48760d),_0x48760d=_0x48760d['nextSibling'];}return Array['from'](_0x240d2e);}(_0x1c66bc));});};}_0x36f11e['enableCommand']('numberedList',_0x121c67('numberedList')),_0x36f11e['enableCommand']('bulletedList',_0x121c67('bulletedList')),_0x5d626f&&_0x36f11e['enableCommand']('todoList',_0x121c67('todoList')),_0x36f11e['enableCommand']('indentList',_0x546dd8('indentList')),_0x36f11e['enableCommand']('outdentList',_0x546dd8('outdentList')),_0x5d626f&&_0x36f11e['enableCommand']('checkTodoList',()=>{const _0x2f96eb=_0x481b52['commands']['get']('checkTodoList'),_0x10c0ee=Array['from'](_0x2f96eb['_selectedElements']);_0x10c0ee['filter'](_0x5442c7=>_0x5442c7['getAttribute']('todoListChecked')!=_0x2f96eb['value']),_0x481b52['model']['change'](()=>{for(const _0x1fe943 of _0x10c0ee)_0x36f11e['markBlockFormat'](_0x1fe943,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f96eb['value']}]});});}),_0x36f11e['descriptionFactory']['registerElementLabel']('listItem',_0x21543e=>o(_0x145324,'ELEMENT_LIST_ITEM',_0x21543e)),_0x36f11e['descriptionFactory']['registerDescriptionCallback'](_0x3dfa6e=>{if('formatBlock'!=_0x3dfa6e['type']&&'formatInline'!=_0x3dfa6e['type'])return;const {data:_0x1cc9c8}=_0x3dfa6e;if(_0x1cc9c8){if('numberedList'==_0x1cc9c8['commandName']||'bulletedList'==_0x1cc9c8['commandName']||'todoList'==_0x1cc9c8['commandName'])switch(_0x1cc9c8['commandName']['replace']('List','')){case'bulleted':return _0x1efdb5(o(_0x145324,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1efdb5(o(_0x145324,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1efdb5(o(_0x145324,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1cc9c8['commandName'])return{'type':'format','content':o(_0x145324,'*Indent:*\x20%0',o(_0x145324,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1cc9c8['commandName'])return{'type':'format','content':o(_0x145324,'*Outdent:*\x20%0',o(_0x145324,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1cc9c8['commandName'])return _0x1cc9c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x145324,'*Check\x20item*')}:{'type':'format','content':o(_0x145324,'*Uncheck\x20item*')};}function _0x1efdb5(_0x3a2bc7){return{'type':'format','content':o(_0x145324,'*Change\x20to:*\x20%0',_0x3a2bc7)};}});}}function Le(_0x3340a){const _0x43101f=_0x3340a['getAttribute']('listIndent');if(0x0==_0x43101f)return _0x3340a;let _0x2cc4c4=_0x3340a;for(;_0x3340a['previousSibling']&&_0x3340a['previousSibling']['is']('element','listItem');){const _0x138522=_0x3340a['previousSibling']['getAttribute']('listIndent');if(_0x138522==_0x43101f)_0x2cc4c4=_0x3340a['previousSibling'];else{if(_0x138522<_0x43101f)break;}_0x3340a=_0x3340a['previousSibling'];}return _0x2cc4c4;}function Ee(_0x2d7963){const _0x480c8a=[];if(_0x2d7963['is']('element','listItem')&&_0x2d7963['getAttribute']('listIndent')>0x0){let _0x547adf=_0x2d7963['nextSibling'];for(;_0x547adf&&'listItem'==_0x547adf['name']&&_0x547adf['getAttribute']('listIndent')==_0x2d7963['getAttribute']('listIndent');)_0x480c8a['push'](_0x547adf),_0x547adf=_0x547adf['nextSibling'];}return _0x480c8a;}class Q extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1bdc2f=this['editor']['config']['get']('list.properties'),_0x1dc768=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bdc2f['styles']&&_0x1dc768['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1bdc2f['reversed']&&_0x1dc768['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1bdc2f['startIndex']&&_0x1dc768['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1dc768['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x199be2,_0x29c814={}){const _0x1aca22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53e587=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1aca22['markMultiRangeBlockFormat'](_0x53e587,{'commandName':'listStyle','commandParams':[{'type':_0x29c814['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x939c3f,_0x216d21={}){const _0x413fc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ccfb0=this['_getSuggestionBlocks'](_0x5b098b=>_0x5b098b['is']('element','listItem')&&'numbered'===_0x5b098b['getAttribute']('listType'));if(_0x3ccfb0['length']<0x1)return;const _0x38090b=_0x3ccfb0['map'](_0x565d03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x565d03,'before'),this['editor']['model']['createPositionAt'](_0x565d03,0x0)));this['editor']['model']['change'](()=>{_0x413fc3['markMultiRangeBlockFormat'](_0x38090b,{'commandName':'listReversed','commandParams':[{'reversed':_0x216d21['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x227b8d,_0x16fe68={}){const _0x4403aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d597b=this['_getSuggestionBlocks'](_0x1ee903=>_0x1ee903['is']('element','listItem')&&'numbered'===_0x1ee903['getAttribute']('listType'));if(_0x3d597b['length']<0x1)return;const _0x864a17=_0x3d597b['map'](_0x358bf9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x358bf9,'before'),this['editor']['model']['createPositionAt'](_0x358bf9,0x0)));this['editor']['model']['change'](()=>{_0x4403aa['markMultiRangeBlockFormat'](_0x864a17,{'commandName':'listStart','commandParams':[{'startIndex':_0x16fe68['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5e4608){if('formatBlock'!=_0x5e4608['type']&&'formatInline'!=_0x5e4608['type'])return;const _0x1cf28c=this['editor']['locale'],{data:_0x8f4501}=_0x5e4608;if(!_0x8f4501)return;let _0x2ff0b2,_0xf5b690;switch(_0x8f4501['commandName']){case'listStyle':_0x2ff0b2='*Change\x20to:*\x20%0',_0xf5b690={'type':'format','content':o(_0x1cf28c,_0x2ff0b2,o(_0x1cf28c,this['_getTranslationKeyForListStyle'](_0x8f4501['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ff0b2=_0x8f4501['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf5b690={'type':'format','content':o(_0x1cf28c,_0x2ff0b2)};break;case'listStart':_0x2ff0b2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf5b690={'type':'format','content':o(_0x1cf28c,_0x2ff0b2,_0x8f4501['commandParams'][0x0]['startIndex'])};}return _0xf5b690;}['_getSuggestionBlocksForListStyle'](){const _0x1e3fac=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a6dd0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3a6dd0[0x0]?.['is']('element','listItem')&&_0x3a6dd0['unshift'](..._0x1e3fac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3a6dd0[_0x3a6dd0['length']-0x1]?.['is']('element','listItem')&&_0x3a6dd0['push'](..._0x1e3fac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3a6dd0=[...new Set(_0x3a6dd0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3a6dd0=_0x3a6dd0['filter'](_0x5e3718=>_0x5e3718['is']('element','listItem'))),_0x3a6dd0;}['_getSuggestionBlocks'](_0xb888e2){const _0x1d24b5=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ba166=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xb888e2)['map'](_0x19674a=>{const _0x19d05c=this['editor']['model']['createPositionAt'](_0x19674a,0x0);return[..._0x1d24b5['getSiblingNodes'](_0x19d05c,'backward'),..._0x1d24b5['getSiblingNodes'](_0x19d05c,'forward')];})['flat']();return _0x2ba166=[...new Set(_0x2ba166)],_0x2ba166;}['_getTranslationKeyForListStyle'](_0x37b175){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x37b175)||'default')['toUpperCase']()+'_LIST_'+_0x37b175['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xa4b53f{['afterInit'](){const _0x32bb11=this['editor'];if(!_0x32bb11['plugins']['has']('MediaEmbedEditing'))return;const _0x34edfa=_0x32bb11['plugins']['get']('TrackChangesEditing'),_0x1636a1=_0x32bb11['locale'];_0x34edfa['enableCommand']('mediaEmbed'),_0x34edfa['descriptionFactory']['registerElementLabel']('media',_0xf4091f=>o(_0x1636a1,'ELEMENT_MEDIA',_0xf4091f)),_0x32bb11['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f6645,{writer:_0x45f28a,options:_0x389c4a})=>{if(_0x389c4a['showSuggestionHighlights'])return _0x45f28a['createEmptyElement']('div');},'converterPriority':'high'}),_0x32bb11['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ab7c6,_0x514b06,_0x5a45bc)=>{_0x5a45bc['options']['showSuggestionHighlights']&&_0x3ab7c6['stop']();},{'priority':'high'});}}class pt extends _0xa4b53f{['afterInit'](){const _0x86f331=this['editor'];_0x86f331['plugins']['has']('MentionEditing')&&_0x86f331['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xa4b53f{['afterInit'](){const _0xca87f9=this['editor'];if(!_0xca87f9['plugins']['has']('MergeFieldsEditing'))return;const _0x24ec8b=_0xca87f9['plugins']['get']('TrackChangesEditing'),_0x2c24eb=_0xca87f9['locale'];_0x24ec8b['enableCommand']('insertMergeField'),_0x24ec8b['enableCommand']('insertMergeFieldBlock'),_0x24ec8b['enableCommand']('insertMergeFieldImage'),_0x24ec8b['descriptionFactory']['registerElementLabel']('mergeField',_0x16e2a6=>o(_0x2c24eb,'ELEMENT_MERGE_FIELD',_0x16e2a6)),_0x24ec8b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4509d8=>o(_0x2c24eb,'ELEMENT_MERGE_FIELD',_0x4509d8)),_0x24ec8b['descriptionFactory']['registerDescriptionCallback'](_0x1b85c7=>{if('insertion'!=_0x1b85c7['type']&&'deletion'!=_0x1b85c7['type'])return;const _0x3b6adb=_0x1b85c7['getContainedElement']();if(null==_0x3b6adb)return;const _0x52e5ea=_0xca87f9['plugins']['get']('MergeFieldsEditing');let _0x50ba91;switch(_0x52e5ea['getMergeFieldType'](_0x3b6adb)){case null:return;case'image':{const _0x4777f2=_0x52e5ea['unwrapAffixes'](_0x3b6adb['getAttribute']('src'));_0x50ba91=_0x52e5ea['getLabel'](_0x4777f2)||_0x4777f2;break;}default:{const _0x390911=_0x3b6adb['getAttribute']('id');_0x50ba91=_0x52e5ea['getLabel'](_0x390911)||_0x390911;break;}}return'insertion'==_0x1b85c7['type']?{'type':'insertion','content':o(_0x2c24eb,'*Insert:*\x20%0','\x22'+_0x50ba91+'\x22\x20'+o(_0x2c24eb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2c24eb,'*Remove:*\x20%0','\x22'+_0x50ba91+'\x22\x20'+o(_0x2c24eb,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xa4b53f{['afterInit'](){const _0x272436=this['editor'],_0xb1a142=_0x272436['plugins']['get']('TrackChangesEditing');_0x272436['plugins']['has']('MultiLevelList')&&(_0xb1a142['enableDefaultAttributesIntegration']('multiLevelList'),_0xb1a142['registerBlockAttribute']('listMarkerStyle'),_0xb1a142['descriptionFactory']['registerDescriptionCallback'](_0x416546=>this['handleDescriptions'](_0x416546)));}['handleDescriptions'](_0x3a5bdf){const _0x2e5426=this['editor']['locale'],{data:_0x2e1914}=_0x3a5bdf,_0x2a37dd={'type':'format','content':''};if(_0x2e1914&&'listMarkerStyle'==_0x2e1914['key']){if(!_0x2e1914['oldValue'])return{'type':'format','content':o(_0x2e5426,'*Set\x20format:*\x20%0',o(_0x2e5426,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1914['newValue']+')'};if(!_0x2e1914['newValue']){let _0x3d0c9c=_0x3a5bdf['head'];for(;_0x3d0c9c;){if(_0x3d0c9c['data']&&'listType'==_0x3d0c9c['data']['key']&&_0x3d0c9c['data']['newValue'])return _0x2a37dd;_0x3d0c9c=_0x3d0c9c['next'];}return{'type':'format','content':o(_0x2e5426,'*Remove\x20format:*\x20%0',o(_0x2e5426,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1914['oldValue']+')'};}}}}class bt extends _0xa4b53f{['afterInit'](){const _0x18969d=this['editor'];if(!_0x18969d['plugins']['has']('PageBreakEditing'))return;_0x18969d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4ae5cb=_0x18969d['plugins']['get']('TrackChangesEditing'),_0x71aa73=_0x18969d['locale'];_0x4ae5cb['descriptionFactory']['registerElementLabel']('pageBreak',_0x5dd5cc=>o(_0x71aa73,'ELEMENT_PAGE_BREAK',_0x5dd5cc));}}class yt extends _0xa4b53f{['afterInit'](){const _0x5a0529=this['editor'];if(!_0x5a0529['plugins']['has']('Paragraph'))return;const _0xc787c7=_0x5a0529['locale'],_0x52017b=_0x5a0529['plugins']['get']('TrackChangesEditing');_0x52017b['descriptionFactory']['registerElementLabel']('paragraph',_0x570209=>o(_0xc787c7,'ELEMENT_PARAGRAPH',_0x570209)),_0x52017b['enableDefaultAttributesIntegration']('paragraph'),_0x52017b['enableCommand']('insertParagraph'),_0x5a0529['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5a0529),{'priority':'highest'}),_0x5a0529['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28dfeb,_0x9473ab,_0x2f97bc)=>{_0x2f97bc['options']['showSuggestionHighlights']&&nr(_0x5a0529,{'showActiveMarker':!0x1})(_0x28dfeb,_0x9473ab,_0x2f97bc);},{'priority':'highest'});const _0x14541d=_0x52017b['descriptionFactory'];_0x14541d['registerDescriptionCallback'](_0x4f4463=>{if('insertion'!==_0x4f4463['type'])return;const {start:_0x448aaf,end:_0x2fe50a}=_0x4f4463['getFirstRange']();if(!_0x448aaf['isTouching'](_0x2fe50a)||!_0x448aaf['nodeAfter'])return;const _0x1d8a48=_0x5a0529['model']['schema'],_0x3b79f7=_0x448aaf['nodeAfter'];return _0x1d8a48['isBlock'](_0x3b79f7)&&!_0x1d8a48['isLimit'](_0x3b79f7)&&_0x1d8a48['checkChild'](_0x3b79f7,'$text')?{'type':'insertion','content':o(_0xc787c7,'*Insert:*\x20%0',_0x14541d['getItemLabel'](_0x3b79f7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f59c7=this['editor'],_0x2c610f=_0x5f59c7['locale'];_0x5f59c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ff505=>{if('formatBlock'!=_0x1ff505['type'])return;const {data:_0x3776fb}=_0x1ff505;return _0x3776fb&&'paragraph'==_0x3776fb['commandName']?{'type':'format','content':o(_0x2c610f,'*Change\x20to:*\x20%0',o(_0x2c610f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x137314,{showActiveMarker:_0x5f2993=!0x0}={}){return(_0x4576d9,_0x35d608,_0x338a98)=>{const _0x135e10=_0x137314['plugins']['get']('TrackChangesEditing'),_0x54cca0=_0x35d608['markerRange']['start'],_0x431c9c=_0x35d608['markerRange']['end'],_0x1d2c2a=_0x137314['model']['schema'];if(!_0x54cca0['isTouching'](_0x431c9c)||!_0x54cca0['nodeAfter'])return;const _0x509187=_0x54cca0['nodeAfter'];if(_0x1d2c2a['isBlock'](_0x509187)&&!_0x1d2c2a['isLimit'](_0x509187)&&_0x1d2c2a['checkChild'](_0x509187,'$text')){if(!_0x338a98['consumable']['consume'](_0x35d608['markerRange'],_0x4576d9['name']))return;const {authorId:_0x4ac227}=_0x135e10['_splitMarkerName'](_0x35d608['markerName']),_0x3c4774=_0x338a98['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4ac227}),_0x46b891=_0x338a98['mapper']['toViewPosition'](_0x431c9c);_0x5f2993&&_0x135e10['activeMarkers']['includes'](_0x35d608['markerName'])&&_0x338a98['writer']['addClass']('ck-suggestion-marker--active',_0x3c4774),_0x338a98['writer']['insert'](_0x46b891,_0x3c4774),_0x338a98['mapper']['bindElementToMarker'](_0x3c4774,_0x35d608['markerName']);}};}class jt extends _0xa4b53f{['afterInit'](){const _0x2673d4=this['editor'];_0x2673d4['commands']['get']('replaceSource')&&_0x2673d4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xa4b53f{['afterInit'](){const _0x3dcbff=this['editor'];if(!_0x3dcbff['plugins']['has']('RemoveFormatEditing'))return;_0x3dcbff['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe9506d=this['editor'];_0xe9506d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x392a9d=>{if('formatBlock'!=_0x392a9d['type']&&'formatInline'!=_0x392a9d['type'])return;const {data:_0x34a892}=_0x392a9d;return _0x34a892&&'removeFormat'==_0x34a892['commandName']?{'type':'format','content':o(_0xe9506d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xa4b53f{['afterInit'](){const _0x49173c=this['editor'];if(!_0x49173c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x421716=_0x49173c['plugins']['get']('TrackChangesEditing');_0x421716['enableCommand']('goToPreviousRestrictedEditingException'),_0x421716['enableCommand']('goToNextRestrictedEditingException');const _0x650577=_0x49173c['plugins']['get']('RestrictedEditingModeEditing');_0x650577['enableCommand']('trackChanges'),_0x650577['enableCommand']('acceptSuggestion'),_0x650577['enableCommand']('discardSuggestion'),_0x650577['enableCommand']('acceptAllSuggestions'),_0x650577['enableCommand']('discardAllSuggestions'),_0x650577['enableCommand']('acceptSelectedSuggestions'),_0x650577['enableCommand']('discardSelectedSuggestions');}}class It extends _0xa4b53f{static get['requires'](){return[_0x9d657b];}['init'](){const _0x43fc=this['editor'],_0x106597=_0x43fc['plugins']['get']('TrackChangesEditing');_0x106597['enableCommand']('shiftEnter'),_0x43fc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x43fc),{'priority':'high'}),_0x43fc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x43fc),{'priority':'high'}),_0x43fc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50ae5a,_0xb59b49,_0x55546e)=>{_0x55546e['options']['showSuggestionHighlights']&&je(_0x43fc,{'showActiveMarker':!0x1})(_0x50ae5a,_0xb59b49,_0x55546e);}),_0x106597['descriptionFactory']['registerElementLabel']('softBreak',_0x45a14a=>o(_0x43fc['locale'],'ELEMENT_LINE_BREAK',_0x45a14a));}}function je(_0xd0b2e5,{showActiveMarker:_0x3debf6=!0x0}={}){return(_0x55128c,_0x309c1f,_0x5e645c)=>{const _0x1937bf=_0xd0b2e5['plugins']['get']('TrackChangesEditing');if(!_0x5e645c['consumable']['test'](_0x309c1f['markerRange'],_0x55128c['name']))return;const _0x50c844=_0xd0b2e5['model'];for(const _0x2fc62a of _0x309c1f['markerRange']['getItems']()){if(!_0x2fc62a['is']('element','softBreak'))continue;const _0x1a29ba='deletion'==_0x309c1f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x51d1cf}=_0x1937bf['_splitMarkerName'](_0x309c1f['markerName']),_0x3af6b7=_0x5e645c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a29ba,'data-author-id':_0x51d1cf}),_0x49ca95=_0x5e645c['mapper']['toViewPosition'](_0x50c844['createPositionBefore'](_0x2fc62a));_0x3debf6&&_0x1937bf['activeMarkers']['includes'](_0x309c1f['markerName'])&&_0x5e645c['writer']['addClass']('ck-suggestion-marker--active',_0x3af6b7),_0x5e645c['writer']['insert'](_0x49ca95,_0x3af6b7),_0x5e645c['mapper']['bindElementToMarker'](_0x3af6b7,_0x309c1f['markerName']);}};}class vt extends _0xa4b53f{['afterInit'](){const _0x27fa8d=this['editor'],_0x510fef=_0x27fa8d['model'],_0x5e34f5=_0x27fa8d['locale'];if(!_0x27fa8d['plugins']['has']('StandardEditingModeEditing'))return;const _0x4673bc=_0x27fa8d['plugins']['get']('TrackChangesEditing'),_0x253ec9='restrictedEditingException',_0x239947=_0x27fa8d['commands']['get'](_0x253ec9);_0x4673bc['enableCommand'](_0x253ec9,(_0x565c68,_0x285d8c={})=>{const _0x38d200=_0x510fef['document']['selection'];if(_0x38d200['isCollapsed'])return void _0x565c68(_0x285d8c);const _0x135769=void 0x0!==_0x285d8c['forceValue']?_0x285d8c['forceValue']:!_0x239947['value'];_0x510fef['change'](()=>{const _0x2015cc=Array['from'](_0x38d200['getRanges']());for(const _0x3c61fb of _0x2015cc){const _0x5c3548=_0x135769?[_0x3c61fb]:io(_0x253ec9,_0x3c61fb,_0x510fef);for(const _0x1a2f72 of _0x5c3548)_0x4673bc['markInlineFormat'](_0x1a2f72,{'commandName':_0x253ec9,'commandParams':[{'forceValue':_0x135769}]});}});}),_0x4673bc['descriptionFactory']['registerDescriptionCallback'](_0x3dc14c=>{if('formatBlock'!=_0x3dc14c['type']&&'formatInline'!=_0x3dc14c['type'])return;const {data:_0x465fb1}=_0x3dc14c;return _0x465fb1&&_0x465fb1['commandName']==_0x253ec9?_0x465fb1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e34f5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5e34f5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0xa4b53f{['afterInit'](){const _0x271b53=this['editor'];if(!_0x271b53['plugins']['has']('Style')||!_0x271b53['plugins']['has']('DataSchema'))return;const _0x4dc101=_0x271b53['plugins']['get']('TrackChangesEditing'),_0x151cf7=_0x271b53['locale'],_0x501561=_0x271b53['config']['get']('style')||{},_0x5ceb80=_0x271b53['plugins']['get']('GeneralHtmlSupport'),_0x4f9607=_0x271b53['plugins']['get']('StyleUtils')['normalizeConfig'](_0x271b53['plugins']['get']('DataSchema'),_0x501561['definitions']);_0x4dc101['enableDefaultAttributesIntegration']('style');const _0x271240=new Set();for(const _0xafd7fa of _0x4f9607['block']){const _0x50269a=_0x5ceb80['getGhsAttributeNameForElement'](_0xafd7fa['element']);_0x271240['add'](_0x50269a);}const _0x1f9298=new Set();for(const _0x2c8263 of _0x4f9607['inline']){const _0x2e2d66=_0x5ceb80['getGhsAttributeNameForElement'](_0x2c8263['element']);_0x1f9298['add'](_0x2e2d66);for(const _0x5f0a88 of _0x2c8263['ghsAttributes'])_0x1f9298['add'](_0x5f0a88);}for(const _0x35a6df of _0x271240)_0x4dc101['registerBlockAttribute'](_0x35a6df),_0x4dc101['descriptionFactory']['registerAttributeLabel'](_0x35a6df,o(_0x151cf7,'FORMAT_STYLE'));for(const _0x249815 of _0x1f9298)_0x4dc101['registerInlineAttribute'](_0x249815),_0x4dc101['descriptionFactory']['registerAttributeLabel'](_0x249815,o(_0x151cf7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x196be6=this['editor'],_0x446f96=_0x196be6['locale'];_0x196be6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487dd1=>{if('formatBlock'!=_0x487dd1['type']&&'formatInline'!=_0x487dd1['type'])return;const {data:_0x414b37}=_0x487dd1;return _0x414b37&&'style'===_0x414b37['commandName']?_0x414b37['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x446f96,'*Set\x20format:*\x20%0',_0x414b37['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x446f96,'*Remove\x20format:*\x20%0',_0x414b37['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xa4b53f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2639dc){super(_0x2639dc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e2bd5=this['editor'],_0x2507e4=_0x5e2bd5['model']['document']['selection'];if(!_0x5e2bd5['plugins']['has']('TableEditing'))return;const _0x469947=_0x5e2bd5['locale'],_0x31ebcc=_0x5e2bd5['plugins']['get']('TrackChangesEditing'),_0x41c1fb=_0x5e2bd5['plugins']['get']('TableUtils');_0x31ebcc['descriptionFactory']['registerElementLabel']('table',_0x4dc3d5=>o(_0x469947,'ELEMENT_TABLE',_0x4dc3d5)),this['_setupColumnsRowsFixing'](),_0x31ebcc['enableCommand']('insertTable'),_0x31ebcc['enableCommand']('selectTableRow'),_0x31ebcc['enableCommand']('selectTableColumn');for(const _0x5b2449 of['insertTableRowAbove','insertTableRowBelow']){const _0x2f0dc1=_0x5e2bd5['commands']['get'](_0x5b2449);_0x31ebcc['enableCommand'](_0x5b2449,_0x5941df=>{_0x5e2bd5['model']['change'](_0x563281=>{_0x5941df();const _0x568b2d='above'===_0x2f0dc1['order'],_0xd7d920=_0x41c1fb['getSelectionAffectedTableCells'](_0x2507e4),_0x8cf2c0=_0x41c1fb['getRowIndexes'](_0xd7d920),_0x46174a=_0x568b2d?_0x8cf2c0['first']-0x1:_0x8cf2c0['last']+0x1,_0x3a6251=_0xd7d920[0x0]['findAncestor']('table'),_0x1aa4bf=_0x41c1fb['createTableWalker'](_0x3a6251,{'startRow':_0x46174a,'endRow':_0x46174a}),_0x51c38a=Array['from'](_0x1aa4bf)['map'](_0x489fb9=>_0x563281['createRangeOn'](_0x489fb9['cell']));_0x31ebcc['markMultiRangeInsertion'](_0x51c38a,'tableRow');});});}for(const _0x1448a7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x34252a=_0x5e2bd5['commands']['get'](_0x1448a7);_0x31ebcc['enableCommand'](_0x1448a7,_0x52511c=>{_0x5e2bd5['model']['change'](_0x54bb0e=>{_0x52511c();const _0x47779b='left'===_0x34252a['order'],_0x2a68e1=_0x41c1fb['getSelectionAffectedTableCells'](_0x2507e4),_0x75f631=_0x41c1fb['getColumnIndexes'](_0x2a68e1),_0x5a4bcb=_0x47779b?_0x75f631['first']-0x1:_0x75f631['last']+0x1,_0x4d6678=_0x2a68e1[0x0]['findAncestor']('table'),_0x50f5ad=_0x41c1fb['createTableWalker'](_0x4d6678,{'startRow':0x0,'column':_0x5a4bcb,'includeAllSlots':!0x1}),_0x4606ca=Array['from'](_0x50f5ad)['map'](_0x2bc132=>_0x54bb0e['createRangeOn'](_0x2bc132['cell']));_0x31ebcc['markMultiRangeInsertion'](_0x4606ca,'tableColumn');});});}for(const _0x588711 of['removeTableRow','removeTableColumn']){const _0x90bbb7=_0x588711['substr'](0xb),_0x52c22d=_0x90bbb7['toLowerCase'](),_0x498eff=_0x52c22d['substr'](0x0,0x3)+'span',_0x272789='table'+_0x90bbb7,_0x58aed8='min'+_0x90bbb7,_0x184a6c='max'+_0x90bbb7;_0x31ebcc['enableCommand'](_0x588711,()=>{_0x5e2bd5['model']['change'](_0x5c5ffc=>{const _0x53a7c3=_0x41c1fb['getSelectionAffectedTableCells'](_0x2507e4),_0x4d8b49=_0x53a7c3[0x0]['findAncestor']('table');let _0x592097;if('removeTableRow'==_0x588711){const _0x3a1850=_0x41c1fb['getRowIndexes'](_0x53a7c3);_0x592097={'startRow':_0x3a1850['first'],'endRow':_0x3a1850['last'],'includeAllSlots':!0x0};}else{const _0x1678d9=_0x41c1fb['getColumnIndexes'](_0x53a7c3);_0x592097={'startColumn':_0x1678d9['first'],'endColumn':_0x1678d9['last'],'includeAllSlots':!0x0};}const _0xdb4ec=_0x41c1fb['createTableWalker'](_0x4d8b49,_0x592097),_0x5615dd=Array['from'](_0xdb4ec)['map'](({cell:_0x383c7d})=>_0x383c7d),_0x22efc8=Ne(_0x5615dd['filter'](_0x3b1242=>_0x3b1242['hasAttribute'](_0x498eff))),_0x5e20c1=Ne(_0x5615dd['filter'](_0x593a78=>!_0x593a78['hasAttribute'](_0x498eff)))['map'](_0x3247d3=>_0x5c5ffc['createRangeOn'](_0x3247d3)),_0x3b7b61=_0x31ebcc['markMultiRangeDeletion'](_0x5e20c1,_0x272789);if(_0x3b7b61&&('tableRow'==_0x3b7b61['subType']||'tableColumn'==_0x3b7b61['subType'])){const _0x94fe90=this['_getSuggestionCoords'](_0x3b7b61);for(const _0x25eb3a of _0x22efc8){const _0x16d7dc=_0x5c5ffc['createRangeOn'](_0x25eb3a),_0x5de48a=_0x41c1fb['getCellLocation'](_0x25eb3a),_0x3e1d67=_0x25eb3a['getAttribute'](_0x498eff)-0x1,_0x56489e=_0x94fe90[_0x58aed8],_0x4073d5=_0x94fe90[_0x184a6c];_0x56489e<=_0x5de48a[_0x52c22d]&&_0x5de48a[_0x52c22d]+_0x3e1d67<=_0x4073d5&&_0x3b7b61['addRange'](_0x16d7dc);}}});});}function _0x398180(_0x514bde){const _0x4c8377=Array['from'](_0x2507e4['getRanges']())['map'](_0x8764ca=>_0x4f46eb['fromRange'](_0x8764ca));_0x5e2bd5['model']['change'](_0x2e87b9=>{const _0x259704=_0x2e87b9['batch'];_0x514bde=_0x514bde['filter'](_0x1a398b=>'$graveyard'!=_0x1a398b['root']['rootName']),_0x2e87b9['setSelection'](_0x514bde),_0x5e2bd5['commands']['get']('removeTableRow')['refresh'](),_0x5e2bd5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e2bd5['model']['enqueueChange'](()=>{_0x5e2bd5['model']['enqueueChange'](_0x259704,_0x26a0ee=>{const _0x3040e7=_0x4c8377['filter'](_0x3334ec=>'$graveyard'!=_0x3334ec['root']['rootName']);_0x3040e7['length']>0x0&&_0x26a0ee['setSelection'](_0x3040e7);for(const _0x41f612 of _0x4c8377)_0x41f612['detach']();});});});}function _0x46c609(_0x349cc4){_0x5e2bd5['model']['change'](_0x5602b6=>{const _0xce6b85=Array['from'](_0x2507e4['getRanges']())['map'](_0x3a8381=>_0x4f46eb['fromRange'](_0x3a8381)),_0x34949e=[];for(const _0x95d2a9 of _0x349cc4)for(const _0x237cbc of _0x95d2a9['getItems']({'shallow':!0x0}))_0x34949e['push'](_0x237cbc);for(const _0x3a2a30 of _0x34949e)'$graveyard'!=_0x3a2a30['root']['rootName']&&(_0x5602b6['setSelection'](_0x5602b6['createPositionAt'](_0x3a2a30,0x0)),_0x5e2bd5['commands']['get']('removeTableColumn')['refresh'](),_0x5e2bd5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1682de=_0xce6b85['filter'](_0x4a1248=>'$graveyard'!=_0x4a1248['root']['rootName']);_0x1682de['length']>0x0&&_0x5602b6['setSelection'](_0x1682de);for(const _0x44b2a0 of _0xce6b85)_0x44b2a0['detach']();});}function _0x5bcf59(_0x1bde64,_0x332923){return _0x332923['every'](_0x37f491=>_0x1bde64['some'](_0x42229e=>_0x42229e['end']['isEqual'](_0x37f491['start'])||_0x37f491['end']['isEqual'](_0x42229e['start'])));}function _0x45c108(_0x3d7668,_0x291a1d){return!_0x3d7668['some'](_0x511a0a=>_0x291a1d['some'](_0x453653=>_0x511a0a['isIntersecting'](_0x453653)))&&_0x3d7668['some'](_0x3e23b9=>_0x291a1d['some'](_0x330e5c=>_0x3e23b9['end']['isTouching'](_0x330e5c['start'])));}_0x5e2bd5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x569a40,_0x6ce307,_0x27252c)=>{if(!_0x27252c['options']['showSuggestionHighlights'])return;const _0x4342f6=_0x6ce307['item'];if(!_0x4342f6)return;const _0x27785c=_0x27252c['mapper']['toViewElement'](_0x4342f6);function _0x54926a(_0xd1e5ad){return Array['isArray'](_0xd1e5ad)?_0xd1e5ad:[_0xd1e5ad];}_0x27785c&&'tableCell'===_0x4342f6['name']&&_0x5cfe2f(_0x27785c,_0x27252c['writer'],(_0x7695d1,_0xf37c3,_0x5d8d83)=>_0x5d8d83['addClass'](_0x54926a(_0xf37c3['classes']),_0x7695d1),(_0x5767db,_0x4ea00e,_0x23b46c)=>_0x23b46c['removeClass'](_0x54926a(_0x4ea00e['classes']),_0x5767db));},{'priority':'highest'}),_0x31ebcc['descriptionFactory']['registerDescriptionCallback'](_0x172c86=>{if('insertion'!=_0x172c86['type']&&'deletion'!=_0x172c86['type'])return;const _0x2d92b4=_0x172c86['getContainedElement']();if(null!=_0x2d92b4&&_0x2d92b4['is']('element','table')){if('insertion'==_0x172c86['type']){const _0x271c2f=_0x172c86['getItems']()['filter'](_0x70cd20=>_0x70cd20['is']('$textProxy'))['map'](_0x4ba479=>_0x4ba479['data']);if(_0x271c2f['length'])return{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x271c2f['join']('\x20')+'\x22'))};}if('deletion'==_0x172c86['type']){const _0x215214=_0x172c86['getItems']()['filter'](_0xf07816=>_0xf07816['is']('$textProxy'))['map'](_0x17f3f1=>_0x17f3f1['data']);if(_0x215214['length'])return{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x215214['join']('\x20')+'\x22'))};}}}),_0x31ebcc['descriptionFactory']['registerDescriptionCallback'](_0x23f2b2=>{if('tableRow'==_0x23f2b2['subType']){const _0x38d05c=_0x23f2b2['getItems']()['filter'](_0x4f6a5e=>_0x4f6a5e['is']('$textProxy'))['map'](_0x14ce80=>_0x14ce80['data']),_0xf1fc10=this['_getSuggestionCoords'](_0x23f2b2),_0x551f51=_0xf1fc10['maxRow']-_0xf1fc10['minRow']+0x1;if('insertion'==_0x23f2b2['type'])return _0x38d05c['length']?{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x551f51,'\x22'+_0x38d05c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW',_0x551f51))};if('deletion'==_0x23f2b2['type'])return _0x38d05c['length']?{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x551f51,'\x22'+_0x38d05c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW',_0x551f51))};}if('tableColumn'==_0x23f2b2['subType']){const _0xfd880b=_0x23f2b2['getItems']()['filter'](_0x20974f=>_0x20974f['is']('$textProxy'))['map'](_0x311b28=>_0x311b28['data']),_0x5c74c1=this['_getSuggestionCoords'](_0x23f2b2),_0xdd064b=_0x5c74c1['maxColumn']-_0x5c74c1['minColumn']+0x1;if('insertion'==_0x23f2b2['type'])return _0xfd880b['length']?{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdd064b,'\x22'+_0xfd880b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN',_0xdd064b))};if('deletion'==_0x23f2b2['type'])return _0xfd880b['length']?{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdd064b,'\x22'+_0xfd880b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN',_0xdd064b))};}}),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x398180),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x398180),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x46c609),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x46c609),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bcf59),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bcf59),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x45c108),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x45c108);}['_acceptFormatSuggestionCallbackFactory'](){const _0x44283e=this['editor'],_0xd6aeac=_0x44283e['model']['document']['selection'];return(_0x4bea63,_0x36ca96)=>{_0x44283e['model']['change'](_0x49c4da=>{const {commandName:_0x34023d,commandParams:_0x4ed502}=_0x36ca96;let _0x3447d5=_0x4bea63[0x0]['end']['nodeBefore'];_0x4ed502&&_0x4ed502[0x0]&&!0x1===_0x4ed502[0x0]['forceValue']&&(_0x3447d5=_0x4bea63[0x0]['start']['nodeAfter']);const _0x2e273f=_0x49c4da['createRangeIn'](_0x3447d5);if('$graveyard'==_0x2e273f['root']['rootName'])return;const _0x53bc63=Array['from'](_0xd6aeac['getRanges']())['map'](_0x2998df=>_0x4f46eb['fromRange'](_0x2998df));_0x49c4da['setSelection'](_0x2e273f),_0x44283e['commands']['get'](_0x34023d)['refresh'](),_0x4ed502['push']({'forceDefaultExecution':!0x0}),_0x44283e['execute'](_0x34023d,..._0x4ed502);const _0x308de7=_0x53bc63['filter'](_0x4c8462=>'$graveyard'!=_0x4c8462['root']['rootName']);_0x308de7['length']>0x0&&_0x49c4da['setSelection'](_0x308de7);for(const _0x4d581f of _0x53bc63)_0x4d581f['detach']();});};}['_getCoordsForCells'](_0xbef91f){const _0x3eee32=this['editor']['plugins']['get']('TableUtils');let _0x5756dc=Number['MAX_SAFE_INTEGER'],_0x3d20a3=Number['MIN_SAFE_INTEGER'],_0x32d331=Number['MAX_SAFE_INTEGER'],_0xd62414=Number['MIN_SAFE_INTEGER'];for(const _0x5a2278 of _0xbef91f){if('$graveyard'==_0x5a2278['root']['rootName'])continue;const {row:_0x322d00,column:_0x535d4f}=_0x3eee32['getCellLocation'](_0x5a2278),_0x18e676=_0x5a2278['hasAttribute']('rowspan')?_0x5a2278['getAttribute']('rowspan')-0x1:0x0,_0x11f012=_0x5a2278['hasAttribute']('colspan')?_0x5a2278['getAttribute']('colspan')-0x1:0x0;_0x5756dc=_0x322d00<_0x5756dc?_0x322d00:_0x5756dc,_0x3d20a3=_0x322d00+_0x18e676>_0x3d20a3?_0x322d00+_0x18e676:_0x3d20a3,_0x32d331=_0x535d4f<_0x32d331?_0x535d4f:_0x32d331,_0xd62414=_0x535d4f+_0x11f012>_0xd62414?_0x535d4f+_0x11f012:_0xd62414;}return{'minRow':_0x5756dc,'maxRow':_0x3d20a3,'minColumn':_0x32d331,'maxColumn':_0xd62414};}['_setupColumnsRowsFixing'](){const _0x401959=this['editor'],_0x21e49d=_0x401959['plugins']['get']('TrackChangesEditing'),_0x57ba45=_0x401959['plugins']['get']('TableUtils');_0x401959['model']['document']['on']('change:data',()=>{const _0x213c88=Array['from'](_0x401959['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d2c46,data:_0xe50f2d}of _0x213c88){const {group:_0x52a4fd,id:_0x353e3b,subType:_0x3a237a}=_0x21e49d['_splitMarkerName'](_0x3d2c46);if('suggestion'!=_0x52a4fd)continue;if(null!=_0xe50f2d['oldRange'])continue;const _0x4a242b=_0x21e49d['getSuggestion'](_0x353e3b);this['_tablePostFixingSubtypes']['includes'](_0x3a237a)&&this['_tableSuggestions']['add'](_0x4a242b);}},{'priority':'low'});const _0x52dc92=(_0x35269e,_0x58d017)=>{let _0x108422=!0x1;const _0x3f4ae1=_0x58d017['createRangeOn'](_0x35269e),_0x419bb3=_0x35269e['findAncestor']('table'),_0x58ac89=_0x57ba45['getCellLocation'](_0x35269e);for(const _0x1e4796 of this['_tableSuggestions']){const _0x5dc2b7=_0x1e4796['subType'],_0x4d8913=_0x5dc2b7['startsWith']('tablePaste'),_0x3da059=_0x5dc2b7['substr'](_0x4d8913?0xa:0x5),_0x542601=_0x3da059['toLowerCase'](),_0x104a39=_0x542601['substr'](0x0,0x3)+'span',_0x148d97='min'+_0x3da059,_0x28b91f='max'+_0x3da059;if(!_0x1e4796['isInContent'])continue;if(_0x419bb3!=_0x1e4796['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1e4796['isIntersectingWithRange'](_0x3f4ae1))continue;const _0x63f2ad=_0x35269e['hasAttribute'](_0x104a39)?_0x35269e['getAttribute'](_0x104a39)-0x1:0x0,_0x129074=this['_getSuggestionCoords'](_0x1e4796),_0x2e510f=_0x129074[_0x148d97],_0x12c708=_0x129074[_0x28b91f];_0x2e510f<=_0x58ac89[_0x542601]&&_0x58ac89[_0x542601]+_0x63f2ad<=_0x12c708&&(_0x1e4796['addRange'](_0x3f4ae1),_0x108422=!0x0);}return _0x108422;};_0x401959['model']['document']['registerPostFixer'](_0x472315=>{let _0x5d516f=!0x1;for(const _0x389e88 of _0x401959['model']['document']['differ']['getChanges']())if('insert'==_0x389e88['type']){if('tableRow'==_0x389e88['name']){for(const _0x120b29 of _0x389e88['position']['nodeAfter']['getChildren']())_0x5d516f=_0x5d516f||_0x52dc92(_0x120b29,_0x472315);}else'tableCell'==_0x389e88['name']&&(_0x5d516f=_0x5d516f||_0x52dc92(_0x389e88['position']['nodeAfter'],_0x472315));}return _0x5d516f;});}['_getSuggestionCoords'](_0x594718){return this['_getCoordsForCells'](_0x594718['getRanges']()['map'](_0x163b70=>_0x163b70['start']['nodeAfter']));}}function Ne(_0x18517b){return Array['from'](new Set(_0x18517b)['values']());}class Nt extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x3de926=this['editor'],_0x38a619=_0x3de926['model']['document']['selection'],_0x2b9604=_0x3de926['locale'];if(!_0x3de926['plugins']['has']('TableEditing'))return;const _0x1e64e2=_0x3de926['plugins']['get']('TrackChangesEditing'),_0xdab861=_0x3de926['plugins']['get']('TableUtils'),_0x58b10d=_0x3de926['plugins']['get'](Ct);_0x58b10d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1e64e2['enableCommand']('mergeTableCells',()=>{const _0x566255=_0xdab861['getSelectionAffectedTableCells'](_0x3de926['model']['document']['selection']);_0x3de926['model']['change'](()=>{_0x1e64e2['markMultiRangeBlockFormat'](_0x566255,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3de926['commands']['get']('mergeTableCells')['on']('execute',(_0x2dd887,_0x24ee90)=>{_0x3de926['commands']['get']('trackChanges')['value']&&(_0x24ee90['length']>0x0&&_0x24ee90[_0x24ee90['length']-0x1]&&_0x24ee90[_0x24ee90['length']-0x1]['forceDefaultExecution']||_0x1e64e2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2dd887['stop']());},{'priority':'highest'});for(const _0x3491bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x245980=_0x3de926['commands']['get'](_0x3491bd);_0x1e64e2['enableCommand'](_0x3491bd,()=>{const _0x5cbcfa=_0x3de926['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x58528e=>_0x58528e['is']('element','tableCell')),_0x248a4a=_0x245980['value'];_0x3de926['model']['change'](()=>{_0x1e64e2['markMultiRangeBlockFormat']([_0x5cbcfa,_0x248a4a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f0c75 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x34c7df=_0x3de926['commands']['get'](_0x3f0c75);_0x1e64e2['enableCommand'](_0x3f0c75,()=>{const _0x2183b0=_0xdab861['getSelectionAffectedTableCells'](_0x3de926['model']['document']['selection'])[0x0],_0x3b6d1d=_0x2183b0['findAncestor']('table'),{column:_0x50ce4f,row:_0x3b5583}=_0xdab861['getCellLocation'](_0x2183b0);let _0x8b1124=[];if('horizontally'==_0x34c7df['direction']){const _0x597abb=_0xdab861['createTableWalker'](_0x3b6d1d,{'startRow':_0x3b5583,'endRow':_0x3b5583,'includeAllSlots':!0x0});_0x8b1124=Array['from'](_0x597abb)['map'](_0x3e1442=>_0x3e1442['cell']);}else{const _0x480072=_0xdab861['createTableWalker'](_0x3b6d1d,{'column':_0x50ce4f,'includeAllSlots':!0x0});_0x8b1124=Array['from'](_0x480072)['map'](_0x4e324f=>_0x4e324f['cell']);}_0x3de926['model']['change'](_0xa57975=>{_0x1e64e2['markBlockFormat'](_0xa57975['createRangeOn'](_0x2183b0),{'commandName':_0x3f0c75,'commandParams':[]},_0x8b1124,_0x3f0c75);});});}_0x1e64e2['descriptionFactory']['registerDescriptionCallback'](_0x4218ef=>{if('formatBlock'!=_0x4218ef['type']&&'formatInline'!=_0x4218ef['type'])return;const {data:_0x2bd1ff}=_0x4218ef;return _0x2bd1ff&&'mergeTableCells'==_0x2bd1ff['commandName']?{'type':'format','content':o(_0x2b9604,'*Merge\x20cells*')}:void 0x0;}),_0x1e64e2['descriptionFactory']['registerDescriptionCallback'](_0x273db4=>{if('formatBlock'!=_0x273db4['type']&&'formatInline'!=_0x273db4['type'])return;const {data:_0x2a6a44}=_0x273db4;return _0x2a6a44?'splitTableCellVertically'==_0x2a6a44['commandName']?{'type':'format','content':o(_0x2b9604,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a6a44['commandName']?{'type':'format','content':o(_0x2b9604,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3141e5=_0x58b10d['_acceptFormatSuggestionCallbackFactory']();for(const _0x2ca468 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1e64e2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ca468,'accept',_0x3141e5);for(const _0x1fc46f of['splitTableCellVertically','splitTableCellHorizontally'])_0x1e64e2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fc46f,'accept',_0x3141e5);_0x1e64e2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x362520=>{_0x3de926['model']['change'](_0x33f552=>{const _0x21026b=Array['from'](_0x38a619['getRanges']())['map'](_0x53e1cb=>_0x4f46eb['fromRange'](_0x53e1cb));_0x33f552['setSelection'](_0x362520),_0x3de926['commands']['get']('mergeTableCells')['refresh'](),_0x3de926['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x46b602=_0x21026b['filter'](_0x9daec9=>'$graveyard'!=_0x9daec9['root']['rootName']);_0x46b602['length']>0x0&&_0x33f552['setSelection'](_0x46b602);for(const _0xe10f3d of _0x21026b)_0xe10f3d['detach']();});});for(const _0x5e0e3b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c49cc=_0x3de926['commands']['get'](_0x5e0e3b);_0x3c49cc['on']('set:isEnabled',(_0x203b54,_0x2bb0bb,_0x108bfc)=>{if(_0x108bfc){const _0x548ea4=_0x3de926['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x228437=>_0x228437['is']('element','tableCell'));this['_areMergableCells'](_0x3c49cc['value'],_0x548ea4)||(_0x203b54['return']=!0x1,_0x203b54['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xec7ad8=this['editor']['commands']['get']('mergeTableCells'),_0x44e7ba=this['editor']['plugins']['get']('TableUtils');if(!_0xec7ad8['isEnabled'])return!0x1;const _0x397a6e=_0x44e7ba['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x11dd52 of _0x397a6e)for(const _0x53d581 of _0x397a6e)if(_0x11dd52!=_0x53d581&&!this['_areMergableCells'](_0x11dd52,_0x53d581))return!0x1;return!0x0;}['_areMergableCells'](_0x2b82da,_0x3c0d16){const _0x3730af=this['editor']['plugins']['get']('TrackChangesEditing'),_0xed02e8=this['editor']['model']['createRangeOn'](_0x2b82da),_0x251a91=this['editor']['model']['createRangeOn'](_0x3c0d16),_0x1eefce=new Set(),_0x4f3fc9=new Set();for(const _0x1ad849 of _0x3730af['getSuggestions']())if(('insertion'==_0x1ad849['type']||'deletion'==_0x1ad849['type']||'mergeTableCells'==_0x1ad849['subType'])&&_0x1ad849['isInContent']){for(const _0x5519fa of _0x1ad849['getRanges']())_0x5519fa['containsRange'](_0xed02e8,!0x0)&&_0x1eefce['add'](_0x1ad849['type']+':'+_0x1ad849['author']['id']),_0x5519fa['containsRange'](_0x251a91,!0x0)&&_0x4f3fc9['add'](_0x1ad849['type']+':'+_0x1ad849['author']['id']);}if(_0x1eefce['size']!=_0x4f3fc9['size'])return!0x1;for(const _0x5b1983 of _0x1eefce)if(!_0x4f3fc9['has'](_0x5b1983))return!0x1;return!0x0;}}class Dt extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x88ed25=this['editor'];if(!_0x88ed25['plugins']['has']('TableEditing'))return;const _0x4ebdce=_0x88ed25['locale'],_0x219c39=_0x88ed25['plugins']['get']('TrackChangesEditing');_0x219c39['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x219c39['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x219c39['registerBlockAttribute']('headingRows'),_0x219c39['registerBlockAttribute']('headingColumns'),_0x219c39['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4ebdce,'FORMAT_HEADER_ROW')),_0x219c39['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4ebdce,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x595915=this['editor']['plugins']['get']('TrackChangesEditing'),_0x368145=this['editor']['plugins']['get']('TableUtils'),_0x1d621a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3d1216({showActiveMarker:_0x466e45=!0x0,setDataAttribute:_0x46fe7e=!0x0}={}){return(_0x4f5d19,_0x2744b9,_0x54440e)=>{const {type:_0x338cce,id:_0x36693c}=_0x595915['_splitMarkerName'](_0x2744b9['markerName']),_0x2d53e0=_0x595915['getSuggestion'](_0x36693c),_0x5e05df=_0x2d53e0['data'];if('formatBlock'!=_0x2d53e0['type']||!_0x5e05df||'setTableColumnHeader'!=_0x5e05df['commandName'])return;if(_0x2744b9['item'])return void _0x4f5d19['stop']();if(!_0x54440e['consumable']['consume'](_0x2744b9['markerRange'],_0x4f5d19['name']))return;const _0x4e2dc=_0x2744b9['markerRange']['start']['nodeAfter'],_0x28b89d=_0x2744b9['markerRange']['end']['nodeBefore'],_0x118784=_0x4e2dc['parent']['parent'],{column:_0x2656c5}=_0x368145['getCellLocation'](_0x4e2dc),{column:_0x57f5d7}=_0x368145['getCellLocation'](_0x28b89d);for(let _0x59b221=_0x2656c5;_0x59b221<=_0x57f5d7;_0x59b221++){const _0x3f5d8e=_0x368145['createTableWalker'](_0x118784,{'column':_0x59b221,'includeAllSlots':!0x1});for(const _0x2ba526 of _0x3f5d8e){const _0x3c1804=_0x2ba526['cell'],_0xd74c8=_0x54440e['mapper']['toViewElement'](_0x3c1804);_0x54440e['writer']['addClass']('ck-suggestion-marker-'+_0x338cce,_0xd74c8),_0x46fe7e&&_0x54440e['writer']['setAttribute']('data-suggestion',_0x36693c,_0xd74c8),_0x54440e['mapper']['bindElementToMarker'](_0xd74c8,_0x2744b9['markerName']),_0x466e45&&(_0x595915['activeMarkers']['includes'](_0x2744b9['markerName'])?_0x54440e['writer']['addClass']('ck-suggestion-marker--active',_0xd74c8):_0x54440e['writer']['removeClass']('ck-suggestion-marker--active',_0xd74c8));}}};}_0x595915['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1d621a),_0x595915['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1d621a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d1216(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd847a0,_0x5ef510,_0xfe7421)=>{_0xfe7421['options']['showSuggestionHighlights']&&_0x3d1216({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd847a0,_0x5ef510,_0xfe7421);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x406bf2,_0x5cc166,_0xeb10d3)=>{const {type:_0xa48eb6,id:_0x98f589}=_0x595915['_splitMarkerName'](_0x5cc166['markerName']),_0x314cda=_0x595915['getSuggestion'](_0x98f589),_0xfd6004=_0x314cda['data'];if('formatBlock'!=_0x314cda['type']||!_0xfd6004||'setTableColumnHeader'!=_0xfd6004['commandName'])return;const _0x14d102=_0xeb10d3['mapper']['markerNameToElements'](_0x5cc166['markerName']);if(_0x14d102){for(const _0xcf7bcc of _0x14d102)_0xeb10d3['writer']['removeClass']('ck-suggestion-marker-'+_0xa48eb6,_0xcf7bcc),_0xeb10d3['writer']['removeClass']('ck-suggestion-marker--active',_0xcf7bcc),_0xeb10d3['writer']['removeAttribute']('data-suggestion',_0xcf7bcc),_0xeb10d3['mapper']['unbindElementFromMarkerName'](_0xcf7bcc,_0x5cc166['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19f9df=this['editor'],_0x2ece7f=_0x19f9df['locale'];function _0x4dc673(_0x54548e){return{'type':'format','content':o(_0x2ece7f,'*Format:*\x20%0',_0x54548e)};}_0x19f9df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dc5b0=>{if('formatBlock'!=_0x4dc5b0['type'])return;const {data:_0x2ffbd6}=_0x4dc5b0;if(_0x2ffbd6){if('setTableRowHeader'==_0x2ffbd6['commandName']){const _0x26e436=_0x2ffbd6['commandParams'][0x0]['forceValue'];return _0x4dc673(o(_0x2ece7f,_0x26e436?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2ffbd6['commandName']){const _0x3b3ec8=_0x2ffbd6['commandParams'][0x0]['forceValue'];return _0x4dc673(o(_0x2ece7f,_0x3b3ec8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5c3c15=>[_0x5c3c15,null]));class Mt extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x53e3e3=this['editor'];if(!_0x53e3e3['plugins']['has']('TableClipboard'))return;const _0x4e0b35=_0x53e3e3['plugins']['get']('TrackChangesEditing'),_0x1dd714=_0x53e3e3['plugins']['get']('TableUtils'),_0x3f341d=_0x53e3e3['plugins']['get'](Ct),_0x18a0c8=_0x53e3e3['plugins']['get']('TableClipboard');_0x3f341d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53e3e3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53e3e3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x556481=null;_0x53e3e3['model']['on']('insertContent',(_0x58ec16,_0x11bc48)=>{const [_0xa39841,_0x28b2cc]=_0x11bc48,_0x121ca8=_0x11bc48[_0x11bc48['length']-0x1];_0x121ca8&&_0x121ca8['forceDefaultExecution']||_0x4e0b35['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4313ad,_0x523dc9,_0x769ebd,_0x3d6ea1,_0x5bdb87){if(_0x523dc9&&!_0x523dc9['is']('documentSelection'))return!0x1;const _0xcfe1d8=_0x5bdb87['getTableIfOnlyTableInContent'](_0x4313ad,_0x769ebd);if(!_0xcfe1d8||!Ue(_0xcfe1d8,void 0x0,_0x3d6ea1))return!0x1;const _0x21d959=_0x3d6ea1['getSelectionAffectedTableCells'](_0x769ebd['document']['selection']);if(!_0x21d959['length'])return!0x1;const _0x129a88=_0x21d959[0x0]['findAncestor']('table'),_0x3785a7=_0x3d6ea1['getRowIndexes'](_0x21d959),_0x524a68=_0x3d6ea1['getColumnIndexes'](_0x21d959),_0x19a4a2={'startRow':_0x3785a7['first'],'endRow':_0x3785a7['last'],'startColumn':_0x524a68['first'],'endColumn':_0x524a68['last']};return 0x1==_0x21d959['length']&&(_0x19a4a2['endRow']+=_0x3d6ea1['getRows'](_0xcfe1d8)-0x1,_0x19a4a2['endColumn']+=_0x3d6ea1['getColumns'](_0xcfe1d8)-0x1),Ue(_0x129a88,_0x19a4a2,_0x3d6ea1);}(_0xa39841,_0x28b2cc,_0x53e3e3['model'],_0x1dd714,_0x18a0c8)&&(_0x58ec16['stop'](),_0x556481={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53e3e3['model']['change'](()=>{_0x53e3e3['model']['insertContent'](_0x11bc48[0x0],_0x11bc48[0x1],_0x11bc48[0x2],{'forceDefaultExecution':!0x0});const _0x148f75=_0xf688c7(),{rowInsertionRanges:_0x539a62,columnInsertionRanges:_0x58acd2,insertionRanges:_0x172b78,deletionRanges:_0xe09634,cells:_0x1623b0}=_0x556481;_0x539a62['length']&&_0x4e0b35['markMultiRangeInsertion'](_0x539a62,'tablePasteRow',{'tablePasteChainId':_0x148f75}),_0x58acd2['length']&&_0x4e0b35['markMultiRangeInsertion'](_0x58acd2,'tablePasteColumn',{'tablePasteChainId':_0x148f75}),_0x172b78['length']&&(_0x4e0b35['markMultiRangeInsertion'](_0x172b78,'tablePaste',{'tablePasteChainId':_0x148f75,'skipNestingCheck':!0x0}),_0x172b78['forEach'](_0x592b25=>_0x592b25['detach']?.())),_0xe09634['length']&&(_0x4e0b35['markMultiRangeDeletion'](_0xe09634,'tablePaste',{'tablePasteChainId':_0x148f75,'skipNestingCheck':!0x0}),_0xe09634['forEach'](_0x1cce2f=>_0x1cce2f['detach']?.()));const _0x37dbe1=_0x4e0b35['markMultiRangeBlockFormat'](_0x1623b0['map'](({element:_0x3e4f3e})=>_0x3e4f3e),{'formatGroupId':_0xf688c7()},[],'tablePasteCell',{'tablePasteChainId':_0x148f75});if(_0x37dbe1){const _0xfc6e7f=_0x37dbe1['getMarkers'](),_0x46dad7=[];for(const {element:_0x26078d,attributes:_0x479657}of _0x1623b0){if(!_0x479657)continue;const _0x485165=_0x53e3e3['model']['createRangeOn'](_0x26078d),_0x3bc960=_0xfc6e7f['find'](_0x3e9adb=>_0x3e9adb['getRange']()['isEqual'](_0x485165));_0x3bc960&&_0x46dad7['push']([_0x3bc960['name'],_0x479657]);}_0x46dad7['length']&&_0x37dbe1['setAttribute']('markerAttributes',Object['fromEntries'](_0x46dad7));}_0x556481=null;}));},{'priority':_0x2435d0['high']+0xa}),_0x53e3e3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe7192b,_0x16a53a)=>{const [_0xf547d4,_0x823463,,_0x39f604]=_0x16a53a;if(!_0x556481)return;_0xe7192b['stop']();const _0x20787d=_0xf547d4['cell'],_0x225625=_0x823463,_0x3f95f0=Oe(_0x20787d),_0x4874ae=Oe(_0x225625);_0xe7192b['return']=_0x20787d;let _0x572294=null,_0x5671f5=null;if(_0x4874ae||_0x3f95f0){if(_0x3f95f0&&!_0x4874ae){_0x39f604['remove'](_0x20787d['getChild'](0x0));for(const _0x309221 of Array['from'](_0x225625['getChildren']()))_0x39f604['insert'](_0x309221,_0x20787d,'end');const _0x3b4930=_0x556481['rowInsertionIndexes']['includes'](_0xf547d4['row']),_0x101aeb=_0x556481['columnInsertionIndexes']['includes'](_0xf547d4['column']);_0x3b4930||_0x101aeb||(_0x572294=_0x4f46eb['fromRange'](_0x39f604['createRangeIn'](_0x20787d)));}else _0x4874ae&&!_0x3f95f0&&(_0x5671f5=_0x39f604['createRangeIn'](_0x20787d));}else{const _0xbf24dc=_0x39f604['createElement']('tableCellSuggestion'),_0x54a627=_0x39f604['createElement']('tableCellSuggestion');_0x39f604['wrap'](_0x39f604['createRangeIn'](_0x20787d),_0x54a627),_0x39f604['insert'](_0xbf24dc,_0x20787d,0x0);for(const _0x58f802 of Array['from'](_0x225625['getChildren']()))_0x39f604['insert'](_0x58f802,_0xbf24dc,'end');_0x572294=_0x4f46eb['fromRange'](_0x39f604['createRangeOn'](_0xbf24dc)),_0x5671f5=_0x4f46eb['fromRange'](_0x39f604['createRangeOn'](_0x54a627));}const _0x5b8429=Array['from'](_0x225625['getAttributes']())['filter'](([_0x5c2abe])=>Be['includes'](_0x5c2abe));_0x556481['cells']['push']({'element':_0x20787d,'attributes':_0x5b8429['length']?Object['fromEntries'](_0x5b8429):null}),_0x572294&&_0x556481['insertionRanges']['push'](_0x572294),_0x5671f5&&_0x556481['deletionRanges']['push'](_0x5671f5);},{'priority':'high'}),_0x1dd714['on']('insertColumns',(_0x408e2a,_0x417eca)=>{const [_0x41cd07,_0x2b28c2={}]=_0x417eca;if(!_0x556481)return;const _0x4c5623=_0x2b28c2['at']||0x0,_0x4e163a=_0x2b28c2['columns']||0x1;_0x556481['columnInsertionIndexes']=new Array(_0x4e163a)['fill'](_0x4c5623)['map']((_0x319835,_0x1fdcee)=>_0x319835+_0x1fdcee);for(const {cell:_0x3b101b}of _0x1dd714['createTableWalker'](_0x41cd07,{'startColumn':_0x4c5623,'endColumn':_0x4c5623+_0x4e163a-0x1}))_0x556481['columnInsertionRanges']['push'](_0x53e3e3['model']['createRangeOn'](_0x3b101b));},{'priority':'low'}),_0x1dd714['on']('insertRows',(_0x46beda,_0x19160b)=>{const [_0x865474,_0x51bf5a={}]=_0x19160b;if(!_0x556481)return;const _0x18911c=_0x51bf5a['at']||0x0,_0x2cb772=_0x51bf5a['rows']||0x1;_0x556481['rowInsertionIndexes']=new Array(_0x2cb772)['fill'](_0x18911c)['map']((_0x4f38ef,_0x3b5f24)=>_0x4f38ef+_0x3b5f24);for(const {cell:_0x4e6623}of _0x1dd714['createTableWalker'](_0x865474,{'startRow':_0x18911c,'endRow':_0x18911c+_0x2cb772-0x1}))_0x556481['rowInsertionRanges']['push'](_0x53e3e3['model']['createRangeOn'](_0x4e6623));},{'priority':'low'}),_0x4e0b35['descriptionFactory']['registerDescriptionCallback'](_0xa59add=>{if(_0xa59add['subType']&&_0xa59add['subType']['startsWith']('tablePaste'))return _0xa59add['previous']?{}:{'type':'insertion','content':o(_0x53e3e3['locale'],'*Replace\x20table\x20cells*')};});const _0x11559c=()=>!0x1;for(const _0xe6dd7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e0b35['_suggestionFactory']['registerCustomCallback']('insertion',_0xe6dd7,'join',_0x11559c),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('deletion',_0xe6dd7,'join',_0x11559c),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe6dd7,'join',_0x11559c);_0x4e0b35['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x11559c),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3ac6de,_0x9b6c73,_0x5003e8)=>{const _0x1f46d4=_0x3ac6de['map'](_0x3afe31=>_0x3afe31['getContainedElement']())['filter'](_0x2d2085=>_0x2d2085),_0x599101=new Map(_0x1f46d4['map'](_0x1fe2a9=>[_0x1fe2a9,null]));if(_0x556481){for(const {element:_0x5c8ac8,attributes:_0x577e70}of _0x556481['cells'])_0x577e70&&_0x599101['set'](_0x5c8ac8,_0x577e70);}else{if(_0x5003e8&&_0x5003e8['markerAttributes'])for(const [_0x1c09c5,_0x3d67f8]of Object['entries'](_0x5003e8['markerAttributes'])){const _0x47c512=_0x53e3e3['model']['markers']['get'](_0x1c09c5),_0x2f4028=_0x47c512?_0x47c512['getRange']()['getContainedElement']():null;_0x2f4028&&_0x599101['set'](_0x2f4028,_0x3d67f8);}}_0x53e3e3['model']['change'](_0x5527d2=>{for(const [_0x151167,_0x1a3c65]of _0x599101)_0x5527d2['setAttributes']({...xe,..._0x1a3c65},_0x151167);});});const _0x3bf32f=(_0xe261,_0x47bc4e)=>{_0x4e0b35['_suggestionFactory']['registerCustomCallback'](_0xe261,'tablePaste',_0x47bc4e,(_0x4379a7,_0x1860d5,_0x2d19d7)=>{_0x53e3e3['model']['change'](_0x5e85c3=>{const _0x4925c8=[];for(const _0x2ef791 of _0x4379a7){const _0x564c5e=_0x2ef791['start']['nodeAfter'];_0x564c5e['is']('element','tableCellSuggestion')&&_0x4925c8['push'](_0x564c5e);}_0x4e0b35['_suggestionFactory']['getSuggestionCallback'](_0xe261,null,_0x47bc4e)(_0x4379a7,_0x1860d5,_0x2d19d7);for(const _0x1e4882 of _0x4925c8)'$graveyard'!=_0x1e4882['root']['rootName']&&_0x5e85c3['unwrap'](_0x1e4882);});});};_0x3bf32f('insertion','accept'),_0x3bf32f('insertion','discard'),_0x3bf32f('deletion','accept'),_0x3bf32f('deletion','discard'),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x492038=>{const _0xd93861=_0x492038['map'](_0x1c775e=>_0x1c775e['getContainedElement']()),_0x1d6918=_0xd93861[0x0]['findAncestor']('table'),{minRow:_0x53b06d,maxRow:_0x3f4207}=_0x3f341d['_getCoordsForCells'](_0xd93861);_0x1dd714['removeRows'](_0x1d6918,{'at':_0x53b06d,'rows':_0x3f4207-_0x53b06d+0x1});}),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x72a86c=>{const _0x374415=_0x72a86c['map'](_0xcc1e74=>_0xcc1e74['getContainedElement']()),_0xbb6fd=_0x374415[0x0]['findAncestor']('table'),{minColumn:_0x22f8d6,maxColumn:_0x3ef4f8}=_0x3f341d['_getCoordsForCells'](_0x374415);_0x1dd714['removeColumns'](_0xbb6fd,{'at':_0x22f8d6,'columns':_0x3ef4f8-_0x22f8d6+0x1});});const _0x4660a0=(_0x1c6e8e,_0xa76e3d)=>{if(!_0xa76e3d['subType']||!_0xa76e3d['subType']['startsWith']('tablePaste'))return;const _0xa420c4=_0xa76e3d['attributes']['tablePasteChainId'],_0x36d17e=_0x4e0b35['getSuggestions']()['filter'](_0x5bb224=>_0x5bb224['isInContent']&&_0x5bb224['attributes']&&_0x5bb224['attributes']['tablePasteChainId']==_0xa420c4);_0x36d17e['length']&&_0xa76e3d['getAllAdjacentSuggestions']()['length']!=_0x36d17e['length']&&_0x36d17e['reduce']((_0x452f80,_0x373cd6)=>(_0x452f80['next']=_0x373cd6,_0x373cd6['previous']=_0x452f80,_0x373cd6));};function _0x4dde74(_0x3a57ad,_0x397139=!0x0){const {id:_0x5eac1c,authorId:_0x474678}=_0x4e0b35['_splitMarkerName'](_0x3a57ad['markerName']),_0x251187=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x44830a=_0x4e0b35['activeMarkers']['includes'](_0x3a57ad['markerName']);return _0x44830a&&_0x251187['push']('ck-suggestion-marker--active'),{'classes':_0x251187,'attributes':{'data-suggestion':_0x5eac1c,'data-author-id':_0x474678},'priority':_0x44830a&&_0x397139?0xbc2:0xbb8};}_0x4e0b35['on']('suggestionLoaded',_0x4660a0,{'priority':'high'}),_0x4e0b35['on']('suggestionUnloaded',_0x4660a0,{'priority':'high'}),_0x53e3e3['model']['document']['registerPostFixer'](()=>{let _0x3baae7=!0x1;const _0x3c2181=Array['from'](_0x53e3e3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x76de0b,data:_0x2caf3b}of _0x3c2181){const {group:_0x319542,type:_0x5e27af,id:_0x56478f}=_0x4e0b35['_splitMarkerName'](_0x76de0b);if('suggestion'!=_0x319542||'deletion'!=_0x5e27af||_0x2caf3b['oldRange'])continue;if(!_0x4e0b35['hasSuggestion'](_0x56478f))continue;const _0x1c165a=_0x4e0b35['getSuggestion'](_0x56478f)['getRanges'](),_0x2d3125=_0x53e3e3['plugins']['get']('Users')['me'];for(const _0x62cfea of _0x4e0b35['getSuggestions']()){if(!_0x62cfea['isInContent']||_0x62cfea['author']!=_0x2d3125)continue;if('formatBlock'!=_0x62cfea['type']||'tablePasteCell'!=_0x62cfea['subType'])continue;if(_0x62cfea['getRanges']()['every'](_0xd0d3ec=>_0x1c165a['some'](_0x5af216=>_0x5af216['containsRange'](_0xd0d3ec,!0x0)))){for(const _0x904cb6 of _0x62cfea['getAllAdjacentSuggestions']())_0x904cb6['isInContent']&&(_0x904cb6['discard'](),_0x3baae7=!0x0);}}}return _0x3baae7;}),_0x53e3e3['model']['document']['registerPostFixer'](_0x35e281=>{const _0x42e39f=_0x53e3e3['commands']['get']('redo');if(!_0x42e39f||!_0x42e39f['_createdBatches']['has'](_0x35e281['batch']))return!0x1;let _0x265ed0=!0x1;const _0x31d0ee=_0x53e3e3['plugins']['get']('Users')['me'],_0x143340=_0x53e3e3['model']['document']['differ']['getChanges'](),_0x271b73=Array['from'](_0x53e3e3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3b5906,data:_0xe2aabc})=>{const {group:_0x4f55bb,subType:_0x564cb0,authorId:_0x21be77}=_0x4e0b35['_splitMarkerName'](_0x3b5906);return'suggestion'==_0x4f55bb&&'tablePaste'==_0x564cb0&&_0x21be77==_0x31d0ee['id']&&!_0xe2aabc['oldRange'];});for(const _0x3832a2 of _0x143340){if('insert'!=_0x3832a2['type']||'tableCellSuggestion'!=_0x3832a2['name']||0x1!=_0x3832a2['length'])continue;const _0x85375c=_0x35e281['createRange'](_0x3832a2['position'],_0x3832a2['position']['getShiftedBy'](0x1));if(!_0x271b73['find'](({data:_0xa05e4})=>_0xa05e4['newRange']['isEqual'](_0x85375c))){for(const {name:_0x2d7751,data:_0x383afb}of _0x271b73)if(_0x85375c['containsRange'](_0x383afb['newRange'])){_0x35e281['updateMarker'](_0x2d7751,{'range':_0x85375c}),_0x265ed0=!0x0;break;}}}return _0x265ed0;}),_0x53e3e3['model']['document']['registerPostFixer'](_0x1f4197=>{let _0x45dd8d=!0x1;const _0x575c12=_0x53e3e3['plugins']['get']('Users')['me'],_0x2f2728=_0x4e0b35['getSuggestions']()['filter'](_0x34e337=>_0x34e337['isInContent']&&_0x34e337['author']==_0x575c12),_0x5091e1=new Set(),_0x485984=new Set();for(const _0x3d9100 of _0x2f2728)if('tablePaste'==_0x3d9100['subType'])for(const _0x5df8a1 of _0x3d9100['getMarkers']()){const _0x3bbf45=_0x5df8a1['getRange']()['getContainedElement']();if(_0x3bbf45){if(_0x3bbf45['is']('element','tableCellSuggestion')&&Oe(_0x3bbf45)){_0x3d9100['removeMarker'](_0x5df8a1['name']),_0x5091e1['add'](_0x3bbf45),_0x45dd8d=!0x0;const _0x443548=_0x3bbf45['nextSibling'],_0x3c95ad=_0x3bbf45['previousSibling'],_0x2f5df4=_0x443548&&_0x443548['is']('element','tableCellSuggestion'),_0x1f5147=_0x3c95ad&&_0x3c95ad['is']('element','tableCellSuggestion');_0x2f5df4&&!_0x5091e1['has'](_0x443548)&&_0x485984['add'](_0x443548),_0x1f5147&&!_0x5091e1['has'](_0x3c95ad)&&_0x485984['add'](_0x3c95ad);}else _0x3bbf45['is']('element','paragraph')&&_0x3bbf45['isEmpty']&&(_0x3d9100['removeMarker'](_0x5df8a1['name']),_0x45dd8d=!0x0);}}else{if('tablePasteCell'==_0x3d9100['subType']){if(!_0x3d9100['attributes']||!_0x3d9100['attributes']['tablePasteChainId'])continue;const _0x171dc6=_0x3d9100['attributes']['markerAttributes'];if(_0x171dc6&&Object['keys'](_0x171dc6)['length'])continue;const _0x115c2e=_0x3d9100['attributes']['tablePasteChainId'];let _0x4e679b=!0x0,_0x94c559=!0x0;for(const _0xa4ec2d of _0x2f2728)if(_0xa4ec2d['subType']&&_0xa4ec2d['subType']['startsWith']('tablePaste')){if(!_0xa4ec2d['attributes']['tablePasteChainId']){_0x94c559=!0x1;break;}if(_0xa4ec2d['id']!=_0x3d9100['id']&&_0xa4ec2d['attributes']['tablePasteChainId']==_0x115c2e){_0x4e679b=!0x1;break;}}_0x94c559&&_0x4e679b&&(_0x3d9100['removeMarkers'](),_0x45dd8d=!0x0);}}for(const _0x49592e of _0x5091e1)_0x1f4197['remove'](_0x49592e);for(const _0x56abe0 of _0x485984)_0x1f4197['unwrap'](_0x56abe0);return _0x45dd8d;}),_0x53e3e3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x175d59=>_0x4dde74(_0x175d59),'converterPriority':'high'}),_0x53e3e3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5f2de8,_0x4d4d8c)=>_0x4d4d8c['options']['showSuggestionHighlights']?_0x4dde74(_0x5f2de8,!0x1):null,'converterPriority':'high'});const _0x424ac2=_0x53e3e3['editing']['view'];this['listenTo'](_0x424ac2['document'],'clipboardOutput',(_0x40fd1f,_0x538565)=>{const _0x5a807f=[];for(const _0x57b26c of _0x424ac2['createRangeIn'](_0x538565['content'])['getItems']())_0x57b26c['is']('element','suggestion-td')&&_0x5a807f['push'](_0x57b26c);_0x424ac2['change'](_0x2ab620=>{for(const _0x24190f of _0x5a807f)_0x2ab620['move'](_0x2ab620['createRangeIn'](_0x24190f),_0x2ab620['createPositionBefore'](_0x24190f)),_0x2ab620['remove'](_0x24190f);});});}}function Oe(_0xa7ddcc){if(_0xa7ddcc['isEmpty'])return!0x0;const _0x17f0cd=_0xa7ddcc['getChild'](0x0);return _0x17f0cd['is']('element','paragraph')&&_0x17f0cd['isEmpty'];}function Ue(_0x49a4b6,_0x562080={},_0x388014){for(const {isAnchor:_0x501c75,cellHeight:_0x205c47,cellWidth:_0x1abf9c}of _0x388014['createTableWalker'](_0x49a4b6,{'includeAllSlots':!0x0,..._0x562080}))if(!_0x501c75||0x1!=_0x205c47||0x1!=_0x1abf9c)return!0x1;return!0x0;}class $t extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1ac101=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ac101['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1ac101['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1ac101['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ac101['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1ac101['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1ac101['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51db1f,_0x498a2e){const _0x51651e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e713f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x314474=_0x498a2e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28ebae=_0x4e713f['getColumnGroupElement'](_0x314474);let _0xa3836f=_0x28ebae?_0x4e713f['getTableColumnsWidths'](_0x28ebae):null,_0x527c55=_0x314474['getAttribute']('tableWidth')||null;const _0x5e1362=_0x498a2e['tableWidth']||_0x527c55,_0x5d15c3=_0x498a2e['columnWidths']||_0xa3836f,_0x108bf5=this['editor']['plugins']['get']('Users')['me'];for(const _0x1caea7 of _0x51651e['getSuggestions']()){const _0x26ff09=_0x1caea7['getContainedElement']();if('resizeTable'===_0x1caea7['subType']&&_0x26ff09===_0x314474){_0x1caea7['author']!==_0x108bf5&&_0x1caea7['discard']();const _0x5ed257=_0x1caea7['data']['commandParams'];_0x527c55=_0x5ed257[0x0]['tableWidth'],_0xa3836f=_0x5ed257[0x0]['columnWidths'];break;}}_0x51db1f({'table':_0x314474,'tableWidth':_0x5e1362,'columnWidths':_0x5d15c3}),_0x51651e['markBlockFormat'](_0x314474,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x527c55,'columnWidths':_0xa3836f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x545c67){if('formatBlock'!=_0x545c67['type']&&'formatInline'!=_0x545c67['type'])return;const {data:_0x51417f}=_0x545c67;if(_0x51417f&&'resizeTable'===_0x51417f['formatGroupId']){const _0x337a83='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x337a83)};}}}class Bt extends _0xa4b53f{['afterInit'](){const _0x39efc5=this['editor'];_0x39efc5['plugins']['has']('Template')&&_0x39efc5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xa4b53f{['afterInit'](){const _0x4f4ec9=this['editor'];if(!_0x4f4ec9['commands']['get']('insertTableOfContents'))return;_0x4f4ec9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x254ddf=_0x4f4ec9['plugins']['get']('TrackChangesEditing'),_0x4f3938=_0x4f4ec9['locale'];_0x254ddf['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4eeb96=>o(_0x4f3938,'ELEMENT_TABLE_OF_CONTENTS',_0x4eeb96));}}class Rt extends _0xa4b53f{['afterInit'](){const _0x4f7e6b=this['editor'];if(!_0x4f7e6b['plugins']['has']('Title'))return;const _0x3214db=_0x4f7e6b['plugins']['get']('TrackChangesEditing');_0x3214db['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4f7e6b['locale'],'ELEMENT_TITLE')),_0x4f7e6b['model']['document']['registerPostFixer'](_0x21905f=>{let _0x5917cf=!0x1;const _0x568493=Array['from'](_0x4f7e6b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xafe0ba,data:_0x520f24}of _0x568493){const {group:_0x22a5f9}=_0x3214db['_splitMarkerName'](_0xafe0ba);if('suggestion'!==_0x22a5f9||!_0x520f24['newRange'])continue;const _0x4efeb9=_0x520f24['newRange'],_0x3463a1=_0x4efeb9['end']['nodeBefore'];if(!_0x3463a1||!_0x3463a1['is']('element','title-content'))continue;if(!_0x4efeb9['start']['isTouching'](_0x4efeb9['end']))continue;const _0x3c1d83=_0x4f7e6b['model']['schema']['getNearestSelectionRange'](_0x4efeb9['end'],'forward');if(_0x3c1d83&&_0x3c1d83['isCollapsed']){const _0x2ad753=_0x21905f['createRange'](_0x4efeb9['start'],_0x3c1d83['start']);_0x2ad753['isEqual'](_0x4efeb9)||(_0x21905f['updateMarker'](_0xafe0ba,{'range':_0x2ad753}),_0x5917cf=!0x0);}_0x5917cf||(_0x21905f['removeMarker'](_0xafe0ba),_0x5917cf=!0x0);}return _0x5917cf;});}}class Tt extends _0xa4b53f{['afterInit'](){const _0x4b15ec=this['editor'],_0x9bf790=_0x4b15ec['plugins']['get']('TrackChangesEditing');_0x4b15ec['plugins']['has']('Uploadcare')&&(_0x9bf790['enableCommand']('uploadcare'),_0x4b15ec['plugins']['has']('UploadcareImageEdit')&&(_0x9bf790['enableCommand']('uploadcareImageEdit'),_0x9bf790['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x9bf790['registerBlockAttribute']('uploadcareImageId'),_0x9bf790['descriptionFactory']['registerDescriptionCallback'](_0x340ffb=>{if('attribute'!=_0x340ffb['type'])return;const {data:_0x5bf302}=_0x340ffb;return _0x5bf302&&'uploadcareImageId'==_0x5bf302['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xa4b53f{['afterInit'](){const _0x2e62d8=this['editor'],_0x5dd8ef=_0x2e62d8['plugins']['get']('TrackChangesEditing');_0x2e62d8['plugins']['has']('UndoEditing')&&(_0x5dd8ef['enableCommand']('undo'),_0x5dd8ef['enableCommand']('redo'));}}class Et extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x233f5a=this['editor'];if(!_0x233f5a['plugins']['has']('TableCaptionEditing'))return;_0x233f5a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0xa4b53f{['tableProperties'];['tableCellProperties'];constructor(_0x46fad7){super(_0x46fad7),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 _0x369c59=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x10529f of this['tableProperties'])_0x369c59['enableCommand'](_0x10529f,(_0x396f3a,_0x4f7eca)=>{const _0x42587a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x10529f,[_0x42587a],this['tableProperties'],'tableProperties',_0x396f3a,_0x4f7eca);});_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x369c59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4d3bd0,_0x5a149a)=>this['handleDiscardAction'](this['tableProperties'],_0x4d3bd0,_0x5a149a)),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40e91f of this['tableCellProperties'])_0x369c59['enableCommand'](_0x40e91f,(_0x85837a,_0x25e844)=>{const _0x3cb1e2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40e91f,_0x3cb1e2,this['tableCellProperties'],'tableCellProperties',_0x85837a,_0x25e844);});_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x369c59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x16b399,_0x5a8394)=>this['handleDiscardAction'](this['tableCellProperties'],_0x16b399,_0x5a8394)),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x369c59['descriptionFactory']['registerDescriptionCallback'](_0x283d44=>this['handleSuggestionDescription'](_0x283d44));}['_handlePropertyChange'](_0x20470c,_0x14c0aa,_0x1dc711,_0x514800,_0x4e6ec2,_0x38a617){const _0x513cc7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x38a617['batch'],()=>{for(const _0x5c173a of _0x14c0aa){if(this['_getSuggestion'](_0x5c173a,_0x514800))_0x4e6ec2(_0x38a617);else{const _0x496e86={};for(const _0x3dead2 of _0x1dc711){const _0x5f259f=_0x5c173a['getAttribute'](_0x3dead2);void 0x0!==_0x5f259f&&(_0x496e86[_0x3dead2]=_0x5f259f);}_0x4e6ec2(_0x38a617),_0x513cc7['markBlockFormat'](_0x5c173a,{'commandParams':[_0x496e86]},[],_0x514800);}}});}['handleDiscardAction'](_0x5c42c0,_0x5a71a8,_0x5b8386){const _0x4cf34c=_0x5a71a8[0x0]['start']['nodeAfter'],_0x97deb9=_0x5b8386['commandParams'][0x0];this['editor']['model']['change'](_0x1912fb=>{for(const _0x4d9706 of _0x5c42c0)void 0x0!==_0x97deb9[_0x4d9706]?_0x1912fb['setAttribute'](_0x4d9706,_0x97deb9[_0x4d9706],_0x4cf34c):_0x1912fb['removeAttribute'](_0x4d9706,_0x4cf34c);});}['handleSuggestionDescription'](_0xe195fd){if(_0xe195fd['data'])switch(_0xe195fd['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x55e756,_0x210101){const _0x397cac=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x22cc49 of _0x397cac['getSuggestions']({'skipNotAttached':!0x0})){const _0x124adb=_0x22cc49['getContainedElement']();if(_0x22cc49['subType']===_0x210101&&_0x124adb===_0x55e756)return _0x22cc49;}return null;}}const m='$elementName';class p extends _0xa4b53f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x110e12,_0x2f23c0,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5331ec){super(_0x5331ec),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x156d88,_0x175454,_0x436521,_0x1658e3)=>{this['_model']['change'](()=>{for(const _0x388fdc of[..._0x1658e3,..._0x436521])this['_model']['markers']['has'](_0x388fdc)&&_0x5331ec['editing']['reconvertMarker'](_0x388fdc);});}),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']=_0x5331ec['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5331ec['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5331ec['config']['get']('trackChanges.trackFormatChanges'),_0x5331ec['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5331ec['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5331ec,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x10ccf5=this['editor'],_0x143609=(_0x134932,_0x2d80ec)=>{if('attribute'!=_0x134932)return'ck-suggestion-marker-'+_0x134932;const _0x222c77=_0x2d80ec['split']('|')[0x0];return this['_isBlockAttribute'](_0x222c77)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x10ccf5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x536656=>{const {id:_0x9268d8,authorId:_0x432fcf,type:_0x1e4ebc,subType:_0x2e61a9}=this['_splitMarkerName'](_0x536656['markerName']),_0x3a1420=['ck-suggestion-marker',_0x143609(_0x1e4ebc,_0x2e61a9)];let _0x285849=0xbb8;return this['activeMarkers']['includes'](_0x536656['markerName'])&&(_0x3a1420['push']('ck-suggestion-marker--active'),_0x285849=0xbc2),'deletion'==_0x1e4ebc&&(_0x285849+=0x5),{'classes':_0x3a1420,'attributes':{'data-suggestion':_0x9268d8,'data-author-id':_0x432fcf},'priority':_0x285849};}}),_0x10ccf5['conversion']['for']('dataDowncast')['add'](_0x387f48=>{_0x387f48['on']('addMarker:suggestion',(_0x543f0e,_0x437c33,_0x4df75b)=>{if(!_0x4df75b['options']['showSuggestionHighlights'])return;const _0x5d36d5=_0x437c33['item'];if(!_0x5d36d5)return;const _0x1191c5=_0x4df75b['mapper']['toViewElement'](_0x5d36d5);_0x10ccf5['model']['schema']['isObject'](_0x5d36d5)&&_0x1191c5&&!_0x1191c5['getCustomProperty']('widget')&&_0x1191c5['is']('containerElement')&&_0x517cc2(_0x1191c5,_0x4df75b['writer']);},{'priority':'high'});}),_0x10ccf5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5237e7,_0x4730c6)=>{if(!_0x4730c6['options']['showSuggestionHighlights'])return null;const {type:_0x2a3c03,subType:_0x1a6bc0}=this['_splitMarkerName'](_0x5237e7['markerName']);return{'classes':['ck-suggestion-marker',_0x143609(_0x2a3c03,_0x1a6bc0)],'priority':0xbb8};}});const _0x1f2087=({showActiveMarkers:_0x44ff0e=!0x0,isAttributeSuggestion:_0x7ddc4d=!0x1}={})=>(_0x1096d1,_0x449006,_0x3a3126)=>{if(!_0x449006['item'])return;const {id:_0x34f7e7,authorId:_0x4005d5}=this['_splitMarkerName'](_0x449006['markerName']);if(_0x7ddc4d){const _0xacc2cd=this['_suggestions']['get'](_0x34f7e7),_0x5e574d=this['_getAttributeKey'](_0xacc2cd);if(!this['_isBlockAttribute'](_0x5e574d))return;}if(_0x449006['item']['is']('selection'))return void _0x3a3126['consumable']['consume'](_0x449006['item'],_0x1096d1['name']);const _0x27a86f=_0x3a3126['mapper']['toViewElement'](_0x449006['item']);if(_0x449006['item']['is']('element')&&_0x10ccf5['model']['schema']['isBlock'](_0x449006['item'])&&!_0x27a86f['getCustomProperty']('addHighlight')){_0x3a3126['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x27a86f),_0x3a3126['writer']['setAttribute']('data-suggestion',_0x34f7e7,_0x27a86f),_0x3a3126['writer']['setAttribute']('data-author-id',_0x4005d5,_0x27a86f),_0x3a3126['mapper']['bindElementToMarker'](_0x27a86f,_0x449006['markerName']),_0x44ff0e&&(this['activeMarkers']['includes'](_0x449006['markerName'])?_0x3a3126['writer']['addClass']('ck-suggestion-marker--active',_0x27a86f):_0x3a3126['writer']['removeClass']('ck-suggestion-marker--active',_0x27a86f));for(const _0xadc527 of _0x10ccf5['model']['createRangeIn'](_0x449006['item'])['getItems']())_0x3a3126['consumable']['consume'](_0xadc527,_0x1096d1['name']);_0x3a3126['consumable']['consume'](_0x449006['item'],_0x1096d1['name']);}};_0x10ccf5['conversion']['for']('dataDowncast')['add'](_0x46b780=>{_0x46b780['on']('addMarker:suggestion:formatBlock',(_0xa50941,_0x2af5dc,_0x28bcbb)=>{_0x28bcbb['options']['showSuggestionHighlights']&&_0x1f2087({'showActiveMarkers':!0x1})(_0xa50941,_0x2af5dc,_0x28bcbb);},{'priority':'highest'});}),_0x10ccf5['conversion']['for']('dataDowncast')['add'](_0x464344=>{_0x464344['on']('addMarker:suggestion:attribute',(_0x544db0,_0x1b888d,_0x15203f)=>{_0x15203f['options']['showSuggestionHighlights']&&_0x1f2087({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x544db0,_0x1b888d,_0x15203f);},{'priority':'highest'});}),_0x10ccf5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5013e5,_0x4e0366)=>_0x4e0366['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5013e5['substr'](0xb)}}),_0x10ccf5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x394ea,{writer:_0x27e8b2})=>{let _0x3e6e82='suggestion:'+_0x394ea['getAttribute']('suggestion-type')+':'+_0x394ea['getAttribute']('id');return _0x394ea['getAttribute']('marker-count')&&(_0x3e6e82+=':'+_0x394ea['getAttribute']('marker-count')),_0x27e8b2['createElement']('$marker',{'data-name':_0x3e6e82});}}),_0x10ccf5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x134093=>{_0x134093['on']('addMarker:suggestion:formatBlock',_0x1f2087(),{'priority':'high'});}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x36a670=>{_0x36a670['on']('addMarker:suggestion:attribute',_0x1f2087({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x1d51fe=>{_0x1d51fe['on']('removeMarker:suggestion:formatBlock',(_0x312739,_0x541b7a,_0x3e8713)=>{const _0x50ecb5=_0x3e8713['mapper']['markerNameToElements'](_0x541b7a['markerName']);if(_0x50ecb5){for(const _0x5bdcf9 of _0x50ecb5)_0x5bdcf9['getCustomProperty']('addHighlight')||(_0x3e8713['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5bdcf9),_0x3e8713['writer']['removeAttribute']('data-suggestion',_0x5bdcf9),_0x3e8713['writer']['removeAttribute']('data-author-id',_0x5bdcf9),_0x3e8713['mapper']['unbindElementFromMarkerName'](_0x5bdcf9,_0x541b7a['markerName']));}},{'priority':'high'});}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x19da82=>{_0x19da82['on']('removeMarker:suggestion:attribute',(_0x5c237b,_0xc5daba,_0xe3df77)=>{const _0x4c0f3e=_0xe3df77['mapper']['markerNameToElements'](_0xc5daba['markerName']);if(!_0x4c0f3e)return;const {id:_0x308a32}=this['_splitMarkerName'](_0xc5daba['markerName']),_0x193bb6=this['_suggestions']['get'](_0x308a32),_0x1f6cf3=this['_getAttributeKey'](_0x193bb6);if(this['_isBlockAttribute'](_0x1f6cf3)){for(const _0x2a9b04 of _0x4c0f3e)_0x2a9b04['getCustomProperty']('addHighlight')||(_0xe3df77['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2a9b04),_0xe3df77['writer']['removeAttribute']('data-suggestion',_0x2a9b04),_0xe3df77['writer']['removeAttribute']('data-author-id',_0x2a9b04),_0xe3df77['mapper']['unbindElementFromMarkerName'](_0x2a9b04,_0xc5daba['markerName']));}},{'priority':'high'});}),_0x10ccf5['model']['document']['registerPostFixer'](_0x6abef6=>{let _0x3ac9bc=!0x1;const _0x1f83f9=Array['from'](_0x10ccf5['model']['document']['differ']['getChangedMarkers']()),_0x3c894b=new Set();for(const {name:_0x168928,data:_0x391db1}of _0x1f83f9){const {group:_0x5131b0,type:_0x4e848f,subType:_0x2a90b2,id:_0x152ba0}=this['_splitMarkerName'](_0x168928);if('suggestion'!==_0x5131b0)continue;const _0x385824=this['_suggestions']['get'](_0x152ba0);if(null!=_0x391db1['newRange']){'formatInline'==_0x4e848f&&(_0x3ac9bc=_0x3ac9bc||Lt(_0x391db1['newRange'],_0x168928,_0x6abef6,_0x10ccf5['model']['schema']));const _0x19a899='attribute'==_0x4e848f&&this['_isBlockAttribute'](_0x2a90b2['split']('|')[0x0]);if(_0x391db1['newRange']['isCollapsed']||'$graveyard'==_0x391db1['newRange']['root']['rootName']||'formatBlock'==_0x4e848f&&!Ht(_0x391db1['newRange'])||_0x19a899&&!Ht(_0x391db1['newRange'])||'deletion'==_0x4e848f&&!(!Ft(_0x29a202=_0x391db1['newRange'])&&!function(_0x4252a7){return _0x4252a7['start']['parent']==_0x4252a7['end']['nodeBefore']&&_0x4252a7['start']['isAtEnd'];}(_0x29a202)))_0x6abef6['removeMarker'](_0x168928),_0x3ac9bc=!0x0;else{if(!_0x385824||!_0x385824['isInContent'])continue;if(_0x391db1['newRange']&&_0x391db1['oldRange']&&_0x391db1['newRange']['isEqual'](_0x391db1['oldRange']))continue;_0x3c894b['add'](_0x385824);}}}var _0x29a202;return _0x3c894b['size']>0x0&&(_0x3ac9bc=!!this['_joinWithAdjacentSuggestions'](_0x3c894b)||_0x3ac9bc),_0x3ac9bc;}),_0x10ccf5['model']['document']['registerPostFixer'](_0x1111f4=>{let _0x145a61=!0x1;for(const _0x3e26f6 of _0x10ccf5['model']['document']['differ']['getChanges']())if('insert'==_0x3e26f6['type'])for(const _0x3b16e7 of this['_suggestions']['values']()){if(_0x3b16e7['isMultiRange']||!_0x3b16e7['isInContent'])continue;const _0x5200db='formatBlock'==_0x3b16e7['type'],_0x9bfbde=this['_getAttributeKey'](_0x3b16e7),_0x55c924=_0x9bfbde&&this['_isBlockAttribute'](_0x9bfbde);if(!_0x5200db&&!_0x55c924)continue;const _0x4d4cbb=_0x3b16e7['getFirstRange']();if(_0x4d4cbb['start']['parent']!=_0x4d4cbb['end']['parent']&&!_0x4d4cbb['end']['isAtEnd']){const _0x13c88c=_0x10ccf5['model']['createPositionAt'](_0x4d4cbb['start']['nodeAfter'],'end'),_0xee098f=_0x10ccf5['model']['createRange'](_0x4d4cbb['start'],_0x13c88c);_0x1111f4['updateMarker'](_0x3b16e7['getFirstMarker'](),{'range':_0xee098f}),_0x145a61=!0x0;}}return _0x145a61;}),_0x10ccf5['model']['document']['registerPostFixer'](_0x58c0a9=>this['_processAttributeChanges'](_0x58c0a9)),_0x10ccf5['model']['document']['registerPostFixer'](_0x603150=>!_0x603150['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x603150)),_0x10ccf5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x10ccf5['model']['document']['on']('change:data',(_0x1229de,_0x5b128e)=>{if(!_0x5b128e['isLocal']||_0x5b128e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x299fe5=_0x10ccf5['model']['document']['differ']['getChanges']();if(0x0==_0x299fe5['length'])return;const _0x23e01d=[],_0x2a5586=_0x299fe5['filter'](_0x369cd6=>'attribute'==_0x369cd6['type']),_0x2bc7ed=_0x299fe5['filter'](_0x34fa43=>'insert'==_0x34fa43['type']&&'$text'!=_0x34fa43['name']);for(const _0x11f2c8 of _0x2a5586)this['_isRegisteredAttribute'](_0x11f2c8['attributeKey'])&&_0x23e01d['push']({'key':_0x11f2c8['attributeKey'],'newValue':_0x11f2c8['attributeNewValue'],'oldValue':_0x11f2c8['attributeOldValue'],'range':qt(_0x11f2c8['range'],_0x10ccf5['model'])});for(const _0x4fc7ae of _0x2bc7ed){if('rename'!=_0x4fc7ae['action']&&'refresh'!=_0x4fc7ae['action'])continue;const _0x92c3bf=zt(_0x4fc7ae['position']['nodeAfter'],_0x10ccf5['model']),_0x4e4622=_0x4fc7ae['before'];'rename'==_0x4fc7ae['action']&&_0x23e01d['push']({'key':m,'newValue':_0x4fc7ae['name'],'oldValue':_0x4e4622['name'],'range':_0x92c3bf});for(const [_0x12f7a2,_0x2d3543]of _0x4e4622['attributes']){if(!this['_isRegisteredAttribute'](_0x12f7a2))continue;const _0x514d25=_0x4fc7ae['attributes']['get'](_0x12f7a2);_0x2d3543!==_0x514d25&&_0x23e01d['push']({'key':_0x12f7a2,'newValue':_0x514d25,'oldValue':_0x2d3543,'range':_0x92c3bf});}for(const [_0x2cb4f9,_0x357c64]of _0x4fc7ae['attributes'])this['_isRegisteredAttribute'](_0x2cb4f9)&&(_0x4e4622['attributes']['has'](_0x2cb4f9)||_0x23e01d['push']({'key':_0x2cb4f9,'newValue':_0x357c64,'oldValue':null,'range':_0x92c3bf}));}0x0!=_0x23e01d['length']&&_0x10ccf5['model']['enqueueChange'](_0x5b128e,_0x465305=>{const _0x64c625=_0xf688c7();for(const {range:_0x95a33a,key:_0x15045a,oldValue:_0x484331,newValue:_0x32e2a2}of _0x23e01d)this['markAttributeChange'](_0x95a33a,_0x15045a,_0x484331,_0x32e2a2,{'groupId':_0x64c625});this['_reduceExistingSuggestions'](_0x465305,_0x23e01d);});},{'priority':'lowest'}),_0x10ccf5['model']['markers']['on']('update:suggestion',(_0x247331,_0x1e407e,_0x1fbca4)=>{if(null==_0x1fbca4){const {id:_0x5ed0c8}=this['_splitMarkerName'](_0x1e407e['name']),_0x46d171=this['_suggestions']['get'](_0x5ed0c8);_0x46d171&&_0x46d171['addMarkerName'](_0x1e407e['name']);}}),_0x10ccf5['model']['document']['on']('change:data',()=>{const _0x21b468=Array['from'](_0x10ccf5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23b97e=>'suggestion'===this['_splitMarkerName'](_0x23b97e['name'])['group']);if(0x0===_0x21b468['length'])return;_0x21b468['sort']((_0x76e0e3,_0x191c99)=>{const _0x1a6798=_0x76e0e3['data']['oldRange'],_0x170303=_0x191c99['data']['oldRange'];return null===_0x1a6798&&null===_0x170303?0x0:null===_0x1a6798&&null!==_0x170303?-0x1:null!==_0x1a6798&&null===_0x170303?0x1:_0x1a6798['start']['isBefore'](_0x170303['start'])?-0x1:0x1;});const _0x4713c3=new Set(),_0x37f746=new Set();for(const {name:_0x18676e,data:_0x7cf58}of _0x21b468){const {id:_0x2a7d90}=this['_splitMarkerName'](_0x18676e);if(null===_0x7cf58['oldRange']){const _0x2db97e=this['_handleNewSuggestionMarker'](_0x18676e);_0x37f746['add'](_0x2db97e);}else{const _0x3e5026=this['_suggestions']['get'](_0x2a7d90);null!==_0x7cf58['newRange']||_0x3e5026['isInContent']?(_0x4713c3['add'](_0x3e5026['head']),_0x37f746['add'](_0x3e5026)):this['_removeSuggestion'](_0x3e5026);}}_0x37f746['size']>0x0&&this['_refreshSuggestionsChain'](_0x37f746);for(const _0x409f83 of _0x4713c3)this['fire']('suggestionChanged',_0x409f83);}),_0x10ccf5['model']['on']('applyOperation',(_0x466bb1,_0x1c978a)=>{const _0x53ccf6=_0x1c978a[0x0];if(!this['_suggestions']['size'])return;if(!_0x53ccf6['isDocumentOperation'])return;if(_0x53ccf6['batch']['isUndo']||!_0x53ccf6['batch']['isLocal'])return;let _0x404db9,_0x285135;switch(_0x53ccf6['type']){case'insert':_0x404db9=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['position']),_0x285135=_0x404db9['getShiftedBy'](_0x53ccf6['howMany']);break;case'split':_0x404db9=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['splitPosition']),_0x285135=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['moveTargetPosition']);break;case'move':_0x404db9=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['targetPosition']),_0x285135=_0x404db9['getShiftedBy'](_0x53ccf6['howMany']);break;default:return;}const _0x17e298=_0x10ccf5['model']['createRange'](_0x404db9,_0x285135);_0x10ccf5['model']['change'](()=>{for(const {suggestion:_0x1e8b0d,meta:_0x5807cf}of this['_findSuggestions'](_0x17e298)){if(_0x1e8b0d['isMultiRange'])continue;if('formatInline'==_0x1e8b0d['type'])continue;const _0x3efc53=this['_getAttributeKey'](_0x1e8b0d);if(_0x3efc53&&this['_isBlockAttribute'](_0x3efc53)&&'split'!=_0x53ccf6['type'])continue;const _0x365fce=_0x1e8b0d['data']&&_0x1e8b0d['data']['multipleBlocks'];('formatBlock'!=_0x1e8b0d['type']||'split'==_0x53ccf6['type']&&!_0x365fce)&&(_0x5807cf['containsRangeInObject']||'insertion'==_0x1e8b0d['type']&&_0x5807cf['isOwn']||_0x1e8b0d['getFirstRange']()['containsRange'](_0x17e298)&&this['_breakSuggestionMarker'](_0x1e8b0d,_0x404db9,_0x285135));}});},{'priority':'lowest'}),_0x10ccf5['model']['on']('deleteContent',(_0x10a2e0,_0x28eee0)=>{const _0x4181ff=_0x28eee0[0x0],_0x2f98b3=_0x28eee0[0x1];if(_0x2f98b3&&_0x2f98b3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4181ff['isCollapsed'])return;const _0x215846=_0x10ccf5['model']['schema'],{start:_0x42fd6f,end:_0x60e220}=_0x4181ff['getFirstRange'](),_0x385f20=_0x42fd6f['nodeAfter']&&_0x215846['isLimit'](_0x42fd6f['nodeAfter'])?null:_0x215846['getNearestSelectionRange'](_0x42fd6f,'forward'),_0x247c40=_0x60e220['nodeBefore']&&_0x215846['isLimit'](_0x60e220['nodeBefore'])?null:_0x215846['getNearestSelectionRange'](_0x60e220,'backward'),_0x25f6b5=_0x10ccf5['model']['createRange'](_0x385f20?_0x385f20['start']:_0x42fd6f,_0x247c40?_0x247c40['end']:_0x60e220);_0x10ccf5['model']['change'](_0x4dac91=>{this['markDeletion'](_0x25f6b5);const _0x2552b8=_0x10ccf5['model']['schema']['getNearestSelectionRange'](_0x25f6b5['start']);_0x4181ff['is']('documentSelection')?_0x4dac91['setSelection'](_0x2552b8):_0x4181ff['setTo'](_0x2552b8);}),_0x10a2e0['stop']();},{'priority':_0x2435d0['normal']+0xa}),_0x10ccf5['model']['on']('insertContent',(_0x16f061,_0x5ed21d)=>{const _0x112303=_0x5ed21d[_0x5ed21d['length']-0x1];_0x112303&&_0x112303['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x10ccf5['model']['change'](()=>{let _0x5653fd=_0x10ccf5['model']['insertContent'](_0x5ed21d[0x0],_0x5ed21d[0x1],_0x5ed21d[0x2],{'forceDefaultExecution':!0x0});if(!_0x5653fd)return;_0x16f061['return']=_0x5653fd['clone']();const _0x2fd6f6=_0x5653fd['end']['nodeBefore'],_0x3f4656=_0x10ccf5['model']['schema'];_0x2fd6f6&&_0x3f4656['isBlock'](_0x2fd6f6)&&!_0x3f4656['isObject'](_0x2fd6f6)&&(_0x5653fd=_0x10ccf5['model']['createRange'](_0x5653fd['start'],_0x10ccf5['model']['createPositionAt'](_0x2fd6f6,'end'))),this['markInsertion'](_0x5653fd);}),_0x16f061['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x332f0=new O(_0x10ccf5,this['_suggestions']);_0x10ccf5['commands']['add']('acceptSuggestion',_0x332f0),this['enableCommand']('acceptSuggestion');const _0x357240=new R(_0x10ccf5,this['_suggestions']);_0x10ccf5['commands']['add']('discardSuggestion',_0x357240),this['enableCommand']('discardSuggestion'),_0x10ccf5['commands']['add']('acceptAllSuggestions',new x(_0x10ccf5,_0x332f0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x10ccf5['commands']['add']('discardAllSuggestions',new x(_0x10ccf5,_0x357240,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x10ccf5['commands']['add']('acceptSelectedSuggestions',new E(_0x10ccf5,_0x332f0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x10ccf5['commands']['add']('discardSelectedSuggestions',new E(_0x10ccf5,_0x357240,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4cf2c9=_0x10ccf5['plugins']['get']('CommentsRepository');this['listenTo'](_0x4cf2c9,'addComment',(_0x37006e,{threadId:_0x3876cd})=>{const _0x57ee0c=this['_suggestions']['get'](_0x3876cd);_0x57ee0c&&_0x57ee0c['commentThread']&&0x1===_0x57ee0c['commentThread']['length']&&this['_updateSuggestionData'](_0x3876cd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4cf2c9,'removeComment',(_0x56e92d,{threadId:_0x5d8223})=>{const _0x2c8202=this['_suggestions']['get'](_0x5d8223);_0x2c8202&&_0x2c8202['commentThread']&&!_0x2c8202['commentThread']['length']&&this['_updateSuggestionData'](_0x5d8223,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x31d0dd){const _0x78d28=_0x52e74f([0x64,0x66,0x38,0x65,0x70,0x57,0x4b,0x45,0x5a,0x4c,0x46,0x49,0x31,0x32,0x67,0x41,0x58,0x6a,0x55,0x73,0x76,0x6f,0x35,0x47,0x36,0x77,0x4e,0x4d,0x79,0x62,0x61,0x44,0x48,0x68,0x56,0x71,0x42,0x75,0x34,0x37,0x72,0x33,0x6d,0x51,0x59,0x63,0x43,0x53,0x39,0x6e,0x6c,0x52,0x4a,0x4f,0x78,0x50,0x74,0x54,0x6b,0x30,0x7a,0x69]),_0x6ca1d4=0x24e4c314,_0x555fb6=0x24e3a31c^_0x6ca1d4,_0x48c58e=window[_0x52e74f([0x44,0x61,0x74,0x65])][_0x52e74f([0x6e,0x6f,0x77])](),_0x162710=_0x31d0dd[_0x52e74f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3878b1=new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e904a=>{_0x162710[_0x52e74f([0x6f,0x6e,0x63,0x65])](_0x52e74f([0x72,0x65,0x61,0x64,0x79]),_0x4e904a);}),_0x5c619a={[_0x52e74f([0x6b,0x74,0x79])]:_0x52e74f([0x45,0x43]),[_0x52e74f([0x75,0x73,0x65])]:_0x52e74f([0x73,0x69,0x67]),[_0x52e74f([0x63,0x72,0x76])]:_0x52e74f([0x50,0x2d,0x32,0x35,0x36]),[_0x52e74f([0x78])]:_0x52e74f([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]),[_0x52e74f([0x79])]:_0x52e74f([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]),[_0x52e74f([0x61,0x6c,0x67])]:_0x52e74f([0x45,0x53,0x32,0x35,0x36])},_0x3e1913=_0x162710[_0x52e74f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52e74f([0x67,0x65,0x74])](_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44fa4d(){let _0x154947,_0x41f77b=null,_0x4dbc9f=null;try{if(_0x3e1913==_0x52e74f([0x47,0x50,0x4c]))return _0x52e74f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x154947=_0xc7cf86(),!_0x154947)return _0x52e74f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x154947[_0x52e74f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4dbc9f=_0x496880(_0x154947[_0x52e74f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x154947[_0x52e74f([0x6a,0x74,0x69])])),await _0x51704c()?_0x4b670e()?_0xf805ab()?_0x52e74f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12a6f7()?(_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52e74f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41f77b=_0x3a0b76(_0x52e74f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52e74f([0x74,0x72,0x69,0x61,0x6c])&&(_0x41f77b=_0x3a0b76(_0x52e74f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f66f1()):_0x52e74f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52e74f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52e74f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ca499){return _0x52e74f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf805ab(){const _0x41288d=[_0x52e74f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52e74f([0x74,0x72,0x69,0x61,0x6c])][_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48c58e/0x3e8:0xe10*_0x555fb6;return _0x154947[_0x52e74f([0x65,0x78,0x70])]<_0x41288d;}function _0x4b670e(){const _0x32687d=_0x154947[_0x52e74f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x32687d)return!0x1;if(_0x32687d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x2a])))return!0x0;if(_0x32687d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x54,0x43])))return!0x0;if(_0x32687d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x52,0x54,0x43]))){if(_0x32c884())return!0x0;if(_0x21b090()||_0x3f4b04())return!0x0;}return!0x1;}function _0x12a6f7(){const _0x59345d=_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59345d||0x0==_0x59345d[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4db4fc}=new URL(window[_0x52e74f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59345d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db4fc))return!0x0;const _0xe5164b=_0x4db4fc[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e]));return _0x59345d[_0x52e74f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39fcc3=>_0x39fcc3[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x2a])))[_0x52e74f([0x6d,0x61,0x70])](_0x2ddf86=>_0x2ddf86[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e])))[_0x52e74f([0x73,0x6f,0x6d,0x65])](_0x1b7a57=>_0xe5164b[_0x52e74f([0x65,0x76,0x65,0x72,0x79])]((_0x3b834e,_0x39f2d3)=>_0x1b7a57[_0x39f2d3]===_0x3b834e||_0x1b7a57[_0x39f2d3]===_0x52e74f([0x2a])));}function _0x2f66f1(){return _0x41f77b&&_0x4dbc9f?new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fdc1d,_0x2f44e4)=>{_0x41f77b[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x3fdc1d,_0x2f44e4),_0x4dbc9f[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x35f02d=>{_0x35f02d!=_0x52e74f([0x56,0x61,0x6c,0x69,0x64])&&_0x3fdc1d(_0x35f02d);},_0x2f44e4);}):_0x41f77b||_0x4dbc9f||_0x52e74f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x496880(_0x332a22,_0x3f7d0a){return new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f39f8=>{if(_0x2cd78f())return _0x3f39f8(_0x52e74f([0x56,0x61,0x6c,0x69,0x64]));_0x594a3a(),_0x162710[_0x52e74f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52e74f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe4a051=!0x1;const _0x22869f=_0xf688c7();function _0x31a751(_0x58fe09){return!!_0x58fe09&&(typeof _0x58fe09===_0x52e74f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58fe09===_0x52e74f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58fe09[_0x52e74f([0x74,0x68,0x65,0x6e])]===_0x52e74f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58fe09[_0x52e74f([0x63,0x61,0x74,0x63,0x68])]===_0x52e74f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2424c3(_0x383812){_0x924b31(_0x383812)[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x250c66=>{if(!_0x250c66||_0x250c66[_0x52e74f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52e74f([0x6f,0x6b]))return _0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f03c4(_0x2984fe(_0x22869f+_0x3f7d0a))!=_0x250c66[_0x52e74f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52e74f([0x56,0x61,0x6c,0x69,0x64]);})[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x1e46d1=>(_0x9fca54(),_0x1e46d1),()=>{const _0xa7a33b=_0x29797e();return null==_0xa7a33b?(_0x9fca54(),_0x52e74f([0x56,0x61,0x6c,0x69,0x64])):_0x52e74f(_0x48c58e-_0xa7a33b>(0xe84714^_0x6ca1d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x3f39f8)[_0x52e74f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f39f8(_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x426eae=0x24d22d94^_0x6ca1d4;function _0x9fca54(){const _0xc9a13e=_0x52e74f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f03c4(_0x2984fe(_0x332a22)),_0x329ae0=_0xdf0145(_0x2f03c4(window[_0x52e74f([0x4d,0x61,0x74,0x68])][_0x52e74f([0x63,0x65,0x69,0x6c])](_0x48c58e/_0x426eae)));window[_0x52e74f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52e74f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc9a13e,_0x329ae0);}function _0x29797e(){const _0x8fa865=_0x52e74f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f03c4(_0x2984fe(_0x332a22)),_0x3b8caa=window[_0x52e74f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52e74f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8fa865);return _0x3b8caa?window[_0x52e74f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdf0145(_0x3b8caa),0x10)*_0x426eae:null;}function _0x924b31(_0x5a80a7){return new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x565bd7,_0x8e3833)=>{_0x5a80a7[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x565bd7,_0x8e3833),window[_0x52e74f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8e3833,0x24e517d4^_0x6ca1d4);});}}_0x162710[_0x52e74f([0x6f,0x6e])](_0x52e74f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22c60c,_0x23c41a)=>{if(_0x23c41a[0x0]!=_0x332a22)return _0x3f39f8(_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23c41a[0x1]={..._0x23c41a[0x1],[_0x52e74f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x22869f};},{[_0x52e74f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52e74f([0x68,0x69,0x67,0x68])}),_0x162710[_0x52e74f([0x6f,0x6e])](_0x52e74f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19926f=>{_0x31a751(_0x19926f[_0x52e74f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe4a051=!0x0,_0x2424c3(_0x19926f[_0x52e74f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52e74f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52e74f([0x6c,0x6f,0x77])}),_0x3878b1[_0x52e74f([0x74,0x68,0x65,0x6e])](()=>{_0xe4a051||_0x3f39f8(_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cd78f(){return _0x162710[_0x52e74f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52e74f([0x76,0x69,0x65,0x77])][_0x52e74f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52e74f([0x61,0x75,0x74,0x6f]);}function _0x594a3a(){_0x162710[_0x52e74f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52e74f([0x76,0x69,0x65,0x77])][_0x52e74f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52e74f([0x61,0x75,0x74,0x6f]);}}function _0x3a0b76(_0x165968){const _0x5b6705=[new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b2b76=>setTimeout(_0x3b2b76,0x24edfdd8^_0x6ca1d4)),_0x3878b1[_0x52e74f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33d0f4=>{let _0x1f4de7=0x0;_0x162710[_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52e74f([0x6f,0x6e])](_0x52e74f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c63a6,_0x276ab4)=>{_0x276ab4[0x0][_0x52e74f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f4de7++,_0x1f4de7==(0x24e4c2ec^_0x6ca1d4)&&(_0x33d0f4(),_0x1c63a6[_0x52e74f([0x6f,0x66,0x66])]());});}))];return window[_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52e74f([0x72,0x61,0x63,0x65])](_0x5b6705)[_0x52e74f([0x74,0x68,0x65,0x6e])](()=>_0x165968);}async function _0x4d08ef(){await _0x3878b1,_0x162710[_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52e74f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0446,_0x162710[_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52e74f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0446,_0x162710[_0x52e74f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32c884(){return _0x1900fb(_0x52e74f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xf97f92(_0x52e74f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x52e74f([0x73,0x74,0x61,0x74,0x65])]==_0x52e74f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21b090(){return _0x1900fb(_0x52e74f([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 _0x3f4b04(){return _0x1900fb(_0x52e74f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2c72a8(_0x21529c){const _0x3413f6=_0x12172c();_0x162710[_0x3413f6]=_0x52e74f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21529c,_0x21529c!=_0x52e74f([0x56,0x61,0x6c,0x69,0x64])&&_0x4d08ef();}function _0x12172c(){const _0x58ced5=window[_0x52e74f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52e74f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52e74f([0x6e,0x6f,0x77])]())[_0x52e74f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52e74f([0x2e]),'');let _0x11ef18=_0x52e74f([0x64]);for(let _0x1a2114=0x0;_0x1a2114<_0x58ced5[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a2114+=0x2){let _0x438f5b=window[_0x52e74f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58ced5[_0x52e74f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a2114,_0x1a2114+0x2));_0x438f5b>=_0x78d28[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x438f5b-=_0x78d28[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11ef18+=_0x78d28[_0x438f5b];}return _0x11ef18;}function _0xc7cf86(){const _0x10551c=_0x3e1913[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e]));if(0x3!=_0x10551c[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bf26f(_0x10551c[0x1]);function _0x5bf26f(_0x1ebd3d){const _0x3660a1=_0x2d1adc(_0x1ebd3d);return _0x3660a1&&_0x4b6125()?_0x3660a1:null;function _0x4b6125(){const _0x52cca8=_0x3660a1[_0x52e74f([0x6a,0x74,0x69])],_0x4f8c28=window[_0x52e74f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52cca8[_0x52e74f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52cca8[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf26cb2={..._0x3660a1,[_0x52e74f([0x6a,0x74,0x69])]:_0x52cca8[_0x52e74f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x52cca8[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf26cb2[_0x52e74f([0x76,0x63])],_0x2984fe(_0xf26cb2)==_0x4f8c28;}}}async function _0x51704c(){let _0xd68ca8=!0x0;try{const _0x201a63=_0x3e1913[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e])),[_0x176b93,_0x3957d7,_0x38f696]=_0x201a63;return _0x41ee84(_0x176b93),await _0x4dbc0e(_0x176b93,_0x3957d7,_0x38f696),_0xd68ca8;}catch(_0x48c235){return!0x1;}function _0x41ee84(_0x8ddea4){const _0x5109d4=_0x2d1adc(_0x8ddea4);_0x5109d4&&_0x5109d4[_0x52e74f([0x61,0x6c,0x67])]==_0x52e74f([0x45,0x53,0x32,0x35,0x36])||(_0xd68ca8=!0x1);}async function _0x4dbc0e(_0x5db341,_0x4d8170,_0x46a176){const _0x3f253c=window[_0x52e74f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52e74f([0x66,0x72,0x6f,0x6d])](_0x3fa5c7(_0x46a176),_0x39015d=>_0x39015d[_0x52e74f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28d8a1=new window[(_0x52e74f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52e74f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5db341+_0x52e74f([0x2e])+_0x4d8170),_0x373cab=window[_0x52e74f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52e74f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x373cab)return;const _0x24afcd=await _0x373cab[_0x52e74f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52e74f([0x6a,0x77,0x6b]),_0x5c619a,{[_0x52e74f([0x6e,0x61,0x6d,0x65])]:_0x52e74f([0x45,0x43,0x44,0x53,0x41]),[_0x52e74f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52e74f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52e74f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x373cab[_0x52e74f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52e74f([0x6e,0x61,0x6d,0x65])]:_0x52e74f([0x45,0x43,0x44,0x53,0x41]),[_0x52e74f([0x68,0x61,0x73,0x68])]:{[_0x52e74f([0x6e,0x61,0x6d,0x65])]:_0x52e74f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24afcd,_0x3f253c,_0x28d8a1)||(_0xd68ca8=!0x1);}}function _0x2d1adc(_0x117dbb){return _0x117dbb[_0x52e74f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52e74f([0x65,0x79]))?JSON[_0x52e74f([0x70,0x61,0x72,0x73,0x65])](_0x3fa5c7(_0x117dbb)):null;}function _0x3fa5c7(_0x3a8943){return window[_0x52e74f([0x61,0x74,0x6f,0x62])](_0x3a8943[_0x52e74f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52e74f([0x2b]))[_0x52e74f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52e74f([0x2f])));}function _0x2984fe(_0x25f894){let _0x3f8e49=0x1505;function _0x49fb3d(_0x2c1090){for(let _0x4c9433=0x0;_0x4c9433<_0x2c1090[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c9433++){const _0x2630e6=_0x2c1090[_0x52e74f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c9433);_0x3f8e49=(_0x3f8e49<<0x5)+_0x3f8e49+_0x2630e6,_0x3f8e49&=_0x3f8e49;}}function _0x2fe6fa(_0xb2c0a9){Array[_0x52e74f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb2c0a9)?_0xb2c0a9[_0x52e74f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fe6fa):_0xb2c0a9&&typeof _0xb2c0a9==_0x52e74f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52e74f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb2c0a9)[_0x52e74f([0x73,0x6f,0x72,0x74])]()[_0x52e74f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x436252,_0x410053])=>{_0x49fb3d(_0x436252),_0x2fe6fa(_0x410053);}):_0x49fb3d(window[_0x52e74f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb2c0a9));}return _0x2fe6fa(_0x25f894),_0x3f8e49>>>0x0;}function _0x2f03c4(_0x27dc9f){return _0x27dc9f[_0x52e74f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52e74f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52e74f([0x30]));}function _0xdf0145(_0x36a1dc){return _0x36a1dc[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52e74f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52e74f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1900fb(_0x346aa4){return _0x162710[_0x52e74f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52e74f([0x68,0x61,0x73])](_0x346aa4);}function _0xf97f92(_0x42de76){return _0x162710[_0x52e74f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52e74f([0x67,0x65,0x74])](_0x42de76);}function _0x4b0446(){}function _0x52e74f(_0x4a0a79){return _0x4a0a79['map'](_0x42440c=>String['fromCharCode'](_0x42440c))['join']('');}_0x2c72a8(await _0x44fa4d());}(this);}set['adapter'](_0x194704){if(this['_adapter'])throw new _0x11aaec('track-changes-adapter-already-set',this);this['_adapter']=_0x194704;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x20a535=!0x1,toJSON:_0x5202cf=!0x1}={}){const _0x540163=[];for(const _0x1ab1c6 of this['_suggestions']['values']())_0x20a535&&!_0x1ab1c6['isInContent']||_0x540163['push'](_0x1ab1c6);return _0x5202cf?_0x540163['map'](_0x37068a=>_0x37068a['toJSON']()):_0x540163;}['getSuggestion'](_0x3e43c8){const _0x4a3620=this['_suggestions']['get'](_0x3e43c8);if(!_0x4a3620)throw new _0x11aaec('track-changes-suggestion-not-found',this);return _0x4a3620;}['hasSuggestion'](_0x274304){return this['_suggestions']['has'](_0x274304);}['addSuggestionData'](_0x117d05){const {authorId:_0x361d67,id:_0x28a196,attributes:_0x180066}=_0x117d05,[_0x1a6364,_0x219797]=_0x117d05['type']['split'](':'),_0x43f5bb=this['_suggestions']['get'](_0x28a196)||this['_createSuggestion'](_0x1a6364,_0x219797,_0x28a196,_0x361d67,_0x180066);if(this['_addThreadToSuggestion'](_0x43f5bb),this['_checkSuggestionCorrectness'](_0x43f5bb,_0x1a6364,_0x219797||null,_0x361d67),_0x43f5bb['createdAt']=_0x117d05['createdAt'],_0x43f5bb['_isDataLoaded']=!0x0,_0x180066&&_0x180066['@external']){const _0xa278aa=_0x180066['@external'],_0x19a29c=this['_getExternalAuthor'](_0xa278aa['authorName']);_0x43f5bb['authoredAt']=_0xa278aa['createdAt'],_0x43f5bb['author']=_0x19a29c,_0x43f5bb['isExternal']=!0x0;}else _0x43f5bb['authoredAt']=_0x117d05['createdAt'];switch(_0x117d05['data']&&(_0x43f5bb['data']=_0x117d05['data']),_0x117d05['attributes']&&(_0x43f5bb['attributes']=_0x117d05['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43f5bb['_saved']=!0x0),this['_suggestionState']['get'](_0x43f5bb)){case'notReady':this['_suggestionState']['set'](_0x43f5bb,'dataReady');break;case'markerReady':_0x43f5bb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43f5bb])),this['_refreshSuggestionsChain'](new Set([_0x43f5bb])),this['_suggestionState']['set'](_0x43f5bb,'ready'),this['fire']('suggestionLoaded',_0x43f5bb)):this['_suggestionState']['set'](_0x43f5bb,'removed');}return _0x43f5bb;}['acceptSuggestion'](_0x3d8d30){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d6338 of _0x3d8d30['getAllAdjacentSuggestions']())_0x3d6338['accept']();});});}['discardSuggestion'](_0xf9a4ec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x320c7b of _0xf9a4ec['getAllAdjacentSuggestions']())_0x320c7b['discard']();});});}['enableCommand'](_0x31309e,_0x24b7e8){const _0x482606=this['editor']['commands']['get'](_0x31309e);if(!_0x482606)throw new _0x11aaec('track-changes-command-not-found',this,{'commandName':_0x31309e});if(this['_enabledCommands']['has'](_0x482606))throw new _0x11aaec('track-changes-enable-command-twice',this,{'commandName':_0x31309e});this['_enabledCommands']['add'](_0x482606),_0x24b7e8&&_0x482606['on']('execute',(_0x1f4293,_0x5e5f39)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e5f39['length']>0x0&&_0x5e5f39[_0x5e5f39['length']-0x1]&&_0x5e5f39[_0x5e5f39['length']-0x1]['forceDefaultExecution']?_0x5e5f39['pop']():(_0x1f4293['return']=_0x24b7e8((..._0x26de40)=>_0x482606['execute'](..._0x26de40,{'forceDefaultExecution':!0x0}),..._0x5e5f39),_0x1f4293['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x558f6f){let _0xab8319,_0xe9e03;const _0x68feb6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xab8319=_0x558f6f();}catch(_0x3fa4d4){_0xe9e03=_0x3fa4d4;}return _0x68feb6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xe9e03&&_0x11aaec['rethrowUnexpectedError'](_0xe9e03,this),_0xab8319;}['markInsertion'](_0x32340e,_0x162f7c=null,_0x354b63={}){if(_0x32340e['isCollapsed'])return null;const _0x108337=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d3fd4,meta:_0x1da9f9}of this['_findSuggestions'](_0x32340e,'insertion'))if(_0x1da9f9['isOwn']){if(!_0x1da9f9['isNextTo']){if(_0x1da9f9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1d3fd4,_0x354b63))continue;return _0x1d3fd4;}if(Qt(_0x1d3fd4,_0x354b63))return _0x1d3fd4;this['_breakSuggestionMarker'](_0x1d3fd4,_0x32340e['start'],_0x32340e['end']);break;}if(_0x162f7c==_0x1d3fd4['subType']&&Qt(_0x1d3fd4,_0x354b63)){const _0x8b6405=_0x1d3fd4['getFirstRange']();return _0x8b6405['start']['isEqual'](_0x32340e['end'])?this['_setSuggestionRange'](_0x1d3fd4,this['_model']['createRange'](_0x32340e['start'],_0x8b6405['end'])):this['_setSuggestionRange'](_0x1d3fd4,this['_model']['createRange'](_0x8b6405['start'],_0x32340e['end'])),_0x1d3fd4;}}const _0x21dfae=_0xf688c7(),_0x4ecc42=_0x108337['id'],_0x9b0d19=_0x162f7c?'insertion:'+_0x162f7c:'insertion',_0x13bcb8=this['_setSuggestionData']({'id':_0x21dfae,'type':_0x9b0d19,'createdAt':new Date(),'authorId':_0x4ecc42,'attributes':_0x354b63});return this['_addSuggestionMarker'](_0x9b0d19,_0x21dfae,_0x4ecc42,_0x32340e),_0x13bcb8;}['markMultiRangeInsertion'](_0x3536e3,_0x39d93b='multi',_0x3a48f9={}){const _0x3ca3d2=this['editor']['plugins']['get']('Users')['me'],_0x3946d3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x39d93b,'join');for(const _0x484f92 of this['getSuggestions']())if(_0x484f92['author']['id']==_0x3ca3d2['id']&&'insertion'==_0x484f92['type']&&_0x484f92['subType']==_0x39d93b&&Qt(_0x484f92,_0x3a48f9)&&(_0x3946d3(_0x484f92['getRanges'](),_0x3536e3)||_0x3946d3(_0x3536e3,_0x484f92['getRanges']()))){for(const _0x395f33 of _0x3536e3)_0x484f92['addRange'](_0x395f33);return _0x484f92;}for(const {suggestion:_0x171926,meta:_0x5b7c55}of this['_findSuggestions'](_0x3536e3,'insertion')){if(!_0x5b7c55['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b7c55['containsRangeInObject'])continue;if(!Qt(_0x171926,_0x3a48f9))continue;let _0x2d826c=!0x0;for(const _0x464545 of _0x171926['getRanges']())for(const _0x296ec5 of _0x3536e3)if(!_0x464545['containsRange'](_0x296ec5)){_0x2d826c=!0x1;break;}if(_0x2d826c)return _0x171926;}const _0x52d730=_0xf688c7(),_0x4a3b24=_0x3ca3d2['id'],_0x273b60='insertion:'+_0x39d93b,_0x51ac2f=this['_setSuggestionData']({'id':_0x52d730,'type':_0x273b60,'createdAt':new Date(),'authorId':_0x4a3b24,'attributes':_0x3a48f9});for(const _0x1d2862 of _0x3536e3)this['_addSuggestionMarker'](_0x273b60,_0x52d730,_0x4a3b24,_0x1d2862,u['getMultiRangeId']());return _0x51ac2f;}['markInlineFormat'](_0x5279e1,_0x3d4542,_0x1422bb=null,_0x4331dc={}){if(_0x1422bb=_0x1422bb||Jt(_0x3d4542),_0x5279e1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x462a89=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1422bb,'accept');return this['forceDefaultExecution'](()=>_0x462a89([_0x5279e1],_0x3d4542,_0x4331dc)),null;}const _0x5d09e0=this['editor']['plugins']['get']('Users')['me'],_0x472cba=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x15fe5d,meta:_0x1a4f5a}of this['_findSuggestions'](_0x5279e1,'insertion'))_0x1a4f5a['isOwn']&&!_0x1a4f5a['isInsideObject']&&_0x472cba['push'](..._0x15fe5d['getRanges']());}const _0x3433fb=function(_0x5560d2,_0x1ee124){const _0x580e2c=[];for(const _0x2d9e2a of _0x1ee124){const _0x8e7c3e=_0x5560d2['getIntersection'](_0x2d9e2a);_0x8e7c3e&&_0x580e2c['push'](_0x8e7c3e);}return _0x580e2c;}(_0x5279e1,_0x472cba),_0x45223e=function(_0x214ea8,_0xff129){const _0x5d6cae=[_0x214ea8];for(const _0x8c3a3e of _0xff129){let _0x385b14=0x0;for(;_0x385b14<_0x5d6cae['length'];){const _0x108eea=_0x5d6cae[_0x385b14]['getDifference'](_0x8c3a3e);_0x5d6cae['splice'](_0x385b14,0x1,..._0x108eea),_0x385b14+=_0x108eea['length'];}}return _0x5d6cae;}(_0x5279e1,_0x472cba);_0x3433fb['length']&&this['_model']['change'](()=>{for(const _0x286994 of _0x3433fb){const _0x2b2caf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1422bb,'accept');this['forceDefaultExecution'](()=>_0x2b2caf([_0x286994],_0x3d4542,_0x4331dc));}});for(const _0x12c454 of _0x45223e){let _0x312605=null,_0x2e0e88=_0x12c454['start'],_0x13b5d2=_0x12c454['end'];for(const {suggestion:_0x44475b,meta:_0x286734}of this['_findSuggestions'](_0x12c454,'formatInline')){if(!_0x286734['isOwn'])continue;if(_0x44475b['subType']!=_0x1422bb)continue;if(!Qt(_0x44475b,_0x4331dc))continue;const _0x362c76=_0x44475b['getFirstRange']();if(_0x362c76['containsRange'](_0x12c454,!0x0))return null;_0x2e0e88=_0x2e0e88['isBefore'](_0x362c76['start'])?_0x2e0e88:_0x362c76['start'],_0x13b5d2=_0x13b5d2['isAfter'](_0x362c76['end'])?_0x13b5d2:_0x362c76['end'],_0x312605?_0x362c76['start']['isBefore'](_0x312605['getFirstRange']()['start'])?(_0x312605['removeMarkers'](),_0x312605=_0x44475b):_0x44475b['removeMarkers']():_0x312605=_0x44475b;}const _0x1ca54c=this['_model']['createRange'](_0x2e0e88,_0x13b5d2);if(_0x312605)this['_setSuggestionRange'](_0x312605,_0x1ca54c);else{const _0x27de59=_0xf688c7(),_0x3e99eb=_0x5d09e0['id'];this['_setSuggestionData']({'id':_0x27de59,'type':'formatInline:'+_0x1422bb,'data':_0x3d4542,'createdAt':new Date(),'authorId':_0x3e99eb,'attributes':_0x4331dc}),this['_addSuggestionMarker']('formatInline:'+_0x1422bb,_0x27de59,_0x3e99eb,_0x1ca54c);}}return null;}['markBlockFormat'](_0x505bb5,_0x3498d9,_0x2ef67d=[],_0x2035b7=null,_0x231049={}){_0x3498d9['formatGroupId']||(_0x3498d9['formatGroupId']=_0x3498d9['commandName']),_0x3498d9['multipleBlocks']=_0x505bb5['is']('range'),_0x2035b7=_0x2035b7||Jt(_0x3498d9);const _0xdc5a3d=_0x2ef67d['map'](_0x5688c5=>zt(_0x5688c5,this['_model'])),_0x21354d=_0x505bb5['is']('range')?_0x505bb5:zt(_0x505bb5,this['_model']);if('never'===this['_trackFormatChanges']){const _0x14b610=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2035b7,'accept');return this['forceDefaultExecution'](()=>_0x14b610([_0x21354d],_0x3498d9,_0x231049)),null;}_0xdc5a3d['push'](_0x21354d);let _0x10010f=!0x0;for(const _0x264cae of _0xdc5a3d)if(!this['_rangeIsInLocalUserInsertion'](_0x264cae)){_0x10010f=!0x1;break;}if(_0x10010f&&'always'!==this['_trackFormatChanges']){const _0x5bedcb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2035b7,'accept');return this['forceDefaultExecution'](()=>_0x5bedcb([_0x21354d],_0x3498d9,_0x231049)),null;}let _0x30bd72=null,_0x1498e5=_0x21354d['start'],_0x3af147=_0x21354d['end'];for(const {suggestion:_0x12312c,meta:_0x28b926}of this['_findSuggestions'](_0x21354d,'formatBlock')){if(!_0x28b926['isOwn'])continue;if(_0x28b926['isNextTo']||_0x28b926['containsRangeInObject']||_0x28b926['isInsideObject'])continue;if(_0x12312c['data']['formatGroupId']!=_0x3498d9['formatGroupId'])continue;if(!Qt(_0x12312c,_0x231049))continue;const _0x43996d=_0x12312c['getFirstRange']();if(_0x12312c['subType']==_0x2035b7){if(_0x43996d['containsRange'](_0x21354d,!0x0))return null;_0x1498e5=_0x1498e5['isBefore'](_0x43996d['start'])?_0x1498e5:_0x43996d['start'],_0x3af147=_0x3af147['isAfter'](_0x43996d['end'])?_0x3af147:_0x43996d['end'],_0x30bd72?_0x43996d['start']['isBefore'](_0x30bd72['getFirstRange']()['start'])?(_0x30bd72['removeMarkers'](),_0x30bd72=_0x12312c):_0x12312c['removeMarkers']():_0x30bd72=_0x12312c;}else{const _0x38c289=_0x21354d['getIntersection'](_0x43996d);this['_cutOutSuggestionMarker'](_0x12312c,_0x38c289);}}const _0x2c219d=this['editor']['plugins']['get']('Users')['me'],_0x321612=_0xf688c7(),_0x57f553=_0x2c219d['id'];if(_0x30bd72)return this['_setSuggestionRange'](_0x30bd72,this['_model']['createRange'](_0x1498e5,_0x3af147)),_0x30bd72;{const _0x4d4e2f=this['_setSuggestionData']({'id':_0x321612,'type':'formatBlock:'+_0x2035b7,'data':_0x3498d9,'createdAt':new Date(),'authorId':_0x57f553,'attributes':_0x231049});return this['_addSuggestionMarker']('formatBlock:'+_0x2035b7,_0x321612,_0x57f553,this['_model']['createRange'](_0x1498e5,_0x3af147)),_0x4d4e2f;}}['markMultiRangeBlockFormat'](_0x3486fd,_0x5a3b2f,_0x3ff1a4=[],_0x266b02=null,_0x8b49f2={}){_0x5a3b2f['formatGroupId']||(_0x5a3b2f['formatGroupId']=_0x5a3b2f['commandName']);const _0x5d2e06=_0x3486fd[0x0];_0x5a3b2f['multipleBlocks']=_0x5d2e06['is']('range'),_0x266b02=_0x266b02||Jt(_0x5a3b2f);const _0x387798=_0x3ff1a4['map'](_0x41138d=>zt(_0x41138d,this['_model'])),_0x2beb4d=_0x5d2e06['is']('range')?_0x3486fd:_0x3486fd['map'](_0x50d648=>zt(_0x50d648,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3eea81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x266b02,'accept');return this['forceDefaultExecution'](()=>_0x3eea81(_0x2beb4d,_0x5a3b2f,_0x8b49f2)),null;}_0x387798['push'](..._0x2beb4d);let _0x411bca=!0x0;for(const _0x1ee58a of _0x387798)if(!this['_rangeIsInLocalUserInsertion'](_0x1ee58a)){_0x411bca=!0x1;break;}if(_0x411bca&&'always'!==this['_trackFormatChanges']){const _0x2dcdad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x266b02,'accept');return this['forceDefaultExecution'](()=>_0x2dcdad(_0x2beb4d,_0x5a3b2f,_0x8b49f2)),null;}const _0x221d83=this['editor']['plugins']['get']('Users')['me'];for(const _0x883ae4 of this['getSuggestions']()){if(_0x883ae4['author']['id']!=_0x221d83['id'])continue;if('formatBlock'!=_0x883ae4['type']||_0x883ae4['data']['formatGroupId']!=_0x5a3b2f['formatGroupId'])continue;if(!Qt(_0x883ae4,_0x8b49f2))continue;const _0x1b290c=_0x883ae4['subType']==_0x266b02;for(let _0x374b0c=0x0;_0x374b0c<_0x2beb4d['length'];_0x374b0c++){const _0x50faab=_0x2beb4d[_0x374b0c];for(const _0x4621da of _0x883ae4['getMarkers']()){const _0xd0cc7a=_0x4621da['getRange']();if(_0x50faab['isEqual'](_0xd0cc7a)){_0x1b290c?(_0x2beb4d['splice'](_0x374b0c,0x1),_0x374b0c--):_0x883ae4['removeMarker'](_0x4621da['name']);break;}}}}if(0x0==_0x2beb4d['length'])return null;const _0x1442de=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x266b02,'join');for(const _0x112422 of this['getSuggestions']())if(_0x112422['author']['id']==_0x221d83['id']&&'formatBlock'==_0x112422['type']&&_0x112422['data']['formatGroupId']==_0x5a3b2f['formatGroupId']&&_0x112422['subType']==_0x266b02&&Qt(_0x112422,_0x8b49f2)&&(_0x1442de(_0x112422['getRanges'](),_0x2beb4d)||_0x1442de(_0x2beb4d,_0x112422['getRanges']()))){for(const _0x5a2b04 of _0x2beb4d)_0x112422['addRange'](_0x5a2b04);return _0x112422;}const _0x5ab01d=_0xf688c7(),_0x5cb3c3=_0x221d83['id'],_0x45c599='formatBlock:'+_0x266b02,_0xb521b0=this['_setSuggestionData']({'id':_0x5ab01d,'type':_0x45c599,'data':_0x5a3b2f,'createdAt':new Date(),'authorId':_0x5cb3c3,'attributes':_0x8b49f2});for(const _0x3562f5 of _0x2beb4d)this['_addSuggestionMarker'](_0x45c599,_0x5ab01d,_0x5cb3c3,_0x3562f5,u['getMultiRangeId']());return _0xb521b0;}['markDeletion'](_0x3a93bf,_0x3e80b1=null,_0x241334={}){if(_0x3a93bf['isCollapsed'])return null;const _0x51f52d=this['editor']['plugins']['get']('Users')['me'],_0x4953ad=new _0x4f46eb(_0x3a93bf['start'],_0x3a93bf['end']);for(const {suggestion:_0x59bd46,meta:_0x4afabd}of this['_findSuggestions'](_0x4953ad,'insertion'))if(_0x4afabd['isOwn']&&!_0x4afabd['isNextTo']){if(_0x59bd46['isMultiRange']){const _0x3cc173=_0x59bd46['getRanges']()['filter'](_0x3de3ea=>'$graveyard'!=_0x3de3ea['root']['rootName']);_0x3cc173['every'](_0x38f0d4=>_0x4953ad['containsRange'](_0x38f0d4,!0x0))&&_0x59bd46['discard']();if(_0x3cc173['some'](_0x58f72d=>_0x58f72d['containsRange'](_0x4953ad,!0x0))){const _0x50a25b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e80b1,'accept');return this['forceDefaultExecution'](()=>_0x50a25b([_0x4953ad],null,_0x241334)),null;}}else{const _0x52fa4f=_0x4953ad['getIntersection'](_0x59bd46['getFirstRange']());null!==_0x52fa4f&&_0x59bd46['_onDiscard']([_0x52fa4f],null,_0x241334);}}if(_0x4953ad['detach'](),_0x4953ad['isCollapsed']||'$graveyard'==_0x4953ad['root']['rootName'])return null;let _0xcef4e9=null,_0x3c4f94=_0x4953ad['start'],_0x250eeb=_0x4953ad['end'];const _0x474c68=this['_findSuggestions'](_0x4953ad,'deletion');for(const {suggestion:_0x6327ce,meta:_0x4ee71b}of _0x474c68){const _0x3af96a=this['_model']['createRange'](_0x3c4f94,_0x250eeb);if(_0x4ee71b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4ee71b['containsRangeInObject']&&!_0x4ee71b['isInsideObject'])){if(_0x6327ce['isMultiRange']){if(!Qt(_0x6327ce,_0x241334))continue;let _0x4fd256=!0x0;for(const _0x45c580 of _0x6327ce['getRanges']()){if(_0x45c580['containsRange'](_0x3af96a,!0x0))return _0x6327ce;_0x3af96a['containsRange'](_0x45c580)||(_0x4fd256=!0x1);}_0x4fd256&&_0x6327ce['discard']();}else{const _0xa89617=_0x6327ce['getFirstRange']();if(_0xa89617['containsRange'](_0x3af96a,!0x0))return _0x6327ce;if(!Qt(_0x6327ce,_0x241334)){_0x3af96a['containsRange'](_0xa89617)?_0x6327ce['removeMarkers']():_0xa89617['containsPosition'](_0x3c4f94)?_0x3c4f94=_0xa89617['end']:_0xa89617['containsPosition'](_0x250eeb)&&(_0x250eeb=_0xa89617['start']);continue;}_0x3c4f94=_0x3c4f94['isBefore'](_0xa89617['start'])?_0x3c4f94:_0xa89617['start'],_0x250eeb=_0x250eeb['isAfter'](_0xa89617['end'])?_0x250eeb:_0xa89617['end'],_0x241334=Object['assign']({},_0x6327ce['attributes']),_0xcef4e9?_0xa89617['start']['isBefore'](_0xcef4e9['getFirstRange']()['start'])?(_0xcef4e9['removeMarkers'](),_0xcef4e9=_0x6327ce):_0x6327ce['removeMarkers']():_0xcef4e9=_0x6327ce;}}}if(_0xcef4e9)return this['_setSuggestionRange'](_0xcef4e9,this['_model']['createRange'](_0x3c4f94,_0x250eeb)),_0xcef4e9;{const _0xa45078=_0xf688c7(),_0x3b7006=this['_model']['createRange'](_0x3c4f94,_0x250eeb),_0x1eb544=_0x51f52d['id'],_0x5949bb=_0x3e80b1?'deletion:'+_0x3e80b1:'deletion',_0x181124=this['_setSuggestionData']({'id':_0xa45078,'type':_0x5949bb,'createdAt':new Date(),'authorId':_0x1eb544,'attributes':_0x241334});return this['_addSuggestionMarker'](_0x5949bb,_0xa45078,_0x1eb544,_0x3b7006),_0x181124;}}['markMultiRangeDeletion'](_0x5cd874,_0x715861='multi',_0x9816dd={}){const _0x590788=this['editor']['plugins']['get']('Users')['me'],_0x9f88e4=_0x5cd874['map'](_0x55dbd5=>new _0x4f46eb(_0x55dbd5['start'],_0x55dbd5['end'])),_0x57f5fc=new Set();for(const {suggestion:_0x5ee2a0,meta:_0xd243ea}of this['_findSuggestions'](_0x9f88e4,'insertion'))_0xd243ea['isOwn']&&!_0xd243ea['isNextTo']&&_0x57f5fc['add'](_0x5ee2a0);for(const _0x389322 of _0x57f5fc)if(_0x389322['isMultiRange']){const _0x1885ce=_0x389322['getRanges']();(!_0x389322['attributes']||!_0x389322['attributes']['skipNestingCheck'])&&(_0x1885ce['every'](_0x131e99=>_0x9f88e4['some'](_0xb1905e=>_0xb1905e['containsRange'](_0x131e99,!0x0)))&&_0x389322['discard']());if(_0x9f88e4['every'](_0x55292f=>_0x1885ce['some'](_0x3ba5b2=>_0x3ba5b2['containsRange'](_0x55292f,!0x0)))){const _0x298048=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x715861,'accept');return this['forceDefaultExecution'](()=>_0x298048(_0x5cd874,null,_0x9816dd)),null;}}else{const _0x2a4e49=_0x389322['getFirstRange']();_0x9f88e4['some'](_0x1d5a4b=>_0x1d5a4b['containsRange'](_0x2a4e49,!0x0))&&_0x389322['discard']();if(_0x9f88e4['every'](_0x2283cf=>_0x2a4e49['containsRange'](_0x2283cf,!0x0))){const _0x154d58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x715861,'accept');return this['forceDefaultExecution'](()=>_0x154d58(_0x9f88e4,null,_0x9816dd)),null;}}const _0x626726=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x715861,'join');let _0x1103f6=null;for(const _0x3f91ca of this['getSuggestions']())if(_0x3f91ca['author']['id']==_0x590788['id']&&_0x3f91ca['isInContent']&&'deletion'==_0x3f91ca['type']&&_0x3f91ca['subType']==_0x715861&&Qt(_0x3f91ca,_0x9816dd)&&(_0x626726(_0x3f91ca['getRanges'](),_0x9f88e4)||_0x626726(_0x9f88e4,_0x3f91ca['getRanges']()))){if(_0x1103f6){if(_0x3f91ca['commentThread']&&_0x3f91ca['commentThread']['length'])continue;for(const _0x37f10b of _0x3f91ca['getRanges']())_0x1103f6['isIntersectingWithRange'](_0x37f10b)||_0x1103f6['addRange'](_0x37f10b);_0x3f91ca['removeMarkers']();}else{_0x1103f6=_0x3f91ca;for(const _0x17c8ba of _0x9f88e4)_0x3f91ca['isIntersectingWithRange'](_0x17c8ba)||_0x3f91ca['addRange'](_0x17c8ba);}}if(_0x1103f6)return _0x1103f6;_0x57f5fc['clear']();for(const {suggestion:_0x254fb1,meta:_0x351932}of this['_findSuggestions'](_0x9f88e4,'deletion'))_0x351932['isOwn']&&(this['_mergeNestedSuggestions']||!_0x351932['containsRangeInObject']&&!_0x351932['isInsideObject'])&&Qt(_0x254fb1,_0x9816dd)&&_0x57f5fc['add'](_0x254fb1);for(const _0x3847c7 of _0x57f5fc){const _0x3ff00c=_0x3847c7['getRanges']();if(!_0x9816dd||!_0x9816dd['skipNestingCheck']){if(_0x9f88e4['every'](_0x5a0572=>_0x3ff00c['some'](_0x5636b5=>_0x5636b5['containsRange'](_0x5a0572,!0x0))))return _0x3847c7;}(!_0x3847c7['attributes']||!_0x3847c7['attributes']['skipNestingCheck'])&&(_0x3ff00c['every'](_0x1f0525=>_0x9f88e4['some'](_0x2ec135=>_0x2ec135['containsRange'](_0x1f0525,!0x0)))&&_0x3847c7['discard']());}const _0x5551cf=_0xf688c7(),_0x124f58=_0x590788['id'],_0x51ef99='deletion:'+_0x715861,_0x169682=this['_setSuggestionData']({'id':_0x5551cf,'type':_0x51ef99,'createdAt':new Date(),'authorId':_0x124f58,'attributes':_0x9816dd});for(const _0x223407 of _0x9f88e4)_0x223407['detach'](),_0x223407['isCollapsed']||'$graveyard'==_0x223407['root']['rootName']||this['_addSuggestionMarker'](_0x51ef99,_0x5551cf,_0x124f58,_0x223407,u['getMultiRangeId']());return _0x169682;}['markAttributeChange'](_0x308f9a,_0x52494b,_0x1c7859,_0x5c32aa,_0x57d426){if(_0x308f9a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x47a665=this['editor']['plugins']['get']('Users')['me']['id'],_0xcf3e77=Array['from'](this['_suggestions']['values']())['filter'](_0xd364d2=>'attribute'==_0xd364d2['type']&&_0xd364d2['data']['key']==_0x52494b&&_0xd364d2['isIntersectingWithRange'](_0x308f9a));if('default'===this['_trackFormatChanges']){const _0x50f16c=this['_findSuggestions'](_0x308f9a,'insertion')['filter'](({meta:_0x5e81fd})=>_0x5e81fd['isOwn']&&!_0x5e81fd['isInsideObject']&&!_0x5e81fd['isNextTo'])['map'](({suggestion:_0x2b1b15})=>_0x2b1b15);_0xcf3e77['unshift'](..._0x50f16c);}const _0x25fe45=new Map([[_0x308f9a,_0x1c7859]]);for(const _0x46d2ad of _0xcf3e77){const _0x246760='attribute'==_0x46d2ad['type']?_0x46d2ad['data']['oldValue']:void 0x0,_0x2ab131=_0x46d2ad['getFirstRange'](),_0x3ca71d=Array['from'](_0x25fe45['keys']())['find'](_0x1549f4=>_0x1549f4['isIntersecting'](_0x2ab131));if(!_0x3ca71d)continue;const _0x1cd506=_0x3ca71d['getDifference'](_0x2ab131);this['_isBlockAttribute'](_0x52494b)&&'insertion'==_0x46d2ad['type']&&0x0!=_0x1cd506['length']||(_0x25fe45['delete'](_0x3ca71d),_0x1cd506['forEach'](_0x44e7ac=>{_0x25fe45['set'](_0x44e7ac,_0x1c7859);}),'insertion'!=_0x46d2ad['type']&&_0x246760!=_0x5c32aa&&_0x25fe45['set'](_0x3ca71d['getIntersection'](_0x2ab131),_0x246760));}const _0x1f8c9e=[];for(const [_0x1c4aa0,_0x41dd8f]of _0x25fe45){const _0x1e92e2=_0xf688c7(),_0x1122ad={'key':_0x52494b,'oldValue':_0x41dd8f,'newValue':_0x5c32aa};_0x52494b['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':_0x52494b});const _0x544a0f=('attribute:'+(_0x52494b+'|'+Jt({'newValue':_0x5c32aa})))['substring'](0x0,0x3c),_0x4a0145=this['_setSuggestionData']({'id':_0x1e92e2,'type':_0x544a0f,'data':_0x1122ad,'createdAt':new Date(),'authorId':_0x47a665,'attributes':_0x57d426});_0x1f8c9e['push'](_0x4a0145),this['_addSuggestionMarker'](_0x544a0f,_0x1e92e2,_0x47a665,_0x1c4aa0);}return _0x1f8c9e;}['enableDefaultAttributesIntegration'](_0x55dd90){this['enableCommand'](_0x55dd90,(_0x5747a8,..._0x26df8f)=>{this['_recordAttributeChanges'](()=>{_0x5747a8(..._0x26df8f);});});}['registerBlockAttribute'](_0x4e8357){this['_blockAttributeKeys']['add'](_0x4e8357);}['registerInlineAttribute'](_0x4d0def){this['_inlineAttributeKeys']['add'](_0x4d0def);}['_getAttributeKey'](_0x14f992){return'attribute'==_0x14f992['type']?_0x14f992['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a2218,_0x1d6e1a){const _0x497fd0=_0x4a2218['getFirstMarker']();this['_model']['change'](_0x41284a=>{_0x41284a['updateMarker'](_0x497fd0,{'range':_0x1d6e1a});});}['_addThreadToSuggestion'](_0x3fbf74){const _0x17f780=_0x3fbf74['id'],_0x2befcb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x17f780)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2befcb,'threadId':_0x17f780,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4eb90a=this['_commentsRepository']['getCommentThread'](_0x17f780);_0x4eb90a['unbind']('isRemovable'),_0x4eb90a['isRemovable']=!0x1,_0x3fbf74['commentThread']=_0x4eb90a;}['_checkSuggestionCorrectness'](_0x20c576,_0x2bdd94,_0x2d113e,_0x2a222c){if(_0x20c576['type']!=_0x2bdd94||_0x20c576['subType']!=_0x2d113e||_0x20c576['creator']['id']!=_0x2a222c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x11aaec('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x590f95,_0x2b6f75){const _0x324c0a=_0x590f95['getFirstRange']();if(_0x2b6f75['isEqual'](_0x324c0a))_0x590f95['removeMarkers']();else{if(_0x324c0a['containsRange'](_0x2b6f75)){const _0x3f387d=this['_model']['createPositionAt'](_0x2b6f75['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x590f95,this['_model']['createRange'](_0x324c0a['start'],_0x3f387d));const _0x310d16=_0xf688c7(),_0x303d7c=_0x590f95['creator']['id'],_0x45843e=_0x590f95['type']+':'+_0x590f95['subType'];this['_setSuggestionData']({'id':_0x310d16,'type':_0x45843e,'createdAt':new Date(),'authorId':_0x303d7c,'data':_0x590f95['data'],'attributes':_0x590f95['attributes']});const _0x54f2f8=this['_model']['createPositionAt'](_0x2b6f75['end']['parent'],'after'),_0x28fa68=this['_model']['createRange'](_0x54f2f8,_0x324c0a['end']);this['_addSuggestionMarker'](_0x45843e,_0x310d16,_0x303d7c,_0x28fa68);}else{if(_0x324c0a['containsPosition'](_0x2b6f75['start'])){const _0x80fcb2=this['_model']['createPositionAt'](_0x2b6f75['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x590f95,this['_model']['createRange'](_0x324c0a['start'],_0x80fcb2));}else{const _0x11342b=this['_model']['createPositionAt'](_0x2b6f75['end']['parent'],'after');this['_setSuggestionRange'](_0x590f95,this['_model']['createRange'](_0x11342b,_0x324c0a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x31e3c3){for(const {suggestion:_0x3af794,meta:_0x18332f}of this['_findSuggestions'](_0x31e3c3,'insertion')){if(!_0x18332f['isOwn'])continue;const _0x410ac5=_0x3af794['getRanges']();for(const _0x35f7cd of _0x410ac5)if(!_0x31e3c3['getDifference'](_0x35f7cd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5bc0c8){const _0x2ae83e=this['editor']['plugins']['get']('Users')['getUser'](_0x5bc0c8);if(!_0x2ae83e)throw new _0x11aaec('track-changes-user-not-found',this);return _0x2ae83e;}['_getExternalAuthor'](_0x27324f){const _0xf9e658=this['editor']['plugins']['get']('Users'),_0x197d93=_0x1c2190('external:'+_0x27324f),_0x8fe239=_0xf9e658['getUser'](_0x197d93);return _0x8fe239||_0xf9e658['addUser']({'id':_0x197d93,'name':_0x27324f});}['_createSuggestion'](_0xb8001a,_0x453d7f,_0x37be11,_0x483d7d,_0x2884e4){const _0x187e25=this['_getAuthorFromId'](_0x483d7d),_0x2cd353=this['_suggestionFactory']['buildSuggestion'](_0xb8001a,_0x453d7f,_0x37be11,_0x187e25,_0x2884e4,_0x1358fd=>{this['_updateSuggestionData'](_0x37be11,{'attributes':_0x1358fd});const _0x176714=this['getSuggestion'](_0x37be11);this['_joinWithAdjacentSuggestions'](new Set([_0x176714])),this['_refreshSuggestionsChain'](new Set([_0x176714]));});return this['listenTo'](_0x2cd353,'accept',()=>{this['_updateSuggestionData'](_0x37be11,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2cd353,'discard',()=>{this['_updateSuggestionData'](_0x37be11,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x37be11,_0x2cd353),this['_suggestionState']['set'](_0x2cd353,'notReady'),_0x2cd353;}['_splitMarkerName'](_0x4a43b0){const _0x25792a=_0x4a43b0['split'](':');return{'group':_0x25792a[0x0],'type':_0x25792a[0x1],'subType':_0x25792a['length']>=0x5?_0x25792a[0x2]:null,'id':_0x25792a['length']<0x5?_0x25792a[0x2]:_0x25792a[0x3],'authorId':_0x25792a['length']<0x5?_0x25792a[0x3]:_0x25792a[0x4],'markerCount':0x6==_0x25792a['length']?_0x25792a[0x5]:null};}['_breakSuggestionMarker'](_0x5db172,_0x10c92b,_0x2583ff){const _0x4839a1=_0x5db172['getFirstRange'](),_0x59d684=_0x4839a1['start'],_0x393406=_0x4839a1['end'];this['_setSuggestionRange'](_0x5db172,this['_model']['createRange'](_0x59d684,_0x10c92b));const _0x284c57=_0xf688c7(),_0x4cf2fd=_0x5db172['creator']['id'],_0x181046=_0x5db172['type']+(_0x5db172['subType']?':'+_0x5db172['subType']:'');this['_setSuggestionData']({'id':_0x284c57,'type':_0x181046,'createdAt':new Date(),'authorId':_0x4cf2fd,'originalSuggestionId':_0x5db172['id'],'attributes':_0x5db172['attributes'],'data':_0x5db172['data']});const _0x3084fd=this['_getAttributeKey'](_0x5db172);('formatBlock'==_0x5db172['type']||_0x3084fd&&this['_isBlockAttribute'](_0x3084fd))&&(_0x2583ff=this['_model']['createPositionBefore'](_0x2583ff['parent'])),this['_addSuggestionMarker'](_0x181046,_0x284c57,_0x4cf2fd,this['_model']['createRange'](_0x2583ff,_0x393406));}['_findSuggestions'](_0x3bc08a,_0x341045=null){const _0x290538=[],_0x221a56=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3bc08a)||(_0x3bc08a=[_0x3bc08a]);for(const _0x166660 of this['getSuggestions']()){if(!_0x166660['isInContent'])continue;if(_0x341045&&_0x166660['type']!=_0x341045)continue;let _0x164047=!0x1;for(const _0x590846 of _0x166660['getRanges']()){for(const _0x17daf7 of _0x3bc08a){const _0x3f4da3=_0x17daf7['start']['isEqual'](_0x590846['end'])||_0x17daf7['end']['isEqual'](_0x590846['start']);if(_0x3f4da3||_0x17daf7['getIntersection'](_0x590846)){const _0x264180=_0x17daf7['containsRange'](_0x590846)&&Gt(this['_model']['schema'],_0x590846['start'],_0x17daf7),_0x35f66f=_0x590846['containsRange'](_0x17daf7)&&Gt(this['_model']['schema'],_0x17daf7['start'],_0x590846);_0x290538['push']({'suggestion':_0x166660,'meta':{'isOwn':_0x221a56==_0x166660['author'],'isNextTo':_0x3f4da3,'isInsideObject':_0x264180,'containsRangeInObject':_0x35f66f}}),_0x164047=!0x0;break;}}if(_0x164047)break;}}return _0x290538;}['_addSuggestionMarker'](_0x3f2132,_0xe5639e,_0x57ae3a,_0x233ce6,_0x39d9e9){this['_model']['change'](_0x5117a6=>{let _0x19fbcf='suggestion:'+_0x3f2132+':'+_0xe5639e+':'+_0x57ae3a;_0x39d9e9&&(_0x19fbcf=_0x19fbcf+':'+_0x39d9e9),_0x5117a6['addMarker'](_0x19fbcf,{'range':_0x233ce6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1f9d0e){const _0x50e8bd=_0x1f9d0e['previous'],_0x2e5678=_0x1f9d0e['next'];_0x1f9d0e['previous']=null,_0x1f9d0e['next']=null,null!=_0x50e8bd&&_0x50e8bd['next']==_0x1f9d0e&&(_0x50e8bd['next']=_0x2e5678),null!=_0x2e5678&&_0x2e5678['previous']==_0x1f9d0e&&(_0x2e5678['previous']=_0x50e8bd),'ready'==this['_suggestionState']['get'](_0x1f9d0e)&&(this['_suggestionState']['set'](_0x1f9d0e,'removed'),this['fire']('suggestionUnloaded',_0x1f9d0e,_0x50e8bd,_0x2e5678));}['_setSuggestionData'](_0x3be436){const _0x5eca48=_0x3be436['id'],_0x2aa471=this['addSuggestionData'](_0x3be436);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56c808=this['editor']['plugins']['get']('PendingActions'),_0x18c50a=_0x2aa471['hasComments'],_0x13bfc0=_0x2aa471['subType']?_0x2aa471['type']+':'+_0x2aa471['subType']:_0x2aa471['type'],_0x199cca=this['editor']['locale'],_0x20deaa=_0x56c808['add'](o(_0x199cca,'PENDING_ACTION_SUGGESTION')),_0x2b0ca7={'id':_0x5eca48,'type':_0x13bfc0,'hasComments':_0x18c50a,'data':_0x3be436['data']||null,'originalSuggestionId':_0x3be436['originalSuggestionId']||null,'attributes':_0x2aa471['attributes']};this['_adapter']['addSuggestion'](_0x2b0ca7)['then'](_0x2529f1=>{_0x2aa471['_saved']=!0x0,_0x56c808['remove'](_0x20deaa),_0x2529f1&&_0x2529f1['createdAt']&&(this['_suggestions']['get'](_0x5eca48)['createdAt']=_0x2529f1['createdAt']);})['catch'](_0x2a9d33=>{throw _0x578fad('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2aa471['discard']();}),_0x2aa471['stopListening'](),this['_suggestions']['delete'](_0x2aa471['id']),this['_suggestionState']['delete'](_0x2aa471),_0x2a9d33;});}return _0x2aa471;}['_isBlockAttribute'](_0x546ba2){return this['_blockAttributeKeys']['has'](_0x546ba2);}['_updateSuggestionData'](_0x2a78ee,_0x30191b){const _0x4839a6=this['editor']['plugins']['get']('PendingActions'),_0x18c3c2=this['getSuggestion'](_0x2a78ee);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x18c3c2['_saved']){const _0x5fd03c=_0x4839a6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2a78ee,_0x30191b)['then'](()=>{_0x4839a6['remove'](_0x5fd03c);});}else _0x18c3c2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a78ee,_0x30191b);});}}['_getSuggestionData'](_0x554d3a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x11aaec('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x554d3a);}['_handleNewSuggestionMarker'](_0x2b1f6f){const {id:_0x119564,type:_0x26886d,subType:_0x43df9a,authorId:_0x140530}=this['_splitMarkerName'](_0x2b1f6f),_0x5a7aa4=this['_suggestions']['get'](_0x119564)||this['_createSuggestion'](_0x26886d,_0x43df9a,_0x119564,_0x140530,{});switch(this['_checkSuggestionCorrectness'](_0x5a7aa4,_0x26886d,_0x43df9a,_0x140530),this['_suggestionState']['get'](_0x5a7aa4)){case'notReady':this['_getSuggestionData'](_0x119564)['then'](_0xcde29a=>{let _0x5355f3=Promise['resolve']();_0xcde29a['hasComments']&&(_0x5355f3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x119564})),_0x5355f3['then'](()=>{this['addSuggestionData'](_0xcde29a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5a7aa4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x119564,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5a7aa4,'ready'),this['fire']('suggestionLoaded',_0x5a7aa4);break;case'ready':this['fire']('suggestionChanged',_0x5a7aa4);}return _0x5a7aa4['addMarkerName'](_0x2b1f6f),_0x5a7aa4;}['_refreshSuggestionsChain'](_0x2ab326){const _0x259ca9=Array['from'](_0x2ab326),_0x3c1c64=_0x259ca9['filter'](_0x3ece02=>'attribute'==_0x3ece02['type']);this['_refreshAttributeSuggestionsChain'](_0x3c1c64);const _0x3faaf8=_0x259ca9['filter'](_0x25fe84=>!_0x25fe84['isMultiRange']&&'attribute'!=_0x25fe84['type']),_0x2a7a96=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19c19c=>!_0x19c19c['isMultiRange']&&'attribute'!=_0x19c19c['type']),_0x1df3f7=_0x2a7a96['filter'](_0x1f9cde=>!_0x2ab326['has'](_0x1f9cde)),_0x382f41=new Map(_0x2a7a96['map'](_0x289eee=>[_0x289eee,this['_suggestionFactory']['getSuggestionCallback'](_0x289eee['type'],_0x289eee['subType'],'chain')])),_0x474ce=new Map(_0x2a7a96['map'](_0x7642c8=>[_0x7642c8,_0x7642c8['getFirstRange']()])),_0x45497f=new Set(),_0x378831=new Set();for(let _0x1c0612=0x0;_0x1c0612<_0x3faaf8['length'];_0x1c0612++)_0x31454d(_0x3faaf8[_0x1c0612],_0x3faaf8,_0x1c0612+0x1);for(let _0x39c0b5=0x0;_0x39c0b5<_0x3faaf8['length'];_0x39c0b5++)_0x31454d(_0x3faaf8[_0x39c0b5],_0x1df3f7,0x0);const _0x299c1e=new Set();for(let _0x4d2ac2=0x0;_0x4d2ac2<_0x3faaf8['length'];_0x4d2ac2++){const _0x54ec65=_0x3faaf8[_0x4d2ac2];!_0x378831['has'](_0x54ec65)&&_0x54ec65['previous']&&(_0x299c1e['add'](_0x54ec65['previous']),_0x54ec65['previous']['next']===_0x54ec65&&(_0x54ec65['previous']['next']=null),_0x54ec65['previous']=null),!_0x45497f['has'](_0x54ec65)&&_0x54ec65['next']&&(_0x299c1e['add'](_0x54ec65['next']),_0x54ec65['next']['previous']===_0x54ec65&&(_0x54ec65['next']['previous']=null),_0x54ec65['next']=null);}function _0x31454d(_0x3f7453,_0x519a16,_0x27207f){for(let _0x5e28da=_0x27207f;_0x5e28da<_0x519a16['length'];_0x5e28da++){const _0x4140a3=_0x289d33(_0x3f7453,_0x519a16[_0x5e28da]);_0x4140a3&&(_0x4140a3[0x0]['next']=_0x4140a3[0x1],_0x4140a3[0x1]['previous']=_0x4140a3[0x0],_0x45497f['add'](_0x4140a3[0x0]),_0x378831['add'](_0x4140a3[0x1]));}}function _0x289d33(_0x578ff3,_0x120861){if(_0x578ff3['author']['id']!==_0x120861['author']['id'])return null;const _0xc1421a=_0x382f41['get'](_0x578ff3)(_0x578ff3,_0x120861,_0x474ce['get'](_0x578ff3),_0x474ce['get'](_0x120861));if(!_0xc1421a)return null;return _0x382f41['get'](_0x120861)(_0x578ff3,_0x120861,_0x474ce['get'](_0x578ff3),_0x474ce['get'](_0x120861))?_0xc1421a[0x1]['commentThread']&&_0xc1421a[0x1]['commentThread']['length']?null:_0xc1421a:null;}_0x299c1e['size']&&this['_refreshSuggestionsChain'](_0x299c1e);}['_refreshAttributeSuggestionsChain'](_0x228d5c){if(0x0==_0x228d5c['length'])return;const _0x55f207=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x552fec=>'attribute'==_0x552fec['type']&&_0x552fec['_isDataLoaded']),_0x407929=[],_0x46a081=new Map();for(const _0x313301 of _0x55f207){const _0x15916a=_0x1c2190(_0x313301['attributes']);_0x46a081['has'](_0x15916a)||(_0x46a081['set'](_0x15916a,_0x407929['length']),_0x407929['push']([]));const _0x5abfed=_0x46a081['get'](_0x15916a);_0x407929[_0x5abfed]['push'](_0x313301);}!(function(){_0x407929['sort']((_0x4c074e,_0x528094)=>{const _0x1b415b=_0x4c074e[0x0]['createdAt'],_0x37ca2f=_0x528094[0x0]['createdAt'];return _0x1b415b==_0x37ca2f?_0x4c074e[0x0]['attributes']['groupId']<_0x528094[0x0]['attributes']['groupId']?-0x1:0x1:_0x1b415b<_0x37ca2f?-0x1:0x1;});for(const _0x3e430b of _0x407929)_0x3e430b['sort']((_0x6a6545,_0x2fbb2f)=>_0x6a6545['id']<_0x2fbb2f['id']?-0x1:0x1);}());for(let _0x171072=0x0;_0x171072<_0x407929['length'];_0x171072++){if(0x0==_0x407929[_0x171072]['length'])continue;const _0x19c843=[];for(let _0xe0b6b2=_0x171072+0x1;_0xe0b6b2<_0x407929['length'];_0xe0b6b2++)0x0!=_0x407929[_0xe0b6b2]['length']&&_0x1eb123(_0x407929[_0x171072],_0x407929[_0xe0b6b2])&&_0x19c843['push'](_0xe0b6b2);for(const _0x4d1582 of _0x19c843)_0x407929[_0x171072]=_0x407929[_0x171072]['concat'](_0x407929[_0x4d1582]),_0x407929[_0x4d1582]=[];}for(const _0x1ca4f3 of _0x407929)for(let _0x5c75a6=0x0;_0x5c75a6<_0x1ca4f3['length'];_0x5c75a6++){const _0x36f153=_0x1ca4f3[_0x5c75a6+0x1]||null;_0x1ca4f3[_0x5c75a6]['next']!==_0x36f153&&(_0x1ca4f3[_0x5c75a6]['next']=_0x36f153);}for(const _0x361e7a of _0x407929)for(let _0x253ccd=0x0;_0x253ccd<_0x361e7a['length'];_0x253ccd++){const _0x5469fb=_0x361e7a[_0x253ccd-0x1]||null;_0x361e7a[_0x253ccd]['previous']!==_0x5469fb&&(_0x361e7a[_0x253ccd]['previous']=_0x5469fb);}function _0x1eb123(_0x5a685d,_0x9d8f44){if(_0x5a685d[0x0]['attributes']['groupId']!==_0x9d8f44[0x0]['attributes']['groupId']&&_0x5a685d[0x0]['author']!==_0x9d8f44[0x0]['author'])return!0x1;if(!function(_0x4ffe82,_0x390440){if(!_0x4ffe82['hasComments']&&!_0x390440['hasComments'])return!0x0;if(_0x4ffe82['hasComments']&&_0x390440['hasComments'])return!0x1;if(_0x4ffe82['hasComments']&&_0x390440['createdAt']<_0x4ffe82['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x390440['hasComments']&&_0x4ffe82['createdAt']<_0x390440['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a685d[0x0],_0x9d8f44[0x0]))return!0x1;const _0x11dd6c=Vt(_0x5a685d[0x0]['attributes'],'groupId'),_0x2e02ed=Vt(_0x9d8f44[0x0]['attributes'],'groupId');if(!_0x483e20(_0x11dd6c,_0x2e02ed))return!0x1;return!!_0x5a685d['every'](_0x22608c=>_0x9d8f44['some'](_0xe30e65=>_0x22608c['getFirstRange']()['isEqual'](_0xe30e65['getFirstRange']())))&&_0x9d8f44['every'](_0x18a218=>_0x5a685d['some'](_0x3b82fd=>_0x18a218['getFirstRange']()['isEqual'](_0x3b82fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x49fcd5){const _0x4cf31a=Array['from'](_0x49fcd5),_0x3e592e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c7c54=_0x3e592e['filter'](_0x2966c7=>!_0x49fcd5['has'](_0x2966c7)),_0x1d4141=new Map(_0x4cf31a['map'](_0x347151=>[_0x347151,this['_suggestionFactory']['getSuggestionCallback'](_0x347151['type'],_0x347151['subType'],'join')])),_0x4b89cc=new Map(_0x3e592e['map'](_0x4700d8=>[_0x4700d8,_0x4700d8['getRanges']()]));for(let _0x281a9d=0x0;_0x281a9d<_0x4cf31a['length'];_0x281a9d++){if(_0x55b461(this,_0x4cf31a[_0x281a9d],_0x4cf31a,_0x281a9d+0x1))return!0x0;}for(let _0x2969ee=0x0;_0x2969ee<_0x4cf31a['length'];_0x2969ee++){if(_0x55b461(this,_0x4cf31a[_0x2969ee],_0x4c7c54,0x0))return!0x0;}return!0x1;function _0x55b461(_0x8a4634,_0x33ce29,_0x450b33,_0x8d4237){for(let _0x77f6ec=_0x8d4237;_0x77f6ec<_0x450b33['length'];_0x77f6ec++){const _0xff4039=_0x450b33[_0x77f6ec];if(_0xff4039['type']!==_0x33ce29['type']||_0xff4039['author']['id']!==_0x33ce29['author']['id']||_0xff4039['subType']!==_0x33ce29['subType'])continue;if(!Wt(_0x33ce29,_0xff4039))continue;if('attribute'==_0x33ce29['type']&&_0x33ce29['data']['oldValue']!=_0xff4039['data']['oldValue'])continue;if('attribute'==_0x33ce29['type']&&_0x8a4634['_isBlockAttribute'](_0x33ce29['data']['key']))continue;if('formatBlock'==_0x33ce29['type']){const _0x4b345b=_0x8a4634['editor']['model'],_0x2f57ba=_0x33ce29['getContainedElement']();if(_0x2f57ba&&(_0x4b345b['schema']['isObject'](_0x2f57ba)||_0x4b345b['schema']['isLimit'](_0x2f57ba)))continue;}const _0x277ffd=_0x1d4141['get'](_0x33ce29),_0x4ab329=_0x4b89cc['get'](_0x33ce29),_0x34bd2b=_0x4b89cc['get'](_0xff4039),_0x30fdec=_0x33ce29['commentThread']&&_0x33ce29['commentThread']['length'],_0x4c5fec=_0xff4039['commentThread']&&_0xff4039['commentThread']['length'];if(!_0x30fdec&&_0x277ffd(_0x34bd2b,_0x4ab329))return _0x8a4634['_joinSuggestions'](_0xff4039,_0x33ce29),_0x4b89cc['delete'](_0x33ce29),!0x0;if(!_0x4c5fec&&_0x277ffd(_0x4ab329,_0x34bd2b))return _0x8a4634['_joinSuggestions'](_0x33ce29,_0xff4039),_0x4b89cc['delete'](_0xff4039),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5cc6b9,_0x377114){if(_0x5cc6b9['isMultiRange']){for(const _0x5edfbe of _0x377114['getRanges']())_0x5cc6b9['addRange'](_0x5edfbe);}else{const _0x8362cd=_0x377114['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5cc6b9,this['_model']['createRange'](_0x5cc6b9['getFirstRange']()['start'],_0x8362cd));}_0x377114['removeMarkers']();}['_getMarkerAnnouncementText'](_0x58f471,_0xe54196,_0xaea7fd){const _0x5ae86c=_0x58f471['startsWith']('format')||_0x58f471['startsWith']('attribute')?'FORMATTING':_0x58f471['toUpperCase']();return o(this['editor']['locale'],_0xe54196+'_'+_0x5ae86c+'_SUGGESTION_ANNOUNCEMENT',_0xaea7fd);}['_initAriaMarkerChangeAnnouncements'](){const _0x1141fc=this['editor'];if(!_0x1141fc['ui'])return;const {ariaLiveAnnouncer:_0x369f7d}=_0x1141fc['ui'];_0x5c679e(this['_model'],({left:_0x1ea28e,entered:_0x238b30})=>{for(const _0x5c8b84 of _0x1ea28e){const {group:_0x3a6000,type:_0x2c41a5}=this['_splitMarkerName'](_0x5c8b84['name']);if('suggestion'===_0x3a6000){_0x369f7d['announce'](this['_getMarkerAnnouncementText'](_0x2c41a5,'LEAVE'));break;}}for(const _0x4958db of _0x238b30){const {group:_0x2f72ce,type:_0x5682e8}=this['_splitMarkerName'](_0x4958db['name']);if('suggestion'===_0x2f72ce){_0x369f7d['announce'](this['_getMarkerAnnouncementText'](_0x5682e8,'ENTER',_0x3cca6d(_0x17554f)));break;}}});}['_processAttributeChanges'](_0x535afa){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1c970f=this['editor'],_0x4d6f54=_0x1c970f['model']['document']['differ']['getChanges']();if(0x0==_0x4d6f54['length'])return!0x1;const _0xc6d0e7=[],_0x4f3a7f=_0x4d6f54['filter'](_0x3c4fba=>'attribute'==_0x3c4fba['type']),_0x3bb2a0=_0x4d6f54['filter'](_0x13ba52=>'insert'==_0x13ba52['type']&&'$text'!=_0x13ba52['name']),_0x5acdc0=_0x4d6f54['filter'](_0x4dbe7e=>'remove'==_0x4dbe7e['type']&&'$text'!=_0x4dbe7e['name']);for(const _0x1ebac9 of _0x4f3a7f)_0xc6d0e7['push']({'key':_0x1ebac9['attributeKey'],'newValue':_0x1ebac9['attributeNewValue'],'oldValue':_0x1ebac9['attributeOldValue'],'range':qt(_0x1ebac9['range'],_0x1c970f['model'])});for(const _0x2e9440 of _0x3bb2a0){const _0xda8af2=_0x5acdc0['find'](_0x314b87=>_0x314b87['position']['isEqual'](_0x2e9440['position']));_0xda8af2&&_0xc6d0e7['push']({'key':m,'newValue':_0x2e9440['name'],'oldValue':_0xda8af2['name'],'range':_0x1c970f['model']['createRangeOn'](_0x2e9440['position']['nodeAfter'])});}return 0x0!=_0xc6d0e7['length']&&this['_reduceExistingSuggestions'](_0x535afa,_0xc6d0e7);}['_processAttributeSuggestions'](_0x47289f){let _0x24cae8=!0x1;const _0x4ed10c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x57f643=>_0x57f643['data']['newRange']&&_0x57f643['name']['startsWith']('suggestion:attribute:'));for(const _0x5d8d56 of _0x4ed10c){const {subType:_0x5edd54,id:_0x5e7f5b}=this['_splitMarkerName'](_0x5d8d56['name']),_0x4f483b=_0x5edd54['split']('|')[0x0];for(const _0x3bb550 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bb550['id']!=_0x5e7f5b&&'attribute'==_0x3bb550['type']&&_0x3bb550['data']&&_0x3bb550['data']['key']==_0x4f483b&&_0x3bb550['getFirstRange']()['isIntersecting'](_0x5d8d56['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bb550,_0x5d8d56['data']['newRange'],_0x47289f),_0x24cae8=!0x0);}return _0x24cae8;}['_recordAttributeChanges'](_0xf5e8a4){this['_recordAttributeSuggestions']=!0x0,_0xf5e8a4();}['_isRegisteredAttribute'](_0x206996){const _0x228e97=this['_isBlockAttribute'](_0x206996),_0x5449b2=this['_inlineAttributeKeys']['has'](_0x206996);return _0x228e97||_0x5449b2;}['_reduceExistingSuggestions'](_0x12cc19,_0x5f214b){if(0x0==_0x5f214b['length'])return!0x1;let _0x7c66f=!0x1;for(const _0x2fdd97 of _0x5f214b){const _0x4ca7ce=this['_findSuggestions'](_0x2fdd97['range'],'attribute')['filter'](_0x1530fc=>!_0x1530fc['meta']['isNextTo'])['map'](_0x1d26a9=>_0x1d26a9['suggestion']),_0x1cdec4=_0x1c2190({'newValue':_0x2fdd97['newValue']});_0x4ca7ce['filter'](_0x6170a3=>{const [_0x551a9e,_0x412cbd]=_0x6170a3['subType']['split']('|');return _0x551a9e==_0x2fdd97['key']&&_0x412cbd!=_0x1cdec4;})['forEach'](_0x2fffb2=>{this['_reduceSuggestionAttributeRange'](_0x2fffb2,_0x2fdd97['range'],_0x12cc19),_0x7c66f=!0x0;});}return _0x7c66f;}['_reduceSuggestionAttributeRange'](_0x5d1fa6,_0x589598,_0x77895f){const _0x110b77=_0x5d1fa6['getFirstRange']()['getDifference'](_0x589598);0x0!==_0x110b77['length']?0x1!==_0x110b77['length']?this['_breakSuggestionMarker'](_0x5d1fa6,_0x589598['start'],_0x589598['end']):this['_setSuggestionRange'](_0x5d1fa6,_0x110b77[0x0]):_0x77895f['removeMarker'](_0x5d1fa6['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d8d5e){this['_editor']=_0x1d8d5e,this['_model']=_0x1d8d5e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3b180e,_0x42d673,_0xdbfa60,_0x25904a,_0x16ede5,_0x2c58fc){return new u(this['_model'],{'type':_0x3b180e,'subType':_0x42d673,'id':_0xdbfa60,'author':_0x25904a,'creator':_0x25904a,'attributes':_0x16ede5,'onAttributesChange':_0x2c58fc,'onAccept':(..._0x183b20)=>this['getSuggestionCallback'](_0x3b180e,_0x42d673,'accept')(..._0x183b20),'onDiscard':(..._0x77bef6)=>this['getSuggestionCallback'](_0x3b180e,_0x42d673,'discard')(..._0x77bef6)});}['registerCustomCallback'](_0xaa709c,_0x4e3a67,_0x5caf6f,_0x376a96){const _0x1c69d0=_0xaa709c+':'+_0x4e3a67+':'+_0x5caf6f;this['_customCallbacks']['set'](_0x1c69d0,_0x376a96);}['getSuggestionCallback'](_0x276fac,_0x22da0b,_0x3dc695){const _0x3fccd1=_0x276fac+':'+_0x22da0b+':'+_0x3dc695;return this['_customCallbacks']['get'](_0x3fccd1)||this['_defaultCallbacks']['get'](_0x276fac+':'+_0x3dc695);}['_registerDefaultCallbacks'](){const _0x2b7e47=()=>!0x1,_0x20496e=_0x5dcbfd=>{_0x5dcbfd['sort']((_0x7ccd94,_0x1f7462)=>_0x7ccd94['start']['isBefore'](_0x1f7462['start'])?0x1:-0x1),this['_model']['change'](_0x5b33e3=>{for(const _0x57c018 of _0x5dcbfd){let _0x5cea46;_0x5cea46=_0x57c018['end']['isAtEnd']&&_0x57c018['end']['parent']==_0x57c018['start']['nodeAfter']?_0x5b33e3['createSelection'](_0x57c018['start']['nodeAfter'],'on'):_0x5b33e3['createSelection'](_0x57c018),this['_model']['deleteContent'](_0x5cea46,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x59a6e3=(_0x582a54,_0x2e9d51)=>{_0x2e9d51&&this['_model']['change'](_0x3cd6a2=>{const {commandName:_0x31f88b,commandParams:_0x11917f=[]}=_0x2e9d51,_0x25fe6d=_0x582a54['map'](_0x48a560=>(Ft(_0x48a560)&&(_0x48a560=this['_model']['createRange'](_0x48a560['end'])),_0x48a560))['filter'](_0x38b741=>'$graveyard'!==_0x38b741['root']['rootName']);if(_0x25fe6d['length']<0x1)return;const _0x5551fe=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1d385f=>_0x4f46eb['fromRange'](_0x1d385f));_0x3cd6a2['setSelection'](_0x25fe6d);for(const _0x47669c of this['_editor']['commands']['commands']())_0x47669c['refresh']();_0x11917f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31f88b,..._0x11917f);const _0x107622=_0x5551fe['filter'](_0x3b97d3=>'$graveyard'!=_0x3b97d3['root']['rootName']);_0x107622['length']>0x0&&_0x3cd6a2['setSelection'](_0x107622);for(const _0x12c98f of _0x5551fe)_0x12c98f['detach']();});},_0x367793=(_0x28432a,_0xc82f54)=>0x1==_0x28432a['length']&&0x1==_0xc82f54['length']&&_0x28432a[0x0]['end']['isEqual'](_0xc82f54[0x0]['start']),_0x5c704f=(_0x101dfc,_0x5b902f,_0x4d5819,_0x3e7045)=>Kt(_0x101dfc,_0x5b902f,_0x4d5819,_0x3e7045)?[_0x101dfc,_0x5b902f]:Kt(_0x5b902f,_0x101dfc,_0x3e7045,_0x4d5819)?[_0x5b902f,_0x101dfc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b7e47),this['_defaultCallbacks']['set']('insertion:discard',_0x20496e),this['_defaultCallbacks']['set']('insertion:join',_0x367793),this['_defaultCallbacks']['set']('insertion:chain',_0x5c704f),this['_defaultCallbacks']['set']('deletion:accept',_0x20496e),this['_defaultCallbacks']['set']('deletion:discard',_0x2b7e47),this['_defaultCallbacks']['set']('deletion:join',_0x367793),this['_defaultCallbacks']['set']('deletion:chain',_0x5c704f),this['_defaultCallbacks']['set']('formatInline:accept',_0x59a6e3),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b7e47),this['_defaultCallbacks']['set']('formatInline:join',_0x367793),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b7e47),this['_defaultCallbacks']['set']('formatBlock:accept',_0x59a6e3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b7e47),this['_defaultCallbacks']['set']('formatBlock:join',_0x367793),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b7e47),this['_defaultCallbacks']['set']('attribute:accept',_0x2b7e47),this['_defaultCallbacks']['set']('attribute:discard',(_0x4f82b1,_0xb514f3)=>{if(!_0xb514f3)return;const _0x64174e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x301e35=>{if(_0xb514f3['key']==m)for(const _0x203be6 of _0x4f82b1){const _0x4bd6b4=_0x203be6['start']['nodeAfter'],_0x188af5=_0xb514f3['oldValue'];_0x301e35['rename'](_0x4bd6b4,_0x188af5);}else{if(_0x64174e['_isBlockAttribute'](_0xb514f3['key'])){for(const _0x48222d of _0x4f82b1)void 0x0!==_0xb514f3['oldValue']?_0x301e35['setAttribute'](_0xb514f3['key'],_0xb514f3['oldValue'],_0x48222d['start']['nodeAfter']):_0x301e35['removeAttribute'](_0xb514f3['key'],_0x48222d['start']['nodeAfter']);}else{for(const _0x12cdc7 of _0x4f82b1)_0xb514f3['oldValue']?_0x301e35['setAttribute'](_0xb514f3['key'],_0xb514f3['oldValue'],_0x12cdc7):_0x301e35['removeAttribute'](_0xb514f3['key'],_0x12cdc7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x367793);}}function Gt(_0x459c6e,_0x321ae2,_0x254f7a){for(const _0x571182 of _0x321ae2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x571182['root']==_0x571182)return!0x1;if(!_0x254f7a['containsItem'](_0x571182))return!0x1;if(_0x459c6e['isObject'](_0x571182)||_0x459c6e['isLimit'](_0x571182))return!0x0;}return!0x1;}function Ft(_0x3654be){return _0x3654be['end']['parent']==_0x3654be['start']['nodeAfter']&&_0x3654be['end']['isAtStart'];}function Lt(_0x56b545,_0x2aa75b,_0x1374c3,_0x33be10){const _0x57b098=_0x344b1d=>!_0x344b1d['item']['is']('$textProxy')&&!_0x33be10['isObject'](_0x344b1d['item']),_0x55a051=_0x56b545['start']['getLastMatchingPosition'](_0x57b098),_0x3f964d=_0x56b545['end']['getLastMatchingPosition'](_0x57b098,{'direction':'backward'});return(!_0x56b545['start']['isEqual'](_0x55a051)||!_0x56b545['end']['isEqual'](_0x3f964d))&&(_0x55a051['isBefore'](_0x3f964d)?_0x1374c3['updateMarker'](_0x2aa75b,{'range':_0x1374c3['createRange'](_0x55a051,_0x3f964d)}):_0x1374c3['removeMarker'](_0x2aa75b),!0x0);}function Jt(_0x25e380){return _0x1c2190(_0x25e380);}function Ht(_0x159b14){const _0x3dd59e=_0x159b14['start']['nodeAfter'];return _0x3dd59e&&_0x3dd59e['is']('element');}function qt(_0x1c263b,_0x5107fe){return null==_0x1c263b['end']['nodeBefore']&&_0x1c263b['end']['parent']==_0x1c263b['start']['nodeAfter']?zt(_0x1c263b['start']['nodeAfter'],_0x5107fe):_0x1c263b;}function zt(_0x48365a,_0x190ee4){const _0x3f65d2=_0x190ee4['schema']['isObject'](_0x48365a)||_0x190ee4['schema']['isSelectable'](_0x48365a);return _0x190ee4['createRange'](_0x190ee4['createPositionAt'](_0x48365a,'before'),_0x3f65d2?_0x190ee4['createPositionAfter'](_0x48365a):_0x190ee4['createPositionAt'](_0x48365a,'end'));}function Kt(_0x51873f,_0x2960dc,_0x54ac66,_0x2ab359){return!!Wt(_0x51873f,_0x2960dc)&&_0x54ac66['end']['isEqual'](_0x2ab359['start']);}function Wt(_0x5c1a98,_0x1b975f){if(!_0x5c1a98['_isDataLoaded']||!_0x1b975f['_isDataLoaded'])return!0x1;const _0x3766e1=new Set(Object['keys'](_0x5c1a98['attributes'])),_0xa917ba=new Set(Object['keys'](_0x1b975f['attributes']));if(_0x3766e1['delete']('groupId'),_0xa917ba['delete']('groupId'),0x0==_0x3766e1['size']&&0x0==_0xa917ba['size'])return!0x0;if(_0x3766e1['size']!=_0xa917ba['size'])return!0x1;const _0x1bb6c5={..._0x5c1a98['attributes']},_0x19ca0f={..._0x1b975f['attributes']};return delete _0x1bb6c5['groupId'],delete _0x19ca0f['groupId'],JSON['stringify'](_0x1bb6c5)==JSON['stringify'](_0x19ca0f);}function Qt(_0x37df6a,_0x58c53a){const _0xd5ef4e=Xt(_0x37df6a['attributes']),_0x15ee7f=Xt(_0x58c53a);if(!_0x37df6a['_isDataLoaded'])return!0x1;for(const _0x50666b of Object['keys'](_0x15ee7f))if(!_0x483e20(_0xd5ef4e[_0x50666b],_0x15ee7f[_0x50666b]))return!0x1;return!0x0;}function Xt(_0x48511c){const _0x1dd3f7=Object['assign']({},_0x48511c);return delete _0x1dd3f7['skipNestingCheck'],delete _0x1dd3f7['tablePasteChainId'],_0x1dd3f7;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x28b3e7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x512a28,_0x437861,_0xdc74dc,_0x735075){super(),this['model']=_0x437861,this['view']=_0xdc74dc,this['commentThreadController']=_0x735075,this['_editor']=_0x512a28,this['_acceptCommand']=_0x512a28['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x512a28['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ab750,_0x503096)=>_0x3ab750||_0x503096),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3b2962=>_0x3b2962&&this['_editor']['model']['canEditAt'](_0x437861['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3ae24c=>_0x3ae24c&&this['_editor']['model']['canEditAt'](_0x437861['getRanges']())),this['_pendingAction']=null,_0xdc74dc['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xdc74dc,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xdc74dc,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xdc74dc,'change:isDirty',()=>{_0xdc74dc['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 _0x1fd882=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1fd882);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x33b69b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x592229,_0x266c80,_0x9c81ce,_0x352854){super(_0x592229),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xde46fc(_0x592229,o(_0x592229,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x266c80['authoredAt']),this['bind']('authoredAt')['to'](_0x266c80),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',_0x266c80,'authoredAt',this,'descriptionParts',(_0x211dce,_0x5da4ca,_0x386a3d)=>{const _0x77fdfb=_0x386a3d['map'](_0x456bb0=>cs(_0x456bb0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x211dce-0x1,_0x266c80['author']['name'],_0x5da4ca?_0x352854['formatDateTime'](_0x5da4ca):'',new DOMParser()['parseFromString'](_0x77fdfb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5ba900(),this['focusTracker']=new _0x2c535c(),this['keystrokes']=new _0x411b8d(),this['focusCycler']=new _0x3a69b4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x45c2c2=>_0x45c2c2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x266c80,this['_localUser']=_0x9c81ce,this['_config']=_0x352854,_0x352854['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3df98c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3f12f6}=this['_config'];this['commentsListView']=new _0x3f12f6(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',_0x204094=>_0x204094+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x565cb5,_0x21070b)=>_0x565cb5||!!_0x21070b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x434ece}=this['_config'],_0x4b2333=new _0x434ece(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f316e=_0x4b2333['commentInputView'];return _0x4b2333['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f316e,'value',(_0x249d56,_0x56d4f2,_0x52eaea)=>!!_0x52eaea||_0x249d56&&!_0x56d4f2),_0x3f316e['on']('submit',(_0x3a4747,_0x2934c5)=>{this['fire']('addComment',_0x2934c5),_0x3f316e['editor']['setData']('');}),_0x3f316e['on']('cancel',()=>this['focus']()),_0x3f316e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4b2333;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x5d4d2d,_0x27d359,_0x1309fe,_0x1f00f8){super(_0x5d4d2d,_0x27d359,_0x1309fe,_0x1f00f8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x156755=>_0x156755&&_0x156755[0x0]?_0x156755[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x461730,_0x38c7e7)=>{let _0x11d562='';for(const _0x583a9b of _0x461730)_0x11d562+='<p>'+cs(_0x583a9b['content'],_0x583a9b['color'])+'</p>';return _0x38c7e7?_0x11d562:_0xce5d8e(_0x11d562,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1f00f8['SuggestionView'](_0x5d4d2d,_0x27d359,{'formatDateTime':_0x1f00f8['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 _0x5ae8f6=this['bindTemplate'],_0x29c850=[this['suggestionView']];return this['commentsListView']&&_0x29c850['push'](this['commentsListView']),this['commentThreadInputView']&&_0x29c850['push'](this['commentThreadInputView']),_0x29c850['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ae8f6['if']('isActive','ck-suggestion-wrapper--active'),_0x5ae8f6['to']('type',_0x51f348=>'ck-suggestion-'+_0x51f348),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':_0x5ae8f6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x29c850};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x33b69b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4bc85d,_0x3881eb,_0x1ed12b){super(_0x4bc85d),this['_model']=_0x3881eb,this['_config']=_0x1ed12b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3881eb),this['acceptButton']=this['_createButton'](o(_0x4bc85d,'Accept\x20suggestion'),_0x146320['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4bc85d,'Discard\x20suggestion'),_0x146320['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x28de63(_0x4bc85d,_0x3881eb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5ba900([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2c535c(),this['keystrokes']=new _0x411b8d(),this['focusCycler']=new _0x3a69b4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x394709=>_0x394709['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x123b64=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x123b64['innerHTML']=this['description'],this['on']('change:description',(_0x1ab792,_0x1f49fc,_0x877a4f)=>{_0x123b64['innerHTML']=_0x877a4f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xfe6633=this['bindTemplate'],_0x1e7a5f=[{'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':_0xfe6633['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xfe6633['to']('authoredAt',_0x207f8d=>this['_config']['formatDateTime'](_0x207f8d))}]}]},{'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']&&_0x1e7a5f['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':_0x1e7a5f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3411b9,_0x110743,_0x12852d,_0x3bc84c,_0x2a7c07){const _0x3edbf3=new _0x5e2872(this['locale']);return _0x3edbf3['set']({'label':_0x3411b9,'icon':_0x110743,'tooltip':!0x0,'tooltipPosition':_0x2a7c07}),_0x3edbf3['extendTemplate']({'attributes':{'class':_0x12852d}}),_0x3edbf3['on']('execute',()=>{this['fire'](_0x3bc84c,this['_model']['id']);}),_0x3edbf3;}['_setupKeyboardNavigation'](){const _0x244c72=this['element'];this['keystrokes']['listenTo'](_0x244c72);for(const _0x1af992 of this['focusables'])this['focusTracker']['add'](_0x1af992['element']),this['keystrokes']['listenTo'](_0x1af992['element']);this['keystrokes']['set']('enter',(_0x2a96df,_0xd6e84a)=>{_0x244c72===_0x2a96df['target']&&(this['focusCycler']['focusFirst'](),_0xd6e84a());}),this['keystrokes']['set']('esc',(_0x448379,_0x204ea8)=>{_0x244c72!==_0x448379['target']&&(this['focus'](),_0x204ea8());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0xa4b53f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x110e12,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11272e){super(_0x11272e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x571535=this['editor']['config'];_0x571535['define']('trackChanges.SuggestionThreadView',pe),_0x571535['define']('trackChanges.SuggestionView',fe),_0x571535['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x571535['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5940ef,_0xea4324){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2703e5,_0x4751f5]of this['_handleControllerBuffer']){const _0x2ecfed=this['_suggestionToController']['has'](_0x2703e5);_0x2ecfed||_0x4751f5?_0x2ecfed&&_0x4751f5&&this['_destroyController'](_0x2703e5):this['_initializeController'](_0x2703e5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5940ef,_0xea4324);}['init'](){const _0x4fcc9b=this['editor'],_0x39de1f=_0x4fcc9b['plugins']['get']('TrackChangesEditing'),_0x32a26f=_0x4fcc9b['plugins']['get']('Annotations'),_0x5a1e58=_0x4fcc9b['plugins']['get']('EditorAnnotations'),_0x139bb0=_0x4fcc9b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5a1e58['addSourceCollector'](()=>{const _0x3391bf=[];for(const [_0x311591,_0x1d53df]of Array['from'](this['_suggestionToController'])){const _0x2db6fb=_0x311591['getAllAdjacentSuggestions'](),_0x28ee48=[];for(const _0x58eddf of _0x2db6fb){if(!_0x58eddf['isInContent'])continue;if(_0x58eddf['isMultiRange']){_0x28ee48['push'](..._0x58eddf['getRanges']());continue;}const _0x4b28a3=_0x58eddf['getFirstRange']();if(_0x28ee48['length']>0x0){const _0x2900d7=_0x28ee48[0x0]['getJoined'](_0x4b28a3);if(_0x2900d7){_0x28ee48[0x0]=_0x2900d7;continue;}}_0x28ee48['push'](_0x4b28a3);}_0x3391bf['push']([_0x1d53df['view'],_0x28ee48]);}return _0x3391bf;}),this['listenTo'](_0x39de1f,'suggestionLoaded',(_0x498bfd,_0x75db63)=>{this['listenTo'](_0x75db63,'change:previous',(_0x4835d7,_0x50b0cc,_0x106a59,_0x448a76)=>{_0x75db63['isInContent']&&(null==_0x106a59?(this['_updateController'](_0x448a76['head']),this['_handleSuggestionControllerDelayed'](_0x75db63,!0x1)):(this['_updateController'](_0x106a59['head']),null==_0x448a76&&this['_handleSuggestionControllerDelayed'](_0x75db63,!0x0)));}),null!==_0x75db63['previous']?this['_updateController'](_0x75db63['head']):this['_handleSuggestionControllerDelayed'](_0x75db63,!0x1);}),this['listenTo'](_0x39de1f,'suggestionUnloaded',(_0x42dd98,_0x899528,_0x4d7e41)=>{this['stopListening'](_0x899528,'change:previous'),this['_handleControllerBuffer']['delete'](_0x899528),this['_suggestionToController']['has'](_0x899528)&&this['_destroyController'](_0x899528),_0x4d7e41&&this['_updateController'](_0x4d7e41['head']);}),this['listenTo'](_0x39de1f,'suggestionChanged',(_0x264fb2,_0x411c86)=>{this['_updateController'](_0x411c86);}),this['listenTo'](_0x32a26f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x139bb0,'addComment',(_0x4a8fca,{threadId:_0xfb5c6c,isFromAdapter:_0x564544})=>{if(_0x564544||!_0x39de1f['hasSuggestion'](_0xfb5c6c))return;const _0x387e6d=_0x39de1f['getSuggestion'](_0xfb5c6c);this['_suggestionToController']['get'](_0x387e6d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ec3fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bf92e;for(const _0x51ad26 in _0x3ec3fd){const _0x1c0910=_0x51ad26,_0x515df2=_0x3ec3fd[_0x1c0910];if('trackChangesLicenseKeyValid'==_0x515df2||'trackChangesLicenseKeyInvalid'==_0x515df2||'trackChangesLicenseKeyExpired'==_0x515df2||'trackChangesLicenseKeyDomainLimit'==_0x515df2||'trackChangesLicenseKeyNotAllowed'==_0x515df2||'trackChangesLicenseKeyEvaluationLimit'==_0x515df2||'trackChangesLicenseKeyTrialLimit'==_0x515df2||'trackChangesLicenseKeyUsageLimit'==_0x515df2){delete _0x3ec3fd[_0x1c0910],_0x3bf92e=_0x515df2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xe3fe02=this['editor']['plugins']['get']('Annotations'),_0x2ad68d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39a116=Array['from'](_0xe3fe02['activeAnnotations'],_0x836d00=>_0x836d00['innerView'])['filter'](_0x299c22=>this['_viewToController']['has'](_0x299c22)),_0x356b76=[];for(const _0x363c00 of _0x39a116){const _0x3b7c1d=this['_viewToController']['get'](_0x363c00)['model']['getAllAdjacentSuggestions']();_0x356b76['push'](..._0x3b7c1d['reduce']((_0x55887c,_0x3a1ae0)=>[..._0x55887c,..._0x3a1ae0['getMarkerNames']()],[]));}_0x2ad68d['activeMarkers']=_0x356b76;}['_addUIComponentsToFactory'](){const _0xe32798=this['editor'],_0x4cccf1=_0xe32798['locale'],_0x1d8b29=o(_0x4cccf1,'Track\x20changes'),_0x424781=new _0xbd48a([{'type':'switchbutton','model':new _0x56f17e({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d8b29,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xe32798['plugins']['has']('TrackChangesPreview')&&_0x424781['addMany']([{'type':'separator'},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x412949 of _0x424781)if(ke(_0x412949)){const _0x265d4b=_0xe32798['commands']['get'](_0x412949['model']['commandName']);_0x412949['model']['bind']('isOn','isEnabled')['to'](_0x265d4b,'value','isEnabled');}_0xe32798['ui']['componentFactory']['add']('trackChanges',_0x2a7dee=>this['_createToolbarButton'](_0x2a7dee,_0x424781,_0x1d8b29)),_0xe32798['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d7911=>this['_createMenuBarMenu'](_0x2d7911,_0x424781,_0x1d8b29));}['_createToolbarButton'](_0x3bdfee,_0xe0aabe,_0x19031b){const _0x2aa86b=_0x12c985(_0x3bdfee,_0x120e2f),_0x41683a=this['editor']['commands']['get']('trackChanges');_0x2aa86b['buttonView']['set']({'tooltip':_0x19031b,'label':_0x19031b,'icon':we}),_0x2aa86b['buttonView']['bind']('isOn')['to'](_0x41683a,'value'),_0x2aa86b['buttonView']['on']('execute',()=>{_0x41683a['execute'](),this['editor']['editing']['view']['focus']();}),_0x2136e8(_0x2aa86b,_0xe0aabe,{'role':'menu'});const _0x1dbb11=[];for(const _0x46b928 of _0xe0aabe)ke(_0x46b928)&&_0x1dbb11['push'](this['editor']['commands']['get'](_0x46b928['model']['commandName']));const _0xee0d3c=_0x2aa86b['buttonView'];return _0xee0d3c['actionView']['unbind']('isEnabled'),_0xee0d3c['arrowView']['unbind']('isEnabled'),_0xee0d3c['actionView']['bind']('isEnabled')['to'](_0x41683a,'isEnabled'),_0xee0d3c['arrowView']['bind']('isEnabled')['toMany'](_0x1dbb11,'isEnabled',(..._0x1e2990)=>_0x1e2990['some'](_0x21eadb=>_0x21eadb)),_0x2aa86b['on']('execute',_0x23569a=>{this['editor']['execute'](_0x23569a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2aa86b;}['_createMenuBarMenu'](_0x235fdb,_0x52ef30,_0x28df89){const _0x1c827e=new _0x922c1d(_0x235fdb),_0x5e2ece=this['editor']['commands']['get']('trackChanges');_0x1c827e['buttonView']['set']({'label':_0x28df89,'icon':we});const _0x11c428=new _0xceb2eb(_0x235fdb);for(const _0x3ae9ea of _0x52ef30){if('separator'==_0x3ae9ea['type']){_0x11c428['items']['add'](new _0x297364(_0x235fdb));continue;}const _0x11b58f=new _0x29da40(_0x235fdb,_0x1c827e),_0x50a4b4=new _0x23292a(_0x235fdb),_0x28d61a=_0x3ae9ea['model'];_0x50a4b4['bind'](...Object['keys'](_0x28d61a))['to'](_0x28d61a),_0x50a4b4['delegate']('execute')['to'](_0x1c827e),_0x50a4b4['on']('execute',()=>{this['editor']['execute'](_0x28d61a['commandName']),this['editor']['editing']['view']['focus']();}),_0x11b58f['children']['add'](_0x50a4b4),_0x11c428['items']['add'](_0x11b58f);}return _0x1c827e['bind']('isEnabled')['to'](_0x5e2ece,'isEnabled'),_0x1c827e['panelView']['children']['add'](_0x11c428),_0x1c827e;}['_initializeController'](_0xad29fc){const _0x5b751a=this['editor'],_0x9bb8da=_0x5b751a['config'],_0x2e4121=_0x5b751a['plugins']['get']('Annotations'),_0x4b302d=_0x5b751a['plugins']['get']('CommentsRepository'),_0x230498=_0x5b751a['plugins']['get']('EditorAnnotations'),_0x32a9e9=_0x5b751a['plugins']['get'](_0x110e12)['me'],_0x37e69a=_0x9bb8da['get']('trackChanges')['SuggestionThreadView'],_0xcdbaf=_0x9bb8da['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x246926,CommentThreadInputView:_0x32a4a8}=_0x5b751a['plugins']['get']('CommentsUI');let _0x21d4fd,_0x238961,_0x377ac4;this['_annotationViews']['has'](_0xad29fc['id'])?(_0x238961=this['_annotationViews']['get'](_0xad29fc['id']),_0x21d4fd=_0x238961['mainView']):(_0x21d4fd=new _0x37e69a(_0x5b751a['locale'],_0xad29fc,_0x32a9e9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x9bb8da['get']('comments.editorConfig'),'licenseKey':_0x9bb8da['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x9bb8da['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9bb8da['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x9bb8da['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x11931c(_0x9bb8da['get']('locale')),'CommentView':_0x9bb8da['get']('comments')['CommentView'],'CommentsListView':_0x246926,'CommentThreadInputView':_0x32a4a8,'SuggestionView':_0xcdbaf}),_0x21d4fd['suggestionView']['acceptButton']['on']('execute',()=>{_0x5b751a['editing']['view']['focus']();}),_0x21d4fd['suggestionView']['discardButton']['on']('execute',()=>{_0x5b751a['editing']['view']['focus']();}),_0x238961=_0x2e4121['createAnnotationView'](this['editor']['locale'],_0x21d4fd),_0x238961['bind']('isDirty')['to'](_0x21d4fd,'isDirty'),_0x238961['bind']('length')['to'](_0x21d4fd),_0x238961['bind']('type')['to'](_0x21d4fd,'type',_0x1cb340=>'suggestion-'+_0x1cb340),_0x21d4fd['on']('escape',()=>{_0x377ac4['fire']('escape');}),this['_annotationViews']['set'](_0xad29fc['id'],_0x238961));const _0x48512c=_0x4b302d['createCommentThreadController'](_0xad29fc['commentThread'],_0x21d4fd),_0x1600e1=new Ce(_0x5b751a,_0xad29fc,_0x21d4fd,_0x48512c),_0x4f3b63=_0xad29fc['getAllAdjacentSuggestions']()['filter'](_0x5cb705=>_0x5cb705['isInContent']);_0x21d4fd['descriptionParts']=_0x5b751a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4f3b63),this['_suggestionToController']['set'](_0xad29fc,_0x1600e1),this['_viewToController']['set'](_0x21d4fd,_0x1600e1),_0x377ac4=_0x2e4121['createAnnotation']({'view':_0x238961,'target':()=>{const _0x3a1aea=[],_0x395787=_0xad29fc['getAllAdjacentSuggestions']()['filter'](_0x4008bc=>_0x4008bc['isInContent']);for(const _0x3df667 of _0x395787)_0x3a1aea['push'](..._0x3df667['getMarkers']());return _0x300bcd(_0x5b751a['editing'],_0x3a1aea);},'type':()=>'suggestion-'+_0x1600e1['view']['type']}),_0x4b302d['_bindAnnotationToEditors'](_0x21d4fd,_0x377ac4),_0x2e4121['add'](_0x377ac4),_0x230498['registerAnnotation'](_0x377ac4);}['_destroyController'](_0x3def0f){const _0x236d4b=this['editor']['plugins']['get']('CommentsRepository'),_0x1c447b=this['editor']['plugins']['get']('Annotations'),_0x475f4d=this['_suggestionToController']['get'](_0x3def0f),_0x211184=_0x475f4d['view'],_0x530889=_0x1c447b['getByInnerView'](_0x211184);_0x236d4b['_unbindEditors'](_0x211184),_0x530889&&_0x1c447b['remove'](_0x530889),this['_suggestionToController']['delete'](_0x3def0f),this['_viewToController']['delete'](_0x211184),_0x475f4d['destroy']();}['_updateController'](_0x38b9e3){if(!_0x38b9e3['isInContent']||!this['_suggestionToController']['has'](_0x38b9e3))return;const _0x1b3df8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f92df=this['_suggestionToController']['get'](_0x38b9e3),_0x244807=_0x38b9e3['getAllAdjacentSuggestions']();_0x2f92df['view']['descriptionParts']=_0x1b3df8['descriptionFactory']['getDescriptions'](_0x244807);}['destroy'](){for(const _0x25d387 of this['_suggestionToController']['keys']())this['_destroyController'](_0x25d387);for(const _0x11828c of this['_annotationViews']['values']())_0x11828c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x592373){return'model'in _0x592373;}class k extends _0xa4b53f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7de181){this['editor']['plugins']['get'](p)['adapter']=_0x7de181;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x32103b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x32103b);}['getSuggestions']({skipNotAttached:_0x133c41=!0x1,toJSON:_0x28069c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x133c41,'toJSON':_0x28069c});}['getSuggestion'](_0x42ed46){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x42ed46);}}const w=['Pagination'];class T extends _0xa4b53f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x487f9c=this['editor'];if(_0x487f9c['config']['define']('trackChangesData.editorCreator',_0x246e4a=>{const _0xb40b2b=_0x487f9c['model']['document']['getRootNames']()['reduce']((_0x238fcc,_0x52a278)=>(_0x238fcc[_0x52a278]='',_0x238fcc),{});return _0x487f9c['constructor']['create'](_0xb40b2b,_0x246e4a);}),'function'!=typeof _0x487f9c['config']['get']('trackChangesData')['editorCreator'])throw new _0x11aaec('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x38c097){return N(this['editor'],!0x0,_0x38c097);}['getDataWithDiscardedSuggestions'](_0x552695){return N(this['editor'],!0x1,_0x552695);}}class D extends _0xa4b53f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f1d3d){function _0x1800ac(_0x134671){return _0x134671['map'](_0x31d588=>String['fromCharCode'](_0x31d588))['join']('');}super(_0x5f1d3d),this['result']='end',_0x5f1d3d[_0x1800ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1800ac([0x76,0x69,0x65,0x77])][_0x1800ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1800ac([0x61,0x75,0x74,0x6f]),_0x5f1d3d[_0x1800ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1800ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1800ac([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1800ac([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1800ac([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x209f9e){return void 0x0!==_0x209f9e['getRootsAttributes'];}async function N(_0x2d8f40,_0x110f62,_0x12eb0b){const _0x2a3964=_0x3f9cf9(_0x2d8f40,w);_0x2a3964['plugins']['push'](p,D),_0x2a3964['rootsAttributes']=Fe(_0x2d8f40)?_0x2d8f40['getRootsAttributes']():void 0x0;const _0x58b772=document['createDocumentFragment'](),_0x3b743e=_0x2d8f40['config']['get']('trackChangesData')['editorCreator'],_0x3e8623=await _0x3b743e(_0x2a3964,()=>function(_0xf0c8be){const _0x3719da=document['createElement']('div');return _0xf0c8be['appendChild'](_0x3719da),_0x3719da;}(_0x58b772));!function(_0x21446f,_0x4d3048){const _0x49c284=_0x21446f['model']['document']['getRootNames']()['reduce']((_0x3388e5,_0x5eeaeb)=>(_0x3388e5[_0x5eeaeb]=_0x21446f['data']['get']({'rootName':_0x5eeaeb}),_0x3388e5),{}),_0x3a2342=_0x21446f['plugins']['get']('Users')['users']['map'](_0x2d74d9=>({'id':_0x2d74d9['id'],'name':_0x2d74d9['name']})),_0x39b0d8=_0x21446f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4854c9=_0x21446f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29d0e0=_0x4d3048['plugins']['get']('Users'),_0x11f622=_0x4d3048['plugins']['get']('TrackChangesEditing'),_0x151dc7=_0x4d3048['plugins']['get']('CommentsRepository');for(const _0x3717a0 of _0x151dc7['getCommentThreads']())_0x3717a0['remove']();for(const _0x19cf4c of _0x3a2342)_0x29d0e0['getUser'](_0x19cf4c['id'])||_0x29d0e0['addUser'](_0x19cf4c);_0x29d0e0['me']||_0x29d0e0['useAnonymousUser']();for(const _0x25edb6 of _0x4854c9)_0x151dc7['addCommentThread'](_0x25edb6);for(const _0xa53afe of _0x39b0d8)_0x11f622['addSuggestionData'](_0xa53afe);_0x4d3048['data']['set'](_0x49c284);}(_0x2d8f40,_0x3e8623),_0x3e8623['execute'](_0x110f62?'acceptAllSuggestions':'discardAllSuggestions');const _0x1cc6d7=Fe(_0x3e8623)?_0x3e8623['getFullData'](_0x12eb0b):_0x3e8623['data']['get'](_0x12eb0b);return await _0x3e8623['destroy'](),_0x1cc6d7;}class Me extends _0x33b69b{['options'];constructor(_0x1c4827,_0x54d4e2){super(_0x1c4827),this['options']=_0x54d4e2,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'](_0x4b9d66,_0x2aa450){if(!this['element'])return;const _0x56e35a=[];for(const [_0xd29635,_0x585310]of _0x4b9d66){const _0x48d687=document['createElement']('div');_0x48d687['setAttribute']('data-ck-root-name',_0xd29635),_0x48d687['className']=_0x585310['classes']+'\x20ck-track-changes-preview__root-container',_0x48d687['innerHTML']=_0x585310['content'],_0x56e35a['push'](_0x48d687);}_0x2aa450(this['element'],_0x56e35a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x14acb2){super(_0x14acb2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4e2c97=this['editor'],_0x350f3f=_0x4e2c97['locale'],_0x53ef6f=_0x4e2c97['plugins']['get']('Dialog');let _0x548e11;const _0x2cba8b=function(_0x597807){const _0x3c2569={};if('editables'in _0x597807['ui']['view']){for(const [_0x47e4e7,_0x13df6b]of Object['entries'](_0x597807['ui']['view']['editables']))_0x3c2569[_0x47e4e7]=_0x13df6b['element'];}else _0x3c2569[_0x597807['model']['document']['getRootNames']()[0x0]]=_0x597807['ui']['view']['editable']['element'];return _0x3c2569;}(_0x4e2c97),_0x304499=function(_0x239e27){let _0x59490f=0x0;for(const _0x18313e of Object['values'](_0x239e27))_0x59490f=Math['max'](_0x59490f,_0x18313e['getBoundingClientRect']()['width']);let _0x3ca127=0x0;for(const _0x2d2227 of Object['values'](_0x239e27))_0x3ca127+=_0x2d2227['getBoundingClientRect']()['height'];const _0x1c561e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x33674f=Math['min'](_0x3ca127,_0x1c561e);return{'width':_0x59490f,'height':_0x33674f};}(_0x2cba8b);_0x53ef6f['show']({'id':'finalContentPreview','title':o(_0x350f3f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x350f3f,{'dialogRects':_0x304499}),'onHide':()=>{_0x548e11['detachFromDom']();},'onShow':()=>{_0x4e2c97['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1f7b93=>{const _0x59ec96=this['_standarizeRootsData'](_0x1f7b93,_0x4e2c97,_0x2cba8b);_0x53ef6f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x59ec96,_0x4e2c97['config']['get']('trackChanges.preview.renderFunction'));}),_0x548e11=new _0x187050(_0x350f3f,[_0x53ef6f['view']]),_0x548e11['attachToDom'](),_0x548e11['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4e2c97['once']('destroy',()=>{_0x548e11['detachFromDom']();});const _0x235ada=_0x53ef6f['view']['headerView']['class'];_0x53ef6f['view']['headerView']['class']=_0x235ada?_0x235ada+'\x20ck-reset_all':'ck-reset_all',_0x53ef6f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x53ef6f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x52981a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x15036a=_0x52981a['previewMode'],_0x2b3ca1={};if('$labels'===_0x15036a){for(const _0x4e1198 of _0x52981a['getMergeFieldsIds']())_0x2b3ca1[_0x4e1198]=_0x52981a['getLabel'](_0x4e1198)||_0x4e1198;}else{const _0x763e20='$defaultValues'===_0x15036a?_0x52981a['getDefaultValues']():_0x52981a['getDataSetValues'](_0x15036a,!0x0);for(const _0x5f6081 of Object['entries'](_0x763e20)){const [_0x31a409,_0x1195ed]=_0x5f6081;_0x2b3ca1[_0x31a409]=null!==_0x1195ed?_0x1195ed:_0x52981a['getLabel'](_0x31a409)||_0x31a409;}}return{'mergeFieldsData':_0x2b3ca1};}['_standarizeRootsData'](_0x168df0,_0x565d0d,_0x3f74dd){let _0x3a93ae;if('string'==typeof _0x168df0){const _0x4a0d6d=_0x565d0d['model']['document']['getRootNames']()[0x0];_0x3a93ae={[_0x4a0d6d]:_0x168df0};}else _0x3a93ae=_0x168df0;const _0x3e4ccd=this['_fixMediaEmbeds'](_0x3a93ae,_0x565d0d),_0x24ce1b=function(_0x246f4d,_0x336b8b){for(const [_0x3744b7,_0x431108]of _0x246f4d)_0x431108['classes']=_0x336b8b[_0x3744b7]['classList']['value']['replace']('ck-focused','');return _0x246f4d;}(this['_sortRoots'](_0x565d0d)['reduce']((_0x1e86a0,_0x3da285)=>(_0x1e86a0['push']([_0x3da285,{'content':_0x3e4ccd[_0x3da285],'classes':''}]),_0x1e86a0),[]),_0x3f74dd);return _0x24ce1b;}['_fixMediaEmbeds'](_0x17730c,_0x4d18f7){if(!_0x4d18f7['plugins']['has']('MediaEmbedEditing'))return _0x17730c;const _0x4e9805=_0x4d18f7['plugins']['get']('MediaEmbedEditing');for(const [_0x1f1c9d,_0x31795b]of Object['entries'](_0x17730c)){const _0x39108a=document['createElement']('div');_0x39108a['innerHTML']=_0x31795b,(_0x39108a['querySelectorAll']('figure.media')['forEach'](_0x15fb83=>{const _0x10bbf6=_0x15fb83['querySelector']('oembed');if(_0x10bbf6){const _0x5bb75f=_0x10bbf6['getAttribute']('url');if(_0x5bb75f){const _0x30f118=_0x4e9805['registry']['getMediaViewElement'](new _0x1145a5(_0x4d18f7['editing']['view']['document']),_0x5bb75f,{'elementName':'','renderForEditingView':!0x0}),_0x49dbd6=document['createElement']('div');_0x49dbd6['classList']['add']('ck-media__wrapper'),_0x30f118['render'](_0x49dbd6,_0x4d18f7['editing']['view']['domConverter']),_0x10bbf6['replaceWith'](_0x49dbd6);}}}),_0x17730c[_0x1f1c9d]=_0x39108a['innerHTML']);}return _0x17730c;}['_sortRoots'](_0x3ef127){if(!function(_0x1e97cb){return void 0x0!==_0x1e97cb['getRootsAttributes'];}(_0x3ef127))return _0x3ef127['model']['document']['getRootNames']();const _0x4cc888=[],_0x5d5310=new Map();for(const _0x2673d9 of _0x3ef127['model']['document']['getRootNames']()){const _0x21b311=_0x3ef127['editing']['view']['getDomRoot'](_0x2673d9)['getClientRects']()['item'](0x0);_0x4cc888['push'](_0x2673d9),_0x5d5310['set'](_0x2673d9,_0x21b311);}return _0x4cc888['sort']((_0x36a278,_0x40196d)=>{const _0x507a5b=_0x5d5310['get'](_0x36a278),_0x50a54e=_0x5d5310['get'](_0x40196d);return _0x507a5b['y']-_0x50a54e['y']||_0x507a5b['x']-_0x50a54e['x'];}),_0x4cc888;}}class te extends _0xa4b53f{static get['requires'](){return[T,_0x32ba8b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24d3ac){super(_0x24d3ac),_0x24d3ac['commands']['add']('previewFinalContent',new re(this['editor'])),_0x24d3ac['config']['define']('trackChanges.preview.renderFunction',(_0x3d7d8c,_0x3c47fd)=>{for(const _0x2c0a87 of _0x3c47fd)_0x3d7d8c['appendChild'](_0x2c0a87);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Yt,Plugin as _0x42796e,PendingActions as _0x1d58f4,icons as _0x5239f1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4aa60d,ObservableMixin as _0x2b64b8,uid as _0x55f348,priorities as _0x56db26,insertToPriorityArray as _0x1d87c2,logWarning as _0x49f2b4,getEnvKeystrokeText as _0x26f516,FocusTracker as _0x3116b8,KeystrokeHandler as _0x10787e,Collection as _0xaa39ea}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3eb2fa,View as _0x1fab17,ViewCollection as _0x239dc0,FocusCycler as _0x1bc5b1,ViewModel as _0x5f0129,createDropdown as _0x2f0e3e,SplitButtonView as _0x5d9ae3,addListToDropdown as _0x1ba791,MenuBarMenuView as _0x50b1ff,MenuBarMenuListView as _0x3c067f,ListSeparatorView as _0xc0ad48,MenuBarMenuListItemView as _0x223a74,MenuBarMenuListItemButtonView as _0x2727ec,BodyCollection as _0xd48db6,Dialog as _0x291061}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x555351,hashObject as _0x17cf62,surroundingMarkersDetector as _0x13200b,FOCUS_ANNOTATION_KEYSTROKE as _0x3abdc1,AriaDescriptionView as _0x48a1fe,setupThreadKeyboardNavigation as _0xc052c4,trimHtml as _0x18f17d,UserView as _0x3b0a9c,LateFocusButtonView as _0x107628,getDateTimeFormatter as _0x3c0031,getAllMarkersDomElementsSorted as _0x598c9d,sanitizeEditorConfig as _0x1a4acd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x42c82f,LiveRange as _0x2eb8ca,LivePosition as _0x56f03e,DowncastWriter as _0x5619c4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x516f0c,toWidget as _0x2881fe}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x10109f,set as _0x48f79b,isEqual as _0x28ebbc,unset as _0x315694,omit as Vt}from'lodash-es';import{Delete as _0x3ed1e7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x443da6,ShiftEnter as _0x50f491}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x255b4c,_0x314fbb){super(_0x255b4c),this['_enabledCommands']=_0x314fbb,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 _0x53a436 of this['editor']['commands']['commands']())_0x53a436['affectsData']&&!this['_enabledCommands']['has'](_0x53a436)&&_0x53a436['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4fc190 of this['editor']['commands']['commands']())_0x4fc190['affectsData']&&!this['_enabledCommands']['has'](_0x4fc190)&&_0x4fc190['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x484c45,_0xcce708){super(_0x484c45),this['_suggestions']=_0xcce708,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x44684f){const _0x17bc29=this['_suggestions']['get'](_0x44684f);if(!_0x17bc29)throw new _0x4aa60d('track-changes-accept-suggestion-not-found',this);const _0x34c851=_0x17bc29['getRanges']();this['editor']['model']['canEditAt'](_0x34c851)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x17bc29);}}class R extends Yt{['_suggestions'];constructor(_0x10cb82,_0x1a79c1){super(_0x10cb82),this['_suggestions']=_0x1a79c1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x199ce0){const _0x2afe70=this['_suggestions']['get'](_0x199ce0);if(!_0x2afe70)throw new _0x4aa60d('track-changes-discard-suggestion-not-found',this);const _0x5ada58=_0x2afe70['getRanges']();this['editor']['model']['canEditAt'](_0x5ada58)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2afe70);}}function cs(_0x529169,_0x301e36){let _0x51a2cb='';return _0x51a2cb+=_0x529169['split']('*')['map']((_0x20fbe0,_0x38d4fc)=>_0x38d4fc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x20fbe0)+'</span>':nn(_0x20fbe0))['join'](''),_0x301e36&&(_0x51a2cb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x301e36['value']+'\x22\x20title=\x22'+_0x301e36['title']+'\x22></span>'),_0x51a2cb;}function nn(_0x43c714){const _0xf2ca03=document['createElement']('span');return _0xf2ca03['innerText']=_0x43c714,_0xf2ca03['innerHTML'];}function Zt(_0x200938){return _0x200938['sort']((_0x258b87,_0x106676)=>'deletion'==_0x258b87['type']&&'deletion'!=_0x106676['type']?-0x1:'deletion'!=_0x258b87['type']&&'deletion'==_0x106676['type']?0x1:0x0);}function to(_0x28833c,_0x321668){let _0x50e9f2,_0x3197e8=0x0;const _0x408c2f=[],_0x2e18ec=_0x321668['schema'];for(;_0x3197e8<_0x28833c['length'];){const _0x2b5506=_0x28833c[_0x3197e8],_0x39018b=_0x28833c[_0x3197e8+0x1];_0x50e9f2||(_0x50e9f2=_0x321668['createPositionBefore'](_0x2b5506)),on(_0x321668,_0x2b5506,_0x39018b)||(_0x408c2f['push'](_0x321668['createRange'](_0x50e9f2,_0x2e18ec['isObject'](_0x2b5506)?_0x321668['createPositionAfter'](_0x2b5506):_0x321668['createPositionAt'](_0x2b5506,'end'))),_0x50e9f2=null),_0x3197e8++;}return _0x408c2f;}function on(_0x111d5c,_0x591c24,_0x48ed6d){if(!_0x48ed6d)return!0x1;const _0x1a7572=_0x111d5c['createPositionAfter'](_0x591c24),_0x27a060=_0x111d5c['createPositionBefore'](_0x48ed6d);return _0x1a7572['isTouching'](_0x27a060);}function ts(_0x3e5f91,_0xed1ffe,_0x26d313){for(;_0x26d313['length'];){const _0x308249=_0x26d313['splice'](0x0,0x64);_0x3e5f91['change'](()=>{for(const _0x126263 of _0x308249)_0x126263['isInContent']&&_0xed1ffe['execute'](_0x126263['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x3050bc,_0x5f105b,_0x18f46b){super(_0x3050bc),this['_command']=_0x5f105b,this['_suggestions']=_0x18f46b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3d6f0a=Array['from'](this['_suggestions']['values']())['some'](_0x230b57=>_0x230b57['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3d6f0a;}['execute'](){const _0x32ba6a=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x4c841f of _0x32ba6a){const _0x13ac27=_0x4c841f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13ac27))return;}ts(this['editor']['model'],this['_command'],_0x32ba6a);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x9baa9c,_0x51771f,_0x40dd6d){super(_0x9baa9c),this['_command']=_0x51771f,this['_suggestions']=_0x40dd6d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1046ea=this['editor']['model']['document']['selection'],_0x55383d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x24b7fc,_0x573236){const _0x425de1=Array['from'](_0x24b7fc['getRanges']()),_0x823350=new Set();for(const _0x2d77fe of _0x573236)if(_0x2d77fe['isInContent']){for(const _0x4837a2 of _0x425de1)for(const _0x3e7eae of _0x2d77fe['getRanges']())(_0x4837a2['isIntersecting'](_0x3e7eae)||_0x24b7fc['isCollapsed']&&!_0x2d77fe['isMultiRange']&&_0x2d77fe['next']&&_0x3e7eae['end']['isTouching'](_0x4837a2['start']))&&_0x823350['add'](_0x2d77fe);}return _0x823350;}(_0x1046ea,_0x55383d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xd18769=Zt(Array['from'](this['_selectedSuggestions']));for(const _0xad8982 of _0xd18769){const _0x3a4e0b=_0xad8982['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a4e0b))return;}ts(this['editor']['model'],this['_command'],_0xd18769);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x2b64b8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x186143,_0x365588){super(),this['id']=_0x365588['id'],this['type']=_0x365588['type'],this['subType']=_0x365588['subType']||null,this['author']=_0x365588['author'],this['creator']=_0x365588['creator']||_0x365588['author'],this['isExternal']=Boolean(_0x365588['attributes']&&_0x365588['attributes']['@external']),this['data']=null,this['_model']=_0x186143,this['_onAccept']=_0x365588['onAccept'],this['_onDiscard']=_0x365588['onDiscard'],this['_onAttributesChange']=_0x365588['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x365588['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 _0x546970=this;for(;_0x546970['previous'];)_0x546970=_0x546970['previous'];return _0x546970;}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'](_0x19891a){this['_markerNames']['add'](_0x19891a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x16771b=>this['_model']['markers']['get'](_0x16771b))['filter'](_0x47a574=>_0x47a574);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x36ff88=>{for(const _0x129af4 of this['getMarkers']())_0x36ff88['removeMarker'](_0x129af4);}),this['_markerNames']['clear']();}['removeMarker'](_0x482b96){this['_model']['change'](_0x542209=>{_0x542209['removeMarker'](_0x482b96);}),this['_markerNames']['delete'](_0x482b96);}['addRange'](_0x1513ee){const _0x43dd5b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x43dd5b),this['_model']['change'](_0x4427a4=>{_0x4427a4['addMarker'](_0x43dd5b,{'range':_0x1513ee,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1dfdda){for(const _0x364746 of this['getRanges']())if(_0x364746['isIntersecting'](_0x1dfdda))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3d4c7b=>_0x3d4c7b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d5b47,_0x4e7c9e)=>[..._0x3d5b47,..._0x4e7c9e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5832a8=this['getRanges']();if(0x1!=_0x5832a8['length'])return null;const _0x1502a1=_0x5832a8[0x0],_0xde0158=_0x1502a1['start']['nodeAfter'],_0xd2b8b7=_0x1502a1['end']['nodeBefore'];return _0xde0158 instanceof _0x42c82f?_0xde0158!=_0xd2b8b7?null:_0xde0158: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 _0x1a198c=[];let _0x44d762=this['head'];for(;_0x44d762;)_0x1a198c['push'](_0x44d762),_0x44d762=_0x44d762['next'];return _0x1a198c;}['setAttribute'](_0x3a16fa,_0x2eb2de){const _0x1efa36=_0x10109f(this['attributes']);_0x48f79b(_0x1efa36,_0x3a16fa,_0x2eb2de),_0x28ebbc(_0x1efa36,this['attributes'])||(this['attributes']=_0x1efa36,this['_onAttributesChange'](_0x1efa36));}['removeAttribute'](_0x484868){const _0x3c2483=_0x10109f(this['attributes']);_0x315694(_0x3c2483,_0x484868),_0x28ebbc(_0x3c2483,this['attributes'])||(this['attributes']=_0x3c2483,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 _0x55f348()['substr'](0x1,0x5);}}function o(_0xe17e41,_0x700b1b,_0x2e4510){const _0x38cdce=_0xe17e41['t'],t=_0xe17e41['t'];switch(_0x700b1b){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',_0x2e4510);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2e4510);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2e4510);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2e4510);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2e4510);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',_0x2e4510);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2e4510);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',_0x2e4510);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2e4510);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2e4510);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2e4510);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2e4510);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2e4510);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2e4510);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2e4510);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2e4510);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2e4510);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2e4510);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2e4510);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2e4510);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2e4510);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2e4510);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2e4510);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2e4510);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'},_0x2e4510);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2e4510);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2e4510);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2e4510);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2e4510);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2e4510);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2e4510);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2e4510);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2e4510);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'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2e4510);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2e4510);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 _0x38cdce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2e4510);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x38cdce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2e4510);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2e4510);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'},_0x2e4510);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'},_0x2e4510);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'},_0x2e4510);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x700b1b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b7ab3,_0x226bf6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b7ab3,this['_locale']=_0x226bf6;}['getDescriptions'](_0x276400){const _0x3cec17=[],_0x4f2018=new Set(),_0xbf7f24=new Set();for(let _0xb87ac0=0x0;_0xb87ac0<_0x276400['length'];_0xb87ac0++){const _0x2ca402=_0x276400[_0xb87ac0];if(!_0x2ca402['isInContent'])continue;const _0xf9f32d=this['_handleCustomCallbackDescription'](_0x2ca402);if(_0xf9f32d){if(null!=_0x2ca402['subType']){if(_0x4f2018['has'](_0x2ca402['subType']))continue;_0x4f2018['add'](_0x2ca402['subType']);}_0x3cec17['push'](_0xf9f32d);}else{if('attribute'!=_0x2ca402['type'])'insertion'!=_0x2ca402['type']&&'deletion'!=_0x2ca402['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3cec17,_0x2ca402,_0x276400[_0xb87ac0+0x1]);else{const _0x3a99e5=_0x2ca402['data']['key'];if(_0xbf7f24['has'](_0x3a99e5))continue;_0xbf7f24['add'](_0x2ca402['data']['key']),_0x3a99e5==m?this['_handleRenameSuggestionDescription'](_0x3cec17,_0x2ca402):this['_handleAttributeSuggestionDescription'](_0x3cec17,_0x2ca402);}}}return this['_resolveDescriptionItems'](_0x3cec17);}['registerDescriptionCallback'](_0x25c238){this['_customCallbacks']['push'](_0x25c238);}['registerElementLabel'](_0x316381,_0x28367e,_0x54a74c=_0x56db26['normal']){'function'==typeof _0x316381?_0x1d87c2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x316381,'label':_0x28367e,'priority':_0x54a74c}):this['_itemLabels']['set'](_0x316381,_0x28367e);}['registerAttributeLabel'](_0x7dbb03,_0xc6c838){this['_attributeLabels']['set'](_0x7dbb03,_0xc6c838);}['getItemLabel'](_0x10e5c5,_0x570c13=0x1){let _0x18c6cf;for(const _0x39e9dc of this['_itemLabelsCallbacks'])if(_0x39e9dc['matchingCallback'](_0x10e5c5)){_0x18c6cf=_0x39e9dc['label'];break;}return _0x18c6cf||(_0x18c6cf=this['_itemLabels']['get'](_0x10e5c5['name'])),_0x18c6cf?_0x18c6cf(_0x570c13):0x1!==_0x570c13?_0x570c13+'\x20'+_0x10e5c5['name']+'s':''+_0x10e5c5['name'];}['_addDescriptionItems'](_0x71971f,_0x327b42){const _0x385614=_0x327b42['getFirstRange']()['getWalker'](),_0x496066='insertion'==_0x327b42['type']?'add':'remove';for(const _0x1812ed of _0x385614){const _0x28ee84=_0x1812ed['item'],_0x5b1d5f=_0x71971f[_0x71971f['length']-0x1];if(_0x28ee84['is']('$textProxy'))_0x5b1d5f&&_0x5b1d5f['type']['indexOf']('Container')>-0x1&&_0x71971f['pop'](),_0x5b1d5f&&'text'==_0x5b1d5f['type']?_0x5b1d5f[_0x496066]+=_0x28ee84['data']:_0x71971f['push']({'type':'text','add':'add'==_0x496066?_0x28ee84['data']:'','remove':'remove'==_0x496066?_0x28ee84['data']:''});else{if(this['_schema']['isObject'](_0x28ee84)){const _0x14105c=_0x28ee84;if(_0x5b1d5f&&_0x5b1d5f['type']['indexOf']('Container')>-0x1&&_0x71971f['pop'](),'elementEnd'==_0x1812ed['type'])continue;_0x5b1d5f&&_0x5b1d5f['type']==_0x496066+'Object'&&_0x5b1d5f['element']['name']==_0x14105c['name']?_0x5b1d5f['quantity']++:_0x71971f['push']({'type':_0x496066+'Object','element':_0x14105c,'quantity':0x1}),_0x385614['skip'](_0x423b1d=>!('elementEnd'==_0x423b1d['type']&&_0x423b1d['item']==_0x28ee84));}else{if(this['_schema']['checkChild'](_0x28ee84,'$text')||_0x28ee84['is']('element','softBreak')){const _0x592fed=_0x28ee84;if('add'==_0x496066&&'elementStart'==_0x1812ed['type']||'remove'==_0x496066&&'elementEnd'==_0x1812ed['type'])continue;if(_0x5b1d5f&&-0x1==_0x5b1d5f['type']['indexOf']('Container')){'text'==_0x5b1d5f['type']&&(_0x5b1d5f[_0x496066]+='\x0a');continue;}let _0x2e5766;if(_0x2e5766='add'==_0x496066?_0x592fed['nextSibling']&&!this['_schema']['isObject'](_0x592fed['nextSibling'])?_0x592fed['nextSibling']:null:_0x592fed['previousSibling']&&!this['_schema']['isObject'](_0x592fed['previousSibling'])?_0x592fed['previousSibling']:null,_0x592fed['isEmpty']||_0x2e5766&&_0x2e5766['isEmpty']){const _0x3003e7=_0x2e5766&&_0x2e5766['isEmpty']?_0x2e5766:_0x592fed;_0x5b1d5f&&_0x5b1d5f['type']==_0x496066+'EmptyContainer'&&_0x5b1d5f['element']['name']==_0x3003e7['name']?_0x5b1d5f['quantity']++:_0x71971f['push']({'type':_0x496066+'EmptyContainer','element':_0x3003e7,'quantity':0x1});}else _0x71971f['push']({'type':_0x496066+'Container','element':_0x592fed});}}}}}['_resolveDescriptionItems'](_0x57d229){const _0x272e99=this['_locale'],_0x4546c7=[],_0x13f304=[],_0x5f032e=[];for(const _0xc8ebda of _0x57d229)switch(_0xc8ebda['type']){case'text':if(_0xc8ebda['add']=_0xc8ebda['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xc8ebda['remove']=_0xc8ebda['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xc8ebda['add']&&''!=_0xc8ebda['remove']){_0x4546c7['push']({'type':'replace','content':o(_0x272e99,'REPLACE_TEXT',['\x22'+_0xc8ebda['remove']+'\x22','\x22'+_0xc8ebda['add']+'\x22'])});continue;}if(null!=_0xc8ebda['add']['match'](/^ +$/)){_0x4546c7['push']({'type':'insertion','content':o(_0x272e99,'*Insert:*\x20%0',o(_0x272e99,'ELEMENT_SPACE',_0xc8ebda['add']['length']))});continue;}if(null!=_0xc8ebda['remove']['match'](/^ +$/)){_0x4546c7['push']({'type':'deletion','content':o(_0x272e99,'*Remove:*\x20%0',o(_0x272e99,'ELEMENT_SPACE',_0xc8ebda['remove']['length']))});continue;}if(''!=_0xc8ebda['add']){_0x4546c7['push']({'type':'insertion','content':o(_0x272e99,'*Insert:*\x20%0','\x22'+_0xc8ebda['add']+'\x22')});continue;}_0x4546c7['push']({'type':'deletion','content':o(_0x272e99,'*Remove:*\x20%0','\x22'+_0xc8ebda['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4546c7['push']({'type':'insertion','content':o(_0x272e99,'*Insert:*\x20%0',this['getItemLabel'](_0xc8ebda['element'],_0xc8ebda['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4546c7['push']({'type':'deletion','content':o(_0x272e99,'*Remove:*\x20%0',this['getItemLabel'](_0xc8ebda['element'],_0xc8ebda['quantity']))});continue;case'addContainer':_0x4546c7['push']({'type':'insertion','content':o(_0x272e99,'*Split:*\x20%0',this['getItemLabel'](_0xc8ebda['element'],_0xc8ebda['quantity']))});continue;case'removeContainer':_0x4546c7['push']({'type':'deletion','content':o(_0x272e99,'*Merge:*\x20%0',this['getItemLabel'](_0xc8ebda['element'],_0xc8ebda['quantity']))});continue;case'addFormat':_0x13f304['push'](_0xc8ebda['key']);continue;case'removeFormat':_0x5f032e['push'](_0xc8ebda['key']);continue;default:_0x4546c7['push'](_0xc8ebda);}if(_0x13f304['length']){const _0x514be7=_0x13f304['map'](_0x539ee3=>this['_attributeLabels']['has'](_0x539ee3)?this['_attributeLabels']['get'](_0x539ee3):_0x539ee3)['join'](',\x20');_0x4546c7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x514be7)});}if(_0x5f032e['length']){const _0x410d13=_0x5f032e['map'](_0x422795=>this['_attributeLabels']['has'](_0x422795)?this['_attributeLabels']['get'](_0x422795):_0x422795)['join'](',\x20');_0x4546c7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x410d13)});}return _0x4546c7;}['_handleCustomCallbackDescription'](_0x45d36f){for(const _0x2df485 of this['_customCallbacks']){const _0x11740d=_0x2df485(_0x45d36f);if(_0x11740d&&'type'in _0x11740d)return _0x11740d;}}['_handleAttributeSuggestionDescription'](_0x10e9b7,_0x3ff22b){const _0x46dacd=_0x3ff22b['data'],_0x2d8db7=void 0x0===_0x46dacd['newValue']?'removeFormat':'addFormat';_0x10e9b7['push']({'type':_0x2d8db7,'key':_0x46dacd['key']});}['_handleRenameSuggestionDescription'](_0x2a7852,_0x1dd308){_0x2a7852['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1dd308['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x510107,_0x30c1f8,_0x499cf9){if(this['_addDescriptionItems'](_0x510107,_0x30c1f8),_0x499cf9&&_0x499cf9['getFirstRange']()&&!_0x30c1f8['getFirstRange']()['end']['isEqual'](_0x499cf9['getFirstRange']()['start'])){const _0x3c1a3c=_0x510107[_0x510107['length']-0x1],_0x47fbc2='insertion'==_0x30c1f8['type']?'add':'remove';_0x3c1a3c&&'text'==_0x3c1a3c['type']&&(_0x3c1a3c[_0x47fbc2]+='\x0a');}}}class U extends _0x42796e{['afterInit'](){const _0x811053=this['editor'],_0x53ae4c=_0x811053['plugins']['get']('TrackChangesEditing');_0x811053['commands']['get']('showAIAssistant')&&_0x53ae4c['enableCommand']('showAIAssistant');}}class V extends _0x42796e{['afterInit'](){const _0x4f94ea=this['editor'],_0x596178=_0x4f94ea['locale'];if(!_0x4f94ea['plugins']['has']('AlignmentEditing'))return;const _0x1686a5=_0x4f94ea['plugins']['get']('TrackChangesEditing');_0x1686a5['enableDefaultAttributesIntegration']('alignment'),_0x1686a5['registerBlockAttribute']('alignment'),_0x1686a5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x596178,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3527a8=this['editor'],_0x16de92=_0x3527a8['locale'];_0x3527a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fabf9=>{if('formatBlock'!=_0x4fabf9['type'])return;const {data:_0x44e484}=_0x4fabf9;if(_0x44e484&&'alignment'==_0x44e484['commandName']){const _0x528572=_0x44e484['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x16de92,'*Format:*\x20%0',function(_0x5289c5){switch(_0x5289c5){case'left':return o(_0x16de92,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x16de92,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x16de92,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x16de92,'FORMAT_JUSTIFY_TEXT');}}(_0x528572))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x42796e{['afterInit'](){const _0x4f9f29=this['editor'],_0x58ba6e=_0x4f9f29['plugins']['get']('TrackChangesEditing'),_0x7aa4dc=_0x4f9f29['locale'];for(const _0xd90341 of ti){if(!_0x4f9f29['plugins']['has'](_0xd90341))continue;const _0x556909=_0xd90341['slice'](0x0,-0x7)['toLowerCase'](),_0x2660e7='FORMAT_'+_0x556909['toUpperCase']();_0x58ba6e['enableDefaultAttributesIntegration'](_0x556909),_0x58ba6e['registerInlineAttribute'](_0x556909),_0x58ba6e['descriptionFactory']['registerAttributeLabel'](_0x556909,o(_0x7aa4dc,_0x2660e7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a63a6=this['editor'],_0x1967fd=_0x4a63a6['locale'],_0x4430a9=_0x4a63a6['plugins']['get']('TrackChangesEditing');function _0x43e0c7(_0x1816a9,_0x3f5b1e){_0x4430a9['descriptionFactory']['registerDescriptionCallback'](_0x27350f=>{if('formatInline'!=_0x27350f['type'])return;const {data:_0x5e0402}=_0x27350f;return _0x5e0402&&_0x5e0402['commandName']===_0x1816a9?_0x5e0402['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1967fd,'*Format:*\x20%0',_0x3f5b1e)}:{'type':'format','content':o(_0x1967fd,'*Remove\x20format:*\x20%0',_0x3f5b1e)}:void 0x0;});}_0x43e0c7('bold',o(_0x1967fd,'FORMAT_BOLD')),_0x43e0c7('italic',o(_0x1967fd,'FORMAT_ITALIC')),_0x43e0c7('underline',o(_0x1967fd,'FORMAT_UNDERLINE')),_0x43e0c7('code',o(_0x1967fd,'FORMAT_CODE')),_0x43e0c7('strikethrough',o(_0x1967fd,'FORMAT_STRIKETHROUGH')),_0x43e0c7('subscript',o(_0x1967fd,'FORMAT_SUBSCRIPT')),_0x43e0c7('superscript',o(_0x1967fd,'FORMAT_SUPERSCRIPT'));}}class F extends _0x42796e{['afterInit'](){const _0x3cc454=this['editor'],_0x100d26=_0x3cc454['locale'];if(!_0x3cc454['plugins']['has']('BlockQuoteEditing'))return;const _0x4f0d02=_0x3cc454['plugins']['get']('TrackChangesEditing'),_0x39bf1a=this['editor']['commands']['get']('blockQuote');_0x4f0d02['enableCommand']('blockQuote',(_0x378efc,_0x3d9933={})=>{const _0x4c95f8=this['editor']['model']['document']['selection'],_0x1bc4f5=_0x3d9933&&void 0x0!==_0x3d9933['forceValue']?_0x3d9933['forceValue']:!_0x39bf1a['value'];let _0x4e4d58=[];if(_0x1bc4f5){const _0x4cf58c=Array['from'](_0x4c95f8['getSelectedBlocks']())['filter'](_0xf72524=>oo(_0xf72524)||function(_0x1378b9,_0xa620e){const _0x2c4d53=_0xa620e['checkChild'](_0x1378b9['parent'],'blockQuote'),_0x5d014f=_0xa620e['checkChild'](['$root','blockQuote'],_0x1378b9);return _0x2c4d53&&_0x5d014f;}(_0xf72524,this['editor']['model']['schema']));_0x4e4d58=to(_0x4cf58c,_0x3cc454['model']);}else{const _0x39b5ba=Array['from'](_0x4c95f8['getSelectedBlocks']())['filter'](_0x34b716=>oo(_0x34b716));_0x4e4d58=to(_0x39b5ba,_0x3cc454['model']);}_0x3cc454['model']['change'](()=>{for(const _0x3b117c of _0x4e4d58)_0x4f0d02['markBlockFormat'](_0x3b117c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1bc4f5}]});});}),_0x4f0d02['descriptionFactory']['registerDescriptionCallback'](_0x4b3a87=>{const {data:_0x31996c}=_0x4b3a87;if(_0x31996c&&'blockQuote'==_0x31996c['commandName']){const _0x5f0234=o(_0x100d26,'ELEMENT_BLOCK_QUOTE');return _0x31996c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x100d26,'*Set\x20format:*\x20%0',_0x5f0234)}:{'type':'format','content':o(_0x100d26,'*Remove\x20format:*\x20%0',_0x5f0234)};}});}}function oo(_0xc8121e){return'blockQuote'==_0xc8121e['parent']['name'];}class L extends _0x42796e{['afterInit'](){const _0x4d7709=this['editor'],_0x66a264=_0x4d7709['locale'],_0x3ad83c=_0x4d7709['plugins']['get']('TrackChangesEditing');_0x4d7709['plugins']['has']('BookmarkEditing')&&(_0x3ad83c['enableCommand']('insertBookmark'),_0x3ad83c['enableDefaultAttributesIntegration']('updateBookmark'),_0x3ad83c['registerBlockAttribute']('bookmarkId'),_0x3ad83c['descriptionFactory']['registerDescriptionCallback'](_0x4d5b71=>{if('insertion'!=_0x4d5b71['type']&&'deletion'!=_0x4d5b71['type']&&'attribute'!=_0x4d5b71['type'])return;const _0x54f5b8=_0x4d5b71['getContainedElement']();if(null==_0x54f5b8)return;if(!_0x54f5b8['is']('element','bookmark'))return;const _0x18592c=_0x54f5b8['getAttribute']('bookmarkId');if('insertion'==_0x4d5b71['type'])return{'type':'insertion','content':o(_0x66a264,'*Insert:*\x20%0','\x22'+_0x18592c+'\x22\x20'+o(_0x66a264,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4d5b71['type'])return{'type':'deletion','content':o(_0x66a264,'*Remove:*\x20%0','\x22'+_0x18592c+'\x22\x20'+o(_0x66a264,'ELEMENT_BOOKMARK'))};const {data:_0x174e3a}=_0x4d5b71;if(!_0x174e3a||'bookmarkId'!=_0x174e3a['key'])return;return{'type':'format','content':o(_0x66a264,'*Set\x20bookmark:*\x20%0','\x22'+_0x174e3a['newValue']+'\x22')};}));}}class J extends _0x42796e{['afterInit'](){const _0x401091=this['editor'];_0x401091['plugins']['has']('CaseChange')&&(_0x401091['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x401091['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x401091['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x42796e{['afterInit'](){const _0x5a12aa=this['editor'];_0x5a12aa['commands']['get']('ckbox')&&_0x5a12aa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x42796e{['afterInit'](){const _0x4dbdb7=this['editor'];if(!_0x4dbdb7['plugins']['has']('CodeBlock'))return;const _0x42ccdb=_0x4dbdb7['plugins']['get']('TrackChangesEditing'),_0x569fd2=_0x4dbdb7['locale'],_0x45c7ad=_0x4dbdb7['config']['get']('codeBlock')['languages'],_0xc73a40=_0x4dbdb7['commands']['get']('codeBlock');_0x42ccdb['enableCommand']('indentCodeBlock'),_0x42ccdb['enableCommand']('outdentCodeBlock'),_0x42ccdb['enableCommand']('codeBlock',(_0x4d7a29,_0x5bc2f2={})=>{const _0x209cff=_0x4dbdb7['model'],_0x51b3cd=_0x4dbdb7['model']['document']['selection'],_0x44f052=_0x5bc2f2&&void 0x0!==_0x5bc2f2['forceValue']?_0x5bc2f2['forceValue']:!_0xc73a40['value'];let _0x426850;_0x5bc2f2['language']||(_0x5bc2f2['language']=_0x45c7ad[0x0]['language']),_0x426850=_0x44f052?Array['from'](_0x51b3cd['getSelectedBlocks']())['filter'](_0x5e5190=>eo(_0x5e5190)||function(_0x5d898b,_0x176884){if(_0x5d898b['is']('rootElement')||_0x176884['isLimit'](_0x5d898b))return!0x1;return _0x176884['checkChild'](_0x5d898b['parent'],'codeBlock');}(_0x5e5190,_0x209cff['schema'])):Array['from'](_0x51b3cd['getSelectedBlocks']())['filter'](_0x3bc34b=>eo(_0x3bc34b));const _0x5db165=to(_0x426850,_0x209cff);_0x209cff['change'](()=>{for(const _0x3fed82 of _0x5db165)_0x42ccdb['markBlockFormat'](_0x3fed82,{'commandName':'codeBlock','commandParams':[{..._0x5bc2f2,'forceValue':_0x44f052}],'formatGroupId':'blockName'});});}),(_0x42ccdb['descriptionFactory']['registerElementLabel']('codeBlock',_0x1504ce=>o(_0x569fd2,'ELEMENT_CODE_BLOCK',_0x1504ce)),_0x42ccdb['descriptionFactory']['registerDescriptionCallback'](_0x501bfd=>{if('formatBlock'!=_0x501bfd['type'])return;const _0x298587=_0x569fd2['t'],{data:_0x1746c9}=_0x501bfd;if(!_0x1746c9||'codeBlock'!=_0x1746c9['commandName'])return;const _0x4f4749=_0x1746c9['commandParams'][0x0]['language'],_0xa65a4=_0x298587(_0x45c7ad['find'](_0x21241b=>_0x21241b['language']===_0x4f4749)['label'])['toLowerCase']();return _0x1746c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x569fd2,'*Set\x20format:*\x20%0',o(_0x569fd2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa65a4+')')}:{'type':'format','content':o(_0x569fd2,'*Remove\x20format:*\x20%0',o(_0x569fd2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x228fbb){return'codeBlock'==_0x228fbb['name'];}class z extends _0x42796e{['afterInit'](){const _0xce7bde=this['editor'];if(!_0xce7bde['plugins']['has']('CommentsEditing'))return;_0xce7bde['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x14ed32,_0x51fdde,_0x3b79b1){const _0x7f0728=[];for(const _0x243d41 of _0x51fdde['getItems']())_0x243d41['hasAttribute'](_0x14ed32)&&_0x7f0728['push'](_0x3b79b1['createRangeOn'](_0x243d41));return _0x7f0728;}function De(_0xc66df5,_0x5c2275,{showActiveMarker:_0xd4b2f8=!0x0}={}){const _0x15ee32=_0xc66df5['plugins']['get']('TrackChangesEditing');return(_0x51729c,_0x13a32b,_0x2a6964)=>{if(!_0x2a6964['consumable']['test'](_0x13a32b['markerRange'],_0x51729c['name']))return;const _0x49ec45=_0x13a32b['markerRange']['getWalker'](),_0x9e6d9c=_0x13a32b['markerRange']['start'],_0x28e10b=_0xc66df5['model']['schema'];let _0x51125f=null,_0x4fecce=null,_0x460105=!0x1,_0x3f8b82=!0x1;for(const _0x2024db of _0x49ec45){const _0x117e3c=_0x2024db['item'];_0x460105=_0x460105||_0x28e10b['isContent'](_0x117e3c);const _0x1c0752=_0x2a6964['mapper']['toViewElement'](_0x117e3c);if(_0x1c0752&&_0x1c0752['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2024db['type']&&(_0x28e10b['isBlock'](_0x117e3c)&&!_0x28e10b['isLimit'](_0x117e3c)&&(_0x117e3c['nextSibling']||_0x9e6d9c['isAtEnd']?_0x51125f&&_0x51125f['parent']==_0x117e3c||(_0x51125f=_0x117e3c,_0x514b06(_0x2024db['previousPosition']),_0x3f8b82=!0x0):_0x4fecce=_0x4fecce||_0x2024db['previousPosition']));}function _0x514b06(_0x48eb71){const {authorId:_0x20f49a}=_0x15ee32['_splitMarkerName'](_0x13a32b['markerName']),_0x4ec1ac=_0x2a6964['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c2275,'data-author-id':_0x20f49a}),_0x1c3dbc=_0x2a6964['mapper']['toViewPosition'](_0x48eb71);_0xd4b2f8&&_0x15ee32['activeMarkers']['includes'](_0x13a32b['markerName'])&&_0x2a6964['writer']['addClass']('ck-suggestion-marker--active',_0x4ec1ac),_0x2a6964['writer']['insert'](_0x1c3dbc,_0x4ec1ac),_0x2a6964['mapper']['bindElementToMarker'](_0x4ec1ac,_0x13a32b['markerName']);}_0x460105||_0x3f8b82||!_0x4fecce||_0x514b06(_0x4fecce);};}class K extends _0x42796e{static get['requires'](){return[_0x3ed1e7];}['init'](){const _0x3b4658=this['editor'],_0x29cbd7=_0x3b4658['plugins']['get']('TrackChangesEditing');_0x29cbd7['enableCommand']('delete');const _0x56d770=_0x3b4658['commands']['get']('deleteForward');_0x29cbd7['enableCommand']('deleteForward',(_0x21a8a0,_0x189c25={})=>{const _0x2ba4e7=_0x3b4658['model']['createSelection'](_0x3b4658['model']['document']['selection']);_0x2ba4e7['isCollapsed']&&_0x3b4658['model']['modifySelection'](_0x2ba4e7,{'direction':'forward','unit':_0x189c25['unit']});const _0x33bf39=_0x2ba4e7['getFirstRange'](),_0x527372=_0x2eb8ca['fromRange'](_0x33bf39);let _0x10cba8;_0x21a8a0(_0x189c25),_0x10cba8='$graveyard'==_0x527372['root']['rootName']?_0x3b4658['model']['createRange'](_0x33bf39['start']):_0x3b4658['model']['createRange'](_0x527372['start'],_0x527372['end']),_0x527372['detach'](),_0x3b4658['model']['enqueueChange'](_0x56d770['buffer']['batch'],_0x5c1e57=>{_0x56d770['buffer']['lock'](),_0x5c1e57['setSelection'](_0x5c1e57['createRange'](_0x10cba8['end'])),_0x56d770['buffer']['unlock']();});}),_0x3b4658['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3b4658,'merge'),{'priority':'high'}),_0x3b4658['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x31c290,_0x88da12,_0x5ba7c4)=>{_0x5ba7c4['options']['showSuggestionHighlights']&&De(_0x3b4658,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x31c290,_0x88da12,_0x5ba7c4);},{'priority':'high'}),_0x3b4658['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x336036,_0x579686,_0x3b6673)=>{const _0x248196=_0x3b6673['mapper']['markerNameToElements'](_0x579686['markerName']);if(_0x248196){for(const _0x50e125 of _0x248196)_0x50e125['is']('uiElement')&&(_0x3b6673['mapper']['unbindElementFromMarkerName'](_0x50e125,_0x579686['markerName']),_0x3b6673['writer']['remove'](_0x50e125));}},{'priority':'high'});}}class W extends _0x42796e{['afterInit'](){const _0x12d1a2=this['editor'];if(!_0x12d1a2['plugins']['has']('ListEditing'))return;const _0x2d77d8=_0x12d1a2['locale'],_0x574337=_0x12d1a2['plugins']['get']('TrackChangesEditing'),_0x6e2367=_0x12d1a2['plugins']['has']('TodoListEditing'),_0x2402fe=!!_0x12d1a2['config']['get']('list.multiBlock');function _0x31eba7(_0x19cb14){return{'type':'format','content':''+o(_0x2d77d8,'*Set\x20format:*\x20%0',_0x19cb14)};}function _0x3bbf00(_0x3d5b64){return{'type':'format','content':''+o(_0x2d77d8,'*Remove\x20format:*\x20%0',_0x3d5b64)};}_0x574337['enableDefaultAttributesIntegration']('numberedList'),_0x574337['enableDefaultAttributesIntegration']('bulletedList'),_0x574337['enableDefaultAttributesIntegration']('customNumberedList'),_0x574337['enableDefaultAttributesIntegration']('customBulletedList'),_0x574337['enableDefaultAttributesIntegration']('indentList'),_0x574337['enableDefaultAttributesIntegration']('outdentList'),_0x574337['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x574337['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x574337['registerBlockAttribute']('listItemId'),_0x574337['registerBlockAttribute']('listType'),_0x574337['registerBlockAttribute']('listIndent'),_0x2402fe&&(_0x574337['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x574337['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x6e2367&&(_0x574337['enableDefaultAttributesIntegration']('todoList'),_0x574337['enableDefaultAttributesIntegration']('checkTodoList'),_0x574337['registerBlockAttribute']('todoListChecked'),_0x574337['descriptionFactory']['registerDescriptionCallback'](_0x43bcde=>{const {data:_0x382a4e}=_0x43bcde;if(_0x382a4e&&'todoListChecked'==_0x382a4e['key'])return{'type':'format','content':_0x382a4e['newValue']?o(_0x2d77d8,'*Check\x20item*'):o(_0x2d77d8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a065d=>{if(_0x4a065d['batch']['isUndo'])return!0x1;let _0x2123d8=!0x1;const _0x35ad27=_0x574337['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2deead=>'todoListChecked'===_0x574337['_getAttributeKey'](_0x2deead));for(const _0x3e6bc5 of _0x35ad27){'todo'!=_0x3e6bc5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x574337['_findSuggestions'](_0x3e6bc5['getFirstRange'](),'attribute')['find'](_0x1756a3=>'listType'===_0x574337['_getAttributeKey'](_0x1756a3['suggestion']))||(_0x4a065d['removeMarker'](_0x3e6bc5['getFirstMarker']()),_0x2123d8=!0x0));}return _0x2123d8;})),_0x574337['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2d77d8,'FORMAT_INDENT'));const _0x1d68ea={'type':'format','content':''};_0x574337['descriptionFactory']['registerDescriptionCallback'](_0x528c55=>{const {data:_0x2008b2}=_0x528c55;if(!_0x2008b2||'listType'!=_0x2008b2['key'])return;let _0x430ae0=_0x528c55['head'];for(;_0x430ae0;){if(_0x430ae0['data']&&(('listStyle'==_0x430ae0['data']['key']||'listMarkerStyle'==_0x430ae0['data']['key'])&&(_0x430ae0['data']['newValue']&&'default'!=_0x430ae0['data']['newValue']||'default'!=_0x430ae0['data']['oldValue']&&!_0x2008b2['newValue'])||!_0x2402fe&&_0x430ae0['data']['key']==m))return _0x1d68ea;_0x430ae0=_0x430ae0['next'];}if(null==_0x2008b2['newValue'])switch(_0x2008b2['oldValue']){case'bulleted':return _0x3bbf00(o(_0x2d77d8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3bbf00(o(_0x2d77d8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3bbf00(o(_0x2d77d8,'ELEMENT_TODO_LIST'));}switch(_0x2008b2['newValue']){case'bulleted':return _0x31eba7(o(_0x2d77d8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31eba7(o(_0x2d77d8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31eba7(o(_0x2d77d8,'ELEMENT_TODO_LIST'));}}),_0x574337['descriptionFactory']['registerDescriptionCallback'](_0x3c696a=>{const {data:_0x419599}=_0x3c696a;if(_0x419599&&'listIndent'==_0x419599['key'])return null==_0x419599['newValue']||null==_0x419599['oldValue']&&0x0==_0x419599['newValue']?_0x1d68ea:void 0x0;}),_0x574337['descriptionFactory']['registerDescriptionCallback'](_0x59c808=>{if('attribute'!=_0x59c808['type'])return;const {data:_0xdb7011}=_0x59c808;if(!_0xdb7011||'listItemId'!=_0xdb7011['key'])return;const _0x553c0e=Te(_0x59c808);return'newValue'==_0x553c0e?{'type':'format','content':o(_0x2d77d8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x553c0e?{'type':'format','content':o(_0x2d77d8,'*Split:*\x20list\x20item')}:_0x1d68ea;}),_0x12d1a2['model']['document']['registerPostFixer'](_0x2aa4a8=>this['listItemIdFixer'](_0x2aa4a8)),_0x12d1a2['model']['document']['registerPostFixer'](_0x58f24b=>this['noTrackChangesFixer'](_0x58f24b)),_0x12d1a2['model']['document']['on']('change:data',(_0x41f104,_0x1eefaf)=>{if(_0x1eefaf['isUndo']||!_0x1eefaf['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2d265f){if(_0x2d265f['batch']['isUndo']||!_0x2d265f['batch']['isLocal'])return!0x1;let _0xc911b8=!0x1;const _0x21792d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26615c=>_0x26615c['data']&&'listItemId'==_0x26615c['data']['key'])['filter'](_0x4007b1=>_0x4007b1['data']['newValue']&&_0x4007b1['data']['oldValue']);for(const _0x1a8b21 of _0x21792d)Te(_0x1a8b21)||(_0x2d265f['removeMarker'](_0x1a8b21['getFirstMarker']()),_0xc911b8=!0x0);return _0xc911b8;}['noTrackChangesFixer'](_0x7b6ba2){if(_0x7b6ba2['batch']['isUndo']||!_0x7b6ba2['batch']['isLocal'])return!0x1;const _0xd70a4e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xd70a4e['trackChangesCommand']['value'])return!0x1;let _0x45f202=!0x1;const _0x1394bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x56cbbf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1d0cf4=>'attribute'==_0x1d0cf4['type'])['filter'](_0x14e8ff=>_0x1394bc['includes'](_0x14e8ff['attributeKey']));if(0x0==_0x56cbbf['length'])return _0x45f202;for(const _0x5acf34 of _0x56cbbf){const _0x5aa230=_0xd70a4e['_findSuggestions'](_0x5acf34['range'],'attribute')['filter'](_0x48d75d=>!_0x48d75d['meta']['isNextTo'])['map'](_0x2ea5c9=>_0x2ea5c9['suggestion'])['filter'](_0x16d82b=>{const _0x5ec44a=_0xd70a4e['_getAttributeKey'](_0x16d82b);return _0x1394bc['includes'](_0x5ec44a);});if(_0x5aa230['length']){for(const _0x3c6a14 of _0x5aa230)_0x7b6ba2['removeMarker'](_0x3c6a14['getFirstMarker']());_0x45f202=!0x0;}}return _0x45f202;}['assureChains'](){const _0x188a01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51f50c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4d10e5;const _0x49bd89=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x34c08c=>{if(_0x34c08c['data']['oldRange']||!_0x34c08c['data']['newRange'])return null;if(!_0x34c08c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3ac8ec}=_0x188a01['_splitMarkerName'](_0x34c08c['name']);if(!_0x188a01['hasSuggestion'](_0x3ac8ec))return null;const _0x57cf8f=_0x188a01['getSuggestion'](_0x3ac8ec);return _0x51f50c['includes'](_0x57cf8f['data']['key']);})['map'](_0x7284df=>{const {id:_0x481eb0}=_0x188a01['_splitMarkerName'](_0x7284df['name']),_0x10468f=_0x188a01['getSuggestion'](_0x481eb0);return _0x4d10e5=_0x10468f['attributes']['groupId'],_0x10468f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x49bd89['size'])return;const _0xfec017=_0x188a01['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15bcdb=>'attribute'==_0x15bcdb['type']&&_0x15bcdb['data']&&_0x51f50c['includes'](_0x15bcdb['data']['key'])&&_0x15bcdb['attributes']['groupId']!=_0x4d10e5)['map'](_0x5db7af=>({'listItem':_0x5db7af['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5db7af['attributes']['groupId']})),_0x2e819a=new Set();for(const {groupId:_0x4b92bc,listItem:_0x2bb9b3}of _0xfec017)_0x49bd89['has'](_0x2bb9b3)&&_0x2e819a['add'](_0x4b92bc);for(const _0x12e950 of _0x188a01['getSuggestions']())_0x2e819a['has'](_0x12e950['attributes']['groupId'])&&_0x12e950['setAttribute']('groupId',_0x4d10e5);}['_supportLegacySuggestions'](){const _0x425657=this['editor'],_0x1d6a6d=_0x425657['locale'],_0x4d23fd=_0x425657['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4d23fd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37717f,_0x16454b){const _0x44edbc=[];for(let _0x16fb91 of _0x37717f)_0x16fb91['start']['nodeAfter']===_0x16fb91['end']['parent']&&(_0x16fb91=_0x425657['model']['createRange'](_0x425657['model']['createPositionAt'](_0x16fb91['start']['nodeAfter'],0x0))),_0x44edbc['push'](_0x16fb91);_0x425657['model']['change'](_0x540009=>{const _0x140cf1=_0x425657['model']['document']['selection'],_0x453f2d=Array['from'](_0x140cf1['getRanges']())['map'](_0x1ea075=>_0x2eb8ca['fromRange'](_0x1ea075));_0x540009['setSelection'](_0x44edbc),_0x425657['commands']['get'](_0x16454b['commandName'])['refresh'](),_0x16454b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x425657['execute'](_0x16454b['commandName'],..._0x16454b['commandParams']),_0x540009['setSelection'](_0x453f2d);for(const _0x256b65 of _0x453f2d)_0x256b65['detach']();});}),_0x4d23fd['descriptionFactory']['registerElementLabel'](function(_0xab42a6){const _0x581be8=!_0x425657['model']['schema']['isObject'](_0xab42a6),_0x2aa790=_0xab42a6['previousSibling'],_0x5e5158=_0xab42a6['nextSibling'],_0x269490=_0xab42a6['getAttribute']('listItemId'),_0x22bd15=!_0x2aa790||_0x2aa790['getAttribute']('listItemId')!==_0x269490,_0x125f01=!_0x5e5158||_0x5e5158['getAttribute']('listItemId')!==_0x269490;return _0x581be8&&Boolean(_0x269490)&&_0x22bd15&&_0x125f01;},_0x326c23=>o(_0x1d6a6d,'ELEMENT_LIST_ITEM',_0x326c23));}['_registerLegacyDescription'](){const _0x16602f=this['editor'],_0x4d9fcd=_0x16602f['locale'];function _0x7be4f7(_0x284af7){const _0x57630a=_0x16602f['commands']['get']('bulletedList')['value'],_0x500815=_0x16602f['commands']['get']('numberedList')['value'];return'numberedList'===_0x284af7?_0x57630a:_0x500815;}_0x16602f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x18968e){if('formatBlock'!=_0x18968e['type'])return;const {data:_0x234e5d}=_0x18968e;if(!_0x234e5d)return;let _0x57d075,_0x15545d,_0x24d8ac,_0x20985e;switch(_0x234e5d['commandName']){case'bulletedList':_0x24d8ac=_0x234e5d['commandParams'][0x0]['forceValue'],_0x20985e=_0x7be4f7(_0x234e5d['commandName']),_0x57d075=_0x24d8ac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20985e&&_0x16602f['config']['get']('list.multiBlock')||(_0x57d075='*Change\x20to:*\x20%0'),_0x15545d={'type':'format','content':o(_0x4d9fcd,_0x57d075,o(_0x4d9fcd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24d8ac=_0x234e5d['commandParams'][0x0]['forceValue'],_0x20985e=_0x7be4f7(_0x234e5d['commandName']),_0x57d075=_0x24d8ac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20985e&&_0x16602f['config']['get']('list.multiBlock')||(_0x57d075='*Change\x20to:*\x20%0'),_0x15545d={'type':'format','content':o(_0x4d9fcd,_0x57d075,o(_0x4d9fcd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x57d075='*Indent:*\x20%0',_0x15545d={'type':'format','content':o(_0x4d9fcd,_0x57d075,o(_0x4d9fcd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x57d075=function(_0x438dcc){const _0x55673e=_0x438dcc['getFirstRange']();let _0x9f3712=_0x55673e['start']['nodeAfter'];for(;_0x9f3712&&_0x55673e['containsItem'](_0x9f3712);){if(_0x9f3712['getAttribute']('listIndent')>0x0)return!0x1;_0x9f3712=_0x9f3712['nextSibling'];}return!0x0;}(_0x18968e)?o(_0x4d9fcd,'*Format:*\x20remove\x20from\x20%0',o(_0x4d9fcd,function(_0x550b20){return'ELEMENT_'+_0x550b20['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x18968e))):o(_0x4d9fcd,'*Outdent:*\x20%0',o(_0x4d9fcd,'ELEMENT_LIST_ITEM')),_0x15545d={'type':'format','content':_0x57d075};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x234e5d['multipleBlocks']&&(_0x57d075='*Merge:*\x20%0',_0x15545d={'type':'deletion','content':o(_0x4d9fcd,_0x57d075,o(_0x4d9fcd,'ELEMENT_LIST_ITEM'))});}return _0x15545d;});}}function Te(_0x56932a){let _0x98eff3=_0x56932a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x98eff3;){const _0x430c01=_0x98eff3['getAttribute']('listItemId');if(!_0x430c01)return!0x1;if(_0x430c01==_0x56932a['data']['newValue'])return'newValue';if(_0x430c01==_0x56932a['data']['oldValue'])return'oldValue';_0x98eff3=_0x98eff3['previousSibling'];}return!0x1;}class Se extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4835ae=this['editor']['config']['get']('list.properties'),_0x1db52d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4835ae['styles']&&(_0x1db52d['enableDefaultAttributesIntegration']('listStyle'),_0x1db52d['registerBlockAttribute']('listStyle')),_0x4835ae['reversed']&&(_0x1db52d['enableDefaultAttributesIntegration']('listReversed'),_0x1db52d['registerBlockAttribute']('listReversed')),_0x4835ae['startIndex']&&(_0x1db52d['enableDefaultAttributesIntegration']('listStart'),_0x1db52d['registerBlockAttribute']('listStart'));const _0xc84912={'type':'format','content':''};_0x1db52d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2aec87=this['editor']['locale'];_0x1db52d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2aec87,'FORMAT_LIST_REVERSED')),_0x1db52d['descriptionFactory']['registerDescriptionCallback'](_0x3311b8=>{const {data:_0xde47fc}=_0x3311b8;if(_0xde47fc&&'listReversed'==_0xde47fc['key'])return null==_0xde47fc['newValue']||0x0==_0xde47fc['newValue']&&null==_0xde47fc['oldValue']?_0xc84912:void 0x0;}),_0x1db52d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2aec87,'FORMAT_LIST_START')),_0x1db52d['descriptionFactory']['registerDescriptionCallback'](_0x5cfd0b=>{const {data:_0x1a5a70}=_0x5cfd0b;if(_0x1a5a70&&'listStart'==_0x1a5a70['key'])return null==_0x1a5a70['newValue']||0x1==_0x1a5a70['newValue']&&null==_0x1a5a70['oldValue']?_0xc84912:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3f833a=>{if(_0x3f833a['batch']['isUndo'])return!0x1;let _0x3ddc7e=!0x1;const _0x841f28=_0x1db52d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d3de4=>{const _0x1ad3d1=_0x1db52d['_getAttributeKey'](_0x3d3de4);return'listStart'==_0x1ad3d1||'listReversed'==_0x1ad3d1;});for(const _0x5ede33 of _0x841f28){const _0x5adaae=_0x5ede33['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5adaae||'customNumbered'==_0x5adaae)continue;_0x1db52d['_findSuggestions'](_0x5ede33['getFirstRange'](),'attribute')['find'](_0x1a9d2a=>'listType'==_0x1db52d['_getAttributeKey'](_0x1a9d2a['suggestion']))||(_0x3f833a['removeMarker'](_0x5ede33['getFirstMarker']()),_0x3ddc7e=!0x0);}return _0x3ddc7e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x21f442){const _0x34023d=this['editor']['locale'],{data:_0x233dc9}=_0x21f442,_0x253782={'type':'format','content':''};if(!_0x233dc9||'listStyle'!=_0x233dc9['key'])return;if(!_0x233dc9['oldValue'])return'default'==_0x233dc9['newValue']?_0x253782:{'type':'format','content':''+o(_0x34023d,'*Set\x20format:*\x20%0',o(_0x34023d,this['_getTranslationKeyForListStyle'](_0x233dc9['newValue'])))};if(!_0x233dc9['newValue']){if('default'==_0x233dc9['oldValue'])return _0x253782;let _0x1d627a=_0x21f442['head'];for(;_0x1d627a;){if(_0x1d627a['data']&&'listType'==_0x1d627a['data']['key']&&_0x1d627a['data']['newValue'])return _0x253782;_0x1d627a=_0x1d627a['next'];}return{'type':'format','content':''+o(_0x34023d,'*Remove\x20format:*\x20%0',o(_0x34023d,this['_getTranslationKeyForListStyle'](_0x233dc9['oldValue'])))};}if('default'!=_0x233dc9['newValue'])return{'type':'format','content':''+o(_0x34023d,'*Set\x20format:*\x20%0',o(_0x34023d,this['_getTranslationKeyForListStyle'](_0x233dc9['newValue'])))};let _0x30c819=_0x21f442['head'];for(;_0x30c819;){if(_0x30c819['data']&&'listType'==_0x30c819['data']['key']&&_0x30c819['data']['newValue']&&_0x30c819['data']['oldValue'])return _0x253782;_0x30c819=_0x30c819['next'];}return{'type':'format','content':o(_0x34023d,'*Set\x20format:*\x20%0',o(_0x34023d,'ELEMENT_'+_0x21f442['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x9e94e2=this['editor'],_0x110447=_0x9e94e2['locale'];_0x9e94e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7171=>{if('formatBlock'!=_0x3f7171['type'])return;const {data:_0x515846}=_0x3f7171;if(!_0x515846)return;let _0x2a4b1a,_0x3c76bd;switch(_0x515846['commandName']){case'listStyle':_0x2a4b1a='*Change\x20to:*\x20%0',_0x3c76bd={'type':'format','content':o(_0x110447,_0x2a4b1a,o(_0x110447,this['_getTranslationKeyForListStyle'](_0x515846['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a4b1a=_0x515846['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c76bd={'type':'format','content':o(_0x110447,_0x2a4b1a)};break;case'listStart':_0x2a4b1a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c76bd={'type':'format','content':o(_0x110447,_0x2a4b1a,_0x515846['commandParams'][0x0]['startIndex'])};}return _0x3c76bd;});}['_getTranslationKeyForListStyle'](_0x49b60f){return'ELEMENT_'+function(_0x260f2e){if(_e['includes'](_0x260f2e))return'bulleted';if(Re['includes'](_0x260f2e))return'numbered';return null;}(_0x49b60f)['toUpperCase']()+'_LIST_'+_0x49b60f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x42796e{['afterInit'](){const _0x3f0fcf=this['editor'];_0x3f0fcf['commands']['get']('emoji')&&_0x3f0fcf['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x42796e{static get['requires'](){return[_0x443da6];}['init'](){const _0x2489b6=this['editor'],_0x21e48d=_0x2489b6['plugins']['get']('TrackChangesEditing'),_0x24a0d6=_0x2489b6['commands']['get']('enter');_0x21e48d['enableCommand']('enter',()=>{_0x2489b6['model']['change'](_0x32753d=>{const _0xac349f=_0x2489b6['model']['document']['selection'],_0x58d7d9=_0xac349f['getFirstPosition'](),_0x428571=_0x2eb8ca['fromRange'](_0xac349f['getFirstRange']());if(_0x24a0d6['enterBlock'](_0x32753d)){const _0x42fdc1=_0x2489b6['model']['createPositionAt'](_0x58d7d9['parent']['nextSibling'],0x0),_0x5a6f71=_0x32753d['createRange'](_0x58d7d9,_0x42fdc1);_0x21e48d['markInsertion'](_0x5a6f71);}else _0x32753d['setSelection'](_0x32753d['createRange'](_0x428571['end']));_0x428571['detach'](),_0x24a0d6['fire']('afterExecute',{'writer':_0x32753d});});}),_0x2489b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2489b6,'split'),{'priority':'high'}),_0x2489b6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x211d5a,_0x3f65cc,_0x306ae7)=>{const _0xaa143b=_0x306ae7['mapper']['markerNameToElements'](_0x3f65cc['markerName']);if(_0xaa143b){for(const _0x36e198 of _0xaa143b)_0x36e198['hasClass']('ck-suggestion-marker-split')&&(_0x306ae7['mapper']['unbindElementFromMarkerName'](_0x36e198,_0x3f65cc['markerName']),_0x306ae7['writer']['remove'](_0x36e198));}},{'priority':'high'}),_0x2489b6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xbe373d,_0x55fb89,_0x541906)=>{_0x541906['options']['showSuggestionHighlights']&&De(_0x2489b6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xbe373d,_0x55fb89,_0x541906);},{'priority':'high'});}}class Z extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3194d8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3194d8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3194d8['enableCommand']('findNext'),_0x3194d8['enableCommand']('findPrevious'),_0x3194d8['enableCommand']('replace'),_0x3194d8['enableCommand']('replaceAll');}['handleFindCommand'](_0x41ccc6,_0xef7ede,_0xd95322={}){const _0x4a3100=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x41ccc6(_0x24e486=>{let _0x5d2b85=('string'==typeof _0xef7ede?_0x4a3100['findByTextCallback'](_0xef7ede,_0xd95322):_0xef7ede)(_0x24e486);Array['isArray'](_0x5d2b85)&&(_0x5d2b85={'results':_0x5d2b85,'searchText':'string'==typeof _0xef7ede?_0xef7ede:''});const _0x4e02c9=_0x5d2b85['results']['filter'](_0x58cf81=>!0x1===this['_isInDeletionRange'](_0x58cf81,_0x24e486['item']));return{..._0x5d2b85,'results':_0x4e02c9};},_0xd95322);}['_isInDeletionRange'](_0x551875,_0x39fc4f){const _0x5dc9a3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39fc4f,_0x551875['start']),this['editor']['model']['createPositionAt'](_0x39fc4f,_0x551875['end']));for(const _0x44f73d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5dc9a3['getIntersection'](_0x44f73d['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 _0x42796e{['afterInit'](){const _0x39a33e=this['editor']['locale'],_0x2a4d5c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x6f5ee,commandName:_0x1b4b85}of ro)this['editor']['plugins']['has'](_0x6f5ee)&&(_0x2a4d5c['enableDefaultAttributesIntegration'](_0x1b4b85),_0x2a4d5c['registerInlineAttribute'](_0x1b4b85));_0x2a4d5c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39a33e,'FORMAT_FONT_SIZE')),_0x2a4d5c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39a33e,'FORMAT_FONT_FAMILY')),_0x2a4d5c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39a33e,'FORMAT_FONT_COLOR')),_0x2a4d5c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39a33e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21070c=this['editor'],_0x2583eb=_0x21070c['locale'];_0x21070c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x265e9c=>{const _0x1c5a1b=_0x2583eb['t'];if('formatInline'!=_0x265e9c['type'])return;const {data:_0x1698ac}=_0x265e9c;if(null!=_0x1698ac){if('fontSize'==_0x1698ac['commandName']){const _0x558168=_0x1698ac['commandParams'][0x0]['value'];if(_0x558168){const _0x457574=_0x1c5a1b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3063d5=>_0x3063d5['model']==_0x558168)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2583eb,'*Set\x20font\x20size:*\x20%0',_0x457574)};}return{'type':'format','content':o(_0x2583eb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1698ac['commandName']){const _0x30be94=_0x1698ac['commandParams'][0x0]['value'];return _0x30be94?{'type':'format','content':o(_0x2583eb,'*Set\x20font\x20family:*\x20%0',_0x30be94)}:{'type':'format','content':o(_0x2583eb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1698ac['commandName']){const _0x1b99bb=_0x1698ac['commandParams'][0x0]['value'];if(_0x1b99bb){const _0x9339bd=_0x3eb2fa(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5829a7=>_0x5829a7['model']==_0x1b99bb);let _0x54d5b0=_0x1b99bb,_0x111902='';return _0x9339bd&&(_0x54d5b0=_0x9339bd['label'],_0x111902=_0x1c5a1b(_0x54d5b0)['toLowerCase']()),{'type':'format','content':o(_0x2583eb,'*Set\x20font\x20color:*\x20%0',_0x111902)['trim'](),'color':{'value':_0x1b99bb,'title':_0x111902||_0x54d5b0}};}return{'type':'format','content':o(_0x2583eb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1698ac['commandName']){const _0xefbf75=_0x1698ac['commandParams'][0x0]['value'];if(_0xefbf75){const _0x5dfa73=_0x3eb2fa(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x505fa8=>_0x505fa8['model']==_0xefbf75);let _0x2cac3f=_0xefbf75,_0x52ec4d='';return _0x5dfa73&&(_0x2cac3f=_0x5dfa73['label'],_0x52ec4d=_0x1c5a1b(_0x2cac3f)['toLowerCase']()),{'type':'format','content':o(_0x2583eb,'*Set\x20font\x20background\x20color:*\x20%0',_0x52ec4d)['trim'](),'color':{'value':_0xefbf75,'title':_0x52ec4d||_0x2cac3f}};}return{'type':'format','content':o(_0x2583eb,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x42796e{['afterInit'](){const _0x5a5014=this['editor'],_0x3968a3=_0x5a5014['plugins']['get']('TrackChangesEditing'),_0x2d678e=_0x5a5014['commands']['get']('copyFormat'),_0x267fbb=_0x5a5014['commands']['get']('pasteFormat');_0x2d678e&&_0x267fbb&&(_0x3968a3['enableDefaultAttributesIntegration']('pasteFormat'),_0x3968a3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x69f4cd=this['editor'],_0x33bfe2=_0x69f4cd['locale'];_0x69f4cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4da859=>{if('formatBlock'!=_0x4da859['type']&&'formatInline'!=_0x4da859['type'])return;const {data:_0x54f7d1}=_0x4da859;if(_0x54f7d1&&'pasteFormat'===_0x54f7d1['commandName']){const _0x71d501=[],_0x210a8b=_0x54f7d1['commandParams'][0x0];for(const [_0xdaf09c,_0x2c64fe]of Object['entries'](_0x210a8b))_0x71d501['push'](so(_0x69f4cd,_0xdaf09c,_0x2c64fe));return _0x71d501['length']?{'type':'format','content':o(_0x33bfe2,'*Set\x20format\x20to:*\x20%0',_0x71d501['join'](',\x20'))}:{'type':'format','content':o(_0x33bfe2,'*Remove\x20all\x20formatting*')};}});}}function so(_0xbe0318,_0x437be3,_0xdd7015){const _0x422dc8=_0xbe0318['locale']['t'],_0x54e8ca=_0x437be3['split'](/(?=[A-Z])/)['join']('\x20'),_0x300301=_0x422dc8(_0x54e8ca['charAt'](0x0)['toUpperCase']()+_0x54e8ca['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xdd7015)return _0x300301;if('fontColor'===_0x437be3||'fontBackgroundColor'===_0x437be3){const _0x1a454f=_0x3eb2fa(_0xbe0318['config']['get']('fontColor.colors'))['find'](_0x2ff2eb=>_0x2ff2eb['model']==_0xdd7015);return _0x300301+'\x20('+(_0x1a454f?_0x422dc8(_0x1a454f['label'])['toLowerCase']():_0xdd7015)+')';}if('fontSize'===_0x437be3&&isNaN(parseFloat(_0xdd7015))){const _0x1e8e46=_0xbe0318['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xbe0318['config']['get']('fontSize.options'))['find'](_0x396f85=>_0x396f85['model']==_0xdd7015);return _0x300301+'\x20('+(_0x1e8e46?_0x422dc8(_0x1e8e46['title'])['toLowerCase']():_0xdd7015)+')';}return _0x300301+'\x20('+_0xdd7015+')';}class it extends _0x42796e{['_headingOptions'];['afterInit'](){const _0x3f6dc2=this['editor'];if(!_0x3f6dc2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f6dc2['config']['get']('heading.options');const _0x5284b0=_0x3f6dc2['locale'],_0x3536e8=_0x3f6dc2['plugins']['get']('TrackChangesEditing');_0x3536e8['enableDefaultAttributesIntegration']('heading');for(const _0xb22f41 of this['_headingOptions'])'paragraph'!=_0xb22f41['model']&&_0x3536e8['descriptionFactory']['registerElementLabel'](_0xb22f41['model'],_0x298ada=>{const _0x22e6bf=this['_getHeadingLevel'](_0xb22f41['model']);return null!==_0x22e6bf?_0x5348d8(_0x298ada,_0x22e6bf):_0x3ea8c5(_0x298ada,_0xb22f41['title']);});function _0x5348d8(_0x13d494,_0x3c610e){return o(_0x5284b0,'ELEMENT_HEADING',[_0x13d494,_0x3c610e]);}function _0x3ea8c5(_0x1cdaf3,_0x5ef016){return o(_0x5284b0,'ELEMENT_HEADING_CUSTOM',[_0x1cdaf3,_0x5ef016]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b0f46=this['editor'],_0x474b0f=_0x4b0f46['locale'];function _0x579eff(_0x4059ec,_0x44abae){return o(_0x474b0f,'ELEMENT_HEADING_CUSTOM',[_0x4059ec,_0x44abae]);}_0x4b0f46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc5c34f=>{if('formatBlock'!=_0xc5c34f['type'])return;const {data:_0x33d86b}=_0xc5c34f;if(_0x33d86b&&'heading'==_0x33d86b['commandName']){const _0x47df7e=_0x33d86b['commandParams'][0x0]['value'],_0x1a1f65=this['_getHeadingLevel'](_0x47df7e);if(null!==_0x1a1f65)return{'type':'format','content':o(_0x474b0f,'*Change\x20to:*\x20%0',(_0x3c28b7=0x1,_0x3a19ce=_0x1a1f65,o(_0x474b0f,'ELEMENT_HEADING',[_0x3c28b7,_0x3a19ce])))};const _0x52209e=this['_headingOptions']['find'](_0x18aa98=>_0x18aa98['model']===_0x47df7e)['title'];return{'type':'format','content':o(_0x474b0f,'*Change\x20to:*\x20%0',_0x579eff(0x1,_0x52209e))};}var _0x3c28b7,_0x3a19ce;});}['_getHeadingLevel'](_0x53b9e3){const _0x3befce=_0x53b9e3['match'](/^heading(\d+)/);if(_0x3befce)return _0x3befce[0x1];const _0x5834d5=this['_headingOptions']?.['find'](_0x155477=>_0x155477['model']==_0x53b9e3);if(_0x5834d5&&_0x5834d5['view']){const _0x5465a1=_0x5834d5['view'],_0x1dc9ac=(_0x5465a1['name']??_0x5465a1)['match'](/^h(\d+)/);if(_0x1dc9ac)return _0x1dc9ac[0x1];}return null;}}class et extends _0x42796e{['afterInit'](){const _0x5609f2=this['editor'];if(!_0x5609f2['plugins']['has']('HighlightEditing'))return;const _0x2b9092=_0x5609f2['plugins']['get']('TrackChangesEditing'),_0x5470fd=_0x5609f2['locale'];_0x2b9092['enableDefaultAttributesIntegration']('highlight'),_0x2b9092['registerInlineAttribute']('highlight'),_0x2b9092['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5470fd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b82eb=this['editor'],_0x38efdd=_0x2b82eb['locale'];_0x2b82eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14ab0a=>{if('formatInline'!=_0x14ab0a['type'])return;const {data:_0x2ad870}=_0x14ab0a;if(_0x2ad870&&'highlight'==_0x2ad870['commandName']){const _0x3638a5=_0x38efdd['t'],_0x5f4f90=_0x2ad870['commandParams'][0x0]['value'];if(_0x5f4f90){const _0x460120=_0x2b82eb['config']['get']('highlight.options')['find'](_0x5456ad=>_0x5456ad['model']==_0x5f4f90),_0xa00721=_0x3638a5(_0x460120['title'])['toLowerCase']();return{'type':'format','content':o(_0x38efdd,'*Set\x20highlight:*\x20%0',_0xa00721),'color':{'value':_0x460120['color'],'title':_0x460120['title']}};}return{'type':'format','content':o(_0x38efdd,'*Remove\x20highlight*',o(_0x38efdd,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x42796e{['afterInit'](){const _0x4a4d2a=this['editor'];if(!_0x4a4d2a['plugins']['has']('HorizontalLineEditing'))return;_0x4a4d2a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2d85f5=_0x4a4d2a['plugins']['get']('TrackChangesEditing'),_0x44444e=_0x4a4d2a['locale'];_0x2d85f5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4ea887=>o(_0x44444e,'ELEMENT_HORIZONTAL_LINE',_0x4ea887)),_0x4a4d2a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x56b3df,{writer:_0x152f64,options:_0x490576})=>{if(!_0x490576['showSuggestionHighlights'])return null;const _0x525801=_0x152f64['createContainerElement']('div'),_0x47388d=_0x152f64['createEmptyElement']('hr');return _0x152f64['addClass']('ck-horizontal-line',_0x525801),_0x152f64['insert'](_0x152f64['createPositionAt'](_0x525801,0x0),_0x47388d),_0x525801;},'converterPriority':'high'});}}class ot extends _0x42796e{['afterInit'](){const _0x47b790=this['editor'];if(!_0x47b790['plugins']['has']('HtmlEmbed'))return;const _0x3e5ab0=_0x47b790['plugins']['get']('TrackChangesEditing'),_0x294512=_0x47b790['locale'];_0x3e5ab0['descriptionFactory']['registerElementLabel']('rawHtml',_0xc0cc71=>o(_0x294512,'ELEMENT_HTML_EMBED',_0xc0cc71)),_0x3e5ab0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3e5ab0['registerBlockAttribute']('value'),_0x3e5ab0['descriptionFactory']['registerDescriptionCallback'](_0x11fa6b=>{if('attribute'!=_0x11fa6b['type'])return;const {data:_0x53410e}=_0x11fa6b;if(_0x53410e&&'value'==_0x53410e['key']&&_0x11fa6b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2d400b=o(_0x294512,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x294512,'*Change\x20%0\x20content*',_0x2d400b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25ddec=this['editor'],_0x2e07a2=_0x25ddec['locale'];_0x25ddec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c8bd=>{if('formatBlock'!=_0x11c8bd['type'])return;const {data:_0x574bb7}=_0x11c8bd;if(_0x574bb7&&'htmlEmbed'==_0x574bb7['commandName']){const _0x3598eb=o(_0x2e07a2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2e07a2,'*Change\x20%0\x20content*',_0x3598eb)};}});}}class rt extends _0x42796e{['afterInit'](){const _0x2ea631=this['editor'];if(!_0x2ea631['plugins']['has']('ImageEditing'))return;const _0xdc1963=_0x2ea631['plugins']['get']('TrackChangesEditing'),_0x452f0b=_0x2ea631['plugins']['get']('ImageUtils'),_0x190b75=_0x2ea631['locale'];_0xdc1963['enableCommand']('insertImage'),_0xdc1963['descriptionFactory']['registerElementLabel']('imageBlock',_0x4f85ca=>o(_0x190b75,'ELEMENT_IMAGE',_0x4f85ca)),_0xdc1963['descriptionFactory']['registerElementLabel']('imageInline',_0x520b64=>o(_0x190b75,'ELEMENT_INLINE_IMAGE',_0x520b64)),_0xdc1963['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x190b75,'ELEMENT_CAPTION')),_0x2ea631['plugins']['has']('ImageUploadEditing')&&_0xdc1963['enableCommand']('uploadImage'),_0x2ea631['plugins']['has']('ImageBlockEditing')&&_0x2ea631['plugins']['has']('ImageInlineEditing')&&(_0xdc1963['enableCommand']('imageTypeInline',(_0x57b767,_0x3b9767)=>{const _0x2da354=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']);_0x2ea631['model']['change'](()=>{_0xdc1963['markBlockFormat'](_0x2da354,{'commandName':'imageTypeInline','commandParams':[_0x3b9767]},[],'convertBlockImageToInline');});}),_0xdc1963['enableCommand']('imageTypeBlock',(_0xc5ac5,_0x4e46e0)=>{_0x2ea631['model']['change'](_0x1597cf=>{let _0x5cd945=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']),_0x2e6335=_0x1597cf['createRangeOn'](_0x5cd945);const _0xcf3bcb=_0x56f03e['fromPosition'](_0x2e6335['start'],'toPrevious'),_0x55e708=_0x56f03e['fromPosition'](_0x2e6335['end'],'toNext');_0xdc1963['forceDefaultExecution'](()=>_0xc5ac5(_0x4e46e0)),_0x5cd945=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']),_0x2e6335=_0x1597cf['createRangeOn'](_0x5cd945);const _0x58c24c=_0x1597cf['createRange'](_0xcf3bcb,_0x55e708);_0xcf3bcb['detach'](),_0x55e708['detach'](),_0xdc1963['markBlockFormat'](_0x5cd945,{'commandName':'imageTypeInline','commandParams':[_0x4e46e0]},[],'convertInlineImageToBlock'),_0x58c24c['start']['isBefore'](_0x2e6335['start'])&&_0xdc1963['markInsertion'](_0x1597cf['createRange'](_0x58c24c['start'],_0x2e6335['start']),'convertInlineImageToBlock'),_0x2e6335['end']['isBefore'](_0x58c24c['end'])&&_0xdc1963['markInsertion'](_0x1597cf['createRange'](_0x2e6335['end'],_0x58c24c['end']),'convertInlineImageToBlock');});}),_0xdc1963['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xdc1963['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xdc1963['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xdc1963['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xdc1963['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xdc1963['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x28bd72])=>{const _0x2f7743=_0xdc1963['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x63d91e=_0x28bd72['start'],_0x582f75=_0x28bd72['end'];const _0x37a8bb=_0x2ea631['model']['schema']['getNearestSelectionRange'](_0x63d91e,'backward'),_0x146a78=_0x2ea631['model']['schema']['getNearestSelectionRange'](_0x582f75,'forward');_0x37a8bb['isCollapsed']&&(_0x63d91e=_0x37a8bb['start']),_0x146a78['isCollapsed']&&(_0x582f75=_0x146a78['end']),_0x2f7743([_0x2ea631['model']['createRange'](_0x63d91e,_0x582f75)]);}),_0xdc1963['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15a2c8),_0xdc1963['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15a2c8)),_0x2ea631['plugins']['has']('ImageCaptionEditing')&&(_0xdc1963['enableCommand']('toggleImageCaption',(_0xe94f07,_0x4cf2a2)=>{const _0x22102b=_0x2ea631['plugins']['get']('ImageCaptionUtils');let _0x335ea9=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']),_0x419bdc=_0x22102b['getCaptionFromImageModelElement'](_0x335ea9);_0x2ea631['model']['change'](()=>{if(_0x419bdc)return void _0xdc1963['markDeletion'](_0x2ea631['model']['createRangeOn'](_0x419bdc));const _0x2f8479=_0x452f0b['isBlockImage'](_0x335ea9);_0xe94f07(_0x4cf2a2),_0x335ea9=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']),_0x419bdc=_0x22102b['getCaptionFromImageModelElement'](_0x335ea9),_0xdc1963['markInsertion'](_0x2ea631['model']['createRangeOn'](_0x419bdc),_0x2f8479?null:'imageCaption');});}),_0xdc1963['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15a2c8));const _0x25dc2c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x271a99(_0x3926d0,_0xfee631){const _0x1a732c=_0x25dc2c['findIndex'](({type:_0x54f2f7,subType:_0x9a796d})=>_0x3926d0['type']==_0x54f2f7&&_0x3926d0['subType']==_0x9a796d),_0x1f20da=_0x25dc2c['findIndex'](({type:_0x4a1df8,subType:_0x1662a4})=>_0xfee631['type']==_0x4a1df8&&_0xfee631['subType']==_0x1662a4);if(_0x1a732c<0x0||_0x1f20da<0x0)return!0x1;const _0x3a1de9=_0x3926d0['getFirstRange'](),_0x533e4d=_0xfee631['getFirstRange']();if((0x0==_0x1a732c||0x1==_0x1a732c)&&0x2==_0x1f20da&&_0x3a1de9['isIntersecting'](_0x533e4d))return!0x0;if(0x2==_0x1a732c&&0x3==_0x1f20da){const _0x2e0ac3=_0xdc1963['_findSuggestions'](_0x3a1de9,'insertion')['filter'](({suggestion:_0x3922b4,meta:_0x2e8a64})=>_0x2e8a64['isOwn']&&'convertInlineImageToBlock'==_0x3922b4['subType']);if(_0x2e0ac3['length']>0x1&&_0x533e4d['end']['isEqual'](_0x3a1de9['start']))return!0x0;if(0x1==_0x2e0ac3['length']&&(_0x3a1de9['start']['isEqual'](_0x533e4d['end'])||_0x3a1de9['end']['isEqual'](_0x533e4d['start'])))return!0x0;}if(0x3==_0x1a732c&&0x3==_0x1f20da&&_0x3a1de9['start']['isBefore'](_0x533e4d['start'])){const _0x37b941=_0x3a1de9['end']['nodeAfter'],_0x4a74ea=_0x533e4d['start']['nodeBefore'];return _0x452f0b['isBlockImage'](_0x37b941)&&_0x37b941===_0x4a74ea;}return!0x1;}function _0x15a2c8(_0x29fb2e,_0x37cad7){return _0x271a99(_0x29fb2e,_0x37cad7)?[_0x29fb2e,_0x37cad7]:_0x271a99(_0x37cad7,_0x29fb2e)?[_0x37cad7,_0x29fb2e]:null;}_0x2ea631['plugins']['has']('ImageResize')&&(_0xdc1963['enableDefaultAttributesIntegration']('resizeImage'),_0xdc1963['registerBlockAttribute']('resizedWidth'),_0xdc1963['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x190b75,'FORMAT_IMAGE_SIZE'))),_0x2ea631['plugins']['has']('ImageTextAlternativeEditing')&&(_0xdc1963['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xdc1963['registerBlockAttribute']('alt')),_0x2ea631['plugins']['has']('PictureEditing')&&(_0xdc1963['registerBlockAttribute']('sources'),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x1915a5=>{if('attribute'!=_0x1915a5['type'])return;const {data:_0x22d68d}=_0x1915a5;return _0x22d68d&&'sources'==_0x22d68d['key']?{'type':'format','content':''}:void 0x0;})),_0x2ea631['plugins']['has']('ImageSizeAttributes')&&(_0xdc1963['registerBlockAttribute']('width'),_0xdc1963['registerBlockAttribute']('height'),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x30aa91=>{if('attribute'!=_0x30aa91['type'])return;const {data:_0x2ba82f}=_0x30aa91;return!_0x2ba82f||'width'!=_0x2ba82f['key']&&'height'!=_0x2ba82f['key']?void 0x0:{'type':'format','content':''};})),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x34cb1a=>{if(!!_0x25dc2c['find'](({type:_0x313f19,subType:_0x1f1dc1})=>_0x34cb1a['type']==_0x313f19&&_0x34cb1a['subType']==_0x1f1dc1))return _0x34cb1a['previous']?{}:void 0x0;}),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x109583=>{if('insertion'==_0x109583['type']||'deletion'==_0x109583['type']){const _0x38b2c0=_0x109583['getContainedElement']();if(_0x38b2c0&&_0x38b2c0['is']('element','caption'))return{'type':'insertion'==_0x109583['type']?'addObject':'removeObject','element':_0x38b2c0,'quantity':0x1};}}),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x3a78f1=>'formatBlock'==_0x3a78f1['type']&&'convertInlineImageToBlock'==_0x3a78f1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3a78f1['type']&&'convertBlockImageToInline'==_0x3a78f1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x40bf7f=>{if('attribute'!=_0x40bf7f['type'])return;const {data:_0x2e0bef}=_0x40bf7f;if(!_0x2e0bef||'alt'!=_0x2e0bef['key'])return;const _0x1bfc4d=_0x2e0bef['newValue'];return _0x1bfc4d?{'type':'format','content':o(_0x190b75,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1bfc4d+'\x22')}:{'type':'format','content':o(_0x190b75,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aae39=this['editor'],_0x1ae892=_0x3aae39['locale'];_0x3aae39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36550b=>{if('formatBlock'!=_0x36550b['type']&&'formatInline'!=_0x36550b['type'])return;const {data:_0x938095}=_0x36550b;if(_0x938095){if('imageTextAlternative'==_0x938095['commandName']){const _0xcdf7ba=_0x938095['commandParams'][0x0]['newValue'];return _0xcdf7ba?{'type':'format','content':o(_0x1ae892,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcdf7ba+'\x22')}:{'type':'format','content':o(_0x1ae892,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x938095['commandName']){const _0x3d6067=_0x938095['commandParams'][0x0]['width'];return _0x3d6067?{'type':'format','content':o(_0x1ae892,'*Set\x20image\x20width:*\x20%0',_0x3d6067)}:{'type':'format','content':o(_0x1ae892,'*Reset\x20image\x20width*')};}}});}}class at extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30cfdc=this['editor']['locale'],_0x2abdcc=this['editor']['plugins']['get']('TrackChangesEditing');_0x2abdcc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2abdcc['registerBlockAttribute']('src'),_0x2abdcc['descriptionFactory']['registerDescriptionCallback'](_0x268ab2=>{if('attribute'!=_0x268ab2['type'])return;const {data:_0x4b0cf8}=_0x268ab2;return _0x4b0cf8&&'src'==_0x4b0cf8['key']?_0x4b0cf8['newValue']&&_0x4b0cf8['oldValue']?{'type':'format','content':o(_0x30cfdc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cd860=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cd860['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1cd860['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cd860['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1cd860['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xed521f=this['editor'],_0x18557c=_0xed521f['locale'];_0xed521f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x209c26=>{if('formatBlock'!=_0x209c26['type']&&'formatInline'!=_0x209c26['type'])return;const {data:_0x366efd}=_0x209c26;if(!_0x366efd||'replaceImageSource'!=_0x366efd['commandName'])return;return{'type':'format','content':o(_0x18557c,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x42796e{['afterInit'](){const _0x4c4c63=this['editor'];if(!_0x4c4c63['plugins']['has']('ImageStyleEditing'))return;const _0x18770a=_0x4c4c63['plugins']['get']('TrackChangesEditing'),_0x210ba5=_0x4c4c63['plugins']['get']('ImageUtils'),_0x2650eb={};_0x18770a['enableCommand']('imageStyle',(_0x2f30c6,_0x3d400a)=>{const _0x3fe1aa=_0x4c4c63['plugins']['get']('Users')['me'],_0x33fa2a=_0x4c4c63['commands']['get']('imageStyle');let _0x6516bd=_0x210ba5['getClosestSelectedImageElement'](_0x4c4c63['model']['document']['selection']),_0x5ea298=_0x4c4c63['model']['createRangeOn'](_0x6516bd),_0x374cf3=_0x33fa2a['value'];if(_0x374cf3==_0x3d400a['value'])return;const _0x273a7e={'commandName':'imageStyle','commandParams':[_0x3d400a],'formatGroupId':_0x55f348()};_0x4c4c63['model']['change'](()=>{if(_0x18770a['getSuggestions']()['filter'](_0x5eb8db=>_0x5eb8db['isInContent']&&_0x3fe1aa==_0x5eb8db['author']&&('formatBlock'==_0x5eb8db['type']||'formatInline'==_0x5eb8db['type'])&&('imageStylePreApply'==_0x5eb8db['subType']||'imageStylePostApply'==_0x5eb8db['subType'])&&_0x5eb8db['getFirstRange']()['isEqual'](_0x5ea298))['forEach'](_0x2d90af=>_0x18770a['discardSuggestion'](_0x2d90af['head'])),_0x6516bd=_0x210ba5['getClosestSelectedImageElement'](_0x4c4c63['model']['document']['selection']),_0x5ea298=_0x4c4c63['model']['createRangeOn'](_0x6516bd),_0x33fa2a['refresh'](),_0x4c4c63['commands']['get']('imageTypeInline')['refresh'](),_0x4c4c63['commands']['get']('imageTypeBlock')['refresh'](),_0x374cf3=_0x33fa2a['value'],_0x374cf3!=_0x3d400a['value'])return _0x210ba5['isInlineImage'](_0x6516bd)&&_0x33fa2a['shouldConvertImageType'](_0x3d400a['value'],_0x6516bd)?(_0x2f30c6({..._0x3d400a,'setImageSizes':!0x1}),_0x6516bd=_0x210ba5['getClosestSelectedImageElement'](_0x4c4c63['model']['document']['selection']),void _0x18770a['markBlockFormat'](_0x6516bd,{..._0x273a7e,'commandReversedParams':[{'value':_0x374cf3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x210ba5['isBlockImage'](_0x6516bd)?_0x18770a['markBlockFormat'](_0x6516bd,_0x273a7e,[],'imageStylePostApply'):_0x18770a['markInlineFormat'](_0x5ea298,_0x273a7e,'imageStylePostApply'));});});for(const _0x249d9f of _0x4c4c63['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2650eb[_0x249d9f['name']]=_0x249d9f['title']['toLowerCase']();_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3dc74d])=>{_0x210ba5['setImageNaturalSizeAttributes'](_0x3dc74d['getContainedElement']());}),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4d3e82,_0x560ded)=>{_0x18770a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4d3e82,{'commandName':_0x560ded['commandName'],'commandParams':_0x560ded['commandReversedParams']});}),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5d3c47,_0x3eee82){if(_0x31c7a5(_0x5d3c47,_0x3eee82))return[_0x5d3c47,_0x3eee82];if(_0x31c7a5(_0x3eee82,_0x5d3c47))return[_0x3eee82,_0x5d3c47];return null;});const _0x30ec98=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31c7a5(_0xc61e9,_0x5f04a9){const _0x2b3591=_0x30ec98['findIndex'](({type:_0x43cf0e,subType:_0x2fd631})=>_0xc61e9['type']==_0x43cf0e&&_0xc61e9['subType']==_0x2fd631),_0x215662=_0x30ec98['findIndex'](({type:_0x16373e,subType:_0x218fd5})=>_0x5f04a9['type']==_0x16373e&&_0x5f04a9['subType']==_0x218fd5);if(_0x2b3591<0x0||_0x215662<0x0)return!0x1;const _0x394f28=_0xc61e9['getFirstRange'](),_0x96e923=_0x5f04a9['getFirstRange']();if((0x0==_0x2b3591||0x1==_0x2b3591)&&0x2==_0x215662&&_0x394f28['isIntersecting'](_0x96e923))return!0x0;if(0x2==_0x2b3591&&0x3==_0x215662){const _0x32da4d=_0x18770a['_findSuggestions'](_0x394f28,'insertion')['filter'](({suggestion:_0x487df1,meta:_0x590a24})=>_0x590a24['isOwn']&&'convertInlineImageToBlock'==_0x487df1['subType']);if(_0x32da4d['length']>0x1&&_0x96e923['end']['isEqual'](_0x394f28['start']))return!0x0;if(0x1==_0x32da4d['length']&&(_0x394f28['start']['isEqual'](_0x96e923['end'])||_0x394f28['end']['isEqual'](_0x96e923['start'])))return!0x0;}if(0x3==_0x2b3591&&0x3==_0x215662&&_0x394f28['start']['isBefore'](_0x96e923['start'])){const _0x19a570=_0x394f28['end']['nodeAfter'],_0x560e50=_0x96e923['start']['nodeBefore'];return _0x210ba5['isBlockImage'](_0x19a570)&&_0x19a570===_0x560e50;}return!0x1;}_0x4c4c63['model']['document']['registerPostFixer'](()=>{let _0x289859=!0x1;const _0x4a4ed1=Array['from'](_0x4c4c63['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49d517,data:_0x295bd1}of _0x4a4ed1){const {group:_0x324621,type:_0x4c665c,subType:_0xe4bc66,id:_0x558a28}=_0x18770a['_splitMarkerName'](_0x49d517);if('suggestion'==_0x324621&&_0x18770a['hasSuggestion'](_0x558a28)){if('formatBlock'==_0x4c665c&&('imageStylePreApply'==_0xe4bc66||'imageStylePostApply'==_0xe4bc66)){const _0x4941d4=_0x18770a['getSuggestion'](_0x558a28);if(_0x295bd1['newRange']){const _0x19c61e=_0x4941d4['getFirstRange']()['getContainedElement']();if(_0x210ba5['isBlockImage'](_0x19c61e))continue;_0x18770a['discardSuggestion'](_0x4941d4),_0x289859=!0x0;}}if('insertion'==_0x4c665c&&'imageCaption'==_0xe4bc66&&!_0x295bd1['newRange']){const _0x52278a=_0x18770a['getSuggestion'](_0x558a28);_0x52278a['next']&&_0x52278a['next']['isInContent']&&(_0x18770a['discardSuggestion'](_0x52278a['next']),_0x289859=!0x0);}}}return _0x289859;}),this['_registerLegacyDescription'](_0x2650eb);}['_registerLegacyDescription'](_0x5ba09b){const _0x362f07=this['editor'],_0x51e37e=_0x362f07['locale'];_0x362f07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cf94d=>{if('formatBlock'!=_0x2cf94d['type']&&'formatInline'!=_0x2cf94d['type'])return;const {data:_0x3cf065}=_0x2cf94d;if(!_0x3cf065||'imageStyle'!=_0x3cf065['commandName'])return;const _0x349c4=_0x3cf065['commandParams'][0x0]['value'];return _0x1d5af4('side'===_0x349c4?o(_0x51e37e,'FORMAT_SIDE_IMAGE'):_0x5ba09b[_0x349c4]||_0x349c4);function _0x1d5af4(_0x55ac59){return{'type':'format','content':o(_0x51e37e,'*Format:*\x20%0',_0x55ac59)};}});}}class ut extends _0x42796e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2d2cb7){super(_0x2d2cb7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc86bba=this['editor'],_0x1ef316=_0xc86bba['commands']['get']('importWord'),_0x125f96=_0xc86bba['commands']['get']('trackChanges');_0x1ef316&&(_0x1ef316['on']('execute',(_0x56d603,[,_0x678c8c])=>{this['_trackChangesValueDuringImport']=_0x125f96['value'],_0x678c8c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ef316,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ef316,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x125f96['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc86bba['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x227031,_0x249d7e){const {suggestions:_0x1c897a}=_0x249d7e,_0x5c2ec3=this['editor']['commands']['get']('trackChanges'),_0x3316dd=_0x5c2ec3['value'];this['_trackChangesValueDuringImport']!==_0x3316dd&&(_0x5c2ec3['execute'](),this['_trackChangesExecuted']=!0x0),_0x1c897a&&_0x1c897a['forEach'](({id:_0x2b3218,type:_0x3b42b8,author:_0x29d37d,created_at:_0x1b166d})=>{const _0x55ac78={'id':_0x2b3218,'type':_0x3b42b8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x29d37d,'createdAt':_0x1b166d?new Date(_0x1b166d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x55ac78);});}}class ft extends _0x42796e{['afterInit'](){const _0x25789e=this['editor'],_0xb79fce=_0x25789e['plugins']['get']('TrackChangesEditing');if(_0x25789e['plugins']['has']('IndentEditing')&&(_0xb79fce['enableCommand']('indent'),_0xb79fce['enableCommand']('outdent')),_0x25789e['plugins']['has']('IndentBlock')){for(const _0x1b5e42 of['indentBlock','outdentBlock'])_0xb79fce['enableDefaultAttributesIntegration'](_0x1b5e42);}const _0x5cdb4c=_0x25789e['locale'];_0xb79fce['registerBlockAttribute']('blockIndent'),_0xb79fce['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5cdb4c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1647c9=this['editor'],_0x1c7ae5=_0x1647c9['locale'],_0x34e52a=_0x1647c9['plugins']['get']('TrackChangesEditing');_0x34e52a['descriptionFactory']['registerDescriptionCallback'](_0x7d9924=>{if('formatBlock'!=_0x7d9924['type'])return;const {data:_0x3878cd}=_0x7d9924;if(!_0x3878cd)return;if('indentBlock'!=_0x3878cd['commandName']&&'outdentBlock'!=_0x3878cd['commandName'])return;const _0x5bf9a3=_0x7d9924['getItems']()[0x0],_0x495db9=_0x34e52a['descriptionFactory']['getItemLabel'](_0x5bf9a3);return'indentBlock'==_0x3878cd['commandName']?{'type':'format','content':o(_0x1c7ae5,'*Indent:*\x20%0',_0x495db9)}:'outdentBlock'==_0x3878cd['commandName']?{'type':'format','content':o(_0x1c7ae5,'*Outdent:*\x20%0',_0x495db9)}:void 0x0;});}}class ht extends _0x42796e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x42796e{['afterInit'](){const _0x1a3696=this['editor'];if(!_0x1a3696['plugins']['has']('LinkEditing'))return;const _0x856999=_0x1a3696['plugins']['get']('TrackChangesEditing'),_0x49d442=_0x1a3696['commands']['get']('link');_0x856999['enableDefaultAttributesIntegration']('link'),_0x856999['enableDefaultAttributesIntegration']('unlink'),_0x856999['registerInlineAttribute']('linkHref');for(const _0x1f2ea0 of _0x49d442['manualDecorators'])_0x856999['registerInlineAttribute'](_0x1f2ea0['id']),_0x856999['descriptionFactory']['registerAttributeLabel'](_0x1f2ea0['id'],'link\x20('+_0x1f2ea0['label']['toLowerCase']()+')');_0x856999['descriptionFactory']['registerDescriptionCallback'](_0x414fc9=>{if('attribute'!=_0x414fc9['type'])return;const {data:_0x2b26cd}=_0x414fc9;if(!_0x2b26cd||'linkHref'!=_0x2b26cd['key'])return;const _0x553189=_0x2b26cd['newValue'],_0x3b22a1=_0x1a3696['locale'];return{'type':'format','content':null==_0x553189?o(_0x3b22a1,'*Remove\x20link*'):o(_0x3b22a1,'*Set\x20link:*\x20%0','\x22'+_0x553189+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13debd=this['editor'],_0x3190fd=_0x13debd['locale'];_0x13debd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eab46=>{if('formatInline'!=_0x1eab46['type'])return;const {data:_0x27394d}=_0x1eab46;if(_0x27394d){if('link'==_0x27394d['commandName']){const _0x4d48e1=_0x27394d['commandParams'][0x0];return{'type':'format','content':o(_0x3190fd,'*Set\x20link:*\x20%0','\x22'+_0x4d48e1+'\x22')};}return'unlink'==_0x27394d['commandName']?{'type':'format','content':o(_0x3190fd,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x42796e{['afterInit'](){const _0xa37011=this['editor'],_0x38f28f=_0xa37011['locale'];if(!_0xa37011['plugins']['has']('LegacyListEditing'))return;const _0x4dce27=_0xa37011['plugins']['get']('TrackChangesEditing'),_0x1955cd=_0xa37011['plugins']['has']('LegacyTodoListEditing');function _0x597a3b(_0xac9568){return()=>{const _0x4196eb=_0xa37011['model']['document']['selection'],_0x1952ef=_0xa37011['commands']['get'](_0xac9568);if(_0x1952ef['value'])return void _0xa37011['execute']('paragraph',{});const _0x6caa1=_0xac9568['slice'](0x0,-0x4),_0x112d2d=function(_0xb39c5c,_0x481bad,_0x1a2cf7){let _0x482cce=Array['from'](_0xb39c5c)['filter'](_0x14dea8=>function(_0x5a07fe,_0x216bee){return _0x216bee['checkChild'](_0x5a07fe['parent'],'listItem')&&!_0x216bee['isObject'](_0x5a07fe);}(_0x14dea8,_0x1a2cf7));_0x482cce=_0x482cce['filter'](_0x350f64=>!_0x350f64['is']('element','listItem')||_0x350f64['getAttribute']('listType')!=_0x481bad);const _0x34b6d3=new Set();for(const _0x7abc7 of _0x482cce)_0x7abc7['is']('element','listItem')?_0x34b6d3['add'](Le(_0x7abc7)):_0x34b6d3['add'](_0x7abc7);return Array['from'](_0x34b6d3);}(_0x4196eb['getSelectedBlocks'](),_0x6caa1,_0xa37011['model']['schema']);_0xa37011['model']['change'](()=>{for(const _0x263e9b of _0x112d2d)_0x4dce27['markBlockFormat'](_0x263e9b,{'commandName':_0xac9568,'commandParams':[{'forceValue':!_0x1952ef['value']}],'formatGroupId':'blockName'},Ee(_0x263e9b));});};}function _0x4c226a(_0x21df49){return()=>{const _0x2f9ec0=function(_0x9f0aa1){let _0x3cd65f=Array['from'](_0x9f0aa1);const _0x235f8b=_0x3cd65f['findIndex'](_0x9bb3cc=>'listItem'!=_0x9bb3cc['name']);return _0x235f8b>-0x1&&(_0x3cd65f=_0x3cd65f['slice'](0x0,_0x235f8b)),_0x3cd65f;}(_0xa37011['model']['document']['selection']['getSelectedBlocks']()),_0x3294ac=_0xa37011['model']['createRange'](_0xa37011['model']['createPositionAt'](_0x2f9ec0[0x0],'before'),_0xa37011['model']['createPositionAt'](_0x2f9ec0[_0x2f9ec0['length']-0x1],'end'));_0xa37011['model']['change'](()=>{_0x4dce27['markBlockFormat'](_0x3294ac,{'commandName':_0x21df49,'commandParams':[],'formatGroupId':'listIndent'},function(_0x521758){const _0x5abdb3=new Set();for(const _0x183c40 of _0x521758){let _0x4999c8=_0x183c40['nextSibling'];for(;_0x4999c8&&_0x4999c8['getAttribute']('listIndent')>_0x183c40['getAttribute']('listIndent');)_0x5abdb3['add'](_0x4999c8),_0x4999c8=_0x4999c8['nextSibling'];}return Array['from'](_0x5abdb3);}(_0x2f9ec0));});};}_0x4dce27['enableCommand']('numberedList',_0x597a3b('numberedList')),_0x4dce27['enableCommand']('bulletedList',_0x597a3b('bulletedList')),_0x1955cd&&_0x4dce27['enableCommand']('todoList',_0x597a3b('todoList')),_0x4dce27['enableCommand']('indentList',_0x4c226a('indentList')),_0x4dce27['enableCommand']('outdentList',_0x4c226a('outdentList')),_0x1955cd&&_0x4dce27['enableCommand']('checkTodoList',()=>{const _0x2fb87c=_0xa37011['commands']['get']('checkTodoList'),_0x29560a=Array['from'](_0x2fb87c['_selectedElements']);_0x29560a['filter'](_0x535e10=>_0x535e10['getAttribute']('todoListChecked')!=_0x2fb87c['value']),_0xa37011['model']['change'](()=>{for(const _0x1c2f78 of _0x29560a)_0x4dce27['markBlockFormat'](_0x1c2f78,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2fb87c['value']}]});});}),_0x4dce27['descriptionFactory']['registerElementLabel']('listItem',_0x305480=>o(_0x38f28f,'ELEMENT_LIST_ITEM',_0x305480)),_0x4dce27['descriptionFactory']['registerDescriptionCallback'](_0x7e0a1a=>{if('formatBlock'!=_0x7e0a1a['type']&&'formatInline'!=_0x7e0a1a['type'])return;const {data:_0x3522ae}=_0x7e0a1a;if(_0x3522ae){if('numberedList'==_0x3522ae['commandName']||'bulletedList'==_0x3522ae['commandName']||'todoList'==_0x3522ae['commandName'])switch(_0x3522ae['commandName']['replace']('List','')){case'bulleted':return _0x144fc0(o(_0x38f28f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x144fc0(o(_0x38f28f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x144fc0(o(_0x38f28f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3522ae['commandName'])return{'type':'format','content':o(_0x38f28f,'*Indent:*\x20%0',o(_0x38f28f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3522ae['commandName'])return{'type':'format','content':o(_0x38f28f,'*Outdent:*\x20%0',o(_0x38f28f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3522ae['commandName'])return _0x3522ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38f28f,'*Check\x20item*')}:{'type':'format','content':o(_0x38f28f,'*Uncheck\x20item*')};}function _0x144fc0(_0x1ba75a){return{'type':'format','content':o(_0x38f28f,'*Change\x20to:*\x20%0',_0x1ba75a)};}});}}function Le(_0x177597){const _0x26c676=_0x177597['getAttribute']('listIndent');if(0x0==_0x26c676)return _0x177597;let _0xca416=_0x177597;for(;_0x177597['previousSibling']&&_0x177597['previousSibling']['is']('element','listItem');){const _0x4ea3e8=_0x177597['previousSibling']['getAttribute']('listIndent');if(_0x4ea3e8==_0x26c676)_0xca416=_0x177597['previousSibling'];else{if(_0x4ea3e8<_0x26c676)break;}_0x177597=_0x177597['previousSibling'];}return _0xca416;}function Ee(_0xe3eba3){const _0x28d08a=[];if(_0xe3eba3['is']('element','listItem')&&_0xe3eba3['getAttribute']('listIndent')>0x0){let _0x121c45=_0xe3eba3['nextSibling'];for(;_0x121c45&&'listItem'==_0x121c45['name']&&_0x121c45['getAttribute']('listIndent')==_0xe3eba3['getAttribute']('listIndent');)_0x28d08a['push'](_0x121c45),_0x121c45=_0x121c45['nextSibling'];}return _0x28d08a;}class Q extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1b5df5=this['editor']['config']['get']('list.properties'),_0x20878c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b5df5['styles']&&_0x20878c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1b5df5['reversed']&&_0x20878c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1b5df5['startIndex']&&_0x20878c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x20878c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2d9b7e,_0xac8511={}){const _0x51f21c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5958a8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x51f21c['markMultiRangeBlockFormat'](_0x5958a8,{'commandName':'listStyle','commandParams':[{'type':_0xac8511['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x301a54,_0x3f312d={}){const _0x5733f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c781a=this['_getSuggestionBlocks'](_0x4e61b7=>_0x4e61b7['is']('element','listItem')&&'numbered'===_0x4e61b7['getAttribute']('listType'));if(_0x2c781a['length']<0x1)return;const _0x1d66fd=_0x2c781a['map'](_0x2f224e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f224e,'before'),this['editor']['model']['createPositionAt'](_0x2f224e,0x0)));this['editor']['model']['change'](()=>{_0x5733f8['markMultiRangeBlockFormat'](_0x1d66fd,{'commandName':'listReversed','commandParams':[{'reversed':_0x3f312d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x34f51b,_0x43fa9f={}){const _0x1f2de8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46077a=this['_getSuggestionBlocks'](_0x5e6f03=>_0x5e6f03['is']('element','listItem')&&'numbered'===_0x5e6f03['getAttribute']('listType'));if(_0x46077a['length']<0x1)return;const _0x484acd=_0x46077a['map'](_0x40fd02=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40fd02,'before'),this['editor']['model']['createPositionAt'](_0x40fd02,0x0)));this['editor']['model']['change'](()=>{_0x1f2de8['markMultiRangeBlockFormat'](_0x484acd,{'commandName':'listStart','commandParams':[{'startIndex':_0x43fa9f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x370a2d){if('formatBlock'!=_0x370a2d['type']&&'formatInline'!=_0x370a2d['type'])return;const _0x22d409=this['editor']['locale'],{data:_0x248daa}=_0x370a2d;if(!_0x248daa)return;let _0x2426f9,_0x2f0c24;switch(_0x248daa['commandName']){case'listStyle':_0x2426f9='*Change\x20to:*\x20%0',_0x2f0c24={'type':'format','content':o(_0x22d409,_0x2426f9,o(_0x22d409,this['_getTranslationKeyForListStyle'](_0x248daa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2426f9=_0x248daa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2f0c24={'type':'format','content':o(_0x22d409,_0x2426f9)};break;case'listStart':_0x2426f9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f0c24={'type':'format','content':o(_0x22d409,_0x2426f9,_0x248daa['commandParams'][0x0]['startIndex'])};}return _0x2f0c24;}['_getSuggestionBlocksForListStyle'](){const _0x22b646=this['editor']['plugins']['get']('LegacyListUtils');let _0x38d1de=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x38d1de[0x0]?.['is']('element','listItem')&&_0x38d1de['unshift'](..._0x22b646['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x38d1de[_0x38d1de['length']-0x1]?.['is']('element','listItem')&&_0x38d1de['push'](..._0x22b646['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x38d1de=[...new Set(_0x38d1de)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x38d1de=_0x38d1de['filter'](_0x1857fb=>_0x1857fb['is']('element','listItem'))),_0x38d1de;}['_getSuggestionBlocks'](_0x7b3fe6){const _0x4829a3=this['editor']['plugins']['get']('LegacyListUtils');let _0x50a157=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7b3fe6)['map'](_0x3368af=>{const _0x538811=this['editor']['model']['createPositionAt'](_0x3368af,0x0);return[..._0x4829a3['getSiblingNodes'](_0x538811,'backward'),..._0x4829a3['getSiblingNodes'](_0x538811,'forward')];})['flat']();return _0x50a157=[...new Set(_0x50a157)],_0x50a157;}['_getTranslationKeyForListStyle'](_0x1da812){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1da812)||'default')['toUpperCase']()+'_LIST_'+_0x1da812['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x42796e{['afterInit'](){const _0x2609bd=this['editor'];if(!_0x2609bd['plugins']['has']('MediaEmbedEditing'))return;const _0x42893c=_0x2609bd['plugins']['get']('TrackChangesEditing'),_0x533542=_0x2609bd['locale'];_0x42893c['enableCommand']('mediaEmbed'),_0x42893c['descriptionFactory']['registerElementLabel']('media',_0x1125a5=>o(_0x533542,'ELEMENT_MEDIA',_0x1125a5)),_0x2609bd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x25c608,{writer:_0x2210b0,options:_0x5c1090})=>{if(_0x5c1090['showSuggestionHighlights'])return _0x2210b0['createEmptyElement']('div');},'converterPriority':'high'}),_0x2609bd['data']['downcastDispatcher']['on']('attribute:url:media',(_0xf76459,_0x24ab91,_0x3da906)=>{_0x3da906['options']['showSuggestionHighlights']&&_0xf76459['stop']();},{'priority':'high'});}}class pt extends _0x42796e{['afterInit'](){const _0x25ff01=this['editor'];_0x25ff01['plugins']['has']('MentionEditing')&&_0x25ff01['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x42796e{['afterInit'](){const _0x1d509d=this['editor'];if(!_0x1d509d['plugins']['has']('MergeFieldsEditing'))return;const _0x5e6058=_0x1d509d['plugins']['get']('TrackChangesEditing'),_0x32d57f=_0x1d509d['locale'];_0x5e6058['enableCommand']('insertMergeField'),_0x5e6058['enableCommand']('insertMergeFieldBlock'),_0x5e6058['enableCommand']('insertMergeFieldImage'),_0x5e6058['descriptionFactory']['registerElementLabel']('mergeField',_0x43ac8d=>o(_0x32d57f,'ELEMENT_MERGE_FIELD',_0x43ac8d)),_0x5e6058['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1fd9ac=>o(_0x32d57f,'ELEMENT_MERGE_FIELD',_0x1fd9ac)),_0x5e6058['descriptionFactory']['registerDescriptionCallback'](_0x51668a=>{if('insertion'!=_0x51668a['type']&&'deletion'!=_0x51668a['type'])return;const _0x66df08=_0x51668a['getContainedElement']();if(null==_0x66df08)return;const _0x262ec0=_0x1d509d['plugins']['get']('MergeFieldsEditing');let _0x52fe93;switch(_0x262ec0['getMergeFieldType'](_0x66df08)){case null:return;case'image':{const _0x1c5c1c=_0x262ec0['unwrapAffixes'](_0x66df08['getAttribute']('src'));_0x52fe93=_0x262ec0['getLabel'](_0x1c5c1c)||_0x1c5c1c;break;}default:{const _0x4f66a8=_0x66df08['getAttribute']('id');_0x52fe93=_0x262ec0['getLabel'](_0x4f66a8)||_0x4f66a8;break;}}return'insertion'==_0x51668a['type']?{'type':'insertion','content':o(_0x32d57f,'*Insert:*\x20%0','\x22'+_0x52fe93+'\x22\x20'+o(_0x32d57f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x32d57f,'*Remove:*\x20%0','\x22'+_0x52fe93+'\x22\x20'+o(_0x32d57f,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x42796e{['afterInit'](){const _0x5cb0b3=this['editor'],_0x3d5316=_0x5cb0b3['plugins']['get']('TrackChangesEditing');_0x5cb0b3['plugins']['has']('MultiLevelList')&&(_0x3d5316['enableDefaultAttributesIntegration']('multiLevelList'),_0x3d5316['registerBlockAttribute']('listMarkerStyle'),_0x3d5316['descriptionFactory']['registerDescriptionCallback'](_0x2e923f=>this['handleDescriptions'](_0x2e923f)));}['handleDescriptions'](_0x2192df){const _0xdd4ab4=this['editor']['locale'],{data:_0x2d0227}=_0x2192df,_0x4119cc={'type':'format','content':''};if(_0x2d0227&&'listMarkerStyle'==_0x2d0227['key']){if(!_0x2d0227['oldValue'])return{'type':'format','content':o(_0xdd4ab4,'*Set\x20format:*\x20%0',o(_0xdd4ab4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d0227['newValue']+')'};if(!_0x2d0227['newValue']){let _0x40d8f2=_0x2192df['head'];for(;_0x40d8f2;){if(_0x40d8f2['data']&&'listType'==_0x40d8f2['data']['key']&&_0x40d8f2['data']['newValue'])return _0x4119cc;_0x40d8f2=_0x40d8f2['next'];}return{'type':'format','content':o(_0xdd4ab4,'*Remove\x20format:*\x20%0',o(_0xdd4ab4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d0227['oldValue']+')'};}}}}class bt extends _0x42796e{['afterInit'](){const _0x33862a=this['editor'];if(!_0x33862a['plugins']['has']('PageBreakEditing'))return;_0x33862a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4de2ff=_0x33862a['plugins']['get']('TrackChangesEditing'),_0x3b492f=_0x33862a['locale'];_0x4de2ff['descriptionFactory']['registerElementLabel']('pageBreak',_0x4a26d0=>o(_0x3b492f,'ELEMENT_PAGE_BREAK',_0x4a26d0));}}class yt extends _0x42796e{['afterInit'](){const _0x19647b=this['editor'];if(!_0x19647b['plugins']['has']('Paragraph'))return;const _0x4b28c0=_0x19647b['locale'],_0x2508db=_0x19647b['plugins']['get']('TrackChangesEditing');_0x2508db['descriptionFactory']['registerElementLabel']('paragraph',_0x383a9c=>o(_0x4b28c0,'ELEMENT_PARAGRAPH',_0x383a9c)),_0x2508db['enableDefaultAttributesIntegration']('paragraph'),_0x2508db['enableCommand']('insertParagraph'),_0x19647b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x19647b),{'priority':'highest'}),_0x19647b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e42bf,_0x2922a5,_0x45bcf1)=>{_0x45bcf1['options']['showSuggestionHighlights']&&nr(_0x19647b,{'showActiveMarker':!0x1})(_0x2e42bf,_0x2922a5,_0x45bcf1);},{'priority':'highest'});const _0x5d0086=_0x2508db['descriptionFactory'];_0x5d0086['registerDescriptionCallback'](_0x1850a8=>{if('insertion'!==_0x1850a8['type'])return;const {start:_0x1f3ab9,end:_0x236612}=_0x1850a8['getFirstRange']();if(!_0x1f3ab9['isTouching'](_0x236612)||!_0x1f3ab9['nodeAfter'])return;const _0x5954aa=_0x19647b['model']['schema'],_0x6ab214=_0x1f3ab9['nodeAfter'];return _0x5954aa['isBlock'](_0x6ab214)&&!_0x5954aa['isLimit'](_0x6ab214)&&_0x5954aa['checkChild'](_0x6ab214,'$text')?{'type':'insertion','content':o(_0x4b28c0,'*Insert:*\x20%0',_0x5d0086['getItemLabel'](_0x6ab214,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27495f=this['editor'],_0x16b686=_0x27495f['locale'];_0x27495f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x436eb2=>{if('formatBlock'!=_0x436eb2['type'])return;const {data:_0x17b625}=_0x436eb2;return _0x17b625&&'paragraph'==_0x17b625['commandName']?{'type':'format','content':o(_0x16b686,'*Change\x20to:*\x20%0',o(_0x16b686,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x173c4c,{showActiveMarker:_0x568fb8=!0x0}={}){return(_0x155c50,_0x5ab124,_0x281808)=>{const _0x256592=_0x173c4c['plugins']['get']('TrackChangesEditing'),_0x305b44=_0x5ab124['markerRange']['start'],_0x11b6dc=_0x5ab124['markerRange']['end'],_0x3d6e4d=_0x173c4c['model']['schema'];if(!_0x305b44['isTouching'](_0x11b6dc)||!_0x305b44['nodeAfter'])return;const _0x4b5b53=_0x305b44['nodeAfter'];if(_0x3d6e4d['isBlock'](_0x4b5b53)&&!_0x3d6e4d['isLimit'](_0x4b5b53)&&_0x3d6e4d['checkChild'](_0x4b5b53,'$text')){if(!_0x281808['consumable']['consume'](_0x5ab124['markerRange'],_0x155c50['name']))return;const {authorId:_0x3b0499}=_0x256592['_splitMarkerName'](_0x5ab124['markerName']),_0x5a9d4f=_0x281808['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3b0499}),_0x29794b=_0x281808['mapper']['toViewPosition'](_0x11b6dc);_0x568fb8&&_0x256592['activeMarkers']['includes'](_0x5ab124['markerName'])&&_0x281808['writer']['addClass']('ck-suggestion-marker--active',_0x5a9d4f),_0x281808['writer']['insert'](_0x29794b,_0x5a9d4f),_0x281808['mapper']['bindElementToMarker'](_0x5a9d4f,_0x5ab124['markerName']);}};}class jt extends _0x42796e{['afterInit'](){const _0x35b364=this['editor'];_0x35b364['commands']['get']('replaceSource')&&_0x35b364['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x42796e{['afterInit'](){const _0x176a10=this['editor'];if(!_0x176a10['plugins']['has']('RemoveFormatEditing'))return;_0x176a10['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a992c=this['editor'];_0x5a992c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29940a=>{if('formatBlock'!=_0x29940a['type']&&'formatInline'!=_0x29940a['type'])return;const {data:_0x13b16c}=_0x29940a;return _0x13b16c&&'removeFormat'==_0x13b16c['commandName']?{'type':'format','content':o(_0x5a992c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x42796e{['afterInit'](){const _0x23eb3a=this['editor'];if(!_0x23eb3a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1aa520=_0x23eb3a['plugins']['get']('TrackChangesEditing');_0x1aa520['enableCommand']('goToPreviousRestrictedEditingException'),_0x1aa520['enableCommand']('goToNextRestrictedEditingException');const _0x17ace8=_0x23eb3a['plugins']['get']('RestrictedEditingModeEditing');_0x17ace8['enableCommand']('trackChanges'),_0x17ace8['enableCommand']('acceptSuggestion'),_0x17ace8['enableCommand']('discardSuggestion'),_0x17ace8['enableCommand']('acceptAllSuggestions'),_0x17ace8['enableCommand']('discardAllSuggestions'),_0x17ace8['enableCommand']('acceptSelectedSuggestions'),_0x17ace8['enableCommand']('discardSelectedSuggestions');}}class It extends _0x42796e{static get['requires'](){return[_0x50f491];}['init'](){const _0x215b87=this['editor'],_0x132a7f=_0x215b87['plugins']['get']('TrackChangesEditing');_0x132a7f['enableCommand']('shiftEnter'),_0x215b87['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x215b87),{'priority':'high'}),_0x215b87['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x215b87),{'priority':'high'}),_0x215b87['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13d677,_0x3c2d44,_0x737180)=>{_0x737180['options']['showSuggestionHighlights']&&je(_0x215b87,{'showActiveMarker':!0x1})(_0x13d677,_0x3c2d44,_0x737180);}),_0x132a7f['descriptionFactory']['registerElementLabel']('softBreak',_0x3ca9e6=>o(_0x215b87['locale'],'ELEMENT_LINE_BREAK',_0x3ca9e6));}}function je(_0x17cde1,{showActiveMarker:_0x5136a6=!0x0}={}){return(_0xe43514,_0x250986,_0x2d0495)=>{const _0x37230b=_0x17cde1['plugins']['get']('TrackChangesEditing');if(!_0x2d0495['consumable']['test'](_0x250986['markerRange'],_0xe43514['name']))return;const _0xd45a85=_0x17cde1['model'];for(const _0x1363a7 of _0x250986['markerRange']['getItems']()){if(!_0x1363a7['is']('element','softBreak'))continue;const _0x588efa='deletion'==_0x250986['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x38ff95}=_0x37230b['_splitMarkerName'](_0x250986['markerName']),_0x5dc3c7=_0x2d0495['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x588efa,'data-author-id':_0x38ff95}),_0x4b4266=_0x2d0495['mapper']['toViewPosition'](_0xd45a85['createPositionBefore'](_0x1363a7));_0x5136a6&&_0x37230b['activeMarkers']['includes'](_0x250986['markerName'])&&_0x2d0495['writer']['addClass']('ck-suggestion-marker--active',_0x5dc3c7),_0x2d0495['writer']['insert'](_0x4b4266,_0x5dc3c7),_0x2d0495['mapper']['bindElementToMarker'](_0x5dc3c7,_0x250986['markerName']);}};}class vt extends _0x42796e{['afterInit'](){const _0x215934=this['editor'],_0x5ad4e5=_0x215934['model'],_0x2dd256=_0x215934['locale'];if(!_0x215934['plugins']['has']('StandardEditingModeEditing'))return;const _0x133814=_0x215934['plugins']['get']('TrackChangesEditing'),_0x632e85='restrictedEditingException',_0x3e9e32=_0x215934['commands']['get'](_0x632e85);_0x133814['enableCommand'](_0x632e85,(_0x39d140,_0x11acb1={})=>{const _0x4d14d4=_0x5ad4e5['document']['selection'];if(_0x4d14d4['isCollapsed'])return void _0x39d140(_0x11acb1);const _0x490cad=void 0x0!==_0x11acb1['forceValue']?_0x11acb1['forceValue']:!_0x3e9e32['value'];_0x5ad4e5['change'](()=>{const _0x3ac529=Array['from'](_0x4d14d4['getRanges']());for(const _0x3f40c4 of _0x3ac529){const _0x2eb60f=_0x490cad?[_0x3f40c4]:io(_0x632e85,_0x3f40c4,_0x5ad4e5);for(const _0x1f9a25 of _0x2eb60f)_0x133814['markInlineFormat'](_0x1f9a25,{'commandName':_0x632e85,'commandParams':[{'forceValue':_0x490cad}]});}});}),_0x133814['descriptionFactory']['registerDescriptionCallback'](_0x186ce2=>{if('formatBlock'!=_0x186ce2['type']&&'formatInline'!=_0x186ce2['type'])return;const {data:_0x1b84cc}=_0x186ce2;return _0x1b84cc&&_0x1b84cc['commandName']==_0x632e85?_0x1b84cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2dd256,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2dd256,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x42796e{['afterInit'](){const _0x3b7bc2=this['editor'];if(!_0x3b7bc2['plugins']['has']('Style')||!_0x3b7bc2['plugins']['has']('DataSchema'))return;const _0x468afb=_0x3b7bc2['plugins']['get']('TrackChangesEditing'),_0x2b1169=_0x3b7bc2['locale'],_0x2dd9ac=_0x3b7bc2['config']['get']('style')||{},_0x9129cf=_0x3b7bc2['plugins']['get']('GeneralHtmlSupport'),_0x203aa8=_0x3b7bc2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b7bc2['plugins']['get']('DataSchema'),_0x2dd9ac['definitions']);_0x468afb['enableDefaultAttributesIntegration']('style');const _0x3d693c=new Set();for(const _0x5c7eb3 of _0x203aa8['block']){const _0x4d8f43=_0x9129cf['getGhsAttributeNameForElement'](_0x5c7eb3['element']);_0x3d693c['add'](_0x4d8f43);}const _0x4cac6f=new Set();for(const _0x33b2d1 of _0x203aa8['inline']){const _0x48a5a2=_0x9129cf['getGhsAttributeNameForElement'](_0x33b2d1['element']);_0x4cac6f['add'](_0x48a5a2);for(const _0x30615a of _0x33b2d1['ghsAttributes'])_0x4cac6f['add'](_0x30615a);}for(const _0x3be693 of _0x3d693c)_0x468afb['registerBlockAttribute'](_0x3be693),_0x468afb['descriptionFactory']['registerAttributeLabel'](_0x3be693,o(_0x2b1169,'FORMAT_STYLE'));for(const _0x483ff9 of _0x4cac6f)_0x468afb['registerInlineAttribute'](_0x483ff9),_0x468afb['descriptionFactory']['registerAttributeLabel'](_0x483ff9,o(_0x2b1169,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a7343=this['editor'],_0x3a6e7b=_0x1a7343['locale'];_0x1a7343['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b638b=>{if('formatBlock'!=_0x3b638b['type']&&'formatInline'!=_0x3b638b['type'])return;const {data:_0x2349c8}=_0x3b638b;return _0x2349c8&&'style'===_0x2349c8['commandName']?_0x2349c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a6e7b,'*Set\x20format:*\x20%0',_0x2349c8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3a6e7b,'*Remove\x20format:*\x20%0',_0x2349c8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x42796e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3ecf06){super(_0x3ecf06),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1afe53=this['editor'],_0x266323=_0x1afe53['model']['document']['selection'];if(!_0x1afe53['plugins']['has']('TableEditing'))return;const _0x53f731=_0x1afe53['locale'],_0x31e5c5=_0x1afe53['plugins']['get']('TrackChangesEditing'),_0x1ba537=_0x1afe53['plugins']['get']('TableUtils');_0x31e5c5['descriptionFactory']['registerElementLabel']('table',_0x5951ca=>o(_0x53f731,'ELEMENT_TABLE',_0x5951ca)),this['_setupColumnsRowsFixing'](),_0x31e5c5['enableCommand']('insertTable'),_0x31e5c5['enableCommand']('selectTableRow'),_0x31e5c5['enableCommand']('selectTableColumn');for(const _0x4351aa of['insertTableRowAbove','insertTableRowBelow']){const _0x53528f=_0x1afe53['commands']['get'](_0x4351aa);_0x31e5c5['enableCommand'](_0x4351aa,_0x587835=>{_0x1afe53['model']['change'](_0x1c1b72=>{_0x587835();const _0x71ab08='above'===_0x53528f['order'],_0x520333=_0x1ba537['getSelectionAffectedTableCells'](_0x266323),_0x43af67=_0x1ba537['getRowIndexes'](_0x520333),_0x368511=_0x71ab08?_0x43af67['first']-0x1:_0x43af67['last']+0x1,_0x4a044c=_0x520333[0x0]['findAncestor']('table'),_0x12c12c=_0x1ba537['createTableWalker'](_0x4a044c,{'startRow':_0x368511,'endRow':_0x368511}),_0xb8c2c8=Array['from'](_0x12c12c)['map'](_0xaf7ac6=>_0x1c1b72['createRangeOn'](_0xaf7ac6['cell']));_0x31e5c5['markMultiRangeInsertion'](_0xb8c2c8,'tableRow');});});}for(const _0x4bf3fd of['insertTableColumnLeft','insertTableColumnRight']){const _0x49a219=_0x1afe53['commands']['get'](_0x4bf3fd);_0x31e5c5['enableCommand'](_0x4bf3fd,_0x22fe73=>{_0x1afe53['model']['change'](_0x30249c=>{_0x22fe73();const _0x29c203='left'===_0x49a219['order'],_0x3b3118=_0x1ba537['getSelectionAffectedTableCells'](_0x266323),_0x3611b0=_0x1ba537['getColumnIndexes'](_0x3b3118),_0x1bd1e7=_0x29c203?_0x3611b0['first']-0x1:_0x3611b0['last']+0x1,_0x2a2dd4=_0x3b3118[0x0]['findAncestor']('table'),_0x52ced4=_0x1ba537['createTableWalker'](_0x2a2dd4,{'startRow':0x0,'column':_0x1bd1e7,'includeAllSlots':!0x1}),_0x3a8fc4=Array['from'](_0x52ced4)['map'](_0x2cd3e7=>_0x30249c['createRangeOn'](_0x2cd3e7['cell']));_0x31e5c5['markMultiRangeInsertion'](_0x3a8fc4,'tableColumn');});});}for(const _0x291eae of['removeTableRow','removeTableColumn']){const _0x110656=_0x291eae['substr'](0xb),_0x2f1a94=_0x110656['toLowerCase'](),_0x41e406=_0x2f1a94['substr'](0x0,0x3)+'span',_0x5ccf4f='table'+_0x110656,_0x59372b='min'+_0x110656,_0x4d0976='max'+_0x110656;_0x31e5c5['enableCommand'](_0x291eae,()=>{_0x1afe53['model']['change'](_0x2ab7c9=>{const _0x9a17d5=_0x1ba537['getSelectionAffectedTableCells'](_0x266323),_0x26120f=_0x9a17d5[0x0]['findAncestor']('table');let _0x330ab8;if('removeTableRow'==_0x291eae){const _0x1a5f2c=_0x1ba537['getRowIndexes'](_0x9a17d5);_0x330ab8={'startRow':_0x1a5f2c['first'],'endRow':_0x1a5f2c['last'],'includeAllSlots':!0x0};}else{const _0x41d641=_0x1ba537['getColumnIndexes'](_0x9a17d5);_0x330ab8={'startColumn':_0x41d641['first'],'endColumn':_0x41d641['last'],'includeAllSlots':!0x0};}const _0x37e27e=_0x1ba537['createTableWalker'](_0x26120f,_0x330ab8),_0x2bb46e=Array['from'](_0x37e27e)['map'](({cell:_0x40294e})=>_0x40294e),_0x606749=Ne(_0x2bb46e['filter'](_0x3e11cb=>_0x3e11cb['hasAttribute'](_0x41e406))),_0x46255d=Ne(_0x2bb46e['filter'](_0x219203=>!_0x219203['hasAttribute'](_0x41e406)))['map'](_0x1921e8=>_0x2ab7c9['createRangeOn'](_0x1921e8)),_0x4f6424=_0x31e5c5['markMultiRangeDeletion'](_0x46255d,_0x5ccf4f);if(_0x4f6424&&('tableRow'==_0x4f6424['subType']||'tableColumn'==_0x4f6424['subType'])){const _0x8189fb=this['_getSuggestionCoords'](_0x4f6424);for(const _0x1f03db of _0x606749){const _0x1ac165=_0x2ab7c9['createRangeOn'](_0x1f03db),_0x1d006e=_0x1ba537['getCellLocation'](_0x1f03db),_0x19a920=_0x1f03db['getAttribute'](_0x41e406)-0x1,_0x571157=_0x8189fb[_0x59372b],_0x5280a9=_0x8189fb[_0x4d0976];_0x571157<=_0x1d006e[_0x2f1a94]&&_0x1d006e[_0x2f1a94]+_0x19a920<=_0x5280a9&&_0x4f6424['addRange'](_0x1ac165);}}});});}function _0x9c7545(_0x41436d){const _0x40c489=Array['from'](_0x266323['getRanges']())['map'](_0x24c9da=>_0x2eb8ca['fromRange'](_0x24c9da));_0x1afe53['model']['change'](_0x37b145=>{const _0x328849=_0x37b145['batch'];_0x41436d=_0x41436d['filter'](_0x3d3748=>'$graveyard'!=_0x3d3748['root']['rootName']),_0x37b145['setSelection'](_0x41436d),_0x1afe53['commands']['get']('removeTableRow')['refresh'](),_0x1afe53['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1afe53['model']['enqueueChange'](()=>{_0x1afe53['model']['enqueueChange'](_0x328849,_0x5257f6=>{const _0x96778=_0x40c489['filter'](_0x5bb2cd=>'$graveyard'!=_0x5bb2cd['root']['rootName']);_0x96778['length']>0x0&&_0x5257f6['setSelection'](_0x96778);for(const _0x6c725e of _0x40c489)_0x6c725e['detach']();});});});}function _0x13d680(_0x4e1a90){_0x1afe53['model']['change'](_0x7a295=>{const _0x58c0a5=Array['from'](_0x266323['getRanges']())['map'](_0x40a4c8=>_0x2eb8ca['fromRange'](_0x40a4c8)),_0x24cbfb=[];for(const _0x5c944b of _0x4e1a90)for(const _0x1fde18 of _0x5c944b['getItems']({'shallow':!0x0}))_0x24cbfb['push'](_0x1fde18);for(const _0x2b4329 of _0x24cbfb)'$graveyard'!=_0x2b4329['root']['rootName']&&(_0x7a295['setSelection'](_0x7a295['createPositionAt'](_0x2b4329,0x0)),_0x1afe53['commands']['get']('removeTableColumn')['refresh'](),_0x1afe53['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x484eba=_0x58c0a5['filter'](_0x3ae4ee=>'$graveyard'!=_0x3ae4ee['root']['rootName']);_0x484eba['length']>0x0&&_0x7a295['setSelection'](_0x484eba);for(const _0x33da56 of _0x58c0a5)_0x33da56['detach']();});}function _0x4f51d5(_0x4e79c8,_0x1e0e66){return _0x1e0e66['every'](_0x1ab837=>_0x4e79c8['some'](_0x37b46b=>_0x37b46b['end']['isEqual'](_0x1ab837['start'])||_0x1ab837['end']['isEqual'](_0x37b46b['start'])));}function _0x32377c(_0x454ca5,_0x4bd38c){return!_0x454ca5['some'](_0x58291d=>_0x4bd38c['some'](_0x359b27=>_0x58291d['isIntersecting'](_0x359b27)))&&_0x454ca5['some'](_0x522876=>_0x4bd38c['some'](_0xbfc547=>_0x522876['end']['isTouching'](_0xbfc547['start'])));}_0x1afe53['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ba84a,_0x16e191,_0x189cb0)=>{if(!_0x189cb0['options']['showSuggestionHighlights'])return;const _0xbca38d=_0x16e191['item'];if(!_0xbca38d)return;const _0x6233ab=_0x189cb0['mapper']['toViewElement'](_0xbca38d);function _0x9ccf7b(_0x36b4e2){return Array['isArray'](_0x36b4e2)?_0x36b4e2:[_0x36b4e2];}_0x6233ab&&'tableCell'===_0xbca38d['name']&&_0x516f0c(_0x6233ab,_0x189cb0['writer'],(_0x33cb5b,_0xa9f3ce,_0x197018)=>_0x197018['addClass'](_0x9ccf7b(_0xa9f3ce['classes']),_0x33cb5b),(_0x552242,_0x5cc044,_0x20c5f2)=>_0x20c5f2['removeClass'](_0x9ccf7b(_0x5cc044['classes']),_0x552242));},{'priority':'highest'}),_0x31e5c5['descriptionFactory']['registerDescriptionCallback'](_0x3c60ce=>{if('insertion'!=_0x3c60ce['type']&&'deletion'!=_0x3c60ce['type'])return;const _0x22233f=_0x3c60ce['getContainedElement']();if(null!=_0x22233f&&_0x22233f['is']('element','table')){if('insertion'==_0x3c60ce['type']){const _0x53b657=_0x3c60ce['getItems']()['filter'](_0x51bba9=>_0x51bba9['is']('$textProxy'))['map'](_0x308a32=>_0x308a32['data']);if(_0x53b657['length'])return{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x53b657['join']('\x20')+'\x22'))};}if('deletion'==_0x3c60ce['type']){const _0x5a8746=_0x3c60ce['getItems']()['filter'](_0x3ff8f0=>_0x3ff8f0['is']('$textProxy'))['map'](_0x2db01e=>_0x2db01e['data']);if(_0x5a8746['length'])return{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a8746['join']('\x20')+'\x22'))};}}}),_0x31e5c5['descriptionFactory']['registerDescriptionCallback'](_0x4bc9f5=>{if('tableRow'==_0x4bc9f5['subType']){const _0x2d5c8e=_0x4bc9f5['getItems']()['filter'](_0x1121b5=>_0x1121b5['is']('$textProxy'))['map'](_0x50a3ee=>_0x50a3ee['data']),_0x54fad9=this['_getSuggestionCoords'](_0x4bc9f5),_0x3590ec=_0x54fad9['maxRow']-_0x54fad9['minRow']+0x1;if('insertion'==_0x4bc9f5['type'])return _0x2d5c8e['length']?{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3590ec,'\x22'+_0x2d5c8e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_ROW',_0x3590ec))};if('deletion'==_0x4bc9f5['type'])return _0x2d5c8e['length']?{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3590ec,'\x22'+_0x2d5c8e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_ROW',_0x3590ec))};}if('tableColumn'==_0x4bc9f5['subType']){const _0x1c335e=_0x4bc9f5['getItems']()['filter'](_0x2be295=>_0x2be295['is']('$textProxy'))['map'](_0x482758=>_0x482758['data']),_0x57059b=this['_getSuggestionCoords'](_0x4bc9f5),_0x5e3ec3=_0x57059b['maxColumn']-_0x57059b['minColumn']+0x1;if('insertion'==_0x4bc9f5['type'])return _0x1c335e['length']?{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e3ec3,'\x22'+_0x1c335e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_COLUMN',_0x5e3ec3))};if('deletion'==_0x4bc9f5['type'])return _0x1c335e['length']?{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e3ec3,'\x22'+_0x1c335e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_COLUMN',_0x5e3ec3))};}}),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9c7545),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9c7545),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13d680),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13d680),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f51d5),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f51d5),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x32377c),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x32377c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x42efa8=this['editor'],_0x57f0d4=_0x42efa8['model']['document']['selection'];return(_0x3fff21,_0x232fe6)=>{_0x42efa8['model']['change'](_0x46afb0=>{const {commandName:_0x571dbf,commandParams:_0x36f82a}=_0x232fe6;let _0x504746=_0x3fff21[0x0]['end']['nodeBefore'];_0x36f82a&&_0x36f82a[0x0]&&!0x1===_0x36f82a[0x0]['forceValue']&&(_0x504746=_0x3fff21[0x0]['start']['nodeAfter']);const _0x138d9a=_0x46afb0['createRangeIn'](_0x504746);if('$graveyard'==_0x138d9a['root']['rootName'])return;const _0xf16e60=Array['from'](_0x57f0d4['getRanges']())['map'](_0x3c96d5=>_0x2eb8ca['fromRange'](_0x3c96d5));_0x46afb0['setSelection'](_0x138d9a),_0x42efa8['commands']['get'](_0x571dbf)['refresh'](),_0x36f82a['push']({'forceDefaultExecution':!0x0}),_0x42efa8['execute'](_0x571dbf,..._0x36f82a);const _0x58ec90=_0xf16e60['filter'](_0x525b51=>'$graveyard'!=_0x525b51['root']['rootName']);_0x58ec90['length']>0x0&&_0x46afb0['setSelection'](_0x58ec90);for(const _0x4c2e0d of _0xf16e60)_0x4c2e0d['detach']();});};}['_getCoordsForCells'](_0x281ee7){const _0x4dc66c=this['editor']['plugins']['get']('TableUtils');let _0x3df235=Number['MAX_SAFE_INTEGER'],_0x1fadea=Number['MIN_SAFE_INTEGER'],_0xe80050=Number['MAX_SAFE_INTEGER'],_0x2ea78c=Number['MIN_SAFE_INTEGER'];for(const _0x2b2bd1 of _0x281ee7){if('$graveyard'==_0x2b2bd1['root']['rootName'])continue;const {row:_0x2f3181,column:_0x18e4e6}=_0x4dc66c['getCellLocation'](_0x2b2bd1),_0x26469d=_0x2b2bd1['hasAttribute']('rowspan')?_0x2b2bd1['getAttribute']('rowspan')-0x1:0x0,_0x3c6e0e=_0x2b2bd1['hasAttribute']('colspan')?_0x2b2bd1['getAttribute']('colspan')-0x1:0x0;_0x3df235=_0x2f3181<_0x3df235?_0x2f3181:_0x3df235,_0x1fadea=_0x2f3181+_0x26469d>_0x1fadea?_0x2f3181+_0x26469d:_0x1fadea,_0xe80050=_0x18e4e6<_0xe80050?_0x18e4e6:_0xe80050,_0x2ea78c=_0x18e4e6+_0x3c6e0e>_0x2ea78c?_0x18e4e6+_0x3c6e0e:_0x2ea78c;}return{'minRow':_0x3df235,'maxRow':_0x1fadea,'minColumn':_0xe80050,'maxColumn':_0x2ea78c};}['_setupColumnsRowsFixing'](){const _0x382d03=this['editor'],_0x23694e=_0x382d03['plugins']['get']('TrackChangesEditing'),_0x18eb6f=_0x382d03['plugins']['get']('TableUtils');_0x382d03['model']['document']['on']('change:data',()=>{const _0x165099=Array['from'](_0x382d03['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc9bc7b,data:_0x28c871}of _0x165099){const {group:_0x3c48bc,id:_0x5bf191,subType:_0x57750b}=_0x23694e['_splitMarkerName'](_0xc9bc7b);if('suggestion'!=_0x3c48bc)continue;if(null!=_0x28c871['oldRange'])continue;const _0x2bfa70=_0x23694e['getSuggestion'](_0x5bf191);this['_tablePostFixingSubtypes']['includes'](_0x57750b)&&this['_tableSuggestions']['add'](_0x2bfa70);}},{'priority':'low'});const _0x2f562b=(_0x209e8b,_0x4b9161)=>{let _0x1aa3ec=!0x1;const _0x4e0d7e=_0x4b9161['createRangeOn'](_0x209e8b),_0x58682b=_0x209e8b['findAncestor']('table'),_0x41ed73=_0x18eb6f['getCellLocation'](_0x209e8b);for(const _0x519caf of this['_tableSuggestions']){const _0x4c4072=_0x519caf['subType'],_0x125742=_0x4c4072['startsWith']('tablePaste'),_0x114067=_0x4c4072['substr'](_0x125742?0xa:0x5),_0xdee893=_0x114067['toLowerCase'](),_0x5934ed=_0xdee893['substr'](0x0,0x3)+'span',_0x247fa4='min'+_0x114067,_0x2dc7b3='max'+_0x114067;if(!_0x519caf['isInContent'])continue;if(_0x58682b!=_0x519caf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x519caf['isIntersectingWithRange'](_0x4e0d7e))continue;const _0x4ddd5b=_0x209e8b['hasAttribute'](_0x5934ed)?_0x209e8b['getAttribute'](_0x5934ed)-0x1:0x0,_0x519b81=this['_getSuggestionCoords'](_0x519caf),_0x6d6b18=_0x519b81[_0x247fa4],_0x4a7f79=_0x519b81[_0x2dc7b3];_0x6d6b18<=_0x41ed73[_0xdee893]&&_0x41ed73[_0xdee893]+_0x4ddd5b<=_0x4a7f79&&(_0x519caf['addRange'](_0x4e0d7e),_0x1aa3ec=!0x0);}return _0x1aa3ec;};_0x382d03['model']['document']['registerPostFixer'](_0x5d5435=>{let _0x6690c7=!0x1;for(const _0x42b7c8 of _0x382d03['model']['document']['differ']['getChanges']())if('insert'==_0x42b7c8['type']){if('tableRow'==_0x42b7c8['name']){for(const _0x441c91 of _0x42b7c8['position']['nodeAfter']['getChildren']())_0x6690c7=_0x6690c7||_0x2f562b(_0x441c91,_0x5d5435);}else'tableCell'==_0x42b7c8['name']&&(_0x6690c7=_0x6690c7||_0x2f562b(_0x42b7c8['position']['nodeAfter'],_0x5d5435));}return _0x6690c7;});}['_getSuggestionCoords'](_0x427a8f){return this['_getCoordsForCells'](_0x427a8f['getRanges']()['map'](_0x1ffee4=>_0x1ffee4['start']['nodeAfter']));}}function Ne(_0x222a36){return Array['from'](new Set(_0x222a36)['values']());}class Nt extends _0x42796e{static get['requires'](){return[Ct];}['afterInit'](){const _0x22ffcc=this['editor'],_0x4ef73a=_0x22ffcc['model']['document']['selection'],_0x41ab9f=_0x22ffcc['locale'];if(!_0x22ffcc['plugins']['has']('TableEditing'))return;const _0x1d8f45=_0x22ffcc['plugins']['get']('TrackChangesEditing'),_0x277c5=_0x22ffcc['plugins']['get']('TableUtils'),_0x428422=_0x22ffcc['plugins']['get'](Ct);_0x428422['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1d8f45['enableCommand']('mergeTableCells',()=>{const _0x5015ae=_0x277c5['getSelectionAffectedTableCells'](_0x22ffcc['model']['document']['selection']);_0x22ffcc['model']['change'](()=>{_0x1d8f45['markMultiRangeBlockFormat'](_0x5015ae,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x22ffcc['commands']['get']('mergeTableCells')['on']('execute',(_0x425da0,_0x36c05f)=>{_0x22ffcc['commands']['get']('trackChanges')['value']&&(_0x36c05f['length']>0x0&&_0x36c05f[_0x36c05f['length']-0x1]&&_0x36c05f[_0x36c05f['length']-0x1]['forceDefaultExecution']||_0x1d8f45['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x425da0['stop']());},{'priority':'highest'});for(const _0x34273a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x40fa96=_0x22ffcc['commands']['get'](_0x34273a);_0x1d8f45['enableCommand'](_0x34273a,()=>{const _0xf731bc=_0x22ffcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bc04c=>_0x5bc04c['is']('element','tableCell')),_0x369b52=_0x40fa96['value'];_0x22ffcc['model']['change'](()=>{_0x1d8f45['markMultiRangeBlockFormat']([_0xf731bc,_0x369b52],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d3ddf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x261df9=_0x22ffcc['commands']['get'](_0x4d3ddf);_0x1d8f45['enableCommand'](_0x4d3ddf,()=>{const _0x453fd0=_0x277c5['getSelectionAffectedTableCells'](_0x22ffcc['model']['document']['selection'])[0x0],_0x2fdab0=_0x453fd0['findAncestor']('table'),{column:_0x135e94,row:_0x334bae}=_0x277c5['getCellLocation'](_0x453fd0);let _0x4d748e=[];if('horizontally'==_0x261df9['direction']){const _0x392bb4=_0x277c5['createTableWalker'](_0x2fdab0,{'startRow':_0x334bae,'endRow':_0x334bae,'includeAllSlots':!0x0});_0x4d748e=Array['from'](_0x392bb4)['map'](_0x9d9fb8=>_0x9d9fb8['cell']);}else{const _0x1fe915=_0x277c5['createTableWalker'](_0x2fdab0,{'column':_0x135e94,'includeAllSlots':!0x0});_0x4d748e=Array['from'](_0x1fe915)['map'](_0x2044d5=>_0x2044d5['cell']);}_0x22ffcc['model']['change'](_0x2eb1e7=>{_0x1d8f45['markBlockFormat'](_0x2eb1e7['createRangeOn'](_0x453fd0),{'commandName':_0x4d3ddf,'commandParams':[]},_0x4d748e,_0x4d3ddf);});});}_0x1d8f45['descriptionFactory']['registerDescriptionCallback'](_0x55a41c=>{if('formatBlock'!=_0x55a41c['type']&&'formatInline'!=_0x55a41c['type'])return;const {data:_0xfb6962}=_0x55a41c;return _0xfb6962&&'mergeTableCells'==_0xfb6962['commandName']?{'type':'format','content':o(_0x41ab9f,'*Merge\x20cells*')}:void 0x0;}),_0x1d8f45['descriptionFactory']['registerDescriptionCallback'](_0x11dad5=>{if('formatBlock'!=_0x11dad5['type']&&'formatInline'!=_0x11dad5['type'])return;const {data:_0x440967}=_0x11dad5;return _0x440967?'splitTableCellVertically'==_0x440967['commandName']?{'type':'format','content':o(_0x41ab9f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x440967['commandName']?{'type':'format','content':o(_0x41ab9f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x568076=_0x428422['_acceptFormatSuggestionCallbackFactory']();for(const _0x25234f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1d8f45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25234f,'accept',_0x568076);for(const _0x2df0dd of['splitTableCellVertically','splitTableCellHorizontally'])_0x1d8f45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2df0dd,'accept',_0x568076);_0x1d8f45['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2323d5=>{_0x22ffcc['model']['change'](_0x4298d4=>{const _0x1b50fe=Array['from'](_0x4ef73a['getRanges']())['map'](_0x4fd3b7=>_0x2eb8ca['fromRange'](_0x4fd3b7));_0x4298d4['setSelection'](_0x2323d5),_0x22ffcc['commands']['get']('mergeTableCells')['refresh'](),_0x22ffcc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c98a7=_0x1b50fe['filter'](_0x4cf849=>'$graveyard'!=_0x4cf849['root']['rootName']);_0x2c98a7['length']>0x0&&_0x4298d4['setSelection'](_0x2c98a7);for(const _0xf0dbb5 of _0x1b50fe)_0xf0dbb5['detach']();});});for(const _0x3de9fc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x144d44=_0x22ffcc['commands']['get'](_0x3de9fc);_0x144d44['on']('set:isEnabled',(_0x48d42e,_0x1169f4,_0x48bb21)=>{if(_0x48bb21){const _0x2b9da7=_0x22ffcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfffb6=>_0xfffb6['is']('element','tableCell'));this['_areMergableCells'](_0x144d44['value'],_0x2b9da7)||(_0x48d42e['return']=!0x1,_0x48d42e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x46a70f=this['editor']['commands']['get']('mergeTableCells'),_0x4fd161=this['editor']['plugins']['get']('TableUtils');if(!_0x46a70f['isEnabled'])return!0x1;const _0x5c633f=_0x4fd161['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2e2079 of _0x5c633f)for(const _0x1192d7 of _0x5c633f)if(_0x2e2079!=_0x1192d7&&!this['_areMergableCells'](_0x2e2079,_0x1192d7))return!0x1;return!0x0;}['_areMergableCells'](_0x12e36c,_0x883538){const _0x4bbe88=this['editor']['plugins']['get']('TrackChangesEditing'),_0x560326=this['editor']['model']['createRangeOn'](_0x12e36c),_0x18dcd6=this['editor']['model']['createRangeOn'](_0x883538),_0x2fb6c5=new Set(),_0x9f5f2b=new Set();for(const _0x59e34f of _0x4bbe88['getSuggestions']())if(('insertion'==_0x59e34f['type']||'deletion'==_0x59e34f['type']||'mergeTableCells'==_0x59e34f['subType'])&&_0x59e34f['isInContent']){for(const _0x1cca6c of _0x59e34f['getRanges']())_0x1cca6c['containsRange'](_0x560326,!0x0)&&_0x2fb6c5['add'](_0x59e34f['type']+':'+_0x59e34f['author']['id']),_0x1cca6c['containsRange'](_0x18dcd6,!0x0)&&_0x9f5f2b['add'](_0x59e34f['type']+':'+_0x59e34f['author']['id']);}if(_0x2fb6c5['size']!=_0x9f5f2b['size'])return!0x1;for(const _0x4f324d of _0x2fb6c5)if(!_0x9f5f2b['has'](_0x4f324d))return!0x1;return!0x0;}}class Dt extends _0x42796e{static get['requires'](){return[Ct];}['afterInit'](){const _0xa541fc=this['editor'];if(!_0xa541fc['plugins']['has']('TableEditing'))return;const _0xf0b45d=_0xa541fc['locale'],_0x137f8c=_0xa541fc['plugins']['get']('TrackChangesEditing');_0x137f8c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x137f8c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x137f8c['registerBlockAttribute']('headingRows'),_0x137f8c['registerBlockAttribute']('headingColumns'),_0x137f8c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xf0b45d,'FORMAT_HEADER_ROW')),_0x137f8c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xf0b45d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x297c5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1eaaad=this['editor']['plugins']['get']('TableUtils'),_0x36b2cb=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x136da7({showActiveMarker:_0x5936ef=!0x0,setDataAttribute:_0x5d9147=!0x0}={}){return(_0x515562,_0x3cc79d,_0x289791)=>{const {type:_0xb0e4b3,id:_0x2cfdd5}=_0x297c5d['_splitMarkerName'](_0x3cc79d['markerName']),_0x57265d=_0x297c5d['getSuggestion'](_0x2cfdd5),_0x2170a3=_0x57265d['data'];if('formatBlock'!=_0x57265d['type']||!_0x2170a3||'setTableColumnHeader'!=_0x2170a3['commandName'])return;if(_0x3cc79d['item'])return void _0x515562['stop']();if(!_0x289791['consumable']['consume'](_0x3cc79d['markerRange'],_0x515562['name']))return;const _0x426a51=_0x3cc79d['markerRange']['start']['nodeAfter'],_0x2eb9c6=_0x3cc79d['markerRange']['end']['nodeBefore'],_0x409c45=_0x426a51['parent']['parent'],{column:_0x2a0e19}=_0x1eaaad['getCellLocation'](_0x426a51),{column:_0x1c4c34}=_0x1eaaad['getCellLocation'](_0x2eb9c6);for(let _0x51a9d6=_0x2a0e19;_0x51a9d6<=_0x1c4c34;_0x51a9d6++){const _0x233200=_0x1eaaad['createTableWalker'](_0x409c45,{'column':_0x51a9d6,'includeAllSlots':!0x1});for(const _0x2aa314 of _0x233200){const _0x2daded=_0x2aa314['cell'],_0x607db1=_0x289791['mapper']['toViewElement'](_0x2daded);_0x289791['writer']['addClass']('ck-suggestion-marker-'+_0xb0e4b3,_0x607db1),_0x5d9147&&_0x289791['writer']['setAttribute']('data-suggestion',_0x2cfdd5,_0x607db1),_0x289791['mapper']['bindElementToMarker'](_0x607db1,_0x3cc79d['markerName']),_0x5936ef&&(_0x297c5d['activeMarkers']['includes'](_0x3cc79d['markerName'])?_0x289791['writer']['addClass']('ck-suggestion-marker--active',_0x607db1):_0x289791['writer']['removeClass']('ck-suggestion-marker--active',_0x607db1));}}};}_0x297c5d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36b2cb),_0x297c5d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36b2cb),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x136da7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d33bd,_0x4a5a2b,_0x4c9efd)=>{_0x4c9efd['options']['showSuggestionHighlights']&&_0x136da7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2d33bd,_0x4a5a2b,_0x4c9efd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x59e370,_0xfcfabf,_0x4d9a5a)=>{const {type:_0x10a0cf,id:_0x299dd8}=_0x297c5d['_splitMarkerName'](_0xfcfabf['markerName']),_0xdf0e48=_0x297c5d['getSuggestion'](_0x299dd8),_0x3aee00=_0xdf0e48['data'];if('formatBlock'!=_0xdf0e48['type']||!_0x3aee00||'setTableColumnHeader'!=_0x3aee00['commandName'])return;const _0x33ab8a=_0x4d9a5a['mapper']['markerNameToElements'](_0xfcfabf['markerName']);if(_0x33ab8a){for(const _0x882012 of _0x33ab8a)_0x4d9a5a['writer']['removeClass']('ck-suggestion-marker-'+_0x10a0cf,_0x882012),_0x4d9a5a['writer']['removeClass']('ck-suggestion-marker--active',_0x882012),_0x4d9a5a['writer']['removeAttribute']('data-suggestion',_0x882012),_0x4d9a5a['mapper']['unbindElementFromMarkerName'](_0x882012,_0xfcfabf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117492=this['editor'],_0x31e4d7=_0x117492['locale'];function _0x5a4206(_0x214d9e){return{'type':'format','content':o(_0x31e4d7,'*Format:*\x20%0',_0x214d9e)};}_0x117492['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf5e32=>{if('formatBlock'!=_0xf5e32['type'])return;const {data:_0x41a568}=_0xf5e32;if(_0x41a568){if('setTableRowHeader'==_0x41a568['commandName']){const _0x29b9ff=_0x41a568['commandParams'][0x0]['forceValue'];return _0x5a4206(o(_0x31e4d7,_0x29b9ff?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x41a568['commandName']){const _0x1d5aa0=_0x41a568['commandParams'][0x0]['forceValue'];return _0x5a4206(o(_0x31e4d7,_0x1d5aa0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5a315a=>[_0x5a315a,null]));class Mt extends _0x42796e{static get['requires'](){return[Ct];}['afterInit'](){const _0x31b3dc=this['editor'];if(!_0x31b3dc['plugins']['has']('TableClipboard'))return;const _0x311d6d=_0x31b3dc['plugins']['get']('TrackChangesEditing'),_0x1789ba=_0x31b3dc['plugins']['get']('TableUtils'),_0x8f5aa2=_0x31b3dc['plugins']['get'](Ct),_0x33b67d=_0x31b3dc['plugins']['get']('TableClipboard');_0x8f5aa2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x31b3dc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x31b3dc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe34dcd=null;_0x31b3dc['model']['on']('insertContent',(_0x3c866d,_0x572944)=>{const [_0x727144,_0x3499d6]=_0x572944,_0x4570bb=_0x572944[_0x572944['length']-0x1];_0x4570bb&&_0x4570bb['forceDefaultExecution']||_0x311d6d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x524d28,_0x379a9a,_0x38e86e,_0x15ac2b,_0xa07350){if(_0x379a9a&&!_0x379a9a['is']('documentSelection'))return!0x1;const _0x12088c=_0xa07350['getTableIfOnlyTableInContent'](_0x524d28,_0x38e86e);if(!_0x12088c||!Ue(_0x12088c,void 0x0,_0x15ac2b))return!0x1;const _0x1ca33c=_0x15ac2b['getSelectionAffectedTableCells'](_0x38e86e['document']['selection']);if(!_0x1ca33c['length'])return!0x1;const _0x2731b1=_0x1ca33c[0x0]['findAncestor']('table'),_0x168038=_0x15ac2b['getRowIndexes'](_0x1ca33c),_0x11b8f7=_0x15ac2b['getColumnIndexes'](_0x1ca33c),_0x534d63={'startRow':_0x168038['first'],'endRow':_0x168038['last'],'startColumn':_0x11b8f7['first'],'endColumn':_0x11b8f7['last']};return 0x1==_0x1ca33c['length']&&(_0x534d63['endRow']+=_0x15ac2b['getRows'](_0x12088c)-0x1,_0x534d63['endColumn']+=_0x15ac2b['getColumns'](_0x12088c)-0x1),Ue(_0x2731b1,_0x534d63,_0x15ac2b);}(_0x727144,_0x3499d6,_0x31b3dc['model'],_0x1789ba,_0x33b67d)&&(_0x3c866d['stop'](),_0xe34dcd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x31b3dc['model']['change'](()=>{_0x31b3dc['model']['insertContent'](_0x572944[0x0],_0x572944[0x1],_0x572944[0x2],{'forceDefaultExecution':!0x0});const _0x13bf4d=_0x55f348(),{rowInsertionRanges:_0x3e0094,columnInsertionRanges:_0x4949cc,insertionRanges:_0x188f36,deletionRanges:_0x73f7bd,cells:_0x30d1fc}=_0xe34dcd;_0x3e0094['length']&&_0x311d6d['markMultiRangeInsertion'](_0x3e0094,'tablePasteRow',{'tablePasteChainId':_0x13bf4d}),_0x4949cc['length']&&_0x311d6d['markMultiRangeInsertion'](_0x4949cc,'tablePasteColumn',{'tablePasteChainId':_0x13bf4d}),_0x188f36['length']&&(_0x311d6d['markMultiRangeInsertion'](_0x188f36,'tablePaste',{'tablePasteChainId':_0x13bf4d,'skipNestingCheck':!0x0}),_0x188f36['forEach'](_0x543b3a=>_0x543b3a['detach']?.())),_0x73f7bd['length']&&(_0x311d6d['markMultiRangeDeletion'](_0x73f7bd,'tablePaste',{'tablePasteChainId':_0x13bf4d,'skipNestingCheck':!0x0}),_0x73f7bd['forEach'](_0x56f4c4=>_0x56f4c4['detach']?.()));const _0x573564=_0x311d6d['markMultiRangeBlockFormat'](_0x30d1fc['map'](({element:_0x3cc925})=>_0x3cc925),{'formatGroupId':_0x55f348()},[],'tablePasteCell',{'tablePasteChainId':_0x13bf4d});if(_0x573564){const _0x511359=_0x573564['getMarkers'](),_0x4224ca=[];for(const {element:_0x4f35c1,attributes:_0x50c98a}of _0x30d1fc){if(!_0x50c98a)continue;const _0xa4bcc6=_0x31b3dc['model']['createRangeOn'](_0x4f35c1),_0x4c7534=_0x511359['find'](_0x45d7cb=>_0x45d7cb['getRange']()['isEqual'](_0xa4bcc6));_0x4c7534&&_0x4224ca['push']([_0x4c7534['name'],_0x50c98a]);}_0x4224ca['length']&&_0x573564['setAttribute']('markerAttributes',Object['fromEntries'](_0x4224ca));}_0xe34dcd=null;}));},{'priority':_0x56db26['high']+0xa}),_0x31b3dc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3d4c25,_0xf1f596)=>{const [_0x3a2a34,_0x943459,,_0xa0e893]=_0xf1f596;if(!_0xe34dcd)return;_0x3d4c25['stop']();const _0x569a1a=_0x3a2a34['cell'],_0x183429=_0x943459,_0x3923f3=Oe(_0x569a1a),_0x560e86=Oe(_0x183429);_0x3d4c25['return']=_0x569a1a;let _0x223f83=null,_0x4a0ddc=null;if(_0x560e86||_0x3923f3){if(_0x3923f3&&!_0x560e86){_0xa0e893['remove'](_0x569a1a['getChild'](0x0));for(const _0x3217d7 of Array['from'](_0x183429['getChildren']()))_0xa0e893['insert'](_0x3217d7,_0x569a1a,'end');const _0x26d0b3=_0xe34dcd['rowInsertionIndexes']['includes'](_0x3a2a34['row']),_0x87e6df=_0xe34dcd['columnInsertionIndexes']['includes'](_0x3a2a34['column']);_0x26d0b3||_0x87e6df||(_0x223f83=_0x2eb8ca['fromRange'](_0xa0e893['createRangeIn'](_0x569a1a)));}else _0x560e86&&!_0x3923f3&&(_0x4a0ddc=_0xa0e893['createRangeIn'](_0x569a1a));}else{const _0x285fe5=_0xa0e893['createElement']('tableCellSuggestion'),_0x1ffff6=_0xa0e893['createElement']('tableCellSuggestion');_0xa0e893['wrap'](_0xa0e893['createRangeIn'](_0x569a1a),_0x1ffff6),_0xa0e893['insert'](_0x285fe5,_0x569a1a,0x0);for(const _0x2d8909 of Array['from'](_0x183429['getChildren']()))_0xa0e893['insert'](_0x2d8909,_0x285fe5,'end');_0x223f83=_0x2eb8ca['fromRange'](_0xa0e893['createRangeOn'](_0x285fe5)),_0x4a0ddc=_0x2eb8ca['fromRange'](_0xa0e893['createRangeOn'](_0x1ffff6));}const _0x579fd2=Array['from'](_0x183429['getAttributes']())['filter'](([_0x94803])=>Be['includes'](_0x94803));_0xe34dcd['cells']['push']({'element':_0x569a1a,'attributes':_0x579fd2['length']?Object['fromEntries'](_0x579fd2):null}),_0x223f83&&_0xe34dcd['insertionRanges']['push'](_0x223f83),_0x4a0ddc&&_0xe34dcd['deletionRanges']['push'](_0x4a0ddc);},{'priority':'high'}),_0x1789ba['on']('insertColumns',(_0x223996,_0x3cc6e8)=>{const [_0x3e653e,_0x2c318f={}]=_0x3cc6e8;if(!_0xe34dcd)return;const _0xd13d3b=_0x2c318f['at']||0x0,_0x505936=_0x2c318f['columns']||0x1;_0xe34dcd['columnInsertionIndexes']=new Array(_0x505936)['fill'](_0xd13d3b)['map']((_0x1f70b8,_0xefdd8c)=>_0x1f70b8+_0xefdd8c);for(const {cell:_0x3acc70}of _0x1789ba['createTableWalker'](_0x3e653e,{'startColumn':_0xd13d3b,'endColumn':_0xd13d3b+_0x505936-0x1}))_0xe34dcd['columnInsertionRanges']['push'](_0x31b3dc['model']['createRangeOn'](_0x3acc70));},{'priority':'low'}),_0x1789ba['on']('insertRows',(_0x155112,_0x3b076f)=>{const [_0x4a9533,_0x58b88c={}]=_0x3b076f;if(!_0xe34dcd)return;const _0xec0e7=_0x58b88c['at']||0x0,_0x519ffe=_0x58b88c['rows']||0x1;_0xe34dcd['rowInsertionIndexes']=new Array(_0x519ffe)['fill'](_0xec0e7)['map']((_0x55f7f3,_0x4fc26c)=>_0x55f7f3+_0x4fc26c);for(const {cell:_0xac0d0b}of _0x1789ba['createTableWalker'](_0x4a9533,{'startRow':_0xec0e7,'endRow':_0xec0e7+_0x519ffe-0x1}))_0xe34dcd['rowInsertionRanges']['push'](_0x31b3dc['model']['createRangeOn'](_0xac0d0b));},{'priority':'low'}),_0x311d6d['descriptionFactory']['registerDescriptionCallback'](_0x221e53=>{if(_0x221e53['subType']&&_0x221e53['subType']['startsWith']('tablePaste'))return _0x221e53['previous']?{}:{'type':'insertion','content':o(_0x31b3dc['locale'],'*Replace\x20table\x20cells*')};});const _0x5ad0a1=()=>!0x1;for(const _0x253270 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x311d6d['_suggestionFactory']['registerCustomCallback']('insertion',_0x253270,'join',_0x5ad0a1),_0x311d6d['_suggestionFactory']['registerCustomCallback']('deletion',_0x253270,'join',_0x5ad0a1),_0x311d6d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x253270,'join',_0x5ad0a1);_0x311d6d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5ad0a1),_0x311d6d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x21fb5f,_0x464857,_0x5387ba)=>{const _0x24ff18=_0x21fb5f['map'](_0x320e87=>_0x320e87['getContainedElement']())['filter'](_0x8e0621=>_0x8e0621),_0x3c25a5=new Map(_0x24ff18['map'](_0x3c9877=>[_0x3c9877,null]));if(_0xe34dcd){for(const {element:_0x567b17,attributes:_0x4198e3}of _0xe34dcd['cells'])_0x4198e3&&_0x3c25a5['set'](_0x567b17,_0x4198e3);}else{if(_0x5387ba&&_0x5387ba['markerAttributes'])for(const [_0x46bbd2,_0x589f02]of Object['entries'](_0x5387ba['markerAttributes'])){const _0x5c0128=_0x31b3dc['model']['markers']['get'](_0x46bbd2),_0x135bef=_0x5c0128?_0x5c0128['getRange']()['getContainedElement']():null;_0x135bef&&_0x3c25a5['set'](_0x135bef,_0x589f02);}}_0x31b3dc['model']['change'](_0x4a0f54=>{for(const [_0x430847,_0x3cbf2e]of _0x3c25a5)_0x4a0f54['setAttributes']({...xe,..._0x3cbf2e},_0x430847);});});const _0xbca3d0=(_0x43c50a,_0x36d3e2)=>{_0x311d6d['_suggestionFactory']['registerCustomCallback'](_0x43c50a,'tablePaste',_0x36d3e2,(_0x13ccc8,_0x6738a0,_0x230ef8)=>{_0x31b3dc['model']['change'](_0x3ac692=>{const _0x14fbd2=[];for(const _0x178dc6 of _0x13ccc8){const _0x2ae10c=_0x178dc6['start']['nodeAfter'];_0x2ae10c['is']('element','tableCellSuggestion')&&_0x14fbd2['push'](_0x2ae10c);}_0x311d6d['_suggestionFactory']['getSuggestionCallback'](_0x43c50a,null,_0x36d3e2)(_0x13ccc8,_0x6738a0,_0x230ef8);for(const _0x2976a8 of _0x14fbd2)'$graveyard'!=_0x2976a8['root']['rootName']&&_0x3ac692['unwrap'](_0x2976a8);});});};_0xbca3d0('insertion','accept'),_0xbca3d0('insertion','discard'),_0xbca3d0('deletion','accept'),_0xbca3d0('deletion','discard'),_0x311d6d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3cca2d=>{const _0x4e482e=_0x3cca2d['map'](_0x530f42=>_0x530f42['getContainedElement']()),_0x596a73=_0x4e482e[0x0]['findAncestor']('table'),{minRow:_0x7897bb,maxRow:_0x1dd2b2}=_0x8f5aa2['_getCoordsForCells'](_0x4e482e);_0x1789ba['removeRows'](_0x596a73,{'at':_0x7897bb,'rows':_0x1dd2b2-_0x7897bb+0x1});}),_0x311d6d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x27e97d=>{const _0x129b4d=_0x27e97d['map'](_0x42e172=>_0x42e172['getContainedElement']()),_0x148a90=_0x129b4d[0x0]['findAncestor']('table'),{minColumn:_0x1bbf48,maxColumn:_0x2b4834}=_0x8f5aa2['_getCoordsForCells'](_0x129b4d);_0x1789ba['removeColumns'](_0x148a90,{'at':_0x1bbf48,'columns':_0x2b4834-_0x1bbf48+0x1});});const _0x1a82e5=(_0x29f07c,_0x11a5ab)=>{if(!_0x11a5ab['subType']||!_0x11a5ab['subType']['startsWith']('tablePaste'))return;const _0x1bc81d=_0x11a5ab['attributes']['tablePasteChainId'],_0x512635=_0x311d6d['getSuggestions']()['filter'](_0x12d03d=>_0x12d03d['isInContent']&&_0x12d03d['attributes']&&_0x12d03d['attributes']['tablePasteChainId']==_0x1bc81d);_0x512635['length']&&_0x11a5ab['getAllAdjacentSuggestions']()['length']!=_0x512635['length']&&_0x512635['reduce']((_0x431d63,_0x2545a9)=>(_0x431d63['next']=_0x2545a9,_0x2545a9['previous']=_0x431d63,_0x2545a9));};function _0x37b5ec(_0x35de86,_0x4f90aa=!0x0){const {id:_0x5de28c,authorId:_0x6fbbac}=_0x311d6d['_splitMarkerName'](_0x35de86['markerName']),_0x49135a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ac8b4=_0x311d6d['activeMarkers']['includes'](_0x35de86['markerName']);return _0x1ac8b4&&_0x49135a['push']('ck-suggestion-marker--active'),{'classes':_0x49135a,'attributes':{'data-suggestion':_0x5de28c,'data-author-id':_0x6fbbac},'priority':_0x1ac8b4&&_0x4f90aa?0xbc2:0xbb8};}_0x311d6d['on']('suggestionLoaded',_0x1a82e5,{'priority':'high'}),_0x311d6d['on']('suggestionUnloaded',_0x1a82e5,{'priority':'high'}),_0x31b3dc['model']['document']['registerPostFixer'](()=>{let _0x4f5e1e=!0x1;const _0x26d245=Array['from'](_0x31b3dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23a137,data:_0x2ae4be}of _0x26d245){const {group:_0x67d407,type:_0x32fb55,id:_0x465240}=_0x311d6d['_splitMarkerName'](_0x23a137);if('suggestion'!=_0x67d407||'deletion'!=_0x32fb55||_0x2ae4be['oldRange'])continue;if(!_0x311d6d['hasSuggestion'](_0x465240))continue;const _0x3f1c0e=_0x311d6d['getSuggestion'](_0x465240)['getRanges'](),_0x5bee18=_0x31b3dc['plugins']['get']('Users')['me'];for(const _0x432b83 of _0x311d6d['getSuggestions']()){if(!_0x432b83['isInContent']||_0x432b83['author']!=_0x5bee18)continue;if('formatBlock'!=_0x432b83['type']||'tablePasteCell'!=_0x432b83['subType'])continue;if(_0x432b83['getRanges']()['every'](_0x3d3cb9=>_0x3f1c0e['some'](_0x474cbb=>_0x474cbb['containsRange'](_0x3d3cb9,!0x0)))){for(const _0xdbf3de of _0x432b83['getAllAdjacentSuggestions']())_0xdbf3de['isInContent']&&(_0xdbf3de['discard'](),_0x4f5e1e=!0x0);}}}return _0x4f5e1e;}),_0x31b3dc['model']['document']['registerPostFixer'](_0x51cbd7=>{const _0x295bb0=_0x31b3dc['commands']['get']('redo');if(!_0x295bb0||!_0x295bb0['_createdBatches']['has'](_0x51cbd7['batch']))return!0x1;let _0x6b8c52=!0x1;const _0x562bf9=_0x31b3dc['plugins']['get']('Users')['me'],_0x20b6cc=_0x31b3dc['model']['document']['differ']['getChanges'](),_0x2efcc2=Array['from'](_0x31b3dc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x55dd28,data:_0x1f5b81})=>{const {group:_0xf607a9,subType:_0x32aabc,authorId:_0x5cb249}=_0x311d6d['_splitMarkerName'](_0x55dd28);return'suggestion'==_0xf607a9&&'tablePaste'==_0x32aabc&&_0x5cb249==_0x562bf9['id']&&!_0x1f5b81['oldRange'];});for(const _0x1aeba7 of _0x20b6cc){if('insert'!=_0x1aeba7['type']||'tableCellSuggestion'!=_0x1aeba7['name']||0x1!=_0x1aeba7['length'])continue;const _0x23fc3f=_0x51cbd7['createRange'](_0x1aeba7['position'],_0x1aeba7['position']['getShiftedBy'](0x1));if(!_0x2efcc2['find'](({data:_0x2877c9})=>_0x2877c9['newRange']['isEqual'](_0x23fc3f))){for(const {name:_0x380c2a,data:_0x1f7ede}of _0x2efcc2)if(_0x23fc3f['containsRange'](_0x1f7ede['newRange'])){_0x51cbd7['updateMarker'](_0x380c2a,{'range':_0x23fc3f}),_0x6b8c52=!0x0;break;}}}return _0x6b8c52;}),_0x31b3dc['model']['document']['registerPostFixer'](_0x9b154=>{let _0x11c49d=!0x1;const _0x383348=_0x31b3dc['plugins']['get']('Users')['me'],_0x122f1b=_0x311d6d['getSuggestions']()['filter'](_0x2cc643=>_0x2cc643['isInContent']&&_0x2cc643['author']==_0x383348),_0x48d8fc=new Set(),_0x44d495=new Set();for(const _0x33cc92 of _0x122f1b)if('tablePaste'==_0x33cc92['subType'])for(const _0x264537 of _0x33cc92['getMarkers']()){const _0x9a7b29=_0x264537['getRange']()['getContainedElement']();if(_0x9a7b29){if(_0x9a7b29['is']('element','tableCellSuggestion')&&Oe(_0x9a7b29)){_0x33cc92['removeMarker'](_0x264537['name']),_0x48d8fc['add'](_0x9a7b29),_0x11c49d=!0x0;const _0x5c1e92=_0x9a7b29['nextSibling'],_0x5a4588=_0x9a7b29['previousSibling'],_0x1e8c34=_0x5c1e92&&_0x5c1e92['is']('element','tableCellSuggestion'),_0x1dc84c=_0x5a4588&&_0x5a4588['is']('element','tableCellSuggestion');_0x1e8c34&&!_0x48d8fc['has'](_0x5c1e92)&&_0x44d495['add'](_0x5c1e92),_0x1dc84c&&!_0x48d8fc['has'](_0x5a4588)&&_0x44d495['add'](_0x5a4588);}else _0x9a7b29['is']('element','paragraph')&&_0x9a7b29['isEmpty']&&(_0x33cc92['removeMarker'](_0x264537['name']),_0x11c49d=!0x0);}}else{if('tablePasteCell'==_0x33cc92['subType']){if(!_0x33cc92['attributes']||!_0x33cc92['attributes']['tablePasteChainId'])continue;const _0x25045e=_0x33cc92['attributes']['markerAttributes'];if(_0x25045e&&Object['keys'](_0x25045e)['length'])continue;const _0x79bb1b=_0x33cc92['attributes']['tablePasteChainId'];let _0x234b7b=!0x0,_0x1f67f6=!0x0;for(const _0x1cf116 of _0x122f1b)if(_0x1cf116['subType']&&_0x1cf116['subType']['startsWith']('tablePaste')){if(!_0x1cf116['attributes']['tablePasteChainId']){_0x1f67f6=!0x1;break;}if(_0x1cf116['id']!=_0x33cc92['id']&&_0x1cf116['attributes']['tablePasteChainId']==_0x79bb1b){_0x234b7b=!0x1;break;}}_0x1f67f6&&_0x234b7b&&(_0x33cc92['removeMarkers'](),_0x11c49d=!0x0);}}for(const _0x1b7a94 of _0x48d8fc)_0x9b154['remove'](_0x1b7a94);for(const _0x333625 of _0x44d495)_0x9b154['unwrap'](_0x333625);return _0x11c49d;}),_0x31b3dc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd1de32=>_0x37b5ec(_0xd1de32),'converterPriority':'high'}),_0x31b3dc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1b4eec,_0x2d7e18)=>_0x2d7e18['options']['showSuggestionHighlights']?_0x37b5ec(_0x1b4eec,!0x1):null,'converterPriority':'high'});const _0x284735=_0x31b3dc['editing']['view'];this['listenTo'](_0x284735['document'],'clipboardOutput',(_0x799693,_0x5732ad)=>{const _0x250ce5=[];for(const _0x2790b5 of _0x284735['createRangeIn'](_0x5732ad['content'])['getItems']())_0x2790b5['is']('element','suggestion-td')&&_0x250ce5['push'](_0x2790b5);_0x284735['change'](_0x12800e=>{for(const _0x4fcea0 of _0x250ce5)_0x12800e['move'](_0x12800e['createRangeIn'](_0x4fcea0),_0x12800e['createPositionBefore'](_0x4fcea0)),_0x12800e['remove'](_0x4fcea0);});});}}function Oe(_0x38e57e){if(_0x38e57e['isEmpty'])return!0x0;const _0x519ad7=_0x38e57e['getChild'](0x0);return _0x519ad7['is']('element','paragraph')&&_0x519ad7['isEmpty'];}function Ue(_0x3a1f62,_0x2f2d13={},_0x33e363){for(const {isAnchor:_0x1aede0,cellHeight:_0x6f90c7,cellWidth:_0xfbe2a6}of _0x33e363['createTableWalker'](_0x3a1f62,{'includeAllSlots':!0x0,..._0x2f2d13}))if(!_0x1aede0||0x1!=_0x6f90c7||0x1!=_0xfbe2a6)return!0x1;return!0x0;}class $t extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x56ee66=this['editor']['plugins']['get']('TrackChangesEditing');_0x56ee66['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x56ee66['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x56ee66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56ee66['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x56ee66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x56ee66['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4d08d6,_0x3727ea){const _0x2057d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59dc4f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x266b5f=_0x3727ea['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22adce=_0x59dc4f['getColumnGroupElement'](_0x266b5f);let _0x16e64a=_0x22adce?_0x59dc4f['getTableColumnsWidths'](_0x22adce):null,_0x3800f1=_0x266b5f['getAttribute']('tableWidth')||null;const _0x1effd9=_0x3727ea['tableWidth']||_0x3800f1,_0x24ff78=_0x3727ea['columnWidths']||_0x16e64a,_0x4e7ecd=this['editor']['plugins']['get']('Users')['me'];for(const _0x423720 of _0x2057d2['getSuggestions']()){const _0x27c3fd=_0x423720['getContainedElement']();if('resizeTable'===_0x423720['subType']&&_0x27c3fd===_0x266b5f){_0x423720['author']!==_0x4e7ecd&&_0x423720['discard']();const _0x47790c=_0x423720['data']['commandParams'];_0x3800f1=_0x47790c[0x0]['tableWidth'],_0x16e64a=_0x47790c[0x0]['columnWidths'];break;}}_0x4d08d6({'table':_0x266b5f,'tableWidth':_0x1effd9,'columnWidths':_0x24ff78}),_0x2057d2['markBlockFormat'](_0x266b5f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3800f1,'columnWidths':_0x16e64a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x55338c){if('formatBlock'!=_0x55338c['type']&&'formatInline'!=_0x55338c['type'])return;const {data:_0xa03649}=_0x55338c;if(_0xa03649&&'resizeTable'===_0xa03649['formatGroupId']){const _0x6ce93c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x6ce93c)};}}}class Bt extends _0x42796e{['afterInit'](){const _0x22737a=this['editor'];_0x22737a['plugins']['has']('Template')&&_0x22737a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x42796e{['afterInit'](){const _0x1db6f9=this['editor'];if(!_0x1db6f9['commands']['get']('insertTableOfContents'))return;_0x1db6f9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5ae0e2=_0x1db6f9['plugins']['get']('TrackChangesEditing'),_0x33bbc8=_0x1db6f9['locale'];_0x5ae0e2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bc46f=>o(_0x33bbc8,'ELEMENT_TABLE_OF_CONTENTS',_0x3bc46f));}}class Rt extends _0x42796e{['afterInit'](){const _0x28b2bd=this['editor'];if(!_0x28b2bd['plugins']['has']('Title'))return;const _0x3cef26=_0x28b2bd['plugins']['get']('TrackChangesEditing');_0x3cef26['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x28b2bd['locale'],'ELEMENT_TITLE')),_0x28b2bd['model']['document']['registerPostFixer'](_0x49a6f5=>{let _0x3a4092=!0x1;const _0x3d1faf=Array['from'](_0x28b2bd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40807b,data:_0x31a382}of _0x3d1faf){const {group:_0x2a5398}=_0x3cef26['_splitMarkerName'](_0x40807b);if('suggestion'!==_0x2a5398||!_0x31a382['newRange'])continue;const _0x17fdbc=_0x31a382['newRange'],_0x345bd1=_0x17fdbc['end']['nodeBefore'];if(!_0x345bd1||!_0x345bd1['is']('element','title-content'))continue;if(!_0x17fdbc['start']['isTouching'](_0x17fdbc['end']))continue;const _0x214ab2=_0x28b2bd['model']['schema']['getNearestSelectionRange'](_0x17fdbc['end'],'forward');if(_0x214ab2&&_0x214ab2['isCollapsed']){const _0x54b6b3=_0x49a6f5['createRange'](_0x17fdbc['start'],_0x214ab2['start']);_0x54b6b3['isEqual'](_0x17fdbc)||(_0x49a6f5['updateMarker'](_0x40807b,{'range':_0x54b6b3}),_0x3a4092=!0x0);}_0x3a4092||(_0x49a6f5['removeMarker'](_0x40807b),_0x3a4092=!0x0);}return _0x3a4092;});}}class Tt extends _0x42796e{['afterInit'](){const _0x1a8d91=this['editor'],_0x58857c=_0x1a8d91['plugins']['get']('TrackChangesEditing');_0x1a8d91['plugins']['has']('Uploadcare')&&(_0x58857c['enableCommand']('uploadcare'),_0x1a8d91['plugins']['has']('UploadcareImageEdit')&&(_0x58857c['enableCommand']('uploadcareImageEdit'),_0x58857c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x58857c['registerBlockAttribute']('uploadcareImageId'),_0x58857c['descriptionFactory']['registerDescriptionCallback'](_0x501983=>{if('attribute'!=_0x501983['type'])return;const {data:_0x2b4d62}=_0x501983;return _0x2b4d62&&'uploadcareImageId'==_0x2b4d62['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x42796e{['afterInit'](){const _0x135b51=this['editor'],_0x1d5748=_0x135b51['plugins']['get']('TrackChangesEditing');_0x135b51['plugins']['has']('UndoEditing')&&(_0x1d5748['enableCommand']('undo'),_0x1d5748['enableCommand']('redo'));}}class Et extends _0x42796e{static get['requires'](){return[Ct];}['afterInit'](){const _0xb36074=this['editor'];if(!_0xb36074['plugins']['has']('TableCaptionEditing'))return;_0xb36074['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x42796e{['tableProperties'];['tableCellProperties'];constructor(_0x290013){super(_0x290013),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 _0x44fae1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x38426b of this['tableProperties'])_0x44fae1['enableCommand'](_0x38426b,(_0x55ff19,_0x5505b8)=>{const _0x12b492=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x38426b,[_0x12b492],this['tableProperties'],'tableProperties',_0x55ff19,_0x5505b8);});_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x44fae1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e4690,_0x4e9c9c)=>this['handleDiscardAction'](this['tableProperties'],_0x2e4690,_0x4e9c9c)),_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5595ba of this['tableCellProperties'])_0x44fae1['enableCommand'](_0x5595ba,(_0x209dad,_0x251cc2)=>{const _0x1ce182=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5595ba,_0x1ce182,this['tableCellProperties'],'tableCellProperties',_0x209dad,_0x251cc2);});_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x44fae1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e283f,_0x57a9dd)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e283f,_0x57a9dd)),_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x44fae1['descriptionFactory']['registerDescriptionCallback'](_0x52a00d=>this['handleSuggestionDescription'](_0x52a00d));}['_handlePropertyChange'](_0x165288,_0x40ec61,_0x225a2d,_0x5e47a0,_0x3acb15,_0x4aafae){const _0x238e46=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4aafae['batch'],()=>{for(const _0xea4924 of _0x40ec61){if(this['_getSuggestion'](_0xea4924,_0x5e47a0))_0x3acb15(_0x4aafae);else{const _0x3959f0={};for(const _0x3c3487 of _0x225a2d){const _0x1497c5=_0xea4924['getAttribute'](_0x3c3487);void 0x0!==_0x1497c5&&(_0x3959f0[_0x3c3487]=_0x1497c5);}_0x3acb15(_0x4aafae),_0x238e46['markBlockFormat'](_0xea4924,{'commandParams':[_0x3959f0]},[],_0x5e47a0);}}});}['handleDiscardAction'](_0x4131bd,_0x4c9e82,_0x41c95){const _0x2b5dc2=_0x4c9e82[0x0]['start']['nodeAfter'],_0x30ab35=_0x41c95['commandParams'][0x0];this['editor']['model']['change'](_0x164e79=>{for(const _0x50aba3 of _0x4131bd)void 0x0!==_0x30ab35[_0x50aba3]?_0x164e79['setAttribute'](_0x50aba3,_0x30ab35[_0x50aba3],_0x2b5dc2):_0x164e79['removeAttribute'](_0x50aba3,_0x2b5dc2);});}['handleSuggestionDescription'](_0x5b246c){if(_0x5b246c['data'])switch(_0x5b246c['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x21e948,_0x13fa6a){const _0x56645d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5addf3 of _0x56645d['getSuggestions']({'skipNotAttached':!0x0})){const _0x4e16cf=_0x5addf3['getContainedElement']();if(_0x5addf3['subType']===_0x13fa6a&&_0x4e16cf===_0x21e948)return _0x5addf3;}return null;}}const m='$elementName';class p extends _0x42796e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x555351,_0x1d58f4,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38c495){super(_0x38c495),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xcc8ccb,_0x104b73,_0x5f340d,_0x5e886a)=>{this['_model']['change'](()=>{for(const _0x45bd33 of[..._0x5e886a,..._0x5f340d])this['_model']['markers']['has'](_0x45bd33)&&_0x38c495['editing']['reconvertMarker'](_0x45bd33);});}),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']=_0x38c495['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x38c495['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x38c495['config']['get']('trackChanges.trackFormatChanges'),_0x38c495['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x38c495['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x38c495,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d2dea=this['editor'],_0x568028=(_0x10a20f,_0x2e09d0)=>{if('attribute'!=_0x10a20f)return'ck-suggestion-marker-'+_0x10a20f;const _0x375256=_0x2e09d0['split']('|')[0x0];return this['_isBlockAttribute'](_0x375256)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d2dea['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x12e68d=>{const {id:_0x1c1d70,authorId:_0x3141f4,type:_0x2a6ac2,subType:_0x1880a6}=this['_splitMarkerName'](_0x12e68d['markerName']),_0x15c9c3=['ck-suggestion-marker',_0x568028(_0x2a6ac2,_0x1880a6)];let _0x10086b=0xbb8;return this['activeMarkers']['includes'](_0x12e68d['markerName'])&&(_0x15c9c3['push']('ck-suggestion-marker--active'),_0x10086b=0xbc2),'deletion'==_0x2a6ac2&&(_0x10086b+=0x5),{'classes':_0x15c9c3,'attributes':{'data-suggestion':_0x1c1d70,'data-author-id':_0x3141f4},'priority':_0x10086b};}}),_0x3d2dea['conversion']['for']('dataDowncast')['add'](_0x2ea3ac=>{_0x2ea3ac['on']('addMarker:suggestion',(_0x11343f,_0x46bbbd,_0x5e9f07)=>{if(!_0x5e9f07['options']['showSuggestionHighlights'])return;const _0x412813=_0x46bbbd['item'];if(!_0x412813)return;const _0x1b6974=_0x5e9f07['mapper']['toViewElement'](_0x412813);_0x3d2dea['model']['schema']['isObject'](_0x412813)&&_0x1b6974&&!_0x1b6974['getCustomProperty']('widget')&&_0x1b6974['is']('containerElement')&&_0x2881fe(_0x1b6974,_0x5e9f07['writer']);},{'priority':'high'});}),_0x3d2dea['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x525201,_0x3c902e)=>{if(!_0x3c902e['options']['showSuggestionHighlights'])return null;const {type:_0x5daeb1,subType:_0x159c81}=this['_splitMarkerName'](_0x525201['markerName']);return{'classes':['ck-suggestion-marker',_0x568028(_0x5daeb1,_0x159c81)],'priority':0xbb8};}});const _0xff68d1=({showActiveMarkers:_0x393d2b=!0x0,isAttributeSuggestion:_0x1c420b=!0x1}={})=>(_0x46e182,_0x566621,_0x121092)=>{if(!_0x566621['item'])return;const {id:_0x591d22,authorId:_0x584b6f}=this['_splitMarkerName'](_0x566621['markerName']);if(_0x1c420b){const _0x225088=this['_suggestions']['get'](_0x591d22),_0x632b1d=this['_getAttributeKey'](_0x225088);if(!this['_isBlockAttribute'](_0x632b1d))return;}if(_0x566621['item']['is']('selection'))return void _0x121092['consumable']['consume'](_0x566621['item'],_0x46e182['name']);const _0x424612=_0x121092['mapper']['toViewElement'](_0x566621['item']);if(_0x566621['item']['is']('element')&&_0x3d2dea['model']['schema']['isBlock'](_0x566621['item'])&&!_0x424612['getCustomProperty']('addHighlight')){_0x121092['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x424612),_0x121092['writer']['setAttribute']('data-suggestion',_0x591d22,_0x424612),_0x121092['writer']['setAttribute']('data-author-id',_0x584b6f,_0x424612),_0x121092['mapper']['bindElementToMarker'](_0x424612,_0x566621['markerName']),_0x393d2b&&(this['activeMarkers']['includes'](_0x566621['markerName'])?_0x121092['writer']['addClass']('ck-suggestion-marker--active',_0x424612):_0x121092['writer']['removeClass']('ck-suggestion-marker--active',_0x424612));for(const _0x42908d of _0x3d2dea['model']['createRangeIn'](_0x566621['item'])['getItems']())_0x121092['consumable']['consume'](_0x42908d,_0x46e182['name']);_0x121092['consumable']['consume'](_0x566621['item'],_0x46e182['name']);}};_0x3d2dea['conversion']['for']('dataDowncast')['add'](_0x332109=>{_0x332109['on']('addMarker:suggestion:formatBlock',(_0x15ba65,_0x326517,_0x3ac7a7)=>{_0x3ac7a7['options']['showSuggestionHighlights']&&_0xff68d1({'showActiveMarkers':!0x1})(_0x15ba65,_0x326517,_0x3ac7a7);},{'priority':'highest'});}),_0x3d2dea['conversion']['for']('dataDowncast')['add'](_0x5dd7a1=>{_0x5dd7a1['on']('addMarker:suggestion:attribute',(_0xed7f1d,_0x15c2ca,_0xfe0136)=>{_0xfe0136['options']['showSuggestionHighlights']&&_0xff68d1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xed7f1d,_0x15c2ca,_0xfe0136);},{'priority':'highest'});}),_0x3d2dea['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4646e0,_0xf9ab)=>_0xf9ab['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4646e0['substr'](0xb)}}),_0x3d2dea['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x579072,{writer:_0x242ef5})=>{let _0x335db0='suggestion:'+_0x579072['getAttribute']('suggestion-type')+':'+_0x579072['getAttribute']('id');return _0x579072['getAttribute']('marker-count')&&(_0x335db0+=':'+_0x579072['getAttribute']('marker-count')),_0x242ef5['createElement']('$marker',{'data-name':_0x335db0});}}),_0x3d2dea['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d2dea['conversion']['for']('editingDowncast')['add'](_0x2b5a53=>{_0x2b5a53['on']('addMarker:suggestion:formatBlock',_0xff68d1(),{'priority':'high'});}),_0x3d2dea['conversion']['for']('editingDowncast')['add'](_0x3339f2=>{_0x3339f2['on']('addMarker:suggestion:attribute',_0xff68d1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d2dea['conversion']['for']('editingDowncast')['add'](_0x30629c=>{_0x30629c['on']('removeMarker:suggestion:formatBlock',(_0x56d044,_0x1ac374,_0x1caf57)=>{const _0x3cc8da=_0x1caf57['mapper']['markerNameToElements'](_0x1ac374['markerName']);if(_0x3cc8da){for(const _0x9f48fc of _0x3cc8da)_0x9f48fc['getCustomProperty']('addHighlight')||(_0x1caf57['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9f48fc),_0x1caf57['writer']['removeAttribute']('data-suggestion',_0x9f48fc),_0x1caf57['writer']['removeAttribute']('data-author-id',_0x9f48fc),_0x1caf57['mapper']['unbindElementFromMarkerName'](_0x9f48fc,_0x1ac374['markerName']));}},{'priority':'high'});}),_0x3d2dea['conversion']['for']('editingDowncast')['add'](_0x2e8db2=>{_0x2e8db2['on']('removeMarker:suggestion:attribute',(_0x368ddb,_0x532b3b,_0x484aa0)=>{const _0x2dad85=_0x484aa0['mapper']['markerNameToElements'](_0x532b3b['markerName']);if(!_0x2dad85)return;const {id:_0x54d92e}=this['_splitMarkerName'](_0x532b3b['markerName']),_0x793753=this['_suggestions']['get'](_0x54d92e),_0x5027cc=this['_getAttributeKey'](_0x793753);if(this['_isBlockAttribute'](_0x5027cc)){for(const _0x2ceada of _0x2dad85)_0x2ceada['getCustomProperty']('addHighlight')||(_0x484aa0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ceada),_0x484aa0['writer']['removeAttribute']('data-suggestion',_0x2ceada),_0x484aa0['writer']['removeAttribute']('data-author-id',_0x2ceada),_0x484aa0['mapper']['unbindElementFromMarkerName'](_0x2ceada,_0x532b3b['markerName']));}},{'priority':'high'});}),_0x3d2dea['model']['document']['registerPostFixer'](_0x388e38=>{let _0x3ea605=!0x1;const _0x1cd17a=Array['from'](_0x3d2dea['model']['document']['differ']['getChangedMarkers']()),_0x64e47a=new Set();for(const {name:_0x1c5979,data:_0x4d6c2d}of _0x1cd17a){const {group:_0x2634ad,type:_0x4a9740,subType:_0x5e004a,id:_0x5b1562}=this['_splitMarkerName'](_0x1c5979);if('suggestion'!==_0x2634ad)continue;const _0xbc1d2d=this['_suggestions']['get'](_0x5b1562);if(null!=_0x4d6c2d['newRange']){'formatInline'==_0x4a9740&&(_0x3ea605=_0x3ea605||Lt(_0x4d6c2d['newRange'],_0x1c5979,_0x388e38,_0x3d2dea['model']['schema']));const _0x3a0a7e='attribute'==_0x4a9740&&this['_isBlockAttribute'](_0x5e004a['split']('|')[0x0]);if(_0x4d6c2d['newRange']['isCollapsed']||'$graveyard'==_0x4d6c2d['newRange']['root']['rootName']||'formatBlock'==_0x4a9740&&!Ht(_0x4d6c2d['newRange'])||_0x3a0a7e&&!Ht(_0x4d6c2d['newRange'])||'deletion'==_0x4a9740&&!(!Ft(_0xec8b22=_0x4d6c2d['newRange'])&&!function(_0x59884b){return _0x59884b['start']['parent']==_0x59884b['end']['nodeBefore']&&_0x59884b['start']['isAtEnd'];}(_0xec8b22)))_0x388e38['removeMarker'](_0x1c5979),_0x3ea605=!0x0;else{if(!_0xbc1d2d||!_0xbc1d2d['isInContent'])continue;if(_0x4d6c2d['newRange']&&_0x4d6c2d['oldRange']&&_0x4d6c2d['newRange']['isEqual'](_0x4d6c2d['oldRange']))continue;_0x64e47a['add'](_0xbc1d2d);}}}var _0xec8b22;return _0x64e47a['size']>0x0&&(_0x3ea605=!!this['_joinWithAdjacentSuggestions'](_0x64e47a)||_0x3ea605),_0x3ea605;}),_0x3d2dea['model']['document']['registerPostFixer'](_0x2fdf83=>{let _0xeb67d9=!0x1;for(const _0x882f41 of _0x3d2dea['model']['document']['differ']['getChanges']())if('insert'==_0x882f41['type'])for(const _0x10dc72 of this['_suggestions']['values']()){if(_0x10dc72['isMultiRange']||!_0x10dc72['isInContent'])continue;const _0x29594a='formatBlock'==_0x10dc72['type'],_0xf66d0f=this['_getAttributeKey'](_0x10dc72),_0x5b4f5f=_0xf66d0f&&this['_isBlockAttribute'](_0xf66d0f);if(!_0x29594a&&!_0x5b4f5f)continue;const _0x3c4c70=_0x10dc72['getFirstRange']();if(_0x3c4c70['start']['parent']!=_0x3c4c70['end']['parent']&&!_0x3c4c70['end']['isAtEnd']){const _0x731d0d=_0x3d2dea['model']['createPositionAt'](_0x3c4c70['start']['nodeAfter'],'end'),_0xd3e681=_0x3d2dea['model']['createRange'](_0x3c4c70['start'],_0x731d0d);_0x2fdf83['updateMarker'](_0x10dc72['getFirstMarker'](),{'range':_0xd3e681}),_0xeb67d9=!0x0;}}return _0xeb67d9;}),_0x3d2dea['model']['document']['registerPostFixer'](_0x3c9d62=>this['_processAttributeChanges'](_0x3c9d62)),_0x3d2dea['model']['document']['registerPostFixer'](_0xa6bd14=>!_0xa6bd14['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa6bd14)),_0x3d2dea['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d2dea['model']['document']['on']('change:data',(_0x4dac42,_0x242974)=>{if(!_0x242974['isLocal']||_0x242974['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3684a7=_0x3d2dea['model']['document']['differ']['getChanges']();if(0x0==_0x3684a7['length'])return;const _0x4b5d6a=[],_0x217c69=_0x3684a7['filter'](_0x13301c=>'attribute'==_0x13301c['type']),_0x3dfa5a=_0x3684a7['filter'](_0x1bddcd=>'insert'==_0x1bddcd['type']&&'$text'!=_0x1bddcd['name']);for(const _0x67d7f0 of _0x217c69)this['_isRegisteredAttribute'](_0x67d7f0['attributeKey'])&&_0x4b5d6a['push']({'key':_0x67d7f0['attributeKey'],'newValue':_0x67d7f0['attributeNewValue'],'oldValue':_0x67d7f0['attributeOldValue'],'range':qt(_0x67d7f0['range'],_0x3d2dea['model'])});for(const _0x462272 of _0x3dfa5a){if('rename'!=_0x462272['action']&&'refresh'!=_0x462272['action'])continue;const _0x182a01=zt(_0x462272['position']['nodeAfter'],_0x3d2dea['model']),_0x3624dc=_0x462272['before'];'rename'==_0x462272['action']&&_0x4b5d6a['push']({'key':m,'newValue':_0x462272['name'],'oldValue':_0x3624dc['name'],'range':_0x182a01});for(const [_0x44aa46,_0x9fd37c]of _0x3624dc['attributes']){if(!this['_isRegisteredAttribute'](_0x44aa46))continue;const _0x486ded=_0x462272['attributes']['get'](_0x44aa46);_0x9fd37c!==_0x486ded&&_0x4b5d6a['push']({'key':_0x44aa46,'newValue':_0x486ded,'oldValue':_0x9fd37c,'range':_0x182a01});}for(const [_0x3b6684,_0x321799]of _0x462272['attributes'])this['_isRegisteredAttribute'](_0x3b6684)&&(_0x3624dc['attributes']['has'](_0x3b6684)||_0x4b5d6a['push']({'key':_0x3b6684,'newValue':_0x321799,'oldValue':null,'range':_0x182a01}));}0x0!=_0x4b5d6a['length']&&_0x3d2dea['model']['enqueueChange'](_0x242974,_0x2c3073=>{const _0x2b8375=_0x55f348();for(const {range:_0x3ad4d0,key:_0x57d23c,oldValue:_0x215c71,newValue:_0x458e4f}of _0x4b5d6a)this['markAttributeChange'](_0x3ad4d0,_0x57d23c,_0x215c71,_0x458e4f,{'groupId':_0x2b8375});this['_reduceExistingSuggestions'](_0x2c3073,_0x4b5d6a);});},{'priority':'lowest'}),_0x3d2dea['model']['markers']['on']('update:suggestion',(_0x24cb97,_0x465883,_0x5312a6)=>{if(null==_0x5312a6){const {id:_0x55411b}=this['_splitMarkerName'](_0x465883['name']),_0x1a4c1c=this['_suggestions']['get'](_0x55411b);_0x1a4c1c&&_0x1a4c1c['addMarkerName'](_0x465883['name']);}}),_0x3d2dea['model']['document']['on']('change:data',()=>{const _0x426698=Array['from'](_0x3d2dea['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5f43a6=>'suggestion'===this['_splitMarkerName'](_0x5f43a6['name'])['group']);if(0x0===_0x426698['length'])return;_0x426698['sort']((_0x50d668,_0x3b601f)=>{const _0x3e295b=_0x50d668['data']['oldRange'],_0x5179ee=_0x3b601f['data']['oldRange'];return null===_0x3e295b&&null===_0x5179ee?0x0:null===_0x3e295b&&null!==_0x5179ee?-0x1:null!==_0x3e295b&&null===_0x5179ee?0x1:_0x3e295b['start']['isBefore'](_0x5179ee['start'])?-0x1:0x1;});const _0x403153=new Set(),_0x469a70=new Set();for(const {name:_0x41f148,data:_0x4df38d}of _0x426698){const {id:_0x31a781}=this['_splitMarkerName'](_0x41f148);if(null===_0x4df38d['oldRange']){const _0x127dc6=this['_handleNewSuggestionMarker'](_0x41f148);_0x469a70['add'](_0x127dc6);}else{const _0x1002bb=this['_suggestions']['get'](_0x31a781);null!==_0x4df38d['newRange']||_0x1002bb['isInContent']?(_0x403153['add'](_0x1002bb['head']),_0x469a70['add'](_0x1002bb)):this['_removeSuggestion'](_0x1002bb);}}_0x469a70['size']>0x0&&this['_refreshSuggestionsChain'](_0x469a70);for(const _0x45f560 of _0x403153)this['fire']('suggestionChanged',_0x45f560);}),_0x3d2dea['model']['on']('applyOperation',(_0x2f9648,_0x49600c)=>{const _0x444ebc=_0x49600c[0x0];if(!this['_suggestions']['size'])return;if(!_0x444ebc['isDocumentOperation'])return;if(_0x444ebc['batch']['isUndo']||!_0x444ebc['batch']['isLocal'])return;let _0x57bf43,_0x961fd6;switch(_0x444ebc['type']){case'insert':_0x57bf43=_0x3d2dea['model']['createPositionAt'](_0x444ebc['position']),_0x961fd6=_0x57bf43['getShiftedBy'](_0x444ebc['howMany']);break;case'split':_0x57bf43=_0x3d2dea['model']['createPositionAt'](_0x444ebc['splitPosition']),_0x961fd6=_0x3d2dea['model']['createPositionAt'](_0x444ebc['moveTargetPosition']);break;case'move':_0x57bf43=_0x3d2dea['model']['createPositionAt'](_0x444ebc['targetPosition']),_0x961fd6=_0x57bf43['getShiftedBy'](_0x444ebc['howMany']);break;default:return;}const _0x39798a=_0x3d2dea['model']['createRange'](_0x57bf43,_0x961fd6);_0x3d2dea['model']['change'](()=>{for(const {suggestion:_0x506121,meta:_0x37c2dd}of this['_findSuggestions'](_0x39798a)){if(_0x506121['isMultiRange'])continue;if('formatInline'==_0x506121['type'])continue;const _0xb361d5=this['_getAttributeKey'](_0x506121);if(_0xb361d5&&this['_isBlockAttribute'](_0xb361d5)&&'split'!=_0x444ebc['type'])continue;const _0x16ad51=_0x506121['data']&&_0x506121['data']['multipleBlocks'];('formatBlock'!=_0x506121['type']||'split'==_0x444ebc['type']&&!_0x16ad51)&&(_0x37c2dd['containsRangeInObject']||'insertion'==_0x506121['type']&&_0x37c2dd['isOwn']||_0x506121['getFirstRange']()['containsRange'](_0x39798a)&&this['_breakSuggestionMarker'](_0x506121,_0x57bf43,_0x961fd6));}});},{'priority':'lowest'}),_0x3d2dea['model']['on']('deleteContent',(_0x24ce4a,_0x15f765)=>{const _0x405d8c=_0x15f765[0x0],_0xd82b53=_0x15f765[0x1];if(_0xd82b53&&_0xd82b53['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x405d8c['isCollapsed'])return;const _0x38550d=_0x3d2dea['model']['schema'],{start:_0x1acb70,end:_0x29270c}=_0x405d8c['getFirstRange'](),_0x1361a5=_0x1acb70['nodeAfter']&&_0x38550d['isLimit'](_0x1acb70['nodeAfter'])?null:_0x38550d['getNearestSelectionRange'](_0x1acb70,'forward'),_0x1d146c=_0x29270c['nodeBefore']&&_0x38550d['isLimit'](_0x29270c['nodeBefore'])?null:_0x38550d['getNearestSelectionRange'](_0x29270c,'backward'),_0x139b61=_0x3d2dea['model']['createRange'](_0x1361a5?_0x1361a5['start']:_0x1acb70,_0x1d146c?_0x1d146c['end']:_0x29270c);_0x3d2dea['model']['change'](_0x5813ec=>{this['markDeletion'](_0x139b61);const _0x1ac052=_0x3d2dea['model']['schema']['getNearestSelectionRange'](_0x139b61['start']);_0x405d8c['is']('documentSelection')?_0x5813ec['setSelection'](_0x1ac052):_0x405d8c['setTo'](_0x1ac052);}),_0x24ce4a['stop']();},{'priority':_0x56db26['normal']+0xa}),_0x3d2dea['model']['on']('insertContent',(_0x2f5feb,_0x5e294f)=>{const _0x339446=_0x5e294f[_0x5e294f['length']-0x1];_0x339446&&_0x339446['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d2dea['model']['change'](()=>{let _0x128d84=_0x3d2dea['model']['insertContent'](_0x5e294f[0x0],_0x5e294f[0x1],_0x5e294f[0x2],{'forceDefaultExecution':!0x0});if(!_0x128d84)return;_0x2f5feb['return']=_0x128d84['clone']();const _0x2611e7=_0x128d84['end']['nodeBefore'],_0x51433b=_0x3d2dea['model']['schema'];_0x2611e7&&_0x51433b['isBlock'](_0x2611e7)&&!_0x51433b['isObject'](_0x2611e7)&&(_0x128d84=_0x3d2dea['model']['createRange'](_0x128d84['start'],_0x3d2dea['model']['createPositionAt'](_0x2611e7,'end'))),this['markInsertion'](_0x128d84);}),_0x2f5feb['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x48f3a1=new O(_0x3d2dea,this['_suggestions']);_0x3d2dea['commands']['add']('acceptSuggestion',_0x48f3a1),this['enableCommand']('acceptSuggestion');const _0x791886=new R(_0x3d2dea,this['_suggestions']);_0x3d2dea['commands']['add']('discardSuggestion',_0x791886),this['enableCommand']('discardSuggestion'),_0x3d2dea['commands']['add']('acceptAllSuggestions',new x(_0x3d2dea,_0x48f3a1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d2dea['commands']['add']('discardAllSuggestions',new x(_0x3d2dea,_0x791886,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d2dea['commands']['add']('acceptSelectedSuggestions',new E(_0x3d2dea,_0x48f3a1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d2dea['commands']['add']('discardSelectedSuggestions',new E(_0x3d2dea,_0x791886,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x23f98a=_0x3d2dea['plugins']['get']('CommentsRepository');this['listenTo'](_0x23f98a,'addComment',(_0x16fa76,{threadId:_0x1c7e69})=>{const _0x278171=this['_suggestions']['get'](_0x1c7e69);_0x278171&&_0x278171['commentThread']&&0x1===_0x278171['commentThread']['length']&&this['_updateSuggestionData'](_0x1c7e69,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x23f98a,'removeComment',(_0xee7462,{threadId:_0x117549})=>{const _0x4ac5b3=this['_suggestions']['get'](_0x117549);_0x4ac5b3&&_0x4ac5b3['commentThread']&&!_0x4ac5b3['commentThread']['length']&&this['_updateSuggestionData'](_0x117549,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5e80cb){const _0x100f41=_0x5f20e4([0x4e,0x30,0x78,0x6b,0x34,0x31,0x72,0x57,0x43,0x7a,0x51,0x55,0x56,0x4f,0x53,0x33,0x5a,0x77,0x48,0x39,0x47,0x4c,0x4a,0x6f,0x52,0x66,0x65,0x41,0x64,0x70,0x35,0x6d,0x61,0x58,0x46,0x4d,0x32,0x50,0x67,0x45,0x74,0x49,0x6c,0x6a,0x69,0x71,0x54,0x44,0x37,0x68,0x75,0x4b,0x59,0x62,0x73,0x76,0x63,0x38,0x42,0x79,0x6e,0x36]),_0x18b263=0xf8a859c,_0x117d66=0xf8de504^_0x18b263,_0x553975=window[_0x5f20e4([0x44,0x61,0x74,0x65])][_0x5f20e4([0x6e,0x6f,0x77])](),_0x541657=_0x5e80cb[_0x5f20e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36ee71=new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6d1b=>{_0x541657[_0x5f20e4([0x6f,0x6e,0x63,0x65])](_0x5f20e4([0x72,0x65,0x61,0x64,0x79]),_0x2c6d1b);}),_0x3217b5={[_0x5f20e4([0x6b,0x74,0x79])]:_0x5f20e4([0x45,0x43]),[_0x5f20e4([0x75,0x73,0x65])]:_0x5f20e4([0x73,0x69,0x67]),[_0x5f20e4([0x63,0x72,0x76])]:_0x5f20e4([0x50,0x2d,0x32,0x35,0x36]),[_0x5f20e4([0x78])]:_0x5f20e4([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]),[_0x5f20e4([0x79])]:_0x5f20e4([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]),[_0x5f20e4([0x61,0x6c,0x67])]:_0x5f20e4([0x45,0x53,0x32,0x35,0x36])},_0x206635=_0x541657[_0x5f20e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f20e4([0x67,0x65,0x74])](_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x117c36(){let _0x2f44cf,_0x1fd917=null,_0x3adc13=null;try{if(_0x206635==_0x5f20e4([0x47,0x50,0x4c]))return _0x5f20e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f44cf=_0x583fdf(),!_0x2f44cf)return _0x5f20e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f44cf[_0x5f20e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3adc13=_0x353f95(_0x2f44cf[_0x5f20e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f44cf[_0x5f20e4([0x6a,0x74,0x69])])),await _0x20aa8()?_0x527810()?_0x5cf839()?_0x5f20e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57becc()?(_0x2f44cf[_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f20e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fd917=_0xd2b9a2(_0x5f20e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f44cf[_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f20e4([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fd917=_0xd2b9a2(_0x5f20e4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xad82f4()):_0x5f20e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f20e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f20e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x308e3c){return _0x5f20e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5cf839(){const _0x360d09=[_0x5f20e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f20e4([0x74,0x72,0x69,0x61,0x6c])][_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f44cf[_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x553975/0x3e8:0xe10*_0x117d66;return _0x2f44cf[_0x5f20e4([0x65,0x78,0x70])]<_0x360d09;}function _0x527810(){const _0x269e91=_0x2f44cf[_0x5f20e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x269e91)return!0x1;if(_0x269e91[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f20e4([0x2a])))return!0x0;if(_0x269e91[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f20e4([0x54,0x43])))return!0x0;if(_0x269e91[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f20e4([0x52,0x54,0x43]))){if(_0x5eeb0d())return!0x0;if(_0x2b3446()||_0x4326bb())return!0x0;}return!0x1;}function _0x57becc(){const _0xe8e73a=_0x2f44cf[_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe8e73a||0x0==_0xe8e73a[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x93eb8}=new URL(window[_0x5f20e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe8e73a[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x93eb8))return!0x0;const _0x1f781f=_0x93eb8[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])](_0x5f20e4([0x2e]));return _0xe8e73a[_0x5f20e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd1a4e3=>_0xd1a4e3[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f20e4([0x2a])))[_0x5f20e4([0x6d,0x61,0x70])](_0x31ce82=>_0x31ce82[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])](_0x5f20e4([0x2e])))[_0x5f20e4([0x73,0x6f,0x6d,0x65])](_0x51bc83=>_0x1f781f[_0x5f20e4([0x65,0x76,0x65,0x72,0x79])]((_0x26234f,_0x598e26)=>_0x51bc83[_0x598e26]===_0x26234f||_0x51bc83[_0x598e26]===_0x5f20e4([0x2a])));}function _0xad82f4(){return _0x1fd917&&_0x3adc13?new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x111603,_0x278887)=>{_0x1fd917[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x111603,_0x278887),_0x3adc13[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x4f97e0=>{_0x4f97e0!=_0x5f20e4([0x56,0x61,0x6c,0x69,0x64])&&_0x111603(_0x4f97e0);},_0x278887);}):_0x1fd917||_0x3adc13||_0x5f20e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x353f95(_0x5be74e,_0x5cb001){return new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x382f60=>{if(_0x485d5a())return _0x382f60(_0x5f20e4([0x56,0x61,0x6c,0x69,0x64]));_0x7e623d(),_0x541657[_0x5f20e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f20e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5166d0=!0x1;const _0x3a01e2=_0x55f348();function _0x497795(_0x5bcc6e){return!!_0x5bcc6e&&(typeof _0x5bcc6e===_0x5f20e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bcc6e===_0x5f20e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bcc6e[_0x5f20e4([0x74,0x68,0x65,0x6e])]===_0x5f20e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bcc6e[_0x5f20e4([0x63,0x61,0x74,0x63,0x68])]===_0x5f20e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e4cde(_0x667107){_0x55bb58(_0x667107)[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x87ce4c=>{if(!_0x87ce4c||_0x87ce4c[_0x5f20e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f20e4([0x6f,0x6b]))return _0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x486984(_0x4fd6a7(_0x3a01e2+_0x5cb001))!=_0x87ce4c[_0x5f20e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f20e4([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x58029a=>(_0x6250d5(),_0x58029a),()=>{const _0xd91b8f=_0x4c32d7();return null==_0xd91b8f?(_0x6250d5(),_0x5f20e4([0x56,0x61,0x6c,0x69,0x64])):_0x5f20e4(_0x553975-_0xd91b8f>(0x2b86019c^_0x18b263)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x382f60)[_0x5f20e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x382f60(_0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d6389=0xfbc6b1c^_0x18b263;function _0x6250d5(){const _0x1d81dd=_0x5f20e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x486984(_0x4fd6a7(_0x5be74e)),_0x529319=_0x47255c(_0x486984(window[_0x5f20e4([0x4d,0x61,0x74,0x68])][_0x5f20e4([0x63,0x65,0x69,0x6c])](_0x553975/_0x3d6389)));window[_0x5f20e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f20e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d81dd,_0x529319);}function _0x4c32d7(){const _0x436e92=_0x5f20e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x486984(_0x4fd6a7(_0x5be74e)),_0x2a841a=window[_0x5f20e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f20e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x436e92);return _0x2a841a?window[_0x5f20e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47255c(_0x2a841a),0x10)*_0x3d6389:null;}function _0x55bb58(_0x38afec){return new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a5375,_0x1f27f5)=>{_0x38afec[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x3a5375,_0x1f27f5),window[_0x5f20e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f27f5,0xf8b515c^_0x18b263);});}}_0x541657[_0x5f20e4([0x6f,0x6e])](_0x5f20e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x174b28,_0x4c7b67)=>{if(_0x4c7b67[0x0]!=_0x5be74e)return _0x382f60(_0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c7b67[0x1]={..._0x4c7b67[0x1],[_0x5f20e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a01e2};},{[_0x5f20e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f20e4([0x68,0x69,0x67,0x68])}),_0x541657[_0x5f20e4([0x6f,0x6e])](_0x5f20e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53f63b=>{_0x497795(_0x53f63b[_0x5f20e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5166d0=!0x0,_0x3e4cde(_0x53f63b[_0x5f20e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f20e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f20e4([0x6c,0x6f,0x77])}),_0x36ee71[_0x5f20e4([0x74,0x68,0x65,0x6e])](()=>{_0x5166d0||_0x382f60(_0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x485d5a(){return _0x541657[_0x5f20e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f20e4([0x76,0x69,0x65,0x77])][_0x5f20e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f20e4([0x61,0x75,0x74,0x6f]);}function _0x7e623d(){_0x541657[_0x5f20e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f20e4([0x76,0x69,0x65,0x77])][_0x5f20e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f20e4([0x61,0x75,0x74,0x6f]);}}function _0xd2b9a2(_0xd7e682){const _0x1d45f7=[new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bd027=>setTimeout(_0x3bd027,0xf83bb50^_0x18b263)),_0x36ee71[_0x5f20e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39a84f=>{let _0x2d9088=0x0;_0x541657[_0x5f20e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f20e4([0x6f,0x6e])](_0x5f20e4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe626b,_0x518133)=>{_0x518133[0x0][_0x5f20e4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d9088++,_0x2d9088==(0xf8a8464^_0x18b263)&&(_0x39a84f(),_0xe626b[_0x5f20e4([0x6f,0x66,0x66])]());});}))];return window[_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f20e4([0x72,0x61,0x63,0x65])](_0x1d45f7)[_0x5f20e4([0x74,0x68,0x65,0x6e])](()=>_0xd7e682);}async function _0x8da690(){await _0x36ee71,_0x541657[_0x5f20e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f20e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x185cc2,_0x541657[_0x5f20e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f20e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x185cc2,_0x541657[_0x5f20e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f20e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5eeb0d(){return _0xa9b8d2(_0x5f20e4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5a3125(_0x5f20e4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f20e4([0x73,0x74,0x61,0x74,0x65])]==_0x5f20e4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2b3446(){return _0xa9b8d2(_0x5f20e4([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 _0x4326bb(){return _0xa9b8d2(_0x5f20e4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x31e128(_0x5ebf66){const _0x1526b7=_0x540a55();_0x541657[_0x1526b7]=_0x5f20e4([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5ebf66,_0x5ebf66!=_0x5f20e4([0x56,0x61,0x6c,0x69,0x64])&&_0x8da690();}function _0x540a55(){const _0x581d39=window[_0x5f20e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f20e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f20e4([0x6e,0x6f,0x77])]())[_0x5f20e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f20e4([0x2e]),'');let _0x5da867=_0x5f20e4([0x4e]);for(let _0x46ed56=0x0;_0x46ed56<_0x581d39[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46ed56+=0x2){let _0x49b1fc=window[_0x5f20e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x581d39[_0x5f20e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46ed56,_0x46ed56+0x2));_0x49b1fc>=_0x100f41[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49b1fc-=_0x100f41[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5da867+=_0x100f41[_0x49b1fc];}return _0x5da867;}function _0x583fdf(){const _0xf8d894=_0x206635[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])](_0x5f20e4([0x2e]));if(0x3!=_0xf8d894[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31a9e2(_0xf8d894[0x1]);function _0x31a9e2(_0x58e44c){const _0x4c1eed=_0x495d11(_0x58e44c);return _0x4c1eed&&_0x54e047()?_0x4c1eed:null;function _0x54e047(){const _0x26df44=_0x4c1eed[_0x5f20e4([0x6a,0x74,0x69])],_0x57386d=window[_0x5f20e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26df44[_0x5f20e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26df44[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x267692={..._0x4c1eed,[_0x5f20e4([0x6a,0x74,0x69])]:_0x26df44[_0x5f20e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26df44[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x267692[_0x5f20e4([0x76,0x63])],_0x4fd6a7(_0x267692)==_0x57386d;}}}async function _0x20aa8(){let _0x90c0d0=!0x0;try{const _0x5a8267=_0x206635[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])](_0x5f20e4([0x2e])),[_0x57ce60,_0x3fa499,_0x281986]=_0x5a8267;return _0x574baa(_0x57ce60),await _0x55107e(_0x57ce60,_0x3fa499,_0x281986),_0x90c0d0;}catch(_0x484ef8){return!0x1;}function _0x574baa(_0xea1dad){const _0x34b700=_0x495d11(_0xea1dad);_0x34b700&&_0x34b700[_0x5f20e4([0x61,0x6c,0x67])]==_0x5f20e4([0x45,0x53,0x32,0x35,0x36])||(_0x90c0d0=!0x1);}async function _0x55107e(_0x1870dc,_0x592f9c,_0x29de9e){const _0x182812=window[_0x5f20e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f20e4([0x66,0x72,0x6f,0x6d])](_0x52b4bf(_0x29de9e),_0x248562=>_0x248562[_0x5f20e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a651f=new window[(_0x5f20e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f20e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1870dc+_0x5f20e4([0x2e])+_0x592f9c),_0x8c041f=window[_0x5f20e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f20e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8c041f)return;const _0x1d4a3a=await _0x8c041f[_0x5f20e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f20e4([0x6a,0x77,0x6b]),_0x3217b5,{[_0x5f20e4([0x6e,0x61,0x6d,0x65])]:_0x5f20e4([0x45,0x43,0x44,0x53,0x41]),[_0x5f20e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f20e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f20e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8c041f[_0x5f20e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f20e4([0x6e,0x61,0x6d,0x65])]:_0x5f20e4([0x45,0x43,0x44,0x53,0x41]),[_0x5f20e4([0x68,0x61,0x73,0x68])]:{[_0x5f20e4([0x6e,0x61,0x6d,0x65])]:_0x5f20e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d4a3a,_0x182812,_0x2a651f)||(_0x90c0d0=!0x1);}}function _0x495d11(_0x11d65b){return _0x11d65b[_0x5f20e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f20e4([0x65,0x79]))?JSON[_0x5f20e4([0x70,0x61,0x72,0x73,0x65])](_0x52b4bf(_0x11d65b)):null;}function _0x52b4bf(_0x38d976){return window[_0x5f20e4([0x61,0x74,0x6f,0x62])](_0x38d976[_0x5f20e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f20e4([0x2b]))[_0x5f20e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f20e4([0x2f])));}function _0x4fd6a7(_0x564055){let _0x4b0be2=0x1505;function _0x1e4564(_0x37d3a5){for(let _0x5c389f=0x0;_0x5c389f<_0x37d3a5[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c389f++){const _0x4a0c72=_0x37d3a5[_0x5f20e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c389f);_0x4b0be2=(_0x4b0be2<<0x5)+_0x4b0be2+_0x4a0c72,_0x4b0be2&=_0x4b0be2;}}function _0x581194(_0x76c95f){Array[_0x5f20e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x76c95f)?_0x76c95f[_0x5f20e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x581194):_0x76c95f&&typeof _0x76c95f==_0x5f20e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f20e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x76c95f)[_0x5f20e4([0x73,0x6f,0x72,0x74])]()[_0x5f20e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a3c14,_0x50aac8])=>{_0x1e4564(_0x1a3c14),_0x581194(_0x50aac8);}):_0x1e4564(window[_0x5f20e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x76c95f));}return _0x581194(_0x564055),_0x4b0be2>>>0x0;}function _0x486984(_0xb350c5){return _0xb350c5[_0x5f20e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f20e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f20e4([0x30]));}function _0x47255c(_0x5f2e17){return _0x5f2e17[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f20e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f20e4([0x6a,0x6f,0x69,0x6e])]('');}function _0xa9b8d2(_0x3ec4c6){return _0x541657[_0x5f20e4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f20e4([0x68,0x61,0x73])](_0x3ec4c6);}function _0x5a3125(_0x138e72){return _0x541657[_0x5f20e4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f20e4([0x67,0x65,0x74])](_0x138e72);}function _0x185cc2(){}function _0x5f20e4(_0x3cb885){return _0x3cb885['map'](_0x5c7073=>String['fromCharCode'](_0x5c7073))['join']('');}_0x31e128(await _0x117c36());}(this);}set['adapter'](_0x41fea0){if(this['_adapter'])throw new _0x4aa60d('track-changes-adapter-already-set',this);this['_adapter']=_0x41fea0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe49d96=!0x1,toJSON:_0x5bc6f1=!0x1}={}){const _0x372030=[];for(const _0x450952 of this['_suggestions']['values']())_0xe49d96&&!_0x450952['isInContent']||_0x372030['push'](_0x450952);return _0x5bc6f1?_0x372030['map'](_0xca025=>_0xca025['toJSON']()):_0x372030;}['getSuggestion'](_0x16c676){const _0x22c7b1=this['_suggestions']['get'](_0x16c676);if(!_0x22c7b1)throw new _0x4aa60d('track-changes-suggestion-not-found',this);return _0x22c7b1;}['hasSuggestion'](_0x346214){return this['_suggestions']['has'](_0x346214);}['addSuggestionData'](_0x4db703){const {authorId:_0x327c21,id:_0x3d60df,attributes:_0x4c7398}=_0x4db703,[_0x38ac81,_0x5d4302]=_0x4db703['type']['split'](':'),_0x4880e3=this['_suggestions']['get'](_0x3d60df)||this['_createSuggestion'](_0x38ac81,_0x5d4302,_0x3d60df,_0x327c21,_0x4c7398);if(this['_addThreadToSuggestion'](_0x4880e3),this['_checkSuggestionCorrectness'](_0x4880e3,_0x38ac81,_0x5d4302||null,_0x327c21),_0x4880e3['createdAt']=_0x4db703['createdAt'],_0x4880e3['_isDataLoaded']=!0x0,_0x4c7398&&_0x4c7398['@external']){const _0x495e9e=_0x4c7398['@external'],_0x56d2fa=this['_getExternalAuthor'](_0x495e9e['authorName']);_0x4880e3['authoredAt']=_0x495e9e['createdAt'],_0x4880e3['author']=_0x56d2fa,_0x4880e3['isExternal']=!0x0;}else _0x4880e3['authoredAt']=_0x4db703['createdAt'];switch(_0x4db703['data']&&(_0x4880e3['data']=_0x4db703['data']),_0x4db703['attributes']&&(_0x4880e3['attributes']=_0x4db703['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4880e3['_saved']=!0x0),this['_suggestionState']['get'](_0x4880e3)){case'notReady':this['_suggestionState']['set'](_0x4880e3,'dataReady');break;case'markerReady':_0x4880e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4880e3])),this['_refreshSuggestionsChain'](new Set([_0x4880e3])),this['_suggestionState']['set'](_0x4880e3,'ready'),this['fire']('suggestionLoaded',_0x4880e3)):this['_suggestionState']['set'](_0x4880e3,'removed');}return _0x4880e3;}['acceptSuggestion'](_0x9510b9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x8d37fd of _0x9510b9['getAllAdjacentSuggestions']())_0x8d37fd['accept']();});});}['discardSuggestion'](_0x38ece7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50d69e of _0x38ece7['getAllAdjacentSuggestions']())_0x50d69e['discard']();});});}['enableCommand'](_0x22ab2f,_0xc2ce40){const _0x17e3b6=this['editor']['commands']['get'](_0x22ab2f);if(!_0x17e3b6)throw new _0x4aa60d('track-changes-command-not-found',this,{'commandName':_0x22ab2f});if(this['_enabledCommands']['has'](_0x17e3b6))throw new _0x4aa60d('track-changes-enable-command-twice',this,{'commandName':_0x22ab2f});this['_enabledCommands']['add'](_0x17e3b6),_0xc2ce40&&_0x17e3b6['on']('execute',(_0x1f3239,_0x4b134f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4b134f['length']>0x0&&_0x4b134f[_0x4b134f['length']-0x1]&&_0x4b134f[_0x4b134f['length']-0x1]['forceDefaultExecution']?_0x4b134f['pop']():(_0x1f3239['return']=_0xc2ce40((..._0x3fed26)=>_0x17e3b6['execute'](..._0x3fed26,{'forceDefaultExecution':!0x0}),..._0x4b134f),_0x1f3239['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3f2e21){let _0x56b433,_0x5e08d0;const _0x35790a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x56b433=_0x3f2e21();}catch(_0x5f2021){_0x5e08d0=_0x5f2021;}return _0x35790a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5e08d0&&_0x4aa60d['rethrowUnexpectedError'](_0x5e08d0,this),_0x56b433;}['markInsertion'](_0x118d92,_0x3d796c=null,_0x5e4ebe={}){if(_0x118d92['isCollapsed'])return null;const _0x238c52=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x525f8e,meta:_0xda853e}of this['_findSuggestions'](_0x118d92,'insertion'))if(_0xda853e['isOwn']){if(!_0xda853e['isNextTo']){if(_0xda853e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x525f8e,_0x5e4ebe))continue;return _0x525f8e;}if(Qt(_0x525f8e,_0x5e4ebe))return _0x525f8e;this['_breakSuggestionMarker'](_0x525f8e,_0x118d92['start'],_0x118d92['end']);break;}if(_0x3d796c==_0x525f8e['subType']&&Qt(_0x525f8e,_0x5e4ebe)){const _0x280287=_0x525f8e['getFirstRange']();return _0x280287['start']['isEqual'](_0x118d92['end'])?this['_setSuggestionRange'](_0x525f8e,this['_model']['createRange'](_0x118d92['start'],_0x280287['end'])):this['_setSuggestionRange'](_0x525f8e,this['_model']['createRange'](_0x280287['start'],_0x118d92['end'])),_0x525f8e;}}const _0x46a53f=_0x55f348(),_0x24f831=_0x238c52['id'],_0xdeae36=_0x3d796c?'insertion:'+_0x3d796c:'insertion',_0xa762f5=this['_setSuggestionData']({'id':_0x46a53f,'type':_0xdeae36,'createdAt':new Date(),'authorId':_0x24f831,'attributes':_0x5e4ebe});return this['_addSuggestionMarker'](_0xdeae36,_0x46a53f,_0x24f831,_0x118d92),_0xa762f5;}['markMultiRangeInsertion'](_0x267a6d,_0x406b8c='multi',_0x76015f={}){const _0x4193a7=this['editor']['plugins']['get']('Users')['me'],_0xcdff9e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x406b8c,'join');for(const _0x3bf35d of this['getSuggestions']())if(_0x3bf35d['author']['id']==_0x4193a7['id']&&'insertion'==_0x3bf35d['type']&&_0x3bf35d['subType']==_0x406b8c&&Qt(_0x3bf35d,_0x76015f)&&(_0xcdff9e(_0x3bf35d['getRanges'](),_0x267a6d)||_0xcdff9e(_0x267a6d,_0x3bf35d['getRanges']()))){for(const _0x5aa099 of _0x267a6d)_0x3bf35d['addRange'](_0x5aa099);return _0x3bf35d;}for(const {suggestion:_0x5ba36e,meta:_0x40651f}of this['_findSuggestions'](_0x267a6d,'insertion')){if(!_0x40651f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x40651f['containsRangeInObject'])continue;if(!Qt(_0x5ba36e,_0x76015f))continue;let _0xcc413=!0x0;for(const _0x3b9d8f of _0x5ba36e['getRanges']())for(const _0x625c8c of _0x267a6d)if(!_0x3b9d8f['containsRange'](_0x625c8c)){_0xcc413=!0x1;break;}if(_0xcc413)return _0x5ba36e;}const _0x34831e=_0x55f348(),_0x585bc0=_0x4193a7['id'],_0x369869='insertion:'+_0x406b8c,_0x3b0abf=this['_setSuggestionData']({'id':_0x34831e,'type':_0x369869,'createdAt':new Date(),'authorId':_0x585bc0,'attributes':_0x76015f});for(const _0x36edeb of _0x267a6d)this['_addSuggestionMarker'](_0x369869,_0x34831e,_0x585bc0,_0x36edeb,u['getMultiRangeId']());return _0x3b0abf;}['markInlineFormat'](_0x193189,_0x2630c1,_0x51336e=null,_0x324739={}){if(_0x51336e=_0x51336e||Jt(_0x2630c1),_0x193189['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3b3056=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x51336e,'accept');return this['forceDefaultExecution'](()=>_0x3b3056([_0x193189],_0x2630c1,_0x324739)),null;}const _0x1dc506=this['editor']['plugins']['get']('Users')['me'],_0x34337b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4ab025,meta:_0x2df50b}of this['_findSuggestions'](_0x193189,'insertion'))_0x2df50b['isOwn']&&!_0x2df50b['isInsideObject']&&_0x34337b['push'](..._0x4ab025['getRanges']());}const _0x1f5ab0=function(_0x5af5bd,_0x51d653){const _0x3fbf2=[];for(const _0x1a0f4d of _0x51d653){const _0x36b1c6=_0x5af5bd['getIntersection'](_0x1a0f4d);_0x36b1c6&&_0x3fbf2['push'](_0x36b1c6);}return _0x3fbf2;}(_0x193189,_0x34337b),_0x415c64=function(_0x2066e8,_0x110d63){const _0x3b7a5f=[_0x2066e8];for(const _0xca80f7 of _0x110d63){let _0x34cb08=0x0;for(;_0x34cb08<_0x3b7a5f['length'];){const _0x16a73f=_0x3b7a5f[_0x34cb08]['getDifference'](_0xca80f7);_0x3b7a5f['splice'](_0x34cb08,0x1,..._0x16a73f),_0x34cb08+=_0x16a73f['length'];}}return _0x3b7a5f;}(_0x193189,_0x34337b);_0x1f5ab0['length']&&this['_model']['change'](()=>{for(const _0x58e1ac of _0x1f5ab0){const _0x32e92a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x51336e,'accept');this['forceDefaultExecution'](()=>_0x32e92a([_0x58e1ac],_0x2630c1,_0x324739));}});for(const _0x519c82 of _0x415c64){let _0x17652a=null,_0x30b6b6=_0x519c82['start'],_0x588ce8=_0x519c82['end'];for(const {suggestion:_0x476f29,meta:_0x3bf6c6}of this['_findSuggestions'](_0x519c82,'formatInline')){if(!_0x3bf6c6['isOwn'])continue;if(_0x476f29['subType']!=_0x51336e)continue;if(!Qt(_0x476f29,_0x324739))continue;const _0x9dac60=_0x476f29['getFirstRange']();if(_0x9dac60['containsRange'](_0x519c82,!0x0))return null;_0x30b6b6=_0x30b6b6['isBefore'](_0x9dac60['start'])?_0x30b6b6:_0x9dac60['start'],_0x588ce8=_0x588ce8['isAfter'](_0x9dac60['end'])?_0x588ce8:_0x9dac60['end'],_0x17652a?_0x9dac60['start']['isBefore'](_0x17652a['getFirstRange']()['start'])?(_0x17652a['removeMarkers'](),_0x17652a=_0x476f29):_0x476f29['removeMarkers']():_0x17652a=_0x476f29;}const _0x493bae=this['_model']['createRange'](_0x30b6b6,_0x588ce8);if(_0x17652a)this['_setSuggestionRange'](_0x17652a,_0x493bae);else{const _0x14d280=_0x55f348(),_0x221259=_0x1dc506['id'];this['_setSuggestionData']({'id':_0x14d280,'type':'formatInline:'+_0x51336e,'data':_0x2630c1,'createdAt':new Date(),'authorId':_0x221259,'attributes':_0x324739}),this['_addSuggestionMarker']('formatInline:'+_0x51336e,_0x14d280,_0x221259,_0x493bae);}}return null;}['markBlockFormat'](_0x456d72,_0x2e6b4a,_0x43ba64=[],_0x343a3d=null,_0x303f5d={}){_0x2e6b4a['formatGroupId']||(_0x2e6b4a['formatGroupId']=_0x2e6b4a['commandName']),_0x2e6b4a['multipleBlocks']=_0x456d72['is']('range'),_0x343a3d=_0x343a3d||Jt(_0x2e6b4a);const _0x4198e6=_0x43ba64['map'](_0x1145a1=>zt(_0x1145a1,this['_model'])),_0x39efab=_0x456d72['is']('range')?_0x456d72:zt(_0x456d72,this['_model']);if('never'===this['_trackFormatChanges']){const _0x113511=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343a3d,'accept');return this['forceDefaultExecution'](()=>_0x113511([_0x39efab],_0x2e6b4a,_0x303f5d)),null;}_0x4198e6['push'](_0x39efab);let _0x533723=!0x0;for(const _0x4e81d2 of _0x4198e6)if(!this['_rangeIsInLocalUserInsertion'](_0x4e81d2)){_0x533723=!0x1;break;}if(_0x533723&&'always'!==this['_trackFormatChanges']){const _0x371fd9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343a3d,'accept');return this['forceDefaultExecution'](()=>_0x371fd9([_0x39efab],_0x2e6b4a,_0x303f5d)),null;}let _0x5b8176=null,_0x38cc2f=_0x39efab['start'],_0xe23c31=_0x39efab['end'];for(const {suggestion:_0x19b50c,meta:_0x56537b}of this['_findSuggestions'](_0x39efab,'formatBlock')){if(!_0x56537b['isOwn'])continue;if(_0x56537b['isNextTo']||_0x56537b['containsRangeInObject']||_0x56537b['isInsideObject'])continue;if(_0x19b50c['data']['formatGroupId']!=_0x2e6b4a['formatGroupId'])continue;if(!Qt(_0x19b50c,_0x303f5d))continue;const _0x2d94f4=_0x19b50c['getFirstRange']();if(_0x19b50c['subType']==_0x343a3d){if(_0x2d94f4['containsRange'](_0x39efab,!0x0))return null;_0x38cc2f=_0x38cc2f['isBefore'](_0x2d94f4['start'])?_0x38cc2f:_0x2d94f4['start'],_0xe23c31=_0xe23c31['isAfter'](_0x2d94f4['end'])?_0xe23c31:_0x2d94f4['end'],_0x5b8176?_0x2d94f4['start']['isBefore'](_0x5b8176['getFirstRange']()['start'])?(_0x5b8176['removeMarkers'](),_0x5b8176=_0x19b50c):_0x19b50c['removeMarkers']():_0x5b8176=_0x19b50c;}else{const _0x15d892=_0x39efab['getIntersection'](_0x2d94f4);this['_cutOutSuggestionMarker'](_0x19b50c,_0x15d892);}}const _0x285a7e=this['editor']['plugins']['get']('Users')['me'],_0x1385f4=_0x55f348(),_0x1ba2bd=_0x285a7e['id'];if(_0x5b8176)return this['_setSuggestionRange'](_0x5b8176,this['_model']['createRange'](_0x38cc2f,_0xe23c31)),_0x5b8176;{const _0x3a75b3=this['_setSuggestionData']({'id':_0x1385f4,'type':'formatBlock:'+_0x343a3d,'data':_0x2e6b4a,'createdAt':new Date(),'authorId':_0x1ba2bd,'attributes':_0x303f5d});return this['_addSuggestionMarker']('formatBlock:'+_0x343a3d,_0x1385f4,_0x1ba2bd,this['_model']['createRange'](_0x38cc2f,_0xe23c31)),_0x3a75b3;}}['markMultiRangeBlockFormat'](_0x2d5e97,_0x283ce9,_0xa4ddfd=[],_0x11cd2c=null,_0x54bf47={}){_0x283ce9['formatGroupId']||(_0x283ce9['formatGroupId']=_0x283ce9['commandName']);const _0xf6d225=_0x2d5e97[0x0];_0x283ce9['multipleBlocks']=_0xf6d225['is']('range'),_0x11cd2c=_0x11cd2c||Jt(_0x283ce9);const _0x3940c5=_0xa4ddfd['map'](_0x1b0396=>zt(_0x1b0396,this['_model'])),_0x196bcb=_0xf6d225['is']('range')?_0x2d5e97:_0x2d5e97['map'](_0x555f41=>zt(_0x555f41,this['_model']));if('never'===this['_trackFormatChanges']){const _0x518874=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11cd2c,'accept');return this['forceDefaultExecution'](()=>_0x518874(_0x196bcb,_0x283ce9,_0x54bf47)),null;}_0x3940c5['push'](..._0x196bcb);let _0x2eafb9=!0x0;for(const _0xee7aca of _0x3940c5)if(!this['_rangeIsInLocalUserInsertion'](_0xee7aca)){_0x2eafb9=!0x1;break;}if(_0x2eafb9&&'always'!==this['_trackFormatChanges']){const _0x39edec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11cd2c,'accept');return this['forceDefaultExecution'](()=>_0x39edec(_0x196bcb,_0x283ce9,_0x54bf47)),null;}const _0x1e2bca=this['editor']['plugins']['get']('Users')['me'];for(const _0xda0c5 of this['getSuggestions']()){if(_0xda0c5['author']['id']!=_0x1e2bca['id'])continue;if('formatBlock'!=_0xda0c5['type']||_0xda0c5['data']['formatGroupId']!=_0x283ce9['formatGroupId'])continue;if(!Qt(_0xda0c5,_0x54bf47))continue;const _0x3ed20a=_0xda0c5['subType']==_0x11cd2c;for(let _0x4ad5fe=0x0;_0x4ad5fe<_0x196bcb['length'];_0x4ad5fe++){const _0x5c58d5=_0x196bcb[_0x4ad5fe];for(const _0x32b1e9 of _0xda0c5['getMarkers']()){const _0x536eca=_0x32b1e9['getRange']();if(_0x5c58d5['isEqual'](_0x536eca)){_0x3ed20a?(_0x196bcb['splice'](_0x4ad5fe,0x1),_0x4ad5fe--):_0xda0c5['removeMarker'](_0x32b1e9['name']);break;}}}}if(0x0==_0x196bcb['length'])return null;const _0x2f24b4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11cd2c,'join');for(const _0x330682 of this['getSuggestions']())if(_0x330682['author']['id']==_0x1e2bca['id']&&'formatBlock'==_0x330682['type']&&_0x330682['data']['formatGroupId']==_0x283ce9['formatGroupId']&&_0x330682['subType']==_0x11cd2c&&Qt(_0x330682,_0x54bf47)&&(_0x2f24b4(_0x330682['getRanges'](),_0x196bcb)||_0x2f24b4(_0x196bcb,_0x330682['getRanges']()))){for(const _0x3b3de5 of _0x196bcb)_0x330682['addRange'](_0x3b3de5);return _0x330682;}const _0x84e4ad=_0x55f348(),_0x358180=_0x1e2bca['id'],_0x31cdf7='formatBlock:'+_0x11cd2c,_0x194a2a=this['_setSuggestionData']({'id':_0x84e4ad,'type':_0x31cdf7,'data':_0x283ce9,'createdAt':new Date(),'authorId':_0x358180,'attributes':_0x54bf47});for(const _0x5f476b of _0x196bcb)this['_addSuggestionMarker'](_0x31cdf7,_0x84e4ad,_0x358180,_0x5f476b,u['getMultiRangeId']());return _0x194a2a;}['markDeletion'](_0x31ad1a,_0x352a25=null,_0x7d11c4={}){if(_0x31ad1a['isCollapsed'])return null;const _0x36d54e=this['editor']['plugins']['get']('Users')['me'],_0x145abb=new _0x2eb8ca(_0x31ad1a['start'],_0x31ad1a['end']);for(const {suggestion:_0x2c1192,meta:_0x3ae6e8}of this['_findSuggestions'](_0x145abb,'insertion'))if(_0x3ae6e8['isOwn']&&!_0x3ae6e8['isNextTo']){if(_0x2c1192['isMultiRange']){const _0x25a95f=_0x2c1192['getRanges']()['filter'](_0x4db186=>'$graveyard'!=_0x4db186['root']['rootName']);_0x25a95f['every'](_0x28b44d=>_0x145abb['containsRange'](_0x28b44d,!0x0))&&_0x2c1192['discard']();if(_0x25a95f['some'](_0x169a1d=>_0x169a1d['containsRange'](_0x145abb,!0x0))){const _0x537075=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x352a25,'accept');return this['forceDefaultExecution'](()=>_0x537075([_0x145abb],null,_0x7d11c4)),null;}}else{const _0x2ede25=_0x145abb['getIntersection'](_0x2c1192['getFirstRange']());null!==_0x2ede25&&_0x2c1192['_onDiscard']([_0x2ede25],null,_0x7d11c4);}}if(_0x145abb['detach'](),_0x145abb['isCollapsed']||'$graveyard'==_0x145abb['root']['rootName'])return null;let _0x1fce18=null,_0x1a9234=_0x145abb['start'],_0x4c053a=_0x145abb['end'];const _0x4b1281=this['_findSuggestions'](_0x145abb,'deletion');for(const {suggestion:_0x7a2a5d,meta:_0x576943}of _0x4b1281){const _0x3fa8e5=this['_model']['createRange'](_0x1a9234,_0x4c053a);if(_0x576943['isOwn']&&(this['_mergeNestedSuggestions']||!_0x576943['containsRangeInObject']&&!_0x576943['isInsideObject'])){if(_0x7a2a5d['isMultiRange']){if(!Qt(_0x7a2a5d,_0x7d11c4))continue;let _0x519070=!0x0;for(const _0x14b8f3 of _0x7a2a5d['getRanges']()){if(_0x14b8f3['containsRange'](_0x3fa8e5,!0x0))return _0x7a2a5d;_0x3fa8e5['containsRange'](_0x14b8f3)||(_0x519070=!0x1);}_0x519070&&_0x7a2a5d['discard']();}else{const _0x190a81=_0x7a2a5d['getFirstRange']();if(_0x190a81['containsRange'](_0x3fa8e5,!0x0))return _0x7a2a5d;if(!Qt(_0x7a2a5d,_0x7d11c4)){_0x3fa8e5['containsRange'](_0x190a81)?_0x7a2a5d['removeMarkers']():_0x190a81['containsPosition'](_0x1a9234)?_0x1a9234=_0x190a81['end']:_0x190a81['containsPosition'](_0x4c053a)&&(_0x4c053a=_0x190a81['start']);continue;}_0x1a9234=_0x1a9234['isBefore'](_0x190a81['start'])?_0x1a9234:_0x190a81['start'],_0x4c053a=_0x4c053a['isAfter'](_0x190a81['end'])?_0x4c053a:_0x190a81['end'],_0x7d11c4=Object['assign']({},_0x7a2a5d['attributes']),_0x1fce18?_0x190a81['start']['isBefore'](_0x1fce18['getFirstRange']()['start'])?(_0x1fce18['removeMarkers'](),_0x1fce18=_0x7a2a5d):_0x7a2a5d['removeMarkers']():_0x1fce18=_0x7a2a5d;}}}if(_0x1fce18)return this['_setSuggestionRange'](_0x1fce18,this['_model']['createRange'](_0x1a9234,_0x4c053a)),_0x1fce18;{const _0x39b00b=_0x55f348(),_0x11bd27=this['_model']['createRange'](_0x1a9234,_0x4c053a),_0x18e7c8=_0x36d54e['id'],_0x376089=_0x352a25?'deletion:'+_0x352a25:'deletion',_0x106432=this['_setSuggestionData']({'id':_0x39b00b,'type':_0x376089,'createdAt':new Date(),'authorId':_0x18e7c8,'attributes':_0x7d11c4});return this['_addSuggestionMarker'](_0x376089,_0x39b00b,_0x18e7c8,_0x11bd27),_0x106432;}}['markMultiRangeDeletion'](_0x18baa3,_0x2d4c57='multi',_0x4d998b={}){const _0x5ada18=this['editor']['plugins']['get']('Users')['me'],_0x238297=_0x18baa3['map'](_0x3e00fa=>new _0x2eb8ca(_0x3e00fa['start'],_0x3e00fa['end'])),_0x4c212a=new Set();for(const {suggestion:_0xdb3870,meta:_0x48e7f8}of this['_findSuggestions'](_0x238297,'insertion'))_0x48e7f8['isOwn']&&!_0x48e7f8['isNextTo']&&_0x4c212a['add'](_0xdb3870);for(const _0x790204 of _0x4c212a)if(_0x790204['isMultiRange']){const _0x456648=_0x790204['getRanges']();(!_0x790204['attributes']||!_0x790204['attributes']['skipNestingCheck'])&&(_0x456648['every'](_0x204df5=>_0x238297['some'](_0x24533a=>_0x24533a['containsRange'](_0x204df5,!0x0)))&&_0x790204['discard']());if(_0x238297['every'](_0x3d6688=>_0x456648['some'](_0x354784=>_0x354784['containsRange'](_0x3d6688,!0x0)))){const _0x8e622c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d4c57,'accept');return this['forceDefaultExecution'](()=>_0x8e622c(_0x18baa3,null,_0x4d998b)),null;}}else{const _0x3cb87d=_0x790204['getFirstRange']();_0x238297['some'](_0x129cba=>_0x129cba['containsRange'](_0x3cb87d,!0x0))&&_0x790204['discard']();if(_0x238297['every'](_0x52e6c8=>_0x3cb87d['containsRange'](_0x52e6c8,!0x0))){const _0x1144a0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d4c57,'accept');return this['forceDefaultExecution'](()=>_0x1144a0(_0x238297,null,_0x4d998b)),null;}}const _0x5b6aa2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d4c57,'join');let _0xc80b48=null;for(const _0x30d103 of this['getSuggestions']())if(_0x30d103['author']['id']==_0x5ada18['id']&&_0x30d103['isInContent']&&'deletion'==_0x30d103['type']&&_0x30d103['subType']==_0x2d4c57&&Qt(_0x30d103,_0x4d998b)&&(_0x5b6aa2(_0x30d103['getRanges'](),_0x238297)||_0x5b6aa2(_0x238297,_0x30d103['getRanges']()))){if(_0xc80b48){if(_0x30d103['commentThread']&&_0x30d103['commentThread']['length'])continue;for(const _0x1b73c9 of _0x30d103['getRanges']())_0xc80b48['isIntersectingWithRange'](_0x1b73c9)||_0xc80b48['addRange'](_0x1b73c9);_0x30d103['removeMarkers']();}else{_0xc80b48=_0x30d103;for(const _0xf74f2c of _0x238297)_0x30d103['isIntersectingWithRange'](_0xf74f2c)||_0x30d103['addRange'](_0xf74f2c);}}if(_0xc80b48)return _0xc80b48;_0x4c212a['clear']();for(const {suggestion:_0x32fed9,meta:_0x5bd423}of this['_findSuggestions'](_0x238297,'deletion'))_0x5bd423['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5bd423['containsRangeInObject']&&!_0x5bd423['isInsideObject'])&&Qt(_0x32fed9,_0x4d998b)&&_0x4c212a['add'](_0x32fed9);for(const _0xed414a of _0x4c212a){const _0x2d583e=_0xed414a['getRanges']();if(!_0x4d998b||!_0x4d998b['skipNestingCheck']){if(_0x238297['every'](_0x3d13fa=>_0x2d583e['some'](_0x544821=>_0x544821['containsRange'](_0x3d13fa,!0x0))))return _0xed414a;}(!_0xed414a['attributes']||!_0xed414a['attributes']['skipNestingCheck'])&&(_0x2d583e['every'](_0x5dd50e=>_0x238297['some'](_0x4eab56=>_0x4eab56['containsRange'](_0x5dd50e,!0x0)))&&_0xed414a['discard']());}const _0x2be30c=_0x55f348(),_0x4645b7=_0x5ada18['id'],_0x4d6209='deletion:'+_0x2d4c57,_0x568e81=this['_setSuggestionData']({'id':_0x2be30c,'type':_0x4d6209,'createdAt':new Date(),'authorId':_0x4645b7,'attributes':_0x4d998b});for(const _0xbb7323 of _0x238297)_0xbb7323['detach'](),_0xbb7323['isCollapsed']||'$graveyard'==_0xbb7323['root']['rootName']||this['_addSuggestionMarker'](_0x4d6209,_0x2be30c,_0x4645b7,_0xbb7323,u['getMultiRangeId']());return _0x568e81;}['markAttributeChange'](_0x3ac5e8,_0x75aabc,_0x41c9ae,_0xd0021a,_0x44394b){if(_0x3ac5e8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc81b5=this['editor']['plugins']['get']('Users')['me']['id'],_0x11cdad=Array['from'](this['_suggestions']['values']())['filter'](_0xec8c7a=>'attribute'==_0xec8c7a['type']&&_0xec8c7a['data']['key']==_0x75aabc&&_0xec8c7a['isIntersectingWithRange'](_0x3ac5e8));if('default'===this['_trackFormatChanges']){const _0x59b499=this['_findSuggestions'](_0x3ac5e8,'insertion')['filter'](({meta:_0x28de65})=>_0x28de65['isOwn']&&!_0x28de65['isInsideObject']&&!_0x28de65['isNextTo'])['map'](({suggestion:_0x66c19})=>_0x66c19);_0x11cdad['unshift'](..._0x59b499);}const _0x286560=new Map([[_0x3ac5e8,_0x41c9ae]]);for(const _0x264583 of _0x11cdad){const _0x2306ef='attribute'==_0x264583['type']?_0x264583['data']['oldValue']:void 0x0,_0x4484f3=_0x264583['getFirstRange'](),_0x5d9048=Array['from'](_0x286560['keys']())['find'](_0x5348fa=>_0x5348fa['isIntersecting'](_0x4484f3));if(!_0x5d9048)continue;const _0x3491cc=_0x5d9048['getDifference'](_0x4484f3);this['_isBlockAttribute'](_0x75aabc)&&'insertion'==_0x264583['type']&&0x0!=_0x3491cc['length']||(_0x286560['delete'](_0x5d9048),_0x3491cc['forEach'](_0x538596=>{_0x286560['set'](_0x538596,_0x41c9ae);}),'insertion'!=_0x264583['type']&&_0x2306ef!=_0xd0021a&&_0x286560['set'](_0x5d9048['getIntersection'](_0x4484f3),_0x2306ef));}const _0x2093a0=[];for(const [_0xbe4245,_0x10bd42]of _0x286560){const _0x4c9805=_0x55f348(),_0x48911f={'key':_0x75aabc,'oldValue':_0x10bd42,'newValue':_0xd0021a};_0x75aabc['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':_0x75aabc});const _0x5c5be0=('attribute:'+(_0x75aabc+'|'+Jt({'newValue':_0xd0021a})))['substring'](0x0,0x3c),_0x53ad1e=this['_setSuggestionData']({'id':_0x4c9805,'type':_0x5c5be0,'data':_0x48911f,'createdAt':new Date(),'authorId':_0xc81b5,'attributes':_0x44394b});_0x2093a0['push'](_0x53ad1e),this['_addSuggestionMarker'](_0x5c5be0,_0x4c9805,_0xc81b5,_0xbe4245);}return _0x2093a0;}['enableDefaultAttributesIntegration'](_0xfbe81){this['enableCommand'](_0xfbe81,(_0x8d2d27,..._0x47f7ab)=>{this['_recordAttributeChanges'](()=>{_0x8d2d27(..._0x47f7ab);});});}['registerBlockAttribute'](_0x5b0b56){this['_blockAttributeKeys']['add'](_0x5b0b56);}['registerInlineAttribute'](_0x723f4e){this['_inlineAttributeKeys']['add'](_0x723f4e);}['_getAttributeKey'](_0x598e3e){return'attribute'==_0x598e3e['type']?_0x598e3e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4f8912,_0x284752){const _0x3d5ce9=_0x4f8912['getFirstMarker']();this['_model']['change'](_0x173e17=>{_0x173e17['updateMarker'](_0x3d5ce9,{'range':_0x284752});});}['_addThreadToSuggestion'](_0x1655e5){const _0x2f10a2=_0x1655e5['id'],_0x55fd08=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2f10a2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x55fd08,'threadId':_0x2f10a2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x35e5d6=this['_commentsRepository']['getCommentThread'](_0x2f10a2);_0x35e5d6['unbind']('isRemovable'),_0x35e5d6['isRemovable']=!0x1,_0x1655e5['commentThread']=_0x35e5d6;}['_checkSuggestionCorrectness'](_0x36c76c,_0x164b10,_0x2f0bee,_0x300cb4){if(_0x36c76c['type']!=_0x164b10||_0x36c76c['subType']!=_0x2f0bee||_0x36c76c['creator']['id']!=_0x300cb4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4aa60d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4961c2,_0x5d2bb2){const _0x199373=_0x4961c2['getFirstRange']();if(_0x5d2bb2['isEqual'](_0x199373))_0x4961c2['removeMarkers']();else{if(_0x199373['containsRange'](_0x5d2bb2)){const _0x3fbe12=this['_model']['createPositionAt'](_0x5d2bb2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4961c2,this['_model']['createRange'](_0x199373['start'],_0x3fbe12));const _0x29d9a0=_0x55f348(),_0xae246=_0x4961c2['creator']['id'],_0x3fe6bd=_0x4961c2['type']+':'+_0x4961c2['subType'];this['_setSuggestionData']({'id':_0x29d9a0,'type':_0x3fe6bd,'createdAt':new Date(),'authorId':_0xae246,'data':_0x4961c2['data'],'attributes':_0x4961c2['attributes']});const _0x5aeb65=this['_model']['createPositionAt'](_0x5d2bb2['end']['parent'],'after'),_0x211b02=this['_model']['createRange'](_0x5aeb65,_0x199373['end']);this['_addSuggestionMarker'](_0x3fe6bd,_0x29d9a0,_0xae246,_0x211b02);}else{if(_0x199373['containsPosition'](_0x5d2bb2['start'])){const _0x344c77=this['_model']['createPositionAt'](_0x5d2bb2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4961c2,this['_model']['createRange'](_0x199373['start'],_0x344c77));}else{const _0x4a0950=this['_model']['createPositionAt'](_0x5d2bb2['end']['parent'],'after');this['_setSuggestionRange'](_0x4961c2,this['_model']['createRange'](_0x4a0950,_0x199373['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x17f03e){for(const {suggestion:_0x3774f9,meta:_0x30b075}of this['_findSuggestions'](_0x17f03e,'insertion')){if(!_0x30b075['isOwn'])continue;const _0x567894=_0x3774f9['getRanges']();for(const _0x138d05 of _0x567894)if(!_0x17f03e['getDifference'](_0x138d05)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x37fda1){const _0x472f46=this['editor']['plugins']['get']('Users')['getUser'](_0x37fda1);if(!_0x472f46)throw new _0x4aa60d('track-changes-user-not-found',this);return _0x472f46;}['_getExternalAuthor'](_0x252091){const _0x47bcce=this['editor']['plugins']['get']('Users'),_0x51725e=_0x17cf62('external:'+_0x252091),_0x360170=_0x47bcce['getUser'](_0x51725e);return _0x360170||_0x47bcce['addUser']({'id':_0x51725e,'name':_0x252091});}['_createSuggestion'](_0x5ee60d,_0x300f47,_0x31d680,_0x578720,_0x48e67f){const _0x4bbbdb=this['_getAuthorFromId'](_0x578720),_0x58eef6=this['_suggestionFactory']['buildSuggestion'](_0x5ee60d,_0x300f47,_0x31d680,_0x4bbbdb,_0x48e67f,_0x301e2c=>{this['_updateSuggestionData'](_0x31d680,{'attributes':_0x301e2c});const _0x26b2e0=this['getSuggestion'](_0x31d680);this['_joinWithAdjacentSuggestions'](new Set([_0x26b2e0])),this['_refreshSuggestionsChain'](new Set([_0x26b2e0]));});return this['listenTo'](_0x58eef6,'accept',()=>{this['_updateSuggestionData'](_0x31d680,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x58eef6,'discard',()=>{this['_updateSuggestionData'](_0x31d680,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x31d680,_0x58eef6),this['_suggestionState']['set'](_0x58eef6,'notReady'),_0x58eef6;}['_splitMarkerName'](_0x14afee){const _0x42c738=_0x14afee['split'](':');return{'group':_0x42c738[0x0],'type':_0x42c738[0x1],'subType':_0x42c738['length']>=0x5?_0x42c738[0x2]:null,'id':_0x42c738['length']<0x5?_0x42c738[0x2]:_0x42c738[0x3],'authorId':_0x42c738['length']<0x5?_0x42c738[0x3]:_0x42c738[0x4],'markerCount':0x6==_0x42c738['length']?_0x42c738[0x5]:null};}['_breakSuggestionMarker'](_0x30f31d,_0x2b8ed5,_0x3690d2){const _0x8c1d40=_0x30f31d['getFirstRange'](),_0x33cf2b=_0x8c1d40['start'],_0x448c6c=_0x8c1d40['end'];this['_setSuggestionRange'](_0x30f31d,this['_model']['createRange'](_0x33cf2b,_0x2b8ed5));const _0x4e30dc=_0x55f348(),_0x178389=_0x30f31d['creator']['id'],_0x1245c8=_0x30f31d['type']+(_0x30f31d['subType']?':'+_0x30f31d['subType']:'');this['_setSuggestionData']({'id':_0x4e30dc,'type':_0x1245c8,'createdAt':new Date(),'authorId':_0x178389,'originalSuggestionId':_0x30f31d['id'],'attributes':_0x30f31d['attributes'],'data':_0x30f31d['data']});const _0x5904cf=this['_getAttributeKey'](_0x30f31d);('formatBlock'==_0x30f31d['type']||_0x5904cf&&this['_isBlockAttribute'](_0x5904cf))&&(_0x3690d2=this['_model']['createPositionBefore'](_0x3690d2['parent'])),this['_addSuggestionMarker'](_0x1245c8,_0x4e30dc,_0x178389,this['_model']['createRange'](_0x3690d2,_0x448c6c));}['_findSuggestions'](_0x38e48c,_0x21a659=null){const _0x1fc004=[],_0x5893c1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x38e48c)||(_0x38e48c=[_0x38e48c]);for(const _0x50aeca of this['getSuggestions']()){if(!_0x50aeca['isInContent'])continue;if(_0x21a659&&_0x50aeca['type']!=_0x21a659)continue;let _0x372df8=!0x1;for(const _0x5c931c of _0x50aeca['getRanges']()){for(const _0x2eb458 of _0x38e48c){const _0x1287bb=_0x2eb458['start']['isEqual'](_0x5c931c['end'])||_0x2eb458['end']['isEqual'](_0x5c931c['start']);if(_0x1287bb||_0x2eb458['getIntersection'](_0x5c931c)){const _0x3d1cdd=_0x2eb458['containsRange'](_0x5c931c)&&Gt(this['_model']['schema'],_0x5c931c['start'],_0x2eb458),_0x3b6571=_0x5c931c['containsRange'](_0x2eb458)&&Gt(this['_model']['schema'],_0x2eb458['start'],_0x5c931c);_0x1fc004['push']({'suggestion':_0x50aeca,'meta':{'isOwn':_0x5893c1==_0x50aeca['author'],'isNextTo':_0x1287bb,'isInsideObject':_0x3d1cdd,'containsRangeInObject':_0x3b6571}}),_0x372df8=!0x0;break;}}if(_0x372df8)break;}}return _0x1fc004;}['_addSuggestionMarker'](_0x8fa38a,_0x45e269,_0xb4d3df,_0x5bbee5,_0x3454ca){this['_model']['change'](_0x3bfaf2=>{let _0x40ab34='suggestion:'+_0x8fa38a+':'+_0x45e269+':'+_0xb4d3df;_0x3454ca&&(_0x40ab34=_0x40ab34+':'+_0x3454ca),_0x3bfaf2['addMarker'](_0x40ab34,{'range':_0x5bbee5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x54554f){const _0x374b71=_0x54554f['previous'],_0xbe0b15=_0x54554f['next'];_0x54554f['previous']=null,_0x54554f['next']=null,null!=_0x374b71&&_0x374b71['next']==_0x54554f&&(_0x374b71['next']=_0xbe0b15),null!=_0xbe0b15&&_0xbe0b15['previous']==_0x54554f&&(_0xbe0b15['previous']=_0x374b71),'ready'==this['_suggestionState']['get'](_0x54554f)&&(this['_suggestionState']['set'](_0x54554f,'removed'),this['fire']('suggestionUnloaded',_0x54554f,_0x374b71,_0xbe0b15));}['_setSuggestionData'](_0x47d225){const _0x52d7fc=_0x47d225['id'],_0x4fa566=this['addSuggestionData'](_0x47d225);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x768afc=this['editor']['plugins']['get']('PendingActions'),_0x5c81a7=_0x4fa566['hasComments'],_0x332f87=_0x4fa566['subType']?_0x4fa566['type']+':'+_0x4fa566['subType']:_0x4fa566['type'],_0x416aef=this['editor']['locale'],_0x350509=_0x768afc['add'](o(_0x416aef,'PENDING_ACTION_SUGGESTION')),_0x3254ad={'id':_0x52d7fc,'type':_0x332f87,'hasComments':_0x5c81a7,'data':_0x47d225['data']||null,'originalSuggestionId':_0x47d225['originalSuggestionId']||null,'attributes':_0x4fa566['attributes']};this['_adapter']['addSuggestion'](_0x3254ad)['then'](_0x545e67=>{_0x4fa566['_saved']=!0x0,_0x768afc['remove'](_0x350509),_0x545e67&&_0x545e67['createdAt']&&(this['_suggestions']['get'](_0x52d7fc)['createdAt']=_0x545e67['createdAt']);})['catch'](_0x5dd460=>{throw _0x49f2b4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4fa566['discard']();}),_0x4fa566['stopListening'](),this['_suggestions']['delete'](_0x4fa566['id']),this['_suggestionState']['delete'](_0x4fa566),_0x5dd460;});}return _0x4fa566;}['_isBlockAttribute'](_0x529b07){return this['_blockAttributeKeys']['has'](_0x529b07);}['_updateSuggestionData'](_0x36a434,_0x543f26){const _0x1b2a6e=this['editor']['plugins']['get']('PendingActions'),_0x576b8e=this['getSuggestion'](_0x36a434);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x576b8e['_saved']){const _0x59115c=_0x1b2a6e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x36a434,_0x543f26)['then'](()=>{_0x1b2a6e['remove'](_0x59115c);});}else _0x576b8e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x36a434,_0x543f26);});}}['_getSuggestionData'](_0x3dbfd0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4aa60d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3dbfd0);}['_handleNewSuggestionMarker'](_0x24c263){const {id:_0x15b4b0,type:_0x522cd4,subType:_0x4211f9,authorId:_0x1460ba}=this['_splitMarkerName'](_0x24c263),_0x3e3cb2=this['_suggestions']['get'](_0x15b4b0)||this['_createSuggestion'](_0x522cd4,_0x4211f9,_0x15b4b0,_0x1460ba,{});switch(this['_checkSuggestionCorrectness'](_0x3e3cb2,_0x522cd4,_0x4211f9,_0x1460ba),this['_suggestionState']['get'](_0x3e3cb2)){case'notReady':this['_getSuggestionData'](_0x15b4b0)['then'](_0x155111=>{let _0x46137a=Promise['resolve']();_0x155111['hasComments']&&(_0x46137a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x15b4b0})),_0x46137a['then'](()=>{this['addSuggestionData'](_0x155111)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e3cb2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x15b4b0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e3cb2,'ready'),this['fire']('suggestionLoaded',_0x3e3cb2);break;case'ready':this['fire']('suggestionChanged',_0x3e3cb2);}return _0x3e3cb2['addMarkerName'](_0x24c263),_0x3e3cb2;}['_refreshSuggestionsChain'](_0x2ea71e){const _0x198ac1=Array['from'](_0x2ea71e),_0x29e22d=_0x198ac1['filter'](_0x59fd93=>'attribute'==_0x59fd93['type']);this['_refreshAttributeSuggestionsChain'](_0x29e22d);const _0xa6276d=_0x198ac1['filter'](_0x4b3d17=>!_0x4b3d17['isMultiRange']&&'attribute'!=_0x4b3d17['type']),_0x261052=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x242db3=>!_0x242db3['isMultiRange']&&'attribute'!=_0x242db3['type']),_0x41b77b=_0x261052['filter'](_0x407fe0=>!_0x2ea71e['has'](_0x407fe0)),_0x48b814=new Map(_0x261052['map'](_0x502c39=>[_0x502c39,this['_suggestionFactory']['getSuggestionCallback'](_0x502c39['type'],_0x502c39['subType'],'chain')])),_0x33acc3=new Map(_0x261052['map'](_0x34ecac=>[_0x34ecac,_0x34ecac['getFirstRange']()])),_0x5932fd=new Set(),_0x1edbda=new Set();for(let _0x58db83=0x0;_0x58db83<_0xa6276d['length'];_0x58db83++)_0x234350(_0xa6276d[_0x58db83],_0xa6276d,_0x58db83+0x1);for(let _0x3c21ce=0x0;_0x3c21ce<_0xa6276d['length'];_0x3c21ce++)_0x234350(_0xa6276d[_0x3c21ce],_0x41b77b,0x0);const _0xa37dfc=new Set();for(let _0x562476=0x0;_0x562476<_0xa6276d['length'];_0x562476++){const _0x1cfcad=_0xa6276d[_0x562476];!_0x1edbda['has'](_0x1cfcad)&&_0x1cfcad['previous']&&(_0xa37dfc['add'](_0x1cfcad['previous']),_0x1cfcad['previous']['next']===_0x1cfcad&&(_0x1cfcad['previous']['next']=null),_0x1cfcad['previous']=null),!_0x5932fd['has'](_0x1cfcad)&&_0x1cfcad['next']&&(_0xa37dfc['add'](_0x1cfcad['next']),_0x1cfcad['next']['previous']===_0x1cfcad&&(_0x1cfcad['next']['previous']=null),_0x1cfcad['next']=null);}function _0x234350(_0x657674,_0x35dfc4,_0x4f290e){for(let _0x28f6ab=_0x4f290e;_0x28f6ab<_0x35dfc4['length'];_0x28f6ab++){const _0x56fe22=_0x229628(_0x657674,_0x35dfc4[_0x28f6ab]);_0x56fe22&&(_0x56fe22[0x0]['next']=_0x56fe22[0x1],_0x56fe22[0x1]['previous']=_0x56fe22[0x0],_0x5932fd['add'](_0x56fe22[0x0]),_0x1edbda['add'](_0x56fe22[0x1]));}}function _0x229628(_0x4ac316,_0x138196){if(_0x4ac316['author']['id']!==_0x138196['author']['id'])return null;const _0x5b505e=_0x48b814['get'](_0x4ac316)(_0x4ac316,_0x138196,_0x33acc3['get'](_0x4ac316),_0x33acc3['get'](_0x138196));if(!_0x5b505e)return null;return _0x48b814['get'](_0x138196)(_0x4ac316,_0x138196,_0x33acc3['get'](_0x4ac316),_0x33acc3['get'](_0x138196))?_0x5b505e[0x1]['commentThread']&&_0x5b505e[0x1]['commentThread']['length']?null:_0x5b505e:null;}_0xa37dfc['size']&&this['_refreshSuggestionsChain'](_0xa37dfc);}['_refreshAttributeSuggestionsChain'](_0x5bf289){if(0x0==_0x5bf289['length'])return;const _0x1303c5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa91a22=>'attribute'==_0xa91a22['type']&&_0xa91a22['_isDataLoaded']),_0x46c6c7=[],_0x20f2c6=new Map();for(const _0x547c40 of _0x1303c5){const _0x243d0c=_0x17cf62(_0x547c40['attributes']);_0x20f2c6['has'](_0x243d0c)||(_0x20f2c6['set'](_0x243d0c,_0x46c6c7['length']),_0x46c6c7['push']([]));const _0x336f2d=_0x20f2c6['get'](_0x243d0c);_0x46c6c7[_0x336f2d]['push'](_0x547c40);}!(function(){_0x46c6c7['sort']((_0x22b996,_0x66d36d)=>{const _0x479d0d=_0x22b996[0x0]['createdAt'],_0x53d4ce=_0x66d36d[0x0]['createdAt'];return _0x479d0d==_0x53d4ce?_0x22b996[0x0]['attributes']['groupId']<_0x66d36d[0x0]['attributes']['groupId']?-0x1:0x1:_0x479d0d<_0x53d4ce?-0x1:0x1;});for(const _0x3186ec of _0x46c6c7)_0x3186ec['sort']((_0x315b99,_0x5188c1)=>_0x315b99['id']<_0x5188c1['id']?-0x1:0x1);}());for(let _0x527eb7=0x0;_0x527eb7<_0x46c6c7['length'];_0x527eb7++){if(0x0==_0x46c6c7[_0x527eb7]['length'])continue;const _0x3b7398=[];for(let _0x2d1325=_0x527eb7+0x1;_0x2d1325<_0x46c6c7['length'];_0x2d1325++)0x0!=_0x46c6c7[_0x2d1325]['length']&&_0x553c47(_0x46c6c7[_0x527eb7],_0x46c6c7[_0x2d1325])&&_0x3b7398['push'](_0x2d1325);for(const _0x46dbb1 of _0x3b7398)_0x46c6c7[_0x527eb7]=_0x46c6c7[_0x527eb7]['concat'](_0x46c6c7[_0x46dbb1]),_0x46c6c7[_0x46dbb1]=[];}for(const _0x4a0615 of _0x46c6c7)for(let _0x15053d=0x0;_0x15053d<_0x4a0615['length'];_0x15053d++){const _0xaeb35e=_0x4a0615[_0x15053d+0x1]||null;_0x4a0615[_0x15053d]['next']!==_0xaeb35e&&(_0x4a0615[_0x15053d]['next']=_0xaeb35e);}for(const _0x3c8427 of _0x46c6c7)for(let _0x124c1c=0x0;_0x124c1c<_0x3c8427['length'];_0x124c1c++){const _0x599e54=_0x3c8427[_0x124c1c-0x1]||null;_0x3c8427[_0x124c1c]['previous']!==_0x599e54&&(_0x3c8427[_0x124c1c]['previous']=_0x599e54);}function _0x553c47(_0x2587dc,_0x5b287b){if(_0x2587dc[0x0]['attributes']['groupId']!==_0x5b287b[0x0]['attributes']['groupId']&&_0x2587dc[0x0]['author']!==_0x5b287b[0x0]['author'])return!0x1;if(!function(_0x14f42d,_0xfdf77f){if(!_0x14f42d['hasComments']&&!_0xfdf77f['hasComments'])return!0x0;if(_0x14f42d['hasComments']&&_0xfdf77f['hasComments'])return!0x1;if(_0x14f42d['hasComments']&&_0xfdf77f['createdAt']<_0x14f42d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xfdf77f['hasComments']&&_0x14f42d['createdAt']<_0xfdf77f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2587dc[0x0],_0x5b287b[0x0]))return!0x1;const _0x47d8b6=Vt(_0x2587dc[0x0]['attributes'],'groupId'),_0x1eb579=Vt(_0x5b287b[0x0]['attributes'],'groupId');if(!_0x28ebbc(_0x47d8b6,_0x1eb579))return!0x1;return!!_0x2587dc['every'](_0x1499fb=>_0x5b287b['some'](_0x1e5b65=>_0x1499fb['getFirstRange']()['isEqual'](_0x1e5b65['getFirstRange']())))&&_0x5b287b['every'](_0x4b787c=>_0x2587dc['some'](_0x3dcee5=>_0x4b787c['getFirstRange']()['isEqual'](_0x3dcee5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4a5894){const _0x57b6ff=Array['from'](_0x4a5894),_0x2094ff=this['getSuggestions']({'skipNotAttached':!0x0}),_0x183b4c=_0x2094ff['filter'](_0x146a9a=>!_0x4a5894['has'](_0x146a9a)),_0x3c2514=new Map(_0x57b6ff['map'](_0x58eea1=>[_0x58eea1,this['_suggestionFactory']['getSuggestionCallback'](_0x58eea1['type'],_0x58eea1['subType'],'join')])),_0xbf6a84=new Map(_0x2094ff['map'](_0x276404=>[_0x276404,_0x276404['getRanges']()]));for(let _0x46217b=0x0;_0x46217b<_0x57b6ff['length'];_0x46217b++){if(_0x35464d(this,_0x57b6ff[_0x46217b],_0x57b6ff,_0x46217b+0x1))return!0x0;}for(let _0x461a5f=0x0;_0x461a5f<_0x57b6ff['length'];_0x461a5f++){if(_0x35464d(this,_0x57b6ff[_0x461a5f],_0x183b4c,0x0))return!0x0;}return!0x1;function _0x35464d(_0x370276,_0x11292c,_0x21f471,_0x16afee){for(let _0x5ada84=_0x16afee;_0x5ada84<_0x21f471['length'];_0x5ada84++){const _0x4c7fba=_0x21f471[_0x5ada84];if(_0x4c7fba['type']!==_0x11292c['type']||_0x4c7fba['author']['id']!==_0x11292c['author']['id']||_0x4c7fba['subType']!==_0x11292c['subType'])continue;if(!Wt(_0x11292c,_0x4c7fba))continue;if('attribute'==_0x11292c['type']&&_0x11292c['data']['oldValue']!=_0x4c7fba['data']['oldValue'])continue;if('attribute'==_0x11292c['type']&&_0x370276['_isBlockAttribute'](_0x11292c['data']['key']))continue;if('formatBlock'==_0x11292c['type']){const _0x2cb917=_0x370276['editor']['model'],_0x665753=_0x11292c['getContainedElement']();if(_0x665753&&(_0x2cb917['schema']['isObject'](_0x665753)||_0x2cb917['schema']['isLimit'](_0x665753)))continue;}const _0x4f41f1=_0x3c2514['get'](_0x11292c),_0x1ef6c3=_0xbf6a84['get'](_0x11292c),_0x507334=_0xbf6a84['get'](_0x4c7fba),_0x26aeae=_0x11292c['commentThread']&&_0x11292c['commentThread']['length'],_0xd40fd1=_0x4c7fba['commentThread']&&_0x4c7fba['commentThread']['length'];if(!_0x26aeae&&_0x4f41f1(_0x507334,_0x1ef6c3))return _0x370276['_joinSuggestions'](_0x4c7fba,_0x11292c),_0xbf6a84['delete'](_0x11292c),!0x0;if(!_0xd40fd1&&_0x4f41f1(_0x1ef6c3,_0x507334))return _0x370276['_joinSuggestions'](_0x11292c,_0x4c7fba),_0xbf6a84['delete'](_0x4c7fba),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4cc8fd,_0x2a3c28){if(_0x4cc8fd['isMultiRange']){for(const _0x5781f5 of _0x2a3c28['getRanges']())_0x4cc8fd['addRange'](_0x5781f5);}else{const _0x5c720d=_0x2a3c28['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4cc8fd,this['_model']['createRange'](_0x4cc8fd['getFirstRange']()['start'],_0x5c720d));}_0x2a3c28['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c2431,_0x883fe8,_0x4cc624){const _0x49fe69=_0x3c2431['startsWith']('format')||_0x3c2431['startsWith']('attribute')?'FORMATTING':_0x3c2431['toUpperCase']();return o(this['editor']['locale'],_0x883fe8+'_'+_0x49fe69+'_SUGGESTION_ANNOUNCEMENT',_0x4cc624);}['_initAriaMarkerChangeAnnouncements'](){const _0x2df91e=this['editor'];if(!_0x2df91e['ui'])return;const {ariaLiveAnnouncer:_0x1e50c4}=_0x2df91e['ui'];_0x13200b(this['_model'],({left:_0x4c5864,entered:_0x3c4053})=>{for(const _0x4387d4 of _0x4c5864){const {group:_0x441835,type:_0x2c2df2}=this['_splitMarkerName'](_0x4387d4['name']);if('suggestion'===_0x441835){_0x1e50c4['announce'](this['_getMarkerAnnouncementText'](_0x2c2df2,'LEAVE'));break;}}for(const _0x52a27f of _0x3c4053){const {group:_0x3b4865,type:_0x2ac05f}=this['_splitMarkerName'](_0x52a27f['name']);if('suggestion'===_0x3b4865){_0x1e50c4['announce'](this['_getMarkerAnnouncementText'](_0x2ac05f,'ENTER',_0x26f516(_0x3abdc1)));break;}}});}['_processAttributeChanges'](_0x501831){if(this['_recordAttributeSuggestions'])return!0x1;const _0x17fa5d=this['editor'],_0x102392=_0x17fa5d['model']['document']['differ']['getChanges']();if(0x0==_0x102392['length'])return!0x1;const _0x1f82ac=[],_0x2aecfe=_0x102392['filter'](_0x172479=>'attribute'==_0x172479['type']),_0x43dcbb=_0x102392['filter'](_0x536885=>'insert'==_0x536885['type']&&'$text'!=_0x536885['name']),_0x448af1=_0x102392['filter'](_0x258bfd=>'remove'==_0x258bfd['type']&&'$text'!=_0x258bfd['name']);for(const _0xe369b5 of _0x2aecfe)_0x1f82ac['push']({'key':_0xe369b5['attributeKey'],'newValue':_0xe369b5['attributeNewValue'],'oldValue':_0xe369b5['attributeOldValue'],'range':qt(_0xe369b5['range'],_0x17fa5d['model'])});for(const _0x219261 of _0x43dcbb){const _0x45a835=_0x448af1['find'](_0x1f7889=>_0x1f7889['position']['isEqual'](_0x219261['position']));_0x45a835&&_0x1f82ac['push']({'key':m,'newValue':_0x219261['name'],'oldValue':_0x45a835['name'],'range':_0x17fa5d['model']['createRangeOn'](_0x219261['position']['nodeAfter'])});}return 0x0!=_0x1f82ac['length']&&this['_reduceExistingSuggestions'](_0x501831,_0x1f82ac);}['_processAttributeSuggestions'](_0x7eeb03){let _0x500a81=!0x1;const _0xdba25f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b6dc0=>_0x1b6dc0['data']['newRange']&&_0x1b6dc0['name']['startsWith']('suggestion:attribute:'));for(const _0x279745 of _0xdba25f){const {subType:_0x547f0d,id:_0x47adcd}=this['_splitMarkerName'](_0x279745['name']),_0x31d665=_0x547f0d['split']('|')[0x0];for(const _0x472840 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x472840['id']!=_0x47adcd&&'attribute'==_0x472840['type']&&_0x472840['data']&&_0x472840['data']['key']==_0x31d665&&_0x472840['getFirstRange']()['isIntersecting'](_0x279745['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x472840,_0x279745['data']['newRange'],_0x7eeb03),_0x500a81=!0x0);}return _0x500a81;}['_recordAttributeChanges'](_0x3d2781){this['_recordAttributeSuggestions']=!0x0,_0x3d2781();}['_isRegisteredAttribute'](_0x513641){const _0x28cf22=this['_isBlockAttribute'](_0x513641),_0x1133a4=this['_inlineAttributeKeys']['has'](_0x513641);return _0x28cf22||_0x1133a4;}['_reduceExistingSuggestions'](_0x4febe3,_0x250f3a){if(0x0==_0x250f3a['length'])return!0x1;let _0x35e988=!0x1;for(const _0x49cc40 of _0x250f3a){const _0x450af8=this['_findSuggestions'](_0x49cc40['range'],'attribute')['filter'](_0x2e3244=>!_0x2e3244['meta']['isNextTo'])['map'](_0x213cdf=>_0x213cdf['suggestion']),_0x5d5eb9=_0x17cf62({'newValue':_0x49cc40['newValue']});_0x450af8['filter'](_0xd930c=>{const [_0x25e2c5,_0x464b27]=_0xd930c['subType']['split']('|');return _0x25e2c5==_0x49cc40['key']&&_0x464b27!=_0x5d5eb9;})['forEach'](_0x255fd0=>{this['_reduceSuggestionAttributeRange'](_0x255fd0,_0x49cc40['range'],_0x4febe3),_0x35e988=!0x0;});}return _0x35e988;}['_reduceSuggestionAttributeRange'](_0x5598b3,_0x78ac6c,_0x5af814){const _0x26debc=_0x5598b3['getFirstRange']()['getDifference'](_0x78ac6c);0x0!==_0x26debc['length']?0x1!==_0x26debc['length']?this['_breakSuggestionMarker'](_0x5598b3,_0x78ac6c['start'],_0x78ac6c['end']):this['_setSuggestionRange'](_0x5598b3,_0x26debc[0x0]):_0x5af814['removeMarker'](_0x5598b3['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1300ac){this['_editor']=_0x1300ac,this['_model']=_0x1300ac['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1a97e3,_0xf94008,_0x2d3c1d,_0x22ff14,_0x2c6978,_0x57d4b9){return new u(this['_model'],{'type':_0x1a97e3,'subType':_0xf94008,'id':_0x2d3c1d,'author':_0x22ff14,'creator':_0x22ff14,'attributes':_0x2c6978,'onAttributesChange':_0x57d4b9,'onAccept':(..._0x506ea2)=>this['getSuggestionCallback'](_0x1a97e3,_0xf94008,'accept')(..._0x506ea2),'onDiscard':(..._0x18cc90)=>this['getSuggestionCallback'](_0x1a97e3,_0xf94008,'discard')(..._0x18cc90)});}['registerCustomCallback'](_0x19d669,_0x2d4a32,_0x38da99,_0x336323){const _0xd411e0=_0x19d669+':'+_0x2d4a32+':'+_0x38da99;this['_customCallbacks']['set'](_0xd411e0,_0x336323);}['getSuggestionCallback'](_0x16f274,_0x4d994b,_0xf02d34){const _0x4ac2f6=_0x16f274+':'+_0x4d994b+':'+_0xf02d34;return this['_customCallbacks']['get'](_0x4ac2f6)||this['_defaultCallbacks']['get'](_0x16f274+':'+_0xf02d34);}['_registerDefaultCallbacks'](){const _0x34ae82=()=>!0x1,_0xf3da16=_0x398da4=>{_0x398da4['sort']((_0x10c433,_0x40731d)=>_0x10c433['start']['isBefore'](_0x40731d['start'])?0x1:-0x1),this['_model']['change'](_0x257070=>{for(const _0x2f76a6 of _0x398da4){let _0x1f7743;_0x1f7743=_0x2f76a6['end']['isAtEnd']&&_0x2f76a6['end']['parent']==_0x2f76a6['start']['nodeAfter']?_0x257070['createSelection'](_0x2f76a6['start']['nodeAfter'],'on'):_0x257070['createSelection'](_0x2f76a6),this['_model']['deleteContent'](_0x1f7743,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x258be6=(_0x4cc3c0,_0x2df01a)=>{_0x2df01a&&this['_model']['change'](_0x43ea9b=>{const {commandName:_0x3ea4f0,commandParams:_0x189559=[]}=_0x2df01a,_0x2f4885=_0x4cc3c0['map'](_0x399882=>(Ft(_0x399882)&&(_0x399882=this['_model']['createRange'](_0x399882['end'])),_0x399882))['filter'](_0x1851bd=>'$graveyard'!==_0x1851bd['root']['rootName']);if(_0x2f4885['length']<0x1)return;const _0x1c67ee=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3bbc32=>_0x2eb8ca['fromRange'](_0x3bbc32));_0x43ea9b['setSelection'](_0x2f4885);for(const _0x41554d of this['_editor']['commands']['commands']())_0x41554d['refresh']();_0x189559['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3ea4f0,..._0x189559);const _0x4e3343=_0x1c67ee['filter'](_0x44947c=>'$graveyard'!=_0x44947c['root']['rootName']);_0x4e3343['length']>0x0&&_0x43ea9b['setSelection'](_0x4e3343);for(const _0x2fabd9 of _0x1c67ee)_0x2fabd9['detach']();});},_0x3a7b34=(_0x1f9a7a,_0x5a05fd)=>0x1==_0x1f9a7a['length']&&0x1==_0x5a05fd['length']&&_0x1f9a7a[0x0]['end']['isEqual'](_0x5a05fd[0x0]['start']),_0x21162b=(_0x550cc8,_0xaad163,_0x291918,_0x6fab5b)=>Kt(_0x550cc8,_0xaad163,_0x291918,_0x6fab5b)?[_0x550cc8,_0xaad163]:Kt(_0xaad163,_0x550cc8,_0x6fab5b,_0x291918)?[_0xaad163,_0x550cc8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x34ae82),this['_defaultCallbacks']['set']('insertion:discard',_0xf3da16),this['_defaultCallbacks']['set']('insertion:join',_0x3a7b34),this['_defaultCallbacks']['set']('insertion:chain',_0x21162b),this['_defaultCallbacks']['set']('deletion:accept',_0xf3da16),this['_defaultCallbacks']['set']('deletion:discard',_0x34ae82),this['_defaultCallbacks']['set']('deletion:join',_0x3a7b34),this['_defaultCallbacks']['set']('deletion:chain',_0x21162b),this['_defaultCallbacks']['set']('formatInline:accept',_0x258be6),this['_defaultCallbacks']['set']('formatInline:discard',_0x34ae82),this['_defaultCallbacks']['set']('formatInline:join',_0x3a7b34),this['_defaultCallbacks']['set']('formatInline:chain',_0x34ae82),this['_defaultCallbacks']['set']('formatBlock:accept',_0x258be6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x34ae82),this['_defaultCallbacks']['set']('formatBlock:join',_0x3a7b34),this['_defaultCallbacks']['set']('formatBlock:chain',_0x34ae82),this['_defaultCallbacks']['set']('attribute:accept',_0x34ae82),this['_defaultCallbacks']['set']('attribute:discard',(_0x137f25,_0x19ddfb)=>{if(!_0x19ddfb)return;const _0x21f7c7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x86b513=>{if(_0x19ddfb['key']==m)for(const _0x50ed59 of _0x137f25){const _0x172fea=_0x50ed59['start']['nodeAfter'],_0x5cb5f7=_0x19ddfb['oldValue'];_0x86b513['rename'](_0x172fea,_0x5cb5f7);}else{if(_0x21f7c7['_isBlockAttribute'](_0x19ddfb['key'])){for(const _0x23e3b8 of _0x137f25)void 0x0!==_0x19ddfb['oldValue']?_0x86b513['setAttribute'](_0x19ddfb['key'],_0x19ddfb['oldValue'],_0x23e3b8['start']['nodeAfter']):_0x86b513['removeAttribute'](_0x19ddfb['key'],_0x23e3b8['start']['nodeAfter']);}else{for(const _0x2abf58 of _0x137f25)_0x19ddfb['oldValue']?_0x86b513['setAttribute'](_0x19ddfb['key'],_0x19ddfb['oldValue'],_0x2abf58):_0x86b513['removeAttribute'](_0x19ddfb['key'],_0x2abf58);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3a7b34);}}function Gt(_0x121f25,_0x312aaa,_0x16ce5e){for(const _0xa9be9f of _0x312aaa['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xa9be9f['root']==_0xa9be9f)return!0x1;if(!_0x16ce5e['containsItem'](_0xa9be9f))return!0x1;if(_0x121f25['isObject'](_0xa9be9f)||_0x121f25['isLimit'](_0xa9be9f))return!0x0;}return!0x1;}function Ft(_0x34eac4){return _0x34eac4['end']['parent']==_0x34eac4['start']['nodeAfter']&&_0x34eac4['end']['isAtStart'];}function Lt(_0x3e23b3,_0x2ad2e6,_0x35704f,_0x3c63e6){const _0x4e8317=_0x25cd0c=>!_0x25cd0c['item']['is']('$textProxy')&&!_0x3c63e6['isObject'](_0x25cd0c['item']),_0x44ca42=_0x3e23b3['start']['getLastMatchingPosition'](_0x4e8317),_0x1e705b=_0x3e23b3['end']['getLastMatchingPosition'](_0x4e8317,{'direction':'backward'});return(!_0x3e23b3['start']['isEqual'](_0x44ca42)||!_0x3e23b3['end']['isEqual'](_0x1e705b))&&(_0x44ca42['isBefore'](_0x1e705b)?_0x35704f['updateMarker'](_0x2ad2e6,{'range':_0x35704f['createRange'](_0x44ca42,_0x1e705b)}):_0x35704f['removeMarker'](_0x2ad2e6),!0x0);}function Jt(_0x51c335){return _0x17cf62(_0x51c335);}function Ht(_0x36a0d8){const _0x298dfb=_0x36a0d8['start']['nodeAfter'];return _0x298dfb&&_0x298dfb['is']('element');}function qt(_0x3945ed,_0x23c39f){return null==_0x3945ed['end']['nodeBefore']&&_0x3945ed['end']['parent']==_0x3945ed['start']['nodeAfter']?zt(_0x3945ed['start']['nodeAfter'],_0x23c39f):_0x3945ed;}function zt(_0x26fc97,_0x572ab7){const _0x49781c=_0x572ab7['schema']['isObject'](_0x26fc97)||_0x572ab7['schema']['isSelectable'](_0x26fc97);return _0x572ab7['createRange'](_0x572ab7['createPositionAt'](_0x26fc97,'before'),_0x49781c?_0x572ab7['createPositionAfter'](_0x26fc97):_0x572ab7['createPositionAt'](_0x26fc97,'end'));}function Kt(_0x81cc2c,_0x9b30a6,_0x4053d4,_0x6f38b0){return!!Wt(_0x81cc2c,_0x9b30a6)&&_0x4053d4['end']['isEqual'](_0x6f38b0['start']);}function Wt(_0x1d9ff6,_0xbcd607){if(!_0x1d9ff6['_isDataLoaded']||!_0xbcd607['_isDataLoaded'])return!0x1;const _0x362e9a=new Set(Object['keys'](_0x1d9ff6['attributes'])),_0x1f6a30=new Set(Object['keys'](_0xbcd607['attributes']));if(_0x362e9a['delete']('groupId'),_0x1f6a30['delete']('groupId'),0x0==_0x362e9a['size']&&0x0==_0x1f6a30['size'])return!0x0;if(_0x362e9a['size']!=_0x1f6a30['size'])return!0x1;const _0x34b5e2={..._0x1d9ff6['attributes']},_0x43f7fb={..._0xbcd607['attributes']};return delete _0x34b5e2['groupId'],delete _0x43f7fb['groupId'],JSON['stringify'](_0x34b5e2)==JSON['stringify'](_0x43f7fb);}function Qt(_0xd6340b,_0x544d07){const _0x32b165=Xt(_0xd6340b['attributes']),_0x38e052=Xt(_0x544d07);if(!_0xd6340b['_isDataLoaded'])return!0x1;for(const _0x4a8478 of Object['keys'](_0x38e052))if(!_0x28ebbc(_0x32b165[_0x4a8478],_0x38e052[_0x4a8478]))return!0x1;return!0x0;}function Xt(_0x5a7069){const _0x48ae1b=Object['assign']({},_0x5a7069);return delete _0x48ae1b['skipNestingCheck'],delete _0x48ae1b['tablePasteChainId'],_0x48ae1b;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x2b64b8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1a0ed5,_0x20a6c5,_0x117ae3,_0x2b432e){super(),this['model']=_0x20a6c5,this['view']=_0x117ae3,this['commentThreadController']=_0x2b432e,this['_editor']=_0x1a0ed5,this['_acceptCommand']=_0x1a0ed5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1a0ed5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40cc7e,_0x212e60)=>_0x40cc7e||_0x212e60),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4c4895=>_0x4c4895&&this['_editor']['model']['canEditAt'](_0x20a6c5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3d8e81=>_0x3d8e81&&this['_editor']['model']['canEditAt'](_0x20a6c5['getRanges']())),this['_pendingAction']=null,_0x117ae3['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x117ae3,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x117ae3,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x117ae3,'change:isDirty',()=>{_0x117ae3['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 _0x406212=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x406212);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x1fab17{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2240d6,_0x7ed16e,_0x74ed94,_0x2276a3){super(_0x2240d6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x48a1fe(_0x2240d6,o(_0x2240d6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x7ed16e['authoredAt']),this['bind']('authoredAt')['to'](_0x7ed16e),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',_0x7ed16e,'authoredAt',this,'descriptionParts',(_0x48f304,_0x4b1064,_0x800dda)=>{const _0x46b054=_0x800dda['map'](_0x5e473a=>cs(_0x5e473a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48f304-0x1,_0x7ed16e['author']['name'],_0x4b1064?_0x2276a3['formatDateTime'](_0x4b1064):'',new DOMParser()['parseFromString'](_0x46b054,'text/html')['body']['textContent']]);}),this['focusables']=new _0x239dc0(),this['focusTracker']=new _0x3116b8(),this['keystrokes']=new _0x10787e(),this['focusCycler']=new _0x1bc5b1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25c084=>_0x25c084['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x7ed16e,this['_localUser']=_0x74ed94,this['_config']=_0x2276a3,_0x2276a3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xc052c4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1bb603}=this['_config'];this['commentsListView']=new _0x1bb603(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',_0x5a4735=>_0x5a4735+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x425a8d,_0x1b86c8)=>_0x425a8d||!!_0x1b86c8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2f53da}=this['_config'],_0x10d2ec=new _0x2f53da(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xe72647=_0x10d2ec['commentInputView'];return _0x10d2ec['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xe72647,'value',(_0x94cf18,_0x1c810a,_0x390ed7)=>!!_0x390ed7||_0x94cf18&&!_0x1c810a),_0xe72647['on']('submit',(_0x11cb1f,_0x21a24f)=>{this['fire']('addComment',_0x21a24f),_0xe72647['editor']['setData']('');}),_0xe72647['on']('cancel',()=>this['focus']()),_0xe72647['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x10d2ec;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x190bbb,_0x574482,_0x965aad,_0x40506){super(_0x190bbb,_0x574482,_0x965aad,_0x40506),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x21bd41=>_0x21bd41&&_0x21bd41[0x0]?_0x21bd41[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2a72a3,_0x5c2dbc)=>{let _0x2e05d2='';for(const _0x173fc7 of _0x2a72a3)_0x2e05d2+='<p>'+cs(_0x173fc7['content'],_0x173fc7['color'])+'</p>';return _0x5c2dbc?_0x2e05d2:_0x18f17d(_0x2e05d2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x40506['SuggestionView'](_0x190bbb,_0x574482,{'formatDateTime':_0x40506['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 _0x158407=this['bindTemplate'],_0xa7027=[this['suggestionView']];return this['commentsListView']&&_0xa7027['push'](this['commentsListView']),this['commentThreadInputView']&&_0xa7027['push'](this['commentThreadInputView']),_0xa7027['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x158407['if']('isActive','ck-suggestion-wrapper--active'),_0x158407['to']('type',_0x393804=>'ck-suggestion-'+_0x393804),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':_0x158407['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xa7027};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x1fab17{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5abe0b,_0x16c594,_0x1e1966){super(_0x5abe0b),this['_model']=_0x16c594,this['_config']=_0x1e1966,this['set']('description',''),this['bind']('authoredAt')['to'](_0x16c594),this['acceptButton']=this['_createButton'](o(_0x5abe0b,'Accept\x20suggestion'),_0x5239f1['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5abe0b,'Discard\x20suggestion'),_0x5239f1['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b0a9c(_0x5abe0b,_0x16c594['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x239dc0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3116b8(),this['keystrokes']=new _0x10787e(),this['focusCycler']=new _0x1bc5b1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4a1a04=>_0x4a1a04['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x263302=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x263302['innerHTML']=this['description'],this['on']('change:description',(_0x3229d9,_0x46c4b0,_0xaea088)=>{_0x263302['innerHTML']=_0xaea088;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x38a520=this['bindTemplate'],_0x2d8010=[{'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':_0x38a520['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x38a520['to']('authoredAt',_0x1854ff=>this['_config']['formatDateTime'](_0x1854ff))}]}]},{'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']&&_0x2d8010['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':_0x2d8010}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5d8e0e,_0x4b915f,_0x3ebff1,_0x270d20,_0x30d4e3){const _0x3b8313=new _0x107628(this['locale']);return _0x3b8313['set']({'label':_0x5d8e0e,'icon':_0x4b915f,'tooltip':!0x0,'tooltipPosition':_0x30d4e3}),_0x3b8313['extendTemplate']({'attributes':{'class':_0x3ebff1}}),_0x3b8313['on']('execute',()=>{this['fire'](_0x270d20,this['_model']['id']);}),_0x3b8313;}['_setupKeyboardNavigation'](){const _0x2050e0=this['element'];this['keystrokes']['listenTo'](_0x2050e0);for(const _0x6b303b of this['focusables'])this['focusTracker']['add'](_0x6b303b['element']),this['keystrokes']['listenTo'](_0x6b303b['element']);this['keystrokes']['set']('enter',(_0x54f577,_0x1352d8)=>{_0x2050e0===_0x54f577['target']&&(this['focusCycler']['focusFirst'](),_0x1352d8());}),this['keystrokes']['set']('esc',(_0x57ab93,_0xdf2593)=>{_0x2050e0!==_0x57ab93['target']&&(this['focus'](),_0xdf2593());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x42796e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x555351,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41cdf4){super(_0x41cdf4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27232=this['editor']['config'];_0x27232['define']('trackChanges.SuggestionThreadView',pe),_0x27232['define']('trackChanges.SuggestionView',fe),_0x27232['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27232['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1ef0b0,_0x3971e6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1406c8,_0x536557]of this['_handleControllerBuffer']){const _0x4c55e0=this['_suggestionToController']['has'](_0x1406c8);_0x4c55e0||_0x536557?_0x4c55e0&&_0x536557&&this['_destroyController'](_0x1406c8):this['_initializeController'](_0x1406c8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ef0b0,_0x3971e6);}['init'](){const _0xaa207e=this['editor'],_0x44a1b7=_0xaa207e['plugins']['get']('TrackChangesEditing'),_0x3461f2=_0xaa207e['plugins']['get']('Annotations'),_0x344ccb=_0xaa207e['plugins']['get']('EditorAnnotations'),_0x504d85=_0xaa207e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x344ccb['addSourceCollector'](()=>{const _0x2dc6ce=[];for(const [_0x51d451,_0x435d53]of Array['from'](this['_suggestionToController'])){const _0x2b1554=_0x51d451['getAllAdjacentSuggestions'](),_0x2e07bb=[];for(const _0x6a5bf7 of _0x2b1554){if(!_0x6a5bf7['isInContent'])continue;if(_0x6a5bf7['isMultiRange']){_0x2e07bb['push'](..._0x6a5bf7['getRanges']());continue;}const _0x5df921=_0x6a5bf7['getFirstRange']();if(_0x2e07bb['length']>0x0){const _0x1b907b=_0x2e07bb[0x0]['getJoined'](_0x5df921);if(_0x1b907b){_0x2e07bb[0x0]=_0x1b907b;continue;}}_0x2e07bb['push'](_0x5df921);}_0x2dc6ce['push']([_0x435d53['view'],_0x2e07bb]);}return _0x2dc6ce;}),this['listenTo'](_0x44a1b7,'suggestionLoaded',(_0x411d5f,_0x467d02)=>{this['listenTo'](_0x467d02,'change:previous',(_0x5f30a6,_0x62a9c6,_0x365997,_0x4ad169)=>{_0x467d02['isInContent']&&(null==_0x365997?(this['_updateController'](_0x4ad169['head']),this['_handleSuggestionControllerDelayed'](_0x467d02,!0x1)):(this['_updateController'](_0x365997['head']),null==_0x4ad169&&this['_handleSuggestionControllerDelayed'](_0x467d02,!0x0)));}),null!==_0x467d02['previous']?this['_updateController'](_0x467d02['head']):this['_handleSuggestionControllerDelayed'](_0x467d02,!0x1);}),this['listenTo'](_0x44a1b7,'suggestionUnloaded',(_0x3666b2,_0x4eaa0a,_0x5cf997)=>{this['stopListening'](_0x4eaa0a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4eaa0a),this['_suggestionToController']['has'](_0x4eaa0a)&&this['_destroyController'](_0x4eaa0a),_0x5cf997&&this['_updateController'](_0x5cf997['head']);}),this['listenTo'](_0x44a1b7,'suggestionChanged',(_0x2b3755,_0x41a74f)=>{this['_updateController'](_0x41a74f);}),this['listenTo'](_0x3461f2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x504d85,'addComment',(_0x30071a,{threadId:_0x530bc5,isFromAdapter:_0x1fa620})=>{if(_0x1fa620||!_0x44a1b7['hasSuggestion'](_0x530bc5))return;const _0x350e20=_0x44a1b7['getSuggestion'](_0x530bc5);this['_suggestionToController']['get'](_0x350e20)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48bc68=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfec6f5;for(const _0x532e02 in _0x48bc68){const _0x573747=_0x532e02,_0x58e2a5=_0x48bc68[_0x573747];if('trackChangesLicenseKeyValid'==_0x58e2a5||'trackChangesLicenseKeyInvalid'==_0x58e2a5||'trackChangesLicenseKeyExpired'==_0x58e2a5||'trackChangesLicenseKeyDomainLimit'==_0x58e2a5||'trackChangesLicenseKeyNotAllowed'==_0x58e2a5||'trackChangesLicenseKeyEvaluationLimit'==_0x58e2a5||'trackChangesLicenseKeyTrialLimit'==_0x58e2a5||'trackChangesLicenseKeyUsageLimit'==_0x58e2a5){delete _0x48bc68[_0x573747],_0xfec6f5=_0x58e2a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xfec6f5&&_0x48bc68['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xfec6f5&&_0x48bc68['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xfec6f5&&_0x48bc68['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xfec6f5&&_0x48bc68['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xfec6f5&&_0x48bc68['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xfec6f5&&_0x48bc68['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xfec6f5&&_0x48bc68['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x474a53=this['editor']['plugins']['get']('Annotations'),_0x40d6bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5138d3=Array['from'](_0x474a53['activeAnnotations'],_0x20f8b0=>_0x20f8b0['innerView'])['filter'](_0x12405e=>this['_viewToController']['has'](_0x12405e)),_0x130b46=[];for(const _0xe2b67b of _0x5138d3){const _0x1ffdfe=this['_viewToController']['get'](_0xe2b67b)['model']['getAllAdjacentSuggestions']();_0x130b46['push'](..._0x1ffdfe['reduce']((_0x19d60d,_0x4eef05)=>[..._0x19d60d,..._0x4eef05['getMarkerNames']()],[]));}_0x40d6bb['activeMarkers']=_0x130b46;}['_addUIComponentsToFactory'](){const _0x152e09=this['editor'],_0x1380cb=_0x152e09['locale'],_0x786d09=o(_0x1380cb,'Track\x20changes'),_0x1a7f9c=new _0xaa39ea([{'type':'switchbutton','model':new _0x5f0129({'withText':!0x0,'isToggleable':!0x0,'label':_0x786d09,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x152e09['plugins']['has']('TrackChangesPreview')&&_0x1a7f9c['addMany']([{'type':'separator'},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3713f4 of _0x1a7f9c)if(ke(_0x3713f4)){const _0x287367=_0x152e09['commands']['get'](_0x3713f4['model']['commandName']);_0x3713f4['model']['bind']('isOn','isEnabled')['to'](_0x287367,'value','isEnabled');}_0x152e09['ui']['componentFactory']['add']('trackChanges',_0x29fe34=>this['_createToolbarButton'](_0x29fe34,_0x1a7f9c,_0x786d09)),_0x152e09['ui']['componentFactory']['add']('menuBar:trackChanges',_0x34f4db=>this['_createMenuBarMenu'](_0x34f4db,_0x1a7f9c,_0x786d09));}['_createToolbarButton'](_0x4d6640,_0x48d49f,_0x31fa73){const _0x3930d8=_0x2f0e3e(_0x4d6640,_0x5d9ae3),_0x17af02=this['editor']['commands']['get']('trackChanges');_0x3930d8['buttonView']['set']({'tooltip':_0x31fa73,'label':_0x31fa73,'icon':we}),_0x3930d8['buttonView']['bind']('isOn')['to'](_0x17af02,'value'),_0x3930d8['buttonView']['on']('execute',()=>{_0x17af02['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ba791(_0x3930d8,_0x48d49f,{'role':'menu'});const _0x6e8715=[];for(const _0x36b5e7 of _0x48d49f)ke(_0x36b5e7)&&_0x6e8715['push'](this['editor']['commands']['get'](_0x36b5e7['model']['commandName']));const _0x13e1a8=_0x3930d8['buttonView'];return _0x13e1a8['actionView']['unbind']('isEnabled'),_0x13e1a8['arrowView']['unbind']('isEnabled'),_0x13e1a8['actionView']['bind']('isEnabled')['to'](_0x17af02,'isEnabled'),_0x13e1a8['arrowView']['bind']('isEnabled')['toMany'](_0x6e8715,'isEnabled',(..._0x8ea8d5)=>_0x8ea8d5['some'](_0xeb064a=>_0xeb064a)),_0x3930d8['on']('execute',_0x161026=>{this['editor']['execute'](_0x161026['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3930d8;}['_createMenuBarMenu'](_0x3593a5,_0x13d5c1,_0x21b82c){const _0x568da9=new _0x50b1ff(_0x3593a5),_0x4700e5=this['editor']['commands']['get']('trackChanges');_0x568da9['buttonView']['set']({'label':_0x21b82c,'icon':we});const _0x4a8ca1=new _0x3c067f(_0x3593a5);for(const _0x712af3 of _0x13d5c1){if('separator'==_0x712af3['type']){_0x4a8ca1['items']['add'](new _0xc0ad48(_0x3593a5));continue;}const _0x20615d=new _0x223a74(_0x3593a5,_0x568da9),_0x40be68=new _0x2727ec(_0x3593a5),_0xeb2ae0=_0x712af3['model'];_0x40be68['bind'](...Object['keys'](_0xeb2ae0))['to'](_0xeb2ae0),_0x40be68['delegate']('execute')['to'](_0x568da9),_0x40be68['on']('execute',()=>{this['editor']['execute'](_0xeb2ae0['commandName']),this['editor']['editing']['view']['focus']();}),_0x20615d['children']['add'](_0x40be68),_0x4a8ca1['items']['add'](_0x20615d);}return _0x568da9['bind']('isEnabled')['to'](_0x4700e5,'isEnabled'),_0x568da9['panelView']['children']['add'](_0x4a8ca1),_0x568da9;}['_initializeController'](_0x33dca3){const _0x255933=this['editor'],_0x5732a8=_0x255933['config'],_0x427e75=_0x255933['plugins']['get']('Annotations'),_0x2d5546=_0x255933['plugins']['get']('CommentsRepository'),_0x2eb759=_0x255933['plugins']['get']('EditorAnnotations'),_0x32b420=_0x255933['plugins']['get'](_0x555351)['me'],_0x5df14e=_0x5732a8['get']('trackChanges')['SuggestionThreadView'],_0x18fed2=_0x5732a8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x43a643,CommentThreadInputView:_0x1d65f5}=_0x255933['plugins']['get']('CommentsUI');let _0x1e37d8,_0x4f7bb6,_0x14c641;this['_annotationViews']['has'](_0x33dca3['id'])?(_0x4f7bb6=this['_annotationViews']['get'](_0x33dca3['id']),_0x1e37d8=_0x4f7bb6['mainView']):(_0x1e37d8=new _0x5df14e(_0x255933['locale'],_0x33dca3,_0x32b420,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5732a8['get']('comments.editorConfig'),'licenseKey':_0x5732a8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5732a8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5732a8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5732a8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3c0031(_0x5732a8['get']('locale')),'CommentView':_0x5732a8['get']('comments')['CommentView'],'CommentsListView':_0x43a643,'CommentThreadInputView':_0x1d65f5,'SuggestionView':_0x18fed2}),_0x1e37d8['suggestionView']['acceptButton']['on']('execute',()=>{_0x255933['editing']['view']['focus']();}),_0x1e37d8['suggestionView']['discardButton']['on']('execute',()=>{_0x255933['editing']['view']['focus']();}),_0x4f7bb6=_0x427e75['createAnnotationView'](this['editor']['locale'],_0x1e37d8),_0x4f7bb6['bind']('isDirty')['to'](_0x1e37d8,'isDirty'),_0x4f7bb6['bind']('length')['to'](_0x1e37d8),_0x4f7bb6['bind']('type')['to'](_0x1e37d8,'type',_0x14ce7f=>'suggestion-'+_0x14ce7f),_0x1e37d8['on']('escape',()=>{_0x14c641['fire']('escape');}),this['_annotationViews']['set'](_0x33dca3['id'],_0x4f7bb6));const _0x21f78c=_0x2d5546['createCommentThreadController'](_0x33dca3['commentThread'],_0x1e37d8),_0x5ca06c=new Ce(_0x255933,_0x33dca3,_0x1e37d8,_0x21f78c),_0x2e97ad=_0x33dca3['getAllAdjacentSuggestions']()['filter'](_0x28ee14=>_0x28ee14['isInContent']);_0x1e37d8['descriptionParts']=_0x255933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2e97ad),this['_suggestionToController']['set'](_0x33dca3,_0x5ca06c),this['_viewToController']['set'](_0x1e37d8,_0x5ca06c),_0x14c641=_0x427e75['createAnnotation']({'view':_0x4f7bb6,'target':()=>{const _0x5e774f=[],_0x168177=_0x33dca3['getAllAdjacentSuggestions']()['filter'](_0x3a3158=>_0x3a3158['isInContent']);for(const _0x1f9545 of _0x168177)_0x5e774f['push'](..._0x1f9545['getMarkers']());return _0x598c9d(_0x255933['editing'],_0x5e774f);},'type':()=>'suggestion-'+_0x5ca06c['view']['type']}),_0x2d5546['_bindAnnotationToEditors'](_0x1e37d8,_0x14c641),_0x427e75['add'](_0x14c641),_0x2eb759['registerAnnotation'](_0x14c641);}['_destroyController'](_0x2f9ff8){const _0x40c5d9=this['editor']['plugins']['get']('CommentsRepository'),_0x1800ff=this['editor']['plugins']['get']('Annotations'),_0xbeb44e=this['_suggestionToController']['get'](_0x2f9ff8),_0x287046=_0xbeb44e['view'],_0x4f30e7=_0x1800ff['getByInnerView'](_0x287046);_0x40c5d9['_unbindEditors'](_0x287046),_0x4f30e7&&_0x1800ff['remove'](_0x4f30e7),this['_suggestionToController']['delete'](_0x2f9ff8),this['_viewToController']['delete'](_0x287046),_0xbeb44e['destroy']();}['_updateController'](_0xedf214){if(!_0xedf214['isInContent']||!this['_suggestionToController']['has'](_0xedf214))return;const _0x327c9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fc417=this['_suggestionToController']['get'](_0xedf214),_0xadf977=_0xedf214['getAllAdjacentSuggestions']();_0x4fc417['view']['descriptionParts']=_0x327c9d['descriptionFactory']['getDescriptions'](_0xadf977);}['destroy'](){for(const _0x360422 of this['_suggestionToController']['keys']())this['_destroyController'](_0x360422);for(const _0xef76a9 of this['_annotationViews']['values']())_0xef76a9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x472b78){return'model'in _0x472b78;}class k extends _0x42796e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x547c39){this['editor']['plugins']['get'](p)['adapter']=_0x547c39;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1cafa2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1cafa2);}['getSuggestions']({skipNotAttached:_0x1e36b9=!0x1,toJSON:_0x419150=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1e36b9,'toJSON':_0x419150});}['getSuggestion'](_0x9a181a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x9a181a);}}const w=['Pagination'];class T extends _0x42796e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x28cc78=this['editor'];if(_0x28cc78['config']['define']('trackChangesData.editorCreator',_0x4020da=>{const _0x54a375=_0x28cc78['model']['document']['getRootNames']()['reduce']((_0x3d6cd9,_0x36de7d)=>(_0x3d6cd9[_0x36de7d]='',_0x3d6cd9),{});return _0x28cc78['constructor']['create'](_0x54a375,_0x4020da);}),'function'!=typeof _0x28cc78['config']['get']('trackChangesData')['editorCreator'])throw new _0x4aa60d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4da4ea){return N(this['editor'],!0x0,_0x4da4ea);}['getDataWithDiscardedSuggestions'](_0x1fa46a){return N(this['editor'],!0x1,_0x1fa46a);}}class D extends _0x42796e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c9ee7){function _0x10ac97(_0x52eb29){return _0x52eb29['map'](_0x4d518f=>String['fromCharCode'](_0x4d518f))['join']('');}super(_0x1c9ee7),this['result']='end',_0x1c9ee7[_0x10ac97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10ac97([0x76,0x69,0x65,0x77])][_0x10ac97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10ac97([0x61,0x75,0x74,0x6f]),_0x1c9ee7[_0x10ac97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x10ac97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10ac97([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x10ac97([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x10ac97([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x214d1a){return void 0x0!==_0x214d1a['getRootsAttributes'];}async function N(_0x25aa12,_0x74ed3a,_0x1c8c6f){const _0x3f2a99=_0x1a4acd(_0x25aa12,w);_0x3f2a99['plugins']['push'](p,D),_0x3f2a99['rootsAttributes']=Fe(_0x25aa12)?_0x25aa12['getRootsAttributes']():void 0x0;const _0x24661a=document['createDocumentFragment'](),_0x11a144=_0x25aa12['config']['get']('trackChangesData')['editorCreator'],_0x27cfc5=await _0x11a144(_0x3f2a99,()=>function(_0x39ae6a){const _0x20973d=document['createElement']('div');return _0x39ae6a['appendChild'](_0x20973d),_0x20973d;}(_0x24661a));!function(_0x3ca4d3,_0x27d4ba){const _0x5b1dc0=_0x3ca4d3['model']['document']['getRootNames']()['reduce']((_0x4982ad,_0x317498)=>(_0x4982ad[_0x317498]=_0x3ca4d3['data']['get']({'rootName':_0x317498}),_0x4982ad),{}),_0x4dac1b=_0x3ca4d3['plugins']['get']('Users')['users']['map'](_0x5f416f=>({'id':_0x5f416f['id'],'name':_0x5f416f['name']})),_0x86104c=_0x3ca4d3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x355a22=_0x3ca4d3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x284418=_0x27d4ba['plugins']['get']('Users'),_0x3cc2e9=_0x27d4ba['plugins']['get']('TrackChangesEditing'),_0x341d9a=_0x27d4ba['plugins']['get']('CommentsRepository');for(const _0x6f17cc of _0x341d9a['getCommentThreads']())_0x6f17cc['remove']();for(const _0x2b222c of _0x4dac1b)_0x284418['getUser'](_0x2b222c['id'])||_0x284418['addUser'](_0x2b222c);_0x284418['me']||_0x284418['useAnonymousUser']();for(const _0x59eb4b of _0x355a22)_0x341d9a['addCommentThread'](_0x59eb4b);for(const _0x1fc5e2 of _0x86104c)_0x3cc2e9['addSuggestionData'](_0x1fc5e2);_0x27d4ba['data']['set'](_0x5b1dc0);}(_0x25aa12,_0x27cfc5),_0x27cfc5['execute'](_0x74ed3a?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f6228=Fe(_0x27cfc5)?_0x27cfc5['getFullData'](_0x1c8c6f):_0x27cfc5['data']['get'](_0x1c8c6f);return await _0x27cfc5['destroy'](),_0x1f6228;}class Me extends _0x1fab17{['options'];constructor(_0x2292c9,_0x4678cc){super(_0x2292c9),this['options']=_0x4678cc,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'](_0x426cb6,_0x4a1281){if(!this['element'])return;const _0x2a1f16=[];for(const [_0x3ed47c,_0x25e15a]of _0x426cb6){const _0x570a01=document['createElement']('div');_0x570a01['setAttribute']('data-ck-root-name',_0x3ed47c),_0x570a01['className']=_0x25e15a['classes']+'\x20ck-track-changes-preview__root-container',_0x570a01['innerHTML']=_0x25e15a['content'],_0x2a1f16['push'](_0x570a01);}_0x4a1281(this['element'],_0x2a1f16),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x3c29fc){super(_0x3c29fc),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2374e4=this['editor'],_0xfbb05c=_0x2374e4['locale'],_0x510cac=_0x2374e4['plugins']['get']('Dialog');let _0x4f3320;const _0x1cc5a7=function(_0x1bb701){const _0x387fab={};if('editables'in _0x1bb701['ui']['view']){for(const [_0x2cc2fe,_0x4943b3]of Object['entries'](_0x1bb701['ui']['view']['editables']))_0x387fab[_0x2cc2fe]=_0x4943b3['element'];}else _0x387fab[_0x1bb701['model']['document']['getRootNames']()[0x0]]=_0x1bb701['ui']['view']['editable']['element'];return _0x387fab;}(_0x2374e4),_0x2c3ea8=function(_0x44439b){let _0x855716=0x0;for(const _0x42b78e of Object['values'](_0x44439b))_0x855716=Math['max'](_0x855716,_0x42b78e['getBoundingClientRect']()['width']);let _0x308b2e=0x0;for(const _0x1c35d0 of Object['values'](_0x44439b))_0x308b2e+=_0x1c35d0['getBoundingClientRect']()['height'];const _0x31f44f=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4803b2=Math['min'](_0x308b2e,_0x31f44f);return{'width':_0x855716,'height':_0x4803b2};}(_0x1cc5a7);_0x510cac['show']({'id':'finalContentPreview','title':o(_0xfbb05c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xfbb05c,{'dialogRects':_0x2c3ea8}),'onHide':()=>{_0x4f3320['detachFromDom']();},'onShow':()=>{_0x2374e4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x44f1d9=>{const _0x3d9eb6=this['_standarizeRootsData'](_0x44f1d9,_0x2374e4,_0x1cc5a7);_0x510cac['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3d9eb6,_0x2374e4['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f3320=new _0xd48db6(_0xfbb05c,[_0x510cac['view']]),_0x4f3320['attachToDom'](),_0x4f3320['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2374e4['once']('destroy',()=>{_0x4f3320['detachFromDom']();});const _0x557979=_0x510cac['view']['headerView']['class'];_0x510cac['view']['headerView']['class']=_0x557979?_0x557979+'\x20ck-reset_all':'ck-reset_all',_0x510cac['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x510cac['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x48452c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x50f8d9=_0x48452c['previewMode'],_0x3516f0={};if('$labels'===_0x50f8d9){for(const _0x19cd9e of _0x48452c['getMergeFieldsIds']())_0x3516f0[_0x19cd9e]=_0x48452c['getLabel'](_0x19cd9e)||_0x19cd9e;}else{const _0xfe9957='$defaultValues'===_0x50f8d9?_0x48452c['getDefaultValues']():_0x48452c['getDataSetValues'](_0x50f8d9,!0x0);for(const _0x57aa11 of Object['entries'](_0xfe9957)){const [_0x2b1223,_0x218019]=_0x57aa11;_0x3516f0[_0x2b1223]=null!==_0x218019?_0x218019:_0x48452c['getLabel'](_0x2b1223)||_0x2b1223;}}return{'mergeFieldsData':_0x3516f0};}['_standarizeRootsData'](_0xff3b26,_0x1371cc,_0x111f25){let _0x3e0472;if('string'==typeof _0xff3b26){const _0x1d9d75=_0x1371cc['model']['document']['getRootNames']()[0x0];_0x3e0472={[_0x1d9d75]:_0xff3b26};}else _0x3e0472=_0xff3b26;const _0x19a70e=this['_fixMediaEmbeds'](_0x3e0472,_0x1371cc),_0x119a01=function(_0x13f661,_0x1053ce){for(const [_0x4293cc,_0xece8d6]of _0x13f661)_0xece8d6['classes']=_0x1053ce[_0x4293cc]['classList']['value']['replace']('ck-focused','');return _0x13f661;}(this['_sortRoots'](_0x1371cc)['reduce']((_0x4a5a56,_0x16b123)=>(_0x4a5a56['push']([_0x16b123,{'content':_0x19a70e[_0x16b123],'classes':''}]),_0x4a5a56),[]),_0x111f25);return _0x119a01;}['_fixMediaEmbeds'](_0x375d74,_0x18b1e2){if(!_0x18b1e2['plugins']['has']('MediaEmbedEditing'))return _0x375d74;const _0x9797f8=_0x18b1e2['plugins']['get']('MediaEmbedEditing');for(const [_0x3eefee,_0x405f0f]of Object['entries'](_0x375d74)){const _0x4515c6=document['createElement']('div');_0x4515c6['innerHTML']=_0x405f0f,(_0x4515c6['querySelectorAll']('figure.media')['forEach'](_0x6d5cb1=>{const _0x469f9f=_0x6d5cb1['querySelector']('oembed');if(_0x469f9f){const _0x129f99=_0x469f9f['getAttribute']('url');if(_0x129f99){const _0x5235e9=_0x9797f8['registry']['getMediaViewElement'](new _0x5619c4(_0x18b1e2['editing']['view']['document']),_0x129f99,{'elementName':'','renderForEditingView':!0x0}),_0x5acf6d=document['createElement']('div');_0x5acf6d['classList']['add']('ck-media__wrapper'),_0x5235e9['render'](_0x5acf6d,_0x18b1e2['editing']['view']['domConverter']),_0x469f9f['replaceWith'](_0x5acf6d);}}}),_0x375d74[_0x3eefee]=_0x4515c6['innerHTML']);}return _0x375d74;}['_sortRoots'](_0x58e211){if(!function(_0x5b1408){return void 0x0!==_0x5b1408['getRootsAttributes'];}(_0x58e211))return _0x58e211['model']['document']['getRootNames']();const _0x5207c0=[],_0x4da8b4=new Map();for(const _0x561af1 of _0x58e211['model']['document']['getRootNames']()){const _0x4b981e=_0x58e211['editing']['view']['getDomRoot'](_0x561af1)['getClientRects']()['item'](0x0);_0x5207c0['push'](_0x561af1),_0x4da8b4['set'](_0x561af1,_0x4b981e);}return _0x5207c0['sort']((_0x2bd93a,_0x4eaa15)=>{const _0x162f61=_0x4da8b4['get'](_0x2bd93a),_0x15e8fe=_0x4da8b4['get'](_0x4eaa15);return _0x162f61['y']-_0x15e8fe['y']||_0x162f61['x']-_0x15e8fe['x'];}),_0x5207c0;}}class te extends _0x42796e{static get['requires'](){return[T,_0x291061];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x140f43){super(_0x140f43),_0x140f43['commands']['add']('previewFinalContent',new re(this['editor'])),_0x140f43['config']['define']('trackChanges.preview.renderFunction',(_0x1dd9d2,_0x30d9a8)=>{for(const _0x55e6ba of _0x30d9a8)_0x1dd9d2['appendChild'](_0x55e6ba);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};