@ckeditor/ckeditor5-track-changes 44.2.0-alpha.0 → 44.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +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/entercommand.js +1 -1
  166. package/src/integrations/findandreplace.js +1 -1
  167. package/src/integrations/font.js +1 -1
  168. package/src/integrations/formatpainter.js +1 -1
  169. package/src/integrations/heading.js +1 -1
  170. package/src/integrations/highlight.js +1 -1
  171. package/src/integrations/horizontalline.js +1 -1
  172. package/src/integrations/htmlembed.js +1 -1
  173. package/src/integrations/image.js +1 -1
  174. package/src/integrations/imagereplace.js +1 -1
  175. package/src/integrations/imagestyle.js +1 -1
  176. package/src/integrations/importword.js +1 -1
  177. package/src/integrations/indent.js +1 -1
  178. package/src/integrations/inputcommand.js +1 -1
  179. package/src/integrations/legacylist.js +1 -1
  180. package/src/integrations/legacylistproperties.js +1 -1
  181. package/src/integrations/link.js +1 -1
  182. package/src/integrations/list.js +1 -1
  183. package/src/integrations/listproperties.js +1 -1
  184. package/src/integrations/mediaembed.js +1 -1
  185. package/src/integrations/mention.js +1 -1
  186. package/src/integrations/mergefields.js +1 -1
  187. package/src/integrations/multilevellist.js +1 -1
  188. package/src/integrations/pagebreak.js +1 -1
  189. package/src/integrations/paragraph.js +1 -1
  190. package/src/integrations/removeformat.js +1 -1
  191. package/src/integrations/restrictededitingmode.js +1 -1
  192. package/src/integrations/shiftentercommand.js +1 -1
  193. package/src/integrations/standardeditingmode.js +1 -1
  194. package/src/integrations/style.js +1 -1
  195. package/src/integrations/table.js +1 -1
  196. package/src/integrations/tablecaption.js +1 -1
  197. package/src/integrations/tableclipboard.js +1 -1
  198. package/src/integrations/tablecolumnresize.js +1 -1
  199. package/src/integrations/tableheadings.js +1 -1
  200. package/src/integrations/tablemergesplit.js +1 -1
  201. package/src/integrations/tableofcontents.js +1 -1
  202. package/src/integrations/tableproperties.js +1 -1
  203. package/src/integrations/template.js +1 -1
  204. package/src/integrations/title.js +1 -1
  205. package/src/integrations/undo.js +1 -1
  206. package/src/integrations/uploadcare.js +1 -1
  207. package/src/integrations/utils.js +1 -1
  208. package/src/suggestion.js +2 -2
  209. package/src/suggestiondescriptionfactory.js +1 -1
  210. package/src/trackchanges.js +1 -1
  211. package/src/trackchangesdata.js +1 -1
  212. package/src/trackchangesediting.js +1 -1
  213. package/src/trackchangespreview.js +1 -1
  214. package/src/trackchangesui.js +1 -1
  215. package/src/ui/suggestioncontroller.js +2 -2
  216. package/src/ui/view/basesuggestionthreadview.js +1 -1
  217. package/src/ui/view/suggestionthreadview.js +1 -1
  218. package/src/ui/view/suggestionview.js +1 -1
  219. package/src/ui/view/trackchangespreviewview.js +1 -1
  220. package/src/utils/common-translations.js +1 -1
  221. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x4bc43a,PendingActions as _0x56f436,icons as _0x95e168}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x32ff2c,ObservableMixin as _0x2e093b,uid as _0x16938d,insertToPriorityArray as _0x5ecd22,priorities as _0x39f89f,logWarning as _0x2d48d,getEnvKeystrokeText as _0xb702e9,FocusTracker as _0x4b58f8,KeystrokeHandler as _0x27f5f9,Collection as _0xbe8e9c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x40365a,View as _0x4d48cf,ViewCollection as _0x58a253,FocusCycler as ts,ViewModel as _0x10b183,createDropdown as _0x2743f1,SplitButtonView as _0x3ef3ef,addListToDropdown as _0x23cd77,MenuBarMenuView as _0x179ae6,MenuBarMenuListView as _0x29005e,ListSeparatorView as _0x11f766,MenuBarMenuListItemView as _0x2c0e25,MenuBarMenuListItemButtonView as _0x2bfd02,BodyCollection as _0x4068fb,Dialog as _0x339813}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x558fcb,hashObject as _0x13f732,surroundingMarkersDetector as _0x18f79f,FOCUS_ANNOTATION_KEYSTROKE as _0x9bcceb,AriaDescriptionView as _0x30cbad,setupThreadKeyboardNavigation as _0x2f2cc5,trimHtml as _0x46f5b5,UserView as _0x3aad9b,LateFocusButtonView as _0x4489ee,getDateTimeFormatter as _0x4b28ba,getAllMarkersDomElementsSorted as _0x226be8,sanitizeEditorConfig as _0x3705ee}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x560399,LiveRange as _0x3db890,LivePosition as _0x590958,DowncastWriter as _0x22c73d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2c2d70,toWidget as _0x2eed79}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xb11a5b,set as _0x461b13,isEqual as _0x3def7b,unset as _0x485a24,omit as Et}from'lodash-es';import{Delete as _0x3c241a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3d9e40,ShiftEnter as _0x2fd23c}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x3f895c,_0x45a7a6){super(_0x3f895c),this['_enabledCommands']=_0x45a7a6,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 _0x52cce3 of this['editor']['commands']['commands']())_0x52cce3['affectsData']&&!this['_enabledCommands']['has'](_0x52cce3)&&_0x52cce3['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x50091d of this['editor']['commands']['commands']())_0x50091d['affectsData']&&!this['_enabledCommands']['has'](_0x50091d)&&_0x50091d['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x49ae8c,_0x52c4e0){super(_0x49ae8c),this['_suggestions']=_0x52c4e0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xff9655){const _0x18e311=this['_suggestions']['get'](_0xff9655);if(!_0x18e311)throw new _0x32ff2c('track-changes-accept-suggestion-not-found',this);const _0x547b8e=_0x18e311['getRanges']();this['editor']['model']['canEditAt'](_0x547b8e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x18e311);}}class R extends Qt{['_suggestions'];constructor(_0x45d43c,_0x5749ca){super(_0x45d43c),this['_suggestions']=_0x5749ca,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xc18237){const _0x991c60=this['_suggestions']['get'](_0xc18237);if(!_0x991c60)throw new _0x32ff2c('track-changes-discard-suggestion-not-found',this);const _0x2fe28a=_0x991c60['getRanges']();this['editor']['model']['canEditAt'](_0x2fe28a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x991c60);}}function ns(_0x251eb5,_0x33d0c5){let _0x3e7efc='';return _0x3e7efc+=_0x251eb5['split']('*')['map']((_0x5eb50a,_0x251346)=>_0x251346%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5eb50a)+'</span>':nn(_0x5eb50a))['join'](''),_0x33d0c5&&(_0x3e7efc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x33d0c5['value']+'\x22\x20title=\x22'+_0x33d0c5['title']+'\x22></span>'),_0x3e7efc;}function nn(_0xdaa16f){const _0x4236ba=document['createElement']('span');return _0x4236ba['innerText']=_0xdaa16f,_0x4236ba['innerHTML'];}function Xt(_0x12aaf0){return _0x12aaf0['sort']((_0x3699a8,_0x57aad2)=>'deletion'==_0x3699a8['type']&&'deletion'!=_0x57aad2['type']?-0x1:'deletion'!=_0x3699a8['type']&&'deletion'==_0x57aad2['type']?0x1:0x0);}function to(_0x1d0cb9,_0xf4378f){let _0x16331c,_0x4d4dea=0x0;const _0x3c78d7=[],_0x1963a4=_0xf4378f['schema'];for(;_0x4d4dea<_0x1d0cb9['length'];){const _0x30e2e4=_0x1d0cb9[_0x4d4dea],_0x35ea80=_0x1d0cb9[_0x4d4dea+0x1];_0x16331c||(_0x16331c=_0xf4378f['createPositionBefore'](_0x30e2e4)),on(_0xf4378f,_0x30e2e4,_0x35ea80)||(_0x3c78d7['push'](_0xf4378f['createRange'](_0x16331c,_0x1963a4['isObject'](_0x30e2e4)?_0xf4378f['createPositionAfter'](_0x30e2e4):_0xf4378f['createPositionAt'](_0x30e2e4,'end'))),_0x16331c=null),_0x4d4dea++;}return _0x3c78d7;}function on(_0x38be9e,_0x2dea22,_0xc9e5bd){if(!_0xc9e5bd)return!0x1;const _0x116c7e=_0x38be9e['createPositionAfter'](_0x2dea22),_0x23923a=_0x38be9e['createPositionBefore'](_0xc9e5bd);return _0x116c7e['isTouching'](_0x23923a);}function Yt(_0x1ce79e,_0x3db479,_0x277d29){for(;_0x277d29['length'];){const _0x382e0a=_0x277d29['splice'](0x0,0x64);_0x1ce79e['change'](()=>{for(const _0x4d63ca of _0x382e0a)_0x4d63ca['isInContent']&&_0x3db479['execute'](_0x4d63ca['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x561ab7,_0x4fe4c8,_0x44e803){super(_0x561ab7),this['_command']=_0x4fe4c8,this['_suggestions']=_0x44e803,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1b8300=Array['from'](this['_suggestions']['values']())['some'](_0x21f276=>_0x21f276['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1b8300;}['execute'](){const _0x528800=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x2a3213 of _0x528800){const _0x4e9a68=_0x2a3213['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e9a68))return;}Yt(this['editor']['model'],this['_command'],_0x528800);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3c2761,_0x2a58a5,_0x3a561d){super(_0x3c2761),this['_command']=_0x2a58a5,this['_suggestions']=_0x3a561d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e6a42=this['editor']['model']['document']['selection'],_0x281f9c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x8a1120,_0x6b6465){const _0x39ac90=Array['from'](_0x8a1120['getRanges']()),_0x1ec7c1=new Set();for(const _0x4cc99f of _0x6b6465)if(_0x4cc99f['isInContent']){for(const _0x4e6c04 of _0x39ac90)for(const _0x2be728 of _0x4cc99f['getRanges']())(_0x4e6c04['isIntersecting'](_0x2be728)||_0x8a1120['isCollapsed']&&!_0x4cc99f['isMultiRange']&&_0x4cc99f['next']&&_0x2be728['end']['isTouching'](_0x4e6c04['start']))&&_0x1ec7c1['add'](_0x4cc99f);}return _0x1ec7c1;}(_0x3e6a42,_0x281f9c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1497d0=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x5c155e of _0x1497d0){const _0x2ee95d=_0x5c155e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ee95d))return;}Yt(this['editor']['model'],this['_command'],_0x1497d0);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x2e093b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x220ed3,_0x321bae){super(),this['id']=_0x321bae['id'],this['type']=_0x321bae['type'],this['subType']=_0x321bae['subType']||null,this['author']=_0x321bae['author'],this['creator']=_0x321bae['creator']||_0x321bae['author'],this['isExternal']=Boolean(_0x321bae['attributes']&&_0x321bae['attributes']['@external']),this['data']=null,this['_model']=_0x220ed3,this['_onAccept']=_0x321bae['onAccept'],this['_onDiscard']=_0x321bae['onDiscard'],this['_onAttributesChange']=_0x321bae['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x321bae['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 _0x4fe152=this;for(;_0x4fe152['previous'];)_0x4fe152=_0x4fe152['previous'];return _0x4fe152;}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'](_0x228087){this['_markerNames']['add'](_0x228087);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4bd393=>this['_model']['markers']['get'](_0x4bd393))['filter'](_0x36f887=>_0x36f887);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x542122=>{for(const _0x2e6ecf of this['getMarkers']())_0x542122['removeMarker'](_0x2e6ecf);}),this['_markerNames']['clear']();}['removeMarker'](_0x17f5cf){this['_model']['change'](_0x3b0029=>{_0x3b0029['removeMarker'](_0x17f5cf);}),this['_markerNames']['delete'](_0x17f5cf);}['addRange'](_0x29120a){const _0x269060='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x269060),this['_model']['change'](_0x16a416=>{_0x16a416['addMarker'](_0x269060,{'range':_0x29120a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3c5e72){for(const _0x9a9e12 of this['getRanges']())if(_0x9a9e12['isIntersecting'](_0x3c5e72))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x37ee91=>_0x37ee91['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x11283e,_0x2ee758)=>[..._0x11283e,..._0x2ee758['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x52e061=this['getRanges']();if(0x1!=_0x52e061['length'])return null;const _0x3fb258=_0x52e061[0x0],_0x4bffea=_0x3fb258['start']['nodeAfter'],_0x284164=_0x3fb258['end']['nodeBefore'];return _0x4bffea instanceof _0x560399?_0x4bffea!=_0x284164?null:_0x4bffea: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 _0x4803c2=[];let _0x356e6b=this['head'];for(;_0x356e6b;)_0x4803c2['push'](_0x356e6b),_0x356e6b=_0x356e6b['next'];return _0x4803c2;}['setAttribute'](_0x314100,_0x589f36){const _0x2dabe1=_0xb11a5b(this['attributes']);_0x461b13(_0x2dabe1,_0x314100,_0x589f36),_0x3def7b(_0x2dabe1,this['attributes'])||(this['attributes']=_0x2dabe1,this['_onAttributesChange'](_0x2dabe1));}['removeAttribute'](_0xf444ac){const _0xf27f3f=_0xb11a5b(this['attributes']);_0x485a24(_0xf27f3f,_0xf444ac),_0x3def7b(_0xf27f3f,this['attributes'])||(this['attributes']=_0xf27f3f,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 _0x16938d()['substr'](0x1,0x5);}}function o(_0x3e9769,_0x2ef2e8,_0x235879){const _0x5831f9=_0x3e9769['t'],t=_0x3e9769['t'];switch(_0x2ef2e8){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',_0x235879);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x235879);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x235879);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x235879);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x235879);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',_0x235879);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x235879);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',_0x235879);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x235879);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x235879);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x235879);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x235879);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x235879);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x235879);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x235879);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x235879);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x235879);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x235879);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x235879);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x235879);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x235879);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x235879);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x235879);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x235879);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'},_0x235879);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x235879);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x235879);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x235879);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x235879);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x235879);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'},_0x235879);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x235879);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x235879);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x235879);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x235879);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'},_0x235879);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x235879);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'},_0x235879);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'},_0x235879);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x235879);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'},_0x235879);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x235879);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'},_0x235879);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x235879);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x235879);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'},_0x235879);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x235879);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 _0x5831f9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x235879);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5831f9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x235879);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x235879);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'},_0x235879);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'},_0x235879);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'},_0x235879);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ef2e8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x29acab,_0x244219){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x29acab,this['_locale']=_0x244219;}['getDescriptions'](_0x246341){const _0x4b606a=[],_0x1319c5=new Set(),_0x5c936b=new Set();for(let _0x5db69c=0x0;_0x5db69c<_0x246341['length'];_0x5db69c++){const _0x43f970=_0x246341[_0x5db69c];if(!_0x43f970['isInContent'])continue;const _0x518446=this['_handleCustomCallbackDescription'](_0x43f970);if(_0x518446){if(null!=_0x43f970['subType']){if(_0x1319c5['has'](_0x43f970['subType']))continue;_0x1319c5['add'](_0x43f970['subType']);}_0x4b606a['push'](_0x518446);}else{if('attribute'!=_0x43f970['type'])'insertion'!=_0x43f970['type']&&'deletion'!=_0x43f970['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4b606a,_0x43f970,_0x246341[_0x5db69c+0x1]);else{const _0x44ae51=_0x43f970['data']['key'];if(_0x5c936b['has'](_0x44ae51))continue;_0x5c936b['add'](_0x43f970['data']['key']),_0x44ae51==m?this['_handleRenameSuggestionDescription'](_0x4b606a,_0x43f970):this['_handleAttributeSuggestionDescription'](_0x4b606a,_0x43f970);}}}return this['_resolveDescriptionItems'](_0x4b606a);}['registerDescriptionCallback'](_0x45dbc8){this['_customCallbacks']['push'](_0x45dbc8);}['registerElementLabel'](_0x1547e3,_0x5dae48,_0x46cfaf=_0x39f89f['normal']){'function'==typeof _0x1547e3?_0x5ecd22(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1547e3,'label':_0x5dae48,'priority':_0x46cfaf}):this['_itemLabels']['set'](_0x1547e3,_0x5dae48);}['registerAttributeLabel'](_0x5b6238,_0x41cefe){this['_attributeLabels']['set'](_0x5b6238,_0x41cefe);}['getItemLabel'](_0x4ae0f8,_0x17299f=0x1){let _0xa11fbe;for(const _0x14daf9 of this['_itemLabelsCallbacks'])if(_0x14daf9['matchingCallback'](_0x4ae0f8)){_0xa11fbe=_0x14daf9['label'];break;}return _0xa11fbe||(_0xa11fbe=this['_itemLabels']['get'](_0x4ae0f8['name'])),_0xa11fbe?_0xa11fbe(_0x17299f):0x1!==_0x17299f?_0x17299f+'\x20'+_0x4ae0f8['name']+'s':''+_0x4ae0f8['name'];}['_addDescriptionItems'](_0x136767,_0xde61bf){const _0x36a183=_0xde61bf['getFirstRange']()['getWalker'](),_0x5912dd='insertion'==_0xde61bf['type']?'add':'remove';for(const _0x25e99c of _0x36a183){const _0x5644b9=_0x25e99c['item'],_0x2d53ac=_0x136767[_0x136767['length']-0x1];if(_0x5644b9['is']('$textProxy'))_0x2d53ac&&_0x2d53ac['type']['indexOf']('Container')>-0x1&&_0x136767['pop'](),_0x2d53ac&&'text'==_0x2d53ac['type']?_0x2d53ac[_0x5912dd]+=_0x5644b9['data']:_0x136767['push']({'type':'text','add':'add'==_0x5912dd?_0x5644b9['data']:'','remove':'remove'==_0x5912dd?_0x5644b9['data']:''});else{if(this['_schema']['isObject'](_0x5644b9)){const _0x402191=_0x5644b9;if(_0x2d53ac&&_0x2d53ac['type']['indexOf']('Container')>-0x1&&_0x136767['pop'](),'elementEnd'==_0x25e99c['type'])continue;_0x2d53ac&&_0x2d53ac['type']==_0x5912dd+'Object'&&_0x2d53ac['element']['name']==_0x402191['name']?_0x2d53ac['quantity']++:_0x136767['push']({'type':_0x5912dd+'Object','element':_0x402191,'quantity':0x1}),_0x36a183['skip'](_0x1b3c79=>!('elementEnd'==_0x1b3c79['type']&&_0x1b3c79['item']==_0x5644b9));}else{if(this['_schema']['checkChild'](_0x5644b9,'$text')||_0x5644b9['is']('element','softBreak')){const _0x415175=_0x5644b9;if('add'==_0x5912dd&&'elementStart'==_0x25e99c['type']||'remove'==_0x5912dd&&'elementEnd'==_0x25e99c['type'])continue;if(_0x2d53ac&&-0x1==_0x2d53ac['type']['indexOf']('Container')){'text'==_0x2d53ac['type']&&(_0x2d53ac[_0x5912dd]+='\x0a');continue;}let _0x5d9b91;if(_0x5d9b91='add'==_0x5912dd?_0x415175['nextSibling']&&!this['_schema']['isObject'](_0x415175['nextSibling'])?_0x415175['nextSibling']:null:_0x415175['previousSibling']&&!this['_schema']['isObject'](_0x415175['previousSibling'])?_0x415175['previousSibling']:null,_0x415175['isEmpty']||_0x5d9b91&&_0x5d9b91['isEmpty']){const _0x4b368c=_0x5d9b91&&_0x5d9b91['isEmpty']?_0x5d9b91:_0x415175;_0x2d53ac&&_0x2d53ac['type']==_0x5912dd+'EmptyContainer'&&_0x2d53ac['element']['name']==_0x4b368c['name']?_0x2d53ac['quantity']++:_0x136767['push']({'type':_0x5912dd+'EmptyContainer','element':_0x4b368c,'quantity':0x1});}else _0x136767['push']({'type':_0x5912dd+'Container','element':_0x415175});}}}}}['_resolveDescriptionItems'](_0x5c9e95){const _0x5e0b70=this['_locale'],_0x3eb528=[],_0x4ad25b=[],_0x1db32b=[];for(const _0x65d16e of _0x5c9e95)switch(_0x65d16e['type']){case'text':if(_0x65d16e['add']=_0x65d16e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x65d16e['remove']=_0x65d16e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x65d16e['add']&&''!=_0x65d16e['remove']){_0x3eb528['push']({'type':'replace','content':o(_0x5e0b70,'REPLACE_TEXT',['\x22'+_0x65d16e['remove']+'\x22','\x22'+_0x65d16e['add']+'\x22'])});continue;}if(null!=_0x65d16e['add']['match'](/^ +$/)){_0x3eb528['push']({'type':'insertion','content':o(_0x5e0b70,'*Insert:*\x20%0',o(_0x5e0b70,'ELEMENT_SPACE',_0x65d16e['add']['length']))});continue;}if(null!=_0x65d16e['remove']['match'](/^ +$/)){_0x3eb528['push']({'type':'deletion','content':o(_0x5e0b70,'*Remove:*\x20%0',o(_0x5e0b70,'ELEMENT_SPACE',_0x65d16e['remove']['length']))});continue;}if(''!=_0x65d16e['add']){_0x3eb528['push']({'type':'insertion','content':o(_0x5e0b70,'*Insert:*\x20%0','\x22'+_0x65d16e['add']+'\x22')});continue;}_0x3eb528['push']({'type':'deletion','content':o(_0x5e0b70,'*Remove:*\x20%0','\x22'+_0x65d16e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3eb528['push']({'type':'insertion','content':o(_0x5e0b70,'*Insert:*\x20%0',this['getItemLabel'](_0x65d16e['element'],_0x65d16e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3eb528['push']({'type':'deletion','content':o(_0x5e0b70,'*Remove:*\x20%0',this['getItemLabel'](_0x65d16e['element'],_0x65d16e['quantity']))});continue;case'addContainer':_0x3eb528['push']({'type':'insertion','content':o(_0x5e0b70,'*Split:*\x20%0',this['getItemLabel'](_0x65d16e['element'],_0x65d16e['quantity']))});continue;case'removeContainer':_0x3eb528['push']({'type':'deletion','content':o(_0x5e0b70,'*Merge:*\x20%0',this['getItemLabel'](_0x65d16e['element'],_0x65d16e['quantity']))});continue;case'addFormat':_0x4ad25b['push'](_0x65d16e['key']);continue;case'removeFormat':_0x1db32b['push'](_0x65d16e['key']);continue;default:_0x3eb528['push'](_0x65d16e);}if(_0x4ad25b['length']){const _0x5722ac=_0x4ad25b['map'](_0x341b8=>this['_attributeLabels']['has'](_0x341b8)?this['_attributeLabels']['get'](_0x341b8):_0x341b8)['join'](',\x20');_0x3eb528['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5722ac)});}if(_0x1db32b['length']){const _0x4b687c=_0x1db32b['map'](_0x35d33c=>this['_attributeLabels']['has'](_0x35d33c)?this['_attributeLabels']['get'](_0x35d33c):_0x35d33c)['join'](',\x20');_0x3eb528['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4b687c)});}return _0x3eb528;}['_handleCustomCallbackDescription'](_0x560eaa){for(const _0x13807e of this['_customCallbacks']){const _0xa0ece0=_0x13807e(_0x560eaa);if(_0xa0ece0&&'type'in _0xa0ece0)return _0xa0ece0;}}['_handleAttributeSuggestionDescription'](_0x4930da,_0x42f912){const _0x45f417=_0x42f912['data'],_0x16fb30=void 0x0===_0x45f417['newValue']?'removeFormat':'addFormat';_0x4930da['push']({'type':_0x16fb30,'key':_0x45f417['key']});}['_handleRenameSuggestionDescription'](_0x5ccd2d,_0x2d5a9a){_0x5ccd2d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2d5a9a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a9ee1,_0x33d7d0,_0x1c0e58){if(this['_addDescriptionItems'](_0x2a9ee1,_0x33d7d0),_0x1c0e58&&_0x1c0e58['getFirstRange']()&&!_0x33d7d0['getFirstRange']()['end']['isEqual'](_0x1c0e58['getFirstRange']()['start'])){const _0x31abec=_0x2a9ee1[_0x2a9ee1['length']-0x1],_0x1af43d='insertion'==_0x33d7d0['type']?'add':'remove';_0x31abec&&'text'==_0x31abec['type']&&(_0x31abec[_0x1af43d]+='\x0a');}}}class U extends _0x4bc43a{['afterInit'](){const _0x66abe7=this['editor'],_0x58ebcb=_0x66abe7['plugins']['get']('TrackChangesEditing');_0x66abe7['commands']['get']('showAIAssistant')&&_0x58ebcb['enableCommand']('showAIAssistant');}}class V extends _0x4bc43a{['afterInit'](){const _0x23e3c1=this['editor'],_0x3b52e1=_0x23e3c1['locale'];if(!_0x23e3c1['plugins']['has']('AlignmentEditing'))return;const _0x26b100=_0x23e3c1['plugins']['get']('TrackChangesEditing');_0x26b100['enableDefaultAttributesIntegration']('alignment'),_0x26b100['registerBlockAttribute']('alignment'),_0x26b100['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b52e1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7ccacc=this['editor'],_0x1a8b65=_0x7ccacc['locale'];_0x7ccacc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6b5981=>{if('formatBlock'!=_0x6b5981['type'])return;const {data:_0x40be5f}=_0x6b5981;if(_0x40be5f&&'alignment'==_0x40be5f['commandName']){const _0x373895=_0x40be5f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1a8b65,'*Format:*\x20%0',function(_0x5e7b58){switch(_0x5e7b58){case'left':return o(_0x1a8b65,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1a8b65,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1a8b65,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1a8b65,'FORMAT_JUSTIFY_TEXT');}}(_0x373895))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4bc43a{['afterInit'](){const _0x1940c2=this['editor'],_0x359608=_0x1940c2['plugins']['get']('TrackChangesEditing'),_0x3ed1f6=_0x1940c2['locale'];for(const _0x142437 of ti){if(!_0x1940c2['plugins']['has'](_0x142437))continue;const _0x4c323e=_0x142437['slice'](0x0,-0x7)['toLowerCase'](),_0x1676fc='FORMAT_'+_0x4c323e['toUpperCase']();_0x359608['enableDefaultAttributesIntegration'](_0x4c323e),_0x359608['registerInlineAttribute'](_0x4c323e),_0x359608['descriptionFactory']['registerAttributeLabel'](_0x4c323e,o(_0x3ed1f6,_0x1676fc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548529=this['editor'],_0x19006d=_0x548529['locale'],_0x49d527=_0x548529['plugins']['get']('TrackChangesEditing');function _0x324a45(_0x516676,_0x3e0672){_0x49d527['descriptionFactory']['registerDescriptionCallback'](_0x3a40cb=>{if('formatInline'!=_0x3a40cb['type'])return;const {data:_0x200309}=_0x3a40cb;return _0x200309&&_0x200309['commandName']===_0x516676?_0x200309['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19006d,'*Format:*\x20%0',_0x3e0672)}:{'type':'format','content':o(_0x19006d,'*Remove\x20format:*\x20%0',_0x3e0672)}:void 0x0;});}_0x324a45('bold',o(_0x19006d,'FORMAT_BOLD')),_0x324a45('italic',o(_0x19006d,'FORMAT_ITALIC')),_0x324a45('underline',o(_0x19006d,'FORMAT_UNDERLINE')),_0x324a45('code',o(_0x19006d,'FORMAT_CODE')),_0x324a45('strikethrough',o(_0x19006d,'FORMAT_STRIKETHROUGH')),_0x324a45('subscript',o(_0x19006d,'FORMAT_SUBSCRIPT')),_0x324a45('superscript',o(_0x19006d,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4bc43a{['afterInit'](){const _0x4440b0=this['editor'],_0x3549c8=_0x4440b0['locale'];if(!_0x4440b0['plugins']['has']('BlockQuoteEditing'))return;const _0xd06577=_0x4440b0['plugins']['get']('TrackChangesEditing'),_0x858516=this['editor']['commands']['get']('blockQuote');_0xd06577['enableCommand']('blockQuote',(_0xfdf331,_0x56b6c6={})=>{const _0x3dc06b=this['editor']['model']['document']['selection'],_0x4cb8ba=_0x56b6c6&&void 0x0!==_0x56b6c6['forceValue']?_0x56b6c6['forceValue']:!_0x858516['value'];let _0x3b9af6=[];if(_0x4cb8ba){const _0x2f77a9=Array['from'](_0x3dc06b['getSelectedBlocks']())['filter'](_0x43235e=>oo(_0x43235e)||function(_0x6d8640,_0x35c6f9){const _0x5a9752=_0x35c6f9['checkChild'](_0x6d8640['parent'],'blockQuote'),_0xe247a=_0x35c6f9['checkChild'](['$root','blockQuote'],_0x6d8640);return _0x5a9752&&_0xe247a;}(_0x43235e,this['editor']['model']['schema']));_0x3b9af6=to(_0x2f77a9,_0x4440b0['model']);}else{const _0xd984e7=Array['from'](_0x3dc06b['getSelectedBlocks']())['filter'](_0x3ea0e0=>oo(_0x3ea0e0));_0x3b9af6=to(_0xd984e7,_0x4440b0['model']);}_0x4440b0['model']['change'](()=>{for(const _0x51cd66 of _0x3b9af6)_0xd06577['markBlockFormat'](_0x51cd66,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4cb8ba}]});});}),_0xd06577['descriptionFactory']['registerDescriptionCallback'](_0x385381=>{const {data:_0x411d40}=_0x385381;if(_0x411d40&&'blockQuote'==_0x411d40['commandName']){const _0x3c18d5=o(_0x3549c8,'ELEMENT_BLOCK_QUOTE');return _0x411d40['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3549c8,'*Set\x20format:*\x20%0',_0x3c18d5)}:{'type':'format','content':o(_0x3549c8,'*Remove\x20format:*\x20%0',_0x3c18d5)};}});}}function oo(_0xf012d2){return'blockQuote'==_0xf012d2['parent']['name'];}class L extends _0x4bc43a{['afterInit'](){const _0x27f172=this['editor'],_0x56c473=_0x27f172['locale'],_0x2214f2=_0x27f172['plugins']['get']('TrackChangesEditing');_0x27f172['plugins']['has']('BookmarkEditing')&&(_0x2214f2['enableCommand']('insertBookmark'),_0x2214f2['enableDefaultAttributesIntegration']('updateBookmark'),_0x2214f2['registerBlockAttribute']('bookmarkId'),_0x2214f2['descriptionFactory']['registerDescriptionCallback'](_0x5eb355=>{if('insertion'!=_0x5eb355['type']&&'deletion'!=_0x5eb355['type']&&'attribute'!=_0x5eb355['type'])return;const _0x44ee79=_0x5eb355['getContainedElement']();if(null==_0x44ee79)return;if(!_0x44ee79['is']('element','bookmark'))return;const _0x16e366=_0x44ee79['getAttribute']('bookmarkId');if('insertion'==_0x5eb355['type'])return{'type':'insertion','content':o(_0x56c473,'*Insert:*\x20%0','\x22'+_0x16e366+'\x22\x20'+o(_0x56c473,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5eb355['type'])return{'type':'deletion','content':o(_0x56c473,'*Remove:*\x20%0','\x22'+_0x16e366+'\x22\x20'+o(_0x56c473,'ELEMENT_BOOKMARK'))};const {data:_0x50de55}=_0x5eb355;if(!_0x50de55||'bookmarkId'!=_0x50de55['key'])return;return{'type':'format','content':o(_0x56c473,'*Set\x20bookmark:*\x20%0','\x22'+_0x50de55['newValue']+'\x22')};}));}}class J extends _0x4bc43a{['afterInit'](){const _0x20dd95=this['editor'];_0x20dd95['plugins']['has']('CaseChange')&&(_0x20dd95['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x20dd95['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x20dd95['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4bc43a{['afterInit'](){const _0x15b096=this['editor'];_0x15b096['commands']['get']('ckbox')&&_0x15b096['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4bc43a{['afterInit'](){const _0x5f3eba=this['editor'];if(!_0x5f3eba['plugins']['has']('CodeBlock'))return;const _0xda64b=_0x5f3eba['plugins']['get']('TrackChangesEditing'),_0x2dd158=_0x5f3eba['locale'],_0x446807=_0x5f3eba['config']['get']('codeBlock')['languages'],_0x5bd30e=_0x5f3eba['commands']['get']('codeBlock');_0xda64b['enableCommand']('indentCodeBlock'),_0xda64b['enableCommand']('outdentCodeBlock'),_0xda64b['enableCommand']('codeBlock',(_0xa313c2,_0x5dc7bd={})=>{const _0x14aab8=_0x5f3eba['model'],_0x59952b=_0x5f3eba['model']['document']['selection'],_0x1bc4ad=_0x5dc7bd&&void 0x0!==_0x5dc7bd['forceValue']?_0x5dc7bd['forceValue']:!_0x5bd30e['value'];let _0x3d73cd;_0x5dc7bd['language']||(_0x5dc7bd['language']=_0x446807[0x0]['language']),_0x3d73cd=_0x1bc4ad?Array['from'](_0x59952b['getSelectedBlocks']())['filter'](_0x8e646b=>eo(_0x8e646b)||function(_0x3e708c,_0xe051ae){if(_0x3e708c['is']('rootElement')||_0xe051ae['isLimit'](_0x3e708c))return!0x1;return _0xe051ae['checkChild'](_0x3e708c['parent'],'codeBlock');}(_0x8e646b,_0x14aab8['schema'])):Array['from'](_0x59952b['getSelectedBlocks']())['filter'](_0x276b08=>eo(_0x276b08));const _0x506b91=to(_0x3d73cd,_0x14aab8);_0x14aab8['change'](()=>{for(const _0x368296 of _0x506b91)_0xda64b['markBlockFormat'](_0x368296,{'commandName':'codeBlock','commandParams':[{..._0x5dc7bd,'forceValue':_0x1bc4ad}],'formatGroupId':'blockName'});});}),(_0xda64b['descriptionFactory']['registerElementLabel']('codeBlock',_0x207050=>o(_0x2dd158,'ELEMENT_CODE_BLOCK',_0x207050)),_0xda64b['descriptionFactory']['registerDescriptionCallback'](_0x3ee150=>{if('formatBlock'!=_0x3ee150['type'])return;const _0x25864f=_0x2dd158['t'],{data:_0x3285f6}=_0x3ee150;if(!_0x3285f6||'codeBlock'!=_0x3285f6['commandName'])return;const _0x3c78dd=_0x3285f6['commandParams'][0x0]['language'],_0x269c83=_0x25864f(_0x446807['find'](_0x142920=>_0x142920['language']===_0x3c78dd)['label'])['toLowerCase']();return _0x3285f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2dd158,'*Set\x20format:*\x20%0',o(_0x2dd158,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x269c83+')')}:{'type':'format','content':o(_0x2dd158,'*Remove\x20format:*\x20%0',o(_0x2dd158,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x52456b){return'codeBlock'==_0x52456b['name'];}class z extends _0x4bc43a{['afterInit'](){const _0x4121e0=this['editor'];if(!_0x4121e0['plugins']['has']('CommentsEditing'))return;_0x4121e0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x17ea8e,_0x5ad884,_0x188f93){const _0x263d95=[];for(const _0x391999 of _0x5ad884['getItems']())_0x391999['hasAttribute'](_0x17ea8e)&&_0x263d95['push'](_0x188f93['createRangeOn'](_0x391999));return _0x263d95;}function De(_0x48de96,_0xa0f4b0,{showActiveMarker:_0x112812=!0x0}={}){const _0x352da7=_0x48de96['plugins']['get']('TrackChangesEditing');return(_0x31e503,_0x349a19,_0x54e5e1)=>{if(!_0x54e5e1['consumable']['test'](_0x349a19['markerRange'],_0x31e503['name']))return;const _0x3fd74a=_0x349a19['markerRange']['getWalker'](),_0x256e07=_0x349a19['markerRange']['start'],_0x16c063=_0x48de96['model']['schema'];let _0x1ef346=null,_0x1f94a8=null,_0x3afa15=!0x1,_0x1a6e01=!0x1;for(const _0x46a346 of _0x3fd74a){const _0xd7cc58=_0x46a346['item'];_0x3afa15=_0x3afa15||_0x16c063['isContent'](_0xd7cc58);const _0x254403=_0x54e5e1['mapper']['toViewElement'](_0xd7cc58);if(_0x254403&&_0x254403['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46a346['type']&&(_0x16c063['isBlock'](_0xd7cc58)&&!_0x16c063['isLimit'](_0xd7cc58)&&(_0xd7cc58['nextSibling']||_0x256e07['isAtEnd']?_0x1ef346&&_0x1ef346['parent']==_0xd7cc58||(_0x1ef346=_0xd7cc58,_0x4e6667(_0x46a346['previousPosition']),_0x1a6e01=!0x0):_0x1f94a8=_0x1f94a8||_0x46a346['previousPosition']));}function _0x4e6667(_0x3f638f){const {authorId:_0x26538b}=_0x352da7['_splitMarkerName'](_0x349a19['markerName']),_0x5b2195=_0x54e5e1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xa0f4b0,'data-author-id':_0x26538b}),_0xac3c5b=_0x54e5e1['mapper']['toViewPosition'](_0x3f638f);_0x112812&&_0x352da7['activeMarkers']['includes'](_0x349a19['markerName'])&&_0x54e5e1['writer']['addClass']('ck-suggestion-marker--active',_0x5b2195),_0x54e5e1['writer']['insert'](_0xac3c5b,_0x5b2195),_0x54e5e1['mapper']['bindElementToMarker'](_0x5b2195,_0x349a19['markerName']);}_0x3afa15||_0x1a6e01||!_0x1f94a8||_0x4e6667(_0x1f94a8);};}class K extends _0x4bc43a{static get['requires'](){return[_0x3c241a];}['init'](){const _0xa1a14d=this['editor'],_0xe6d0b3=_0xa1a14d['plugins']['get']('TrackChangesEditing');_0xe6d0b3['enableCommand']('delete');const _0x30d55e=_0xa1a14d['commands']['get']('deleteForward');_0xe6d0b3['enableCommand']('deleteForward',(_0x153a36,_0x2776c8={})=>{const _0xa36b0c=_0xa1a14d['model']['createSelection'](_0xa1a14d['model']['document']['selection']);_0xa36b0c['isCollapsed']&&_0xa1a14d['model']['modifySelection'](_0xa36b0c,{'direction':'forward','unit':_0x2776c8['unit']});const _0x111bab=_0xa36b0c['getFirstRange'](),_0x3bc3b2=_0x3db890['fromRange'](_0x111bab);let _0x117092;_0x153a36(_0x2776c8),_0x117092='$graveyard'==_0x3bc3b2['root']['rootName']?_0xa1a14d['model']['createRange'](_0x111bab['start']):_0xa1a14d['model']['createRange'](_0x3bc3b2['start'],_0x3bc3b2['end']),_0x3bc3b2['detach'](),_0xa1a14d['model']['enqueueChange'](_0x30d55e['buffer']['batch'],_0x1959f5=>{_0x30d55e['buffer']['lock'](),_0x1959f5['setSelection'](_0x1959f5['createRange'](_0x117092['end'])),_0x30d55e['buffer']['unlock']();});}),_0xa1a14d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xa1a14d,'merge'),{'priority':'high'}),_0xa1a14d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x7f3124,_0x127134,_0x132434)=>{_0x132434['options']['showSuggestionHighlights']&&De(_0xa1a14d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x7f3124,_0x127134,_0x132434);},{'priority':'high'}),_0xa1a14d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x19f1cb,_0x4f4526,_0x7c140a)=>{const _0x27d6a2=_0x7c140a['mapper']['markerNameToElements'](_0x4f4526['markerName']);if(_0x27d6a2){for(const _0x2769a6 of _0x27d6a2)_0x2769a6['is']('uiElement')&&(_0x7c140a['mapper']['unbindElementFromMarkerName'](_0x2769a6,_0x4f4526['markerName']),_0x7c140a['writer']['remove'](_0x2769a6));}},{'priority':'high'});}}class W extends _0x4bc43a{['afterInit'](){const _0x4457ce=this['editor'];if(!_0x4457ce['plugins']['has']('ListEditing'))return;const _0x51732a=_0x4457ce['locale'],_0x7e64b8=_0x4457ce['plugins']['get']('TrackChangesEditing'),_0xe0c8e6=_0x4457ce['plugins']['has']('TodoListEditing'),_0x3472e2=!!_0x4457ce['config']['get']('list.multiBlock');function _0x15e6c8(_0x1ea467){return{'type':'format','content':''+o(_0x51732a,'*Set\x20format:*\x20%0',_0x1ea467)};}function _0x5bef59(_0x4da935){return{'type':'format','content':''+o(_0x51732a,'*Remove\x20format:*\x20%0',_0x4da935)};}_0x7e64b8['enableDefaultAttributesIntegration']('numberedList'),_0x7e64b8['enableDefaultAttributesIntegration']('bulletedList'),_0x7e64b8['enableDefaultAttributesIntegration']('customNumberedList'),_0x7e64b8['enableDefaultAttributesIntegration']('customBulletedList'),_0x7e64b8['enableDefaultAttributesIntegration']('indentList'),_0x7e64b8['enableDefaultAttributesIntegration']('outdentList'),_0x7e64b8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x7e64b8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x7e64b8['registerBlockAttribute']('listItemId'),_0x7e64b8['registerBlockAttribute']('listType'),_0x7e64b8['registerBlockAttribute']('listIndent'),_0x3472e2&&(_0x7e64b8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x7e64b8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xe0c8e6&&(_0x7e64b8['enableDefaultAttributesIntegration']('todoList'),_0x7e64b8['enableDefaultAttributesIntegration']('checkTodoList'),_0x7e64b8['registerBlockAttribute']('todoListChecked'),_0x7e64b8['descriptionFactory']['registerDescriptionCallback'](_0x59e4af=>{const {data:_0x29ed70}=_0x59e4af;if(_0x29ed70&&'todoListChecked'==_0x29ed70['key'])return{'type':'format','content':_0x29ed70['newValue']?o(_0x51732a,'*Check\x20item*'):o(_0x51732a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4865bc=>{if(_0x4865bc['batch']['isUndo'])return!0x1;let _0x16851e=!0x1;const _0x304328=_0x7e64b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53edf1=>'todoListChecked'===_0x7e64b8['_getAttributeKey'](_0x53edf1));for(const _0x171b98 of _0x304328){'todo'!=_0x171b98['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x7e64b8['_findSuggestions'](_0x171b98['getFirstRange'](),'attribute')['find'](_0x56f1d5=>'listType'===_0x7e64b8['_getAttributeKey'](_0x56f1d5['suggestion']))||(_0x4865bc['removeMarker'](_0x171b98['getFirstMarker']()),_0x16851e=!0x0));}return _0x16851e;})),_0x7e64b8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x51732a,'FORMAT_INDENT'));const _0x2fba32={'type':'format','content':''};_0x7e64b8['descriptionFactory']['registerDescriptionCallback'](_0x28f189=>{const {data:_0x4f4b54}=_0x28f189;if(!_0x4f4b54||'listType'!=_0x4f4b54['key'])return;let _0x3cb11b=_0x28f189['head'];for(;_0x3cb11b;){if(_0x3cb11b['data']&&(('listStyle'==_0x3cb11b['data']['key']||'listMarkerStyle'==_0x3cb11b['data']['key'])&&(_0x3cb11b['data']['newValue']&&'default'!=_0x3cb11b['data']['newValue']||'default'!=_0x3cb11b['data']['oldValue']&&!_0x4f4b54['newValue'])||!_0x3472e2&&_0x3cb11b['data']['key']==m))return _0x2fba32;_0x3cb11b=_0x3cb11b['next'];}if(null==_0x4f4b54['newValue'])switch(_0x4f4b54['oldValue']){case'bulleted':return _0x5bef59(o(_0x51732a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bef59(o(_0x51732a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bef59(o(_0x51732a,'ELEMENT_TODO_LIST'));}switch(_0x4f4b54['newValue']){case'bulleted':return _0x15e6c8(o(_0x51732a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15e6c8(o(_0x51732a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15e6c8(o(_0x51732a,'ELEMENT_TODO_LIST'));}}),_0x7e64b8['descriptionFactory']['registerDescriptionCallback'](_0x5a2115=>{const {data:_0x4437cb}=_0x5a2115;if(_0x4437cb&&'listIndent'==_0x4437cb['key'])return null==_0x4437cb['newValue']||null==_0x4437cb['oldValue']&&0x0==_0x4437cb['newValue']?_0x2fba32:void 0x0;}),_0x7e64b8['descriptionFactory']['registerDescriptionCallback'](_0x4d3a16=>{if('attribute'!=_0x4d3a16['type'])return;const {data:_0x3b6dd0}=_0x4d3a16;if(!_0x3b6dd0||'listItemId'!=_0x3b6dd0['key'])return;const _0x276d83=Te(_0x4d3a16);return'newValue'==_0x276d83?{'type':'format','content':o(_0x51732a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x276d83?{'type':'format','content':o(_0x51732a,'*Split:*\x20list\x20item')}:_0x2fba32;}),_0x4457ce['model']['document']['registerPostFixer'](_0x2e1402=>this['listItemIdFixer'](_0x2e1402)),_0x4457ce['model']['document']['registerPostFixer'](_0x193ea0=>this['noTrackChangesFixer'](_0x193ea0)),_0x4457ce['model']['document']['on']('change:data',(_0x4b27e0,_0x45f550)=>{if(_0x45f550['isUndo']||!_0x45f550['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x311922){if(_0x311922['batch']['isUndo']||!_0x311922['batch']['isLocal'])return!0x1;let _0x38be46=!0x1;const _0x1eba04=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x403a7d=>_0x403a7d['data']&&'listItemId'==_0x403a7d['data']['key'])['filter'](_0x2eb092=>_0x2eb092['data']['newValue']&&_0x2eb092['data']['oldValue']);for(const _0x5b96a2 of _0x1eba04)Te(_0x5b96a2)||(_0x311922['removeMarker'](_0x5b96a2['getFirstMarker']()),_0x38be46=!0x0);return _0x38be46;}['noTrackChangesFixer'](_0x522f34){if(_0x522f34['batch']['isUndo']||!_0x522f34['batch']['isLocal'])return!0x1;const _0x2dce36=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2dce36['trackChangesCommand']['value'])return!0x1;let _0x2c0b3c=!0x1;const _0x4c1531=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5a117e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xbb1eca=>'attribute'==_0xbb1eca['type'])['filter'](_0x165570=>_0x4c1531['includes'](_0x165570['attributeKey']));if(0x0==_0x5a117e['length'])return _0x2c0b3c;for(const _0x4225d9 of _0x5a117e){const _0x4dd592=_0x2dce36['_findSuggestions'](_0x4225d9['range'],'attribute')['filter'](_0x5e5e50=>!_0x5e5e50['meta']['isNextTo'])['map'](_0x53011d=>_0x53011d['suggestion'])['filter'](_0x37ba3e=>{const _0x14b0da=_0x2dce36['_getAttributeKey'](_0x37ba3e);return _0x4c1531['includes'](_0x14b0da);});if(_0x4dd592['length']){for(const _0x2cadde of _0x4dd592)_0x522f34['removeMarker'](_0x2cadde['getFirstMarker']());_0x2c0b3c=!0x0;}}return _0x2c0b3c;}['assureChains'](){const _0x53010a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5763=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x429cbb;const _0x48fb80=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x28d833=>{if(_0x28d833['data']['oldRange']||!_0x28d833['data']['newRange'])return null;if(!_0x28d833['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x53a1ae}=_0x53010a['_splitMarkerName'](_0x28d833['name']);if(!_0x53010a['hasSuggestion'](_0x53a1ae))return null;const _0x2f0890=_0x53010a['getSuggestion'](_0x53a1ae);return _0x3e5763['includes'](_0x2f0890['data']['key']);})['map'](_0x63b764=>{const {id:_0x3bbd23}=_0x53010a['_splitMarkerName'](_0x63b764['name']),_0x336a41=_0x53010a['getSuggestion'](_0x3bbd23);return _0x429cbb=_0x336a41['attributes']['groupId'],_0x336a41['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x48fb80['size'])return;const _0x50fe92=_0x53010a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b4333=>'attribute'==_0x4b4333['type']&&_0x4b4333['data']&&_0x3e5763['includes'](_0x4b4333['data']['key'])&&_0x4b4333['attributes']['groupId']!=_0x429cbb)['map'](_0x21bc23=>({'listItem':_0x21bc23['getFirstRange']()['start']['nodeAfter'],'groupId':_0x21bc23['attributes']['groupId']})),_0x39a0cb=new Set();for(const {groupId:_0x595d4e,listItem:_0x4f0462}of _0x50fe92)_0x48fb80['has'](_0x4f0462)&&_0x39a0cb['add'](_0x595d4e);for(const _0xc84b41 of _0x53010a['getSuggestions']())_0x39a0cb['has'](_0xc84b41['attributes']['groupId'])&&_0xc84b41['setAttribute']('groupId',_0x429cbb);}['_supportLegacySuggestions'](){const _0x37538f=this['editor'],_0x359ed6=_0x37538f['locale'],_0x30dd07=_0x37538f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x30dd07['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x57a631,_0x45ca75){const _0x1bc501=[];for(let _0xee3ff3 of _0x57a631)_0xee3ff3['start']['nodeAfter']===_0xee3ff3['end']['parent']&&(_0xee3ff3=_0x37538f['model']['createRange'](_0x37538f['model']['createPositionAt'](_0xee3ff3['start']['nodeAfter'],0x0))),_0x1bc501['push'](_0xee3ff3);_0x37538f['model']['change'](_0x172bde=>{const _0x6c8b20=_0x37538f['model']['document']['selection'],_0x911916=Array['from'](_0x6c8b20['getRanges']())['map'](_0xd48622=>_0x3db890['fromRange'](_0xd48622));_0x172bde['setSelection'](_0x1bc501),_0x37538f['commands']['get'](_0x45ca75['commandName'])['refresh'](),_0x45ca75['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x37538f['execute'](_0x45ca75['commandName'],..._0x45ca75['commandParams']),_0x172bde['setSelection'](_0x911916);for(const _0xc03b29 of _0x911916)_0xc03b29['detach']();});}),_0x30dd07['descriptionFactory']['registerElementLabel'](function(_0x4ff6bf){const _0x320439=!_0x37538f['model']['schema']['isObject'](_0x4ff6bf),_0x5f3849=_0x4ff6bf['previousSibling'],_0x261ed0=_0x4ff6bf['nextSibling'],_0x19769f=_0x4ff6bf['getAttribute']('listItemId'),_0x32ebc4=!_0x5f3849||_0x5f3849['getAttribute']('listItemId')!==_0x19769f,_0x22c7a2=!_0x261ed0||_0x261ed0['getAttribute']('listItemId')!==_0x19769f;return _0x320439&&Boolean(_0x19769f)&&_0x32ebc4&&_0x22c7a2;},_0x2d9c2c=>o(_0x359ed6,'ELEMENT_LIST_ITEM',_0x2d9c2c));}['_registerLegacyDescription'](){const _0x48795c=this['editor'],_0x313da8=_0x48795c['locale'];function _0x199040(_0x214f37){const _0x25510b=_0x48795c['commands']['get']('bulletedList')['value'],_0x4a1da5=_0x48795c['commands']['get']('numberedList')['value'];return'numberedList'===_0x214f37?_0x25510b:_0x4a1da5;}_0x48795c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x51c31a){if('formatBlock'!=_0x51c31a['type'])return;const {data:_0x118ac7}=_0x51c31a;if(!_0x118ac7)return;let _0x3d6fdd,_0x3eafb2,_0x182e2a,_0x5d4df2;switch(_0x118ac7['commandName']){case'bulletedList':_0x182e2a=_0x118ac7['commandParams'][0x0]['forceValue'],_0x5d4df2=_0x199040(_0x118ac7['commandName']),_0x3d6fdd=_0x182e2a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d4df2&&_0x48795c['config']['get']('list.multiBlock')||(_0x3d6fdd='*Change\x20to:*\x20%0'),_0x3eafb2={'type':'format','content':o(_0x313da8,_0x3d6fdd,o(_0x313da8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x182e2a=_0x118ac7['commandParams'][0x0]['forceValue'],_0x5d4df2=_0x199040(_0x118ac7['commandName']),_0x3d6fdd=_0x182e2a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d4df2&&_0x48795c['config']['get']('list.multiBlock')||(_0x3d6fdd='*Change\x20to:*\x20%0'),_0x3eafb2={'type':'format','content':o(_0x313da8,_0x3d6fdd,o(_0x313da8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3d6fdd='*Indent:*\x20%0',_0x3eafb2={'type':'format','content':o(_0x313da8,_0x3d6fdd,o(_0x313da8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3d6fdd=function(_0x27e625){const _0x124f14=_0x27e625['getFirstRange']();let _0x27ebef=_0x124f14['start']['nodeAfter'];for(;_0x27ebef&&_0x124f14['containsItem'](_0x27ebef);){if(_0x27ebef['getAttribute']('listIndent')>0x0)return!0x1;_0x27ebef=_0x27ebef['nextSibling'];}return!0x0;}(_0x51c31a)?o(_0x313da8,'*Format:*\x20remove\x20from\x20%0',o(_0x313da8,function(_0xc8955d){return'ELEMENT_'+_0xc8955d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x51c31a))):o(_0x313da8,'*Outdent:*\x20%0',o(_0x313da8,'ELEMENT_LIST_ITEM')),_0x3eafb2={'type':'format','content':_0x3d6fdd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x118ac7['multipleBlocks']&&(_0x3d6fdd='*Merge:*\x20%0',_0x3eafb2={'type':'deletion','content':o(_0x313da8,_0x3d6fdd,o(_0x313da8,'ELEMENT_LIST_ITEM'))});}return _0x3eafb2;});}}function Te(_0x108906){let _0x261e69=_0x108906['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x261e69;){const _0x4288d0=_0x261e69['getAttribute']('listItemId');if(!_0x4288d0)return!0x1;if(_0x4288d0==_0x108906['data']['newValue'])return'newValue';if(_0x4288d0==_0x108906['data']['oldValue'])return'oldValue';_0x261e69=_0x261e69['previousSibling'];}return!0x1;}class Se extends _0x4bc43a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x51160d=this['editor']['config']['get']('list.properties'),_0x27c91a=this['editor']['plugins']['get']('TrackChangesEditing');_0x51160d['styles']&&(_0x27c91a['enableDefaultAttributesIntegration']('listStyle'),_0x27c91a['registerBlockAttribute']('listStyle')),_0x51160d['reversed']&&(_0x27c91a['enableDefaultAttributesIntegration']('listReversed'),_0x27c91a['registerBlockAttribute']('listReversed')),_0x51160d['startIndex']&&(_0x27c91a['enableDefaultAttributesIntegration']('listStart'),_0x27c91a['registerBlockAttribute']('listStart'));const _0x304111={'type':'format','content':''};_0x27c91a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x14721f=this['editor']['locale'];_0x27c91a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x14721f,'FORMAT_LIST_REVERSED')),_0x27c91a['descriptionFactory']['registerDescriptionCallback'](_0x262498=>{const {data:_0xf3d3d1}=_0x262498;if(_0xf3d3d1&&'listReversed'==_0xf3d3d1['key'])return null==_0xf3d3d1['newValue']||0x0==_0xf3d3d1['newValue']&&null==_0xf3d3d1['oldValue']?_0x304111:void 0x0;}),_0x27c91a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x14721f,'FORMAT_LIST_START')),_0x27c91a['descriptionFactory']['registerDescriptionCallback'](_0xf42273=>{const {data:_0x4a3250}=_0xf42273;if(_0x4a3250&&'listStart'==_0x4a3250['key'])return null==_0x4a3250['newValue']||0x1==_0x4a3250['newValue']&&null==_0x4a3250['oldValue']?_0x304111:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x280d78=>{if(_0x280d78['batch']['isUndo'])return!0x1;let _0x70f676=!0x1;const _0x389a18=_0x27c91a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19cc35=>{const _0x48a106=_0x27c91a['_getAttributeKey'](_0x19cc35);return'listStart'==_0x48a106||'listReversed'==_0x48a106;});for(const _0x3eb6f7 of _0x389a18){const _0x5719a2=_0x3eb6f7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5719a2||'customNumbered'==_0x5719a2)continue;_0x27c91a['_findSuggestions'](_0x3eb6f7['getFirstRange'](),'attribute')['find'](_0x310062=>'listType'==_0x27c91a['_getAttributeKey'](_0x310062['suggestion']))||(_0x280d78['removeMarker'](_0x3eb6f7['getFirstMarker']()),_0x70f676=!0x0);}return _0x70f676;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5084a2){const _0x2cfff5=this['editor']['locale'],{data:_0xa09734}=_0x5084a2,_0x140266={'type':'format','content':''};if(!_0xa09734||'listStyle'!=_0xa09734['key'])return;if(!_0xa09734['oldValue'])return'default'==_0xa09734['newValue']?_0x140266:{'type':'format','content':''+o(_0x2cfff5,'*Set\x20format:*\x20%0',o(_0x2cfff5,this['_getTranslationKeyForListStyle'](_0xa09734['newValue'])))};if(!_0xa09734['newValue']){if('default'==_0xa09734['oldValue'])return _0x140266;let _0x45b021=_0x5084a2['head'];for(;_0x45b021;){if(_0x45b021['data']&&'listType'==_0x45b021['data']['key']&&_0x45b021['data']['newValue'])return _0x140266;_0x45b021=_0x45b021['next'];}return{'type':'format','content':''+o(_0x2cfff5,'*Remove\x20format:*\x20%0',o(_0x2cfff5,this['_getTranslationKeyForListStyle'](_0xa09734['oldValue'])))};}if('default'!=_0xa09734['newValue'])return{'type':'format','content':''+o(_0x2cfff5,'*Set\x20format:*\x20%0',o(_0x2cfff5,this['_getTranslationKeyForListStyle'](_0xa09734['newValue'])))};let _0x1c743d=_0x5084a2['head'];for(;_0x1c743d;){if(_0x1c743d['data']&&'listType'==_0x1c743d['data']['key']&&_0x1c743d['data']['newValue']&&_0x1c743d['data']['oldValue'])return _0x140266;_0x1c743d=_0x1c743d['next'];}return{'type':'format','content':o(_0x2cfff5,'*Set\x20format:*\x20%0',o(_0x2cfff5,'ELEMENT_'+_0x5084a2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x580f3e=this['editor'],_0x258c65=_0x580f3e['locale'];_0x580f3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8830=>{if('formatBlock'!=_0x4f8830['type'])return;const {data:_0x556e06}=_0x4f8830;if(!_0x556e06)return;let _0x1f25e1,_0x2208f0;switch(_0x556e06['commandName']){case'listStyle':_0x1f25e1='*Change\x20to:*\x20%0',_0x2208f0={'type':'format','content':o(_0x258c65,_0x1f25e1,o(_0x258c65,this['_getTranslationKeyForListStyle'](_0x556e06['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f25e1=_0x556e06['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2208f0={'type':'format','content':o(_0x258c65,_0x1f25e1)};break;case'listStart':_0x1f25e1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2208f0={'type':'format','content':o(_0x258c65,_0x1f25e1,_0x556e06['commandParams'][0x0]['startIndex'])};}return _0x2208f0;});}['_getTranslationKeyForListStyle'](_0x46653f){return'ELEMENT_'+function(_0x23abc1){if(_e['includes'](_0x23abc1))return'bulleted';if(Re['includes'](_0x23abc1))return'numbered';return null;}(_0x46653f)['toUpperCase']()+'_LIST_'+_0x46653f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4bc43a{static get['requires'](){return[_0x3d9e40];}['init'](){const _0x3d4696=this['editor'],_0x55e81d=_0x3d4696['plugins']['get']('TrackChangesEditing'),_0x5dce14=_0x3d4696['commands']['get']('enter');_0x55e81d['enableCommand']('enter',()=>{_0x3d4696['model']['change'](_0x40e5e7=>{const _0x5c9791=_0x3d4696['model']['document']['selection'],_0x2df709=_0x5c9791['getFirstPosition'](),_0x336650=_0x3db890['fromRange'](_0x5c9791['getFirstRange']());if(_0x5dce14['enterBlock'](_0x40e5e7)){const _0x13b5e7=_0x3d4696['model']['createPositionAt'](_0x2df709['parent']['nextSibling'],0x0),_0x37c1ca=_0x40e5e7['createRange'](_0x2df709,_0x13b5e7);_0x55e81d['markInsertion'](_0x37c1ca);}else _0x40e5e7['setSelection'](_0x40e5e7['createRange'](_0x336650['end']));_0x336650['detach'](),_0x5dce14['fire']('afterExecute',{'writer':_0x40e5e7});});}),_0x3d4696['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3d4696,'split'),{'priority':'high'}),_0x3d4696['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x397589,_0x254830,_0x209620)=>{const _0x6447d7=_0x209620['mapper']['markerNameToElements'](_0x254830['markerName']);if(_0x6447d7){for(const _0x3ce8f7 of _0x6447d7)_0x3ce8f7['hasClass']('ck-suggestion-marker-split')&&(_0x209620['mapper']['unbindElementFromMarkerName'](_0x3ce8f7,_0x254830['markerName']),_0x209620['writer']['remove'](_0x3ce8f7));}},{'priority':'high'}),_0x3d4696['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x494897,_0x2bc70c,_0x3d4fe4)=>{_0x3d4fe4['options']['showSuggestionHighlights']&&De(_0x3d4696,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x494897,_0x2bc70c,_0x3d4fe4);},{'priority':'high'});}}class Y extends _0x4bc43a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc017d4=this['editor']['plugins']['get']('TrackChangesEditing');_0xc017d4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc017d4['enableCommand']('findNext'),_0xc017d4['enableCommand']('findPrevious'),_0xc017d4['enableCommand']('replace'),_0xc017d4['enableCommand']('replaceAll');}['handleFindCommand'](_0x477fdc,_0x16fa50,_0x52ad33={}){const _0x4096a2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x477fdc(_0x15a441=>{let _0x29129c=('string'==typeof _0x16fa50?_0x4096a2['findByTextCallback'](_0x16fa50,_0x52ad33):_0x16fa50)(_0x15a441);Array['isArray'](_0x29129c)&&(_0x29129c={'results':_0x29129c,'searchText':'string'==typeof _0x16fa50?_0x16fa50:''});const _0xa815c1=_0x29129c['results']['filter'](_0x2a079b=>!0x1===this['_isInDeletionRange'](_0x2a079b,_0x15a441['item']));return{..._0x29129c,'results':_0xa815c1};},_0x52ad33);}['_isInDeletionRange'](_0x5ec36e,_0x295e45){const _0x294e65=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x295e45,_0x5ec36e['start']),this['editor']['model']['createPositionAt'](_0x295e45,_0x5ec36e['end']));for(const _0x4725a5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x294e65['getIntersection'](_0x4725a5['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x4bc43a{['afterInit'](){const _0x1152d4=this['editor']['locale'],_0x24c911=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x42d49a,commandName:_0x619728}of ro)this['editor']['plugins']['has'](_0x42d49a)&&(_0x24c911['enableDefaultAttributesIntegration'](_0x619728),_0x24c911['registerInlineAttribute'](_0x619728));_0x24c911['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1152d4,'FORMAT_FONT_SIZE')),_0x24c911['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1152d4,'FORMAT_FONT_FAMILY')),_0x24c911['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1152d4,'FORMAT_FONT_COLOR')),_0x24c911['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1152d4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x586809=this['editor'],_0x2f118d=_0x586809['locale'];_0x586809['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42d77a=>{const _0x1615e9=_0x2f118d['t'];if('formatInline'!=_0x42d77a['type'])return;const {data:_0x36ba01}=_0x42d77a;if(null!=_0x36ba01){if('fontSize'==_0x36ba01['commandName']){const _0x52f1f7=_0x36ba01['commandParams'][0x0]['value'];if(_0x52f1f7){const _0x2375af=_0x1615e9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3c8acb=>_0x3c8acb['model']==_0x52f1f7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2f118d,'*Set\x20font\x20size:*\x20%0',_0x2375af)};}return{'type':'format','content':o(_0x2f118d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x36ba01['commandName']){const _0x19c1ec=_0x36ba01['commandParams'][0x0]['value'];return _0x19c1ec?{'type':'format','content':o(_0x2f118d,'*Set\x20font\x20family:*\x20%0',_0x19c1ec)}:{'type':'format','content':o(_0x2f118d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x36ba01['commandName']){const _0x3cf42b=_0x36ba01['commandParams'][0x0]['value'];if(_0x3cf42b){const _0x576a34=_0x40365a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x38b2f4=>_0x38b2f4['model']==_0x3cf42b);let _0x210748=_0x3cf42b,_0x365901='';return _0x576a34&&(_0x210748=_0x576a34['label'],_0x365901=_0x1615e9(_0x210748)['toLowerCase']()),{'type':'format','content':o(_0x2f118d,'*Set\x20font\x20color:*\x20%0',_0x365901)['trim'](),'color':{'value':_0x3cf42b,'title':_0x365901||_0x210748}};}return{'type':'format','content':o(_0x2f118d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x36ba01['commandName']){const _0x3f43c2=_0x36ba01['commandParams'][0x0]['value'];if(_0x3f43c2){const _0x3d608e=_0x40365a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1625c9=>_0x1625c9['model']==_0x3f43c2);let _0x81b684=_0x3f43c2,_0x3f9cf1='';return _0x3d608e&&(_0x81b684=_0x3d608e['label'],_0x3f9cf1=_0x1615e9(_0x81b684)['toLowerCase']()),{'type':'format','content':o(_0x2f118d,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f9cf1)['trim'](),'color':{'value':_0x3f43c2,'title':_0x3f9cf1||_0x81b684}};}return{'type':'format','content':o(_0x2f118d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x4bc43a{['afterInit'](){const _0x4cb58d=this['editor'],_0x52734f=_0x4cb58d['plugins']['get']('TrackChangesEditing'),_0x5edd8b=_0x4cb58d['commands']['get']('copyFormat'),_0x25843a=_0x4cb58d['commands']['get']('pasteFormat');_0x5edd8b&&_0x25843a&&(_0x52734f['enableDefaultAttributesIntegration']('pasteFormat'),_0x52734f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x47d5f7=this['editor'],_0x34c7ac=_0x47d5f7['locale'];_0x47d5f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5767c1=>{if('formatBlock'!=_0x5767c1['type']&&'formatInline'!=_0x5767c1['type'])return;const {data:_0x3845b7}=_0x5767c1;if(_0x3845b7&&'pasteFormat'===_0x3845b7['commandName']){const _0x42a7b5=[],_0x1a6509=_0x3845b7['commandParams'][0x0];for(const [_0x3300c8,_0x101871]of Object['entries'](_0x1a6509))_0x42a7b5['push'](so(_0x47d5f7,_0x3300c8,_0x101871));return _0x42a7b5['length']?{'type':'format','content':o(_0x34c7ac,'*Set\x20format\x20to:*\x20%0',_0x42a7b5['join'](',\x20'))}:{'type':'format','content':o(_0x34c7ac,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3fe858,_0x17d834,_0x4c979c){const _0x4857e0=_0x3fe858['locale']['t'],_0x43f6fb=_0x17d834['split'](/(?=[A-Z])/)['join']('\x20'),_0x336bf0=_0x4857e0(_0x43f6fb['charAt'](0x0)['toUpperCase']()+_0x43f6fb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4c979c)return _0x336bf0;if('fontColor'===_0x17d834||'fontBackgroundColor'===_0x17d834){const _0x4a3cba=_0x40365a(_0x3fe858['config']['get']('fontColor.colors'))['find'](_0x164541=>_0x164541['model']==_0x4c979c);return _0x336bf0+'\x20('+(_0x4a3cba?_0x4857e0(_0x4a3cba['label'])['toLowerCase']():_0x4c979c)+')';}if('fontSize'===_0x17d834&&isNaN(parseFloat(_0x4c979c))){const _0x29f8c1=_0x3fe858['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3fe858['config']['get']('fontSize.options'))['find'](_0x1ad490=>_0x1ad490['model']==_0x4c979c);return _0x336bf0+'\x20('+(_0x29f8c1?_0x4857e0(_0x29f8c1['title'])['toLowerCase']():_0x4c979c)+')';}return _0x336bf0+'\x20('+_0x4c979c+')';}class nt extends _0x4bc43a{['_headingOptions'];['afterInit'](){const _0x4c0e5c=this['editor'];if(!_0x4c0e5c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4c0e5c['config']['get']('heading.options');const _0x2e0dc4=_0x4c0e5c['locale'],_0x3e8afc=_0x4c0e5c['plugins']['get']('TrackChangesEditing');_0x3e8afc['enableDefaultAttributesIntegration']('heading');for(const _0x2e5a4f of this['_headingOptions'])'paragraph'!=_0x2e5a4f['model']&&_0x3e8afc['descriptionFactory']['registerElementLabel'](_0x2e5a4f['model'],_0x48a9de=>{const _0x271faf=this['_getHeadingLevel'](_0x2e5a4f['model']);return null!==_0x271faf?_0x14f8c(_0x48a9de,_0x271faf):_0x593f58(_0x48a9de,_0x2e5a4f['title']);});function _0x14f8c(_0x713b0c,_0x246709){return o(_0x2e0dc4,'ELEMENT_HEADING',[_0x713b0c,_0x246709]);}function _0x593f58(_0x558a55,_0x54e0cb){return o(_0x2e0dc4,'ELEMENT_HEADING_CUSTOM',[_0x558a55,_0x54e0cb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdc6d0c=this['editor'],_0x2d45ee=_0xdc6d0c['locale'];function _0x145804(_0x4aa039,_0x59f1de){return o(_0x2d45ee,'ELEMENT_HEADING_CUSTOM',[_0x4aa039,_0x59f1de]);}_0xdc6d0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b9032=>{if('formatBlock'!=_0x3b9032['type'])return;const {data:_0x23e3bc}=_0x3b9032;if(_0x23e3bc&&'heading'==_0x23e3bc['commandName']){const _0x3b04f5=_0x23e3bc['commandParams'][0x0]['value'],_0x33c010=this['_getHeadingLevel'](_0x3b04f5);if(null!==_0x33c010)return{'type':'format','content':o(_0x2d45ee,'*Change\x20to:*\x20%0',(_0x306d15=0x1,_0x13fd29=_0x33c010,o(_0x2d45ee,'ELEMENT_HEADING',[_0x306d15,_0x13fd29])))};const _0x2197f3=this['_headingOptions']['find'](_0x58039d=>_0x58039d['model']===_0x3b04f5)['title'];return{'type':'format','content':o(_0x2d45ee,'*Change\x20to:*\x20%0',_0x145804(0x1,_0x2197f3))};}var _0x306d15,_0x13fd29;});}['_getHeadingLevel'](_0x164765){const _0x5adef6=_0x164765['match'](/^heading(\d+)/);if(_0x5adef6)return _0x5adef6[0x1];const _0x5eb5dd=this['_headingOptions']?.['find'](_0x10a1ec=>_0x10a1ec['model']==_0x164765);if(_0x5eb5dd&&_0x5eb5dd['view']){const _0x1c367d=_0x5eb5dd['view'],_0x43ebf6=(_0x1c367d['name']??_0x1c367d)['match'](/^h(\d+)/);if(_0x43ebf6)return _0x43ebf6[0x1];}return null;}}class it extends _0x4bc43a{['afterInit'](){const _0x447c75=this['editor'];if(!_0x447c75['plugins']['has']('HighlightEditing'))return;const _0x22204d=_0x447c75['plugins']['get']('TrackChangesEditing'),_0x2892d6=_0x447c75['locale'];_0x22204d['enableDefaultAttributesIntegration']('highlight'),_0x22204d['registerInlineAttribute']('highlight'),_0x22204d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2892d6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x241788=this['editor'],_0x27f5d1=_0x241788['locale'];_0x241788['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f764a=>{if('formatInline'!=_0x1f764a['type'])return;const {data:_0x196108}=_0x1f764a;if(_0x196108&&'highlight'==_0x196108['commandName']){const _0x52a900=_0x27f5d1['t'],_0x1f8d08=_0x196108['commandParams'][0x0]['value'];if(_0x1f8d08){const _0x4cac54=_0x241788['config']['get']('highlight.options')['find'](_0x123d10=>_0x123d10['model']==_0x1f8d08),_0x5f7fde=_0x52a900(_0x4cac54['title'])['toLowerCase']();return{'type':'format','content':o(_0x27f5d1,'*Set\x20highlight:*\x20%0',_0x5f7fde),'color':{'value':_0x4cac54['color'],'title':_0x4cac54['title']}};}return{'type':'format','content':o(_0x27f5d1,'*Remove\x20highlight*',o(_0x27f5d1,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x4bc43a{['afterInit'](){const _0x28b3c1=this['editor'];if(!_0x28b3c1['plugins']['has']('HorizontalLineEditing'))return;_0x28b3c1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xacaf5b=_0x28b3c1['plugins']['get']('TrackChangesEditing'),_0x2d2ccd=_0x28b3c1['locale'];_0xacaf5b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x56e29b=>o(_0x2d2ccd,'ELEMENT_HORIZONTAL_LINE',_0x56e29b)),_0x28b3c1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5c3eec,{writer:_0x38bf2a,options:_0xa916d3})=>{if(!_0xa916d3['showSuggestionHighlights'])return null;const _0x4db3c6=_0x38bf2a['createContainerElement']('div'),_0x25ff6f=_0x38bf2a['createEmptyElement']('hr');return _0x38bf2a['addClass']('ck-horizontal-line',_0x4db3c6),_0x38bf2a['insert'](_0x38bf2a['createPositionAt'](_0x4db3c6,0x0),_0x25ff6f),_0x4db3c6;},'converterPriority':'high'});}}class st extends _0x4bc43a{['afterInit'](){const _0x51b53f=this['editor'];if(!_0x51b53f['plugins']['has']('HtmlEmbed'))return;const _0xbc79af=_0x51b53f['plugins']['get']('TrackChangesEditing'),_0x4ba489=_0x51b53f['locale'];_0xbc79af['descriptionFactory']['registerElementLabel']('rawHtml',_0x44da49=>o(_0x4ba489,'ELEMENT_HTML_EMBED',_0x44da49)),_0xbc79af['enableDefaultAttributesIntegration']('htmlEmbed'),_0xbc79af['registerBlockAttribute']('value'),_0xbc79af['descriptionFactory']['registerDescriptionCallback'](_0x7c5e36=>{if('attribute'!=_0x7c5e36['type'])return;const {data:_0x2a551e}=_0x7c5e36;if(_0x2a551e&&'value'==_0x2a551e['key']&&_0x7c5e36['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3ecab5=o(_0x4ba489,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4ba489,'*Change\x20%0\x20content*',_0x3ecab5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3406f7=this['editor'],_0x1f288a=_0x3406f7['locale'];_0x3406f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1daa55=>{if('formatBlock'!=_0x1daa55['type'])return;const {data:_0x1fc213}=_0x1daa55;if(_0x1fc213&&'htmlEmbed'==_0x1fc213['commandName']){const _0x1eb5f9=o(_0x1f288a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1f288a,'*Change\x20%0\x20content*',_0x1eb5f9)};}});}}class ot extends _0x4bc43a{['afterInit'](){const _0x2217f7=this['editor'];if(!_0x2217f7['plugins']['has']('ImageEditing'))return;const _0x5839da=_0x2217f7['plugins']['get']('TrackChangesEditing'),_0x4d78f6=_0x2217f7['plugins']['get']('ImageUtils'),_0x32173e=_0x2217f7['locale'];_0x5839da['enableCommand']('insertImage'),_0x5839da['descriptionFactory']['registerElementLabel']('imageBlock',_0x45266f=>o(_0x32173e,'ELEMENT_IMAGE',_0x45266f)),_0x5839da['descriptionFactory']['registerElementLabel']('imageInline',_0x26b336=>o(_0x32173e,'ELEMENT_INLINE_IMAGE',_0x26b336)),_0x5839da['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x32173e,'ELEMENT_CAPTION')),_0x2217f7['plugins']['has']('ImageUploadEditing')&&_0x5839da['enableCommand']('uploadImage'),_0x2217f7['plugins']['has']('ImageBlockEditing')&&_0x2217f7['plugins']['has']('ImageInlineEditing')&&(_0x5839da['enableCommand']('imageTypeInline',(_0xa7a218,_0x389488)=>{const _0x19e277=_0x4d78f6['getClosestSelectedImageElement'](_0x2217f7['model']['document']['selection']);_0x2217f7['model']['change'](()=>{_0x5839da['markBlockFormat'](_0x19e277,{'commandName':'imageTypeInline','commandParams':[_0x389488]},[],'convertBlockImageToInline');});}),_0x5839da['enableCommand']('imageTypeBlock',(_0x120f28,_0x1fa753)=>{_0x2217f7['model']['change'](_0x3ebaaf=>{let _0x48ee56=_0x4d78f6['getClosestSelectedImageElement'](_0x2217f7['model']['document']['selection']),_0x54db5a=_0x3ebaaf['createRangeOn'](_0x48ee56);const _0x4583cd=_0x590958['fromPosition'](_0x54db5a['start'],'toPrevious'),_0x6ea67c=_0x590958['fromPosition'](_0x54db5a['end'],'toNext');_0x5839da['forceDefaultExecution'](()=>_0x120f28(_0x1fa753)),_0x48ee56=_0x4d78f6['getClosestSelectedImageElement'](_0x2217f7['model']['document']['selection']),_0x54db5a=_0x3ebaaf['createRangeOn'](_0x48ee56);const _0x7534d=_0x3ebaaf['createRange'](_0x4583cd,_0x6ea67c);_0x4583cd['detach'](),_0x6ea67c['detach'](),_0x5839da['markBlockFormat'](_0x48ee56,{'commandName':'imageTypeInline','commandParams':[_0x1fa753]},[],'convertInlineImageToBlock'),_0x7534d['start']['isBefore'](_0x54db5a['start'])&&_0x5839da['markInsertion'](_0x3ebaaf['createRange'](_0x7534d['start'],_0x54db5a['start']),'convertInlineImageToBlock'),_0x54db5a['end']['isBefore'](_0x7534d['end'])&&_0x5839da['markInsertion'](_0x3ebaaf['createRange'](_0x54db5a['end'],_0x7534d['end']),'convertInlineImageToBlock');});}),_0x5839da['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5839da['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5839da['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5839da['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5839da['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5839da['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x248e8f])=>{const _0x5ccbb3=_0x5839da['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x111e4b=_0x248e8f['start'],_0x2fce9b=_0x248e8f['end'];const _0x210deb=_0x2217f7['model']['schema']['getNearestSelectionRange'](_0x111e4b,'backward'),_0x3a1111=_0x2217f7['model']['schema']['getNearestSelectionRange'](_0x2fce9b,'forward');_0x210deb['isCollapsed']&&(_0x111e4b=_0x210deb['start']),_0x3a1111['isCollapsed']&&(_0x2fce9b=_0x3a1111['end']),_0x5ccbb3([_0x2217f7['model']['createRange'](_0x111e4b,_0x2fce9b)]);}),_0x5839da['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2d6a3a),_0x5839da['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2d6a3a)),_0x2217f7['plugins']['has']('ImageCaptionEditing')&&(_0x5839da['enableCommand']('toggleImageCaption',(_0x24862d,_0x535361)=>{const _0x287921=_0x2217f7['plugins']['get']('ImageCaptionUtils');let _0x15f21a=_0x4d78f6['getClosestSelectedImageElement'](_0x2217f7['model']['document']['selection']),_0x1e3ca9=_0x287921['getCaptionFromImageModelElement'](_0x15f21a);_0x2217f7['model']['change'](()=>{if(_0x1e3ca9)return void _0x5839da['markDeletion'](_0x2217f7['model']['createRangeOn'](_0x1e3ca9));const _0x3e4cbf=_0x4d78f6['isBlockImage'](_0x15f21a);_0x24862d(_0x535361),_0x15f21a=_0x4d78f6['getClosestSelectedImageElement'](_0x2217f7['model']['document']['selection']),_0x1e3ca9=_0x287921['getCaptionFromImageModelElement'](_0x15f21a),_0x5839da['markInsertion'](_0x2217f7['model']['createRangeOn'](_0x1e3ca9),_0x3e4cbf?null:'imageCaption');});}),_0x5839da['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2d6a3a));const _0x400b7f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x596db0(_0x474d94,_0x32d8cc){const _0x2d36c5=_0x400b7f['findIndex'](({type:_0x245f2a,subType:_0x4fe81f})=>_0x474d94['type']==_0x245f2a&&_0x474d94['subType']==_0x4fe81f),_0x33dc26=_0x400b7f['findIndex'](({type:_0x1a7bdd,subType:_0xd36a94})=>_0x32d8cc['type']==_0x1a7bdd&&_0x32d8cc['subType']==_0xd36a94);if(_0x2d36c5<0x0||_0x33dc26<0x0)return!0x1;const _0x505868=_0x474d94['getFirstRange'](),_0x1a56d1=_0x32d8cc['getFirstRange']();if((0x0==_0x2d36c5||0x1==_0x2d36c5)&&0x2==_0x33dc26&&_0x505868['isIntersecting'](_0x1a56d1))return!0x0;if(0x2==_0x2d36c5&&0x3==_0x33dc26){const _0xd2dedd=_0x5839da['_findSuggestions'](_0x505868,'insertion')['filter'](({suggestion:_0x5e5674,meta:_0x4f2dbd})=>_0x4f2dbd['isOwn']&&'convertInlineImageToBlock'==_0x5e5674['subType']);if(_0xd2dedd['length']>0x1&&_0x1a56d1['end']['isEqual'](_0x505868['start']))return!0x0;if(0x1==_0xd2dedd['length']&&(_0x505868['start']['isEqual'](_0x1a56d1['end'])||_0x505868['end']['isEqual'](_0x1a56d1['start'])))return!0x0;}if(0x3==_0x2d36c5&&0x3==_0x33dc26&&_0x505868['start']['isBefore'](_0x1a56d1['start'])){const _0x1a6641=_0x505868['end']['nodeAfter'],_0x4000cc=_0x1a56d1['start']['nodeBefore'];return _0x4d78f6['isBlockImage'](_0x1a6641)&&_0x1a6641===_0x4000cc;}return!0x1;}function _0x2d6a3a(_0x29d0e7,_0x239f5b){return _0x596db0(_0x29d0e7,_0x239f5b)?[_0x29d0e7,_0x239f5b]:_0x596db0(_0x239f5b,_0x29d0e7)?[_0x239f5b,_0x29d0e7]:null;}_0x2217f7['plugins']['has']('ImageResize')&&(_0x5839da['enableDefaultAttributesIntegration']('resizeImage'),_0x5839da['registerBlockAttribute']('resizedWidth'),_0x5839da['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x32173e,'FORMAT_IMAGE_SIZE'))),_0x2217f7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5839da['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5839da['registerBlockAttribute']('alt')),_0x2217f7['plugins']['has']('PictureEditing')&&(_0x5839da['registerBlockAttribute']('sources'),_0x5839da['descriptionFactory']['registerDescriptionCallback'](_0x2ad939=>{if('attribute'!=_0x2ad939['type'])return;const {data:_0x16c632}=_0x2ad939;return _0x16c632&&'sources'==_0x16c632['key']?{'type':'format','content':''}:void 0x0;})),_0x2217f7['plugins']['has']('ImageSizeAttributes')&&(_0x5839da['registerBlockAttribute']('width'),_0x5839da['registerBlockAttribute']('height'),_0x5839da['descriptionFactory']['registerDescriptionCallback'](_0x533667=>{if('attribute'!=_0x533667['type'])return;const {data:_0x3a15e0}=_0x533667;return!_0x3a15e0||'width'!=_0x3a15e0['key']&&'height'!=_0x3a15e0['key']?void 0x0:{'type':'format','content':''};})),_0x5839da['descriptionFactory']['registerDescriptionCallback'](_0x529be4=>{if(!!_0x400b7f['find'](({type:_0x515b29,subType:_0x1d81d2})=>_0x529be4['type']==_0x515b29&&_0x529be4['subType']==_0x1d81d2))return _0x529be4['previous']?{}:void 0x0;}),_0x5839da['descriptionFactory']['registerDescriptionCallback'](_0x2a8bb7=>{if('insertion'==_0x2a8bb7['type']||'deletion'==_0x2a8bb7['type']){const _0x3a96a7=_0x2a8bb7['getContainedElement']();if(_0x3a96a7&&_0x3a96a7['is']('element','caption'))return{'type':'insertion'==_0x2a8bb7['type']?'addObject':'removeObject','element':_0x3a96a7,'quantity':0x1};}}),_0x5839da['descriptionFactory']['registerDescriptionCallback'](_0x4b8ed6=>'formatBlock'==_0x4b8ed6['type']&&'convertInlineImageToBlock'==_0x4b8ed6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b8ed6['type']&&'convertBlockImageToInline'==_0x4b8ed6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5839da['descriptionFactory']['registerDescriptionCallback'](_0x186d75=>{if('attribute'!=_0x186d75['type'])return;const {data:_0x9ed68c}=_0x186d75;if(!_0x9ed68c||'alt'!=_0x9ed68c['key'])return;const _0xda25cd=_0x9ed68c['newValue'];return _0xda25cd?{'type':'format','content':o(_0x32173e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xda25cd+'\x22')}:{'type':'format','content':o(_0x32173e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x193fdc=this['editor'],_0x19d851=_0x193fdc['locale'];_0x193fdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd633=>{if('formatBlock'!=_0x2bd633['type']&&'formatInline'!=_0x2bd633['type'])return;const {data:_0xa8316d}=_0x2bd633;if(_0xa8316d){if('imageTextAlternative'==_0xa8316d['commandName']){const _0x4ff0c3=_0xa8316d['commandParams'][0x0]['newValue'];return _0x4ff0c3?{'type':'format','content':o(_0x19d851,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4ff0c3+'\x22')}:{'type':'format','content':o(_0x19d851,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xa8316d['commandName']){const _0x2a7f9b=_0xa8316d['commandParams'][0x0]['width'];return _0x2a7f9b?{'type':'format','content':o(_0x19d851,'*Set\x20image\x20width:*\x20%0',_0x2a7f9b)}:{'type':'format','content':o(_0x19d851,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x4bc43a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x25b6fa=this['editor']['locale'],_0x1a2519=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a2519['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1a2519['registerBlockAttribute']('src'),_0x1a2519['descriptionFactory']['registerDescriptionCallback'](_0x32588b=>{if('attribute'!=_0x32588b['type'])return;const {data:_0x22d02f}=_0x32588b;return _0x22d02f&&'src'==_0x22d02f['key']?_0x22d02f['newValue']&&_0x22d02f['oldValue']?{'type':'format','content':o(_0x25b6fa,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x10bafd=this['editor']['plugins']['get']('TrackChangesEditing');_0x10bafd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x10bafd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x10bafd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x10bafd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d4a66=this['editor'],_0x49531b=_0x3d4a66['locale'];_0x3d4a66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x501807=>{if('formatBlock'!=_0x501807['type']&&'formatInline'!=_0x501807['type'])return;const {data:_0x34c716}=_0x501807;if(!_0x34c716||'replaceImageSource'!=_0x34c716['commandName'])return;return{'type':'format','content':o(_0x49531b,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x4bc43a{['afterInit'](){const _0x4ee7b9=this['editor'];if(!_0x4ee7b9['plugins']['has']('ImageStyleEditing'))return;const _0x1bd289=_0x4ee7b9['plugins']['get']('TrackChangesEditing'),_0x31846b=_0x4ee7b9['plugins']['get']('ImageUtils'),_0x348d1c={};_0x1bd289['enableCommand']('imageStyle',(_0x103327,_0x1ad612)=>{const _0x4f7aa0=_0x4ee7b9['plugins']['get']('Users')['me'],_0x409b87=_0x4ee7b9['commands']['get']('imageStyle');let _0x5086dc=_0x31846b['getClosestSelectedImageElement'](_0x4ee7b9['model']['document']['selection']),_0x22e4dd=_0x4ee7b9['model']['createRangeOn'](_0x5086dc),_0x365636=_0x409b87['value'];if(_0x365636==_0x1ad612['value'])return;const _0xda6140={'commandName':'imageStyle','commandParams':[_0x1ad612],'formatGroupId':_0x16938d()};_0x4ee7b9['model']['change'](()=>{if(_0x1bd289['getSuggestions']()['filter'](_0x28ab59=>_0x28ab59['isInContent']&&_0x4f7aa0==_0x28ab59['author']&&('formatBlock'==_0x28ab59['type']||'formatInline'==_0x28ab59['type'])&&('imageStylePreApply'==_0x28ab59['subType']||'imageStylePostApply'==_0x28ab59['subType'])&&_0x28ab59['getFirstRange']()['isEqual'](_0x22e4dd))['forEach'](_0xf1ce1e=>_0x1bd289['discardSuggestion'](_0xf1ce1e['head'])),_0x5086dc=_0x31846b['getClosestSelectedImageElement'](_0x4ee7b9['model']['document']['selection']),_0x22e4dd=_0x4ee7b9['model']['createRangeOn'](_0x5086dc),_0x409b87['refresh'](),_0x4ee7b9['commands']['get']('imageTypeInline')['refresh'](),_0x4ee7b9['commands']['get']('imageTypeBlock')['refresh'](),_0x365636=_0x409b87['value'],_0x365636!=_0x1ad612['value'])return _0x31846b['isInlineImage'](_0x5086dc)&&_0x409b87['shouldConvertImageType'](_0x1ad612['value'],_0x5086dc)?(_0x103327({..._0x1ad612,'setImageSizes':!0x1}),_0x5086dc=_0x31846b['getClosestSelectedImageElement'](_0x4ee7b9['model']['document']['selection']),void _0x1bd289['markBlockFormat'](_0x5086dc,{..._0xda6140,'commandReversedParams':[{'value':_0x365636||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x31846b['isBlockImage'](_0x5086dc)?_0x1bd289['markBlockFormat'](_0x5086dc,_0xda6140,[],'imageStylePostApply'):_0x1bd289['markInlineFormat'](_0x22e4dd,_0xda6140,'imageStylePostApply'));});});for(const _0x224e04 of _0x4ee7b9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x348d1c[_0x224e04['name']]=_0x224e04['title']['toLowerCase']();_0x1bd289['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1bd289['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1bd289['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1bd289['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x9155b3])=>{_0x31846b['setImageNaturalSizeAttributes'](_0x9155b3['getContainedElement']());}),_0x1bd289['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x10784b,_0x250a82)=>{_0x1bd289['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x10784b,{'commandName':_0x250a82['commandName'],'commandParams':_0x250a82['commandReversedParams']});}),_0x1bd289['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x16e0de,_0x1a489f){if(_0x6a72d8(_0x16e0de,_0x1a489f))return[_0x16e0de,_0x1a489f];if(_0x6a72d8(_0x1a489f,_0x16e0de))return[_0x1a489f,_0x16e0de];return null;});const _0x2bac97=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x6a72d8(_0x40ae57,_0x11db1d){const _0x5107e7=_0x2bac97['findIndex'](({type:_0x5e3ad1,subType:_0x400a48})=>_0x40ae57['type']==_0x5e3ad1&&_0x40ae57['subType']==_0x400a48),_0x3a61eb=_0x2bac97['findIndex'](({type:_0x2d8a08,subType:_0x42108b})=>_0x11db1d['type']==_0x2d8a08&&_0x11db1d['subType']==_0x42108b);if(_0x5107e7<0x0||_0x3a61eb<0x0)return!0x1;const _0x2c00e6=_0x40ae57['getFirstRange'](),_0x42c679=_0x11db1d['getFirstRange']();if((0x0==_0x5107e7||0x1==_0x5107e7)&&0x2==_0x3a61eb&&_0x2c00e6['isIntersecting'](_0x42c679))return!0x0;if(0x2==_0x5107e7&&0x3==_0x3a61eb){const _0x5e08ac=_0x1bd289['_findSuggestions'](_0x2c00e6,'insertion')['filter'](({suggestion:_0x31e311,meta:_0x34001c})=>_0x34001c['isOwn']&&'convertInlineImageToBlock'==_0x31e311['subType']);if(_0x5e08ac['length']>0x1&&_0x42c679['end']['isEqual'](_0x2c00e6['start']))return!0x0;if(0x1==_0x5e08ac['length']&&(_0x2c00e6['start']['isEqual'](_0x42c679['end'])||_0x2c00e6['end']['isEqual'](_0x42c679['start'])))return!0x0;}if(0x3==_0x5107e7&&0x3==_0x3a61eb&&_0x2c00e6['start']['isBefore'](_0x42c679['start'])){const _0x317750=_0x2c00e6['end']['nodeAfter'],_0x5dec0f=_0x42c679['start']['nodeBefore'];return _0x31846b['isBlockImage'](_0x317750)&&_0x317750===_0x5dec0f;}return!0x1;}_0x4ee7b9['model']['document']['registerPostFixer'](()=>{let _0x3074ae=!0x1;const _0x391553=Array['from'](_0x4ee7b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x567354,data:_0x491af6}of _0x391553){const {group:_0x5c76d2,type:_0x4b6048,subType:_0x3c1802,id:_0xfccd0c}=_0x1bd289['_splitMarkerName'](_0x567354);if('suggestion'==_0x5c76d2&&_0x1bd289['hasSuggestion'](_0xfccd0c)){if('formatBlock'==_0x4b6048&&('imageStylePreApply'==_0x3c1802||'imageStylePostApply'==_0x3c1802)){const _0x2c03c3=_0x1bd289['getSuggestion'](_0xfccd0c);if(_0x491af6['newRange']){const _0x59bb2a=_0x2c03c3['getFirstRange']()['getContainedElement']();if(_0x31846b['isBlockImage'](_0x59bb2a))continue;_0x1bd289['discardSuggestion'](_0x2c03c3),_0x3074ae=!0x0;}}if('insertion'==_0x4b6048&&'imageCaption'==_0x3c1802&&!_0x491af6['newRange']){const _0x3f0f81=_0x1bd289['getSuggestion'](_0xfccd0c);_0x3f0f81['next']&&_0x3f0f81['next']['isInContent']&&(_0x1bd289['discardSuggestion'](_0x3f0f81['next']),_0x3074ae=!0x0);}}}return _0x3074ae;}),this['_registerLegacyDescription'](_0x348d1c);}['_registerLegacyDescription'](_0x1d2ec4){const _0x217bde=this['editor'],_0x2ad142=_0x217bde['locale'];_0x217bde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40c970=>{if('formatBlock'!=_0x40c970['type']&&'formatInline'!=_0x40c970['type'])return;const {data:_0x3899f5}=_0x40c970;if(!_0x3899f5||'imageStyle'!=_0x3899f5['commandName'])return;const _0x55d2eb=_0x3899f5['commandParams'][0x0]['value'];return _0x137898('side'===_0x55d2eb?o(_0x2ad142,'FORMAT_SIDE_IMAGE'):_0x1d2ec4[_0x55d2eb]||_0x55d2eb);function _0x137898(_0x5b2202){return{'type':'format','content':o(_0x2ad142,'*Format:*\x20%0',_0x5b2202)};}});}}class ct extends _0x4bc43a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4d091f){super(_0x4d091f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xe57dbe=this['editor'],_0x26298f=_0xe57dbe['commands']['get']('importWord'),_0x47d7fa=_0xe57dbe['commands']['get']('trackChanges');_0x26298f&&(_0x26298f['on']('execute',(_0x1a6244,[,_0x5947d9])=>{this['_trackChangesValueDuringImport']=_0x47d7fa['value'],_0x5947d9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x26298f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x26298f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x47d7fa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xe57dbe['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3af2b7,_0x4ccd56){const {suggestions:_0x1c37ba}=_0x4ccd56,_0x359f46=this['editor']['commands']['get']('trackChanges'),_0x45e7a5=_0x359f46['value'];this['_trackChangesValueDuringImport']!==_0x45e7a5&&(_0x359f46['execute'](),this['_trackChangesExecuted']=!0x0),_0x1c37ba&&_0x1c37ba['forEach'](({id:_0x456656,type:_0x43abb0,author:_0x3b517f,created_at:_0xbb2458})=>{const _0x11dd33={'id':_0x456656,'type':_0x43abb0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3b517f,'createdAt':_0xbb2458?new Date(_0xbb2458):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x11dd33);});}}class ut extends _0x4bc43a{['afterInit'](){const _0xd2d8e1=this['editor'],_0x33ba45=_0xd2d8e1['plugins']['get']('TrackChangesEditing');if(_0xd2d8e1['plugins']['has']('IndentEditing')&&(_0x33ba45['enableCommand']('indent'),_0x33ba45['enableCommand']('outdent')),_0xd2d8e1['plugins']['has']('IndentBlock')){for(const _0x20725d of['indentBlock','outdentBlock'])_0x33ba45['enableDefaultAttributesIntegration'](_0x20725d);}const _0x4818d7=_0xd2d8e1['locale'];_0x33ba45['registerBlockAttribute']('blockIndent'),_0x33ba45['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4818d7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x348d24=this['editor'],_0x3eb05f=_0x348d24['locale'],_0x1c6836=_0x348d24['plugins']['get']('TrackChangesEditing');_0x1c6836['descriptionFactory']['registerDescriptionCallback'](_0x457c1d=>{if('formatBlock'!=_0x457c1d['type'])return;const {data:_0x18a144}=_0x457c1d;if(!_0x18a144)return;if('indentBlock'!=_0x18a144['commandName']&&'outdentBlock'!=_0x18a144['commandName'])return;const _0xcca886=_0x457c1d['getItems']()[0x0],_0x53c668=_0x1c6836['descriptionFactory']['getItemLabel'](_0xcca886);return'indentBlock'==_0x18a144['commandName']?{'type':'format','content':o(_0x3eb05f,'*Indent:*\x20%0',_0x53c668)}:'outdentBlock'==_0x18a144['commandName']?{'type':'format','content':o(_0x3eb05f,'*Outdent:*\x20%0',_0x53c668)}:void 0x0;});}}class ft extends _0x4bc43a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4bc43a{['afterInit'](){const _0x265ec8=this['editor'];if(!_0x265ec8['plugins']['has']('LinkEditing'))return;const _0x109703=_0x265ec8['plugins']['get']('TrackChangesEditing'),_0x9082ed=_0x265ec8['commands']['get']('link');_0x109703['enableDefaultAttributesIntegration']('link'),_0x109703['enableDefaultAttributesIntegration']('unlink'),_0x109703['registerInlineAttribute']('linkHref');for(const _0x1959c6 of _0x9082ed['manualDecorators'])_0x109703['registerInlineAttribute'](_0x1959c6['id']),_0x109703['descriptionFactory']['registerAttributeLabel'](_0x1959c6['id'],'link\x20('+_0x1959c6['label']['toLowerCase']()+')');_0x109703['descriptionFactory']['registerDescriptionCallback'](_0x5bf564=>{if('attribute'!=_0x5bf564['type'])return;const {data:_0x9cac91}=_0x5bf564;if(!_0x9cac91||'linkHref'!=_0x9cac91['key'])return;const _0x201c23=_0x9cac91['newValue'],_0xc8af8a=_0x265ec8['locale'];return{'type':'format','content':null==_0x201c23?o(_0xc8af8a,'*Remove\x20link*'):o(_0xc8af8a,'*Set\x20link:*\x20%0','\x22'+_0x201c23+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238654=this['editor'],_0x51d419=_0x238654['locale'];_0x238654['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2159b7=>{if('formatInline'!=_0x2159b7['type'])return;const {data:_0x5108a0}=_0x2159b7;if(_0x5108a0){if('link'==_0x5108a0['commandName']){const _0x511ae8=_0x5108a0['commandParams'][0x0];return{'type':'format','content':o(_0x51d419,'*Set\x20link:*\x20%0','\x22'+_0x511ae8+'\x22')};}return'unlink'==_0x5108a0['commandName']?{'type':'format','content':o(_0x51d419,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x4bc43a{['afterInit'](){const _0x196d79=this['editor'],_0x457727=_0x196d79['locale'];if(!_0x196d79['plugins']['has']('LegacyListEditing'))return;const _0x4e9687=_0x196d79['plugins']['get']('TrackChangesEditing'),_0x3bcb00=_0x196d79['plugins']['has']('LegacyTodoListEditing');function _0x446570(_0x28e4a5){return()=>{const _0x487c15=_0x196d79['model']['document']['selection'],_0x1d21d9=_0x196d79['commands']['get'](_0x28e4a5);if(_0x1d21d9['value'])return void _0x196d79['execute']('paragraph',{});const _0x4e78ab=_0x28e4a5['slice'](0x0,-0x4),_0x5db5db=function(_0x3af002,_0x9b1f55,_0x37875f){let _0x58670d=Array['from'](_0x3af002)['filter'](_0x3d9f84=>function(_0x130bde,_0x4c9bc8){return _0x4c9bc8['checkChild'](_0x130bde['parent'],'listItem')&&!_0x4c9bc8['isObject'](_0x130bde);}(_0x3d9f84,_0x37875f));_0x58670d=_0x58670d['filter'](_0x2fa3a2=>!_0x2fa3a2['is']('element','listItem')||_0x2fa3a2['getAttribute']('listType')!=_0x9b1f55);const _0x4a23d7=new Set();for(const _0x46ac03 of _0x58670d)_0x46ac03['is']('element','listItem')?_0x4a23d7['add'](Le(_0x46ac03)):_0x4a23d7['add'](_0x46ac03);return Array['from'](_0x4a23d7);}(_0x487c15['getSelectedBlocks'](),_0x4e78ab,_0x196d79['model']['schema']);_0x196d79['model']['change'](()=>{for(const _0x45c6c6 of _0x5db5db)_0x4e9687['markBlockFormat'](_0x45c6c6,{'commandName':_0x28e4a5,'commandParams':[{'forceValue':!_0x1d21d9['value']}],'formatGroupId':'blockName'},Ee(_0x45c6c6));});};}function _0x398248(_0x2ea45f){return()=>{const _0x46fc08=function(_0x3950f2){let _0x1851e8=Array['from'](_0x3950f2);const _0x5ed7c3=_0x1851e8['findIndex'](_0x5089a4=>'listItem'!=_0x5089a4['name']);return _0x5ed7c3>-0x1&&(_0x1851e8=_0x1851e8['slice'](0x0,_0x5ed7c3)),_0x1851e8;}(_0x196d79['model']['document']['selection']['getSelectedBlocks']()),_0x29e07e=_0x196d79['model']['createRange'](_0x196d79['model']['createPositionAt'](_0x46fc08[0x0],'before'),_0x196d79['model']['createPositionAt'](_0x46fc08[_0x46fc08['length']-0x1],'end'));_0x196d79['model']['change'](()=>{_0x4e9687['markBlockFormat'](_0x29e07e,{'commandName':_0x2ea45f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3318f8){const _0x4731b1=new Set();for(const _0x22aaaa of _0x3318f8){let _0x46ad7d=_0x22aaaa['nextSibling'];for(;_0x46ad7d&&_0x46ad7d['getAttribute']('listIndent')>_0x22aaaa['getAttribute']('listIndent');)_0x4731b1['add'](_0x46ad7d),_0x46ad7d=_0x46ad7d['nextSibling'];}return Array['from'](_0x4731b1);}(_0x46fc08));});};}_0x4e9687['enableCommand']('numberedList',_0x446570('numberedList')),_0x4e9687['enableCommand']('bulletedList',_0x446570('bulletedList')),_0x3bcb00&&_0x4e9687['enableCommand']('todoList',_0x446570('todoList')),_0x4e9687['enableCommand']('indentList',_0x398248('indentList')),_0x4e9687['enableCommand']('outdentList',_0x398248('outdentList')),_0x3bcb00&&_0x4e9687['enableCommand']('checkTodoList',()=>{const _0x133b49=_0x196d79['commands']['get']('checkTodoList'),_0x52d872=Array['from'](_0x133b49['_selectedElements']);_0x52d872['filter'](_0x2bb9d7=>_0x2bb9d7['getAttribute']('todoListChecked')!=_0x133b49['value']),_0x196d79['model']['change'](()=>{for(const _0x19de4f of _0x52d872)_0x4e9687['markBlockFormat'](_0x19de4f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x133b49['value']}]});});}),_0x4e9687['descriptionFactory']['registerElementLabel']('listItem',_0x523f77=>o(_0x457727,'ELEMENT_LIST_ITEM',_0x523f77)),_0x4e9687['descriptionFactory']['registerDescriptionCallback'](_0xcaaf19=>{if('formatBlock'!=_0xcaaf19['type']&&'formatInline'!=_0xcaaf19['type'])return;const {data:_0x103402}=_0xcaaf19;if(_0x103402){if('numberedList'==_0x103402['commandName']||'bulletedList'==_0x103402['commandName']||'todoList'==_0x103402['commandName'])switch(_0x103402['commandName']['replace']('List','')){case'bulleted':return _0x170d81(o(_0x457727,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x170d81(o(_0x457727,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x170d81(o(_0x457727,'ELEMENT_TODO_LIST'));}if('indentList'==_0x103402['commandName'])return{'type':'format','content':o(_0x457727,'*Indent:*\x20%0',o(_0x457727,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x103402['commandName'])return{'type':'format','content':o(_0x457727,'*Outdent:*\x20%0',o(_0x457727,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x103402['commandName'])return _0x103402['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x457727,'*Check\x20item*')}:{'type':'format','content':o(_0x457727,'*Uncheck\x20item*')};}function _0x170d81(_0xc5a396){return{'type':'format','content':o(_0x457727,'*Change\x20to:*\x20%0',_0xc5a396)};}});}}function Le(_0x3bc188){const _0x358231=_0x3bc188['getAttribute']('listIndent');if(0x0==_0x358231)return _0x3bc188;let _0x4b501f=_0x3bc188;for(;_0x3bc188['previousSibling']&&_0x3bc188['previousSibling']['is']('element','listItem');){const _0x18ea4f=_0x3bc188['previousSibling']['getAttribute']('listIndent');if(_0x18ea4f==_0x358231)_0x4b501f=_0x3bc188['previousSibling'];else{if(_0x18ea4f<_0x358231)break;}_0x3bc188=_0x3bc188['previousSibling'];}return _0x4b501f;}function Ee(_0xdeb1b){const _0x1a662=[];if(_0xdeb1b['is']('element','listItem')&&_0xdeb1b['getAttribute']('listIndent')>0x0){let _0x26fd32=_0xdeb1b['nextSibling'];for(;_0x26fd32&&'listItem'==_0x26fd32['name']&&_0x26fd32['getAttribute']('listIndent')==_0xdeb1b['getAttribute']('listIndent');)_0x1a662['push'](_0x26fd32),_0x26fd32=_0x26fd32['nextSibling'];}return _0x1a662;}class Q extends _0x4bc43a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1bee54=this['editor']['config']['get']('list.properties'),_0x174c58=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bee54['styles']&&_0x174c58['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1bee54['reversed']&&_0x174c58['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1bee54['startIndex']&&_0x174c58['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x174c58['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5ac357,_0x2b9144={}){const _0x27117d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x184433=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x27117d['markMultiRangeBlockFormat'](_0x184433,{'commandName':'listStyle','commandParams':[{'type':_0x2b9144['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x491498,_0x1825d0={}){const _0x24f0b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15eed6=this['_getSuggestionBlocks'](_0x942bf8=>_0x942bf8['is']('element','listItem')&&'numbered'===_0x942bf8['getAttribute']('listType'));if(_0x15eed6['length']<0x1)return;const _0x1188af=_0x15eed6['map'](_0x265455=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x265455,'before'),this['editor']['model']['createPositionAt'](_0x265455,0x0)));this['editor']['model']['change'](()=>{_0x24f0b8['markMultiRangeBlockFormat'](_0x1188af,{'commandName':'listReversed','commandParams':[{'reversed':_0x1825d0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1263e5,_0x51ad1d={}){const _0x2d259e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54f521=this['_getSuggestionBlocks'](_0x3e637=>_0x3e637['is']('element','listItem')&&'numbered'===_0x3e637['getAttribute']('listType'));if(_0x54f521['length']<0x1)return;const _0x5463e3=_0x54f521['map'](_0x198007=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x198007,'before'),this['editor']['model']['createPositionAt'](_0x198007,0x0)));this['editor']['model']['change'](()=>{_0x2d259e['markMultiRangeBlockFormat'](_0x5463e3,{'commandName':'listStart','commandParams':[{'startIndex':_0x51ad1d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x20c3c4){if('formatBlock'!=_0x20c3c4['type']&&'formatInline'!=_0x20c3c4['type'])return;const _0x31119f=this['editor']['locale'],{data:_0x3b4357}=_0x20c3c4;if(!_0x3b4357)return;let _0x3b50ad,_0x431a30;switch(_0x3b4357['commandName']){case'listStyle':_0x3b50ad='*Change\x20to:*\x20%0',_0x431a30={'type':'format','content':o(_0x31119f,_0x3b50ad,o(_0x31119f,this['_getTranslationKeyForListStyle'](_0x3b4357['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b50ad=_0x3b4357['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x431a30={'type':'format','content':o(_0x31119f,_0x3b50ad)};break;case'listStart':_0x3b50ad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x431a30={'type':'format','content':o(_0x31119f,_0x3b50ad,_0x3b4357['commandParams'][0x0]['startIndex'])};}return _0x431a30;}['_getSuggestionBlocksForListStyle'](){const _0xb66483=this['editor']['plugins']['get']('LegacyListUtils');let _0x22d1c1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x22d1c1[0x0]?.['is']('element','listItem')&&_0x22d1c1['unshift'](..._0xb66483['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x22d1c1[_0x22d1c1['length']-0x1]?.['is']('element','listItem')&&_0x22d1c1['push'](..._0xb66483['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x22d1c1=[...new Set(_0x22d1c1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x22d1c1=_0x22d1c1['filter'](_0x25eec8=>_0x25eec8['is']('element','listItem'))),_0x22d1c1;}['_getSuggestionBlocks'](_0xdc83fc){const _0x46f664=this['editor']['plugins']['get']('LegacyListUtils');let _0x352549=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xdc83fc)['map'](_0x170b50=>{const _0x175bfa=this['editor']['model']['createPositionAt'](_0x170b50,0x0);return[..._0x46f664['getSiblingNodes'](_0x175bfa,'backward'),..._0x46f664['getSiblingNodes'](_0x175bfa,'forward')];})['flat']();return _0x352549=[...new Set(_0x352549)],_0x352549;}['_getTranslationKeyForListStyle'](_0x22ed6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x22ed6)||'default')['toUpperCase']()+'_LIST_'+_0x22ed6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4bc43a{['afterInit'](){const _0x5d6907=this['editor'];if(!_0x5d6907['plugins']['has']('MediaEmbedEditing'))return;const _0x354c23=_0x5d6907['plugins']['get']('TrackChangesEditing'),_0x1f7214=_0x5d6907['locale'];_0x354c23['enableCommand']('mediaEmbed'),_0x354c23['descriptionFactory']['registerElementLabel']('media',_0x3b44aa=>o(_0x1f7214,'ELEMENT_MEDIA',_0x3b44aa)),_0x5d6907['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x40844e,{writer:_0x5d384d,options:_0x41d3dc})=>{if(_0x41d3dc['showSuggestionHighlights'])return _0x5d384d['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d6907['data']['downcastDispatcher']['on']('attribute:url:media',(_0x468cf4,_0xd5190e,_0xd70875)=>{_0xd70875['options']['showSuggestionHighlights']&&_0x468cf4['stop']();},{'priority':'high'});}}class mt extends _0x4bc43a{['afterInit'](){const _0x169e5d=this['editor'];_0x169e5d['plugins']['has']('MentionEditing')&&_0x169e5d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x4bc43a{['afterInit'](){const _0x3502db=this['editor'];if(!_0x3502db['plugins']['has']('MergeFieldsEditing'))return;const _0x16dbb3=_0x3502db['plugins']['get']('TrackChangesEditing'),_0x52fc4d=_0x3502db['locale'];_0x16dbb3['enableCommand']('insertMergeField'),_0x16dbb3['enableCommand']('insertMergeFieldBlock'),_0x16dbb3['enableCommand']('insertMergeFieldImage'),_0x16dbb3['descriptionFactory']['registerElementLabel']('mergeField',_0x39fb8a=>o(_0x52fc4d,'ELEMENT_MERGE_FIELD',_0x39fb8a)),_0x16dbb3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x387bc8=>o(_0x52fc4d,'ELEMENT_MERGE_FIELD',_0x387bc8)),_0x16dbb3['descriptionFactory']['registerDescriptionCallback'](_0x5ee197=>{if('insertion'!=_0x5ee197['type']&&'deletion'!=_0x5ee197['type'])return;const _0x583304=_0x5ee197['getContainedElement']();if(null==_0x583304)return;const _0x1384be=_0x3502db['plugins']['get']('MergeFieldsEditing');let _0x40c4a5;switch(_0x1384be['getMergeFieldType'](_0x583304)){case null:return;case'image':{const _0x2c30ce=_0x1384be['unwrapAffixes'](_0x583304['getAttribute']('src'));_0x40c4a5=_0x1384be['getLabel'](_0x2c30ce)||_0x2c30ce;break;}default:{const _0x1080ef=_0x583304['getAttribute']('id');_0x40c4a5=_0x1384be['getLabel'](_0x1080ef)||_0x1080ef;break;}}return'insertion'==_0x5ee197['type']?{'type':'insertion','content':o(_0x52fc4d,'*Insert:*\x20%0','\x22'+_0x40c4a5+'\x22\x20'+o(_0x52fc4d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x52fc4d,'*Remove:*\x20%0','\x22'+_0x40c4a5+'\x22\x20'+o(_0x52fc4d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x4bc43a{['afterInit'](){const _0x3f2bd8=this['editor'],_0xaf5dd0=_0x3f2bd8['plugins']['get']('TrackChangesEditing');_0x3f2bd8['plugins']['has']('MultiLevelList')&&(_0xaf5dd0['enableDefaultAttributesIntegration']('multiLevelList'),_0xaf5dd0['registerBlockAttribute']('listMarkerStyle'),_0xaf5dd0['descriptionFactory']['registerDescriptionCallback'](_0x4c83c4=>this['handleDescriptions'](_0x4c83c4)));}['handleDescriptions'](_0x371a09){const _0x3a9265=this['editor']['locale'],{data:_0x50265e}=_0x371a09,_0x21a2bb={'type':'format','content':''};if(_0x50265e&&'listMarkerStyle'==_0x50265e['key']){if(!_0x50265e['oldValue'])return{'type':'format','content':o(_0x3a9265,'*Set\x20format:*\x20%0',o(_0x3a9265,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x50265e['newValue']+')'};if(!_0x50265e['newValue']){let _0x48edc2=_0x371a09['head'];for(;_0x48edc2;){if(_0x48edc2['data']&&'listType'==_0x48edc2['data']['key']&&_0x48edc2['data']['newValue'])return _0x21a2bb;_0x48edc2=_0x48edc2['next'];}return{'type':'format','content':o(_0x3a9265,'*Remove\x20format:*\x20%0',o(_0x3a9265,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x50265e['oldValue']+')'};}}}}class kt extends _0x4bc43a{['afterInit'](){const _0xa1ec5a=this['editor'];if(!_0xa1ec5a['plugins']['has']('PageBreakEditing'))return;_0xa1ec5a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x31e37f=_0xa1ec5a['plugins']['get']('TrackChangesEditing'),_0x50898e=_0xa1ec5a['locale'];_0x31e37f['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b1e2f=>o(_0x50898e,'ELEMENT_PAGE_BREAK',_0x4b1e2f));}}class bt extends _0x4bc43a{['afterInit'](){const _0x5413ec=this['editor'];if(!_0x5413ec['plugins']['has']('Paragraph'))return;const _0x2ef514=_0x5413ec['locale'],_0x47550f=_0x5413ec['plugins']['get']('TrackChangesEditing');_0x47550f['descriptionFactory']['registerElementLabel']('paragraph',_0x3636f5=>o(_0x2ef514,'ELEMENT_PARAGRAPH',_0x3636f5)),_0x47550f['enableDefaultAttributesIntegration']('paragraph'),_0x47550f['enableCommand']('insertParagraph'),_0x5413ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5413ec),{'priority':'highest'}),_0x5413ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c2220,_0x424ede,_0x4c2d94)=>{_0x4c2d94['options']['showSuggestionHighlights']&&nr(_0x5413ec,{'showActiveMarker':!0x1})(_0x3c2220,_0x424ede,_0x4c2d94);},{'priority':'highest'});const _0xc6479a=_0x47550f['descriptionFactory'];_0xc6479a['registerDescriptionCallback'](_0x233426=>{if('insertion'!==_0x233426['type'])return;const {start:_0x2b43a8,end:_0x47e7b2}=_0x233426['getFirstRange']();if(!_0x2b43a8['isTouching'](_0x47e7b2)||!_0x2b43a8['nodeAfter'])return;const _0x43d1d3=_0x5413ec['model']['schema'],_0x39663a=_0x2b43a8['nodeAfter'];return _0x43d1d3['isBlock'](_0x39663a)&&!_0x43d1d3['isLimit'](_0x39663a)&&_0x43d1d3['checkChild'](_0x39663a,'$text')?{'type':'insertion','content':o(_0x2ef514,'*Insert:*\x20%0',_0xc6479a['getItemLabel'](_0x39663a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x123d06=this['editor'],_0x37e41b=_0x123d06['locale'];_0x123d06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32df87=>{if('formatBlock'!=_0x32df87['type'])return;const {data:_0x1ff446}=_0x32df87;return _0x1ff446&&'paragraph'==_0x1ff446['commandName']?{'type':'format','content':o(_0x37e41b,'*Change\x20to:*\x20%0',o(_0x37e41b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x57bd5d,{showActiveMarker:_0x7778ee=!0x0}={}){return(_0x128758,_0x3a3975,_0x3b08bd)=>{const _0x1208be=_0x57bd5d['plugins']['get']('TrackChangesEditing'),_0x743c89=_0x3a3975['markerRange']['start'],_0xd3cb36=_0x3a3975['markerRange']['end'],_0x1195eb=_0x57bd5d['model']['schema'];if(!_0x743c89['isTouching'](_0xd3cb36)||!_0x743c89['nodeAfter'])return;const _0x4fa5dd=_0x743c89['nodeAfter'];if(_0x1195eb['isBlock'](_0x4fa5dd)&&!_0x1195eb['isLimit'](_0x4fa5dd)&&_0x1195eb['checkChild'](_0x4fa5dd,'$text')){if(!_0x3b08bd['consumable']['consume'](_0x3a3975['markerRange'],_0x128758['name']))return;const {authorId:_0x31393f}=_0x1208be['_splitMarkerName'](_0x3a3975['markerName']),_0x540d78=_0x3b08bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x31393f}),_0x3b2e44=_0x3b08bd['mapper']['toViewPosition'](_0xd3cb36);_0x7778ee&&_0x1208be['activeMarkers']['includes'](_0x3a3975['markerName'])&&_0x3b08bd['writer']['addClass']('ck-suggestion-marker--active',_0x540d78),_0x3b08bd['writer']['insert'](_0x3b2e44,_0x540d78),_0x3b08bd['mapper']['bindElementToMarker'](_0x540d78,_0x3a3975['markerName']);}};}class yt extends _0x4bc43a{['afterInit'](){const _0xe267ed=this['editor'];if(!_0xe267ed['plugins']['has']('RemoveFormatEditing'))return;_0xe267ed['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x406bb1=this['editor'];_0x406bb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a4572=>{if('formatBlock'!=_0x4a4572['type']&&'formatInline'!=_0x4a4572['type'])return;const {data:_0x85074a}=_0x4a4572;return _0x85074a&&'removeFormat'==_0x85074a['commandName']?{'type':'format','content':o(_0x406bb1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x4bc43a{['afterInit'](){const _0x3d3c39=this['editor'];if(!_0x3d3c39['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x217b09=_0x3d3c39['plugins']['get']('TrackChangesEditing');_0x217b09['enableCommand']('goToPreviousRestrictedEditingException'),_0x217b09['enableCommand']('goToNextRestrictedEditingException');const _0x1c8dcf=_0x3d3c39['plugins']['get']('RestrictedEditingModeEditing');_0x1c8dcf['enableCommand']('trackChanges'),_0x1c8dcf['enableCommand']('acceptSuggestion'),_0x1c8dcf['enableCommand']('discardSuggestion'),_0x1c8dcf['enableCommand']('acceptAllSuggestions'),_0x1c8dcf['enableCommand']('discardAllSuggestions'),_0x1c8dcf['enableCommand']('acceptSelectedSuggestions'),_0x1c8dcf['enableCommand']('discardSelectedSuggestions');}}class St extends _0x4bc43a{static get['requires'](){return[_0x2fd23c];}['init'](){const _0xbba43e=this['editor'],_0x3f9463=_0xbba43e['plugins']['get']('TrackChangesEditing');_0x3f9463['enableCommand']('shiftEnter'),_0xbba43e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xbba43e),{'priority':'high'}),_0xbba43e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xbba43e),{'priority':'high'}),_0xbba43e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37e368,_0x28566a,_0x5da9ca)=>{_0x5da9ca['options']['showSuggestionHighlights']&&je(_0xbba43e,{'showActiveMarker':!0x1})(_0x37e368,_0x28566a,_0x5da9ca);}),_0x3f9463['descriptionFactory']['registerElementLabel']('softBreak',_0x5622f0=>o(_0xbba43e['locale'],'ELEMENT_LINE_BREAK',_0x5622f0));}}function je(_0x3a98aa,{showActiveMarker:_0x13d80f=!0x0}={}){return(_0xa59e69,_0x1fcc71,_0x52376e)=>{const _0x2cbbec=_0x3a98aa['plugins']['get']('TrackChangesEditing');if(!_0x52376e['consumable']['test'](_0x1fcc71['markerRange'],_0xa59e69['name']))return;const _0x401a7f=_0x3a98aa['model'];for(const _0x29177e of _0x1fcc71['markerRange']['getItems']()){if(!_0x29177e['is']('element','softBreak'))continue;const _0x98bb59='deletion'==_0x1fcc71['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x571def}=_0x2cbbec['_splitMarkerName'](_0x1fcc71['markerName']),_0x50c5cb=_0x52376e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x98bb59,'data-author-id':_0x571def}),_0x1921b3=_0x52376e['mapper']['toViewPosition'](_0x401a7f['createPositionBefore'](_0x29177e));_0x13d80f&&_0x2cbbec['activeMarkers']['includes'](_0x1fcc71['markerName'])&&_0x52376e['writer']['addClass']('ck-suggestion-marker--active',_0x50c5cb),_0x52376e['writer']['insert'](_0x1921b3,_0x50c5cb),_0x52376e['mapper']['bindElementToMarker'](_0x50c5cb,_0x1fcc71['markerName']);}};}class At extends _0x4bc43a{['afterInit'](){const _0x476c07=this['editor'],_0x51faaa=_0x476c07['model'],_0x1d2190=_0x476c07['locale'];if(!_0x476c07['plugins']['has']('StandardEditingModeEditing'))return;const _0x572c2f=_0x476c07['plugins']['get']('TrackChangesEditing'),_0x409932='restrictedEditingException',_0x24be61=_0x476c07['commands']['get'](_0x409932);_0x572c2f['enableCommand'](_0x409932,(_0x2e3ffd,_0x33ae39={})=>{const _0x483c58=_0x51faaa['document']['selection'];if(_0x483c58['isCollapsed'])return void _0x2e3ffd(_0x33ae39);const _0x5f4660=void 0x0!==_0x33ae39['forceValue']?_0x33ae39['forceValue']:!_0x24be61['value'];_0x51faaa['change'](()=>{const _0x1af151=Array['from'](_0x483c58['getRanges']());for(const _0xea932e of _0x1af151){const _0x10cba8=_0x5f4660?[_0xea932e]:io(_0x409932,_0xea932e,_0x51faaa);for(const _0x59ecf8 of _0x10cba8)_0x572c2f['markInlineFormat'](_0x59ecf8,{'commandName':_0x409932,'commandParams':[{'forceValue':_0x5f4660}]});}});}),_0x572c2f['descriptionFactory']['registerDescriptionCallback'](_0xf31f59=>{if('formatBlock'!=_0xf31f59['type']&&'formatInline'!=_0xf31f59['type'])return;const {data:_0x4df63b}=_0xf31f59;return _0x4df63b&&_0x4df63b['commandName']==_0x409932?_0x4df63b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d2190,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1d2190,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x4bc43a{['afterInit'](){const _0x318898=this['editor'];if(!_0x318898['plugins']['has']('Style')||!_0x318898['plugins']['has']('DataSchema'))return;const _0x5d8252=_0x318898['plugins']['get']('TrackChangesEditing'),_0x844851=_0x318898['locale'],_0x447b6d=_0x318898['config']['get']('style')||{},_0x272456=_0x318898['plugins']['get']('GeneralHtmlSupport'),_0x50d817=_0x318898['plugins']['get']('StyleUtils')['normalizeConfig'](_0x318898['plugins']['get']('DataSchema'),_0x447b6d['definitions']);_0x5d8252['enableDefaultAttributesIntegration']('style');const _0x4ca231=new Set();for(const _0x2a00e7 of _0x50d817['block']){const _0x544527=_0x272456['getGhsAttributeNameForElement'](_0x2a00e7['element']);_0x4ca231['add'](_0x544527);}const _0x28fb8a=new Set();for(const _0x160098 of _0x50d817['inline']){const _0x4f99ec=_0x272456['getGhsAttributeNameForElement'](_0x160098['element']);_0x28fb8a['add'](_0x4f99ec);for(const _0x1f3a67 of _0x160098['ghsAttributes'])_0x28fb8a['add'](_0x1f3a67);}for(const _0x3c038e of _0x4ca231)_0x5d8252['registerBlockAttribute'](_0x3c038e),_0x5d8252['descriptionFactory']['registerAttributeLabel'](_0x3c038e,o(_0x844851,'FORMAT_STYLE'));for(const _0x1b3441 of _0x28fb8a)_0x5d8252['registerInlineAttribute'](_0x1b3441),_0x5d8252['descriptionFactory']['registerAttributeLabel'](_0x1b3441,o(_0x844851,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x331310=this['editor'],_0x443358=_0x331310['locale'];_0x331310['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc09845=>{if('formatBlock'!=_0xc09845['type']&&'formatInline'!=_0xc09845['type'])return;const {data:_0x1a05e9}=_0xc09845;return _0x1a05e9&&'style'===_0x1a05e9['commandName']?_0x1a05e9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x443358,'*Set\x20format:*\x20%0',_0x1a05e9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x443358,'*Remove\x20format:*\x20%0',_0x1a05e9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x4bc43a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x44c4aa){super(_0x44c4aa),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3956dd=this['editor'],_0x1f3816=_0x3956dd['model']['document']['selection'];if(!_0x3956dd['plugins']['has']('TableEditing'))return;const _0x23048f=_0x3956dd['locale'],_0xea070d=_0x3956dd['plugins']['get']('TrackChangesEditing'),_0x2acf19=_0x3956dd['plugins']['get']('TableUtils');_0xea070d['descriptionFactory']['registerElementLabel']('table',_0x4cb70b=>o(_0x23048f,'ELEMENT_TABLE',_0x4cb70b)),this['_setupColumnsRowsFixing'](),_0xea070d['enableCommand']('insertTable'),_0xea070d['enableCommand']('selectTableRow'),_0xea070d['enableCommand']('selectTableColumn');for(const _0x4d92c7 of['insertTableRowAbove','insertTableRowBelow']){const _0x203b63=_0x3956dd['commands']['get'](_0x4d92c7);_0xea070d['enableCommand'](_0x4d92c7,_0x254f06=>{_0x3956dd['model']['change'](_0x1fd59e=>{_0x254f06();const _0x3b78cf='above'===_0x203b63['order'],_0x2ce2cb=_0x2acf19['getSelectionAffectedTableCells'](_0x1f3816),_0x19a405=_0x2acf19['getRowIndexes'](_0x2ce2cb),_0x186cbd=_0x3b78cf?_0x19a405['first']-0x1:_0x19a405['last']+0x1,_0x25d284=_0x2ce2cb[0x0]['findAncestor']('table'),_0x3b7d02=_0x2acf19['createTableWalker'](_0x25d284,{'startRow':_0x186cbd,'endRow':_0x186cbd}),_0x23ec57=Array['from'](_0x3b7d02)['map'](_0x38aed1=>_0x1fd59e['createRangeOn'](_0x38aed1['cell']));_0xea070d['markMultiRangeInsertion'](_0x23ec57,'tableRow');});});}for(const _0x368ae3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3f2aea=_0x3956dd['commands']['get'](_0x368ae3);_0xea070d['enableCommand'](_0x368ae3,_0x38062a=>{_0x3956dd['model']['change'](_0x26e1e6=>{_0x38062a();const _0x5170e7='left'===_0x3f2aea['order'],_0x579507=_0x2acf19['getSelectionAffectedTableCells'](_0x1f3816),_0xc1363e=_0x2acf19['getColumnIndexes'](_0x579507),_0x554c4e=_0x5170e7?_0xc1363e['first']-0x1:_0xc1363e['last']+0x1,_0xfb8d80=_0x579507[0x0]['findAncestor']('table'),_0x3a5a0a=_0x2acf19['createTableWalker'](_0xfb8d80,{'startRow':0x0,'column':_0x554c4e,'includeAllSlots':!0x1}),_0x29e8e6=Array['from'](_0x3a5a0a)['map'](_0xa5fd1a=>_0x26e1e6['createRangeOn'](_0xa5fd1a['cell']));_0xea070d['markMultiRangeInsertion'](_0x29e8e6,'tableColumn');});});}for(const _0x285365 of['removeTableRow','removeTableColumn']){const _0xbf5b77=_0x285365['substr'](0xb),_0x45cf94=_0xbf5b77['toLowerCase'](),_0x4583ba=_0x45cf94['substr'](0x0,0x3)+'span',_0x4e367e='table'+_0xbf5b77,_0x541ed8='min'+_0xbf5b77,_0x17dc83='max'+_0xbf5b77;_0xea070d['enableCommand'](_0x285365,()=>{_0x3956dd['model']['change'](_0x2fa7fa=>{const _0x2cf56e=_0x2acf19['getSelectionAffectedTableCells'](_0x1f3816),_0x4f2555=_0x2cf56e[0x0]['findAncestor']('table');let _0x2b1b1c;if('removeTableRow'==_0x285365){const _0x51dcc3=_0x2acf19['getRowIndexes'](_0x2cf56e);_0x2b1b1c={'startRow':_0x51dcc3['first'],'endRow':_0x51dcc3['last'],'includeAllSlots':!0x0};}else{const _0x917c75=_0x2acf19['getColumnIndexes'](_0x2cf56e);_0x2b1b1c={'startColumn':_0x917c75['first'],'endColumn':_0x917c75['last'],'includeAllSlots':!0x0};}const _0x32856e=_0x2acf19['createTableWalker'](_0x4f2555,_0x2b1b1c),_0x31411f=Array['from'](_0x32856e)['map'](({cell:_0x57aaad})=>_0x57aaad),_0x53c415=Ne(_0x31411f['filter'](_0x286998=>_0x286998['hasAttribute'](_0x4583ba))),_0x34d828=Ne(_0x31411f['filter'](_0xf4d21b=>!_0xf4d21b['hasAttribute'](_0x4583ba)))['map'](_0x3d341d=>_0x2fa7fa['createRangeOn'](_0x3d341d)),_0x504020=_0xea070d['markMultiRangeDeletion'](_0x34d828,_0x4e367e);if(_0x504020&&('tableRow'==_0x504020['subType']||'tableColumn'==_0x504020['subType'])){const _0x2a5b0e=this['_getSuggestionCoords'](_0x504020);for(const _0x4e4268 of _0x53c415){const _0x693565=_0x2fa7fa['createRangeOn'](_0x4e4268),_0x3017a6=_0x2acf19['getCellLocation'](_0x4e4268),_0x3bce19=_0x4e4268['getAttribute'](_0x4583ba)-0x1,_0x2a909b=_0x2a5b0e[_0x541ed8],_0xee6807=_0x2a5b0e[_0x17dc83];_0x2a909b<=_0x3017a6[_0x45cf94]&&_0x3017a6[_0x45cf94]+_0x3bce19<=_0xee6807&&_0x504020['addRange'](_0x693565);}}});});}function _0x405213(_0x5d157c){const _0x159a0c=Array['from'](_0x1f3816['getRanges']())['map'](_0x11fa55=>_0x3db890['fromRange'](_0x11fa55));_0x3956dd['model']['change'](_0x427b65=>{const _0x2beda0=_0x427b65['batch'];_0x5d157c=_0x5d157c['filter'](_0x277bc7=>'$graveyard'!=_0x277bc7['root']['rootName']),_0x427b65['setSelection'](_0x5d157c),_0x3956dd['commands']['get']('removeTableRow')['refresh'](),_0x3956dd['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3956dd['model']['enqueueChange'](()=>{_0x3956dd['model']['enqueueChange'](_0x2beda0,_0x4d7f04=>{const _0x3cebcb=_0x159a0c['filter'](_0x33448d=>'$graveyard'!=_0x33448d['root']['rootName']);_0x3cebcb['length']>0x0&&_0x4d7f04['setSelection'](_0x3cebcb);for(const _0xf844b0 of _0x159a0c)_0xf844b0['detach']();});});});}function _0x576a7c(_0x5d9d3e){_0x3956dd['model']['change'](_0x89c36f=>{const _0x522487=Array['from'](_0x1f3816['getRanges']())['map'](_0x26437a=>_0x3db890['fromRange'](_0x26437a)),_0x3cb6cf=[];for(const _0x3f4d18 of _0x5d9d3e)for(const _0x55e270 of _0x3f4d18['getItems']({'shallow':!0x0}))_0x3cb6cf['push'](_0x55e270);for(const _0x4741c1 of _0x3cb6cf)'$graveyard'!=_0x4741c1['root']['rootName']&&(_0x89c36f['setSelection'](_0x89c36f['createPositionAt'](_0x4741c1,0x0)),_0x3956dd['commands']['get']('removeTableColumn')['refresh'](),_0x3956dd['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x548029=_0x522487['filter'](_0x49f205=>'$graveyard'!=_0x49f205['root']['rootName']);_0x548029['length']>0x0&&_0x89c36f['setSelection'](_0x548029);for(const _0x40f005 of _0x522487)_0x40f005['detach']();});}function _0x104644(_0x136489,_0x5f3072){return _0x5f3072['every'](_0x5c737f=>_0x136489['some'](_0x58480b=>_0x58480b['end']['isEqual'](_0x5c737f['start'])||_0x5c737f['end']['isEqual'](_0x58480b['start'])));}function _0x54e4c0(_0x5357d0,_0x5e7aa6){return!_0x5357d0['some'](_0x1e0875=>_0x5e7aa6['some'](_0x2f9e2d=>_0x1e0875['isIntersecting'](_0x2f9e2d)))&&_0x5357d0['some'](_0x39db99=>_0x5e7aa6['some'](_0x4b491c=>_0x39db99['end']['isTouching'](_0x4b491c['start'])));}_0x3956dd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc93498,_0x344e4d,_0x4941c9)=>{if(!_0x4941c9['options']['showSuggestionHighlights'])return;const _0x76b9eb=_0x344e4d['item'];if(!_0x76b9eb)return;const _0x4aee98=_0x4941c9['mapper']['toViewElement'](_0x76b9eb);function _0x43619b(_0x5f044e){return Array['isArray'](_0x5f044e)?_0x5f044e:[_0x5f044e];}_0x4aee98&&'tableCell'===_0x76b9eb['name']&&_0x2c2d70(_0x4aee98,_0x4941c9['writer'],(_0x2bfa2d,_0x1a6fa4,_0x338be1)=>_0x338be1['addClass'](_0x43619b(_0x1a6fa4['classes']),_0x2bfa2d),(_0x147d18,_0x3a5426,_0x22b5e7)=>_0x22b5e7['removeClass'](_0x43619b(_0x3a5426['classes']),_0x147d18));},{'priority':'highest'}),_0xea070d['descriptionFactory']['registerDescriptionCallback'](_0x564f28=>{if('insertion'!=_0x564f28['type']&&'deletion'!=_0x564f28['type'])return;const _0x142636=_0x564f28['getContainedElement']();if(null!=_0x142636&&_0x142636['is']('element','table')){if('insertion'==_0x564f28['type']){const _0x5319b6=_0x564f28['getItems']()['filter'](_0x2c85f8=>_0x2c85f8['is']('$textProxy'))['map'](_0x27d078=>_0x27d078['data']);if(_0x5319b6['length'])return{'type':'insertion','content':o(_0x23048f,'*Insert:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5319b6['join']('\x20')+'\x22'))};}if('deletion'==_0x564f28['type']){const _0x11499f=_0x564f28['getItems']()['filter'](_0x43e0ad=>_0x43e0ad['is']('$textProxy'))['map'](_0x4c05bd=>_0x4c05bd['data']);if(_0x11499f['length'])return{'type':'deletion','content':o(_0x23048f,'*Remove:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11499f['join']('\x20')+'\x22'))};}}}),_0xea070d['descriptionFactory']['registerDescriptionCallback'](_0x85dee1=>{if('tableRow'==_0x85dee1['subType']){const _0x3a6ff4=_0x85dee1['getItems']()['filter'](_0x4837a5=>_0x4837a5['is']('$textProxy'))['map'](_0x157f13=>_0x157f13['data']),_0x462e8a=this['_getSuggestionCoords'](_0x85dee1),_0x3c5673=_0x462e8a['maxRow']-_0x462e8a['minRow']+0x1;if('insertion'==_0x85dee1['type'])return _0x3a6ff4['length']?{'type':'insertion','content':o(_0x23048f,'*Insert:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c5673,'\x22'+_0x3a6ff4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x23048f,'*Insert:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_ROW',_0x3c5673))};if('deletion'==_0x85dee1['type'])return _0x3a6ff4['length']?{'type':'deletion','content':o(_0x23048f,'*Remove:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c5673,'\x22'+_0x3a6ff4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x23048f,'*Remove:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_ROW',_0x3c5673))};}if('tableColumn'==_0x85dee1['subType']){const _0x1ab366=_0x85dee1['getItems']()['filter'](_0x21e565=>_0x21e565['is']('$textProxy'))['map'](_0x319313=>_0x319313['data']),_0x1587a6=this['_getSuggestionCoords'](_0x85dee1),_0x56e953=_0x1587a6['maxColumn']-_0x1587a6['minColumn']+0x1;if('insertion'==_0x85dee1['type'])return _0x1ab366['length']?{'type':'insertion','content':o(_0x23048f,'*Insert:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x56e953,'\x22'+_0x1ab366['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x23048f,'*Insert:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_COLUMN',_0x56e953))};if('deletion'==_0x85dee1['type'])return _0x1ab366['length']?{'type':'deletion','content':o(_0x23048f,'*Remove:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x56e953,'\x22'+_0x1ab366['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x23048f,'*Remove:*\x20%0',o(_0x23048f,'ELEMENT_TABLE_COLUMN',_0x56e953))};}}),_0xea070d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x405213),_0xea070d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x405213),_0xea070d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x576a7c),_0xea070d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x576a7c),_0xea070d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x104644),_0xea070d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x104644),_0xea070d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x54e4c0),_0xea070d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x54e4c0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x413660=this['editor'],_0x446650=_0x413660['model']['document']['selection'];return(_0x491027,_0x196acb)=>{_0x413660['model']['change'](_0x1aee9d=>{const {commandName:_0x56b75e,commandParams:_0x2cc61b}=_0x196acb;let _0x39e1c0=_0x491027[0x0]['end']['nodeBefore'];_0x2cc61b&&_0x2cc61b[0x0]&&!0x1===_0x2cc61b[0x0]['forceValue']&&(_0x39e1c0=_0x491027[0x0]['start']['nodeAfter']);const _0x2ae8b2=_0x1aee9d['createRangeIn'](_0x39e1c0);if('$graveyard'==_0x2ae8b2['root']['rootName'])return;const _0x1c51c1=Array['from'](_0x446650['getRanges']())['map'](_0x2c7a94=>_0x3db890['fromRange'](_0x2c7a94));_0x1aee9d['setSelection'](_0x2ae8b2),_0x413660['commands']['get'](_0x56b75e)['refresh'](),_0x2cc61b['push']({'forceDefaultExecution':!0x0}),_0x413660['execute'](_0x56b75e,..._0x2cc61b);const _0x3f6cd6=_0x1c51c1['filter'](_0x64d126=>'$graveyard'!=_0x64d126['root']['rootName']);_0x3f6cd6['length']>0x0&&_0x1aee9d['setSelection'](_0x3f6cd6);for(const _0x2f917a of _0x1c51c1)_0x2f917a['detach']();});};}['_getCoordsForCells'](_0x2ba8bf){const _0x3c295a=this['editor']['plugins']['get']('TableUtils');let _0x1820fe=Number['MAX_SAFE_INTEGER'],_0x2b4cd7=Number['MIN_SAFE_INTEGER'],_0xb6b830=Number['MAX_SAFE_INTEGER'],_0x28bf12=Number['MIN_SAFE_INTEGER'];for(const _0x4b90b0 of _0x2ba8bf){if('$graveyard'==_0x4b90b0['root']['rootName'])continue;const {row:_0x299b4d,column:_0x4c0088}=_0x3c295a['getCellLocation'](_0x4b90b0),_0xae9e80=_0x4b90b0['hasAttribute']('rowspan')?_0x4b90b0['getAttribute']('rowspan')-0x1:0x0,_0x922f75=_0x4b90b0['hasAttribute']('colspan')?_0x4b90b0['getAttribute']('colspan')-0x1:0x0;_0x1820fe=_0x299b4d<_0x1820fe?_0x299b4d:_0x1820fe,_0x2b4cd7=_0x299b4d+_0xae9e80>_0x2b4cd7?_0x299b4d+_0xae9e80:_0x2b4cd7,_0xb6b830=_0x4c0088<_0xb6b830?_0x4c0088:_0xb6b830,_0x28bf12=_0x4c0088+_0x922f75>_0x28bf12?_0x4c0088+_0x922f75:_0x28bf12;}return{'minRow':_0x1820fe,'maxRow':_0x2b4cd7,'minColumn':_0xb6b830,'maxColumn':_0x28bf12};}['_setupColumnsRowsFixing'](){const _0x2fe66c=this['editor'],_0x4725b8=_0x2fe66c['plugins']['get']('TrackChangesEditing'),_0x5ecb5a=_0x2fe66c['plugins']['get']('TableUtils');_0x2fe66c['model']['document']['on']('change:data',()=>{const _0x321750=Array['from'](_0x2fe66c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39f47d,data:_0x3707ca}of _0x321750){const {group:_0xc67c91,id:_0x3f6549,subType:_0x530def}=_0x4725b8['_splitMarkerName'](_0x39f47d);if('suggestion'!=_0xc67c91)continue;if(null!=_0x3707ca['oldRange'])continue;const _0x3789ae=_0x4725b8['getSuggestion'](_0x3f6549);this['_tablePostFixingSubtypes']['includes'](_0x530def)&&this['_tableSuggestions']['add'](_0x3789ae);}},{'priority':'low'});const _0x1cc3c8=(_0x5dc7ef,_0x2f1488)=>{let _0x4e3d9e=!0x1;const _0xe65313=_0x2f1488['createRangeOn'](_0x5dc7ef),_0x522f48=_0x5dc7ef['findAncestor']('table'),_0x300c86=_0x5ecb5a['getCellLocation'](_0x5dc7ef);for(const _0xc97506 of this['_tableSuggestions']){const _0x24af86=_0xc97506['subType'],_0x421d6f=_0x24af86['startsWith']('tablePaste'),_0x15bc56=_0x24af86['substr'](_0x421d6f?0xa:0x5),_0x58ef14=_0x15bc56['toLowerCase'](),_0x2107d9=_0x58ef14['substr'](0x0,0x3)+'span',_0xa1c268='min'+_0x15bc56,_0x138ebb='max'+_0x15bc56;if(!_0xc97506['isInContent'])continue;if(_0x522f48!=_0xc97506['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xc97506['isIntersectingWithRange'](_0xe65313))continue;const _0x496462=_0x5dc7ef['hasAttribute'](_0x2107d9)?_0x5dc7ef['getAttribute'](_0x2107d9)-0x1:0x0,_0x53b509=this['_getSuggestionCoords'](_0xc97506),_0x1ac858=_0x53b509[_0xa1c268],_0x475fa3=_0x53b509[_0x138ebb];_0x1ac858<=_0x300c86[_0x58ef14]&&_0x300c86[_0x58ef14]+_0x496462<=_0x475fa3&&(_0xc97506['addRange'](_0xe65313),_0x4e3d9e=!0x0);}return _0x4e3d9e;};_0x2fe66c['model']['document']['registerPostFixer'](_0x37ce81=>{let _0x30f7b3=!0x1;for(const _0x2b91fd of _0x2fe66c['model']['document']['differ']['getChanges']())if('insert'==_0x2b91fd['type']){if('tableRow'==_0x2b91fd['name']){for(const _0x2ef29e of _0x2b91fd['position']['nodeAfter']['getChildren']())_0x30f7b3=_0x30f7b3||_0x1cc3c8(_0x2ef29e,_0x37ce81);}else'tableCell'==_0x2b91fd['name']&&(_0x30f7b3=_0x30f7b3||_0x1cc3c8(_0x2b91fd['position']['nodeAfter'],_0x37ce81));}return _0x30f7b3;});}['_getSuggestionCoords'](_0x8374fd){return this['_getCoordsForCells'](_0x8374fd['getRanges']()['map'](_0x189ff8=>_0x189ff8['start']['nodeAfter']));}}function Ne(_0x3b0817){return Array['from'](new Set(_0x3b0817)['values']());}class _t extends _0x4bc43a{static get['requires'](){return[vt];}['afterInit'](){const _0x19aa2c=this['editor'],_0x2952f6=_0x19aa2c['model']['document']['selection'],_0x32d76f=_0x19aa2c['locale'];if(!_0x19aa2c['plugins']['has']('TableEditing'))return;const _0x10a07d=_0x19aa2c['plugins']['get']('TrackChangesEditing'),_0x236d46=_0x19aa2c['plugins']['get']('TableUtils'),_0x1b6d5e=_0x19aa2c['plugins']['get'](vt);_0x1b6d5e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x10a07d['enableCommand']('mergeTableCells',()=>{const _0x433956=_0x236d46['getSelectionAffectedTableCells'](_0x19aa2c['model']['document']['selection']);_0x19aa2c['model']['change'](()=>{_0x10a07d['markMultiRangeBlockFormat'](_0x433956,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x19aa2c['commands']['get']('mergeTableCells')['on']('execute',(_0x5007b9,_0x1ae301)=>{_0x19aa2c['commands']['get']('trackChanges')['value']&&(_0x1ae301['length']>0x0&&_0x1ae301[_0x1ae301['length']-0x1]&&_0x1ae301[_0x1ae301['length']-0x1]['forceDefaultExecution']||_0x10a07d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5007b9['stop']());},{'priority':'highest'});for(const _0xc575af of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x123ccf=_0x19aa2c['commands']['get'](_0xc575af);_0x10a07d['enableCommand'](_0xc575af,()=>{const _0x4d7534=_0x19aa2c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2220bf=>_0x2220bf['is']('element','tableCell')),_0x2338d6=_0x123ccf['value'];_0x19aa2c['model']['change'](()=>{_0x10a07d['markMultiRangeBlockFormat']([_0x4d7534,_0x2338d6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4c87c4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x48ed2d=_0x19aa2c['commands']['get'](_0x4c87c4);_0x10a07d['enableCommand'](_0x4c87c4,()=>{const _0x41cf86=_0x236d46['getSelectionAffectedTableCells'](_0x19aa2c['model']['document']['selection'])[0x0],_0x531b75=_0x41cf86['findAncestor']('table'),{column:_0x4ed769,row:_0xdfdb4c}=_0x236d46['getCellLocation'](_0x41cf86);let _0x5f198b=[];if('horizontally'==_0x48ed2d['direction']){const _0x20a630=_0x236d46['createTableWalker'](_0x531b75,{'startRow':_0xdfdb4c,'endRow':_0xdfdb4c,'includeAllSlots':!0x0});_0x5f198b=Array['from'](_0x20a630)['map'](_0x193adf=>_0x193adf['cell']);}else{const _0x5abd3f=_0x236d46['createTableWalker'](_0x531b75,{'column':_0x4ed769,'includeAllSlots':!0x0});_0x5f198b=Array['from'](_0x5abd3f)['map'](_0x74861=>_0x74861['cell']);}_0x19aa2c['model']['change'](_0x2d5b36=>{_0x10a07d['markBlockFormat'](_0x2d5b36['createRangeOn'](_0x41cf86),{'commandName':_0x4c87c4,'commandParams':[]},_0x5f198b,_0x4c87c4);});});}_0x10a07d['descriptionFactory']['registerDescriptionCallback'](_0x21f6e8=>{if('formatBlock'!=_0x21f6e8['type']&&'formatInline'!=_0x21f6e8['type'])return;const {data:_0x4ace94}=_0x21f6e8;return _0x4ace94&&'mergeTableCells'==_0x4ace94['commandName']?{'type':'format','content':o(_0x32d76f,'*Merge\x20cells*')}:void 0x0;}),_0x10a07d['descriptionFactory']['registerDescriptionCallback'](_0x4e9791=>{if('formatBlock'!=_0x4e9791['type']&&'formatInline'!=_0x4e9791['type'])return;const {data:_0x3b420a}=_0x4e9791;return _0x3b420a?'splitTableCellVertically'==_0x3b420a['commandName']?{'type':'format','content':o(_0x32d76f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b420a['commandName']?{'type':'format','content':o(_0x32d76f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x577cae=_0x1b6d5e['_acceptFormatSuggestionCallbackFactory']();for(const _0x168d72 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x10a07d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x168d72,'accept',_0x577cae);for(const _0x229e63 of['splitTableCellVertically','splitTableCellHorizontally'])_0x10a07d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x229e63,'accept',_0x577cae);_0x10a07d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x251a85=>{_0x19aa2c['model']['change'](_0x10866a=>{const _0x3a7588=Array['from'](_0x2952f6['getRanges']())['map'](_0x518668=>_0x3db890['fromRange'](_0x518668));_0x10866a['setSelection'](_0x251a85),_0x19aa2c['commands']['get']('mergeTableCells')['refresh'](),_0x19aa2c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x542f2e=_0x3a7588['filter'](_0x294cca=>'$graveyard'!=_0x294cca['root']['rootName']);_0x542f2e['length']>0x0&&_0x10866a['setSelection'](_0x542f2e);for(const _0x4c0f1e of _0x3a7588)_0x4c0f1e['detach']();});});for(const _0x3c6501 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1badbe=_0x19aa2c['commands']['get'](_0x3c6501);_0x1badbe['on']('set:isEnabled',(_0x3fd5bf,_0x4aac3c,_0x1bd5df)=>{if(_0x1bd5df){const _0x33a88f=_0x19aa2c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ccb61=>_0x2ccb61['is']('element','tableCell'));this['_areMergableCells'](_0x1badbe['value'],_0x33a88f)||(_0x3fd5bf['return']=!0x1,_0x3fd5bf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x394ad3=this['editor']['commands']['get']('mergeTableCells'),_0x3276dd=this['editor']['plugins']['get']('TableUtils');if(!_0x394ad3['isEnabled'])return!0x1;const _0x380ed5=_0x3276dd['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30a148 of _0x380ed5)for(const _0x5e4a91 of _0x380ed5)if(_0x30a148!=_0x5e4a91&&!this['_areMergableCells'](_0x30a148,_0x5e4a91))return!0x1;return!0x0;}['_areMergableCells'](_0x1d4110,_0x5b6bf4){const _0x49cd78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x415b26=this['editor']['model']['createRangeOn'](_0x1d4110),_0xcd86d8=this['editor']['model']['createRangeOn'](_0x5b6bf4),_0x165faa=new Set(),_0x411178=new Set();for(const _0x4ec81d of _0x49cd78['getSuggestions']())if(('insertion'==_0x4ec81d['type']||'deletion'==_0x4ec81d['type']||'mergeTableCells'==_0x4ec81d['subType'])&&_0x4ec81d['isInContent']){for(const _0x3388f5 of _0x4ec81d['getRanges']())_0x3388f5['containsRange'](_0x415b26,!0x0)&&_0x165faa['add'](_0x4ec81d['type']+':'+_0x4ec81d['author']['id']),_0x3388f5['containsRange'](_0xcd86d8,!0x0)&&_0x411178['add'](_0x4ec81d['type']+':'+_0x4ec81d['author']['id']);}if(_0x165faa['size']!=_0x411178['size'])return!0x1;for(const _0x3b0000 of _0x165faa)if(!_0x411178['has'](_0x3b0000))return!0x1;return!0x0;}}class Ct extends _0x4bc43a{static get['requires'](){return[vt];}['afterInit'](){const _0x12b2f0=this['editor'];if(!_0x12b2f0['plugins']['has']('TableEditing'))return;const _0x5a0421=_0x12b2f0['locale'],_0x457959=_0x12b2f0['plugins']['get']('TrackChangesEditing');_0x457959['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x457959['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x457959['registerBlockAttribute']('headingRows'),_0x457959['registerBlockAttribute']('headingColumns'),_0x457959['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5a0421,'FORMAT_HEADER_ROW')),_0x457959['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5a0421,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x28a606=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1685f1=this['editor']['plugins']['get']('TableUtils'),_0x2ad875=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x39f4a9({showActiveMarker:_0xf5cbad=!0x0,setDataAttribute:_0x1355dd=!0x0}={}){return(_0x33e7c5,_0x35d700,_0x1caa3c)=>{const {type:_0x6ef568,id:_0x112a03}=_0x28a606['_splitMarkerName'](_0x35d700['markerName']),_0x1f6765=_0x28a606['getSuggestion'](_0x112a03),_0x307a5f=_0x1f6765['data'];if('formatBlock'!=_0x1f6765['type']||!_0x307a5f||'setTableColumnHeader'!=_0x307a5f['commandName'])return;if(_0x35d700['item'])return void _0x33e7c5['stop']();if(!_0x1caa3c['consumable']['consume'](_0x35d700['markerRange'],_0x33e7c5['name']))return;const _0x31f09d=_0x35d700['markerRange']['start']['nodeAfter'],_0x4d547b=_0x35d700['markerRange']['end']['nodeBefore'],_0x5ead84=_0x31f09d['parent']['parent'],{column:_0x1e716e}=_0x1685f1['getCellLocation'](_0x31f09d),{column:_0x52648d}=_0x1685f1['getCellLocation'](_0x4d547b);for(let _0x4b8b9f=_0x1e716e;_0x4b8b9f<=_0x52648d;_0x4b8b9f++){const _0x4e923c=_0x1685f1['createTableWalker'](_0x5ead84,{'column':_0x4b8b9f,'includeAllSlots':!0x1});for(const _0x1756f7 of _0x4e923c){const _0x57bf91=_0x1756f7['cell'],_0x152b76=_0x1caa3c['mapper']['toViewElement'](_0x57bf91);_0x1caa3c['writer']['addClass']('ck-suggestion-marker-'+_0x6ef568,_0x152b76),_0x1355dd&&_0x1caa3c['writer']['setAttribute']('data-suggestion',_0x112a03,_0x152b76),_0x1caa3c['mapper']['bindElementToMarker'](_0x152b76,_0x35d700['markerName']),_0xf5cbad&&(_0x28a606['activeMarkers']['includes'](_0x35d700['markerName'])?_0x1caa3c['writer']['addClass']('ck-suggestion-marker--active',_0x152b76):_0x1caa3c['writer']['removeClass']('ck-suggestion-marker--active',_0x152b76));}}};}_0x28a606['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2ad875),_0x28a606['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2ad875),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x39f4a9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cd547,_0x49865b,_0x1c58c3)=>{_0x1c58c3['options']['showSuggestionHighlights']&&_0x39f4a9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4cd547,_0x49865b,_0x1c58c3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x20452c,_0x2b1021,_0x34d1f1)=>{const {type:_0x191350,id:_0x36b7a4}=_0x28a606['_splitMarkerName'](_0x2b1021['markerName']),_0x21e01c=_0x28a606['getSuggestion'](_0x36b7a4),_0x12d573=_0x21e01c['data'];if('formatBlock'!=_0x21e01c['type']||!_0x12d573||'setTableColumnHeader'!=_0x12d573['commandName'])return;const _0x4d121e=_0x34d1f1['mapper']['markerNameToElements'](_0x2b1021['markerName']);if(_0x4d121e){for(const _0x48b61e of _0x4d121e)_0x34d1f1['writer']['removeClass']('ck-suggestion-marker-'+_0x191350,_0x48b61e),_0x34d1f1['writer']['removeClass']('ck-suggestion-marker--active',_0x48b61e),_0x34d1f1['writer']['removeAttribute']('data-suggestion',_0x48b61e),_0x34d1f1['mapper']['unbindElementFromMarkerName'](_0x48b61e,_0x2b1021['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb893c=this['editor'],_0x4251a6=_0xdb893c['locale'];function _0x4ffaf4(_0x517998){return{'type':'format','content':o(_0x4251a6,'*Format:*\x20%0',_0x517998)};}_0xdb893c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43a5ec=>{if('formatBlock'!=_0x43a5ec['type'])return;const {data:_0xcfc1c1}=_0x43a5ec;if(_0xcfc1c1){if('setTableRowHeader'==_0xcfc1c1['commandName']){const _0x3e69c6=_0xcfc1c1['commandParams'][0x0]['forceValue'];return _0x4ffaf4(o(_0x4251a6,_0x3e69c6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xcfc1c1['commandName']){const _0x1867cc=_0xcfc1c1['commandParams'][0x0]['forceValue'];return _0x4ffaf4(o(_0x4251a6,_0x1867cc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x44ae2d=>[_0x44ae2d,null]));class Nt extends _0x4bc43a{static get['requires'](){return[vt];}['afterInit'](){const _0x59e1e8=this['editor'];if(!_0x59e1e8['plugins']['has']('TableClipboard'))return;const _0x12baa4=_0x59e1e8['plugins']['get']('TrackChangesEditing'),_0x52b787=_0x59e1e8['plugins']['get']('TableUtils'),_0x386706=_0x59e1e8['plugins']['get'](vt),_0x54876e=_0x59e1e8['plugins']['get']('TableClipboard');_0x386706['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x59e1e8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x59e1e8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x523624=null;_0x59e1e8['model']['on']('insertContent',(_0x5d960a,_0x29e92b)=>{const [_0x45dd35,_0x2ea557]=_0x29e92b,_0x55221d=_0x29e92b[_0x29e92b['length']-0x1];_0x55221d&&_0x55221d['forceDefaultExecution']||_0x12baa4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x13a032,_0x3c8ab0,_0x4f1c5d,_0x5a7798,_0x4cf292){if(_0x3c8ab0&&!_0x3c8ab0['is']('documentSelection'))return!0x1;const _0x1170f0=_0x4cf292['getTableIfOnlyTableInContent'](_0x13a032,_0x4f1c5d);if(!_0x1170f0||!Ue(_0x1170f0,void 0x0,_0x5a7798))return!0x1;const _0x562693=_0x5a7798['getSelectionAffectedTableCells'](_0x4f1c5d['document']['selection']);if(!_0x562693['length'])return!0x1;const _0x28696b=_0x562693[0x0]['findAncestor']('table'),_0x1345ee=_0x5a7798['getRowIndexes'](_0x562693),_0xfaf3c5=_0x5a7798['getColumnIndexes'](_0x562693),_0x2953f2={'startRow':_0x1345ee['first'],'endRow':_0x1345ee['last'],'startColumn':_0xfaf3c5['first'],'endColumn':_0xfaf3c5['last']};return 0x1==_0x562693['length']&&(_0x2953f2['endRow']+=_0x5a7798['getRows'](_0x1170f0)-0x1,_0x2953f2['endColumn']+=_0x5a7798['getColumns'](_0x1170f0)-0x1),Ue(_0x28696b,_0x2953f2,_0x5a7798);}(_0x45dd35,_0x2ea557,_0x59e1e8['model'],_0x52b787,_0x54876e)&&(_0x5d960a['stop'](),_0x523624={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x59e1e8['model']['change'](()=>{_0x59e1e8['model']['insertContent'](_0x29e92b[0x0],_0x29e92b[0x1],_0x29e92b[0x2],{'forceDefaultExecution':!0x0});const _0x3f5e7a=_0x16938d(),{rowInsertionRanges:_0x4e6366,columnInsertionRanges:_0x568bcf,insertionRanges:_0x432313,deletionRanges:_0xff868a,cells:_0x559737}=_0x523624;_0x4e6366['length']&&_0x12baa4['markMultiRangeInsertion'](_0x4e6366,'tablePasteRow',{'tablePasteChainId':_0x3f5e7a}),_0x568bcf['length']&&_0x12baa4['markMultiRangeInsertion'](_0x568bcf,'tablePasteColumn',{'tablePasteChainId':_0x3f5e7a}),_0x432313['length']&&(_0x12baa4['markMultiRangeInsertion'](_0x432313,'tablePaste',{'tablePasteChainId':_0x3f5e7a,'skipNestingCheck':!0x0}),_0x432313['forEach'](_0x3c4073=>_0x3c4073['detach']?.())),_0xff868a['length']&&(_0x12baa4['markMultiRangeDeletion'](_0xff868a,'tablePaste',{'tablePasteChainId':_0x3f5e7a,'skipNestingCheck':!0x0}),_0xff868a['forEach'](_0x17a3ba=>_0x17a3ba['detach']?.()));const _0x3450fe=_0x12baa4['markMultiRangeBlockFormat'](_0x559737['map'](({element:_0x2bd28e})=>_0x2bd28e),{'formatGroupId':_0x16938d()},[],'tablePasteCell',{'tablePasteChainId':_0x3f5e7a});if(_0x3450fe){const _0x453f63=_0x3450fe['getMarkers'](),_0x1fd7dc=[];for(const {element:_0x23032c,attributes:_0xb31881}of _0x559737){if(!_0xb31881)continue;const _0x3b8ee4=_0x59e1e8['model']['createRangeOn'](_0x23032c),_0x5c2127=_0x453f63['find'](_0x1db49f=>_0x1db49f['getRange']()['isEqual'](_0x3b8ee4));_0x5c2127&&_0x1fd7dc['push']([_0x5c2127['name'],_0xb31881]);}_0x1fd7dc['length']&&_0x3450fe['setAttribute']('markerAttributes',Object['fromEntries'](_0x1fd7dc));}_0x523624=null;}));},{'priority':_0x39f89f['high']+0xa}),_0x59e1e8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1d94e1,_0x550a57)=>{const [_0x308a63,_0x36ff1c,,_0x88b188]=_0x550a57;if(!_0x523624)return;_0x1d94e1['stop']();const _0x12669d=_0x308a63['cell'],_0x50a986=_0x36ff1c,_0x425408=Oe(_0x12669d),_0x25c783=Oe(_0x50a986);_0x1d94e1['return']=_0x12669d;let _0x517fc1=null,_0x309e95=null;if(_0x25c783||_0x425408){if(_0x425408&&!_0x25c783){_0x88b188['remove'](_0x12669d['getChild'](0x0));for(const _0x5cf76a of Array['from'](_0x50a986['getChildren']()))_0x88b188['insert'](_0x5cf76a,_0x12669d,'end');const _0x506705=_0x523624['rowInsertionIndexes']['includes'](_0x308a63['row']),_0x3454a4=_0x523624['columnInsertionIndexes']['includes'](_0x308a63['column']);_0x506705||_0x3454a4||(_0x517fc1=_0x3db890['fromRange'](_0x88b188['createRangeIn'](_0x12669d)));}else _0x25c783&&!_0x425408&&(_0x309e95=_0x88b188['createRangeIn'](_0x12669d));}else{const _0x911ccd=_0x88b188['createElement']('tableCellSuggestion'),_0x3e4fcd=_0x88b188['createElement']('tableCellSuggestion');_0x88b188['wrap'](_0x88b188['createRangeIn'](_0x12669d),_0x3e4fcd),_0x88b188['insert'](_0x911ccd,_0x12669d,0x0);for(const _0x169422 of Array['from'](_0x50a986['getChildren']()))_0x88b188['insert'](_0x169422,_0x911ccd,'end');_0x517fc1=_0x3db890['fromRange'](_0x88b188['createRangeOn'](_0x911ccd)),_0x309e95=_0x3db890['fromRange'](_0x88b188['createRangeOn'](_0x3e4fcd));}const _0x45dec6=Array['from'](_0x50a986['getAttributes']())['filter'](([_0x3ff7e8])=>Be['includes'](_0x3ff7e8));_0x523624['cells']['push']({'element':_0x12669d,'attributes':_0x45dec6['length']?Object['fromEntries'](_0x45dec6):null}),_0x517fc1&&_0x523624['insertionRanges']['push'](_0x517fc1),_0x309e95&&_0x523624['deletionRanges']['push'](_0x309e95);},{'priority':'high'}),_0x52b787['on']('insertColumns',(_0x55d76f,_0x3f1f93)=>{const [_0x58990e,_0x5bfcc0={}]=_0x3f1f93;if(!_0x523624)return;const _0x4ef4b8=_0x5bfcc0['at']||0x0,_0x295179=_0x5bfcc0['columns']||0x1;_0x523624['columnInsertionIndexes']=new Array(_0x295179)['fill'](_0x4ef4b8)['map']((_0x25710e,_0x7658d8)=>_0x25710e+_0x7658d8);for(const {cell:_0x4c8c49}of _0x52b787['createTableWalker'](_0x58990e,{'startColumn':_0x4ef4b8,'endColumn':_0x4ef4b8+_0x295179-0x1}))_0x523624['columnInsertionRanges']['push'](_0x59e1e8['model']['createRangeOn'](_0x4c8c49));},{'priority':'low'}),_0x52b787['on']('insertRows',(_0x5da477,_0x8ef5a0)=>{const [_0x1e97d5,_0x41048b={}]=_0x8ef5a0;if(!_0x523624)return;const _0x4988ed=_0x41048b['at']||0x0,_0x2d476d=_0x41048b['rows']||0x1;_0x523624['rowInsertionIndexes']=new Array(_0x2d476d)['fill'](_0x4988ed)['map']((_0x52cb2a,_0x5b1847)=>_0x52cb2a+_0x5b1847);for(const {cell:_0x1225dd}of _0x52b787['createTableWalker'](_0x1e97d5,{'startRow':_0x4988ed,'endRow':_0x4988ed+_0x2d476d-0x1}))_0x523624['rowInsertionRanges']['push'](_0x59e1e8['model']['createRangeOn'](_0x1225dd));},{'priority':'low'}),_0x12baa4['descriptionFactory']['registerDescriptionCallback'](_0x131e9d=>{if(_0x131e9d['subType']&&_0x131e9d['subType']['startsWith']('tablePaste'))return _0x131e9d['previous']?{}:{'type':'insertion','content':o(_0x59e1e8['locale'],'*Replace\x20table\x20cells*')};});const _0x1bd875=()=>!0x1;for(const _0x4426df of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x12baa4['_suggestionFactory']['registerCustomCallback']('insertion',_0x4426df,'join',_0x1bd875),_0x12baa4['_suggestionFactory']['registerCustomCallback']('deletion',_0x4426df,'join',_0x1bd875),_0x12baa4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4426df,'join',_0x1bd875);_0x12baa4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1bd875),_0x12baa4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x58c89e,_0x270501,_0x56448c)=>{const _0x37ae04=_0x58c89e['map'](_0x4a4c7e=>_0x4a4c7e['getContainedElement']())['filter'](_0x39006e=>_0x39006e),_0x4fdc7e=new Map(_0x37ae04['map'](_0x888074=>[_0x888074,null]));if(_0x523624){for(const {element:_0xddfaf3,attributes:_0x290165}of _0x523624['cells'])_0x290165&&_0x4fdc7e['set'](_0xddfaf3,_0x290165);}else{if(_0x56448c&&_0x56448c['markerAttributes'])for(const [_0x5ade72,_0x17a446]of Object['entries'](_0x56448c['markerAttributes'])){const _0x58b413=_0x59e1e8['model']['markers']['get'](_0x5ade72),_0x1024a7=_0x58b413?_0x58b413['getRange']()['getContainedElement']():null;_0x1024a7&&_0x4fdc7e['set'](_0x1024a7,_0x17a446);}}_0x59e1e8['model']['change'](_0x427620=>{for(const [_0x333f71,_0x39bcdf]of _0x4fdc7e)_0x427620['setAttributes']({...xe,..._0x39bcdf},_0x333f71);});});const _0x3d5ada=(_0x2b30ef,_0x564734)=>{_0x12baa4['_suggestionFactory']['registerCustomCallback'](_0x2b30ef,'tablePaste',_0x564734,(_0x51401d,_0x198b81,_0x1798dd)=>{_0x59e1e8['model']['change'](_0x99fec1=>{const _0x52868e=[];for(const _0x588ebd of _0x51401d){const _0xbc2d82=_0x588ebd['start']['nodeAfter'];_0xbc2d82['is']('element','tableCellSuggestion')&&_0x52868e['push'](_0xbc2d82);}_0x12baa4['_suggestionFactory']['getSuggestionCallback'](_0x2b30ef,null,_0x564734)(_0x51401d,_0x198b81,_0x1798dd);for(const _0x62eab7 of _0x52868e)'$graveyard'!=_0x62eab7['root']['rootName']&&_0x99fec1['unwrap'](_0x62eab7);});});};_0x3d5ada('insertion','accept'),_0x3d5ada('insertion','discard'),_0x3d5ada('deletion','accept'),_0x3d5ada('deletion','discard'),_0x12baa4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x346391=>{const _0x563efb=_0x346391['map'](_0x19910a=>_0x19910a['getContainedElement']()),_0x46e020=_0x563efb[0x0]['findAncestor']('table'),{minRow:_0x28223b,maxRow:_0x5141c5}=_0x386706['_getCoordsForCells'](_0x563efb);_0x52b787['removeRows'](_0x46e020,{'at':_0x28223b,'rows':_0x5141c5-_0x28223b+0x1});}),_0x12baa4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x366abb=>{const _0x2e8e04=_0x366abb['map'](_0x31b36c=>_0x31b36c['getContainedElement']()),_0x1ff174=_0x2e8e04[0x0]['findAncestor']('table'),{minColumn:_0x28faad,maxColumn:_0x5264f6}=_0x386706['_getCoordsForCells'](_0x2e8e04);_0x52b787['removeColumns'](_0x1ff174,{'at':_0x28faad,'columns':_0x5264f6-_0x28faad+0x1});});const _0x24dde0=(_0x403af6,_0x5634db)=>{if(!_0x5634db['subType']||!_0x5634db['subType']['startsWith']('tablePaste'))return;const _0x26f766=_0x5634db['attributes']['tablePasteChainId'],_0x469908=_0x12baa4['getSuggestions']()['filter'](_0x2c2fdc=>_0x2c2fdc['isInContent']&&_0x2c2fdc['attributes']&&_0x2c2fdc['attributes']['tablePasteChainId']==_0x26f766);_0x469908['length']&&_0x5634db['getAllAdjacentSuggestions']()['length']!=_0x469908['length']&&_0x469908['reduce']((_0x5219ba,_0x3453ef)=>(_0x5219ba['next']=_0x3453ef,_0x3453ef['previous']=_0x5219ba,_0x3453ef));};function _0x5b93d0(_0x3d9def,_0x49fc68=!0x0){const {id:_0x2c9338,authorId:_0x475378}=_0x12baa4['_splitMarkerName'](_0x3d9def['markerName']),_0x52260e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x368426=_0x12baa4['activeMarkers']['includes'](_0x3d9def['markerName']);return _0x368426&&_0x52260e['push']('ck-suggestion-marker--active'),{'classes':_0x52260e,'attributes':{'data-suggestion':_0x2c9338,'data-author-id':_0x475378},'priority':_0x368426&&_0x49fc68?0xbc2:0xbb8};}_0x12baa4['on']('suggestionLoaded',_0x24dde0,{'priority':'high'}),_0x12baa4['on']('suggestionUnloaded',_0x24dde0,{'priority':'high'}),_0x59e1e8['model']['document']['registerPostFixer'](()=>{let _0x2130cf=!0x1;const _0x13a558=Array['from'](_0x59e1e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x203569,data:_0x36f463}of _0x13a558){const {group:_0xb1ee0,type:_0x482af4,id:_0x285b0e}=_0x12baa4['_splitMarkerName'](_0x203569);if('suggestion'!=_0xb1ee0||'deletion'!=_0x482af4||_0x36f463['oldRange'])continue;if(!_0x12baa4['hasSuggestion'](_0x285b0e))continue;const _0x3af9ad=_0x12baa4['getSuggestion'](_0x285b0e)['getRanges'](),_0x43f674=_0x59e1e8['plugins']['get']('Users')['me'];for(const _0x1b148a of _0x12baa4['getSuggestions']()){if(!_0x1b148a['isInContent']||_0x1b148a['author']!=_0x43f674)continue;if('formatBlock'!=_0x1b148a['type']||'tablePasteCell'!=_0x1b148a['subType'])continue;if(_0x1b148a['getRanges']()['every'](_0x157dbc=>_0x3af9ad['some'](_0x40b16d=>_0x40b16d['containsRange'](_0x157dbc,!0x0)))){for(const _0x5264ba of _0x1b148a['getAllAdjacentSuggestions']())_0x5264ba['isInContent']&&(_0x5264ba['discard'](),_0x2130cf=!0x0);}}}return _0x2130cf;}),_0x59e1e8['model']['document']['registerPostFixer'](_0x2a8490=>{const _0x438e73=_0x59e1e8['commands']['get']('redo');if(!_0x438e73||!_0x438e73['_createdBatches']['has'](_0x2a8490['batch']))return!0x1;let _0xbf0a42=!0x1;const _0x4e377f=_0x59e1e8['plugins']['get']('Users')['me'],_0x36d866=_0x59e1e8['model']['document']['differ']['getChanges'](),_0x15e86e=Array['from'](_0x59e1e8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3a8659,data:_0x22bb66})=>{const {group:_0x315035,subType:_0xe56ff5,authorId:_0x5035d8}=_0x12baa4['_splitMarkerName'](_0x3a8659);return'suggestion'==_0x315035&&'tablePaste'==_0xe56ff5&&_0x5035d8==_0x4e377f['id']&&!_0x22bb66['oldRange'];});for(const _0x24223d of _0x36d866){if('insert'!=_0x24223d['type']||'tableCellSuggestion'!=_0x24223d['name']||0x1!=_0x24223d['length'])continue;const _0x2b8ece=_0x2a8490['createRange'](_0x24223d['position'],_0x24223d['position']['getShiftedBy'](0x1));if(!_0x15e86e['find'](({data:_0xd77f49})=>_0xd77f49['newRange']['isEqual'](_0x2b8ece))){for(const {name:_0x2f7a53,data:_0x3cad7b}of _0x15e86e)if(_0x2b8ece['containsRange'](_0x3cad7b['newRange'])){_0x2a8490['updateMarker'](_0x2f7a53,{'range':_0x2b8ece}),_0xbf0a42=!0x0;break;}}}return _0xbf0a42;}),_0x59e1e8['model']['document']['registerPostFixer'](_0x38d0df=>{let _0x300f59=!0x1;const _0x516f7f=_0x59e1e8['plugins']['get']('Users')['me'],_0x24001c=_0x12baa4['getSuggestions']()['filter'](_0x1f07e5=>_0x1f07e5['isInContent']&&_0x1f07e5['author']==_0x516f7f),_0x118cd8=new Set(),_0x2e706a=new Set();for(const _0x4e110b of _0x24001c)if('tablePaste'==_0x4e110b['subType'])for(const _0x719c55 of _0x4e110b['getMarkers']()){const _0x2d253f=_0x719c55['getRange']()['getContainedElement']();if(_0x2d253f){if(_0x2d253f['is']('element','tableCellSuggestion')&&Oe(_0x2d253f)){_0x4e110b['removeMarker'](_0x719c55['name']),_0x118cd8['add'](_0x2d253f),_0x300f59=!0x0;const _0x134a91=_0x2d253f['nextSibling'],_0x54b460=_0x2d253f['previousSibling'],_0x3ff40a=_0x134a91&&_0x134a91['is']('element','tableCellSuggestion'),_0x44974f=_0x54b460&&_0x54b460['is']('element','tableCellSuggestion');_0x3ff40a&&!_0x118cd8['has'](_0x134a91)&&_0x2e706a['add'](_0x134a91),_0x44974f&&!_0x118cd8['has'](_0x54b460)&&_0x2e706a['add'](_0x54b460);}else _0x2d253f['is']('element','paragraph')&&_0x2d253f['isEmpty']&&(_0x4e110b['removeMarker'](_0x719c55['name']),_0x300f59=!0x0);}}else{if('tablePasteCell'==_0x4e110b['subType']){if(!_0x4e110b['attributes']||!_0x4e110b['attributes']['tablePasteChainId'])continue;const _0x191f09=_0x4e110b['attributes']['markerAttributes'];if(_0x191f09&&Object['keys'](_0x191f09)['length'])continue;const _0x52fc75=_0x4e110b['attributes']['tablePasteChainId'];let _0x2f7966=!0x0,_0x30aacd=!0x0;for(const _0x1b4761 of _0x24001c)if(_0x1b4761['subType']&&_0x1b4761['subType']['startsWith']('tablePaste')){if(!_0x1b4761['attributes']['tablePasteChainId']){_0x30aacd=!0x1;break;}if(_0x1b4761['id']!=_0x4e110b['id']&&_0x1b4761['attributes']['tablePasteChainId']==_0x52fc75){_0x2f7966=!0x1;break;}}_0x30aacd&&_0x2f7966&&(_0x4e110b['removeMarkers'](),_0x300f59=!0x0);}}for(const _0x36aa08 of _0x118cd8)_0x38d0df['remove'](_0x36aa08);for(const _0x491039 of _0x2e706a)_0x38d0df['unwrap'](_0x491039);return _0x300f59;}),_0x59e1e8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d8ad9=>_0x5b93d0(_0x2d8ad9),'converterPriority':'high'}),_0x59e1e8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x37f1ac,_0x512d32)=>_0x512d32['options']['showSuggestionHighlights']?_0x5b93d0(_0x37f1ac,!0x1):null,'converterPriority':'high'});const _0x59ba2e=_0x59e1e8['editing']['view'];this['listenTo'](_0x59ba2e['document'],'clipboardOutput',(_0x43fc04,_0x340f07)=>{const _0x1c6ecd=[];for(const _0x4b2d74 of _0x59ba2e['createRangeIn'](_0x340f07['content'])['getItems']())_0x4b2d74['is']('element','suggestion-td')&&_0x1c6ecd['push'](_0x4b2d74);_0x59ba2e['change'](_0x4425e1=>{for(const _0x3f1d5d of _0x1c6ecd)_0x4425e1['move'](_0x4425e1['createRangeIn'](_0x3f1d5d),_0x4425e1['createPositionBefore'](_0x3f1d5d)),_0x4425e1['remove'](_0x3f1d5d);});});}}function Oe(_0x49a4c3){if(_0x49a4c3['isEmpty'])return!0x0;const _0x438625=_0x49a4c3['getChild'](0x0);return _0x438625['is']('element','paragraph')&&_0x438625['isEmpty'];}function Ue(_0xea3554,_0x46167c={},_0x82074){for(const {isAnchor:_0x1baf42,cellHeight:_0x38de70,cellWidth:_0xae782d}of _0x82074['createTableWalker'](_0xea3554,{'includeAllSlots':!0x0,..._0x46167c}))if(!_0x1baf42||0x1!=_0x38de70||0x1!=_0xae782d)return!0x1;return!0x0;}class Dt extends _0x4bc43a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5c1fbe=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c1fbe['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5c1fbe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5c1fbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c1fbe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5c1fbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5c1fbe['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x34f41b,_0x4d0899){const _0x224213=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cd8e8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1074db=_0x4d0899['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1919fc=_0x5cd8e8['getColumnGroupElement'](_0x1074db);let _0x229b41=_0x1919fc?_0x5cd8e8['getTableColumnsWidths'](_0x1919fc):null,_0xc3b85d=_0x1074db['getAttribute']('tableWidth')||null;const _0x522601=_0x4d0899['tableWidth']||_0xc3b85d,_0x2eb0bc=_0x4d0899['columnWidths']||_0x229b41,_0x4038d2=this['editor']['plugins']['get']('Users')['me'];for(const _0x543a20 of _0x224213['getSuggestions']()){const _0x5a1052=_0x543a20['getContainedElement']();if('resizeTable'===_0x543a20['subType']&&_0x5a1052===_0x1074db){_0x543a20['author']!==_0x4038d2&&_0x543a20['discard']();const _0x22a17c=_0x543a20['data']['commandParams'];_0xc3b85d=_0x22a17c[0x0]['tableWidth'],_0x229b41=_0x22a17c[0x0]['columnWidths'];break;}}_0x34f41b({'table':_0x1074db,'tableWidth':_0x522601,'columnWidths':_0x2eb0bc}),_0x224213['markBlockFormat'](_0x1074db,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xc3b85d,'columnWidths':_0x229b41}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3787df){if('formatBlock'!=_0x3787df['type']&&'formatInline'!=_0x3787df['type'])return;const {data:_0x25976d}=_0x3787df;if(_0x25976d&&'resizeTable'===_0x25976d['formatGroupId']){const _0x531b0b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x531b0b)};}}}class Mt extends _0x4bc43a{['afterInit'](){const _0x57b445=this['editor'];_0x57b445['plugins']['has']('Template')&&_0x57b445['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x4bc43a{['afterInit'](){const _0x422098=this['editor'];if(!_0x422098['commands']['get']('insertTableOfContents'))return;_0x422098['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x399ec3=_0x422098['plugins']['get']('TrackChangesEditing'),_0x347b09=_0x422098['locale'];_0x399ec3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3b9291=>o(_0x347b09,'ELEMENT_TABLE_OF_CONTENTS',_0x3b9291));}}class Bt extends _0x4bc43a{['afterInit'](){const _0x2c9d6f=this['editor'];if(!_0x2c9d6f['plugins']['has']('Title'))return;const _0x5bae94=_0x2c9d6f['plugins']['get']('TrackChangesEditing');_0x5bae94['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2c9d6f['locale'],'ELEMENT_TITLE')),_0x2c9d6f['model']['document']['registerPostFixer'](_0x4de43d=>{let _0xc65e2=!0x1;const _0x4be9a4=Array['from'](_0x2c9d6f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ce7fa,data:_0x383cc5}of _0x4be9a4){const {group:_0x3c296e}=_0x5bae94['_splitMarkerName'](_0x1ce7fa);if('suggestion'!==_0x3c296e||!_0x383cc5['newRange'])continue;const _0x28c507=_0x383cc5['newRange'],_0x442c6e=_0x28c507['end']['nodeBefore'];if(!_0x442c6e||!_0x442c6e['is']('element','title-content'))continue;if(!_0x28c507['start']['isTouching'](_0x28c507['end']))continue;const _0x5475fb=_0x2c9d6f['model']['schema']['getNearestSelectionRange'](_0x28c507['end'],'forward');if(_0x5475fb&&_0x5475fb['isCollapsed']){const _0x1727fb=_0x4de43d['createRange'](_0x28c507['start'],_0x5475fb['start']);_0x1727fb['isEqual'](_0x28c507)||(_0x4de43d['updateMarker'](_0x1ce7fa,{'range':_0x1727fb}),_0xc65e2=!0x0);}_0xc65e2||(_0x4de43d['removeMarker'](_0x1ce7fa),_0xc65e2=!0x0);}return _0xc65e2;});}}class Ot extends _0x4bc43a{['afterInit'](){const _0x54ae59=this['editor'],_0x16f9f7=_0x54ae59['plugins']['get']('TrackChangesEditing');_0x54ae59['plugins']['has']('Uploadcare')&&(_0x16f9f7['enableCommand']('uploadcare'),_0x54ae59['plugins']['has']('UploadcareImageEdit')&&(_0x16f9f7['enableCommand']('uploadcareImageEdit'),_0x16f9f7['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x16f9f7['registerBlockAttribute']('uploadcareImageId'),_0x16f9f7['descriptionFactory']['registerDescriptionCallback'](_0x4207f2=>{if('attribute'!=_0x4207f2['type'])return;const {data:_0x22a812}=_0x4207f2;return _0x22a812&&'uploadcareImageId'==_0x22a812['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x4bc43a{['afterInit'](){const _0x5bb107=this['editor'],_0xd093c5=_0x5bb107['plugins']['get']('TrackChangesEditing');_0x5bb107['plugins']['has']('UndoEditing')&&(_0xd093c5['enableCommand']('undo'),_0xd093c5['enableCommand']('redo'));}}class Tt extends _0x4bc43a{static get['requires'](){return[vt];}['afterInit'](){const _0x565281=this['editor'];if(!_0x565281['plugins']['has']('TableCaptionEditing'))return;_0x565281['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x4bc43a{['tableProperties'];['tableCellProperties'];constructor(_0x4169d5){super(_0x4169d5),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 _0x19a44f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa7e451 of this['tableProperties'])_0x19a44f['enableCommand'](_0xa7e451,(_0xd9c0b,_0x429024)=>{const _0xc2810f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa7e451,[_0xc2810f],this['tableProperties'],'tableProperties',_0xd9c0b,_0x429024);});_0x19a44f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x19a44f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19a44f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1c7e6,_0x150c35)=>this['handleDiscardAction'](this['tableProperties'],_0x1c7e6,_0x150c35)),_0x19a44f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5e2655 of this['tableCellProperties'])_0x19a44f['enableCommand'](_0x5e2655,(_0x5ea509,_0xc94fac)=>{const _0x58c969=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5e2655,_0x58c969,this['tableCellProperties'],'tableCellProperties',_0x5ea509,_0xc94fac);});_0x19a44f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x19a44f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19a44f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3ddbf4,_0x1bb872)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3ddbf4,_0x1bb872)),_0x19a44f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x19a44f['descriptionFactory']['registerDescriptionCallback'](_0x3253e0=>this['handleSuggestionDescription'](_0x3253e0));}['_handlePropertyChange'](_0x697518,_0x1959bc,_0x5b5146,_0x455fb8,_0xb481bd,_0xf93855){const _0x539a0c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xf93855['batch'],()=>{for(const _0x4acb29 of _0x1959bc){if(this['_getSuggestion'](_0x4acb29,_0x455fb8))_0xb481bd(_0xf93855);else{const _0x21d788={};for(const _0x39aee2 of _0x5b5146){const _0x5150bf=_0x4acb29['getAttribute'](_0x39aee2);void 0x0!==_0x5150bf&&(_0x21d788[_0x39aee2]=_0x5150bf);}_0xb481bd(_0xf93855),_0x539a0c['markBlockFormat'](_0x4acb29,{'commandParams':[_0x21d788]},[],_0x455fb8);}}});}['handleDiscardAction'](_0x41bbbc,_0x54960b,_0x4441ac){const _0x2bc1b6=_0x54960b[0x0]['start']['nodeAfter'],_0x2482e7=_0x4441ac['commandParams'][0x0];this['editor']['model']['change'](_0x54badd=>{for(const _0x7b86d2 of _0x41bbbc)void 0x0!==_0x2482e7[_0x7b86d2]?_0x54badd['setAttribute'](_0x7b86d2,_0x2482e7[_0x7b86d2],_0x2bc1b6):_0x54badd['removeAttribute'](_0x7b86d2,_0x2bc1b6);});}['handleSuggestionDescription'](_0x2aae9a){if(_0x2aae9a['data'])switch(_0x2aae9a['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'](_0x4abec8,_0x919636){const _0x31e462=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3a2a5b of _0x31e462['getSuggestions']({'skipNotAttached':!0x0})){const _0xce3eb0=_0x3a2a5b['getContainedElement']();if(_0x3a2a5b['subType']===_0x919636&&_0xce3eb0===_0x4abec8)return _0x3a2a5b;}return null;}}const m='$elementName';class p extends _0x4bc43a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x558fcb,_0x56f436,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b44b9){super(_0x2b44b9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3a0219,_0x1dd8fb,_0x350180,_0x1d81ad)=>{this['_model']['change'](()=>{for(const _0x3ce051 of[..._0x1d81ad,..._0x350180])this['_model']['markers']['has'](_0x3ce051)&&_0x2b44b9['editing']['reconvertMarker'](_0x3ce051);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2b44b9['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(),_0x2b44b9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2b44b9['config']['get']('trackChanges.trackFormatChanges'),_0x2b44b9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2b44b9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2b44b9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2828a4=this['editor'],_0x33da82=(_0x569a92,_0x142d34)=>{if('attribute'!=_0x569a92)return'ck-suggestion-marker-'+_0x569a92;const _0x21ef7c=_0x142d34['split']('|')[0x0];return this['_isBlockAttribute'](_0x21ef7c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2828a4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x33a209=>{const {id:_0x1db4f3,authorId:_0x42fd8a,type:_0x4afe73,subType:_0x40b422}=this['_splitMarkerName'](_0x33a209['markerName']),_0x5a70e7=['ck-suggestion-marker',_0x33da82(_0x4afe73,_0x40b422)];let _0x1cf3f0=0xbb8;return this['activeMarkers']['includes'](_0x33a209['markerName'])&&(_0x5a70e7['push']('ck-suggestion-marker--active'),_0x1cf3f0=0xbc2),'deletion'==_0x4afe73&&(_0x1cf3f0+=0x5),{'classes':_0x5a70e7,'attributes':{'data-suggestion':_0x1db4f3,'data-author-id':_0x42fd8a},'priority':_0x1cf3f0};}}),_0x2828a4['conversion']['for']('dataDowncast')['add'](_0x469410=>{_0x469410['on']('addMarker:suggestion',(_0x235c12,_0x517bf5,_0x5d0a26)=>{if(!_0x5d0a26['options']['showSuggestionHighlights'])return;const _0x594222=_0x517bf5['item'];if(!_0x594222)return;const _0x36b49b=_0x5d0a26['mapper']['toViewElement'](_0x594222);_0x2828a4['model']['schema']['isObject'](_0x594222)&&_0x36b49b&&!_0x36b49b['getCustomProperty']('widget')&&_0x36b49b['is']('containerElement')&&_0x2eed79(_0x36b49b,_0x5d0a26['writer']);},{'priority':'high'});}),_0x2828a4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x285e8a,_0x1dfb04)=>{if(!_0x1dfb04['options']['showSuggestionHighlights'])return null;const {type:_0x55a120,subType:_0x41829e}=this['_splitMarkerName'](_0x285e8a['markerName']);return{'classes':['ck-suggestion-marker',_0x33da82(_0x55a120,_0x41829e)],'priority':0xbb8};}});const _0x59120d=({showActiveMarkers:_0xe81659=!0x0,isAttributeSuggestion:_0x421cc1=!0x1}={})=>(_0x3b1230,_0x27402,_0x142017)=>{if(!_0x27402['item'])return;const {id:_0x53b859,authorId:_0x456bf9}=this['_splitMarkerName'](_0x27402['markerName']);if(_0x421cc1){const _0x6db227=this['_suggestions']['get'](_0x53b859),_0x2f2a85=this['_getAttributeKey'](_0x6db227);if(!this['_isBlockAttribute'](_0x2f2a85))return;}if(_0x27402['item']['is']('selection'))return void _0x142017['consumable']['consume'](_0x27402['item'],_0x3b1230['name']);const _0xaa6947=_0x142017['mapper']['toViewElement'](_0x27402['item']);if(_0x27402['item']['is']('element')&&_0x2828a4['model']['schema']['isBlock'](_0x27402['item'])&&!_0xaa6947['getCustomProperty']('addHighlight')){_0x142017['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xaa6947),_0x142017['writer']['setAttribute']('data-suggestion',_0x53b859,_0xaa6947),_0x142017['writer']['setAttribute']('data-author-id',_0x456bf9,_0xaa6947),_0x142017['mapper']['bindElementToMarker'](_0xaa6947,_0x27402['markerName']),_0xe81659&&(this['activeMarkers']['includes'](_0x27402['markerName'])?_0x142017['writer']['addClass']('ck-suggestion-marker--active',_0xaa6947):_0x142017['writer']['removeClass']('ck-suggestion-marker--active',_0xaa6947));for(const _0x3f050d of _0x2828a4['model']['createRangeIn'](_0x27402['item'])['getItems']())_0x142017['consumable']['consume'](_0x3f050d,_0x3b1230['name']);_0x142017['consumable']['consume'](_0x27402['item'],_0x3b1230['name']);}};_0x2828a4['conversion']['for']('dataDowncast')['add'](_0x4138e9=>{_0x4138e9['on']('addMarker:suggestion:formatBlock',(_0x1ba895,_0x36ea00,_0x5937d2)=>{_0x5937d2['options']['showSuggestionHighlights']&&_0x59120d({'showActiveMarkers':!0x1})(_0x1ba895,_0x36ea00,_0x5937d2);},{'priority':'highest'});}),_0x2828a4['conversion']['for']('dataDowncast')['add'](_0x4d2ab0=>{_0x4d2ab0['on']('addMarker:suggestion:attribute',(_0x318f6d,_0x25dd0f,_0x19d90d)=>{_0x19d90d['options']['showSuggestionHighlights']&&_0x59120d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x318f6d,_0x25dd0f,_0x19d90d);},{'priority':'highest'});}),_0x2828a4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1fe6ec,_0xd80172)=>_0xd80172['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1fe6ec['substr'](0xb)}}),_0x2828a4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3a7e29,{writer:_0x29f3b5})=>{let _0x23e0e2='suggestion:'+_0x3a7e29['getAttribute']('suggestion-type')+':'+_0x3a7e29['getAttribute']('id');return _0x3a7e29['getAttribute']('marker-count')&&(_0x23e0e2+=':'+_0x3a7e29['getAttribute']('marker-count')),_0x29f3b5['createElement']('$marker',{'data-name':_0x23e0e2});}}),_0x2828a4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2828a4['conversion']['for']('editingDowncast')['add'](_0x421387=>{_0x421387['on']('addMarker:suggestion:formatBlock',_0x59120d(),{'priority':'high'});}),_0x2828a4['conversion']['for']('editingDowncast')['add'](_0x4082d6=>{_0x4082d6['on']('addMarker:suggestion:attribute',_0x59120d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2828a4['conversion']['for']('editingDowncast')['add'](_0x299fbb=>{_0x299fbb['on']('removeMarker:suggestion:formatBlock',(_0x47e502,_0x563604,_0x1396d4)=>{const _0x2894d3=_0x1396d4['mapper']['markerNameToElements'](_0x563604['markerName']);if(_0x2894d3){for(const _0x187972 of _0x2894d3)_0x187972['getCustomProperty']('addHighlight')||(_0x1396d4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x187972),_0x1396d4['writer']['removeAttribute']('data-suggestion',_0x187972),_0x1396d4['writer']['removeAttribute']('data-author-id',_0x187972),_0x1396d4['mapper']['unbindElementFromMarkerName'](_0x187972,_0x563604['markerName']));}},{'priority':'high'});}),_0x2828a4['conversion']['for']('editingDowncast')['add'](_0xbc68d9=>{_0xbc68d9['on']('removeMarker:suggestion:attribute',(_0x349005,_0x26d73f,_0xa75758)=>{const _0x210928=_0xa75758['mapper']['markerNameToElements'](_0x26d73f['markerName']);if(!_0x210928)return;const {id:_0x2b5c22}=this['_splitMarkerName'](_0x26d73f['markerName']),_0x2b16d2=this['_suggestions']['get'](_0x2b5c22),_0xe4e952=this['_getAttributeKey'](_0x2b16d2);if(this['_isBlockAttribute'](_0xe4e952)){for(const _0x18e91f of _0x210928)_0x18e91f['getCustomProperty']('addHighlight')||(_0xa75758['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x18e91f),_0xa75758['writer']['removeAttribute']('data-suggestion',_0x18e91f),_0xa75758['writer']['removeAttribute']('data-author-id',_0x18e91f),_0xa75758['mapper']['unbindElementFromMarkerName'](_0x18e91f,_0x26d73f['markerName']));}},{'priority':'high'});}),_0x2828a4['model']['document']['registerPostFixer'](_0x499f7e=>{let _0x325347=!0x1;const _0x4a3edf=Array['from'](_0x2828a4['model']['document']['differ']['getChangedMarkers']()),_0x7e1a6d=new Set();for(const {name:_0x7ca7ab,data:_0x3939c5}of _0x4a3edf){const {group:_0x28f618,type:_0x48ac7b,subType:_0x58d07e,id:_0x58deee}=this['_splitMarkerName'](_0x7ca7ab);if('suggestion'!==_0x28f618)continue;const _0x54e124=this['_suggestions']['get'](_0x58deee);if(null!=_0x3939c5['newRange']){'formatInline'==_0x48ac7b&&(_0x325347=_0x325347||Gt(_0x3939c5['newRange'],_0x7ca7ab,_0x499f7e,_0x2828a4['model']['schema']));const _0x5aaff0='attribute'==_0x48ac7b&&this['_isBlockAttribute'](_0x58d07e['split']('|')[0x0]);if(_0x3939c5['newRange']['isCollapsed']||'$graveyard'==_0x3939c5['newRange']['root']['rootName']||'formatBlock'==_0x48ac7b&&!Lt(_0x3939c5['newRange'])||_0x5aaff0&&!Lt(_0x3939c5['newRange'])||'deletion'==_0x48ac7b&&!(!Pt(_0x1962c5=_0x3939c5['newRange'])&&!function(_0x26e8c8){return _0x26e8c8['start']['parent']==_0x26e8c8['end']['nodeBefore']&&_0x26e8c8['start']['isAtEnd'];}(_0x1962c5)))_0x499f7e['removeMarker'](_0x7ca7ab),_0x325347=!0x0;else{if(!_0x54e124||!_0x54e124['isInContent'])continue;if(_0x3939c5['newRange']&&_0x3939c5['oldRange']&&_0x3939c5['newRange']['isEqual'](_0x3939c5['oldRange']))continue;_0x7e1a6d['add'](_0x54e124);}}}var _0x1962c5;return _0x7e1a6d['size']>0x0&&(_0x325347=!!this['_joinWithAdjacentSuggestions'](_0x7e1a6d)||_0x325347),_0x325347;}),_0x2828a4['model']['document']['registerPostFixer'](_0x1c9107=>{let _0x17c054=!0x1;for(const _0xf1769a of _0x2828a4['model']['document']['differ']['getChanges']())if('insert'==_0xf1769a['type'])for(const _0x4073c7 of this['_suggestions']['values']()){if(_0x4073c7['isMultiRange']||!_0x4073c7['isInContent'])continue;const _0x4383bd='formatBlock'==_0x4073c7['type'],_0x98d438=this['_getAttributeKey'](_0x4073c7),_0x594464=_0x98d438&&this['_isBlockAttribute'](_0x98d438);if(!_0x4383bd&&!_0x594464)continue;const _0x22869d=_0x4073c7['getFirstRange']();if(_0x22869d['start']['parent']!=_0x22869d['end']['parent']&&!_0x22869d['end']['isAtEnd']){const _0x389bb6=_0x2828a4['model']['createPositionAt'](_0x22869d['start']['nodeAfter'],'end'),_0x3dc4a3=_0x2828a4['model']['createRange'](_0x22869d['start'],_0x389bb6);_0x1c9107['updateMarker'](_0x4073c7['getFirstMarker'](),{'range':_0x3dc4a3}),_0x17c054=!0x0;}}return _0x17c054;}),_0x2828a4['model']['document']['registerPostFixer'](_0x410b98=>this['_processAttributeChanges'](_0x410b98)),_0x2828a4['model']['document']['registerPostFixer'](_0x553296=>!_0x553296['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x553296)),_0x2828a4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2828a4['model']['document']['on']('change:data',(_0x1d51fb,_0x35fbb0)=>{if(!_0x35fbb0['isLocal']||_0x35fbb0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1d4513=_0x2828a4['model']['document']['differ']['getChanges']();if(0x0==_0x1d4513['length'])return;const _0xb2a7c3=[],_0x438325=_0x1d4513['filter'](_0x11c8c4=>'attribute'==_0x11c8c4['type']),_0x5dd049=_0x1d4513['filter'](_0x52619e=>'insert'==_0x52619e['type']&&'$text'!=_0x52619e['name']);for(const _0x513656 of _0x438325)this['_isRegisteredAttribute'](_0x513656['attributeKey'])&&_0xb2a7c3['push']({'key':_0x513656['attributeKey'],'newValue':_0x513656['attributeNewValue'],'oldValue':_0x513656['attributeOldValue'],'range':Jt(_0x513656['range'],_0x2828a4['model'])});for(const _0x24d957 of _0x5dd049){if('rename'!=_0x24d957['action']&&'refresh'!=_0x24d957['action'])continue;const _0x44f71c=Ht(_0x24d957['position']['nodeAfter'],_0x2828a4['model']),_0x574155=_0x24d957['before'];'rename'==_0x24d957['action']&&_0xb2a7c3['push']({'key':m,'newValue':_0x24d957['name'],'oldValue':_0x574155['name'],'range':_0x44f71c});for(const [_0x29f77e,_0x48a65e]of _0x574155['attributes']){if(!this['_isRegisteredAttribute'](_0x29f77e))continue;const _0x1fd65e=_0x24d957['attributes']['get'](_0x29f77e);_0x48a65e!==_0x1fd65e&&_0xb2a7c3['push']({'key':_0x29f77e,'newValue':_0x1fd65e,'oldValue':_0x48a65e,'range':_0x44f71c});}for(const [_0x44806a,_0x3f71ed]of _0x24d957['attributes'])this['_isRegisteredAttribute'](_0x44806a)&&(_0x574155['attributes']['has'](_0x44806a)||_0xb2a7c3['push']({'key':_0x44806a,'newValue':_0x3f71ed,'oldValue':null,'range':_0x44f71c}));}0x0!=_0xb2a7c3['length']&&_0x2828a4['model']['enqueueChange'](_0x35fbb0,_0x1c341d=>{const _0x3b84c7=_0x16938d();for(const {range:_0x12caaf,key:_0x94a55d,oldValue:_0x3b9a66,newValue:_0x3c5120}of _0xb2a7c3)this['markAttributeChange'](_0x12caaf,_0x94a55d,_0x3b9a66,_0x3c5120,{'groupId':_0x3b84c7});this['_reduceExistingSuggestions'](_0x1c341d,_0xb2a7c3);});},{'priority':'lowest'}),_0x2828a4['model']['markers']['on']('update:suggestion',(_0x18203d,_0x41eb69,_0x42b3b1)=>{if(null==_0x42b3b1){const {id:_0x53871a}=this['_splitMarkerName'](_0x41eb69['name']),_0x57127d=this['_suggestions']['get'](_0x53871a);_0x57127d&&_0x57127d['addMarkerName'](_0x41eb69['name']);}}),_0x2828a4['model']['document']['on']('change:data',()=>{const _0x15501e=Array['from'](_0x2828a4['model']['document']['differ']['getChangedMarkers']())['filter'](_0xe26ca9=>'suggestion'===this['_splitMarkerName'](_0xe26ca9['name'])['group']);if(0x0===_0x15501e['length'])return;_0x15501e['sort']((_0x28e48d,_0x393ace)=>{const _0x3e6c46=_0x28e48d['data']['oldRange'],_0x236912=_0x393ace['data']['oldRange'];return null===_0x3e6c46&&null===_0x236912?0x0:null===_0x3e6c46&&null!==_0x236912?-0x1:null!==_0x3e6c46&&null===_0x236912?0x1:_0x3e6c46['start']['isBefore'](_0x236912['start'])?-0x1:0x1;});const _0x3d9163=new Set(),_0x32163e=new Set();for(const {name:_0x251cfc,data:_0x57141e}of _0x15501e){const {id:_0x217ee7}=this['_splitMarkerName'](_0x251cfc);if(null===_0x57141e['oldRange']){const _0x3149b5=this['_handleNewSuggestionMarker'](_0x251cfc);_0x32163e['add'](_0x3149b5);}else{const _0x2df450=this['_suggestions']['get'](_0x217ee7);null!==_0x57141e['newRange']||_0x2df450['isInContent']?(_0x3d9163['add'](_0x2df450['head']),_0x32163e['add'](_0x2df450)):this['_removeSuggestion'](_0x2df450);}}_0x32163e['size']>0x0&&this['_refreshSuggestionsChain'](_0x32163e);for(const _0x2590f9 of _0x3d9163)this['fire']('suggestionChanged',_0x2590f9);}),_0x2828a4['model']['on']('applyOperation',(_0x1c799a,_0xd9bfda)=>{const _0x1ca9ed=_0xd9bfda[0x0];if(!this['_suggestions']['size'])return;if(!_0x1ca9ed['isDocumentOperation'])return;if(_0x1ca9ed['batch']['isUndo']||!_0x1ca9ed['batch']['isLocal'])return;let _0x4cd673,_0x2e42e9;switch(_0x1ca9ed['type']){case'insert':_0x4cd673=_0x2828a4['model']['createPositionAt'](_0x1ca9ed['position']),_0x2e42e9=_0x4cd673['getShiftedBy'](_0x1ca9ed['howMany']);break;case'split':_0x4cd673=_0x2828a4['model']['createPositionAt'](_0x1ca9ed['splitPosition']),_0x2e42e9=_0x2828a4['model']['createPositionAt'](_0x1ca9ed['moveTargetPosition']);break;case'move':_0x4cd673=_0x2828a4['model']['createPositionAt'](_0x1ca9ed['targetPosition']),_0x2e42e9=_0x4cd673['getShiftedBy'](_0x1ca9ed['howMany']);break;default:return;}const _0x19bb16=_0x2828a4['model']['createRange'](_0x4cd673,_0x2e42e9);_0x2828a4['model']['change'](()=>{for(const {suggestion:_0x22433b,meta:_0x5a5857}of this['_findSuggestions'](_0x19bb16)){if(_0x22433b['isMultiRange'])continue;if('formatInline'==_0x22433b['type'])continue;const _0x106d09=this['_getAttributeKey'](_0x22433b);if(_0x106d09&&this['_isBlockAttribute'](_0x106d09)&&'split'!=_0x1ca9ed['type'])continue;const _0xc4b6af=_0x22433b['data']&&_0x22433b['data']['multipleBlocks'];('formatBlock'!=_0x22433b['type']||'split'==_0x1ca9ed['type']&&!_0xc4b6af)&&(_0x5a5857['containsRangeInObject']||'insertion'==_0x22433b['type']&&_0x5a5857['isOwn']||_0x22433b['getFirstRange']()['containsRange'](_0x19bb16)&&this['_breakSuggestionMarker'](_0x22433b,_0x4cd673,_0x2e42e9));}});},{'priority':'lowest'}),_0x2828a4['model']['on']('deleteContent',(_0x288bfe,_0x5588af)=>{const _0x38a4e1=_0x5588af[0x0],_0x62b76f=_0x5588af[0x1];if(_0x62b76f&&_0x62b76f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x38a4e1['isCollapsed'])return;const _0x2502c9=_0x2828a4['model']['schema'],{start:_0x4628ae,end:_0x3f98cd}=_0x38a4e1['getFirstRange'](),_0x9d992f=_0x4628ae['nodeAfter']&&_0x2502c9['isLimit'](_0x4628ae['nodeAfter'])?null:_0x2502c9['getNearestSelectionRange'](_0x4628ae,'forward'),_0x20f663=_0x3f98cd['nodeBefore']&&_0x2502c9['isLimit'](_0x3f98cd['nodeBefore'])?null:_0x2502c9['getNearestSelectionRange'](_0x3f98cd,'backward'),_0x59bc5a=_0x2828a4['model']['createRange'](_0x9d992f?_0x9d992f['start']:_0x4628ae,_0x20f663?_0x20f663['end']:_0x3f98cd);_0x2828a4['model']['change'](_0x2b98d4=>{this['markDeletion'](_0x59bc5a);const _0x5e9758=_0x2828a4['model']['schema']['getNearestSelectionRange'](_0x59bc5a['start']);_0x38a4e1['is']('documentSelection')?_0x2b98d4['setSelection'](_0x5e9758):_0x38a4e1['setTo'](_0x5e9758);}),_0x288bfe['stop']();},{'priority':_0x39f89f['normal']+0xa}),_0x2828a4['model']['on']('insertContent',(_0x1b7487,_0x1a5248)=>{const _0x38548e=_0x1a5248[_0x1a5248['length']-0x1];_0x38548e&&_0x38548e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2828a4['model']['change'](()=>{let _0xde36d0=_0x2828a4['model']['insertContent'](_0x1a5248[0x0],_0x1a5248[0x1],_0x1a5248[0x2],{'forceDefaultExecution':!0x0});if(!_0xde36d0)return;_0x1b7487['return']=_0xde36d0['clone']();const _0x7c42b6=_0xde36d0['end']['nodeBefore'],_0x356cf6=_0x2828a4['model']['schema'];_0x7c42b6&&_0x356cf6['isBlock'](_0x7c42b6)&&!_0x356cf6['isObject'](_0x7c42b6)&&(_0xde36d0=_0x2828a4['model']['createRange'](_0xde36d0['start'],_0x2828a4['model']['createPositionAt'](_0x7c42b6,'end'))),this['markInsertion'](_0xde36d0);}),_0x1b7487['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c9577=new O(_0x2828a4,this['_suggestions']);_0x2828a4['commands']['add']('acceptSuggestion',_0x3c9577),this['enableCommand']('acceptSuggestion');const _0x178e53=new R(_0x2828a4,this['_suggestions']);_0x2828a4['commands']['add']('discardSuggestion',_0x178e53),this['enableCommand']('discardSuggestion'),_0x2828a4['commands']['add']('acceptAllSuggestions',new x(_0x2828a4,_0x3c9577,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2828a4['commands']['add']('discardAllSuggestions',new x(_0x2828a4,_0x178e53,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2828a4['commands']['add']('acceptSelectedSuggestions',new E(_0x2828a4,_0x3c9577,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2828a4['commands']['add']('discardSelectedSuggestions',new E(_0x2828a4,_0x178e53,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x29edf8=_0x2828a4['plugins']['get']('CommentsRepository');this['listenTo'](_0x29edf8,'addComment',(_0x144847,{threadId:_0x147c3f})=>{const _0x1d32c1=this['_suggestions']['get'](_0x147c3f);_0x1d32c1&&_0x1d32c1['commentThread']&&0x1===_0x1d32c1['commentThread']['length']&&this['_updateSuggestionData'](_0x147c3f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x29edf8,'removeComment',(_0x2bb7ad,{threadId:_0x5c1507})=>{const _0x4ed1b8=this['_suggestions']['get'](_0x5c1507);_0x4ed1b8&&_0x4ed1b8['commentThread']&&!_0x4ed1b8['commentThread']['length']&&this['_updateSuggestionData'](_0x5c1507,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1d092f){const _0x57a3eb=_0x49b3e1([0x73,0x4b,0x33,0x76,0x31,0x6b,0x50,0x65,0x41,0x46,0x53,0x38,0x51,0x36,0x6e,0x6c,0x6d,0x6a,0x57,0x58,0x44,0x4a,0x74,0x34,0x52,0x71,0x68,0x47,0x55,0x67,0x70,0x49,0x43,0x4f,0x4d,0x4c,0x62,0x4e,0x77,0x39,0x64,0x59,0x61,0x79,0x42,0x5a,0x78,0x48,0x63,0x54,0x32,0x72,0x69,0x30,0x56,0x75,0x6f,0x66,0x45,0x7a,0x37,0x35]),_0x4211c7=0x59f88e56,_0x465c29=0x59ffd3ae^_0x4211c7,_0x58f9b4=window[_0x49b3e1([0x44,0x61,0x74,0x65])][_0x49b3e1([0x6e,0x6f,0x77])](),_0xee6407=_0x1d092f[_0x49b3e1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6115cf=new window[(_0x49b3e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a6f0=>{_0xee6407[_0x49b3e1([0x6f,0x6e,0x63,0x65])](_0x49b3e1([0x72,0x65,0x61,0x64,0x79]),_0x13a6f0);}),_0x1b9405={[_0x49b3e1([0x6b,0x74,0x79])]:_0x49b3e1([0x45,0x43]),[_0x49b3e1([0x75,0x73,0x65])]:_0x49b3e1([0x73,0x69,0x67]),[_0x49b3e1([0x63,0x72,0x76])]:_0x49b3e1([0x50,0x2d,0x32,0x35,0x36]),[_0x49b3e1([0x78])]:_0x49b3e1([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]),[_0x49b3e1([0x79])]:_0x49b3e1([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]),[_0x49b3e1([0x61,0x6c,0x67])]:_0x49b3e1([0x45,0x53,0x32,0x35,0x36])},_0x36e064=_0xee6407[_0x49b3e1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49b3e1([0x67,0x65,0x74])](_0x49b3e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ceac1(){let _0x31998e,_0x225228=null,_0xc6bcbe=null;try{if(_0x36e064==_0x49b3e1([0x47,0x50,0x4c]))return _0x49b3e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31998e=_0x200e8a(),!_0x31998e)return _0x49b3e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31998e[_0x49b3e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc6bcbe=_0x204786(_0x31998e[_0x49b3e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31998e[_0x49b3e1([0x6a,0x74,0x69])])),await _0x1ee62e()?_0x6b3879()?_0x123096()?_0x49b3e1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29eb15()?(_0x31998e[_0x49b3e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49b3e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x225228=_0x4856ad(_0x49b3e1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x31998e[_0x49b3e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49b3e1([0x74,0x72,0x69,0x61,0x6c])&&(_0x225228=_0x4856ad(_0x49b3e1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd88dd8()):_0x49b3e1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49b3e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49b3e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5c80c4){return _0x49b3e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x123096(){const _0x1d34ca=[_0x49b3e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49b3e1([0x74,0x72,0x69,0x61,0x6c])][_0x49b3e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31998e[_0x49b3e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58f9b4/0x3e8:0xe10*_0x465c29;return _0x31998e[_0x49b3e1([0x65,0x78,0x70])]<_0x1d34ca;}function _0x6b3879(){const _0x190429=_0x31998e[_0x49b3e1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x190429)return!0x1;if(_0x190429[_0x49b3e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b3e1([0x2a])))return!0x0;if(_0x190429[_0x49b3e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b3e1([0x54,0x43])))return!0x0;if(_0x190429[_0x49b3e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b3e1([0x52,0x54,0x43]))){if(_0x26f1b3())return!0x0;if(_0x570fb8()||_0x30aedc())return!0x0;}return!0x1;}function _0x29eb15(){const _0x402c2b=_0x31998e[_0x49b3e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x402c2b||0x0==_0x402c2b[_0x49b3e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d3c90}=new URL(window[_0x49b3e1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x402c2b[_0x49b3e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d3c90))return!0x0;const _0x107a52=_0x2d3c90[_0x49b3e1([0x73,0x70,0x6c,0x69,0x74])](_0x49b3e1([0x2e]));return _0x402c2b[_0x49b3e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5043f1=>_0x5043f1[_0x49b3e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b3e1([0x2a])))[_0x49b3e1([0x6d,0x61,0x70])](_0x3f71e3=>_0x3f71e3[_0x49b3e1([0x73,0x70,0x6c,0x69,0x74])](_0x49b3e1([0x2e])))[_0x49b3e1([0x73,0x6f,0x6d,0x65])](_0x58eae7=>_0x107a52[_0x49b3e1([0x65,0x76,0x65,0x72,0x79])]((_0x370a03,_0x329876)=>_0x58eae7[_0x329876]===_0x370a03||_0x58eae7[_0x329876]===_0x49b3e1([0x2a])));}function _0xd88dd8(){return _0x225228&&_0xc6bcbe?new window[(_0x49b3e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b321c,_0x487b7f)=>{_0x225228[_0x49b3e1([0x74,0x68,0x65,0x6e])](_0x1b321c,_0x487b7f),_0xc6bcbe[_0x49b3e1([0x74,0x68,0x65,0x6e])](_0x51df58=>{_0x51df58!=_0x49b3e1([0x56,0x61,0x6c,0x69,0x64])&&_0x1b321c(_0x51df58);},_0x487b7f);}):_0x225228||_0xc6bcbe||_0x49b3e1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x204786(_0x4a6ca4,_0xc532a9){return new window[(_0x49b3e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e438f=>{if(_0x76aed3())return _0x3e438f(_0x49b3e1([0x56,0x61,0x6c,0x69,0x64]));_0x2d0dde(),_0xee6407[_0x49b3e1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49b3e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x352391=!0x1;const _0x3773e5=_0x16938d();function _0x4bff7e(_0x4bd726){return!!_0x4bd726&&(typeof _0x4bd726===_0x49b3e1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bd726===_0x49b3e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bd726[_0x49b3e1([0x74,0x68,0x65,0x6e])]===_0x49b3e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bd726[_0x49b3e1([0x63,0x61,0x74,0x63,0x68])]===_0x49b3e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x83f8ab(_0x42b5f9){_0x3f7f40(_0x42b5f9)[_0x49b3e1([0x74,0x68,0x65,0x6e])](_0x11faa6=>{if(!_0x11faa6||_0x11faa6[_0x49b3e1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49b3e1([0x6f,0x6b]))return _0x49b3e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xee7302(_0x153d84(_0x3773e5+_0xc532a9))!=_0x11faa6[_0x49b3e1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49b3e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49b3e1([0x56,0x61,0x6c,0x69,0x64]);})[_0x49b3e1([0x74,0x68,0x65,0x6e])](_0x23cb95=>(_0x50a204(),_0x23cb95),()=>{const _0x204733=_0x493f4d();return null==_0x204733?(_0x50a204(),_0x49b3e1([0x56,0x61,0x6c,0x69,0x64])):_0x49b3e1(_0x58f9b4-_0x204733>(0x7df40a56^_0x4211c7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49b3e1([0x74,0x68,0x65,0x6e])](_0x3e438f)[_0x49b3e1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e438f(_0x49b3e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51b73a=0x59ce60d6^_0x4211c7;function _0x50a204(){const _0x526d88=_0x49b3e1([0x6c,0x6c,0x63,0x74,0x2d])+_0xee7302(_0x153d84(_0x4a6ca4)),_0xc1c5=_0x53a8f4(_0xee7302(window[_0x49b3e1([0x4d,0x61,0x74,0x68])][_0x49b3e1([0x63,0x65,0x69,0x6c])](_0x58f9b4/_0x51b73a)));window[_0x49b3e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49b3e1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x526d88,_0xc1c5);}function _0x493f4d(){const _0x28d56d=_0x49b3e1([0x6c,0x6c,0x63,0x74,0x2d])+_0xee7302(_0x153d84(_0x4a6ca4)),_0x5a4a4e=window[_0x49b3e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49b3e1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28d56d);return _0x5a4a4e?window[_0x49b3e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53a8f4(_0x5a4a4e),0x10)*_0x51b73a:null;}function _0x3f7f40(_0x44e8b7){return new window[(_0x49b3e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10a202,_0x2aa55d)=>{_0x44e8b7[_0x49b3e1([0x74,0x68,0x65,0x6e])](_0x10a202,_0x2aa55d),window[_0x49b3e1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2aa55d,0x59f95a96^_0x4211c7);});}}_0xee6407[_0x49b3e1([0x6f,0x6e])](_0x49b3e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ea1da,_0xc4b4ef)=>{if(_0xc4b4ef[0x0]!=_0x4a6ca4)return _0x3e438f(_0x49b3e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc4b4ef[0x1]={..._0xc4b4ef[0x1],[_0x49b3e1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3773e5};},{[_0x49b3e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49b3e1([0x68,0x69,0x67,0x68])}),_0xee6407[_0x49b3e1([0x6f,0x6e])](_0x49b3e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3fb24f=>{_0x4bff7e(_0x3fb24f[_0x49b3e1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x352391=!0x0,_0x83f8ab(_0x3fb24f[_0x49b3e1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49b3e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49b3e1([0x6c,0x6f,0x77])}),_0x6115cf[_0x49b3e1([0x74,0x68,0x65,0x6e])](()=>{_0x352391||_0x3e438f(_0x49b3e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x76aed3(){return _0xee6407[_0x49b3e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49b3e1([0x76,0x69,0x65,0x77])][_0x49b3e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49b3e1([0x61,0x75,0x74,0x6f]);}function _0x2d0dde(){_0xee6407[_0x49b3e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49b3e1([0x76,0x69,0x65,0x77])][_0x49b3e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49b3e1([0x61,0x75,0x74,0x6f]);}}function _0x4856ad(_0x3e7fb8){const _0x383c97=[new window[(_0x49b3e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9b980b=>setTimeout(_0x9b980b,0x59f1b09a^_0x4211c7)),_0x6115cf[_0x49b3e1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49b3e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xeb1d34=>{let _0x4d68c1=0x0;_0xee6407[_0x49b3e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b3e1([0x6f,0x6e])](_0x49b3e1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e38cc,_0x3924df)=>{_0x3924df[0x0][_0x49b3e1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d68c1++,_0x4d68c1==(0x59f88fae^_0x4211c7)&&(_0xeb1d34(),_0x1e38cc[_0x49b3e1([0x6f,0x66,0x66])]());});}))];return window[_0x49b3e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49b3e1([0x72,0x61,0x63,0x65])](_0x383c97)[_0x49b3e1([0x74,0x68,0x65,0x6e])](()=>_0x3e7fb8);}async function _0x46d3b8(){await _0x6115cf,_0xee6407[_0x49b3e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b3e1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3533f2,_0xee6407[_0x49b3e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b3e1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3533f2,_0xee6407[_0x49b3e1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49b3e1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26f1b3(){return _0x46b7c9(_0x49b3e1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54b158(_0x49b3e1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x49b3e1([0x73,0x74,0x61,0x74,0x65])]==_0x49b3e1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x570fb8(){return _0x46b7c9(_0x49b3e1([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 _0x30aedc(){return _0x46b7c9(_0x49b3e1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb1d6ca(_0x5c432f){const _0x2623f2=_0x490b8d();_0xee6407[_0x2623f2]=_0x49b3e1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c432f,_0x5c432f!=_0x49b3e1([0x56,0x61,0x6c,0x69,0x64])&&_0x46d3b8();}function _0x490b8d(){const _0x2be99e=window[_0x49b3e1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49b3e1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49b3e1([0x6e,0x6f,0x77])]())[_0x49b3e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49b3e1([0x2e]),'');let _0x2518ae=_0x49b3e1([0x73]);for(let _0x259c55=0x0;_0x259c55<_0x2be99e[_0x49b3e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x259c55+=0x2){let _0x1df2f4=window[_0x49b3e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2be99e[_0x49b3e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x259c55,_0x259c55+0x2));_0x1df2f4>=_0x57a3eb[_0x49b3e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1df2f4-=_0x57a3eb[_0x49b3e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2518ae+=_0x57a3eb[_0x1df2f4];}return _0x2518ae;}function _0x200e8a(){const _0x33eed4=_0x36e064[_0x49b3e1([0x73,0x70,0x6c,0x69,0x74])](_0x49b3e1([0x2e]));if(0x3!=_0x33eed4[_0x49b3e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9c19ca(_0x33eed4[0x1]);function _0x9c19ca(_0x537f06){const _0x2c95ce=_0x20d4c3(_0x537f06);return _0x2c95ce&&_0x47cfa5()?_0x2c95ce:null;function _0x47cfa5(){const _0x639dde=_0x2c95ce[_0x49b3e1([0x6a,0x74,0x69])],_0x3a1e67=window[_0x49b3e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x639dde[_0x49b3e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x639dde[_0x49b3e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5cc9cf={..._0x2c95ce,[_0x49b3e1([0x6a,0x74,0x69])]:_0x639dde[_0x49b3e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x639dde[_0x49b3e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5cc9cf[_0x49b3e1([0x76,0x63])],_0x153d84(_0x5cc9cf)==_0x3a1e67;}}}async function _0x1ee62e(){let _0x1dcb7f=!0x0;try{const _0x113066=_0x36e064[_0x49b3e1([0x73,0x70,0x6c,0x69,0x74])](_0x49b3e1([0x2e])),[_0x55085e,_0x20103b,_0x4bd7e9]=_0x113066;return _0x50288c(_0x55085e),await _0x599867(_0x55085e,_0x20103b,_0x4bd7e9),_0x1dcb7f;}catch(_0x37849a){return!0x1;}function _0x50288c(_0x5a4d5a){const _0x2b2c5b=_0x20d4c3(_0x5a4d5a);_0x2b2c5b&&_0x2b2c5b[_0x49b3e1([0x61,0x6c,0x67])]==_0x49b3e1([0x45,0x53,0x32,0x35,0x36])||(_0x1dcb7f=!0x1);}async function _0x599867(_0x4cc87f,_0x19c0b0,_0x4d57a9){const _0x253b76=window[_0x49b3e1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49b3e1([0x66,0x72,0x6f,0x6d])](_0x396cb6(_0x4d57a9),_0xb00e3c=>_0xb00e3c[_0x49b3e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d8303=new window[(_0x49b3e1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49b3e1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cc87f+_0x49b3e1([0x2e])+_0x19c0b0),_0x40c41a=window[_0x49b3e1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49b3e1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40c41a)return;const _0x3e2b68=await _0x40c41a[_0x49b3e1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49b3e1([0x6a,0x77,0x6b]),_0x1b9405,{[_0x49b3e1([0x6e,0x61,0x6d,0x65])]:_0x49b3e1([0x45,0x43,0x44,0x53,0x41]),[_0x49b3e1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49b3e1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49b3e1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40c41a[_0x49b3e1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49b3e1([0x6e,0x61,0x6d,0x65])]:_0x49b3e1([0x45,0x43,0x44,0x53,0x41]),[_0x49b3e1([0x68,0x61,0x73,0x68])]:{[_0x49b3e1([0x6e,0x61,0x6d,0x65])]:_0x49b3e1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e2b68,_0x253b76,_0x2d8303)||(_0x1dcb7f=!0x1);}}function _0x20d4c3(_0x1b69de){return _0x1b69de[_0x49b3e1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49b3e1([0x65,0x79]))?JSON[_0x49b3e1([0x70,0x61,0x72,0x73,0x65])](_0x396cb6(_0x1b69de)):null;}function _0x396cb6(_0x204d00){return window[_0x49b3e1([0x61,0x74,0x6f,0x62])](_0x204d00[_0x49b3e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49b3e1([0x2b]))[_0x49b3e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49b3e1([0x2f])));}function _0x153d84(_0x472df1){let _0x135c16=0x1505;function _0x34931a(_0x235ff1){for(let _0x5cebf8=0x0;_0x5cebf8<_0x235ff1[_0x49b3e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cebf8++){const _0x3ef6b6=_0x235ff1[_0x49b3e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cebf8);_0x135c16=(_0x135c16<<0x5)+_0x135c16+_0x3ef6b6,_0x135c16&=_0x135c16;}}function _0x36ea34(_0x918e12){Array[_0x49b3e1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x918e12)?_0x918e12[_0x49b3e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36ea34):_0x918e12&&typeof _0x918e12==_0x49b3e1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49b3e1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x918e12)[_0x49b3e1([0x73,0x6f,0x72,0x74])]()[_0x49b3e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13d488,_0x376801])=>{_0x34931a(_0x13d488),_0x36ea34(_0x376801);}):_0x34931a(window[_0x49b3e1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x918e12));}return _0x36ea34(_0x472df1),_0x135c16>>>0x0;}function _0xee7302(_0x370638){return _0x370638[_0x49b3e1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49b3e1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49b3e1([0x30]));}function _0x53a8f4(_0x12dc88){return _0x12dc88[_0x49b3e1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49b3e1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49b3e1([0x6a,0x6f,0x69,0x6e])]('');}function _0x46b7c9(_0x42bdca){return _0xee6407[_0x49b3e1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49b3e1([0x68,0x61,0x73])](_0x42bdca);}function _0x54b158(_0x5c11fa){return _0xee6407[_0x49b3e1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49b3e1([0x67,0x65,0x74])](_0x5c11fa);}function _0x3533f2(){}function _0x49b3e1(_0x40a2c3){return _0x40a2c3['map'](_0x201e5b=>String['fromCharCode'](_0x201e5b))['join']('');}_0xb1d6ca(await _0x2ceac1());}(this);}set['adapter'](_0x2240d7){if(this['_adapter'])throw new _0x32ff2c('track-changes-adapter-already-set',this);this['_adapter']=_0x2240d7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1de92e=!0x1,toJSON:_0x24b05e=!0x1}={}){const _0x1d88c4=[];for(const _0x410c0c of this['_suggestions']['values']())_0x1de92e&&!_0x410c0c['isInContent']||_0x1d88c4['push'](_0x410c0c);return _0x24b05e?_0x1d88c4['map'](_0x3dbf53=>_0x3dbf53['toJSON']()):_0x1d88c4;}['getSuggestion'](_0x48854c){const _0x370241=this['_suggestions']['get'](_0x48854c);if(!_0x370241)throw new _0x32ff2c('track-changes-suggestion-not-found',this);return _0x370241;}['hasSuggestion'](_0x5660ac){return this['_suggestions']['has'](_0x5660ac);}['addSuggestionData'](_0x4de03a){const {authorId:_0x5365ce,id:_0x25ef3c,attributes:_0x2bfd41}=_0x4de03a,[_0x5878ef,_0x4718c2]=_0x4de03a['type']['split'](':'),_0x5282dc=this['_suggestions']['get'](_0x25ef3c)||this['_createSuggestion'](_0x5878ef,_0x4718c2,_0x25ef3c,_0x5365ce,_0x2bfd41);if(this['_addThreadToSuggestion'](_0x5282dc),this['_checkSuggestionCorrectness'](_0x5282dc,_0x5878ef,_0x4718c2||null,_0x5365ce),_0x5282dc['createdAt']=_0x4de03a['createdAt'],_0x5282dc['_isDataLoaded']=!0x0,_0x2bfd41&&_0x2bfd41['@external']){const _0x54d04f=_0x2bfd41['@external'],_0x14a756=this['_getExternalAuthor'](_0x54d04f['authorName']);_0x5282dc['authoredAt']=_0x54d04f['createdAt'],_0x5282dc['author']=_0x14a756,_0x5282dc['isExternal']=!0x0;}else _0x5282dc['authoredAt']=_0x4de03a['createdAt'];switch(_0x4de03a['data']&&(_0x5282dc['data']=_0x4de03a['data']),_0x4de03a['attributes']&&(_0x5282dc['attributes']=_0x4de03a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5282dc['_saved']=!0x0),this['_suggestionState']['get'](_0x5282dc)){case'notReady':this['_suggestionState']['set'](_0x5282dc,'dataReady');break;case'markerReady':_0x5282dc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5282dc])),this['_refreshSuggestionsChain'](new Set([_0x5282dc])),this['_suggestionState']['set'](_0x5282dc,'ready'),this['fire']('suggestionLoaded',_0x5282dc)):this['_suggestionState']['set'](_0x5282dc,'removed');}return _0x5282dc;}['acceptSuggestion'](_0x4bf7d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e66e3 of _0x4bf7d7['getAllAdjacentSuggestions']())_0x4e66e3['accept']();});});}['discardSuggestion'](_0x492a8a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ec0cb of _0x492a8a['getAllAdjacentSuggestions']())_0x2ec0cb['discard']();});});}['enableCommand'](_0x9c88c7,_0x5af09f){const _0x35bf98=this['editor']['commands']['get'](_0x9c88c7);if(!_0x35bf98)throw new _0x32ff2c('track-changes-command-not-found',this,{'commandName':_0x9c88c7});if(this['_enabledCommands']['has'](_0x35bf98))throw new _0x32ff2c('track-changes-enable-command-twice',this,{'commandName':_0x9c88c7});this['_enabledCommands']['add'](_0x35bf98),_0x5af09f&&_0x35bf98['on']('execute',(_0x52d1bb,_0x520a84)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x520a84['length']>0x0&&_0x520a84[_0x520a84['length']-0x1]&&_0x520a84[_0x520a84['length']-0x1]['forceDefaultExecution']?_0x520a84['pop']():(_0x52d1bb['return']=_0x5af09f((..._0x467878)=>_0x35bf98['execute'](..._0x467878,{'forceDefaultExecution':!0x0}),..._0x520a84),_0x52d1bb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6291d4){let _0x2cded2,_0x1d9b73;const _0x5c3a93=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2cded2=_0x6291d4();}catch(_0x4d5460){_0x1d9b73=_0x4d5460;}return _0x5c3a93||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d9b73&&_0x32ff2c['rethrowUnexpectedError'](_0x1d9b73,this),_0x2cded2;}['markInsertion'](_0x5a33ab,_0x2c05c9=null,_0x5edbe6={}){if(_0x5a33ab['isCollapsed'])return null;const _0x137e4a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2f87ca,meta:_0x411a71}of this['_findSuggestions'](_0x5a33ab,'insertion'))if(_0x411a71['isOwn']){if(!_0x411a71['isNextTo']){if(_0x411a71['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x2f87ca,_0x5edbe6))continue;return _0x2f87ca;}if(Kt(_0x2f87ca,_0x5edbe6))return _0x2f87ca;this['_breakSuggestionMarker'](_0x2f87ca,_0x5a33ab['start'],_0x5a33ab['end']);break;}if(_0x2c05c9==_0x2f87ca['subType']&&Kt(_0x2f87ca,_0x5edbe6)){const _0x301579=_0x2f87ca['getFirstRange']();return _0x301579['start']['isEqual'](_0x5a33ab['end'])?this['_setSuggestionRange'](_0x2f87ca,this['_model']['createRange'](_0x5a33ab['start'],_0x301579['end'])):this['_setSuggestionRange'](_0x2f87ca,this['_model']['createRange'](_0x301579['start'],_0x5a33ab['end'])),_0x2f87ca;}}const _0x331cdc=_0x16938d(),_0x5b9b75=_0x137e4a['id'],_0x3c76c9=_0x2c05c9?'insertion:'+_0x2c05c9:'insertion',_0x20b067=this['_setSuggestionData']({'id':_0x331cdc,'type':_0x3c76c9,'createdAt':new Date(),'authorId':_0x5b9b75,'attributes':_0x5edbe6});return this['_addSuggestionMarker'](_0x3c76c9,_0x331cdc,_0x5b9b75,_0x5a33ab),_0x20b067;}['markMultiRangeInsertion'](_0x2c749f,_0x581a2a='multi',_0x2031b6={}){const _0x4ba7c0=this['editor']['plugins']['get']('Users')['me'],_0x4e7c1a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x581a2a,'join');for(const _0x21ba59 of this['getSuggestions']())if(_0x21ba59['author']['id']==_0x4ba7c0['id']&&'insertion'==_0x21ba59['type']&&_0x21ba59['subType']==_0x581a2a&&Kt(_0x21ba59,_0x2031b6)&&(_0x4e7c1a(_0x21ba59['getRanges'](),_0x2c749f)||_0x4e7c1a(_0x2c749f,_0x21ba59['getRanges']()))){for(const _0x2a1c22 of _0x2c749f)_0x21ba59['addRange'](_0x2a1c22);return _0x21ba59;}for(const {suggestion:_0x2b8fa4,meta:_0x396759}of this['_findSuggestions'](_0x2c749f,'insertion')){if(!_0x396759['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x396759['containsRangeInObject'])continue;if(!Kt(_0x2b8fa4,_0x2031b6))continue;let _0x11013f=!0x0;for(const _0x4eff81 of _0x2b8fa4['getRanges']())for(const _0x598b1f of _0x2c749f)if(!_0x4eff81['containsRange'](_0x598b1f)){_0x11013f=!0x1;break;}if(_0x11013f)return _0x2b8fa4;}const _0x492237=_0x16938d(),_0xa5ddaf=_0x4ba7c0['id'],_0x4a3c46='insertion:'+_0x581a2a,_0x5229cb=this['_setSuggestionData']({'id':_0x492237,'type':_0x4a3c46,'createdAt':new Date(),'authorId':_0xa5ddaf,'attributes':_0x2031b6});for(const _0x5dce21 of _0x2c749f)this['_addSuggestionMarker'](_0x4a3c46,_0x492237,_0xa5ddaf,_0x5dce21,u['getMultiRangeId']());return _0x5229cb;}['markInlineFormat'](_0x15c32a,_0xd30a5e,_0x259d32=null,_0x2ec471={}){if(_0x259d32=_0x259d32||Ft(_0xd30a5e),_0x15c32a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xe4018b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x259d32,'accept');return this['forceDefaultExecution'](()=>_0xe4018b([_0x15c32a],_0xd30a5e,_0x2ec471)),null;}const _0x1e95f8=this['editor']['plugins']['get']('Users')['me'],_0x29165b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x53b230,meta:_0xbbbf6e}of this['_findSuggestions'](_0x15c32a,'insertion'))_0xbbbf6e['isOwn']&&!_0xbbbf6e['isInsideObject']&&_0x29165b['push'](..._0x53b230['getRanges']());}const _0x3c2eb8=function(_0x9e197f,_0x271672){const _0x4d6bbc=[];for(const _0x5badc3 of _0x271672){const _0x4bc31d=_0x9e197f['getIntersection'](_0x5badc3);_0x4bc31d&&_0x4d6bbc['push'](_0x4bc31d);}return _0x4d6bbc;}(_0x15c32a,_0x29165b),_0x41549a=function(_0x543e78,_0x3c8a08){const _0x2181ed=[_0x543e78];for(const _0x2f95cc of _0x3c8a08){let _0x2da891=0x0;for(;_0x2da891<_0x2181ed['length'];){const _0x59d418=_0x2181ed[_0x2da891]['getDifference'](_0x2f95cc);_0x2181ed['splice'](_0x2da891,0x1,..._0x59d418),_0x2da891+=_0x59d418['length'];}}return _0x2181ed;}(_0x15c32a,_0x29165b);_0x3c2eb8['length']&&this['_model']['change'](()=>{for(const _0x33b2bc of _0x3c2eb8){const _0x3b2cec=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x259d32,'accept');this['forceDefaultExecution'](()=>_0x3b2cec([_0x33b2bc],_0xd30a5e,_0x2ec471));}});for(const _0x5731dc of _0x41549a){let _0x51d1fb=null,_0x1ae2d3=_0x5731dc['start'],_0x4a51c2=_0x5731dc['end'];for(const {suggestion:_0x3d6f5f,meta:_0x5694db}of this['_findSuggestions'](_0x5731dc,'formatInline')){if(!_0x5694db['isOwn'])continue;if(_0x3d6f5f['subType']!=_0x259d32)continue;if(!Kt(_0x3d6f5f,_0x2ec471))continue;const _0x54cbf2=_0x3d6f5f['getFirstRange']();if(_0x54cbf2['containsRange'](_0x5731dc,!0x0))return null;_0x1ae2d3=_0x1ae2d3['isBefore'](_0x54cbf2['start'])?_0x1ae2d3:_0x54cbf2['start'],_0x4a51c2=_0x4a51c2['isAfter'](_0x54cbf2['end'])?_0x4a51c2:_0x54cbf2['end'],_0x51d1fb?_0x54cbf2['start']['isBefore'](_0x51d1fb['getFirstRange']()['start'])?(_0x51d1fb['removeMarkers'](),_0x51d1fb=_0x3d6f5f):_0x3d6f5f['removeMarkers']():_0x51d1fb=_0x3d6f5f;}const _0x23a581=this['_model']['createRange'](_0x1ae2d3,_0x4a51c2);if(_0x51d1fb)this['_setSuggestionRange'](_0x51d1fb,_0x23a581);else{const _0xbb8a20=_0x16938d(),_0x56898c=_0x1e95f8['id'];this['_setSuggestionData']({'id':_0xbb8a20,'type':'formatInline:'+_0x259d32,'data':_0xd30a5e,'createdAt':new Date(),'authorId':_0x56898c,'attributes':_0x2ec471}),this['_addSuggestionMarker']('formatInline:'+_0x259d32,_0xbb8a20,_0x56898c,_0x23a581);}}return null;}['markBlockFormat'](_0x354190,_0x105973,_0x69293b=[],_0x113c1d=null,_0x1bfcae={}){_0x105973['formatGroupId']||(_0x105973['formatGroupId']=_0x105973['commandName']),_0x105973['multipleBlocks']=_0x354190['is']('range'),_0x113c1d=_0x113c1d||Ft(_0x105973);const _0x57cb42=_0x69293b['map'](_0x5ad07b=>Ht(_0x5ad07b,this['_model'])),_0x4a6b24=_0x354190['is']('range')?_0x354190:Ht(_0x354190,this['_model']);if('never'===this['_trackFormatChanges']){const _0x275dad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x113c1d,'accept');return this['forceDefaultExecution'](()=>_0x275dad([_0x4a6b24],_0x105973,_0x1bfcae)),null;}_0x57cb42['push'](_0x4a6b24);let _0x4a7dad=!0x0;for(const _0x2a28a9 of _0x57cb42)if(!this['_rangeIsInLocalUserInsertion'](_0x2a28a9)){_0x4a7dad=!0x1;break;}if(_0x4a7dad&&'always'!==this['_trackFormatChanges']){const _0x241899=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x113c1d,'accept');return this['forceDefaultExecution'](()=>_0x241899([_0x4a6b24],_0x105973,_0x1bfcae)),null;}let _0x3b2efa=null,_0x29e14f=_0x4a6b24['start'],_0x4350f8=_0x4a6b24['end'];for(const {suggestion:_0x2e78ad,meta:_0x1a9c78}of this['_findSuggestions'](_0x4a6b24,'formatBlock')){if(!_0x1a9c78['isOwn'])continue;if(_0x1a9c78['isNextTo']||_0x1a9c78['containsRangeInObject']||_0x1a9c78['isInsideObject'])continue;if(_0x2e78ad['data']['formatGroupId']!=_0x105973['formatGroupId'])continue;if(!Kt(_0x2e78ad,_0x1bfcae))continue;const _0x379247=_0x2e78ad['getFirstRange']();if(_0x2e78ad['subType']==_0x113c1d){if(_0x379247['containsRange'](_0x4a6b24,!0x0))return null;_0x29e14f=_0x29e14f['isBefore'](_0x379247['start'])?_0x29e14f:_0x379247['start'],_0x4350f8=_0x4350f8['isAfter'](_0x379247['end'])?_0x4350f8:_0x379247['end'],_0x3b2efa?_0x379247['start']['isBefore'](_0x3b2efa['getFirstRange']()['start'])?(_0x3b2efa['removeMarkers'](),_0x3b2efa=_0x2e78ad):_0x2e78ad['removeMarkers']():_0x3b2efa=_0x2e78ad;}else{const _0xd55c6f=_0x4a6b24['getIntersection'](_0x379247);this['_cutOutSuggestionMarker'](_0x2e78ad,_0xd55c6f);}}const _0xca3b66=this['editor']['plugins']['get']('Users')['me'],_0x3ac678=_0x16938d(),_0x1d3f91=_0xca3b66['id'];if(_0x3b2efa)return this['_setSuggestionRange'](_0x3b2efa,this['_model']['createRange'](_0x29e14f,_0x4350f8)),_0x3b2efa;{const _0x447b13=this['_setSuggestionData']({'id':_0x3ac678,'type':'formatBlock:'+_0x113c1d,'data':_0x105973,'createdAt':new Date(),'authorId':_0x1d3f91,'attributes':_0x1bfcae});return this['_addSuggestionMarker']('formatBlock:'+_0x113c1d,_0x3ac678,_0x1d3f91,this['_model']['createRange'](_0x29e14f,_0x4350f8)),_0x447b13;}}['markMultiRangeBlockFormat'](_0x230e82,_0x5eac79,_0x4b1dd9=[],_0x4b3d30=null,_0xe2d1ef={}){_0x5eac79['formatGroupId']||(_0x5eac79['formatGroupId']=_0x5eac79['commandName']);const _0x43aea5=_0x230e82[0x0];_0x5eac79['multipleBlocks']=_0x43aea5['is']('range'),_0x4b3d30=_0x4b3d30||Ft(_0x5eac79);const _0x3ec362=_0x4b1dd9['map'](_0x205531=>Ht(_0x205531,this['_model'])),_0x274dd8=_0x43aea5['is']('range')?_0x230e82:_0x230e82['map'](_0x2b772a=>Ht(_0x2b772a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1a3b1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b3d30,'accept');return this['forceDefaultExecution'](()=>_0x1a3b1d(_0x274dd8,_0x5eac79,_0xe2d1ef)),null;}_0x3ec362['push'](..._0x274dd8);let _0x4d6796=!0x0;for(const _0x4ab897 of _0x3ec362)if(!this['_rangeIsInLocalUserInsertion'](_0x4ab897)){_0x4d6796=!0x1;break;}if(_0x4d6796&&'always'!==this['_trackFormatChanges']){const _0x31227b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b3d30,'accept');return this['forceDefaultExecution'](()=>_0x31227b(_0x274dd8,_0x5eac79,_0xe2d1ef)),null;}const _0xd63d93=this['editor']['plugins']['get']('Users')['me'];for(const _0x47bf2d of this['getSuggestions']()){if(_0x47bf2d['author']['id']!=_0xd63d93['id'])continue;if('formatBlock'!=_0x47bf2d['type']||_0x47bf2d['data']['formatGroupId']!=_0x5eac79['formatGroupId'])continue;if(!Kt(_0x47bf2d,_0xe2d1ef))continue;const _0x5bb13f=_0x47bf2d['subType']==_0x4b3d30;for(let _0x21574f=0x0;_0x21574f<_0x274dd8['length'];_0x21574f++){const _0x569e10=_0x274dd8[_0x21574f];for(const _0x1b5665 of _0x47bf2d['getMarkers']()){const _0x37a9ac=_0x1b5665['getRange']();if(_0x569e10['isEqual'](_0x37a9ac)){_0x5bb13f?(_0x274dd8['splice'](_0x21574f,0x1),_0x21574f--):_0x47bf2d['removeMarker'](_0x1b5665['name']);break;}}}}if(0x0==_0x274dd8['length'])return null;const _0x24351b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b3d30,'join');for(const _0x257104 of this['getSuggestions']())if(_0x257104['author']['id']==_0xd63d93['id']&&'formatBlock'==_0x257104['type']&&_0x257104['data']['formatGroupId']==_0x5eac79['formatGroupId']&&_0x257104['subType']==_0x4b3d30&&Kt(_0x257104,_0xe2d1ef)&&(_0x24351b(_0x257104['getRanges'](),_0x274dd8)||_0x24351b(_0x274dd8,_0x257104['getRanges']()))){for(const _0x4d2c2f of _0x274dd8)_0x257104['addRange'](_0x4d2c2f);return _0x257104;}const _0xd78263=_0x16938d(),_0x33e3cc=_0xd63d93['id'],_0x2da47f='formatBlock:'+_0x4b3d30,_0x18e929=this['_setSuggestionData']({'id':_0xd78263,'type':_0x2da47f,'data':_0x5eac79,'createdAt':new Date(),'authorId':_0x33e3cc,'attributes':_0xe2d1ef});for(const _0x5da9e6 of _0x274dd8)this['_addSuggestionMarker'](_0x2da47f,_0xd78263,_0x33e3cc,_0x5da9e6,u['getMultiRangeId']());return _0x18e929;}['markDeletion'](_0x1a0a8e,_0x2e6e0b=null,_0x438760={}){if(_0x1a0a8e['isCollapsed'])return null;const _0x2829d1=this['editor']['plugins']['get']('Users')['me'],_0x2a7751=new _0x3db890(_0x1a0a8e['start'],_0x1a0a8e['end']);for(const {suggestion:_0x16dba8,meta:_0x2d941e}of this['_findSuggestions'](_0x2a7751,'insertion'))if(_0x2d941e['isOwn']&&!_0x2d941e['isNextTo']){if(_0x16dba8['isMultiRange']){const _0x4d2d0a=_0x16dba8['getRanges']()['filter'](_0x4fe9cc=>'$graveyard'!=_0x4fe9cc['root']['rootName']);_0x4d2d0a['every'](_0x1dfdf5=>_0x2a7751['containsRange'](_0x1dfdf5,!0x0))&&_0x16dba8['discard']();if(_0x4d2d0a['some'](_0x626b04=>_0x626b04['containsRange'](_0x2a7751,!0x0))){const _0x10064f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e6e0b,'accept');return this['forceDefaultExecution'](()=>_0x10064f([_0x2a7751],null,_0x438760)),null;}}else{const _0x5e305d=_0x2a7751['getIntersection'](_0x16dba8['getFirstRange']());null!==_0x5e305d&&_0x16dba8['_onDiscard']([_0x5e305d],null,_0x438760);}}if(_0x2a7751['detach'](),_0x2a7751['isCollapsed']||'$graveyard'==_0x2a7751['root']['rootName'])return null;let _0x97403=null,_0x246fb9=_0x2a7751['start'],_0x3da63d=_0x2a7751['end'];const _0xc0a1d3=this['_findSuggestions'](_0x2a7751,'deletion');for(const {suggestion:_0xfd81ef,meta:_0x3b33be}of _0xc0a1d3){const _0x3b5714=this['_model']['createRange'](_0x246fb9,_0x3da63d);if(_0x3b33be['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3b33be['containsRangeInObject']&&!_0x3b33be['isInsideObject'])){if(_0xfd81ef['isMultiRange']){if(!Kt(_0xfd81ef,_0x438760))continue;let _0x5bdb5d=!0x0;for(const _0xafd261 of _0xfd81ef['getRanges']()){if(_0xafd261['containsRange'](_0x3b5714,!0x0))return _0xfd81ef;_0x3b5714['containsRange'](_0xafd261)||(_0x5bdb5d=!0x1);}_0x5bdb5d&&_0xfd81ef['discard']();}else{const _0x4de3af=_0xfd81ef['getFirstRange']();if(_0x4de3af['containsRange'](_0x3b5714,!0x0))return _0xfd81ef;if(!Kt(_0xfd81ef,_0x438760)){_0x3b5714['containsRange'](_0x4de3af)?_0xfd81ef['removeMarkers']():_0x4de3af['containsPosition'](_0x246fb9)?_0x246fb9=_0x4de3af['end']:_0x4de3af['containsPosition'](_0x3da63d)&&(_0x3da63d=_0x4de3af['start']);continue;}_0x246fb9=_0x246fb9['isBefore'](_0x4de3af['start'])?_0x246fb9:_0x4de3af['start'],_0x3da63d=_0x3da63d['isAfter'](_0x4de3af['end'])?_0x3da63d:_0x4de3af['end'],_0x438760=Object['assign']({},_0xfd81ef['attributes']),_0x97403?_0x4de3af['start']['isBefore'](_0x97403['getFirstRange']()['start'])?(_0x97403['removeMarkers'](),_0x97403=_0xfd81ef):_0xfd81ef['removeMarkers']():_0x97403=_0xfd81ef;}}}if(_0x97403)return this['_setSuggestionRange'](_0x97403,this['_model']['createRange'](_0x246fb9,_0x3da63d)),_0x97403;{const _0x9d0b34=_0x16938d(),_0x5f1c53=this['_model']['createRange'](_0x246fb9,_0x3da63d),_0x29947b=_0x2829d1['id'],_0x1edfeb=_0x2e6e0b?'deletion:'+_0x2e6e0b:'deletion',_0x5be154=this['_setSuggestionData']({'id':_0x9d0b34,'type':_0x1edfeb,'createdAt':new Date(),'authorId':_0x29947b,'attributes':_0x438760});return this['_addSuggestionMarker'](_0x1edfeb,_0x9d0b34,_0x29947b,_0x5f1c53),_0x5be154;}}['markMultiRangeDeletion'](_0x14c12a,_0x5a5cd2='multi',_0x1d4f1f={}){const _0x4d9d53=this['editor']['plugins']['get']('Users')['me'],_0x161d80=_0x14c12a['map'](_0x133e13=>new _0x3db890(_0x133e13['start'],_0x133e13['end'])),_0x5cfc9d=new Set();for(const {suggestion:_0x3f7dee,meta:_0x214d45}of this['_findSuggestions'](_0x161d80,'insertion'))_0x214d45['isOwn']&&!_0x214d45['isNextTo']&&_0x5cfc9d['add'](_0x3f7dee);for(const _0x3f513f of _0x5cfc9d)if(_0x3f513f['isMultiRange']){const _0x56fac7=_0x3f513f['getRanges']();(!_0x3f513f['attributes']||!_0x3f513f['attributes']['skipNestingCheck'])&&(_0x56fac7['every'](_0x178b73=>_0x161d80['some'](_0x284fd7=>_0x284fd7['containsRange'](_0x178b73,!0x0)))&&_0x3f513f['discard']());if(_0x161d80['every'](_0x386ced=>_0x56fac7['some'](_0x3e1c66=>_0x3e1c66['containsRange'](_0x386ced,!0x0)))){const _0x1de8cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a5cd2,'accept');return this['forceDefaultExecution'](()=>_0x1de8cf(_0x14c12a,null,_0x1d4f1f)),null;}}else{const _0x3ba665=_0x3f513f['getFirstRange']();_0x161d80['some'](_0x953919=>_0x953919['containsRange'](_0x3ba665,!0x0))&&_0x3f513f['discard']();if(_0x161d80['every'](_0x5165da=>_0x3ba665['containsRange'](_0x5165da,!0x0))){const _0x5788ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a5cd2,'accept');return this['forceDefaultExecution'](()=>_0x5788ee(_0x161d80,null,_0x1d4f1f)),null;}}const _0x2dd84f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a5cd2,'join');let _0x4eb7e2=null;for(const _0x1cd149 of this['getSuggestions']())if(_0x1cd149['author']['id']==_0x4d9d53['id']&&_0x1cd149['isInContent']&&'deletion'==_0x1cd149['type']&&_0x1cd149['subType']==_0x5a5cd2&&Kt(_0x1cd149,_0x1d4f1f)&&(_0x2dd84f(_0x1cd149['getRanges'](),_0x161d80)||_0x2dd84f(_0x161d80,_0x1cd149['getRanges']()))){if(_0x4eb7e2){if(_0x1cd149['commentThread']&&_0x1cd149['commentThread']['length'])continue;for(const _0x4b1eda of _0x1cd149['getRanges']())_0x4eb7e2['isIntersectingWithRange'](_0x4b1eda)||_0x4eb7e2['addRange'](_0x4b1eda);_0x1cd149['removeMarkers']();}else{_0x4eb7e2=_0x1cd149;for(const _0x1ca50d of _0x161d80)_0x1cd149['isIntersectingWithRange'](_0x1ca50d)||_0x1cd149['addRange'](_0x1ca50d);}}if(_0x4eb7e2)return _0x4eb7e2;_0x5cfc9d['clear']();for(const {suggestion:_0x551cbc,meta:_0x177ff9}of this['_findSuggestions'](_0x161d80,'deletion'))_0x177ff9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x177ff9['containsRangeInObject']&&!_0x177ff9['isInsideObject'])&&Kt(_0x551cbc,_0x1d4f1f)&&_0x5cfc9d['add'](_0x551cbc);for(const _0x37411f of _0x5cfc9d){const _0xa4f67d=_0x37411f['getRanges']();if(!_0x1d4f1f||!_0x1d4f1f['skipNestingCheck']){if(_0x161d80['every'](_0x321122=>_0xa4f67d['some'](_0x31398a=>_0x31398a['containsRange'](_0x321122,!0x0))))return _0x37411f;}(!_0x37411f['attributes']||!_0x37411f['attributes']['skipNestingCheck'])&&(_0xa4f67d['every'](_0x20911e=>_0x161d80['some'](_0x4f714f=>_0x4f714f['containsRange'](_0x20911e,!0x0)))&&_0x37411f['discard']());}const _0x253f6a=_0x16938d(),_0x46ce8c=_0x4d9d53['id'],_0x17865a='deletion:'+_0x5a5cd2,_0x3e0307=this['_setSuggestionData']({'id':_0x253f6a,'type':_0x17865a,'createdAt':new Date(),'authorId':_0x46ce8c,'attributes':_0x1d4f1f});for(const _0x2ede95 of _0x161d80)_0x2ede95['detach'](),_0x2ede95['isCollapsed']||'$graveyard'==_0x2ede95['root']['rootName']||this['_addSuggestionMarker'](_0x17865a,_0x253f6a,_0x46ce8c,_0x2ede95,u['getMultiRangeId']());return _0x3e0307;}['markAttributeChange'](_0x41a9ac,_0x3e2693,_0x37f5fa,_0x1970b7,_0x449cd6){if(_0x41a9ac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x17d718=this['editor']['plugins']['get']('Users')['me']['id'],_0x3cf69b=Array['from'](this['_suggestions']['values']())['filter'](_0x3f01cd=>'attribute'==_0x3f01cd['type']&&_0x3f01cd['data']['key']==_0x3e2693&&_0x3f01cd['isIntersectingWithRange'](_0x41a9ac));if('default'===this['_trackFormatChanges']){const _0x34cc06=this['_findSuggestions'](_0x41a9ac,'insertion')['filter'](({meta:_0x338b6b})=>_0x338b6b['isOwn']&&!_0x338b6b['isInsideObject']&&!_0x338b6b['isNextTo'])['map'](({suggestion:_0x47ff94})=>_0x47ff94);_0x3cf69b['unshift'](..._0x34cc06);}const _0x4e1ad0=new Map([[_0x41a9ac,_0x37f5fa]]);for(const _0x182289 of _0x3cf69b){const _0x4927cd='attribute'==_0x182289['type']?_0x182289['data']['oldValue']:void 0x0,_0x1d8a83=_0x182289['getFirstRange'](),_0x2079bd=Array['from'](_0x4e1ad0['keys']())['find'](_0x47199f=>_0x47199f['isIntersecting'](_0x1d8a83));if(!_0x2079bd)continue;const _0xad3c91=_0x2079bd['getDifference'](_0x1d8a83);this['_isBlockAttribute'](_0x3e2693)&&'insertion'==_0x182289['type']&&0x0!=_0xad3c91['length']||(_0x4e1ad0['delete'](_0x2079bd),_0xad3c91['forEach'](_0x2c428e=>{_0x4e1ad0['set'](_0x2c428e,_0x37f5fa);}),'insertion'!=_0x182289['type']&&_0x4927cd!=_0x1970b7&&_0x4e1ad0['set'](_0x2079bd['getIntersection'](_0x1d8a83),_0x4927cd));}const _0x10d2cd=[];for(const [_0x45aaed,_0x584f1f]of _0x4e1ad0){const _0x1e4cdf=_0x16938d(),_0x315026={'key':_0x3e2693,'oldValue':_0x584f1f,'newValue':_0x1970b7};_0x3e2693['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':_0x3e2693});const _0x63070=('attribute:'+(_0x3e2693+'|'+Ft({'newValue':_0x1970b7})))['substring'](0x0,0x3c),_0x175c62=this['_setSuggestionData']({'id':_0x1e4cdf,'type':_0x63070,'data':_0x315026,'createdAt':new Date(),'authorId':_0x17d718,'attributes':_0x449cd6});_0x10d2cd['push'](_0x175c62),this['_addSuggestionMarker'](_0x63070,_0x1e4cdf,_0x17d718,_0x45aaed);}return _0x10d2cd;}['enableDefaultAttributesIntegration'](_0x5e9850){this['enableCommand'](_0x5e9850,(_0xe27568,..._0x30dd49)=>{this['_recordAttributeChanges'](()=>{_0xe27568(..._0x30dd49);});});}['registerBlockAttribute'](_0x8098df){this['_blockAttributeKeys']['add'](_0x8098df);}['registerInlineAttribute'](_0x4f544b){this['_inlineAttributeKeys']['add'](_0x4f544b);}['_getAttributeKey'](_0x28e58e){return'attribute'==_0x28e58e['type']?_0x28e58e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3e389d,_0x54ae7f){const _0x4422f8=_0x3e389d['getFirstMarker']();this['_model']['change'](_0x108591=>{_0x108591['updateMarker'](_0x4422f8,{'range':_0x54ae7f});});}['_addThreadToSuggestion'](_0x45a4aa){const _0x508939=_0x45a4aa['id'],_0x3a06fe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x508939)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3a06fe,'threadId':_0x508939,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f869e=this['_commentsRepository']['getCommentThread'](_0x508939);_0x1f869e['unbind']('isRemovable'),_0x1f869e['isRemovable']=!0x1,_0x45a4aa['commentThread']=_0x1f869e;}['_checkSuggestionCorrectness'](_0x3c84c5,_0x209b15,_0x2543ae,_0x34e126){if(_0x3c84c5['type']!=_0x209b15||_0x3c84c5['subType']!=_0x2543ae||_0x3c84c5['creator']['id']!=_0x34e126)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x32ff2c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3a0445,_0x42883a){const _0x3d3395=_0x3a0445['getFirstRange']();if(_0x42883a['isEqual'](_0x3d3395))_0x3a0445['removeMarkers']();else{if(_0x3d3395['containsRange'](_0x42883a)){const _0x20d61d=this['_model']['createPositionAt'](_0x42883a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a0445,this['_model']['createRange'](_0x3d3395['start'],_0x20d61d));const _0x14e488=_0x16938d(),_0x190b22=_0x3a0445['creator']['id'],_0x142c3d=_0x3a0445['type']+':'+_0x3a0445['subType'];this['_setSuggestionData']({'id':_0x14e488,'type':_0x142c3d,'createdAt':new Date(),'authorId':_0x190b22,'data':_0x3a0445['data'],'attributes':_0x3a0445['attributes']});const _0x2c5753=this['_model']['createPositionAt'](_0x42883a['end']['parent'],'after'),_0x3ee50c=this['_model']['createRange'](_0x2c5753,_0x3d3395['end']);this['_addSuggestionMarker'](_0x142c3d,_0x14e488,_0x190b22,_0x3ee50c);}else{if(_0x3d3395['containsPosition'](_0x42883a['start'])){const _0x14a318=this['_model']['createPositionAt'](_0x42883a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a0445,this['_model']['createRange'](_0x3d3395['start'],_0x14a318));}else{const _0x5c73fd=this['_model']['createPositionAt'](_0x42883a['end']['parent'],'after');this['_setSuggestionRange'](_0x3a0445,this['_model']['createRange'](_0x5c73fd,_0x3d3395['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2bd7e6){for(const {suggestion:_0x4e5445,meta:_0x548f81}of this['_findSuggestions'](_0x2bd7e6,'insertion')){if(!_0x548f81['isOwn'])continue;const _0x3d8cc7=_0x4e5445['getRanges']();for(const _0x297f0a of _0x3d8cc7)if(!_0x2bd7e6['getDifference'](_0x297f0a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4429dd){const _0x2122e2=this['editor']['plugins']['get']('Users')['getUser'](_0x4429dd);if(!_0x2122e2)throw new _0x32ff2c('track-changes-user-not-found',this);return _0x2122e2;}['_getExternalAuthor'](_0x2790c6){const _0x1227b9=this['editor']['plugins']['get']('Users'),_0x33c1ea=_0x13f732('external:'+_0x2790c6),_0x1ee330=_0x1227b9['getUser'](_0x33c1ea);return _0x1ee330||_0x1227b9['addUser']({'id':_0x33c1ea,'name':_0x2790c6});}['_createSuggestion'](_0x136e92,_0x2ec236,_0x34d3d5,_0x9000f8,_0x11d80a){const _0x3b6037=this['_getAuthorFromId'](_0x9000f8),_0x19885c=this['_suggestionFactory']['buildSuggestion'](_0x136e92,_0x2ec236,_0x34d3d5,_0x3b6037,_0x11d80a,_0x214d14=>{this['_updateSuggestionData'](_0x34d3d5,{'attributes':_0x214d14});const _0x67550e=this['getSuggestion'](_0x34d3d5);this['_joinWithAdjacentSuggestions'](new Set([_0x67550e])),this['_refreshSuggestionsChain'](new Set([_0x67550e]));});return this['listenTo'](_0x19885c,'accept',()=>{this['_updateSuggestionData'](_0x34d3d5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x19885c,'discard',()=>{this['_updateSuggestionData'](_0x34d3d5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x34d3d5,_0x19885c),this['_suggestionState']['set'](_0x19885c,'notReady'),_0x19885c;}['_splitMarkerName'](_0x3a730c){const _0x385485=_0x3a730c['split'](':');return{'group':_0x385485[0x0],'type':_0x385485[0x1],'subType':_0x385485['length']>=0x5?_0x385485[0x2]:null,'id':_0x385485['length']<0x5?_0x385485[0x2]:_0x385485[0x3],'authorId':_0x385485['length']<0x5?_0x385485[0x3]:_0x385485[0x4],'markerCount':0x6==_0x385485['length']?_0x385485[0x5]:null};}['_breakSuggestionMarker'](_0x108cfa,_0x452150,_0x2440a0){const _0x2bca53=_0x108cfa['getFirstRange'](),_0x1a77c4=_0x2bca53['start'],_0x274da2=_0x2bca53['end'];this['_setSuggestionRange'](_0x108cfa,this['_model']['createRange'](_0x1a77c4,_0x452150));const _0x170b9f=_0x16938d(),_0x189d57=_0x108cfa['creator']['id'],_0x45f756=_0x108cfa['type']+(_0x108cfa['subType']?':'+_0x108cfa['subType']:'');this['_setSuggestionData']({'id':_0x170b9f,'type':_0x45f756,'createdAt':new Date(),'authorId':_0x189d57,'originalSuggestionId':_0x108cfa['id'],'attributes':_0x108cfa['attributes'],'data':_0x108cfa['data']});const _0x3ca006=this['_getAttributeKey'](_0x108cfa);('formatBlock'==_0x108cfa['type']||_0x3ca006&&this['_isBlockAttribute'](_0x3ca006))&&(_0x2440a0=this['_model']['createPositionBefore'](_0x2440a0['parent'])),this['_addSuggestionMarker'](_0x45f756,_0x170b9f,_0x189d57,this['_model']['createRange'](_0x2440a0,_0x274da2));}['_findSuggestions'](_0x48839d,_0x56d9f0=null){const _0x41492a=[],_0x56e510=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x48839d)||(_0x48839d=[_0x48839d]);for(const _0x4b050 of this['getSuggestions']()){if(!_0x4b050['isInContent'])continue;if(_0x56d9f0&&_0x4b050['type']!=_0x56d9f0)continue;let _0x1116e3=!0x1;for(const _0xdc1ac2 of _0x4b050['getRanges']()){for(const _0x5cf39c of _0x48839d){const _0x562684=_0x5cf39c['start']['isEqual'](_0xdc1ac2['end'])||_0x5cf39c['end']['isEqual'](_0xdc1ac2['start']);if(_0x562684||_0x5cf39c['getIntersection'](_0xdc1ac2)){const _0x46459b=_0x5cf39c['containsRange'](_0xdc1ac2)&&Vt(this['_model']['schema'],_0xdc1ac2['start'],_0x5cf39c),_0x453435=_0xdc1ac2['containsRange'](_0x5cf39c)&&Vt(this['_model']['schema'],_0x5cf39c['start'],_0xdc1ac2);_0x41492a['push']({'suggestion':_0x4b050,'meta':{'isOwn':_0x56e510==_0x4b050['author'],'isNextTo':_0x562684,'isInsideObject':_0x46459b,'containsRangeInObject':_0x453435}}),_0x1116e3=!0x0;break;}}if(_0x1116e3)break;}}return _0x41492a;}['_addSuggestionMarker'](_0x4051d3,_0x3f093a,_0xf14ad9,_0x135caf,_0x3e9d31){this['_model']['change'](_0x36aedd=>{let _0x2ff019='suggestion:'+_0x4051d3+':'+_0x3f093a+':'+_0xf14ad9;_0x3e9d31&&(_0x2ff019=_0x2ff019+':'+_0x3e9d31),_0x36aedd['addMarker'](_0x2ff019,{'range':_0x135caf,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2a8515){const _0x4d752d=_0x2a8515['previous'],_0xc99b16=_0x2a8515['next'];_0x2a8515['previous']=null,_0x2a8515['next']=null,null!=_0x4d752d&&_0x4d752d['next']==_0x2a8515&&(_0x4d752d['next']=_0xc99b16),null!=_0xc99b16&&_0xc99b16['previous']==_0x2a8515&&(_0xc99b16['previous']=_0x4d752d),'ready'==this['_suggestionState']['get'](_0x2a8515)&&(this['_suggestionState']['set'](_0x2a8515,'removed'),this['fire']('suggestionUnloaded',_0x2a8515,_0x4d752d,_0xc99b16));}['_setSuggestionData'](_0x19a2ae){const _0x43f55a=_0x19a2ae['id'],_0x3b1f6c=this['addSuggestionData'](_0x19a2ae);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2cf3f8=this['editor']['plugins']['get']('PendingActions'),_0x91d942=_0x3b1f6c['hasComments'],_0x2912cb=_0x3b1f6c['subType']?_0x3b1f6c['type']+':'+_0x3b1f6c['subType']:_0x3b1f6c['type'],_0xd42b13=this['editor']['locale'],_0x413b23=_0x2cf3f8['add'](o(_0xd42b13,'PENDING_ACTION_SUGGESTION')),_0x1e062e={'id':_0x43f55a,'type':_0x2912cb,'hasComments':_0x91d942,'data':_0x19a2ae['data']||null,'originalSuggestionId':_0x19a2ae['originalSuggestionId']||null,'attributes':_0x3b1f6c['attributes']};this['_adapter']['addSuggestion'](_0x1e062e)['then'](_0x287eb5=>{_0x3b1f6c['_saved']=!0x0,_0x2cf3f8['remove'](_0x413b23),_0x287eb5&&_0x287eb5['createdAt']&&(this['_suggestions']['get'](_0x43f55a)['createdAt']=_0x287eb5['createdAt']);})['catch'](_0xbbdd97=>{throw _0x2d48d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b1f6c['discard']();}),_0x3b1f6c['stopListening'](),this['_suggestions']['delete'](_0x3b1f6c['id']),this['_suggestionState']['delete'](_0x3b1f6c),_0xbbdd97;});}return _0x3b1f6c;}['_isBlockAttribute'](_0x32a4bd){return this['_blockAttributeKeys']['has'](_0x32a4bd);}['_updateSuggestionData'](_0x485a18,_0xfad6d1){const _0x432139=this['editor']['plugins']['get']('PendingActions'),_0x102a8f=this['getSuggestion'](_0x485a18);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x102a8f['_saved']){const _0x9264a3=_0x432139['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x485a18,_0xfad6d1)['then'](()=>{_0x432139['remove'](_0x9264a3);});}else _0x102a8f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x485a18,_0xfad6d1);});}}['_getSuggestionData'](_0x3238c9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x32ff2c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3238c9);}['_handleNewSuggestionMarker'](_0xce8fc8){const {id:_0x414af2,type:_0x5750e7,subType:_0x2b4b08,authorId:_0x19a976}=this['_splitMarkerName'](_0xce8fc8),_0x3152da=this['_suggestions']['get'](_0x414af2)||this['_createSuggestion'](_0x5750e7,_0x2b4b08,_0x414af2,_0x19a976,{});switch(this['_checkSuggestionCorrectness'](_0x3152da,_0x5750e7,_0x2b4b08,_0x19a976),this['_suggestionState']['get'](_0x3152da)){case'notReady':this['_getSuggestionData'](_0x414af2)['then'](_0x510400=>{let _0x5d88ad=Promise['resolve']();_0x510400['hasComments']&&(_0x5d88ad=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x414af2})),_0x5d88ad['then'](()=>{this['addSuggestionData'](_0x510400)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3152da,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x414af2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3152da,'ready'),this['fire']('suggestionLoaded',_0x3152da);break;case'ready':this['fire']('suggestionChanged',_0x3152da);}return _0x3152da['addMarkerName'](_0xce8fc8),_0x3152da;}['_refreshSuggestionsChain'](_0x50846){const _0x68bb93=Array['from'](_0x50846),_0x1fe4ca=_0x68bb93['filter'](_0x4bd41b=>'attribute'==_0x4bd41b['type']);this['_refreshAttributeSuggestionsChain'](_0x1fe4ca);const _0xae8320=_0x68bb93['filter'](_0x2a56b0=>!_0x2a56b0['isMultiRange']&&'attribute'!=_0x2a56b0['type']),_0x1d8e89=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7b4b2a=>!_0x7b4b2a['isMultiRange']&&'attribute'!=_0x7b4b2a['type']),_0x12cafe=_0x1d8e89['filter'](_0x2ae686=>!_0x50846['has'](_0x2ae686)),_0x1e2098=new Map(_0x1d8e89['map'](_0x7e34e3=>[_0x7e34e3,this['_suggestionFactory']['getSuggestionCallback'](_0x7e34e3['type'],_0x7e34e3['subType'],'chain')])),_0x458fa3=new Map(_0x1d8e89['map'](_0x4caea1=>[_0x4caea1,_0x4caea1['getFirstRange']()])),_0x3a7a0e=new Set(),_0x3d390a=new Set();for(let _0x287f8e=0x0;_0x287f8e<_0xae8320['length'];_0x287f8e++)_0x11c275(_0xae8320[_0x287f8e],_0xae8320,_0x287f8e+0x1);for(let _0xd1a4f8=0x0;_0xd1a4f8<_0xae8320['length'];_0xd1a4f8++)_0x11c275(_0xae8320[_0xd1a4f8],_0x12cafe,0x0);const _0x57b682=new Set();for(let _0x11804a=0x0;_0x11804a<_0xae8320['length'];_0x11804a++){const _0xdd9145=_0xae8320[_0x11804a];!_0x3d390a['has'](_0xdd9145)&&_0xdd9145['previous']&&(_0x57b682['add'](_0xdd9145['previous']),_0xdd9145['previous']['next']===_0xdd9145&&(_0xdd9145['previous']['next']=null),_0xdd9145['previous']=null),!_0x3a7a0e['has'](_0xdd9145)&&_0xdd9145['next']&&(_0x57b682['add'](_0xdd9145['next']),_0xdd9145['next']['previous']===_0xdd9145&&(_0xdd9145['next']['previous']=null),_0xdd9145['next']=null);}function _0x11c275(_0x3e44d6,_0x14069d,_0xc352aa){for(let _0x158f51=_0xc352aa;_0x158f51<_0x14069d['length'];_0x158f51++){const _0x1776eb=_0x2cee63(_0x3e44d6,_0x14069d[_0x158f51]);_0x1776eb&&(_0x1776eb[0x0]['next']=_0x1776eb[0x1],_0x1776eb[0x1]['previous']=_0x1776eb[0x0],_0x3a7a0e['add'](_0x1776eb[0x0]),_0x3d390a['add'](_0x1776eb[0x1]));}}function _0x2cee63(_0x493334,_0x110966){if(_0x493334['author']['id']!==_0x110966['author']['id'])return null;const _0x5d2e72=_0x1e2098['get'](_0x493334)(_0x493334,_0x110966,_0x458fa3['get'](_0x493334),_0x458fa3['get'](_0x110966));if(!_0x5d2e72)return null;return _0x1e2098['get'](_0x110966)(_0x493334,_0x110966,_0x458fa3['get'](_0x493334),_0x458fa3['get'](_0x110966))?_0x5d2e72[0x1]['commentThread']&&_0x5d2e72[0x1]['commentThread']['length']?null:_0x5d2e72:null;}_0x57b682['size']&&this['_refreshSuggestionsChain'](_0x57b682);}['_refreshAttributeSuggestionsChain'](_0x3c77e7){if(0x0==_0x3c77e7['length'])return;const _0x12769f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22c4f6=>'attribute'==_0x22c4f6['type']&&_0x22c4f6['_isDataLoaded']),_0x2331f3=[],_0x3dbbc4=new Map();for(const _0x451932 of _0x12769f){const _0x1d2e73=_0x13f732(_0x451932['attributes']);_0x3dbbc4['has'](_0x1d2e73)||(_0x3dbbc4['set'](_0x1d2e73,_0x2331f3['length']),_0x2331f3['push']([]));const _0xa07937=_0x3dbbc4['get'](_0x1d2e73);_0x2331f3[_0xa07937]['push'](_0x451932);}!(function(){_0x2331f3['sort']((_0x31073b,_0x23e158)=>{const _0x66517=_0x31073b[0x0]['createdAt'],_0x4bdafb=_0x23e158[0x0]['createdAt'];return _0x66517==_0x4bdafb?_0x31073b[0x0]['attributes']['groupId']<_0x23e158[0x0]['attributes']['groupId']?-0x1:0x1:_0x66517<_0x4bdafb?-0x1:0x1;});for(const _0x1ec6a5 of _0x2331f3)_0x1ec6a5['sort']((_0x222249,_0x46b73a)=>_0x222249['id']<_0x46b73a['id']?-0x1:0x1);}());for(let _0x51460f=0x0;_0x51460f<_0x2331f3['length'];_0x51460f++){if(0x0==_0x2331f3[_0x51460f]['length'])continue;const _0x28a47b=[];for(let _0x40125b=_0x51460f+0x1;_0x40125b<_0x2331f3['length'];_0x40125b++)0x0!=_0x2331f3[_0x40125b]['length']&&_0x5bf669(_0x2331f3[_0x51460f],_0x2331f3[_0x40125b])&&_0x28a47b['push'](_0x40125b);for(const _0x5cbc3f of _0x28a47b)_0x2331f3[_0x51460f]=_0x2331f3[_0x51460f]['concat'](_0x2331f3[_0x5cbc3f]),_0x2331f3[_0x5cbc3f]=[];}for(const _0x564c4c of _0x2331f3)for(let _0x3ef009=0x0;_0x3ef009<_0x564c4c['length'];_0x3ef009++){const _0xbb46d3=_0x564c4c[_0x3ef009+0x1]||null;_0x564c4c[_0x3ef009]['next']!==_0xbb46d3&&(_0x564c4c[_0x3ef009]['next']=_0xbb46d3);}for(const _0x34f691 of _0x2331f3)for(let _0x4d6815=0x0;_0x4d6815<_0x34f691['length'];_0x4d6815++){const _0x3e3ca6=_0x34f691[_0x4d6815-0x1]||null;_0x34f691[_0x4d6815]['previous']!==_0x3e3ca6&&(_0x34f691[_0x4d6815]['previous']=_0x3e3ca6);}function _0x5bf669(_0x38f1e0,_0xb34fb9){if(_0x38f1e0[0x0]['attributes']['groupId']!==_0xb34fb9[0x0]['attributes']['groupId']&&_0x38f1e0[0x0]['author']!==_0xb34fb9[0x0]['author'])return!0x1;if(!function(_0x3f6d58,_0x1f31c7){if(!_0x3f6d58['hasComments']&&!_0x1f31c7['hasComments'])return!0x0;if(_0x3f6d58['hasComments']&&_0x1f31c7['hasComments'])return!0x1;if(_0x3f6d58['hasComments']&&_0x1f31c7['createdAt']<_0x3f6d58['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1f31c7['hasComments']&&_0x3f6d58['createdAt']<_0x1f31c7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x38f1e0[0x0],_0xb34fb9[0x0]))return!0x1;const _0x2f9176=Et(_0x38f1e0[0x0]['attributes'],'groupId'),_0x5671b7=Et(_0xb34fb9[0x0]['attributes'],'groupId');if(!_0x3def7b(_0x2f9176,_0x5671b7))return!0x1;return!!_0x38f1e0['every'](_0x395e48=>_0xb34fb9['some'](_0xb2cddf=>_0x395e48['getFirstRange']()['isEqual'](_0xb2cddf['getFirstRange']())))&&_0xb34fb9['every'](_0x48d067=>_0x38f1e0['some'](_0x271a27=>_0x48d067['getFirstRange']()['isEqual'](_0x271a27['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x49a2e4){const _0x29d941=Array['from'](_0x49a2e4),_0x51271c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a0bc6=_0x51271c['filter'](_0x5b9f49=>!_0x49a2e4['has'](_0x5b9f49)),_0x43d89f=new Map(_0x29d941['map'](_0x169857=>[_0x169857,this['_suggestionFactory']['getSuggestionCallback'](_0x169857['type'],_0x169857['subType'],'join')])),_0x11ec57=new Map(_0x51271c['map'](_0x554e3d=>[_0x554e3d,_0x554e3d['getRanges']()]));for(let _0x10e1a3=0x0;_0x10e1a3<_0x29d941['length'];_0x10e1a3++){if(_0x4c86d1(this,_0x29d941[_0x10e1a3],_0x29d941,_0x10e1a3+0x1))return!0x0;}for(let _0x4040bc=0x0;_0x4040bc<_0x29d941['length'];_0x4040bc++){if(_0x4c86d1(this,_0x29d941[_0x4040bc],_0x5a0bc6,0x0))return!0x0;}return!0x1;function _0x4c86d1(_0x54edec,_0x4dade,_0x4792bd,_0x36212b){for(let _0x10ff7b=_0x36212b;_0x10ff7b<_0x4792bd['length'];_0x10ff7b++){const _0x37eba=_0x4792bd[_0x10ff7b];if(_0x37eba['type']!==_0x4dade['type']||_0x37eba['author']['id']!==_0x4dade['author']['id']||_0x37eba['subType']!==_0x4dade['subType'])continue;if(!zt(_0x4dade,_0x37eba))continue;if('attribute'==_0x4dade['type']&&_0x4dade['data']['oldValue']!=_0x37eba['data']['oldValue'])continue;if('attribute'==_0x4dade['type']&&_0x54edec['_isBlockAttribute'](_0x4dade['data']['key']))continue;if('formatBlock'==_0x4dade['type']){const _0x4f0b1c=_0x54edec['editor']['model'],_0xab5c8d=_0x4dade['getContainedElement']();if(_0xab5c8d&&(_0x4f0b1c['schema']['isObject'](_0xab5c8d)||_0x4f0b1c['schema']['isLimit'](_0xab5c8d)))continue;}const _0xa18767=_0x43d89f['get'](_0x4dade),_0x3e2db7=_0x11ec57['get'](_0x4dade),_0x21e069=_0x11ec57['get'](_0x37eba),_0x51415c=_0x4dade['commentThread']&&_0x4dade['commentThread']['length'],_0x6173c9=_0x37eba['commentThread']&&_0x37eba['commentThread']['length'];if(!_0x51415c&&_0xa18767(_0x21e069,_0x3e2db7))return _0x54edec['_joinSuggestions'](_0x37eba,_0x4dade),_0x11ec57['delete'](_0x4dade),!0x0;if(!_0x6173c9&&_0xa18767(_0x3e2db7,_0x21e069))return _0x54edec['_joinSuggestions'](_0x4dade,_0x37eba),_0x11ec57['delete'](_0x37eba),!0x0;}return!0x1;}}['_joinSuggestions'](_0x578261,_0x2a0d2d){if(_0x578261['isMultiRange']){for(const _0x4186b9 of _0x2a0d2d['getRanges']())_0x578261['addRange'](_0x4186b9);}else{const _0x2620d5=_0x2a0d2d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x578261,this['_model']['createRange'](_0x578261['getFirstRange']()['start'],_0x2620d5));}_0x2a0d2d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x288ab5,_0xdafd47,_0x587660){const _0x445b7e=_0x288ab5['startsWith']('format')||_0x288ab5['startsWith']('attribute')?'FORMATTING':_0x288ab5['toUpperCase']();return o(this['editor']['locale'],_0xdafd47+'_'+_0x445b7e+'_SUGGESTION_ANNOUNCEMENT',_0x587660);}['_initAriaMarkerChangeAnnouncements'](){const _0x519166=this['editor'];if(!_0x519166['ui'])return;const {ariaLiveAnnouncer:_0x53e4c4}=_0x519166['ui'];_0x18f79f(this['_model'],({left:_0x22aab0,entered:_0x540be8})=>{for(const _0x2689ee of _0x22aab0){const {group:_0x28cbec,type:_0x39a95b}=this['_splitMarkerName'](_0x2689ee['name']);if('suggestion'===_0x28cbec){_0x53e4c4['announce'](this['_getMarkerAnnouncementText'](_0x39a95b,'LEAVE'));break;}}for(const _0x2cb638 of _0x540be8){const {group:_0x43ffcc,type:_0x5e04ea}=this['_splitMarkerName'](_0x2cb638['name']);if('suggestion'===_0x43ffcc){_0x53e4c4['announce'](this['_getMarkerAnnouncementText'](_0x5e04ea,'ENTER',_0xb702e9(_0x9bcceb)));break;}}});}['_processAttributeChanges'](_0x12fa9d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5e0ac5=this['editor'],_0x186f2f=_0x5e0ac5['model']['document']['differ']['getChanges']();if(0x0==_0x186f2f['length'])return!0x1;const _0x5d769f=[],_0x70faff=_0x186f2f['filter'](_0x1915b8=>'attribute'==_0x1915b8['type']),_0x5cbbf7=_0x186f2f['filter'](_0x441fa2=>'insert'==_0x441fa2['type']&&'$text'!=_0x441fa2['name']),_0x4c177c=_0x186f2f['filter'](_0x384e93=>'remove'==_0x384e93['type']&&'$text'!=_0x384e93['name']);for(const _0x4be9c7 of _0x70faff)_0x5d769f['push']({'key':_0x4be9c7['attributeKey'],'newValue':_0x4be9c7['attributeNewValue'],'oldValue':_0x4be9c7['attributeOldValue'],'range':Jt(_0x4be9c7['range'],_0x5e0ac5['model'])});for(const _0x3f69ea of _0x5cbbf7){const _0x3877b5=_0x4c177c['find'](_0x5e6f8f=>_0x5e6f8f['position']['isEqual'](_0x3f69ea['position']));_0x3877b5&&_0x5d769f['push']({'key':m,'newValue':_0x3f69ea['name'],'oldValue':_0x3877b5['name'],'range':_0x5e0ac5['model']['createRangeOn'](_0x3f69ea['position']['nodeAfter'])});}return 0x0!=_0x5d769f['length']&&this['_reduceExistingSuggestions'](_0x12fa9d,_0x5d769f);}['_processAttributeSuggestions'](_0x31037e){let _0x223443=!0x1;const _0x496547=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e7259=>_0x1e7259['data']['newRange']&&_0x1e7259['name']['startsWith']('suggestion:attribute:'));for(const _0x5507c1 of _0x496547){const {subType:_0x2f3a23,id:_0x4f92f5}=this['_splitMarkerName'](_0x5507c1['name']),_0x2d009f=_0x2f3a23['split']('|')[0x0];for(const _0x524dcd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x524dcd['id']!=_0x4f92f5&&'attribute'==_0x524dcd['type']&&_0x524dcd['data']&&_0x524dcd['data']['key']==_0x2d009f&&_0x524dcd['getFirstRange']()['isIntersecting'](_0x5507c1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x524dcd,_0x5507c1['data']['newRange'],_0x31037e),_0x223443=!0x0);}return _0x223443;}['_recordAttributeChanges'](_0x17d8b4){this['_recordAttributeSuggestions']=!0x0,_0x17d8b4();}['_isRegisteredAttribute'](_0x5e3547){const _0x52c1eb=this['_isBlockAttribute'](_0x5e3547),_0x38c043=this['_inlineAttributeKeys']['has'](_0x5e3547);return _0x52c1eb||_0x38c043;}['_reduceExistingSuggestions'](_0x209b11,_0x492eb4){if(0x0==_0x492eb4['length'])return!0x1;let _0x31cbb2=!0x1;for(const _0x3d17f3 of _0x492eb4){const _0x3834a2=this['_findSuggestions'](_0x3d17f3['range'],'attribute')['filter'](_0xe69172=>!_0xe69172['meta']['isNextTo'])['map'](_0x54d987=>_0x54d987['suggestion']),_0x20a15=_0x13f732({'newValue':_0x3d17f3['newValue']});_0x3834a2['filter'](_0x308fda=>{const [_0x23cc28,_0x5643cd]=_0x308fda['subType']['split']('|');return _0x23cc28==_0x3d17f3['key']&&_0x5643cd!=_0x20a15;})['forEach'](_0x766f2e=>{this['_reduceSuggestionAttributeRange'](_0x766f2e,_0x3d17f3['range'],_0x209b11),_0x31cbb2=!0x0;});}return _0x31cbb2;}['_reduceSuggestionAttributeRange'](_0x531a3c,_0xdc7d5f,_0x3dec91){const _0x5ed3ad=_0x531a3c['getFirstRange']()['getDifference'](_0xdc7d5f);0x0!==_0x5ed3ad['length']?0x1!==_0x5ed3ad['length']?this['_breakSuggestionMarker'](_0x531a3c,_0xdc7d5f['start'],_0xdc7d5f['end']):this['_setSuggestionRange'](_0x531a3c,_0x5ed3ad[0x0]):_0x3dec91['removeMarker'](_0x531a3c['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2d27fa){this['_editor']=_0x2d27fa,this['_model']=_0x2d27fa['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x20ca39,_0x175d27,_0xda29bb,_0x5c9849,_0x18455b,_0x51b9ed){return new u(this['_model'],{'type':_0x20ca39,'subType':_0x175d27,'id':_0xda29bb,'author':_0x5c9849,'creator':_0x5c9849,'attributes':_0x18455b,'onAttributesChange':_0x51b9ed,'onAccept':(..._0x595ea8)=>this['getSuggestionCallback'](_0x20ca39,_0x175d27,'accept')(..._0x595ea8),'onDiscard':(..._0x15ad59)=>this['getSuggestionCallback'](_0x20ca39,_0x175d27,'discard')(..._0x15ad59)});}['registerCustomCallback'](_0x4e2c0e,_0x372ed1,_0x3579cd,_0x442636){const _0x356662=_0x4e2c0e+':'+_0x372ed1+':'+_0x3579cd;this['_customCallbacks']['set'](_0x356662,_0x442636);}['getSuggestionCallback'](_0x22e8ee,_0x372fc2,_0x191ccc){const _0x1c3f3a=_0x22e8ee+':'+_0x372fc2+':'+_0x191ccc;return this['_customCallbacks']['get'](_0x1c3f3a)||this['_defaultCallbacks']['get'](_0x22e8ee+':'+_0x191ccc);}['_registerDefaultCallbacks'](){const _0x1d4a65=()=>!0x1,_0x3822d8=_0x2d9193=>{_0x2d9193['sort']((_0x19501,_0x378dfa)=>_0x19501['start']['isBefore'](_0x378dfa['start'])?0x1:-0x1),this['_model']['change'](_0x31f10d=>{for(const _0x196ac8 of _0x2d9193){let _0x7e57df;_0x7e57df=_0x196ac8['end']['isAtEnd']&&_0x196ac8['end']['parent']==_0x196ac8['start']['nodeAfter']?_0x31f10d['createSelection'](_0x196ac8['start']['nodeAfter'],'on'):_0x31f10d['createSelection'](_0x196ac8),this['_model']['deleteContent'](_0x7e57df,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1c3c8a=(_0x1c3b1b,_0x27043a)=>{_0x27043a&&this['_model']['change'](_0xfa0b13=>{const {commandName:_0x15101d,commandParams:_0x5b3285=[]}=_0x27043a,_0x274ca5=_0x1c3b1b['map'](_0xf40863=>(Pt(_0xf40863)&&(_0xf40863=this['_model']['createRange'](_0xf40863['end'])),_0xf40863))['filter'](_0x4b2982=>'$graveyard'!==_0x4b2982['root']['rootName']);if(_0x274ca5['length']<0x1)return;const _0x19fdba=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5ecd2f=>_0x3db890['fromRange'](_0x5ecd2f));_0xfa0b13['setSelection'](_0x274ca5);for(const _0xdc9e93 of this['_editor']['commands']['commands']())_0xdc9e93['refresh']();_0x5b3285['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x15101d,..._0x5b3285);const _0x3ed868=_0x19fdba['filter'](_0x2ecd25=>'$graveyard'!=_0x2ecd25['root']['rootName']);_0x3ed868['length']>0x0&&_0xfa0b13['setSelection'](_0x3ed868);for(const _0x323d62 of _0x19fdba)_0x323d62['detach']();});},_0x108276=(_0x3a68bf,_0x7ea831)=>0x1==_0x3a68bf['length']&&0x1==_0x7ea831['length']&&_0x3a68bf[0x0]['end']['isEqual'](_0x7ea831[0x0]['start']),_0x308c9c=(_0x396331,_0x43afad,_0x78ded8,_0x25acd6)=>qt(_0x396331,_0x43afad,_0x78ded8,_0x25acd6)?[_0x396331,_0x43afad]:qt(_0x43afad,_0x396331,_0x25acd6,_0x78ded8)?[_0x43afad,_0x396331]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1d4a65),this['_defaultCallbacks']['set']('insertion:discard',_0x3822d8),this['_defaultCallbacks']['set']('insertion:join',_0x108276),this['_defaultCallbacks']['set']('insertion:chain',_0x308c9c),this['_defaultCallbacks']['set']('deletion:accept',_0x3822d8),this['_defaultCallbacks']['set']('deletion:discard',_0x1d4a65),this['_defaultCallbacks']['set']('deletion:join',_0x108276),this['_defaultCallbacks']['set']('deletion:chain',_0x308c9c),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c3c8a),this['_defaultCallbacks']['set']('formatInline:discard',_0x1d4a65),this['_defaultCallbacks']['set']('formatInline:join',_0x108276),this['_defaultCallbacks']['set']('formatInline:chain',_0x1d4a65),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c3c8a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1d4a65),this['_defaultCallbacks']['set']('formatBlock:join',_0x108276),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1d4a65),this['_defaultCallbacks']['set']('attribute:accept',_0x1d4a65),this['_defaultCallbacks']['set']('attribute:discard',(_0x4b421e,_0xe6be84)=>{if(!_0xe6be84)return;const _0x555aa5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x534b0d=>{if(_0xe6be84['key']==m)for(const _0x38d51e of _0x4b421e){const _0xad6e48=_0x38d51e['start']['nodeAfter'],_0x1fbc95=_0xe6be84['oldValue'];_0x534b0d['rename'](_0xad6e48,_0x1fbc95);}else{if(_0x555aa5['_isBlockAttribute'](_0xe6be84['key'])){for(const _0xa04219 of _0x4b421e)void 0x0!==_0xe6be84['oldValue']?_0x534b0d['setAttribute'](_0xe6be84['key'],_0xe6be84['oldValue'],_0xa04219['start']['nodeAfter']):_0x534b0d['removeAttribute'](_0xe6be84['key'],_0xa04219['start']['nodeAfter']);}else{for(const _0x538cd2 of _0x4b421e)_0xe6be84['oldValue']?_0x534b0d['setAttribute'](_0xe6be84['key'],_0xe6be84['oldValue'],_0x538cd2):_0x534b0d['removeAttribute'](_0xe6be84['key'],_0x538cd2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x108276);}}function Vt(_0x3ba88b,_0x46e61e,_0x49a5d3){for(const _0x203ae5 of _0x46e61e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x203ae5['root']==_0x203ae5)return!0x1;if(!_0x49a5d3['containsItem'](_0x203ae5))return!0x1;if(_0x3ba88b['isObject'](_0x203ae5)||_0x3ba88b['isLimit'](_0x203ae5))return!0x0;}return!0x1;}function Pt(_0x39698a){return _0x39698a['end']['parent']==_0x39698a['start']['nodeAfter']&&_0x39698a['end']['isAtStart'];}function Gt(_0x2b4223,_0x2e2695,_0x55d3a3,_0x4b23b8){const _0x1c3d14=_0x1b92d7=>!_0x1b92d7['item']['is']('$textProxy')&&!_0x4b23b8['isObject'](_0x1b92d7['item']),_0x56fb5a=_0x2b4223['start']['getLastMatchingPosition'](_0x1c3d14),_0x39bf31=_0x2b4223['end']['getLastMatchingPosition'](_0x1c3d14,{'direction':'backward'});return(!_0x2b4223['start']['isEqual'](_0x56fb5a)||!_0x2b4223['end']['isEqual'](_0x39bf31))&&(_0x56fb5a['isBefore'](_0x39bf31)?_0x55d3a3['updateMarker'](_0x2e2695,{'range':_0x55d3a3['createRange'](_0x56fb5a,_0x39bf31)}):_0x55d3a3['removeMarker'](_0x2e2695),!0x0);}function Ft(_0x596f75){return _0x13f732(_0x596f75);}function Lt(_0x4a6afb){const _0x533c96=_0x4a6afb['start']['nodeAfter'];return _0x533c96&&_0x533c96['is']('element');}function Jt(_0x36ea4d,_0x4ca2d5){return null==_0x36ea4d['end']['nodeBefore']&&_0x36ea4d['end']['parent']==_0x36ea4d['start']['nodeAfter']?Ht(_0x36ea4d['start']['nodeAfter'],_0x4ca2d5):_0x36ea4d;}function Ht(_0x3d2df4,_0x32feaf){const _0x1e9061=_0x32feaf['schema']['isObject'](_0x3d2df4)||_0x32feaf['schema']['isSelectable'](_0x3d2df4);return _0x32feaf['createRange'](_0x32feaf['createPositionAt'](_0x3d2df4,'before'),_0x1e9061?_0x32feaf['createPositionAfter'](_0x3d2df4):_0x32feaf['createPositionAt'](_0x3d2df4,'end'));}function qt(_0x5ac82e,_0x2df8a9,_0x53181c,_0x4152a8){return!!zt(_0x5ac82e,_0x2df8a9)&&_0x53181c['end']['isEqual'](_0x4152a8['start']);}function zt(_0x8a5b5a,_0x632e78){if(!_0x8a5b5a['_isDataLoaded']||!_0x632e78['_isDataLoaded'])return!0x1;const _0x3c68bf=new Set(Object['keys'](_0x8a5b5a['attributes'])),_0x1d8853=new Set(Object['keys'](_0x632e78['attributes']));if(_0x3c68bf['delete']('groupId'),_0x1d8853['delete']('groupId'),0x0==_0x3c68bf['size']&&0x0==_0x1d8853['size'])return!0x0;if(_0x3c68bf['size']!=_0x1d8853['size'])return!0x1;const _0x3c176b={..._0x8a5b5a['attributes']},_0x5af645={..._0x632e78['attributes']};return delete _0x3c176b['groupId'],delete _0x5af645['groupId'],JSON['stringify'](_0x3c176b)==JSON['stringify'](_0x5af645);}function Kt(_0x47109e,_0x27fc2c){const _0x255faf=Wt(_0x47109e['attributes']),_0x469c72=Wt(_0x27fc2c);if(!_0x47109e['_isDataLoaded'])return!0x1;for(const _0x3a860d of Object['keys'](_0x469c72))if(!_0x3def7b(_0x255faf[_0x3a860d],_0x469c72[_0x3a860d]))return!0x1;return!0x0;}function Wt(_0x117ae0){const _0x84240=Object['assign']({},_0x117ae0);return delete _0x84240['skipNestingCheck'],delete _0x84240['tablePasteChainId'],_0x84240;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x2e093b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x24513e,_0x45a88f,_0x417ea1,_0xfd2af4){super(),this['model']=_0x45a88f,this['view']=_0x417ea1,this['commentThreadController']=_0xfd2af4,this['_editor']=_0x24513e,this['_acceptCommand']=_0x24513e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x24513e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x56af9a,_0x37b913)=>_0x56af9a||_0x37b913),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4ff878=>_0x4ff878&&this['_editor']['model']['canEditAt'](_0x45a88f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xa0429c=>_0xa0429c&&this['_editor']['model']['canEditAt'](_0x45a88f['getRanges']())),this['_pendingAction']=null,_0x417ea1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x417ea1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x417ea1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x417ea1,'change:isDirty',()=>{_0x417ea1['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 _0x3c8504=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c8504);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x4d48cf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3b016b,_0x513ab0,_0x479c7b,_0x2838e7){super(_0x3b016b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x30cbad(_0x3b016b,o(_0x3b016b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x513ab0['authoredAt']),this['bind']('authoredAt')['to'](_0x513ab0),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',_0x513ab0,'authoredAt',this,'descriptionParts',(_0x170443,_0x19d869,_0x37f1b1)=>{const _0xa0fcf9=_0x37f1b1['map'](_0xf9fb28=>ns(_0xf9fb28['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x170443-0x1,_0x513ab0['author']['name'],_0x19d869?_0x2838e7['formatDateTime'](_0x19d869):'',new DOMParser()['parseFromString'](_0xa0fcf9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x58a253(),this['focusTracker']=new _0x4b58f8(),this['keystrokes']=new _0x27f5f9(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x390ef5=>_0x390ef5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x513ab0,this['_localUser']=_0x479c7b,this['_config']=_0x2838e7,_0x2838e7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2f2cc5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x45089b}=this['_config'];this['commentsListView']=new _0x45089b(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',_0x1f991e=>_0x1f991e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xe74ea9,_0x4b1af3)=>_0xe74ea9||!!_0x4b1af3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1e7fc0}=this['_config'],_0x1d0a38=new _0x1e7fc0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x156685=_0x1d0a38['commentInputView'];return _0x1d0a38['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x156685,'value',(_0x22b9f0,_0xf37439,_0x4cdcd5)=>!!_0x4cdcd5||_0x22b9f0&&!_0xf37439),_0x156685['on']('submit',(_0x3173ad,_0x5efc76)=>{this['fire']('addComment',_0x5efc76),_0x156685['editor']['setData']('');}),_0x156685['on']('cancel',()=>this['focus']()),_0x156685['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1d0a38;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0xe583f5,_0x23bcc2,_0x1a24f2,_0x459c02){super(_0xe583f5,_0x23bcc2,_0x1a24f2,_0x459c02),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2b92c6=>_0x2b92c6&&_0x2b92c6[0x0]?_0x2b92c6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x170767,_0x22c8dc)=>{let _0x45b1b5='';for(const _0x47c437 of _0x170767)_0x45b1b5+='<p>'+ns(_0x47c437['content'],_0x47c437['color'])+'</p>';return _0x22c8dc?_0x45b1b5:_0x46f5b5(_0x45b1b5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x459c02['SuggestionView'](_0xe583f5,_0x23bcc2,{'formatDateTime':_0x459c02['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 _0x31e3db=this['bindTemplate'],_0x1f3d83=[this['suggestionView']];return this['commentsListView']&&_0x1f3d83['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f3d83['push'](this['commentThreadInputView']),_0x1f3d83['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x31e3db['if']('isActive','ck-suggestion-wrapper--active'),_0x31e3db['to']('type',_0x1d22dd=>'ck-suggestion-'+_0x1d22dd),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':_0x31e3db['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f3d83};}['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 _0x4d48cf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1d74de,_0x406661,_0x3f86db){super(_0x1d74de),this['_model']=_0x406661,this['_config']=_0x3f86db,this['set']('description',''),this['bind']('authoredAt')['to'](_0x406661),this['acceptButton']=this['_createButton'](o(_0x1d74de,'Accept\x20suggestion'),_0x95e168['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1d74de,'Discard\x20suggestion'),_0x95e168['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3aad9b(_0x1d74de,_0x406661['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x58a253([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4b58f8(),this['keystrokes']=new _0x27f5f9(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1dd728=>_0x1dd728['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3e3caa=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3e3caa['innerHTML']=this['description'],this['on']('change:description',(_0x1a65e0,_0x1a99d2,_0x528457)=>{_0x3e3caa['innerHTML']=_0x528457;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xed2051=this['bindTemplate'],_0x44ab30=[{'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':_0xed2051['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xed2051['to']('authoredAt',_0x349321=>this['_config']['formatDateTime'](_0x349321))}]}]},{'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']&&_0x44ab30['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':_0x44ab30}]};}['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'](_0x3945c1,_0x413827,_0x15a3ad,_0x3857ca,_0x2341d8){const _0x84f0f6=new _0x4489ee(this['locale']);return _0x84f0f6['set']({'label':_0x3945c1,'icon':_0x413827,'tooltip':!0x0,'tooltipPosition':_0x2341d8}),_0x84f0f6['extendTemplate']({'attributes':{'class':_0x15a3ad}}),_0x84f0f6['on']('execute',()=>{this['fire'](_0x3857ca,this['_model']['id']);}),_0x84f0f6;}['_setupKeyboardNavigation'](){const _0x1327d5=this['element'];this['keystrokes']['listenTo'](_0x1327d5);for(const _0x4bedda of this['focusables'])this['focusTracker']['add'](_0x4bedda['element']),this['keystrokes']['listenTo'](_0x4bedda['element']);this['keystrokes']['set']('enter',(_0x10de1f,_0x59aca8)=>{_0x1327d5===_0x10de1f['target']&&(this['focusCycler']['focusFirst'](),_0x59aca8());}),this['keystrokes']['set']('esc',(_0x1954d8,_0x5af38b)=>{_0x1327d5!==_0x1954d8['target']&&(this['focus'](),_0x5af38b());});}}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 _0x4bc43a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x558fcb,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x440493){super(_0x440493),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x38cd6a=this['editor']['config'];_0x38cd6a['define']('trackChanges.SuggestionThreadView',pe),_0x38cd6a['define']('trackChanges.SuggestionView',fe),_0x38cd6a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x38cd6a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2f75aa,_0x2bf6e2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x372add,_0x1ac3cc]of this['_handleControllerBuffer']){const _0x503d52=this['_suggestionToController']['has'](_0x372add);_0x503d52||_0x1ac3cc?_0x503d52&&_0x1ac3cc&&this['_destroyController'](_0x372add):this['_initializeController'](_0x372add);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f75aa,_0x2bf6e2);}['init'](){const _0x6e8d6b=this['editor'],_0x3294aa=_0x6e8d6b['plugins']['get']('TrackChangesEditing'),_0x57cdf0=_0x6e8d6b['plugins']['get']('Annotations'),_0x104261=_0x6e8d6b['plugins']['get']('EditorAnnotations'),_0x5bf750=_0x6e8d6b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x104261['addSourceCollector'](()=>{const _0x1ec2c6=[];for(const [_0x5f4b55,_0x12f206]of Array['from'](this['_suggestionToController'])){const _0x4affd4=_0x5f4b55['getAllAdjacentSuggestions'](),_0x699bdf=[];for(const _0x1c40b4 of _0x4affd4){if(!_0x1c40b4['isInContent'])continue;if(_0x1c40b4['isMultiRange']){_0x699bdf['push'](..._0x1c40b4['getRanges']());continue;}const _0xc426ef=_0x1c40b4['getFirstRange']();if(_0x699bdf['length']>0x0){const _0x38cb41=_0x699bdf[0x0]['getJoined'](_0xc426ef);if(_0x38cb41){_0x699bdf[0x0]=_0x38cb41;continue;}}_0x699bdf['push'](_0xc426ef);}_0x1ec2c6['push']([_0x12f206['view'],_0x699bdf]);}return _0x1ec2c6;}),this['listenTo'](_0x3294aa,'suggestionLoaded',(_0x3561d5,_0x559266)=>{this['listenTo'](_0x559266,'change:previous',(_0x3e73c2,_0x249f0d,_0x3df2ff,_0x449302)=>{_0x559266['isInContent']&&(null==_0x3df2ff?(this['_updateController'](_0x449302['head']),this['_handleSuggestionControllerDelayed'](_0x559266,!0x1)):(this['_updateController'](_0x3df2ff['head']),null==_0x449302&&this['_handleSuggestionControllerDelayed'](_0x559266,!0x0)));}),null!==_0x559266['previous']?this['_updateController'](_0x559266['head']):this['_handleSuggestionControllerDelayed'](_0x559266,!0x1);}),this['listenTo'](_0x3294aa,'suggestionUnloaded',(_0x21a066,_0x16df4f,_0x572194)=>{this['stopListening'](_0x16df4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x16df4f),this['_suggestionToController']['has'](_0x16df4f)&&this['_destroyController'](_0x16df4f),_0x572194&&this['_updateController'](_0x572194['head']);}),this['listenTo'](_0x3294aa,'suggestionChanged',(_0x11a37e,_0x5cdd57)=>{this['_updateController'](_0x5cdd57);}),this['listenTo'](_0x57cdf0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5bf750,'addComment',(_0x28818f,{threadId:_0x6416c,isFromAdapter:_0x65a2a5})=>{if(_0x65a2a5||!_0x3294aa['hasSuggestion'](_0x6416c))return;const _0x393299=_0x3294aa['getSuggestion'](_0x6416c);this['_suggestionToController']['get'](_0x393299)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13b1d8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x330d63;for(const _0x39f604 in _0x13b1d8){const _0x151cb9=_0x39f604,_0x2b58bc=_0x13b1d8[_0x151cb9];if('trackChangesLicenseKeyValid'==_0x2b58bc||'trackChangesLicenseKeyInvalid'==_0x2b58bc||'trackChangesLicenseKeyExpired'==_0x2b58bc||'trackChangesLicenseKeyDomainLimit'==_0x2b58bc||'trackChangesLicenseKeyNotAllowed'==_0x2b58bc||'trackChangesLicenseKeyEvaluationLimit'==_0x2b58bc||'trackChangesLicenseKeyTrialLimit'==_0x2b58bc||'trackChangesLicenseKeyUsageLimit'==_0x2b58bc){delete _0x13b1d8[_0x151cb9],_0x330d63=_0x2b58bc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x330d63&&_0x13b1d8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x330d63&&_0x13b1d8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x330d63&&_0x13b1d8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x330d63&&_0x13b1d8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x330d63&&_0x13b1d8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x330d63&&_0x13b1d8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x330d63&&_0x13b1d8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xf01f86=this['editor']['plugins']['get']('Annotations'),_0xf49279=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c351c=Array['from'](_0xf01f86['activeAnnotations'],_0x5579a0=>_0x5579a0['innerView'])['filter'](_0x570781=>this['_viewToController']['has'](_0x570781)),_0xad46d4=[];for(const _0x4e77f4 of _0x4c351c){const _0x51c4f9=this['_viewToController']['get'](_0x4e77f4)['model']['getAllAdjacentSuggestions']();_0xad46d4['push'](..._0x51c4f9['reduce']((_0x4e89b9,_0x11beca)=>[..._0x4e89b9,..._0x11beca['getMarkerNames']()],[]));}_0xf49279['activeMarkers']=_0xad46d4;}['_addUIComponentsToFactory'](){const _0x19670f=this['editor'],_0x144240=_0x19670f['locale'],_0x1b752a=o(_0x144240,'Track\x20changes'),_0x3c35eb=new _0xbe8e9c([{'type':'switchbutton','model':new _0x10b183({'withText':!0x0,'isToggleable':!0x0,'label':_0x1b752a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x10b183({'withText':!0x0,'label':o(_0x144240,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10b183({'withText':!0x0,'label':o(_0x144240,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10b183({'withText':!0x0,'label':o(_0x144240,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10b183({'withText':!0x0,'label':o(_0x144240,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x19670f['plugins']['has']('TrackChangesPreview')&&_0x3c35eb['addMany']([{'type':'separator'},{'type':'button','model':new _0x10b183({'withText':!0x0,'label':o(_0x144240,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x568046 of _0x3c35eb)if(ke(_0x568046)){const _0x5df917=_0x19670f['commands']['get'](_0x568046['model']['commandName']);_0x568046['model']['bind']('isOn','isEnabled')['to'](_0x5df917,'value','isEnabled');}_0x19670f['ui']['componentFactory']['add']('trackChanges',_0x1d3467=>this['_createToolbarButton'](_0x1d3467,_0x3c35eb,_0x1b752a)),_0x19670f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3b776a=>this['_createMenuBarMenu'](_0x3b776a,_0x3c35eb,_0x1b752a));}['_createToolbarButton'](_0xe02fd0,_0x1a57b6,_0x542fe1){const _0x2598e6=_0x2743f1(_0xe02fd0,_0x3ef3ef),_0xed58e9=this['editor']['commands']['get']('trackChanges');_0x2598e6['buttonView']['set']({'tooltip':_0x542fe1,'label':_0x542fe1,'icon':we}),_0x2598e6['buttonView']['bind']('isOn')['to'](_0xed58e9,'value'),_0x2598e6['buttonView']['on']('execute',()=>{_0xed58e9['execute'](),this['editor']['editing']['view']['focus']();}),_0x23cd77(_0x2598e6,_0x1a57b6,{'role':'menu'});const _0x36e79e=[];for(const _0x2c4c72 of _0x1a57b6)ke(_0x2c4c72)&&_0x36e79e['push'](this['editor']['commands']['get'](_0x2c4c72['model']['commandName']));const _0x15c38c=_0x2598e6['buttonView'];return _0x15c38c['actionView']['unbind']('isEnabled'),_0x15c38c['arrowView']['unbind']('isEnabled'),_0x15c38c['actionView']['bind']('isEnabled')['to'](_0xed58e9,'isEnabled'),_0x15c38c['arrowView']['bind']('isEnabled')['toMany'](_0x36e79e,'isEnabled',(..._0x19a2af)=>_0x19a2af['some'](_0x7dc5d5=>_0x7dc5d5)),_0x2598e6['on']('execute',_0x205bb=>{this['editor']['execute'](_0x205bb['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2598e6;}['_createMenuBarMenu'](_0x3eb554,_0x297582,_0x5f03de){const _0x35d515=new _0x179ae6(_0x3eb554),_0x1c3117=this['editor']['commands']['get']('trackChanges');_0x35d515['buttonView']['set']({'label':_0x5f03de,'icon':we});const _0x5aba48=new _0x29005e(_0x3eb554);for(const _0x1d3345 of _0x297582){if('separator'==_0x1d3345['type']){_0x5aba48['items']['add'](new _0x11f766(_0x3eb554));continue;}const _0x53aafd=new _0x2c0e25(_0x3eb554,_0x35d515),_0x42f7c2=new _0x2bfd02(_0x3eb554),_0x25a7c3=_0x1d3345['model'];_0x42f7c2['bind'](...Object['keys'](_0x25a7c3))['to'](_0x25a7c3),_0x42f7c2['delegate']('execute')['to'](_0x35d515),_0x42f7c2['on']('execute',()=>{this['editor']['execute'](_0x25a7c3['commandName']),this['editor']['editing']['view']['focus']();}),_0x53aafd['children']['add'](_0x42f7c2),_0x5aba48['items']['add'](_0x53aafd);}return _0x35d515['bind']('isEnabled')['to'](_0x1c3117,'isEnabled'),_0x35d515['panelView']['children']['add'](_0x5aba48),_0x35d515;}['_initializeController'](_0x13db86){const _0x107dca=this['editor'],_0x3ab3df=_0x107dca['config'],_0x27da2f=_0x107dca['plugins']['get']('Annotations'),_0x430c25=_0x107dca['plugins']['get']('CommentsRepository'),_0x2676e1=_0x107dca['plugins']['get']('EditorAnnotations'),_0x175b20=_0x107dca['plugins']['get'](_0x558fcb)['me'],_0x31a287=_0x3ab3df['get']('trackChanges')['SuggestionThreadView'],_0x4c5419=_0x3ab3df['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x384df7,CommentThreadInputView:_0x57119a}=_0x107dca['plugins']['get']('CommentsUI');let _0x3b8dfa,_0x25d5cd,_0x43954a;this['_annotationViews']['has'](_0x13db86['id'])?(_0x25d5cd=this['_annotationViews']['get'](_0x13db86['id']),_0x3b8dfa=_0x25d5cd['mainView']):(_0x3b8dfa=new _0x31a287(_0x107dca['locale'],_0x13db86,_0x175b20,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3ab3df['get']('comments.editorConfig'),'licenseKey':_0x3ab3df['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3ab3df['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3ab3df['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3ab3df['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b28ba(_0x3ab3df['get']('locale')),'CommentView':_0x3ab3df['get']('comments')['CommentView'],'CommentsListView':_0x384df7,'CommentThreadInputView':_0x57119a,'SuggestionView':_0x4c5419}),_0x3b8dfa['suggestionView']['acceptButton']['on']('execute',()=>{_0x107dca['editing']['view']['focus']();}),_0x3b8dfa['suggestionView']['discardButton']['on']('execute',()=>{_0x107dca['editing']['view']['focus']();}),_0x25d5cd=_0x27da2f['createAnnotationView'](this['editor']['locale'],_0x3b8dfa),_0x25d5cd['bind']('isDirty')['to'](_0x3b8dfa,'isDirty'),_0x25d5cd['bind']('length')['to'](_0x3b8dfa),_0x25d5cd['bind']('type')['to'](_0x3b8dfa,'type',_0x1fb8e9=>'suggestion-'+_0x1fb8e9),_0x3b8dfa['on']('escape',()=>{_0x43954a['fire']('escape');}),this['_annotationViews']['set'](_0x13db86['id'],_0x25d5cd));const _0x28c60c=_0x430c25['createCommentThreadController'](_0x13db86['commentThread'],_0x3b8dfa),_0x5a4702=new Ce(_0x107dca,_0x13db86,_0x3b8dfa,_0x28c60c),_0x288a11=_0x13db86['getAllAdjacentSuggestions']()['filter'](_0x5b2b12=>_0x5b2b12['isInContent']);_0x3b8dfa['descriptionParts']=_0x107dca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x288a11),this['_suggestionToController']['set'](_0x13db86,_0x5a4702),this['_viewToController']['set'](_0x3b8dfa,_0x5a4702),_0x43954a=_0x27da2f['createAnnotation']({'view':_0x25d5cd,'target':()=>{const _0x5702a2=[],_0xbe3f0c=_0x13db86['getAllAdjacentSuggestions']()['filter'](_0x13ec73=>_0x13ec73['isInContent']);for(const _0x24cbf4 of _0xbe3f0c)_0x5702a2['push'](..._0x24cbf4['getMarkers']());return _0x226be8(_0x107dca['editing'],_0x5702a2);},'type':()=>'suggestion-'+_0x5a4702['view']['type']}),_0x430c25['_bindAnnotationToEditors'](_0x3b8dfa,_0x43954a),_0x27da2f['add'](_0x43954a),_0x2676e1['registerAnnotation'](_0x43954a);}['_destroyController'](_0x4e3d59){const _0x3a2561=this['editor']['plugins']['get']('CommentsRepository'),_0xe23c8c=this['editor']['plugins']['get']('Annotations'),_0x24ad23=this['_suggestionToController']['get'](_0x4e3d59),_0x414e9f=_0x24ad23['view'],_0x1bbb5f=_0xe23c8c['getByInnerView'](_0x414e9f);_0x3a2561['_unbindEditors'](_0x414e9f),_0x1bbb5f&&_0xe23c8c['remove'](_0x1bbb5f),this['_suggestionToController']['delete'](_0x4e3d59),this['_viewToController']['delete'](_0x414e9f),_0x24ad23['destroy']();}['_updateController'](_0xead337){if(!_0xead337['isInContent']||!this['_suggestionToController']['has'](_0xead337))return;const _0xbdc004=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f55d7=this['_suggestionToController']['get'](_0xead337),_0x597e3b=_0xead337['getAllAdjacentSuggestions']();_0x1f55d7['view']['descriptionParts']=_0xbdc004['descriptionFactory']['getDescriptions'](_0x597e3b);}['destroy'](){for(const _0x45c20a of this['_suggestionToController']['keys']())this['_destroyController'](_0x45c20a);for(const _0xebf6b6 of this['_annotationViews']['values']())_0xebf6b6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3439eb){return'model'in _0x3439eb;}class k extends _0x4bc43a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x46a968){this['editor']['plugins']['get'](p)['adapter']=_0x46a968;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x38c9e8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x38c9e8);}['getSuggestions']({skipNotAttached:_0x262779=!0x1,toJSON:_0x4dfae1=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x262779,'toJSON':_0x4dfae1});}['getSuggestion'](_0x2fbfdb){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2fbfdb);}}const w=['Pagination'];class T extends _0x4bc43a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x829d8c=this['editor'];if(_0x829d8c['config']['define']('trackChangesData.editorCreator',_0xfcb083=>{const _0xcb3088=_0x829d8c['model']['document']['getRootNames']()['reduce']((_0x4003da,_0x33f59b)=>(_0x4003da[_0x33f59b]='',_0x4003da),{});return _0x829d8c['constructor']['create'](_0xcb3088,_0xfcb083);}),'function'!=typeof _0x829d8c['config']['get']('trackChangesData')['editorCreator'])throw new _0x32ff2c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47b474){return N(this['editor'],!0x0,_0x47b474);}['getDataWithDiscardedSuggestions'](_0x7e3614){return N(this['editor'],!0x1,_0x7e3614);}}class D extends _0x4bc43a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a3959){function _0x465c4a(_0x78b6b6){return _0x78b6b6['map'](_0x53a7f3=>String['fromCharCode'](_0x53a7f3))['join']('');}super(_0x2a3959),this['result']='end',_0x2a3959[_0x465c4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x465c4a([0x76,0x69,0x65,0x77])][_0x465c4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x465c4a([0x61,0x75,0x74,0x6f]),_0x2a3959[_0x465c4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x465c4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x465c4a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x465c4a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x465c4a([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(_0x200966){return void 0x0!==_0x200966['getRootsAttributes'];}async function N(_0x5ea34b,_0x319b6f,_0x38786b){const _0x476cab=_0x3705ee(_0x5ea34b,w);_0x476cab['plugins']['push'](p,D),_0x476cab['rootsAttributes']=Fe(_0x5ea34b)?_0x5ea34b['getRootsAttributes']():void 0x0;const _0x59dd03=document['createDocumentFragment'](),_0x119838=_0x5ea34b['config']['get']('trackChangesData')['editorCreator'],_0x1dd791=await _0x119838(_0x476cab,()=>function(_0x3a5f20){const _0x33ca52=document['createElement']('div');return _0x3a5f20['appendChild'](_0x33ca52),_0x33ca52;}(_0x59dd03));!function(_0x8fee,_0x481f46){const _0x3ef4ec=_0x8fee['model']['document']['getRootNames']()['reduce']((_0x3f9309,_0x4561b9)=>(_0x3f9309[_0x4561b9]=_0x8fee['data']['get']({'rootName':_0x4561b9}),_0x3f9309),{}),_0x5948c6=_0x8fee['plugins']['get']('Users')['users']['map'](_0x20c864=>({'id':_0x20c864['id'],'name':_0x20c864['name']})),_0x3bab1a=_0x8fee['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15c465=_0x8fee['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x152a98=_0x481f46['plugins']['get']('Users'),_0x3cf04d=_0x481f46['plugins']['get']('TrackChangesEditing'),_0x54057d=_0x481f46['plugins']['get']('CommentsRepository');for(const _0x44ff5d of _0x54057d['getCommentThreads']())_0x44ff5d['remove']();for(const _0x1c5b04 of _0x5948c6)_0x152a98['getUser'](_0x1c5b04['id'])||_0x152a98['addUser'](_0x1c5b04);_0x152a98['me']||_0x152a98['useAnonymousUser']();for(const _0x264cca of _0x15c465)_0x54057d['addCommentThread'](_0x264cca);for(const _0x5c8adf of _0x3bab1a)_0x3cf04d['addSuggestionData'](_0x5c8adf);_0x481f46['data']['set'](_0x3ef4ec);}(_0x5ea34b,_0x1dd791),_0x1dd791['execute'](_0x319b6f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5c0dca=Fe(_0x1dd791)?_0x1dd791['getFullData'](_0x38786b):_0x1dd791['data']['get'](_0x38786b);return await _0x1dd791['destroy'](),_0x5c0dca;}class Me extends _0x4d48cf{['options'];constructor(_0x3b7b10,_0x1a9400){super(_0x3b7b10),this['options']=_0x1a9400,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'](_0x18e16f,_0x18b063){if(!this['element'])return;const _0x58536b=[];for(const [_0x1d713c,_0x1818a1]of _0x18e16f){const _0x174de3=document['createElement']('div');_0x174de3['setAttribute']('data-ck-root-name',_0x1d713c),_0x174de3['className']=_0x1818a1['classes']+'\x20ck-track-changes-preview__root-container',_0x174de3['innerHTML']=_0x1818a1['content'],_0x58536b['push'](_0x174de3);}_0x18b063(this['element'],_0x58536b),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x49de15){super(_0x49de15),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x137229=this['editor'],_0x452e2f=_0x137229['locale'],_0x9a6590=_0x137229['plugins']['get']('Dialog');let _0x299957;const _0x1b3037=function(_0x119ce5){const _0x355386={};if('editables'in _0x119ce5['ui']['view']){for(const [_0x135138,_0x41248a]of Object['entries'](_0x119ce5['ui']['view']['editables']))_0x355386[_0x135138]=_0x41248a['element'];}else _0x355386[_0x119ce5['model']['document']['getRootNames']()[0x0]]=_0x119ce5['ui']['view']['editable']['element'];return _0x355386;}(_0x137229),_0x4999b9=function(_0x312e54){let _0xe211b8=0x0;for(const _0x2fd76d of Object['values'](_0x312e54))_0xe211b8=Math['max'](_0xe211b8,_0x2fd76d['getBoundingClientRect']()['width']);let _0x4cb3d9=0x0;for(const _0x5f10d5 of Object['values'](_0x312e54))_0x4cb3d9+=_0x5f10d5['getBoundingClientRect']()['height'];const _0x1a8272=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2d43f6=Math['min'](_0x4cb3d9,_0x1a8272);return{'width':_0xe211b8,'height':_0x2d43f6};}(_0x1b3037);_0x9a6590['show']({'id':'finalContentPreview','title':o(_0x452e2f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x452e2f,{'dialogRects':_0x4999b9}),'onHide':()=>{_0x299957['detachFromDom']();},'onShow':()=>{_0x137229['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xb2771c=>{const _0x5cbe2f=this['_standarizeRootsData'](_0xb2771c,_0x137229,_0x1b3037);_0x9a6590['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5cbe2f,_0x137229['config']['get']('trackChanges.preview.renderFunction'));}),_0x299957=new _0x4068fb(_0x452e2f,[_0x9a6590['view']]),_0x299957['attachToDom'](),_0x299957['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x137229['once']('destroy',()=>{_0x299957['detachFromDom']();});const _0x4d774e=_0x9a6590['view']['headerView']['class'];_0x9a6590['view']['headerView']['class']=_0x4d774e?_0x4d774e+'\x20ck-reset_all':'ck-reset_all',_0x9a6590['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x9a6590['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4be82b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5c434f=_0x4be82b['previewMode'],_0x1a7ca2={};if('$labels'===_0x5c434f){for(const _0x3bfc75 of _0x4be82b['getMergeFieldsIds']())_0x1a7ca2[_0x3bfc75]=_0x4be82b['getLabel'](_0x3bfc75)||_0x3bfc75;}else{const _0x338d58='$defaultValues'===_0x5c434f?_0x4be82b['getDefaultValues']():_0x4be82b['getDataSetValues'](_0x5c434f,!0x0);for(const _0x4f89c8 of Object['entries'](_0x338d58)){const [_0x4f53eb,_0xcb49df]=_0x4f89c8;_0x1a7ca2[_0x4f53eb]=null!==_0xcb49df?_0xcb49df:_0x4be82b['getLabel'](_0x4f53eb)||_0x4f53eb;}}return{'mergeFieldsData':_0x1a7ca2};}['_standarizeRootsData'](_0x407bd3,_0x3bd2c2,_0x5ee1bc){let _0x31f734;if('string'==typeof _0x407bd3){const _0xa2aeae=_0x3bd2c2['model']['document']['getRootNames']()[0x0];_0x31f734={[_0xa2aeae]:_0x407bd3};}else _0x31f734=_0x407bd3;const _0x4edd50=this['_fixMediaEmbeds'](_0x31f734,_0x3bd2c2),_0x5aaaaa=function(_0x3ce70f,_0xe6fdfc){for(const [_0x65928a,_0x5f02c5]of _0x3ce70f)_0x5f02c5['classes']=_0xe6fdfc[_0x65928a]['classList']['value']['replace']('ck-focused','');return _0x3ce70f;}(this['_sortRoots'](_0x3bd2c2)['reduce']((_0x3bdd2c,_0x531772)=>(_0x3bdd2c['push']([_0x531772,{'content':_0x4edd50[_0x531772],'classes':''}]),_0x3bdd2c),[]),_0x5ee1bc);return _0x5aaaaa;}['_fixMediaEmbeds'](_0x44e292,_0x129586){if(!_0x129586['plugins']['has']('MediaEmbedEditing'))return _0x44e292;const _0x402a86=_0x129586['plugins']['get']('MediaEmbedEditing');for(const [_0x172289,_0x2c9ad4]of Object['entries'](_0x44e292)){const _0x360517=document['createElement']('div');_0x360517['innerHTML']=_0x2c9ad4,(_0x360517['querySelectorAll']('figure.media')['forEach'](_0x5f4762=>{const _0x563550=_0x5f4762['querySelector']('oembed');if(_0x563550){const _0x34e2a6=_0x563550['getAttribute']('url');if(_0x34e2a6){const _0x3998a5=_0x402a86['registry']['getMediaViewElement'](new _0x22c73d(_0x129586['editing']['view']['document']),_0x34e2a6,{'elementName':'','renderForEditingView':!0x0}),_0x1189ac=document['createElement']('div');_0x1189ac['classList']['add']('ck-media__wrapper'),_0x3998a5['render'](_0x1189ac,_0x129586['editing']['view']['domConverter']),_0x563550['replaceWith'](_0x1189ac);}}}),_0x44e292[_0x172289]=_0x360517['innerHTML']);}return _0x44e292;}['_sortRoots'](_0x1a8281){if(!function(_0x1a1e6b){return void 0x0!==_0x1a1e6b['getRootsAttributes'];}(_0x1a8281))return _0x1a8281['model']['document']['getRootNames']();const _0x10aedd=[],_0x2cfa9a=new Map();for(const _0x48f5eb of _0x1a8281['model']['document']['getRootNames']()){const _0x3cac46=_0x1a8281['editing']['view']['getDomRoot'](_0x48f5eb)['getClientRects']()['item'](0x0);_0x10aedd['push'](_0x48f5eb),_0x2cfa9a['set'](_0x48f5eb,_0x3cac46);}return _0x10aedd['sort']((_0x164676,_0x43105f)=>{const _0x28c77c=_0x2cfa9a['get'](_0x164676),_0x473183=_0x2cfa9a['get'](_0x43105f);return _0x28c77c['y']-_0x473183['y']||_0x28c77c['x']-_0x473183['x'];}),_0x10aedd;}}class te extends _0x4bc43a{static get['requires'](){return[T,_0x339813];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ad3eb){super(_0x2ad3eb),_0x2ad3eb['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2ad3eb['config']['define']('trackChanges.preview.renderFunction',(_0x54355f,_0x4b02ea)=>{for(const _0x492bde of _0x4b02ea)_0x54355f['appendChild'](_0x492bde);});}}export{as 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 Qt,Plugin as _0x57a03e,PendingActions as _0x241f6a,icons as _0x3e595e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x46ed90,ObservableMixin as _0x10e46c,uid as _0x10a187,insertToPriorityArray as _0x1b87f0,priorities as _0x458afa,logWarning as _0xc0772e,getEnvKeystrokeText as _0x4aff40,FocusTracker as _0xf45791,KeystrokeHandler as _0xb2b1f1,Collection as _0x12ee00}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2cb6bd,View as _0x2b7e33,ViewCollection as _0x5ef1fd,FocusCycler as ts,ViewModel as _0x59794b,createDropdown as _0x317481,SplitButtonView as _0x36f765,addListToDropdown as _0x347310,MenuBarMenuView as _0x159d99,MenuBarMenuListView as _0x55d4d6,ListSeparatorView as _0x36f0d0,MenuBarMenuListItemView as _0x47716e,MenuBarMenuListItemButtonView as _0x48228b,BodyCollection as _0x3e344a,Dialog as _0x21cc22}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x25a128,hashObject as _0x2c181c,surroundingMarkersDetector as _0x212fc9,FOCUS_ANNOTATION_KEYSTROKE as _0x2db86e,AriaDescriptionView as _0x1330d1,setupThreadKeyboardNavigation as _0xd5d996,trimHtml as _0x3e9d2,UserView as _0x592ecf,LateFocusButtonView as _0x537bf2,getDateTimeFormatter as _0x58089b,getAllMarkersDomElementsSorted as _0x5b4d51,sanitizeEditorConfig as _0x195234}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1b7de5,LiveRange as _0x4da4a9,LivePosition as _0x4161d1,DowncastWriter as _0x3043ab}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x578877,toWidget as _0x4110e5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3ad2fc,set as _0x4ad502,isEqual as _0x32ab49,unset as _0x4bcc06,omit as Et}from'lodash-es';import{Delete as _0x66c88e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x23e3ce,ShiftEnter as _0x5c51ca}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x2ee911,_0x2f8dbc){super(_0x2ee911),this['_enabledCommands']=_0x2f8dbc,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 _0x532230 of this['editor']['commands']['commands']())_0x532230['affectsData']&&!this['_enabledCommands']['has'](_0x532230)&&_0x532230['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4b8935 of this['editor']['commands']['commands']())_0x4b8935['affectsData']&&!this['_enabledCommands']['has'](_0x4b8935)&&_0x4b8935['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x3c3a9a,_0x3bdf4e){super(_0x3c3a9a),this['_suggestions']=_0x3bdf4e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x118fb7){const _0x4ba1d5=this['_suggestions']['get'](_0x118fb7);if(!_0x4ba1d5)throw new _0x46ed90('track-changes-accept-suggestion-not-found',this);const _0x4a6417=_0x4ba1d5['getRanges']();this['editor']['model']['canEditAt'](_0x4a6417)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4ba1d5);}}class R extends Qt{['_suggestions'];constructor(_0x177f6a,_0x18440c){super(_0x177f6a),this['_suggestions']=_0x18440c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x519404){const _0x31a30c=this['_suggestions']['get'](_0x519404);if(!_0x31a30c)throw new _0x46ed90('track-changes-discard-suggestion-not-found',this);const _0x49debc=_0x31a30c['getRanges']();this['editor']['model']['canEditAt'](_0x49debc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x31a30c);}}function ns(_0x23e6c2,_0x4b3bf2){let _0x47a15a='';return _0x47a15a+=_0x23e6c2['split']('*')['map']((_0x4b8914,_0x552c87)=>_0x552c87%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4b8914)+'</span>':nn(_0x4b8914))['join'](''),_0x4b3bf2&&(_0x47a15a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4b3bf2['value']+'\x22\x20title=\x22'+_0x4b3bf2['title']+'\x22></span>'),_0x47a15a;}function nn(_0x55d02d){const _0x196e6c=document['createElement']('span');return _0x196e6c['innerText']=_0x55d02d,_0x196e6c['innerHTML'];}function Xt(_0x1155eb){return _0x1155eb['sort']((_0x51fd27,_0x1e1a61)=>'deletion'==_0x51fd27['type']&&'deletion'!=_0x1e1a61['type']?-0x1:'deletion'!=_0x51fd27['type']&&'deletion'==_0x1e1a61['type']?0x1:0x0);}function to(_0x5a092f,_0x5a45ca){let _0x3fdd8b,_0x5bb1ce=0x0;const _0x19b422=[],_0x4b3fad=_0x5a45ca['schema'];for(;_0x5bb1ce<_0x5a092f['length'];){const _0x7e5630=_0x5a092f[_0x5bb1ce],_0x2b11ea=_0x5a092f[_0x5bb1ce+0x1];_0x3fdd8b||(_0x3fdd8b=_0x5a45ca['createPositionBefore'](_0x7e5630)),on(_0x5a45ca,_0x7e5630,_0x2b11ea)||(_0x19b422['push'](_0x5a45ca['createRange'](_0x3fdd8b,_0x4b3fad['isObject'](_0x7e5630)?_0x5a45ca['createPositionAfter'](_0x7e5630):_0x5a45ca['createPositionAt'](_0x7e5630,'end'))),_0x3fdd8b=null),_0x5bb1ce++;}return _0x19b422;}function on(_0x3aecb9,_0x45a5af,_0x290d0c){if(!_0x290d0c)return!0x1;const _0xdb3fb6=_0x3aecb9['createPositionAfter'](_0x45a5af),_0x5a9b71=_0x3aecb9['createPositionBefore'](_0x290d0c);return _0xdb3fb6['isTouching'](_0x5a9b71);}function Yt(_0x14de25,_0x2b0ed7,_0x51609a){for(;_0x51609a['length'];){const _0x27890b=_0x51609a['splice'](0x0,0x64);_0x14de25['change'](()=>{for(const _0x2744ee of _0x27890b)_0x2744ee['isInContent']&&_0x2b0ed7['execute'](_0x2744ee['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x40dfda,_0x70716b,_0xa52a88){super(_0x40dfda),this['_command']=_0x70716b,this['_suggestions']=_0xa52a88,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x350676=Array['from'](this['_suggestions']['values']())['some'](_0x379d27=>_0x379d27['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x350676;}['execute'](){const _0x36b0e4=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x587f6b of _0x36b0e4){const _0x5a723e=_0x587f6b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a723e))return;}Yt(this['editor']['model'],this['_command'],_0x36b0e4);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x343f33,_0x3e3ae6,_0xb7e478){super(_0x343f33),this['_command']=_0x3e3ae6,this['_suggestions']=_0xb7e478,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ce0c1=this['editor']['model']['document']['selection'],_0x4d61be=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x157e6d,_0x4224a4){const _0x5a377d=Array['from'](_0x157e6d['getRanges']()),_0x28f4b8=new Set();for(const _0x4176d4 of _0x4224a4)if(_0x4176d4['isInContent']){for(const _0x2891ae of _0x5a377d)for(const _0x39094d of _0x4176d4['getRanges']())(_0x2891ae['isIntersecting'](_0x39094d)||_0x157e6d['isCollapsed']&&!_0x4176d4['isMultiRange']&&_0x4176d4['next']&&_0x39094d['end']['isTouching'](_0x2891ae['start']))&&_0x28f4b8['add'](_0x4176d4);}return _0x28f4b8;}(_0x3ce0c1,_0x4d61be),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x137149=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x3fa79e of _0x137149){const _0x3e177a=_0x3fa79e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e177a))return;}Yt(this['editor']['model'],this['_command'],_0x137149);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x10e46c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5b3f69,_0x8dff01){super(),this['id']=_0x8dff01['id'],this['type']=_0x8dff01['type'],this['subType']=_0x8dff01['subType']||null,this['author']=_0x8dff01['author'],this['creator']=_0x8dff01['creator']||_0x8dff01['author'],this['isExternal']=Boolean(_0x8dff01['attributes']&&_0x8dff01['attributes']['@external']),this['data']=null,this['_model']=_0x5b3f69,this['_onAccept']=_0x8dff01['onAccept'],this['_onDiscard']=_0x8dff01['onDiscard'],this['_onAttributesChange']=_0x8dff01['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x8dff01['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 _0x5334f6=this;for(;_0x5334f6['previous'];)_0x5334f6=_0x5334f6['previous'];return _0x5334f6;}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'](_0x216922){this['_markerNames']['add'](_0x216922);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3802f8=>this['_model']['markers']['get'](_0x3802f8))['filter'](_0x2259f0=>_0x2259f0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x393ae2=>{for(const _0x4a1585 of this['getMarkers']())_0x393ae2['removeMarker'](_0x4a1585);}),this['_markerNames']['clear']();}['removeMarker'](_0x117a15){this['_model']['change'](_0x27a51b=>{_0x27a51b['removeMarker'](_0x117a15);}),this['_markerNames']['delete'](_0x117a15);}['addRange'](_0x126599){const _0x19f230='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x19f230),this['_model']['change'](_0x55f737=>{_0x55f737['addMarker'](_0x19f230,{'range':_0x126599,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a4e61){for(const _0x3e575c of this['getRanges']())if(_0x3e575c['isIntersecting'](_0x3a4e61))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x269cb6=>_0x269cb6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5c5ec5,_0x455a6b)=>[..._0x5c5ec5,..._0x455a6b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xcf57ae=this['getRanges']();if(0x1!=_0xcf57ae['length'])return null;const _0x5de489=_0xcf57ae[0x0],_0x1250dc=_0x5de489['start']['nodeAfter'],_0x14e19c=_0x5de489['end']['nodeBefore'];return _0x1250dc instanceof _0x1b7de5?_0x1250dc!=_0x14e19c?null:_0x1250dc: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 _0x3033e8=[];let _0xed5805=this['head'];for(;_0xed5805;)_0x3033e8['push'](_0xed5805),_0xed5805=_0xed5805['next'];return _0x3033e8;}['setAttribute'](_0xd96548,_0x5be314){const _0x34d250=_0x3ad2fc(this['attributes']);_0x4ad502(_0x34d250,_0xd96548,_0x5be314),_0x32ab49(_0x34d250,this['attributes'])||(this['attributes']=_0x34d250,this['_onAttributesChange'](_0x34d250));}['removeAttribute'](_0x3723fa){const _0x19e125=_0x3ad2fc(this['attributes']);_0x4bcc06(_0x19e125,_0x3723fa),_0x32ab49(_0x19e125,this['attributes'])||(this['attributes']=_0x19e125,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 _0x10a187()['substr'](0x1,0x5);}}function o(_0x30c562,_0xa0607e,_0x2d40b1){const _0x43ef5a=_0x30c562['t'],t=_0x30c562['t'];switch(_0xa0607e){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',_0x2d40b1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d40b1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d40b1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d40b1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d40b1);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',_0x2d40b1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d40b1);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',_0x2d40b1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d40b1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d40b1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d40b1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d40b1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d40b1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2d40b1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d40b1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d40b1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d40b1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d40b1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d40b1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d40b1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d40b1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d40b1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d40b1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d40b1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d40b1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d40b1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d40b1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d40b1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d40b1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d40b1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d40b1);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'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d40b1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2d40b1);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 _0x43ef5a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2d40b1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x43ef5a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2d40b1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2d40b1);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'},_0x2d40b1);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'},_0x2d40b1);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'},_0x2d40b1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xa0607e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x7a28ca,_0x564695){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x7a28ca,this['_locale']=_0x564695;}['getDescriptions'](_0x311a91){const _0x412f1c=[],_0x232a4b=new Set(),_0x2d7072=new Set();for(let _0x46c301=0x0;_0x46c301<_0x311a91['length'];_0x46c301++){const _0x24b606=_0x311a91[_0x46c301];if(!_0x24b606['isInContent'])continue;const _0x526521=this['_handleCustomCallbackDescription'](_0x24b606);if(_0x526521){if(null!=_0x24b606['subType']){if(_0x232a4b['has'](_0x24b606['subType']))continue;_0x232a4b['add'](_0x24b606['subType']);}_0x412f1c['push'](_0x526521);}else{if('attribute'!=_0x24b606['type'])'insertion'!=_0x24b606['type']&&'deletion'!=_0x24b606['type']||this['_handleInsertRemoveSuggestionDescription'](_0x412f1c,_0x24b606,_0x311a91[_0x46c301+0x1]);else{const _0x390ea8=_0x24b606['data']['key'];if(_0x2d7072['has'](_0x390ea8))continue;_0x2d7072['add'](_0x24b606['data']['key']),_0x390ea8==m?this['_handleRenameSuggestionDescription'](_0x412f1c,_0x24b606):this['_handleAttributeSuggestionDescription'](_0x412f1c,_0x24b606);}}}return this['_resolveDescriptionItems'](_0x412f1c);}['registerDescriptionCallback'](_0x5aadd5){this['_customCallbacks']['push'](_0x5aadd5);}['registerElementLabel'](_0x51cb74,_0x4857c0,_0x51d55a=_0x458afa['normal']){'function'==typeof _0x51cb74?_0x1b87f0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x51cb74,'label':_0x4857c0,'priority':_0x51d55a}):this['_itemLabels']['set'](_0x51cb74,_0x4857c0);}['registerAttributeLabel'](_0x235941,_0x325f8f){this['_attributeLabels']['set'](_0x235941,_0x325f8f);}['getItemLabel'](_0x25bd5d,_0x3699ce=0x1){let _0x484843;for(const _0x18032a of this['_itemLabelsCallbacks'])if(_0x18032a['matchingCallback'](_0x25bd5d)){_0x484843=_0x18032a['label'];break;}return _0x484843||(_0x484843=this['_itemLabels']['get'](_0x25bd5d['name'])),_0x484843?_0x484843(_0x3699ce):0x1!==_0x3699ce?_0x3699ce+'\x20'+_0x25bd5d['name']+'s':''+_0x25bd5d['name'];}['_addDescriptionItems'](_0x5cb483,_0x5e3d60){const _0x407bb2=_0x5e3d60['getFirstRange']()['getWalker'](),_0x14e715='insertion'==_0x5e3d60['type']?'add':'remove';for(const _0x15b738 of _0x407bb2){const _0x442d40=_0x15b738['item'],_0x372bd7=_0x5cb483[_0x5cb483['length']-0x1];if(_0x442d40['is']('$textProxy'))_0x372bd7&&_0x372bd7['type']['indexOf']('Container')>-0x1&&_0x5cb483['pop'](),_0x372bd7&&'text'==_0x372bd7['type']?_0x372bd7[_0x14e715]+=_0x442d40['data']:_0x5cb483['push']({'type':'text','add':'add'==_0x14e715?_0x442d40['data']:'','remove':'remove'==_0x14e715?_0x442d40['data']:''});else{if(this['_schema']['isObject'](_0x442d40)){const _0x1851b3=_0x442d40;if(_0x372bd7&&_0x372bd7['type']['indexOf']('Container')>-0x1&&_0x5cb483['pop'](),'elementEnd'==_0x15b738['type'])continue;_0x372bd7&&_0x372bd7['type']==_0x14e715+'Object'&&_0x372bd7['element']['name']==_0x1851b3['name']?_0x372bd7['quantity']++:_0x5cb483['push']({'type':_0x14e715+'Object','element':_0x1851b3,'quantity':0x1}),_0x407bb2['skip'](_0x4fb078=>!('elementEnd'==_0x4fb078['type']&&_0x4fb078['item']==_0x442d40));}else{if(this['_schema']['checkChild'](_0x442d40,'$text')||_0x442d40['is']('element','softBreak')){const _0x55216c=_0x442d40;if('add'==_0x14e715&&'elementStart'==_0x15b738['type']||'remove'==_0x14e715&&'elementEnd'==_0x15b738['type'])continue;if(_0x372bd7&&-0x1==_0x372bd7['type']['indexOf']('Container')){'text'==_0x372bd7['type']&&(_0x372bd7[_0x14e715]+='\x0a');continue;}let _0x444b5e;if(_0x444b5e='add'==_0x14e715?_0x55216c['nextSibling']&&!this['_schema']['isObject'](_0x55216c['nextSibling'])?_0x55216c['nextSibling']:null:_0x55216c['previousSibling']&&!this['_schema']['isObject'](_0x55216c['previousSibling'])?_0x55216c['previousSibling']:null,_0x55216c['isEmpty']||_0x444b5e&&_0x444b5e['isEmpty']){const _0x35f456=_0x444b5e&&_0x444b5e['isEmpty']?_0x444b5e:_0x55216c;_0x372bd7&&_0x372bd7['type']==_0x14e715+'EmptyContainer'&&_0x372bd7['element']['name']==_0x35f456['name']?_0x372bd7['quantity']++:_0x5cb483['push']({'type':_0x14e715+'EmptyContainer','element':_0x35f456,'quantity':0x1});}else _0x5cb483['push']({'type':_0x14e715+'Container','element':_0x55216c});}}}}}['_resolveDescriptionItems'](_0x2ceb38){const _0x49c4a8=this['_locale'],_0x3385a4=[],_0x59a959=[],_0x2446f8=[];for(const _0x4f1130 of _0x2ceb38)switch(_0x4f1130['type']){case'text':if(_0x4f1130['add']=_0x4f1130['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f1130['remove']=_0x4f1130['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f1130['add']&&''!=_0x4f1130['remove']){_0x3385a4['push']({'type':'replace','content':o(_0x49c4a8,'REPLACE_TEXT',['\x22'+_0x4f1130['remove']+'\x22','\x22'+_0x4f1130['add']+'\x22'])});continue;}if(null!=_0x4f1130['add']['match'](/^ +$/)){_0x3385a4['push']({'type':'insertion','content':o(_0x49c4a8,'*Insert:*\x20%0',o(_0x49c4a8,'ELEMENT_SPACE',_0x4f1130['add']['length']))});continue;}if(null!=_0x4f1130['remove']['match'](/^ +$/)){_0x3385a4['push']({'type':'deletion','content':o(_0x49c4a8,'*Remove:*\x20%0',o(_0x49c4a8,'ELEMENT_SPACE',_0x4f1130['remove']['length']))});continue;}if(''!=_0x4f1130['add']){_0x3385a4['push']({'type':'insertion','content':o(_0x49c4a8,'*Insert:*\x20%0','\x22'+_0x4f1130['add']+'\x22')});continue;}_0x3385a4['push']({'type':'deletion','content':o(_0x49c4a8,'*Remove:*\x20%0','\x22'+_0x4f1130['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3385a4['push']({'type':'insertion','content':o(_0x49c4a8,'*Insert:*\x20%0',this['getItemLabel'](_0x4f1130['element'],_0x4f1130['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3385a4['push']({'type':'deletion','content':o(_0x49c4a8,'*Remove:*\x20%0',this['getItemLabel'](_0x4f1130['element'],_0x4f1130['quantity']))});continue;case'addContainer':_0x3385a4['push']({'type':'insertion','content':o(_0x49c4a8,'*Split:*\x20%0',this['getItemLabel'](_0x4f1130['element'],_0x4f1130['quantity']))});continue;case'removeContainer':_0x3385a4['push']({'type':'deletion','content':o(_0x49c4a8,'*Merge:*\x20%0',this['getItemLabel'](_0x4f1130['element'],_0x4f1130['quantity']))});continue;case'addFormat':_0x59a959['push'](_0x4f1130['key']);continue;case'removeFormat':_0x2446f8['push'](_0x4f1130['key']);continue;default:_0x3385a4['push'](_0x4f1130);}if(_0x59a959['length']){const _0x3066e8=_0x59a959['map'](_0x380f6a=>this['_attributeLabels']['has'](_0x380f6a)?this['_attributeLabels']['get'](_0x380f6a):_0x380f6a)['join'](',\x20');_0x3385a4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3066e8)});}if(_0x2446f8['length']){const _0x120f49=_0x2446f8['map'](_0x3cf55e=>this['_attributeLabels']['has'](_0x3cf55e)?this['_attributeLabels']['get'](_0x3cf55e):_0x3cf55e)['join'](',\x20');_0x3385a4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x120f49)});}return _0x3385a4;}['_handleCustomCallbackDescription'](_0xe4c298){for(const _0x56cbdd of this['_customCallbacks']){const _0x4f9e8d=_0x56cbdd(_0xe4c298);if(_0x4f9e8d&&'type'in _0x4f9e8d)return _0x4f9e8d;}}['_handleAttributeSuggestionDescription'](_0x274d6e,_0x1b330f){const _0x3f26c1=_0x1b330f['data'],_0x390c45=void 0x0===_0x3f26c1['newValue']?'removeFormat':'addFormat';_0x274d6e['push']({'type':_0x390c45,'key':_0x3f26c1['key']});}['_handleRenameSuggestionDescription'](_0x5e124a,_0x46d146){_0x5e124a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46d146['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x140d5d,_0x5447be,_0xc1e85d){if(this['_addDescriptionItems'](_0x140d5d,_0x5447be),_0xc1e85d&&_0xc1e85d['getFirstRange']()&&!_0x5447be['getFirstRange']()['end']['isEqual'](_0xc1e85d['getFirstRange']()['start'])){const _0x328d22=_0x140d5d[_0x140d5d['length']-0x1],_0x53ed8b='insertion'==_0x5447be['type']?'add':'remove';_0x328d22&&'text'==_0x328d22['type']&&(_0x328d22[_0x53ed8b]+='\x0a');}}}class U extends _0x57a03e{['afterInit'](){const _0x39dfb3=this['editor'],_0x4c63aa=_0x39dfb3['plugins']['get']('TrackChangesEditing');_0x39dfb3['commands']['get']('showAIAssistant')&&_0x4c63aa['enableCommand']('showAIAssistant');}}class V extends _0x57a03e{['afterInit'](){const _0x561e9c=this['editor'],_0x194053=_0x561e9c['locale'];if(!_0x561e9c['plugins']['has']('AlignmentEditing'))return;const _0x6f7e65=_0x561e9c['plugins']['get']('TrackChangesEditing');_0x6f7e65['enableDefaultAttributesIntegration']('alignment'),_0x6f7e65['registerBlockAttribute']('alignment'),_0x6f7e65['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x194053,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x157ce8=this['editor'],_0x4cec9e=_0x157ce8['locale'];_0x157ce8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3503db=>{if('formatBlock'!=_0x3503db['type'])return;const {data:_0x463a36}=_0x3503db;if(_0x463a36&&'alignment'==_0x463a36['commandName']){const _0x1ceb56=_0x463a36['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4cec9e,'*Format:*\x20%0',function(_0x40e790){switch(_0x40e790){case'left':return o(_0x4cec9e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4cec9e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4cec9e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4cec9e,'FORMAT_JUSTIFY_TEXT');}}(_0x1ceb56))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x57a03e{['afterInit'](){const _0x11a696=this['editor'],_0x5ea1f0=_0x11a696['plugins']['get']('TrackChangesEditing'),_0x3ebc89=_0x11a696['locale'];for(const _0x113d6c of ti){if(!_0x11a696['plugins']['has'](_0x113d6c))continue;const _0x742cb1=_0x113d6c['slice'](0x0,-0x7)['toLowerCase'](),_0x29aaed='FORMAT_'+_0x742cb1['toUpperCase']();_0x5ea1f0['enableDefaultAttributesIntegration'](_0x742cb1),_0x5ea1f0['registerInlineAttribute'](_0x742cb1),_0x5ea1f0['descriptionFactory']['registerAttributeLabel'](_0x742cb1,o(_0x3ebc89,_0x29aaed));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfbaee9=this['editor'],_0x565929=_0xfbaee9['locale'],_0x39f28e=_0xfbaee9['plugins']['get']('TrackChangesEditing');function _0x32d859(_0x1a51c8,_0x2747da){_0x39f28e['descriptionFactory']['registerDescriptionCallback'](_0x1919da=>{if('formatInline'!=_0x1919da['type'])return;const {data:_0x2ec659}=_0x1919da;return _0x2ec659&&_0x2ec659['commandName']===_0x1a51c8?_0x2ec659['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x565929,'*Format:*\x20%0',_0x2747da)}:{'type':'format','content':o(_0x565929,'*Remove\x20format:*\x20%0',_0x2747da)}:void 0x0;});}_0x32d859('bold',o(_0x565929,'FORMAT_BOLD')),_0x32d859('italic',o(_0x565929,'FORMAT_ITALIC')),_0x32d859('underline',o(_0x565929,'FORMAT_UNDERLINE')),_0x32d859('code',o(_0x565929,'FORMAT_CODE')),_0x32d859('strikethrough',o(_0x565929,'FORMAT_STRIKETHROUGH')),_0x32d859('subscript',o(_0x565929,'FORMAT_SUBSCRIPT')),_0x32d859('superscript',o(_0x565929,'FORMAT_SUPERSCRIPT'));}}class F extends _0x57a03e{['afterInit'](){const _0x352a97=this['editor'],_0x40e5bd=_0x352a97['locale'];if(!_0x352a97['plugins']['has']('BlockQuoteEditing'))return;const _0x481d8c=_0x352a97['plugins']['get']('TrackChangesEditing'),_0x22168b=this['editor']['commands']['get']('blockQuote');_0x481d8c['enableCommand']('blockQuote',(_0x4b0e9f,_0x481207={})=>{const _0x1f2b5f=this['editor']['model']['document']['selection'],_0x2f906c=_0x481207&&void 0x0!==_0x481207['forceValue']?_0x481207['forceValue']:!_0x22168b['value'];let _0x6e85c6=[];if(_0x2f906c){const _0x17c713=Array['from'](_0x1f2b5f['getSelectedBlocks']())['filter'](_0x41f30c=>oo(_0x41f30c)||function(_0x37c119,_0x3897ac){const _0x4b771d=_0x3897ac['checkChild'](_0x37c119['parent'],'blockQuote'),_0x5da567=_0x3897ac['checkChild'](['$root','blockQuote'],_0x37c119);return _0x4b771d&&_0x5da567;}(_0x41f30c,this['editor']['model']['schema']));_0x6e85c6=to(_0x17c713,_0x352a97['model']);}else{const _0x203203=Array['from'](_0x1f2b5f['getSelectedBlocks']())['filter'](_0x53141e=>oo(_0x53141e));_0x6e85c6=to(_0x203203,_0x352a97['model']);}_0x352a97['model']['change'](()=>{for(const _0x2583a7 of _0x6e85c6)_0x481d8c['markBlockFormat'](_0x2583a7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2f906c}]});});}),_0x481d8c['descriptionFactory']['registerDescriptionCallback'](_0x180a1c=>{const {data:_0x1111f5}=_0x180a1c;if(_0x1111f5&&'blockQuote'==_0x1111f5['commandName']){const _0x5066ae=o(_0x40e5bd,'ELEMENT_BLOCK_QUOTE');return _0x1111f5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40e5bd,'*Set\x20format:*\x20%0',_0x5066ae)}:{'type':'format','content':o(_0x40e5bd,'*Remove\x20format:*\x20%0',_0x5066ae)};}});}}function oo(_0x238ffb){return'blockQuote'==_0x238ffb['parent']['name'];}class L extends _0x57a03e{['afterInit'](){const _0x28465f=this['editor'],_0x2c5d4d=_0x28465f['locale'],_0x55da5e=_0x28465f['plugins']['get']('TrackChangesEditing');_0x28465f['plugins']['has']('BookmarkEditing')&&(_0x55da5e['enableCommand']('insertBookmark'),_0x55da5e['enableDefaultAttributesIntegration']('updateBookmark'),_0x55da5e['registerBlockAttribute']('bookmarkId'),_0x55da5e['descriptionFactory']['registerDescriptionCallback'](_0x542414=>{if('insertion'!=_0x542414['type']&&'deletion'!=_0x542414['type']&&'attribute'!=_0x542414['type'])return;const _0x37564a=_0x542414['getContainedElement']();if(null==_0x37564a)return;if(!_0x37564a['is']('element','bookmark'))return;const _0x335bb5=_0x37564a['getAttribute']('bookmarkId');if('insertion'==_0x542414['type'])return{'type':'insertion','content':o(_0x2c5d4d,'*Insert:*\x20%0','\x22'+_0x335bb5+'\x22\x20'+o(_0x2c5d4d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x542414['type'])return{'type':'deletion','content':o(_0x2c5d4d,'*Remove:*\x20%0','\x22'+_0x335bb5+'\x22\x20'+o(_0x2c5d4d,'ELEMENT_BOOKMARK'))};const {data:_0x4a894c}=_0x542414;if(!_0x4a894c||'bookmarkId'!=_0x4a894c['key'])return;return{'type':'format','content':o(_0x2c5d4d,'*Set\x20bookmark:*\x20%0','\x22'+_0x4a894c['newValue']+'\x22')};}));}}class J extends _0x57a03e{['afterInit'](){const _0x3636bb=this['editor'];_0x3636bb['plugins']['has']('CaseChange')&&(_0x3636bb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3636bb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3636bb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x57a03e{['afterInit'](){const _0x272b95=this['editor'];_0x272b95['commands']['get']('ckbox')&&_0x272b95['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x57a03e{['afterInit'](){const _0x2bef31=this['editor'];if(!_0x2bef31['plugins']['has']('CodeBlock'))return;const _0x4be45c=_0x2bef31['plugins']['get']('TrackChangesEditing'),_0x22399c=_0x2bef31['locale'],_0x1fa920=_0x2bef31['config']['get']('codeBlock')['languages'],_0x4c59c0=_0x2bef31['commands']['get']('codeBlock');_0x4be45c['enableCommand']('indentCodeBlock'),_0x4be45c['enableCommand']('outdentCodeBlock'),_0x4be45c['enableCommand']('codeBlock',(_0x86f356,_0x44ec8f={})=>{const _0x2441a4=_0x2bef31['model'],_0x267fd9=_0x2bef31['model']['document']['selection'],_0x39c84f=_0x44ec8f&&void 0x0!==_0x44ec8f['forceValue']?_0x44ec8f['forceValue']:!_0x4c59c0['value'];let _0x1eb403;_0x44ec8f['language']||(_0x44ec8f['language']=_0x1fa920[0x0]['language']),_0x1eb403=_0x39c84f?Array['from'](_0x267fd9['getSelectedBlocks']())['filter'](_0x1b2dfb=>eo(_0x1b2dfb)||function(_0x425a85,_0x4db3b4){if(_0x425a85['is']('rootElement')||_0x4db3b4['isLimit'](_0x425a85))return!0x1;return _0x4db3b4['checkChild'](_0x425a85['parent'],'codeBlock');}(_0x1b2dfb,_0x2441a4['schema'])):Array['from'](_0x267fd9['getSelectedBlocks']())['filter'](_0x55af00=>eo(_0x55af00));const _0x1bd273=to(_0x1eb403,_0x2441a4);_0x2441a4['change'](()=>{for(const _0x192bdb of _0x1bd273)_0x4be45c['markBlockFormat'](_0x192bdb,{'commandName':'codeBlock','commandParams':[{..._0x44ec8f,'forceValue':_0x39c84f}],'formatGroupId':'blockName'});});}),(_0x4be45c['descriptionFactory']['registerElementLabel']('codeBlock',_0x8fc51d=>o(_0x22399c,'ELEMENT_CODE_BLOCK',_0x8fc51d)),_0x4be45c['descriptionFactory']['registerDescriptionCallback'](_0x59a6f3=>{if('formatBlock'!=_0x59a6f3['type'])return;const _0x49ebc0=_0x22399c['t'],{data:_0x3fc15c}=_0x59a6f3;if(!_0x3fc15c||'codeBlock'!=_0x3fc15c['commandName'])return;const _0x80b509=_0x3fc15c['commandParams'][0x0]['language'],_0x176d75=_0x49ebc0(_0x1fa920['find'](_0x355afc=>_0x355afc['language']===_0x80b509)['label'])['toLowerCase']();return _0x3fc15c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22399c,'*Set\x20format:*\x20%0',o(_0x22399c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x176d75+')')}:{'type':'format','content':o(_0x22399c,'*Remove\x20format:*\x20%0',o(_0x22399c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x133974){return'codeBlock'==_0x133974['name'];}class z extends _0x57a03e{['afterInit'](){const _0x57bdd2=this['editor'];if(!_0x57bdd2['plugins']['has']('CommentsEditing'))return;_0x57bdd2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24e59e,_0xf3a751,_0x4ff6b4){const _0x5ef4bb=[];for(const _0x5cef74 of _0xf3a751['getItems']())_0x5cef74['hasAttribute'](_0x24e59e)&&_0x5ef4bb['push'](_0x4ff6b4['createRangeOn'](_0x5cef74));return _0x5ef4bb;}function De(_0x46fdc7,_0x5f4a6d,{showActiveMarker:_0x464514=!0x0}={}){const _0x3cc272=_0x46fdc7['plugins']['get']('TrackChangesEditing');return(_0x2d85f4,_0x44f101,_0x423b9e)=>{if(!_0x423b9e['consumable']['test'](_0x44f101['markerRange'],_0x2d85f4['name']))return;const _0x30573d=_0x44f101['markerRange']['getWalker'](),_0x5e7666=_0x44f101['markerRange']['start'],_0x3d7855=_0x46fdc7['model']['schema'];let _0x3a1a23=null,_0x49f50e=null,_0x193b41=!0x1,_0x5841fd=!0x1;for(const _0xbe02c5 of _0x30573d){const _0x5809ed=_0xbe02c5['item'];_0x193b41=_0x193b41||_0x3d7855['isContent'](_0x5809ed);const _0x438e28=_0x423b9e['mapper']['toViewElement'](_0x5809ed);if(_0x438e28&&_0x438e28['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbe02c5['type']&&(_0x3d7855['isBlock'](_0x5809ed)&&!_0x3d7855['isLimit'](_0x5809ed)&&(_0x5809ed['nextSibling']||_0x5e7666['isAtEnd']?_0x3a1a23&&_0x3a1a23['parent']==_0x5809ed||(_0x3a1a23=_0x5809ed,_0x2bf853(_0xbe02c5['previousPosition']),_0x5841fd=!0x0):_0x49f50e=_0x49f50e||_0xbe02c5['previousPosition']));}function _0x2bf853(_0x8b4c75){const {authorId:_0x42916e}=_0x3cc272['_splitMarkerName'](_0x44f101['markerName']),_0x9e72f2=_0x423b9e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f4a6d,'data-author-id':_0x42916e}),_0x1cf01a=_0x423b9e['mapper']['toViewPosition'](_0x8b4c75);_0x464514&&_0x3cc272['activeMarkers']['includes'](_0x44f101['markerName'])&&_0x423b9e['writer']['addClass']('ck-suggestion-marker--active',_0x9e72f2),_0x423b9e['writer']['insert'](_0x1cf01a,_0x9e72f2),_0x423b9e['mapper']['bindElementToMarker'](_0x9e72f2,_0x44f101['markerName']);}_0x193b41||_0x5841fd||!_0x49f50e||_0x2bf853(_0x49f50e);};}class K extends _0x57a03e{static get['requires'](){return[_0x66c88e];}['init'](){const _0x380312=this['editor'],_0x49a3aa=_0x380312['plugins']['get']('TrackChangesEditing');_0x49a3aa['enableCommand']('delete');const _0xbd9f89=_0x380312['commands']['get']('deleteForward');_0x49a3aa['enableCommand']('deleteForward',(_0x5d6886,_0x46c5fb={})=>{const _0x32282b=_0x380312['model']['createSelection'](_0x380312['model']['document']['selection']);_0x32282b['isCollapsed']&&_0x380312['model']['modifySelection'](_0x32282b,{'direction':'forward','unit':_0x46c5fb['unit']});const _0x2ccfdd=_0x32282b['getFirstRange'](),_0x103de5=_0x4da4a9['fromRange'](_0x2ccfdd);let _0x5067be;_0x5d6886(_0x46c5fb),_0x5067be='$graveyard'==_0x103de5['root']['rootName']?_0x380312['model']['createRange'](_0x2ccfdd['start']):_0x380312['model']['createRange'](_0x103de5['start'],_0x103de5['end']),_0x103de5['detach'](),_0x380312['model']['enqueueChange'](_0xbd9f89['buffer']['batch'],_0xb52e44=>{_0xbd9f89['buffer']['lock'](),_0xb52e44['setSelection'](_0xb52e44['createRange'](_0x5067be['end'])),_0xbd9f89['buffer']['unlock']();});}),_0x380312['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x380312,'merge'),{'priority':'high'}),_0x380312['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x375e76,_0x25a895,_0xa0a1ce)=>{_0xa0a1ce['options']['showSuggestionHighlights']&&De(_0x380312,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x375e76,_0x25a895,_0xa0a1ce);},{'priority':'high'}),_0x380312['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x147e81,_0x2c867c,_0x277bb7)=>{const _0x2a2be5=_0x277bb7['mapper']['markerNameToElements'](_0x2c867c['markerName']);if(_0x2a2be5){for(const _0x221476 of _0x2a2be5)_0x221476['is']('uiElement')&&(_0x277bb7['mapper']['unbindElementFromMarkerName'](_0x221476,_0x2c867c['markerName']),_0x277bb7['writer']['remove'](_0x221476));}},{'priority':'high'});}}class W extends _0x57a03e{['afterInit'](){const _0x51269d=this['editor'];if(!_0x51269d['plugins']['has']('ListEditing'))return;const _0x2a2938=_0x51269d['locale'],_0x22e222=_0x51269d['plugins']['get']('TrackChangesEditing'),_0x30c071=_0x51269d['plugins']['has']('TodoListEditing'),_0x15fc70=!!_0x51269d['config']['get']('list.multiBlock');function _0x407fd5(_0xb3f21c){return{'type':'format','content':''+o(_0x2a2938,'*Set\x20format:*\x20%0',_0xb3f21c)};}function _0x55eda0(_0x39f806){return{'type':'format','content':''+o(_0x2a2938,'*Remove\x20format:*\x20%0',_0x39f806)};}_0x22e222['enableDefaultAttributesIntegration']('numberedList'),_0x22e222['enableDefaultAttributesIntegration']('bulletedList'),_0x22e222['enableDefaultAttributesIntegration']('customNumberedList'),_0x22e222['enableDefaultAttributesIntegration']('customBulletedList'),_0x22e222['enableDefaultAttributesIntegration']('indentList'),_0x22e222['enableDefaultAttributesIntegration']('outdentList'),_0x22e222['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x22e222['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x22e222['registerBlockAttribute']('listItemId'),_0x22e222['registerBlockAttribute']('listType'),_0x22e222['registerBlockAttribute']('listIndent'),_0x15fc70&&(_0x22e222['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x22e222['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x30c071&&(_0x22e222['enableDefaultAttributesIntegration']('todoList'),_0x22e222['enableDefaultAttributesIntegration']('checkTodoList'),_0x22e222['registerBlockAttribute']('todoListChecked'),_0x22e222['descriptionFactory']['registerDescriptionCallback'](_0x2617fb=>{const {data:_0x1a4b6f}=_0x2617fb;if(_0x1a4b6f&&'todoListChecked'==_0x1a4b6f['key'])return{'type':'format','content':_0x1a4b6f['newValue']?o(_0x2a2938,'*Check\x20item*'):o(_0x2a2938,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2c9971=>{if(_0x2c9971['batch']['isUndo'])return!0x1;let _0x50af44=!0x1;const _0xc85098=_0x22e222['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bf357=>'todoListChecked'===_0x22e222['_getAttributeKey'](_0x1bf357));for(const _0x34ac6e of _0xc85098){'todo'!=_0x34ac6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x22e222['_findSuggestions'](_0x34ac6e['getFirstRange'](),'attribute')['find'](_0xd4f30d=>'listType'===_0x22e222['_getAttributeKey'](_0xd4f30d['suggestion']))||(_0x2c9971['removeMarker'](_0x34ac6e['getFirstMarker']()),_0x50af44=!0x0));}return _0x50af44;})),_0x22e222['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2a2938,'FORMAT_INDENT'));const _0x5df25f={'type':'format','content':''};_0x22e222['descriptionFactory']['registerDescriptionCallback'](_0x521557=>{const {data:_0x3d472f}=_0x521557;if(!_0x3d472f||'listType'!=_0x3d472f['key'])return;let _0x21705d=_0x521557['head'];for(;_0x21705d;){if(_0x21705d['data']&&(('listStyle'==_0x21705d['data']['key']||'listMarkerStyle'==_0x21705d['data']['key'])&&(_0x21705d['data']['newValue']&&'default'!=_0x21705d['data']['newValue']||'default'!=_0x21705d['data']['oldValue']&&!_0x3d472f['newValue'])||!_0x15fc70&&_0x21705d['data']['key']==m))return _0x5df25f;_0x21705d=_0x21705d['next'];}if(null==_0x3d472f['newValue'])switch(_0x3d472f['oldValue']){case'bulleted':return _0x55eda0(o(_0x2a2938,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55eda0(o(_0x2a2938,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55eda0(o(_0x2a2938,'ELEMENT_TODO_LIST'));}switch(_0x3d472f['newValue']){case'bulleted':return _0x407fd5(o(_0x2a2938,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x407fd5(o(_0x2a2938,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x407fd5(o(_0x2a2938,'ELEMENT_TODO_LIST'));}}),_0x22e222['descriptionFactory']['registerDescriptionCallback'](_0x3da91e=>{const {data:_0x4fb90b}=_0x3da91e;if(_0x4fb90b&&'listIndent'==_0x4fb90b['key'])return null==_0x4fb90b['newValue']||null==_0x4fb90b['oldValue']&&0x0==_0x4fb90b['newValue']?_0x5df25f:void 0x0;}),_0x22e222['descriptionFactory']['registerDescriptionCallback'](_0x36c948=>{if('attribute'!=_0x36c948['type'])return;const {data:_0x5ee685}=_0x36c948;if(!_0x5ee685||'listItemId'!=_0x5ee685['key'])return;const _0x2abd67=Te(_0x36c948);return'newValue'==_0x2abd67?{'type':'format','content':o(_0x2a2938,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2abd67?{'type':'format','content':o(_0x2a2938,'*Split:*\x20list\x20item')}:_0x5df25f;}),_0x51269d['model']['document']['registerPostFixer'](_0x48ffe1=>this['listItemIdFixer'](_0x48ffe1)),_0x51269d['model']['document']['registerPostFixer'](_0x21844b=>this['noTrackChangesFixer'](_0x21844b)),_0x51269d['model']['document']['on']('change:data',(_0x4368a6,_0x42e454)=>{if(_0x42e454['isUndo']||!_0x42e454['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x11c48f){if(_0x11c48f['batch']['isUndo']||!_0x11c48f['batch']['isLocal'])return!0x1;let _0x24b8ba=!0x1;const _0xfe82d8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4587f8=>_0x4587f8['data']&&'listItemId'==_0x4587f8['data']['key'])['filter'](_0x4639f3=>_0x4639f3['data']['newValue']&&_0x4639f3['data']['oldValue']);for(const _0x330780 of _0xfe82d8)Te(_0x330780)||(_0x11c48f['removeMarker'](_0x330780['getFirstMarker']()),_0x24b8ba=!0x0);return _0x24b8ba;}['noTrackChangesFixer'](_0x4a129f){if(_0x4a129f['batch']['isUndo']||!_0x4a129f['batch']['isLocal'])return!0x1;const _0x34c769=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x34c769['trackChangesCommand']['value'])return!0x1;let _0x21eece=!0x1;const _0x2490f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x19d8fc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x15a8d1=>'attribute'==_0x15a8d1['type'])['filter'](_0xf788fe=>_0x2490f8['includes'](_0xf788fe['attributeKey']));if(0x0==_0x19d8fc['length'])return _0x21eece;for(const _0x2284cd of _0x19d8fc){const _0x5a58fc=_0x34c769['_findSuggestions'](_0x2284cd['range'],'attribute')['filter'](_0x44d9da=>!_0x44d9da['meta']['isNextTo'])['map'](_0x2d465f=>_0x2d465f['suggestion'])['filter'](_0x9d0ae0=>{const _0x2e519a=_0x34c769['_getAttributeKey'](_0x9d0ae0);return _0x2490f8['includes'](_0x2e519a);});if(_0x5a58fc['length']){for(const _0x30bf57 of _0x5a58fc)_0x4a129f['removeMarker'](_0x30bf57['getFirstMarker']());_0x21eece=!0x0;}}return _0x21eece;}['assureChains'](){const _0x12b1a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x433149=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32689c;const _0x50d338=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5cd3c2=>{if(_0x5cd3c2['data']['oldRange']||!_0x5cd3c2['data']['newRange'])return null;if(!_0x5cd3c2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1a1a5}=_0x12b1a1['_splitMarkerName'](_0x5cd3c2['name']);if(!_0x12b1a1['hasSuggestion'](_0x1a1a5))return null;const _0x3b263c=_0x12b1a1['getSuggestion'](_0x1a1a5);return _0x433149['includes'](_0x3b263c['data']['key']);})['map'](_0x1bc78c=>{const {id:_0x2d9281}=_0x12b1a1['_splitMarkerName'](_0x1bc78c['name']),_0x5a7c0=_0x12b1a1['getSuggestion'](_0x2d9281);return _0x32689c=_0x5a7c0['attributes']['groupId'],_0x5a7c0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x50d338['size'])return;const _0x246689=_0x12b1a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x221a57=>'attribute'==_0x221a57['type']&&_0x221a57['data']&&_0x433149['includes'](_0x221a57['data']['key'])&&_0x221a57['attributes']['groupId']!=_0x32689c)['map'](_0x1e67c9=>({'listItem':_0x1e67c9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1e67c9['attributes']['groupId']})),_0x2800b7=new Set();for(const {groupId:_0x1f7fbd,listItem:_0x56b1dc}of _0x246689)_0x50d338['has'](_0x56b1dc)&&_0x2800b7['add'](_0x1f7fbd);for(const _0x4af8f3 of _0x12b1a1['getSuggestions']())_0x2800b7['has'](_0x4af8f3['attributes']['groupId'])&&_0x4af8f3['setAttribute']('groupId',_0x32689c);}['_supportLegacySuggestions'](){const _0x40c8b=this['editor'],_0x5424e6=_0x40c8b['locale'],_0x46a9de=_0x40c8b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x46a9de['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37e216,_0x3087ea){const _0x33f291=[];for(let _0x47c4d2 of _0x37e216)_0x47c4d2['start']['nodeAfter']===_0x47c4d2['end']['parent']&&(_0x47c4d2=_0x40c8b['model']['createRange'](_0x40c8b['model']['createPositionAt'](_0x47c4d2['start']['nodeAfter'],0x0))),_0x33f291['push'](_0x47c4d2);_0x40c8b['model']['change'](_0x535f16=>{const _0x20215a=_0x40c8b['model']['document']['selection'],_0x1dec07=Array['from'](_0x20215a['getRanges']())['map'](_0x8801=>_0x4da4a9['fromRange'](_0x8801));_0x535f16['setSelection'](_0x33f291),_0x40c8b['commands']['get'](_0x3087ea['commandName'])['refresh'](),_0x3087ea['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x40c8b['execute'](_0x3087ea['commandName'],..._0x3087ea['commandParams']),_0x535f16['setSelection'](_0x1dec07);for(const _0x44632e of _0x1dec07)_0x44632e['detach']();});}),_0x46a9de['descriptionFactory']['registerElementLabel'](function(_0x57f290){const _0x239ab8=!_0x40c8b['model']['schema']['isObject'](_0x57f290),_0x2a7682=_0x57f290['previousSibling'],_0x32ff17=_0x57f290['nextSibling'],_0x2e0629=_0x57f290['getAttribute']('listItemId'),_0x35842c=!_0x2a7682||_0x2a7682['getAttribute']('listItemId')!==_0x2e0629,_0x4c036f=!_0x32ff17||_0x32ff17['getAttribute']('listItemId')!==_0x2e0629;return _0x239ab8&&Boolean(_0x2e0629)&&_0x35842c&&_0x4c036f;},_0x44db5d=>o(_0x5424e6,'ELEMENT_LIST_ITEM',_0x44db5d));}['_registerLegacyDescription'](){const _0x5280e6=this['editor'],_0x3ac154=_0x5280e6['locale'];function _0x5edc3c(_0x18f40c){const _0x5708a5=_0x5280e6['commands']['get']('bulletedList')['value'],_0x3c8550=_0x5280e6['commands']['get']('numberedList')['value'];return'numberedList'===_0x18f40c?_0x5708a5:_0x3c8550;}_0x5280e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d3c57){if('formatBlock'!=_0x5d3c57['type'])return;const {data:_0xccf872}=_0x5d3c57;if(!_0xccf872)return;let _0x29b308,_0x5cc86b,_0x4521d6,_0x1004b9;switch(_0xccf872['commandName']){case'bulletedList':_0x4521d6=_0xccf872['commandParams'][0x0]['forceValue'],_0x1004b9=_0x5edc3c(_0xccf872['commandName']),_0x29b308=_0x4521d6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1004b9&&_0x5280e6['config']['get']('list.multiBlock')||(_0x29b308='*Change\x20to:*\x20%0'),_0x5cc86b={'type':'format','content':o(_0x3ac154,_0x29b308,o(_0x3ac154,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4521d6=_0xccf872['commandParams'][0x0]['forceValue'],_0x1004b9=_0x5edc3c(_0xccf872['commandName']),_0x29b308=_0x4521d6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1004b9&&_0x5280e6['config']['get']('list.multiBlock')||(_0x29b308='*Change\x20to:*\x20%0'),_0x5cc86b={'type':'format','content':o(_0x3ac154,_0x29b308,o(_0x3ac154,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x29b308='*Indent:*\x20%0',_0x5cc86b={'type':'format','content':o(_0x3ac154,_0x29b308,o(_0x3ac154,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x29b308=function(_0x381fe4){const _0x5acec2=_0x381fe4['getFirstRange']();let _0x267e73=_0x5acec2['start']['nodeAfter'];for(;_0x267e73&&_0x5acec2['containsItem'](_0x267e73);){if(_0x267e73['getAttribute']('listIndent')>0x0)return!0x1;_0x267e73=_0x267e73['nextSibling'];}return!0x0;}(_0x5d3c57)?o(_0x3ac154,'*Format:*\x20remove\x20from\x20%0',o(_0x3ac154,function(_0x223499){return'ELEMENT_'+_0x223499['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d3c57))):o(_0x3ac154,'*Outdent:*\x20%0',o(_0x3ac154,'ELEMENT_LIST_ITEM')),_0x5cc86b={'type':'format','content':_0x29b308};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xccf872['multipleBlocks']&&(_0x29b308='*Merge:*\x20%0',_0x5cc86b={'type':'deletion','content':o(_0x3ac154,_0x29b308,o(_0x3ac154,'ELEMENT_LIST_ITEM'))});}return _0x5cc86b;});}}function Te(_0x5495c5){let _0x40d92d=_0x5495c5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40d92d;){const _0x316b81=_0x40d92d['getAttribute']('listItemId');if(!_0x316b81)return!0x1;if(_0x316b81==_0x5495c5['data']['newValue'])return'newValue';if(_0x316b81==_0x5495c5['data']['oldValue'])return'oldValue';_0x40d92d=_0x40d92d['previousSibling'];}return!0x1;}class Se extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a2208=this['editor']['config']['get']('list.properties'),_0xc569d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a2208['styles']&&(_0xc569d2['enableDefaultAttributesIntegration']('listStyle'),_0xc569d2['registerBlockAttribute']('listStyle')),_0x2a2208['reversed']&&(_0xc569d2['enableDefaultAttributesIntegration']('listReversed'),_0xc569d2['registerBlockAttribute']('listReversed')),_0x2a2208['startIndex']&&(_0xc569d2['enableDefaultAttributesIntegration']('listStart'),_0xc569d2['registerBlockAttribute']('listStart'));const _0xa91fa2={'type':'format','content':''};_0xc569d2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4c8675=this['editor']['locale'];_0xc569d2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4c8675,'FORMAT_LIST_REVERSED')),_0xc569d2['descriptionFactory']['registerDescriptionCallback'](_0x3e5f2d=>{const {data:_0xc9a2f8}=_0x3e5f2d;if(_0xc9a2f8&&'listReversed'==_0xc9a2f8['key'])return null==_0xc9a2f8['newValue']||0x0==_0xc9a2f8['newValue']&&null==_0xc9a2f8['oldValue']?_0xa91fa2:void 0x0;}),_0xc569d2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4c8675,'FORMAT_LIST_START')),_0xc569d2['descriptionFactory']['registerDescriptionCallback'](_0x4b4638=>{const {data:_0x265864}=_0x4b4638;if(_0x265864&&'listStart'==_0x265864['key'])return null==_0x265864['newValue']||0x1==_0x265864['newValue']&&null==_0x265864['oldValue']?_0xa91fa2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1997ae=>{if(_0x1997ae['batch']['isUndo'])return!0x1;let _0x9a0eea=!0x1;const _0x378a11=_0xc569d2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33ee60=>{const _0x506401=_0xc569d2['_getAttributeKey'](_0x33ee60);return'listStart'==_0x506401||'listReversed'==_0x506401;});for(const _0x1df951 of _0x378a11){const _0xda729d=_0x1df951['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xda729d||'customNumbered'==_0xda729d)continue;_0xc569d2['_findSuggestions'](_0x1df951['getFirstRange'](),'attribute')['find'](_0x5622a6=>'listType'==_0xc569d2['_getAttributeKey'](_0x5622a6['suggestion']))||(_0x1997ae['removeMarker'](_0x1df951['getFirstMarker']()),_0x9a0eea=!0x0);}return _0x9a0eea;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1dbeb5){const _0x219e98=this['editor']['locale'],{data:_0x524329}=_0x1dbeb5,_0x4f1c92={'type':'format','content':''};if(!_0x524329||'listStyle'!=_0x524329['key'])return;if(!_0x524329['oldValue'])return'default'==_0x524329['newValue']?_0x4f1c92:{'type':'format','content':''+o(_0x219e98,'*Set\x20format:*\x20%0',o(_0x219e98,this['_getTranslationKeyForListStyle'](_0x524329['newValue'])))};if(!_0x524329['newValue']){if('default'==_0x524329['oldValue'])return _0x4f1c92;let _0x181723=_0x1dbeb5['head'];for(;_0x181723;){if(_0x181723['data']&&'listType'==_0x181723['data']['key']&&_0x181723['data']['newValue'])return _0x4f1c92;_0x181723=_0x181723['next'];}return{'type':'format','content':''+o(_0x219e98,'*Remove\x20format:*\x20%0',o(_0x219e98,this['_getTranslationKeyForListStyle'](_0x524329['oldValue'])))};}if('default'!=_0x524329['newValue'])return{'type':'format','content':''+o(_0x219e98,'*Set\x20format:*\x20%0',o(_0x219e98,this['_getTranslationKeyForListStyle'](_0x524329['newValue'])))};let _0x42e2ce=_0x1dbeb5['head'];for(;_0x42e2ce;){if(_0x42e2ce['data']&&'listType'==_0x42e2ce['data']['key']&&_0x42e2ce['data']['newValue']&&_0x42e2ce['data']['oldValue'])return _0x4f1c92;_0x42e2ce=_0x42e2ce['next'];}return{'type':'format','content':o(_0x219e98,'*Set\x20format:*\x20%0',o(_0x219e98,'ELEMENT_'+_0x1dbeb5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13c05c=this['editor'],_0x17dceb=_0x13c05c['locale'];_0x13c05c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26ffc1=>{if('formatBlock'!=_0x26ffc1['type'])return;const {data:_0x594934}=_0x26ffc1;if(!_0x594934)return;let _0x10a34d,_0x3fa152;switch(_0x594934['commandName']){case'listStyle':_0x10a34d='*Change\x20to:*\x20%0',_0x3fa152={'type':'format','content':o(_0x17dceb,_0x10a34d,o(_0x17dceb,this['_getTranslationKeyForListStyle'](_0x594934['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10a34d=_0x594934['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fa152={'type':'format','content':o(_0x17dceb,_0x10a34d)};break;case'listStart':_0x10a34d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fa152={'type':'format','content':o(_0x17dceb,_0x10a34d,_0x594934['commandParams'][0x0]['startIndex'])};}return _0x3fa152;});}['_getTranslationKeyForListStyle'](_0x2168ea){return'ELEMENT_'+function(_0xac1101){if(_e['includes'](_0xac1101))return'bulleted';if(Re['includes'](_0xac1101))return'numbered';return null;}(_0x2168ea)['toUpperCase']()+'_LIST_'+_0x2168ea['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x57a03e{static get['requires'](){return[_0x23e3ce];}['init'](){const _0x36ebc2=this['editor'],_0x3d331c=_0x36ebc2['plugins']['get']('TrackChangesEditing'),_0x4556df=_0x36ebc2['commands']['get']('enter');_0x3d331c['enableCommand']('enter',()=>{_0x36ebc2['model']['change'](_0x485a62=>{const _0x542725=_0x36ebc2['model']['document']['selection'],_0x3d03ef=_0x542725['getFirstPosition'](),_0x362468=_0x4da4a9['fromRange'](_0x542725['getFirstRange']());if(_0x4556df['enterBlock'](_0x485a62)){const _0x325c4c=_0x36ebc2['model']['createPositionAt'](_0x3d03ef['parent']['nextSibling'],0x0),_0x562733=_0x485a62['createRange'](_0x3d03ef,_0x325c4c);_0x3d331c['markInsertion'](_0x562733);}else _0x485a62['setSelection'](_0x485a62['createRange'](_0x362468['end']));_0x362468['detach'](),_0x4556df['fire']('afterExecute',{'writer':_0x485a62});});}),_0x36ebc2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x36ebc2,'split'),{'priority':'high'}),_0x36ebc2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x482e11,_0xe4beff,_0x506de4)=>{const _0x1233bb=_0x506de4['mapper']['markerNameToElements'](_0xe4beff['markerName']);if(_0x1233bb){for(const _0x3fe66b of _0x1233bb)_0x3fe66b['hasClass']('ck-suggestion-marker-split')&&(_0x506de4['mapper']['unbindElementFromMarkerName'](_0x3fe66b,_0xe4beff['markerName']),_0x506de4['writer']['remove'](_0x3fe66b));}},{'priority':'high'}),_0x36ebc2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35a96b,_0x49c17c,_0x36df7c)=>{_0x36df7c['options']['showSuggestionHighlights']&&De(_0x36ebc2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x35a96b,_0x49c17c,_0x36df7c);},{'priority':'high'});}}class Y extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x11ca53=this['editor']['plugins']['get']('TrackChangesEditing');_0x11ca53['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x11ca53['enableCommand']('findNext'),_0x11ca53['enableCommand']('findPrevious'),_0x11ca53['enableCommand']('replace'),_0x11ca53['enableCommand']('replaceAll');}['handleFindCommand'](_0x402821,_0x2bcf2a,_0x5672fd={}){const _0x5f56f5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x402821(_0x1b69b3=>{let _0x40ffc5=('string'==typeof _0x2bcf2a?_0x5f56f5['findByTextCallback'](_0x2bcf2a,_0x5672fd):_0x2bcf2a)(_0x1b69b3);Array['isArray'](_0x40ffc5)&&(_0x40ffc5={'results':_0x40ffc5,'searchText':'string'==typeof _0x2bcf2a?_0x2bcf2a:''});const _0x3293e0=_0x40ffc5['results']['filter'](_0xfc0b63=>!0x1===this['_isInDeletionRange'](_0xfc0b63,_0x1b69b3['item']));return{..._0x40ffc5,'results':_0x3293e0};},_0x5672fd);}['_isInDeletionRange'](_0x277d10,_0x2ef86d){const _0x145bfb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ef86d,_0x277d10['start']),this['editor']['model']['createPositionAt'](_0x2ef86d,_0x277d10['end']));for(const _0x3b135d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x145bfb['getIntersection'](_0x3b135d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x57a03e{['afterInit'](){const _0x5efb8d=this['editor']['locale'],_0x108c45=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x28912d,commandName:_0x199a1c}of ro)this['editor']['plugins']['has'](_0x28912d)&&(_0x108c45['enableDefaultAttributesIntegration'](_0x199a1c),_0x108c45['registerInlineAttribute'](_0x199a1c));_0x108c45['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5efb8d,'FORMAT_FONT_SIZE')),_0x108c45['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5efb8d,'FORMAT_FONT_FAMILY')),_0x108c45['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5efb8d,'FORMAT_FONT_COLOR')),_0x108c45['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5efb8d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x496241=this['editor'],_0x5bb5d1=_0x496241['locale'];_0x496241['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338c17=>{const _0x277850=_0x5bb5d1['t'];if('formatInline'!=_0x338c17['type'])return;const {data:_0x25af4e}=_0x338c17;if(null!=_0x25af4e){if('fontSize'==_0x25af4e['commandName']){const _0x35ca11=_0x25af4e['commandParams'][0x0]['value'];if(_0x35ca11){const _0x184dfb=_0x277850(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3bd8da=>_0x3bd8da['model']==_0x35ca11)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5bb5d1,'*Set\x20font\x20size:*\x20%0',_0x184dfb)};}return{'type':'format','content':o(_0x5bb5d1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x25af4e['commandName']){const _0x55bc75=_0x25af4e['commandParams'][0x0]['value'];return _0x55bc75?{'type':'format','content':o(_0x5bb5d1,'*Set\x20font\x20family:*\x20%0',_0x55bc75)}:{'type':'format','content':o(_0x5bb5d1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x25af4e['commandName']){const _0x1d5666=_0x25af4e['commandParams'][0x0]['value'];if(_0x1d5666){const _0x4d253c=_0x2cb6bd(this['editor']['config']['get']('fontColor.colors'))['find'](_0x45c252=>_0x45c252['model']==_0x1d5666);let _0x569ca8=_0x1d5666,_0x335025='';return _0x4d253c&&(_0x569ca8=_0x4d253c['label'],_0x335025=_0x277850(_0x569ca8)['toLowerCase']()),{'type':'format','content':o(_0x5bb5d1,'*Set\x20font\x20color:*\x20%0',_0x335025)['trim'](),'color':{'value':_0x1d5666,'title':_0x335025||_0x569ca8}};}return{'type':'format','content':o(_0x5bb5d1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x25af4e['commandName']){const _0xdfb1b9=_0x25af4e['commandParams'][0x0]['value'];if(_0xdfb1b9){const _0x3945f4=_0x2cb6bd(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x254802=>_0x254802['model']==_0xdfb1b9);let _0xa7bd67=_0xdfb1b9,_0x54226d='';return _0x3945f4&&(_0xa7bd67=_0x3945f4['label'],_0x54226d=_0x277850(_0xa7bd67)['toLowerCase']()),{'type':'format','content':o(_0x5bb5d1,'*Set\x20font\x20background\x20color:*\x20%0',_0x54226d)['trim'](),'color':{'value':_0xdfb1b9,'title':_0x54226d||_0xa7bd67}};}return{'type':'format','content':o(_0x5bb5d1,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x57a03e{['afterInit'](){const _0x42c512=this['editor'],_0x2601b1=_0x42c512['plugins']['get']('TrackChangesEditing'),_0x1e6f74=_0x42c512['commands']['get']('copyFormat'),_0x6c93cc=_0x42c512['commands']['get']('pasteFormat');_0x1e6f74&&_0x6c93cc&&(_0x2601b1['enableDefaultAttributesIntegration']('pasteFormat'),_0x2601b1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x48e379=this['editor'],_0x548d05=_0x48e379['locale'];_0x48e379['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1419f1=>{if('formatBlock'!=_0x1419f1['type']&&'formatInline'!=_0x1419f1['type'])return;const {data:_0x88b1a7}=_0x1419f1;if(_0x88b1a7&&'pasteFormat'===_0x88b1a7['commandName']){const _0x454df3=[],_0x431c8d=_0x88b1a7['commandParams'][0x0];for(const [_0x2d5b39,_0x39da98]of Object['entries'](_0x431c8d))_0x454df3['push'](so(_0x48e379,_0x2d5b39,_0x39da98));return _0x454df3['length']?{'type':'format','content':o(_0x548d05,'*Set\x20format\x20to:*\x20%0',_0x454df3['join'](',\x20'))}:{'type':'format','content':o(_0x548d05,'*Remove\x20all\x20formatting*')};}});}}function so(_0x319e74,_0x1f7bc3,_0x141a51){const _0x4daba3=_0x319e74['locale']['t'],_0x580e98=_0x1f7bc3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5925c=_0x4daba3(_0x580e98['charAt'](0x0)['toUpperCase']()+_0x580e98['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x141a51)return _0x5925c;if('fontColor'===_0x1f7bc3||'fontBackgroundColor'===_0x1f7bc3){const _0x4a0d2a=_0x2cb6bd(_0x319e74['config']['get']('fontColor.colors'))['find'](_0x530bee=>_0x530bee['model']==_0x141a51);return _0x5925c+'\x20('+(_0x4a0d2a?_0x4daba3(_0x4a0d2a['label'])['toLowerCase']():_0x141a51)+')';}if('fontSize'===_0x1f7bc3&&isNaN(parseFloat(_0x141a51))){const _0x3f932a=_0x319e74['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x319e74['config']['get']('fontSize.options'))['find'](_0x2e2cc0=>_0x2e2cc0['model']==_0x141a51);return _0x5925c+'\x20('+(_0x3f932a?_0x4daba3(_0x3f932a['title'])['toLowerCase']():_0x141a51)+')';}return _0x5925c+'\x20('+_0x141a51+')';}class nt extends _0x57a03e{['_headingOptions'];['afterInit'](){const _0x117574=this['editor'];if(!_0x117574['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x117574['config']['get']('heading.options');const _0xad52fe=_0x117574['locale'],_0x50c4c9=_0x117574['plugins']['get']('TrackChangesEditing');_0x50c4c9['enableDefaultAttributesIntegration']('heading');for(const _0x4dc0be of this['_headingOptions'])'paragraph'!=_0x4dc0be['model']&&_0x50c4c9['descriptionFactory']['registerElementLabel'](_0x4dc0be['model'],_0x533760=>{const _0x3c2ae3=this['_getHeadingLevel'](_0x4dc0be['model']);return null!==_0x3c2ae3?_0x2dfbab(_0x533760,_0x3c2ae3):_0x23e0b4(_0x533760,_0x4dc0be['title']);});function _0x2dfbab(_0x3b7dc7,_0x37e0f2){return o(_0xad52fe,'ELEMENT_HEADING',[_0x3b7dc7,_0x37e0f2]);}function _0x23e0b4(_0x329f51,_0x40a18c){return o(_0xad52fe,'ELEMENT_HEADING_CUSTOM',[_0x329f51,_0x40a18c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f1c8b=this['editor'],_0x1c32e0=_0x5f1c8b['locale'];function _0x4b9ec5(_0x162d90,_0x4ef539){return o(_0x1c32e0,'ELEMENT_HEADING_CUSTOM',[_0x162d90,_0x4ef539]);}_0x5f1c8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c9f74=>{if('formatBlock'!=_0x2c9f74['type'])return;const {data:_0x573562}=_0x2c9f74;if(_0x573562&&'heading'==_0x573562['commandName']){const _0x36752f=_0x573562['commandParams'][0x0]['value'],_0x5011d6=this['_getHeadingLevel'](_0x36752f);if(null!==_0x5011d6)return{'type':'format','content':o(_0x1c32e0,'*Change\x20to:*\x20%0',(_0x569409=0x1,_0x36eb1d=_0x5011d6,o(_0x1c32e0,'ELEMENT_HEADING',[_0x569409,_0x36eb1d])))};const _0x4c82f4=this['_headingOptions']['find'](_0x5cffb0=>_0x5cffb0['model']===_0x36752f)['title'];return{'type':'format','content':o(_0x1c32e0,'*Change\x20to:*\x20%0',_0x4b9ec5(0x1,_0x4c82f4))};}var _0x569409,_0x36eb1d;});}['_getHeadingLevel'](_0xade7f4){const _0x4fa612=_0xade7f4['match'](/^heading(\d+)/);if(_0x4fa612)return _0x4fa612[0x1];const _0x3d44bf=this['_headingOptions']?.['find'](_0x2d2fe9=>_0x2d2fe9['model']==_0xade7f4);if(_0x3d44bf&&_0x3d44bf['view']){const _0x3c7db0=_0x3d44bf['view'],_0x194e33=(_0x3c7db0['name']??_0x3c7db0)['match'](/^h(\d+)/);if(_0x194e33)return _0x194e33[0x1];}return null;}}class it extends _0x57a03e{['afterInit'](){const _0x39643c=this['editor'];if(!_0x39643c['plugins']['has']('HighlightEditing'))return;const _0x2369cc=_0x39643c['plugins']['get']('TrackChangesEditing'),_0x876a4a=_0x39643c['locale'];_0x2369cc['enableDefaultAttributesIntegration']('highlight'),_0x2369cc['registerInlineAttribute']('highlight'),_0x2369cc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x876a4a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bcea0=this['editor'],_0x5c6af5=_0x2bcea0['locale'];_0x2bcea0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50828b=>{if('formatInline'!=_0x50828b['type'])return;const {data:_0x1bc95f}=_0x50828b;if(_0x1bc95f&&'highlight'==_0x1bc95f['commandName']){const _0xa5ab6c=_0x5c6af5['t'],_0x34c5ef=_0x1bc95f['commandParams'][0x0]['value'];if(_0x34c5ef){const _0x190c0d=_0x2bcea0['config']['get']('highlight.options')['find'](_0x1c9652=>_0x1c9652['model']==_0x34c5ef),_0x206cfa=_0xa5ab6c(_0x190c0d['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c6af5,'*Set\x20highlight:*\x20%0',_0x206cfa),'color':{'value':_0x190c0d['color'],'title':_0x190c0d['title']}};}return{'type':'format','content':o(_0x5c6af5,'*Remove\x20highlight*',o(_0x5c6af5,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x57a03e{['afterInit'](){const _0x1601e6=this['editor'];if(!_0x1601e6['plugins']['has']('HorizontalLineEditing'))return;_0x1601e6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1434ea=_0x1601e6['plugins']['get']('TrackChangesEditing'),_0x46da52=_0x1601e6['locale'];_0x1434ea['descriptionFactory']['registerElementLabel']('horizontalLine',_0x508db8=>o(_0x46da52,'ELEMENT_HORIZONTAL_LINE',_0x508db8)),_0x1601e6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x406f8d,{writer:_0x4d526a,options:_0x598cbe})=>{if(!_0x598cbe['showSuggestionHighlights'])return null;const _0x4ed610=_0x4d526a['createContainerElement']('div'),_0x25f4df=_0x4d526a['createEmptyElement']('hr');return _0x4d526a['addClass']('ck-horizontal-line',_0x4ed610),_0x4d526a['insert'](_0x4d526a['createPositionAt'](_0x4ed610,0x0),_0x25f4df),_0x4ed610;},'converterPriority':'high'});}}class st extends _0x57a03e{['afterInit'](){const _0xdafdd9=this['editor'];if(!_0xdafdd9['plugins']['has']('HtmlEmbed'))return;const _0x3ffbaa=_0xdafdd9['plugins']['get']('TrackChangesEditing'),_0x1dbd1b=_0xdafdd9['locale'];_0x3ffbaa['descriptionFactory']['registerElementLabel']('rawHtml',_0x1c859e=>o(_0x1dbd1b,'ELEMENT_HTML_EMBED',_0x1c859e)),_0x3ffbaa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3ffbaa['registerBlockAttribute']('value'),_0x3ffbaa['descriptionFactory']['registerDescriptionCallback'](_0x430c23=>{if('attribute'!=_0x430c23['type'])return;const {data:_0x228919}=_0x430c23;if(_0x228919&&'value'==_0x228919['key']&&_0x430c23['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1ec858=o(_0x1dbd1b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1dbd1b,'*Change\x20%0\x20content*',_0x1ec858)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x240264=this['editor'],_0x1d2930=_0x240264['locale'];_0x240264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ea7da=>{if('formatBlock'!=_0x2ea7da['type'])return;const {data:_0x51c38d}=_0x2ea7da;if(_0x51c38d&&'htmlEmbed'==_0x51c38d['commandName']){const _0x360604=o(_0x1d2930,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d2930,'*Change\x20%0\x20content*',_0x360604)};}});}}class ot extends _0x57a03e{['afterInit'](){const _0x18c9a7=this['editor'];if(!_0x18c9a7['plugins']['has']('ImageEditing'))return;const _0x4ce7a1=_0x18c9a7['plugins']['get']('TrackChangesEditing'),_0x4174a9=_0x18c9a7['plugins']['get']('ImageUtils'),_0x3055c1=_0x18c9a7['locale'];_0x4ce7a1['enableCommand']('insertImage'),_0x4ce7a1['descriptionFactory']['registerElementLabel']('imageBlock',_0x3f2259=>o(_0x3055c1,'ELEMENT_IMAGE',_0x3f2259)),_0x4ce7a1['descriptionFactory']['registerElementLabel']('imageInline',_0x3163ef=>o(_0x3055c1,'ELEMENT_INLINE_IMAGE',_0x3163ef)),_0x4ce7a1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3055c1,'ELEMENT_CAPTION')),_0x18c9a7['plugins']['has']('ImageUploadEditing')&&_0x4ce7a1['enableCommand']('uploadImage'),_0x18c9a7['plugins']['has']('ImageBlockEditing')&&_0x18c9a7['plugins']['has']('ImageInlineEditing')&&(_0x4ce7a1['enableCommand']('imageTypeInline',(_0x553673,_0x1af61f)=>{const _0x1ce805=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']);_0x18c9a7['model']['change'](()=>{_0x4ce7a1['markBlockFormat'](_0x1ce805,{'commandName':'imageTypeInline','commandParams':[_0x1af61f]},[],'convertBlockImageToInline');});}),_0x4ce7a1['enableCommand']('imageTypeBlock',(_0x1c9ac6,_0x4145b4)=>{_0x18c9a7['model']['change'](_0x39fb1d=>{let _0x1dcdb2=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']),_0x5ea080=_0x39fb1d['createRangeOn'](_0x1dcdb2);const _0x574a8a=_0x4161d1['fromPosition'](_0x5ea080['start'],'toPrevious'),_0x1b993b=_0x4161d1['fromPosition'](_0x5ea080['end'],'toNext');_0x4ce7a1['forceDefaultExecution'](()=>_0x1c9ac6(_0x4145b4)),_0x1dcdb2=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']),_0x5ea080=_0x39fb1d['createRangeOn'](_0x1dcdb2);const _0x2196a3=_0x39fb1d['createRange'](_0x574a8a,_0x1b993b);_0x574a8a['detach'](),_0x1b993b['detach'](),_0x4ce7a1['markBlockFormat'](_0x1dcdb2,{'commandName':'imageTypeInline','commandParams':[_0x4145b4]},[],'convertInlineImageToBlock'),_0x2196a3['start']['isBefore'](_0x5ea080['start'])&&_0x4ce7a1['markInsertion'](_0x39fb1d['createRange'](_0x2196a3['start'],_0x5ea080['start']),'convertInlineImageToBlock'),_0x5ea080['end']['isBefore'](_0x2196a3['end'])&&_0x4ce7a1['markInsertion'](_0x39fb1d['createRange'](_0x5ea080['end'],_0x2196a3['end']),'convertInlineImageToBlock');});}),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4ce7a1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x50e683])=>{const _0x4343b5=_0x4ce7a1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x475825=_0x50e683['start'],_0x3ed7fd=_0x50e683['end'];const _0x1bd9cd=_0x18c9a7['model']['schema']['getNearestSelectionRange'](_0x475825,'backward'),_0x3cccd9=_0x18c9a7['model']['schema']['getNearestSelectionRange'](_0x3ed7fd,'forward');_0x1bd9cd['isCollapsed']&&(_0x475825=_0x1bd9cd['start']),_0x3cccd9['isCollapsed']&&(_0x3ed7fd=_0x3cccd9['end']),_0x4343b5([_0x18c9a7['model']['createRange'](_0x475825,_0x3ed7fd)]);}),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd7564),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd7564)),_0x18c9a7['plugins']['has']('ImageCaptionEditing')&&(_0x4ce7a1['enableCommand']('toggleImageCaption',(_0x7f3ecf,_0x280dd5)=>{const _0x3712bd=_0x18c9a7['plugins']['get']('ImageCaptionUtils');let _0x439979=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']),_0x262e43=_0x3712bd['getCaptionFromImageModelElement'](_0x439979);_0x18c9a7['model']['change'](()=>{if(_0x262e43)return void _0x4ce7a1['markDeletion'](_0x18c9a7['model']['createRangeOn'](_0x262e43));const _0x5bde0f=_0x4174a9['isBlockImage'](_0x439979);_0x7f3ecf(_0x280dd5),_0x439979=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']),_0x262e43=_0x3712bd['getCaptionFromImageModelElement'](_0x439979),_0x4ce7a1['markInsertion'](_0x18c9a7['model']['createRangeOn'](_0x262e43),_0x5bde0f?null:'imageCaption');});}),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd7564));const _0x3801b2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c773c(_0x26d207,_0x554785){const _0x4a6227=_0x3801b2['findIndex'](({type:_0x98a5f5,subType:_0x43b4e3})=>_0x26d207['type']==_0x98a5f5&&_0x26d207['subType']==_0x43b4e3),_0x43d6f3=_0x3801b2['findIndex'](({type:_0x2c44e4,subType:_0x2493ef})=>_0x554785['type']==_0x2c44e4&&_0x554785['subType']==_0x2493ef);if(_0x4a6227<0x0||_0x43d6f3<0x0)return!0x1;const _0x435b8b=_0x26d207['getFirstRange'](),_0x3b5aee=_0x554785['getFirstRange']();if((0x0==_0x4a6227||0x1==_0x4a6227)&&0x2==_0x43d6f3&&_0x435b8b['isIntersecting'](_0x3b5aee))return!0x0;if(0x2==_0x4a6227&&0x3==_0x43d6f3){const _0x4c58f6=_0x4ce7a1['_findSuggestions'](_0x435b8b,'insertion')['filter'](({suggestion:_0xb8b4f1,meta:_0x4bcdf2})=>_0x4bcdf2['isOwn']&&'convertInlineImageToBlock'==_0xb8b4f1['subType']);if(_0x4c58f6['length']>0x1&&_0x3b5aee['end']['isEqual'](_0x435b8b['start']))return!0x0;if(0x1==_0x4c58f6['length']&&(_0x435b8b['start']['isEqual'](_0x3b5aee['end'])||_0x435b8b['end']['isEqual'](_0x3b5aee['start'])))return!0x0;}if(0x3==_0x4a6227&&0x3==_0x43d6f3&&_0x435b8b['start']['isBefore'](_0x3b5aee['start'])){const _0x1a8f3f=_0x435b8b['end']['nodeAfter'],_0x1c337a=_0x3b5aee['start']['nodeBefore'];return _0x4174a9['isBlockImage'](_0x1a8f3f)&&_0x1a8f3f===_0x1c337a;}return!0x1;}function _0xd7564(_0x3cac3d,_0x4b958c){return _0x5c773c(_0x3cac3d,_0x4b958c)?[_0x3cac3d,_0x4b958c]:_0x5c773c(_0x4b958c,_0x3cac3d)?[_0x4b958c,_0x3cac3d]:null;}_0x18c9a7['plugins']['has']('ImageResize')&&(_0x4ce7a1['enableDefaultAttributesIntegration']('resizeImage'),_0x4ce7a1['registerBlockAttribute']('resizedWidth'),_0x4ce7a1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3055c1,'FORMAT_IMAGE_SIZE'))),_0x18c9a7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4ce7a1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4ce7a1['registerBlockAttribute']('alt')),_0x18c9a7['plugins']['has']('PictureEditing')&&(_0x4ce7a1['registerBlockAttribute']('sources'),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x5834c1=>{if('attribute'!=_0x5834c1['type'])return;const {data:_0x44efd3}=_0x5834c1;return _0x44efd3&&'sources'==_0x44efd3['key']?{'type':'format','content':''}:void 0x0;})),_0x18c9a7['plugins']['has']('ImageSizeAttributes')&&(_0x4ce7a1['registerBlockAttribute']('width'),_0x4ce7a1['registerBlockAttribute']('height'),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x528b2c=>{if('attribute'!=_0x528b2c['type'])return;const {data:_0x5c2d39}=_0x528b2c;return!_0x5c2d39||'width'!=_0x5c2d39['key']&&'height'!=_0x5c2d39['key']?void 0x0:{'type':'format','content':''};})),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x57d7e5=>{if(!!_0x3801b2['find'](({type:_0x1ec9c4,subType:_0x4251b4})=>_0x57d7e5['type']==_0x1ec9c4&&_0x57d7e5['subType']==_0x4251b4))return _0x57d7e5['previous']?{}:void 0x0;}),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x3304e9=>{if('insertion'==_0x3304e9['type']||'deletion'==_0x3304e9['type']){const _0x5a00cc=_0x3304e9['getContainedElement']();if(_0x5a00cc&&_0x5a00cc['is']('element','caption'))return{'type':'insertion'==_0x3304e9['type']?'addObject':'removeObject','element':_0x5a00cc,'quantity':0x1};}}),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x3249fa=>'formatBlock'==_0x3249fa['type']&&'convertInlineImageToBlock'==_0x3249fa['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3249fa['type']&&'convertBlockImageToInline'==_0x3249fa['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x2917a8=>{if('attribute'!=_0x2917a8['type'])return;const {data:_0x33748a}=_0x2917a8;if(!_0x33748a||'alt'!=_0x33748a['key'])return;const _0x5cb1d7=_0x33748a['newValue'];return _0x5cb1d7?{'type':'format','content':o(_0x3055c1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cb1d7+'\x22')}:{'type':'format','content':o(_0x3055c1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207f1a=this['editor'],_0x5dd571=_0x207f1a['locale'];_0x207f1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13e7a0=>{if('formatBlock'!=_0x13e7a0['type']&&'formatInline'!=_0x13e7a0['type'])return;const {data:_0x20595f}=_0x13e7a0;if(_0x20595f){if('imageTextAlternative'==_0x20595f['commandName']){const _0x3707fb=_0x20595f['commandParams'][0x0]['newValue'];return _0x3707fb?{'type':'format','content':o(_0x5dd571,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3707fb+'\x22')}:{'type':'format','content':o(_0x5dd571,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20595f['commandName']){const _0x1f0f77=_0x20595f['commandParams'][0x0]['width'];return _0x1f0f77?{'type':'format','content':o(_0x5dd571,'*Set\x20image\x20width:*\x20%0',_0x1f0f77)}:{'type':'format','content':o(_0x5dd571,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x65b06c=this['editor']['locale'],_0x17c646=this['editor']['plugins']['get']('TrackChangesEditing');_0x17c646['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17c646['registerBlockAttribute']('src'),_0x17c646['descriptionFactory']['registerDescriptionCallback'](_0x28fbfc=>{if('attribute'!=_0x28fbfc['type'])return;const {data:_0x5bd3f0}=_0x28fbfc;return _0x5bd3f0&&'src'==_0x5bd3f0['key']?_0x5bd3f0['newValue']&&_0x5bd3f0['oldValue']?{'type':'format','content':o(_0x65b06c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x495d68=this['editor']['plugins']['get']('TrackChangesEditing');_0x495d68['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x495d68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x495d68['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x495d68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a1ff5=this['editor'],_0x15dbb3=_0x2a1ff5['locale'];_0x2a1ff5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5fcc78=>{if('formatBlock'!=_0x5fcc78['type']&&'formatInline'!=_0x5fcc78['type'])return;const {data:_0xbb64c1}=_0x5fcc78;if(!_0xbb64c1||'replaceImageSource'!=_0xbb64c1['commandName'])return;return{'type':'format','content':o(_0x15dbb3,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x57a03e{['afterInit'](){const _0x495d53=this['editor'];if(!_0x495d53['plugins']['has']('ImageStyleEditing'))return;const _0x415e90=_0x495d53['plugins']['get']('TrackChangesEditing'),_0x2d6549=_0x495d53['plugins']['get']('ImageUtils'),_0xc4df12={};_0x415e90['enableCommand']('imageStyle',(_0x24da30,_0x4cb0a0)=>{const _0x265233=_0x495d53['plugins']['get']('Users')['me'],_0x2beacb=_0x495d53['commands']['get']('imageStyle');let _0x34456a=_0x2d6549['getClosestSelectedImageElement'](_0x495d53['model']['document']['selection']),_0x13bada=_0x495d53['model']['createRangeOn'](_0x34456a),_0x39fb7d=_0x2beacb['value'];if(_0x39fb7d==_0x4cb0a0['value'])return;const _0x3052b4={'commandName':'imageStyle','commandParams':[_0x4cb0a0],'formatGroupId':_0x10a187()};_0x495d53['model']['change'](()=>{if(_0x415e90['getSuggestions']()['filter'](_0x11031a=>_0x11031a['isInContent']&&_0x265233==_0x11031a['author']&&('formatBlock'==_0x11031a['type']||'formatInline'==_0x11031a['type'])&&('imageStylePreApply'==_0x11031a['subType']||'imageStylePostApply'==_0x11031a['subType'])&&_0x11031a['getFirstRange']()['isEqual'](_0x13bada))['forEach'](_0x581185=>_0x415e90['discardSuggestion'](_0x581185['head'])),_0x34456a=_0x2d6549['getClosestSelectedImageElement'](_0x495d53['model']['document']['selection']),_0x13bada=_0x495d53['model']['createRangeOn'](_0x34456a),_0x2beacb['refresh'](),_0x495d53['commands']['get']('imageTypeInline')['refresh'](),_0x495d53['commands']['get']('imageTypeBlock')['refresh'](),_0x39fb7d=_0x2beacb['value'],_0x39fb7d!=_0x4cb0a0['value'])return _0x2d6549['isInlineImage'](_0x34456a)&&_0x2beacb['shouldConvertImageType'](_0x4cb0a0['value'],_0x34456a)?(_0x24da30({..._0x4cb0a0,'setImageSizes':!0x1}),_0x34456a=_0x2d6549['getClosestSelectedImageElement'](_0x495d53['model']['document']['selection']),void _0x415e90['markBlockFormat'](_0x34456a,{..._0x3052b4,'commandReversedParams':[{'value':_0x39fb7d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2d6549['isBlockImage'](_0x34456a)?_0x415e90['markBlockFormat'](_0x34456a,_0x3052b4,[],'imageStylePostApply'):_0x415e90['markInlineFormat'](_0x13bada,_0x3052b4,'imageStylePostApply'));});});for(const _0x88ffe8 of _0x495d53['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xc4df12[_0x88ffe8['name']]=_0x88ffe8['title']['toLowerCase']();_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x180f6e])=>{_0x2d6549['setImageNaturalSizeAttributes'](_0x180f6e['getContainedElement']());}),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5c9ed2,_0xcdcde6)=>{_0x415e90['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5c9ed2,{'commandName':_0xcdcde6['commandName'],'commandParams':_0xcdcde6['commandReversedParams']});}),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x41e5e8,_0xd11255){if(_0x246891(_0x41e5e8,_0xd11255))return[_0x41e5e8,_0xd11255];if(_0x246891(_0xd11255,_0x41e5e8))return[_0xd11255,_0x41e5e8];return null;});const _0x59ba53=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x246891(_0x54e8bb,_0x28a951){const _0x243ef0=_0x59ba53['findIndex'](({type:_0xd9a199,subType:_0x5c9918})=>_0x54e8bb['type']==_0xd9a199&&_0x54e8bb['subType']==_0x5c9918),_0x42acd6=_0x59ba53['findIndex'](({type:_0x2c2b23,subType:_0x3ece75})=>_0x28a951['type']==_0x2c2b23&&_0x28a951['subType']==_0x3ece75);if(_0x243ef0<0x0||_0x42acd6<0x0)return!0x1;const _0x587c72=_0x54e8bb['getFirstRange'](),_0x23390c=_0x28a951['getFirstRange']();if((0x0==_0x243ef0||0x1==_0x243ef0)&&0x2==_0x42acd6&&_0x587c72['isIntersecting'](_0x23390c))return!0x0;if(0x2==_0x243ef0&&0x3==_0x42acd6){const _0x510cf3=_0x415e90['_findSuggestions'](_0x587c72,'insertion')['filter'](({suggestion:_0x362437,meta:_0x1b6753})=>_0x1b6753['isOwn']&&'convertInlineImageToBlock'==_0x362437['subType']);if(_0x510cf3['length']>0x1&&_0x23390c['end']['isEqual'](_0x587c72['start']))return!0x0;if(0x1==_0x510cf3['length']&&(_0x587c72['start']['isEqual'](_0x23390c['end'])||_0x587c72['end']['isEqual'](_0x23390c['start'])))return!0x0;}if(0x3==_0x243ef0&&0x3==_0x42acd6&&_0x587c72['start']['isBefore'](_0x23390c['start'])){const _0x50a01a=_0x587c72['end']['nodeAfter'],_0x3cfa99=_0x23390c['start']['nodeBefore'];return _0x2d6549['isBlockImage'](_0x50a01a)&&_0x50a01a===_0x3cfa99;}return!0x1;}_0x495d53['model']['document']['registerPostFixer'](()=>{let _0x5cc97f=!0x1;const _0x466b8c=Array['from'](_0x495d53['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31819f,data:_0x17545d}of _0x466b8c){const {group:_0x4a9334,type:_0x1a70b5,subType:_0x4f9e44,id:_0x5bcf89}=_0x415e90['_splitMarkerName'](_0x31819f);if('suggestion'==_0x4a9334&&_0x415e90['hasSuggestion'](_0x5bcf89)){if('formatBlock'==_0x1a70b5&&('imageStylePreApply'==_0x4f9e44||'imageStylePostApply'==_0x4f9e44)){const _0x8288fc=_0x415e90['getSuggestion'](_0x5bcf89);if(_0x17545d['newRange']){const _0x249a48=_0x8288fc['getFirstRange']()['getContainedElement']();if(_0x2d6549['isBlockImage'](_0x249a48))continue;_0x415e90['discardSuggestion'](_0x8288fc),_0x5cc97f=!0x0;}}if('insertion'==_0x1a70b5&&'imageCaption'==_0x4f9e44&&!_0x17545d['newRange']){const _0x51a194=_0x415e90['getSuggestion'](_0x5bcf89);_0x51a194['next']&&_0x51a194['next']['isInContent']&&(_0x415e90['discardSuggestion'](_0x51a194['next']),_0x5cc97f=!0x0);}}}return _0x5cc97f;}),this['_registerLegacyDescription'](_0xc4df12);}['_registerLegacyDescription'](_0x53d756){const _0x3cd508=this['editor'],_0xaa85d6=_0x3cd508['locale'];_0x3cd508['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc9a1=>{if('formatBlock'!=_0x4bc9a1['type']&&'formatInline'!=_0x4bc9a1['type'])return;const {data:_0x4adc76}=_0x4bc9a1;if(!_0x4adc76||'imageStyle'!=_0x4adc76['commandName'])return;const _0x4e697b=_0x4adc76['commandParams'][0x0]['value'];return _0x2a2870('side'===_0x4e697b?o(_0xaa85d6,'FORMAT_SIDE_IMAGE'):_0x53d756[_0x4e697b]||_0x4e697b);function _0x2a2870(_0xfa55c4){return{'type':'format','content':o(_0xaa85d6,'*Format:*\x20%0',_0xfa55c4)};}});}}class ct extends _0x57a03e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x488157){super(_0x488157),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x23b9a2=this['editor'],_0x117aa6=_0x23b9a2['commands']['get']('importWord'),_0xd91f45=_0x23b9a2['commands']['get']('trackChanges');_0x117aa6&&(_0x117aa6['on']('execute',(_0x1f96c5,[,_0xb48cfa])=>{this['_trackChangesValueDuringImport']=_0xd91f45['value'],_0xb48cfa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x117aa6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x117aa6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xd91f45['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x23b9a2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x39ac6f,_0x2cde5a){const {suggestions:_0x53ed1a}=_0x2cde5a,_0x58a483=this['editor']['commands']['get']('trackChanges'),_0x5d52f2=_0x58a483['value'];this['_trackChangesValueDuringImport']!==_0x5d52f2&&(_0x58a483['execute'](),this['_trackChangesExecuted']=!0x0),_0x53ed1a&&_0x53ed1a['forEach'](({id:_0x2732ff,type:_0x36ab93,author:_0x48c242,created_at:_0x2604eb})=>{const _0x4b12ee={'id':_0x2732ff,'type':_0x36ab93,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x48c242,'createdAt':_0x2604eb?new Date(_0x2604eb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4b12ee);});}}class ut extends _0x57a03e{['afterInit'](){const _0x32e4c4=this['editor'],_0x32ca8f=_0x32e4c4['plugins']['get']('TrackChangesEditing');if(_0x32e4c4['plugins']['has']('IndentEditing')&&(_0x32ca8f['enableCommand']('indent'),_0x32ca8f['enableCommand']('outdent')),_0x32e4c4['plugins']['has']('IndentBlock')){for(const _0x3c5569 of['indentBlock','outdentBlock'])_0x32ca8f['enableDefaultAttributesIntegration'](_0x3c5569);}const _0x5d74a4=_0x32e4c4['locale'];_0x32ca8f['registerBlockAttribute']('blockIndent'),_0x32ca8f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5d74a4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3af817=this['editor'],_0x4fee78=_0x3af817['locale'],_0x528092=_0x3af817['plugins']['get']('TrackChangesEditing');_0x528092['descriptionFactory']['registerDescriptionCallback'](_0x44adbf=>{if('formatBlock'!=_0x44adbf['type'])return;const {data:_0x198b6c}=_0x44adbf;if(!_0x198b6c)return;if('indentBlock'!=_0x198b6c['commandName']&&'outdentBlock'!=_0x198b6c['commandName'])return;const _0x211236=_0x44adbf['getItems']()[0x0],_0x46faac=_0x528092['descriptionFactory']['getItemLabel'](_0x211236);return'indentBlock'==_0x198b6c['commandName']?{'type':'format','content':o(_0x4fee78,'*Indent:*\x20%0',_0x46faac)}:'outdentBlock'==_0x198b6c['commandName']?{'type':'format','content':o(_0x4fee78,'*Outdent:*\x20%0',_0x46faac)}:void 0x0;});}}class ft extends _0x57a03e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x57a03e{['afterInit'](){const _0x4f8a55=this['editor'];if(!_0x4f8a55['plugins']['has']('LinkEditing'))return;const _0x5ba881=_0x4f8a55['plugins']['get']('TrackChangesEditing'),_0x2a16ee=_0x4f8a55['commands']['get']('link');_0x5ba881['enableDefaultAttributesIntegration']('link'),_0x5ba881['enableDefaultAttributesIntegration']('unlink'),_0x5ba881['registerInlineAttribute']('linkHref');for(const _0x42c9cc of _0x2a16ee['manualDecorators'])_0x5ba881['registerInlineAttribute'](_0x42c9cc['id']),_0x5ba881['descriptionFactory']['registerAttributeLabel'](_0x42c9cc['id'],'link\x20('+_0x42c9cc['label']['toLowerCase']()+')');_0x5ba881['descriptionFactory']['registerDescriptionCallback'](_0x8e3675=>{if('attribute'!=_0x8e3675['type'])return;const {data:_0x30e27d}=_0x8e3675;if(!_0x30e27d||'linkHref'!=_0x30e27d['key'])return;const _0x15e92f=_0x30e27d['newValue'],_0x27d9dc=_0x4f8a55['locale'];return{'type':'format','content':null==_0x15e92f?o(_0x27d9dc,'*Remove\x20link*'):o(_0x27d9dc,'*Set\x20link:*\x20%0','\x22'+_0x15e92f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3febf6=this['editor'],_0x70250b=_0x3febf6['locale'];_0x3febf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3670f7=>{if('formatInline'!=_0x3670f7['type'])return;const {data:_0x1db1e5}=_0x3670f7;if(_0x1db1e5){if('link'==_0x1db1e5['commandName']){const _0x34efef=_0x1db1e5['commandParams'][0x0];return{'type':'format','content':o(_0x70250b,'*Set\x20link:*\x20%0','\x22'+_0x34efef+'\x22')};}return'unlink'==_0x1db1e5['commandName']?{'type':'format','content':o(_0x70250b,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x57a03e{['afterInit'](){const _0x2b09a7=this['editor'],_0x5a3146=_0x2b09a7['locale'];if(!_0x2b09a7['plugins']['has']('LegacyListEditing'))return;const _0x45926b=_0x2b09a7['plugins']['get']('TrackChangesEditing'),_0x285a2f=_0x2b09a7['plugins']['has']('LegacyTodoListEditing');function _0x2c2671(_0x3e23fa){return()=>{const _0x4c0c09=_0x2b09a7['model']['document']['selection'],_0x4ad96a=_0x2b09a7['commands']['get'](_0x3e23fa);if(_0x4ad96a['value'])return void _0x2b09a7['execute']('paragraph',{});const _0x3dfc86=_0x3e23fa['slice'](0x0,-0x4),_0x413356=function(_0x2e903c,_0x4b3a65,_0x2dfeda){let _0x2b50bf=Array['from'](_0x2e903c)['filter'](_0x4b75f1=>function(_0x431340,_0x20875e){return _0x20875e['checkChild'](_0x431340['parent'],'listItem')&&!_0x20875e['isObject'](_0x431340);}(_0x4b75f1,_0x2dfeda));_0x2b50bf=_0x2b50bf['filter'](_0x268195=>!_0x268195['is']('element','listItem')||_0x268195['getAttribute']('listType')!=_0x4b3a65);const _0x34ed57=new Set();for(const _0x553bf1 of _0x2b50bf)_0x553bf1['is']('element','listItem')?_0x34ed57['add'](Le(_0x553bf1)):_0x34ed57['add'](_0x553bf1);return Array['from'](_0x34ed57);}(_0x4c0c09['getSelectedBlocks'](),_0x3dfc86,_0x2b09a7['model']['schema']);_0x2b09a7['model']['change'](()=>{for(const _0x3f452f of _0x413356)_0x45926b['markBlockFormat'](_0x3f452f,{'commandName':_0x3e23fa,'commandParams':[{'forceValue':!_0x4ad96a['value']}],'formatGroupId':'blockName'},Ee(_0x3f452f));});};}function _0x34b167(_0x3ef9eb){return()=>{const _0xd1c80f=function(_0x25b68c){let _0xb2ea35=Array['from'](_0x25b68c);const _0x1187c3=_0xb2ea35['findIndex'](_0x3c6e29=>'listItem'!=_0x3c6e29['name']);return _0x1187c3>-0x1&&(_0xb2ea35=_0xb2ea35['slice'](0x0,_0x1187c3)),_0xb2ea35;}(_0x2b09a7['model']['document']['selection']['getSelectedBlocks']()),_0x1276e0=_0x2b09a7['model']['createRange'](_0x2b09a7['model']['createPositionAt'](_0xd1c80f[0x0],'before'),_0x2b09a7['model']['createPositionAt'](_0xd1c80f[_0xd1c80f['length']-0x1],'end'));_0x2b09a7['model']['change'](()=>{_0x45926b['markBlockFormat'](_0x1276e0,{'commandName':_0x3ef9eb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x32fccf){const _0x4d7b56=new Set();for(const _0x4e487f of _0x32fccf){let _0x481ebb=_0x4e487f['nextSibling'];for(;_0x481ebb&&_0x481ebb['getAttribute']('listIndent')>_0x4e487f['getAttribute']('listIndent');)_0x4d7b56['add'](_0x481ebb),_0x481ebb=_0x481ebb['nextSibling'];}return Array['from'](_0x4d7b56);}(_0xd1c80f));});};}_0x45926b['enableCommand']('numberedList',_0x2c2671('numberedList')),_0x45926b['enableCommand']('bulletedList',_0x2c2671('bulletedList')),_0x285a2f&&_0x45926b['enableCommand']('todoList',_0x2c2671('todoList')),_0x45926b['enableCommand']('indentList',_0x34b167('indentList')),_0x45926b['enableCommand']('outdentList',_0x34b167('outdentList')),_0x285a2f&&_0x45926b['enableCommand']('checkTodoList',()=>{const _0x299d4a=_0x2b09a7['commands']['get']('checkTodoList'),_0x5f3ec7=Array['from'](_0x299d4a['_selectedElements']);_0x5f3ec7['filter'](_0x4e75a8=>_0x4e75a8['getAttribute']('todoListChecked')!=_0x299d4a['value']),_0x2b09a7['model']['change'](()=>{for(const _0x4400f1 of _0x5f3ec7)_0x45926b['markBlockFormat'](_0x4400f1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x299d4a['value']}]});});}),_0x45926b['descriptionFactory']['registerElementLabel']('listItem',_0x4678e6=>o(_0x5a3146,'ELEMENT_LIST_ITEM',_0x4678e6)),_0x45926b['descriptionFactory']['registerDescriptionCallback'](_0x19e5ee=>{if('formatBlock'!=_0x19e5ee['type']&&'formatInline'!=_0x19e5ee['type'])return;const {data:_0x235f11}=_0x19e5ee;if(_0x235f11){if('numberedList'==_0x235f11['commandName']||'bulletedList'==_0x235f11['commandName']||'todoList'==_0x235f11['commandName'])switch(_0x235f11['commandName']['replace']('List','')){case'bulleted':return _0x40b031(o(_0x5a3146,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40b031(o(_0x5a3146,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40b031(o(_0x5a3146,'ELEMENT_TODO_LIST'));}if('indentList'==_0x235f11['commandName'])return{'type':'format','content':o(_0x5a3146,'*Indent:*\x20%0',o(_0x5a3146,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x235f11['commandName'])return{'type':'format','content':o(_0x5a3146,'*Outdent:*\x20%0',o(_0x5a3146,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x235f11['commandName'])return _0x235f11['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a3146,'*Check\x20item*')}:{'type':'format','content':o(_0x5a3146,'*Uncheck\x20item*')};}function _0x40b031(_0x4b7910){return{'type':'format','content':o(_0x5a3146,'*Change\x20to:*\x20%0',_0x4b7910)};}});}}function Le(_0x511507){const _0x2e0efa=_0x511507['getAttribute']('listIndent');if(0x0==_0x2e0efa)return _0x511507;let _0x189f3a=_0x511507;for(;_0x511507['previousSibling']&&_0x511507['previousSibling']['is']('element','listItem');){const _0x5e7486=_0x511507['previousSibling']['getAttribute']('listIndent');if(_0x5e7486==_0x2e0efa)_0x189f3a=_0x511507['previousSibling'];else{if(_0x5e7486<_0x2e0efa)break;}_0x511507=_0x511507['previousSibling'];}return _0x189f3a;}function Ee(_0x8e0719){const _0x450254=[];if(_0x8e0719['is']('element','listItem')&&_0x8e0719['getAttribute']('listIndent')>0x0){let _0x579983=_0x8e0719['nextSibling'];for(;_0x579983&&'listItem'==_0x579983['name']&&_0x579983['getAttribute']('listIndent')==_0x8e0719['getAttribute']('listIndent');)_0x450254['push'](_0x579983),_0x579983=_0x579983['nextSibling'];}return _0x450254;}class Q extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x424afe=this['editor']['config']['get']('list.properties'),_0x1c229f=this['editor']['plugins']['get']('TrackChangesEditing');_0x424afe['styles']&&_0x1c229f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x424afe['reversed']&&_0x1c229f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x424afe['startIndex']&&_0x1c229f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c229f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2554b8,_0x407173={}){const _0x54f646=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5da6d4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54f646['markMultiRangeBlockFormat'](_0x5da6d4,{'commandName':'listStyle','commandParams':[{'type':_0x407173['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x50d89e,_0x4a084a={}){const _0x36974b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cada2=this['_getSuggestionBlocks'](_0x18061c=>_0x18061c['is']('element','listItem')&&'numbered'===_0x18061c['getAttribute']('listType'));if(_0x3cada2['length']<0x1)return;const _0x557178=_0x3cada2['map'](_0x574739=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x574739,'before'),this['editor']['model']['createPositionAt'](_0x574739,0x0)));this['editor']['model']['change'](()=>{_0x36974b['markMultiRangeBlockFormat'](_0x557178,{'commandName':'listReversed','commandParams':[{'reversed':_0x4a084a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x515a8e,_0x30f63f={}){const _0x44e3d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26fefb=this['_getSuggestionBlocks'](_0x45d5e7=>_0x45d5e7['is']('element','listItem')&&'numbered'===_0x45d5e7['getAttribute']('listType'));if(_0x26fefb['length']<0x1)return;const _0x2e02c3=_0x26fefb['map'](_0x259b61=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x259b61,'before'),this['editor']['model']['createPositionAt'](_0x259b61,0x0)));this['editor']['model']['change'](()=>{_0x44e3d1['markMultiRangeBlockFormat'](_0x2e02c3,{'commandName':'listStart','commandParams':[{'startIndex':_0x30f63f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4586b3){if('formatBlock'!=_0x4586b3['type']&&'formatInline'!=_0x4586b3['type'])return;const _0x3c5e2e=this['editor']['locale'],{data:_0x25395a}=_0x4586b3;if(!_0x25395a)return;let _0x24b9a8,_0x5d416e;switch(_0x25395a['commandName']){case'listStyle':_0x24b9a8='*Change\x20to:*\x20%0',_0x5d416e={'type':'format','content':o(_0x3c5e2e,_0x24b9a8,o(_0x3c5e2e,this['_getTranslationKeyForListStyle'](_0x25395a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24b9a8=_0x25395a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5d416e={'type':'format','content':o(_0x3c5e2e,_0x24b9a8)};break;case'listStart':_0x24b9a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d416e={'type':'format','content':o(_0x3c5e2e,_0x24b9a8,_0x25395a['commandParams'][0x0]['startIndex'])};}return _0x5d416e;}['_getSuggestionBlocksForListStyle'](){const _0x44523a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bdd12=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2bdd12[0x0]?.['is']('element','listItem')&&_0x2bdd12['unshift'](..._0x44523a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2bdd12[_0x2bdd12['length']-0x1]?.['is']('element','listItem')&&_0x2bdd12['push'](..._0x44523a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bdd12=[...new Set(_0x2bdd12)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2bdd12=_0x2bdd12['filter'](_0x535b75=>_0x535b75['is']('element','listItem'))),_0x2bdd12;}['_getSuggestionBlocks'](_0x1b1960){const _0x2eae7d=this['editor']['plugins']['get']('LegacyListUtils');let _0x185071=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b1960)['map'](_0x434faa=>{const _0x133748=this['editor']['model']['createPositionAt'](_0x434faa,0x0);return[..._0x2eae7d['getSiblingNodes'](_0x133748,'backward'),..._0x2eae7d['getSiblingNodes'](_0x133748,'forward')];})['flat']();return _0x185071=[...new Set(_0x185071)],_0x185071;}['_getTranslationKeyForListStyle'](_0x292dc7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x292dc7)||'default')['toUpperCase']()+'_LIST_'+_0x292dc7['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x57a03e{['afterInit'](){const _0x5761a7=this['editor'];if(!_0x5761a7['plugins']['has']('MediaEmbedEditing'))return;const _0x11a334=_0x5761a7['plugins']['get']('TrackChangesEditing'),_0x6f4283=_0x5761a7['locale'];_0x11a334['enableCommand']('mediaEmbed'),_0x11a334['descriptionFactory']['registerElementLabel']('media',_0x5ebe98=>o(_0x6f4283,'ELEMENT_MEDIA',_0x5ebe98)),_0x5761a7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x38f338,{writer:_0x3b4a5e,options:_0x3bb3ad})=>{if(_0x3bb3ad['showSuggestionHighlights'])return _0x3b4a5e['createEmptyElement']('div');},'converterPriority':'high'}),_0x5761a7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4df480,_0x464279,_0x262427)=>{_0x262427['options']['showSuggestionHighlights']&&_0x4df480['stop']();},{'priority':'high'});}}class mt extends _0x57a03e{['afterInit'](){const _0x16fbb6=this['editor'];_0x16fbb6['plugins']['has']('MentionEditing')&&_0x16fbb6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x57a03e{['afterInit'](){const _0x478fd6=this['editor'];if(!_0x478fd6['plugins']['has']('MergeFieldsEditing'))return;const _0x5e9d5d=_0x478fd6['plugins']['get']('TrackChangesEditing'),_0xd833f5=_0x478fd6['locale'];_0x5e9d5d['enableCommand']('insertMergeField'),_0x5e9d5d['enableCommand']('insertMergeFieldBlock'),_0x5e9d5d['enableCommand']('insertMergeFieldImage'),_0x5e9d5d['descriptionFactory']['registerElementLabel']('mergeField',_0x372f59=>o(_0xd833f5,'ELEMENT_MERGE_FIELD',_0x372f59)),_0x5e9d5d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x35b70f=>o(_0xd833f5,'ELEMENT_MERGE_FIELD',_0x35b70f)),_0x5e9d5d['descriptionFactory']['registerDescriptionCallback'](_0xd97443=>{if('insertion'!=_0xd97443['type']&&'deletion'!=_0xd97443['type'])return;const _0x5d5d41=_0xd97443['getContainedElement']();if(null==_0x5d5d41)return;const _0x2f4b72=_0x478fd6['plugins']['get']('MergeFieldsEditing');let _0x29cf49;switch(_0x2f4b72['getMergeFieldType'](_0x5d5d41)){case null:return;case'image':{const _0x2667bc=_0x2f4b72['unwrapAffixes'](_0x5d5d41['getAttribute']('src'));_0x29cf49=_0x2f4b72['getLabel'](_0x2667bc)||_0x2667bc;break;}default:{const _0x28a65d=_0x5d5d41['getAttribute']('id');_0x29cf49=_0x2f4b72['getLabel'](_0x28a65d)||_0x28a65d;break;}}return'insertion'==_0xd97443['type']?{'type':'insertion','content':o(_0xd833f5,'*Insert:*\x20%0','\x22'+_0x29cf49+'\x22\x20'+o(_0xd833f5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xd833f5,'*Remove:*\x20%0','\x22'+_0x29cf49+'\x22\x20'+o(_0xd833f5,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x57a03e{['afterInit'](){const _0x2e911e=this['editor'],_0x743e90=_0x2e911e['plugins']['get']('TrackChangesEditing');_0x2e911e['plugins']['has']('MultiLevelList')&&(_0x743e90['enableDefaultAttributesIntegration']('multiLevelList'),_0x743e90['registerBlockAttribute']('listMarkerStyle'),_0x743e90['descriptionFactory']['registerDescriptionCallback'](_0xbd82ed=>this['handleDescriptions'](_0xbd82ed)));}['handleDescriptions'](_0x4ce628){const _0x21fcd2=this['editor']['locale'],{data:_0x3913d2}=_0x4ce628,_0x5d1a5d={'type':'format','content':''};if(_0x3913d2&&'listMarkerStyle'==_0x3913d2['key']){if(!_0x3913d2['oldValue'])return{'type':'format','content':o(_0x21fcd2,'*Set\x20format:*\x20%0',o(_0x21fcd2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3913d2['newValue']+')'};if(!_0x3913d2['newValue']){let _0x5ca045=_0x4ce628['head'];for(;_0x5ca045;){if(_0x5ca045['data']&&'listType'==_0x5ca045['data']['key']&&_0x5ca045['data']['newValue'])return _0x5d1a5d;_0x5ca045=_0x5ca045['next'];}return{'type':'format','content':o(_0x21fcd2,'*Remove\x20format:*\x20%0',o(_0x21fcd2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3913d2['oldValue']+')'};}}}}class kt extends _0x57a03e{['afterInit'](){const _0x4bd79f=this['editor'];if(!_0x4bd79f['plugins']['has']('PageBreakEditing'))return;_0x4bd79f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x841184=_0x4bd79f['plugins']['get']('TrackChangesEditing'),_0x51c2b4=_0x4bd79f['locale'];_0x841184['descriptionFactory']['registerElementLabel']('pageBreak',_0x53915d=>o(_0x51c2b4,'ELEMENT_PAGE_BREAK',_0x53915d));}}class bt extends _0x57a03e{['afterInit'](){const _0x590e5c=this['editor'];if(!_0x590e5c['plugins']['has']('Paragraph'))return;const _0x3fa52f=_0x590e5c['locale'],_0x340750=_0x590e5c['plugins']['get']('TrackChangesEditing');_0x340750['descriptionFactory']['registerElementLabel']('paragraph',_0x19f091=>o(_0x3fa52f,'ELEMENT_PARAGRAPH',_0x19f091)),_0x340750['enableDefaultAttributesIntegration']('paragraph'),_0x340750['enableCommand']('insertParagraph'),_0x590e5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x590e5c),{'priority':'highest'}),_0x590e5c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa63fe6,_0x180018,_0x4c4a8d)=>{_0x4c4a8d['options']['showSuggestionHighlights']&&nr(_0x590e5c,{'showActiveMarker':!0x1})(_0xa63fe6,_0x180018,_0x4c4a8d);},{'priority':'highest'});const _0x4cd7ad=_0x340750['descriptionFactory'];_0x4cd7ad['registerDescriptionCallback'](_0x4c2be4=>{if('insertion'!==_0x4c2be4['type'])return;const {start:_0x42b46e,end:_0x4c2237}=_0x4c2be4['getFirstRange']();if(!_0x42b46e['isTouching'](_0x4c2237)||!_0x42b46e['nodeAfter'])return;const _0xf2aeac=_0x590e5c['model']['schema'],_0x39d1b6=_0x42b46e['nodeAfter'];return _0xf2aeac['isBlock'](_0x39d1b6)&&!_0xf2aeac['isLimit'](_0x39d1b6)&&_0xf2aeac['checkChild'](_0x39d1b6,'$text')?{'type':'insertion','content':o(_0x3fa52f,'*Insert:*\x20%0',_0x4cd7ad['getItemLabel'](_0x39d1b6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6cd54a=this['editor'],_0x23db80=_0x6cd54a['locale'];_0x6cd54a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ae94a=>{if('formatBlock'!=_0x2ae94a['type'])return;const {data:_0x43676a}=_0x2ae94a;return _0x43676a&&'paragraph'==_0x43676a['commandName']?{'type':'format','content':o(_0x23db80,'*Change\x20to:*\x20%0',o(_0x23db80,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xcdd70,{showActiveMarker:_0x2a9d90=!0x0}={}){return(_0x1af291,_0x254e33,_0x1968eb)=>{const _0x18ac1d=_0xcdd70['plugins']['get']('TrackChangesEditing'),_0x480e48=_0x254e33['markerRange']['start'],_0x5089bc=_0x254e33['markerRange']['end'],_0x59160f=_0xcdd70['model']['schema'];if(!_0x480e48['isTouching'](_0x5089bc)||!_0x480e48['nodeAfter'])return;const _0x4a2e51=_0x480e48['nodeAfter'];if(_0x59160f['isBlock'](_0x4a2e51)&&!_0x59160f['isLimit'](_0x4a2e51)&&_0x59160f['checkChild'](_0x4a2e51,'$text')){if(!_0x1968eb['consumable']['consume'](_0x254e33['markerRange'],_0x1af291['name']))return;const {authorId:_0x2c974e}=_0x18ac1d['_splitMarkerName'](_0x254e33['markerName']),_0x4c951b=_0x1968eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2c974e}),_0x4bc49d=_0x1968eb['mapper']['toViewPosition'](_0x5089bc);_0x2a9d90&&_0x18ac1d['activeMarkers']['includes'](_0x254e33['markerName'])&&_0x1968eb['writer']['addClass']('ck-suggestion-marker--active',_0x4c951b),_0x1968eb['writer']['insert'](_0x4bc49d,_0x4c951b),_0x1968eb['mapper']['bindElementToMarker'](_0x4c951b,_0x254e33['markerName']);}};}class yt extends _0x57a03e{['afterInit'](){const _0x3bb0d2=this['editor'];if(!_0x3bb0d2['plugins']['has']('RemoveFormatEditing'))return;_0x3bb0d2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bb5ee=this['editor'];_0x3bb5ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35c052=>{if('formatBlock'!=_0x35c052['type']&&'formatInline'!=_0x35c052['type'])return;const {data:_0x2c6e79}=_0x35c052;return _0x2c6e79&&'removeFormat'==_0x2c6e79['commandName']?{'type':'format','content':o(_0x3bb5ee['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x57a03e{['afterInit'](){const _0x40444e=this['editor'];if(!_0x40444e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f2153=_0x40444e['plugins']['get']('TrackChangesEditing');_0x3f2153['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f2153['enableCommand']('goToNextRestrictedEditingException');const _0x1e9148=_0x40444e['plugins']['get']('RestrictedEditingModeEditing');_0x1e9148['enableCommand']('trackChanges'),_0x1e9148['enableCommand']('acceptSuggestion'),_0x1e9148['enableCommand']('discardSuggestion'),_0x1e9148['enableCommand']('acceptAllSuggestions'),_0x1e9148['enableCommand']('discardAllSuggestions'),_0x1e9148['enableCommand']('acceptSelectedSuggestions'),_0x1e9148['enableCommand']('discardSelectedSuggestions');}}class St extends _0x57a03e{static get['requires'](){return[_0x5c51ca];}['init'](){const _0x4a89cb=this['editor'],_0x1f9cfd=_0x4a89cb['plugins']['get']('TrackChangesEditing');_0x1f9cfd['enableCommand']('shiftEnter'),_0x4a89cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4a89cb),{'priority':'high'}),_0x4a89cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4a89cb),{'priority':'high'}),_0x4a89cb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf0dae8,_0x5c7397,_0x1082a0)=>{_0x1082a0['options']['showSuggestionHighlights']&&je(_0x4a89cb,{'showActiveMarker':!0x1})(_0xf0dae8,_0x5c7397,_0x1082a0);}),_0x1f9cfd['descriptionFactory']['registerElementLabel']('softBreak',_0x2a2982=>o(_0x4a89cb['locale'],'ELEMENT_LINE_BREAK',_0x2a2982));}}function je(_0x25843e,{showActiveMarker:_0x32d2fd=!0x0}={}){return(_0x385823,_0x14f3c3,_0x14339f)=>{const _0x247c62=_0x25843e['plugins']['get']('TrackChangesEditing');if(!_0x14339f['consumable']['test'](_0x14f3c3['markerRange'],_0x385823['name']))return;const _0x15dbc4=_0x25843e['model'];for(const _0x4241f0 of _0x14f3c3['markerRange']['getItems']()){if(!_0x4241f0['is']('element','softBreak'))continue;const _0x2f444a='deletion'==_0x14f3c3['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x21287c}=_0x247c62['_splitMarkerName'](_0x14f3c3['markerName']),_0x812042=_0x14339f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f444a,'data-author-id':_0x21287c}),_0x1dd1d6=_0x14339f['mapper']['toViewPosition'](_0x15dbc4['createPositionBefore'](_0x4241f0));_0x32d2fd&&_0x247c62['activeMarkers']['includes'](_0x14f3c3['markerName'])&&_0x14339f['writer']['addClass']('ck-suggestion-marker--active',_0x812042),_0x14339f['writer']['insert'](_0x1dd1d6,_0x812042),_0x14339f['mapper']['bindElementToMarker'](_0x812042,_0x14f3c3['markerName']);}};}class At extends _0x57a03e{['afterInit'](){const _0x1aa0b5=this['editor'],_0x46295f=_0x1aa0b5['model'],_0x201a4e=_0x1aa0b5['locale'];if(!_0x1aa0b5['plugins']['has']('StandardEditingModeEditing'))return;const _0x548c53=_0x1aa0b5['plugins']['get']('TrackChangesEditing'),_0x1e987a='restrictedEditingException',_0xe4a043=_0x1aa0b5['commands']['get'](_0x1e987a);_0x548c53['enableCommand'](_0x1e987a,(_0x3add24,_0x1b08c7={})=>{const _0x37e307=_0x46295f['document']['selection'];if(_0x37e307['isCollapsed'])return void _0x3add24(_0x1b08c7);const _0x3ccd7c=void 0x0!==_0x1b08c7['forceValue']?_0x1b08c7['forceValue']:!_0xe4a043['value'];_0x46295f['change'](()=>{const _0x4b58cb=Array['from'](_0x37e307['getRanges']());for(const _0x38729d of _0x4b58cb){const _0x3eefe5=_0x3ccd7c?[_0x38729d]:io(_0x1e987a,_0x38729d,_0x46295f);for(const _0x433296 of _0x3eefe5)_0x548c53['markInlineFormat'](_0x433296,{'commandName':_0x1e987a,'commandParams':[{'forceValue':_0x3ccd7c}]});}});}),_0x548c53['descriptionFactory']['registerDescriptionCallback'](_0x4d3fa0=>{if('formatBlock'!=_0x4d3fa0['type']&&'formatInline'!=_0x4d3fa0['type'])return;const {data:_0x4b778a}=_0x4d3fa0;return _0x4b778a&&_0x4b778a['commandName']==_0x1e987a?_0x4b778a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x201a4e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x201a4e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x57a03e{['afterInit'](){const _0x458f60=this['editor'];if(!_0x458f60['plugins']['has']('Style')||!_0x458f60['plugins']['has']('DataSchema'))return;const _0x189a92=_0x458f60['plugins']['get']('TrackChangesEditing'),_0x4cebf9=_0x458f60['locale'],_0x29388d=_0x458f60['config']['get']('style')||{},_0x41ffc1=_0x458f60['plugins']['get']('GeneralHtmlSupport'),_0x314c9c=_0x458f60['plugins']['get']('StyleUtils')['normalizeConfig'](_0x458f60['plugins']['get']('DataSchema'),_0x29388d['definitions']);_0x189a92['enableDefaultAttributesIntegration']('style');const _0x4390c0=new Set();for(const _0x2e483e of _0x314c9c['block']){const _0x3f98fe=_0x41ffc1['getGhsAttributeNameForElement'](_0x2e483e['element']);_0x4390c0['add'](_0x3f98fe);}const _0x209960=new Set();for(const _0x551708 of _0x314c9c['inline']){const _0x4721f0=_0x41ffc1['getGhsAttributeNameForElement'](_0x551708['element']);_0x209960['add'](_0x4721f0);for(const _0x3ed61a of _0x551708['ghsAttributes'])_0x209960['add'](_0x3ed61a);}for(const _0x39590b of _0x4390c0)_0x189a92['registerBlockAttribute'](_0x39590b),_0x189a92['descriptionFactory']['registerAttributeLabel'](_0x39590b,o(_0x4cebf9,'FORMAT_STYLE'));for(const _0x7312e0 of _0x209960)_0x189a92['registerInlineAttribute'](_0x7312e0),_0x189a92['descriptionFactory']['registerAttributeLabel'](_0x7312e0,o(_0x4cebf9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a2d86=this['editor'],_0x11a7d3=_0x2a2d86['locale'];_0x2a2d86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5958c0=>{if('formatBlock'!=_0x5958c0['type']&&'formatInline'!=_0x5958c0['type'])return;const {data:_0x599c27}=_0x5958c0;return _0x599c27&&'style'===_0x599c27['commandName']?_0x599c27['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11a7d3,'*Set\x20format:*\x20%0',_0x599c27['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x11a7d3,'*Remove\x20format:*\x20%0',_0x599c27['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x57a03e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4565fb){super(_0x4565fb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x57dc81=this['editor'],_0x457030=_0x57dc81['model']['document']['selection'];if(!_0x57dc81['plugins']['has']('TableEditing'))return;const _0x4a6840=_0x57dc81['locale'],_0x503a46=_0x57dc81['plugins']['get']('TrackChangesEditing'),_0x511bb1=_0x57dc81['plugins']['get']('TableUtils');_0x503a46['descriptionFactory']['registerElementLabel']('table',_0xfa009c=>o(_0x4a6840,'ELEMENT_TABLE',_0xfa009c)),this['_setupColumnsRowsFixing'](),_0x503a46['enableCommand']('insertTable'),_0x503a46['enableCommand']('selectTableRow'),_0x503a46['enableCommand']('selectTableColumn');for(const _0x39f43b of['insertTableRowAbove','insertTableRowBelow']){const _0x5a4628=_0x57dc81['commands']['get'](_0x39f43b);_0x503a46['enableCommand'](_0x39f43b,_0x49b265=>{_0x57dc81['model']['change'](_0x3fd539=>{_0x49b265();const _0x10dca1='above'===_0x5a4628['order'],_0xed1d39=_0x511bb1['getSelectionAffectedTableCells'](_0x457030),_0x24b258=_0x511bb1['getRowIndexes'](_0xed1d39),_0x28028d=_0x10dca1?_0x24b258['first']-0x1:_0x24b258['last']+0x1,_0x2747fd=_0xed1d39[0x0]['findAncestor']('table'),_0x48bd31=_0x511bb1['createTableWalker'](_0x2747fd,{'startRow':_0x28028d,'endRow':_0x28028d}),_0x537bd8=Array['from'](_0x48bd31)['map'](_0x2645d8=>_0x3fd539['createRangeOn'](_0x2645d8['cell']));_0x503a46['markMultiRangeInsertion'](_0x537bd8,'tableRow');});});}for(const _0x2b08db of['insertTableColumnLeft','insertTableColumnRight']){const _0x328e2b=_0x57dc81['commands']['get'](_0x2b08db);_0x503a46['enableCommand'](_0x2b08db,_0x5c45bc=>{_0x57dc81['model']['change'](_0xd691b3=>{_0x5c45bc();const _0x3370fd='left'===_0x328e2b['order'],_0x5eb1e4=_0x511bb1['getSelectionAffectedTableCells'](_0x457030),_0x46332b=_0x511bb1['getColumnIndexes'](_0x5eb1e4),_0x319407=_0x3370fd?_0x46332b['first']-0x1:_0x46332b['last']+0x1,_0x2e25f1=_0x5eb1e4[0x0]['findAncestor']('table'),_0x285049=_0x511bb1['createTableWalker'](_0x2e25f1,{'startRow':0x0,'column':_0x319407,'includeAllSlots':!0x1}),_0x511702=Array['from'](_0x285049)['map'](_0x565053=>_0xd691b3['createRangeOn'](_0x565053['cell']));_0x503a46['markMultiRangeInsertion'](_0x511702,'tableColumn');});});}for(const _0x269f29 of['removeTableRow','removeTableColumn']){const _0x56dd4c=_0x269f29['substr'](0xb),_0x2f2d29=_0x56dd4c['toLowerCase'](),_0x4815b8=_0x2f2d29['substr'](0x0,0x3)+'span',_0x326dff='table'+_0x56dd4c,_0x3a3a6a='min'+_0x56dd4c,_0x2bf302='max'+_0x56dd4c;_0x503a46['enableCommand'](_0x269f29,()=>{_0x57dc81['model']['change'](_0x4f1ad2=>{const _0x2818dd=_0x511bb1['getSelectionAffectedTableCells'](_0x457030),_0x229f1c=_0x2818dd[0x0]['findAncestor']('table');let _0x130e2b;if('removeTableRow'==_0x269f29){const _0x8e0b39=_0x511bb1['getRowIndexes'](_0x2818dd);_0x130e2b={'startRow':_0x8e0b39['first'],'endRow':_0x8e0b39['last'],'includeAllSlots':!0x0};}else{const _0x4d579d=_0x511bb1['getColumnIndexes'](_0x2818dd);_0x130e2b={'startColumn':_0x4d579d['first'],'endColumn':_0x4d579d['last'],'includeAllSlots':!0x0};}const _0x56c243=_0x511bb1['createTableWalker'](_0x229f1c,_0x130e2b),_0xaaa733=Array['from'](_0x56c243)['map'](({cell:_0x352caa})=>_0x352caa),_0x46e27d=Ne(_0xaaa733['filter'](_0x149f94=>_0x149f94['hasAttribute'](_0x4815b8))),_0x543b10=Ne(_0xaaa733['filter'](_0x3bd82c=>!_0x3bd82c['hasAttribute'](_0x4815b8)))['map'](_0x272f95=>_0x4f1ad2['createRangeOn'](_0x272f95)),_0x468486=_0x503a46['markMultiRangeDeletion'](_0x543b10,_0x326dff);if(_0x468486&&('tableRow'==_0x468486['subType']||'tableColumn'==_0x468486['subType'])){const _0x3c4803=this['_getSuggestionCoords'](_0x468486);for(const _0x283940 of _0x46e27d){const _0x5cf5f9=_0x4f1ad2['createRangeOn'](_0x283940),_0x9e8278=_0x511bb1['getCellLocation'](_0x283940),_0x2c57a8=_0x283940['getAttribute'](_0x4815b8)-0x1,_0x16b768=_0x3c4803[_0x3a3a6a],_0x48d352=_0x3c4803[_0x2bf302];_0x16b768<=_0x9e8278[_0x2f2d29]&&_0x9e8278[_0x2f2d29]+_0x2c57a8<=_0x48d352&&_0x468486['addRange'](_0x5cf5f9);}}});});}function _0x143573(_0x14b780){const _0xed26f5=Array['from'](_0x457030['getRanges']())['map'](_0x213364=>_0x4da4a9['fromRange'](_0x213364));_0x57dc81['model']['change'](_0xf7b71c=>{const _0x5e1bb8=_0xf7b71c['batch'];_0x14b780=_0x14b780['filter'](_0x2d71bb=>'$graveyard'!=_0x2d71bb['root']['rootName']),_0xf7b71c['setSelection'](_0x14b780),_0x57dc81['commands']['get']('removeTableRow')['refresh'](),_0x57dc81['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57dc81['model']['enqueueChange'](()=>{_0x57dc81['model']['enqueueChange'](_0x5e1bb8,_0x58ba73=>{const _0x23b080=_0xed26f5['filter'](_0xe422f5=>'$graveyard'!=_0xe422f5['root']['rootName']);_0x23b080['length']>0x0&&_0x58ba73['setSelection'](_0x23b080);for(const _0x21acc9 of _0xed26f5)_0x21acc9['detach']();});});});}function _0x2ed33f(_0x1f2163){_0x57dc81['model']['change'](_0x32e4b9=>{const _0x4273fb=Array['from'](_0x457030['getRanges']())['map'](_0xda7df8=>_0x4da4a9['fromRange'](_0xda7df8)),_0x175d47=[];for(const _0x1d7e82 of _0x1f2163)for(const _0x1ed950 of _0x1d7e82['getItems']({'shallow':!0x0}))_0x175d47['push'](_0x1ed950);for(const _0x173356 of _0x175d47)'$graveyard'!=_0x173356['root']['rootName']&&(_0x32e4b9['setSelection'](_0x32e4b9['createPositionAt'](_0x173356,0x0)),_0x57dc81['commands']['get']('removeTableColumn')['refresh'](),_0x57dc81['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2fd405=_0x4273fb['filter'](_0x47828e=>'$graveyard'!=_0x47828e['root']['rootName']);_0x2fd405['length']>0x0&&_0x32e4b9['setSelection'](_0x2fd405);for(const _0x3ab835 of _0x4273fb)_0x3ab835['detach']();});}function _0x5b4a4c(_0x1ec570,_0x2ae6c9){return _0x2ae6c9['every'](_0x178243=>_0x1ec570['some'](_0x6a0af5=>_0x6a0af5['end']['isEqual'](_0x178243['start'])||_0x178243['end']['isEqual'](_0x6a0af5['start'])));}function _0x8d49f6(_0x3b1e36,_0x31a1c1){return!_0x3b1e36['some'](_0x3d457b=>_0x31a1c1['some'](_0x1eb382=>_0x3d457b['isIntersecting'](_0x1eb382)))&&_0x3b1e36['some'](_0x34e2ea=>_0x31a1c1['some'](_0x36459b=>_0x34e2ea['end']['isTouching'](_0x36459b['start'])));}_0x57dc81['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2cbf32,_0x3c9e2d,_0x151cc8)=>{if(!_0x151cc8['options']['showSuggestionHighlights'])return;const _0x7848d3=_0x3c9e2d['item'];if(!_0x7848d3)return;const _0xe86fdd=_0x151cc8['mapper']['toViewElement'](_0x7848d3);function _0x12b39c(_0x23f586){return Array['isArray'](_0x23f586)?_0x23f586:[_0x23f586];}_0xe86fdd&&'tableCell'===_0x7848d3['name']&&_0x578877(_0xe86fdd,_0x151cc8['writer'],(_0x3335a6,_0x5a73fe,_0x2513ff)=>_0x2513ff['addClass'](_0x12b39c(_0x5a73fe['classes']),_0x3335a6),(_0x2bffc1,_0x3c8d7b,_0x2946c0)=>_0x2946c0['removeClass'](_0x12b39c(_0x3c8d7b['classes']),_0x2bffc1));},{'priority':'highest'}),_0x503a46['descriptionFactory']['registerDescriptionCallback'](_0x7d55a9=>{if('insertion'!=_0x7d55a9['type']&&'deletion'!=_0x7d55a9['type'])return;const _0x2a7188=_0x7d55a9['getContainedElement']();if(null!=_0x2a7188&&_0x2a7188['is']('element','table')){if('insertion'==_0x7d55a9['type']){const _0x370484=_0x7d55a9['getItems']()['filter'](_0x3d78f8=>_0x3d78f8['is']('$textProxy'))['map'](_0x151650=>_0x151650['data']);if(_0x370484['length'])return{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x370484['join']('\x20')+'\x22'))};}if('deletion'==_0x7d55a9['type']){const _0x40ba2a=_0x7d55a9['getItems']()['filter'](_0x52a7a2=>_0x52a7a2['is']('$textProxy'))['map'](_0x1a837c=>_0x1a837c['data']);if(_0x40ba2a['length'])return{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40ba2a['join']('\x20')+'\x22'))};}}}),_0x503a46['descriptionFactory']['registerDescriptionCallback'](_0x3f85c4=>{if('tableRow'==_0x3f85c4['subType']){const _0x31bc71=_0x3f85c4['getItems']()['filter'](_0x3eb0e2=>_0x3eb0e2['is']('$textProxy'))['map'](_0x37fb17=>_0x37fb17['data']),_0x386df4=this['_getSuggestionCoords'](_0x3f85c4),_0x1d7e0d=_0x386df4['maxRow']-_0x386df4['minRow']+0x1;if('insertion'==_0x3f85c4['type'])return _0x31bc71['length']?{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7e0d,'\x22'+_0x31bc71['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_ROW',_0x1d7e0d))};if('deletion'==_0x3f85c4['type'])return _0x31bc71['length']?{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7e0d,'\x22'+_0x31bc71['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_ROW',_0x1d7e0d))};}if('tableColumn'==_0x3f85c4['subType']){const _0xa83385=_0x3f85c4['getItems']()['filter'](_0x403a5d=>_0x403a5d['is']('$textProxy'))['map'](_0x1f1f35=>_0x1f1f35['data']),_0x46b7c7=this['_getSuggestionCoords'](_0x3f85c4),_0xbaae89=_0x46b7c7['maxColumn']-_0x46b7c7['minColumn']+0x1;if('insertion'==_0x3f85c4['type'])return _0xa83385['length']?{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbaae89,'\x22'+_0xa83385['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_COLUMN',_0xbaae89))};if('deletion'==_0x3f85c4['type'])return _0xa83385['length']?{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbaae89,'\x22'+_0xa83385['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_COLUMN',_0xbaae89))};}}),_0x503a46['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x143573),_0x503a46['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x143573),_0x503a46['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2ed33f),_0x503a46['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2ed33f),_0x503a46['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b4a4c),_0x503a46['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b4a4c),_0x503a46['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x8d49f6),_0x503a46['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x8d49f6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2a7b2e=this['editor'],_0x294828=_0x2a7b2e['model']['document']['selection'];return(_0x3fa934,_0x1c1697)=>{_0x2a7b2e['model']['change'](_0x453a52=>{const {commandName:_0x4e412c,commandParams:_0x323fc3}=_0x1c1697;let _0x511661=_0x3fa934[0x0]['end']['nodeBefore'];_0x323fc3&&_0x323fc3[0x0]&&!0x1===_0x323fc3[0x0]['forceValue']&&(_0x511661=_0x3fa934[0x0]['start']['nodeAfter']);const _0x1de43b=_0x453a52['createRangeIn'](_0x511661);if('$graveyard'==_0x1de43b['root']['rootName'])return;const _0x745a49=Array['from'](_0x294828['getRanges']())['map'](_0x3d8725=>_0x4da4a9['fromRange'](_0x3d8725));_0x453a52['setSelection'](_0x1de43b),_0x2a7b2e['commands']['get'](_0x4e412c)['refresh'](),_0x323fc3['push']({'forceDefaultExecution':!0x0}),_0x2a7b2e['execute'](_0x4e412c,..._0x323fc3);const _0x199d92=_0x745a49['filter'](_0x2c3ddb=>'$graveyard'!=_0x2c3ddb['root']['rootName']);_0x199d92['length']>0x0&&_0x453a52['setSelection'](_0x199d92);for(const _0x1863ec of _0x745a49)_0x1863ec['detach']();});};}['_getCoordsForCells'](_0x12a6ac){const _0x41faa1=this['editor']['plugins']['get']('TableUtils');let _0x581928=Number['MAX_SAFE_INTEGER'],_0x3fd74b=Number['MIN_SAFE_INTEGER'],_0x1d1082=Number['MAX_SAFE_INTEGER'],_0x44f853=Number['MIN_SAFE_INTEGER'];for(const _0x5f13bb of _0x12a6ac){if('$graveyard'==_0x5f13bb['root']['rootName'])continue;const {row:_0xcefb58,column:_0x1a29ed}=_0x41faa1['getCellLocation'](_0x5f13bb),_0x3565da=_0x5f13bb['hasAttribute']('rowspan')?_0x5f13bb['getAttribute']('rowspan')-0x1:0x0,_0x27066a=_0x5f13bb['hasAttribute']('colspan')?_0x5f13bb['getAttribute']('colspan')-0x1:0x0;_0x581928=_0xcefb58<_0x581928?_0xcefb58:_0x581928,_0x3fd74b=_0xcefb58+_0x3565da>_0x3fd74b?_0xcefb58+_0x3565da:_0x3fd74b,_0x1d1082=_0x1a29ed<_0x1d1082?_0x1a29ed:_0x1d1082,_0x44f853=_0x1a29ed+_0x27066a>_0x44f853?_0x1a29ed+_0x27066a:_0x44f853;}return{'minRow':_0x581928,'maxRow':_0x3fd74b,'minColumn':_0x1d1082,'maxColumn':_0x44f853};}['_setupColumnsRowsFixing'](){const _0x3083af=this['editor'],_0x20131a=_0x3083af['plugins']['get']('TrackChangesEditing'),_0x56f9ca=_0x3083af['plugins']['get']('TableUtils');_0x3083af['model']['document']['on']('change:data',()=>{const _0x5a87e5=Array['from'](_0x3083af['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5519ec,data:_0x54fd7d}of _0x5a87e5){const {group:_0x384ee2,id:_0x5a3726,subType:_0x31e4f5}=_0x20131a['_splitMarkerName'](_0x5519ec);if('suggestion'!=_0x384ee2)continue;if(null!=_0x54fd7d['oldRange'])continue;const _0x57755c=_0x20131a['getSuggestion'](_0x5a3726);this['_tablePostFixingSubtypes']['includes'](_0x31e4f5)&&this['_tableSuggestions']['add'](_0x57755c);}},{'priority':'low'});const _0x3aea67=(_0x2fe2a5,_0x34b806)=>{let _0xf438bf=!0x1;const _0x5e825b=_0x34b806['createRangeOn'](_0x2fe2a5),_0x1b6195=_0x2fe2a5['findAncestor']('table'),_0x89327f=_0x56f9ca['getCellLocation'](_0x2fe2a5);for(const _0x549cca of this['_tableSuggestions']){const _0x35b43b=_0x549cca['subType'],_0xccbe68=_0x35b43b['startsWith']('tablePaste'),_0x5bb72e=_0x35b43b['substr'](_0xccbe68?0xa:0x5),_0x6fa9d0=_0x5bb72e['toLowerCase'](),_0x2bcad3=_0x6fa9d0['substr'](0x0,0x3)+'span',_0x6889f1='min'+_0x5bb72e,_0x53cad3='max'+_0x5bb72e;if(!_0x549cca['isInContent'])continue;if(_0x1b6195!=_0x549cca['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x549cca['isIntersectingWithRange'](_0x5e825b))continue;const _0x2462c8=_0x2fe2a5['hasAttribute'](_0x2bcad3)?_0x2fe2a5['getAttribute'](_0x2bcad3)-0x1:0x0,_0xcb045d=this['_getSuggestionCoords'](_0x549cca),_0x2ed978=_0xcb045d[_0x6889f1],_0x5a28bd=_0xcb045d[_0x53cad3];_0x2ed978<=_0x89327f[_0x6fa9d0]&&_0x89327f[_0x6fa9d0]+_0x2462c8<=_0x5a28bd&&(_0x549cca['addRange'](_0x5e825b),_0xf438bf=!0x0);}return _0xf438bf;};_0x3083af['model']['document']['registerPostFixer'](_0x1189c8=>{let _0x10a0ee=!0x1;for(const _0x10e7a1 of _0x3083af['model']['document']['differ']['getChanges']())if('insert'==_0x10e7a1['type']){if('tableRow'==_0x10e7a1['name']){for(const _0x4b56b4 of _0x10e7a1['position']['nodeAfter']['getChildren']())_0x10a0ee=_0x10a0ee||_0x3aea67(_0x4b56b4,_0x1189c8);}else'tableCell'==_0x10e7a1['name']&&(_0x10a0ee=_0x10a0ee||_0x3aea67(_0x10e7a1['position']['nodeAfter'],_0x1189c8));}return _0x10a0ee;});}['_getSuggestionCoords'](_0x22c28c){return this['_getCoordsForCells'](_0x22c28c['getRanges']()['map'](_0x903b31=>_0x903b31['start']['nodeAfter']));}}function Ne(_0x285175){return Array['from'](new Set(_0x285175)['values']());}class _t extends _0x57a03e{static get['requires'](){return[vt];}['afterInit'](){const _0x151e16=this['editor'],_0x10cf4b=_0x151e16['model']['document']['selection'],_0x1172c9=_0x151e16['locale'];if(!_0x151e16['plugins']['has']('TableEditing'))return;const _0x574158=_0x151e16['plugins']['get']('TrackChangesEditing'),_0x42ecf7=_0x151e16['plugins']['get']('TableUtils'),_0x5eac9f=_0x151e16['plugins']['get'](vt);_0x5eac9f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x574158['enableCommand']('mergeTableCells',()=>{const _0x17729f=_0x42ecf7['getSelectionAffectedTableCells'](_0x151e16['model']['document']['selection']);_0x151e16['model']['change'](()=>{_0x574158['markMultiRangeBlockFormat'](_0x17729f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x151e16['commands']['get']('mergeTableCells')['on']('execute',(_0x315fc5,_0x1c571e)=>{_0x151e16['commands']['get']('trackChanges')['value']&&(_0x1c571e['length']>0x0&&_0x1c571e[_0x1c571e['length']-0x1]&&_0x1c571e[_0x1c571e['length']-0x1]['forceDefaultExecution']||_0x574158['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x315fc5['stop']());},{'priority':'highest'});for(const _0x1ab479 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39ef3f=_0x151e16['commands']['get'](_0x1ab479);_0x574158['enableCommand'](_0x1ab479,()=>{const _0x4c55dc=_0x151e16['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dd89f=>_0x4dd89f['is']('element','tableCell')),_0x276d22=_0x39ef3f['value'];_0x151e16['model']['change'](()=>{_0x574158['markMultiRangeBlockFormat']([_0x4c55dc,_0x276d22],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x253d2a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5bbdbc=_0x151e16['commands']['get'](_0x253d2a);_0x574158['enableCommand'](_0x253d2a,()=>{const _0x152fcb=_0x42ecf7['getSelectionAffectedTableCells'](_0x151e16['model']['document']['selection'])[0x0],_0x53a71f=_0x152fcb['findAncestor']('table'),{column:_0x6b2ad8,row:_0x20f0e3}=_0x42ecf7['getCellLocation'](_0x152fcb);let _0x1d21ed=[];if('horizontally'==_0x5bbdbc['direction']){const _0x5769ce=_0x42ecf7['createTableWalker'](_0x53a71f,{'startRow':_0x20f0e3,'endRow':_0x20f0e3,'includeAllSlots':!0x0});_0x1d21ed=Array['from'](_0x5769ce)['map'](_0x4cf06b=>_0x4cf06b['cell']);}else{const _0x58023b=_0x42ecf7['createTableWalker'](_0x53a71f,{'column':_0x6b2ad8,'includeAllSlots':!0x0});_0x1d21ed=Array['from'](_0x58023b)['map'](_0x229c6d=>_0x229c6d['cell']);}_0x151e16['model']['change'](_0x36c557=>{_0x574158['markBlockFormat'](_0x36c557['createRangeOn'](_0x152fcb),{'commandName':_0x253d2a,'commandParams':[]},_0x1d21ed,_0x253d2a);});});}_0x574158['descriptionFactory']['registerDescriptionCallback'](_0x2979aa=>{if('formatBlock'!=_0x2979aa['type']&&'formatInline'!=_0x2979aa['type'])return;const {data:_0x3a3691}=_0x2979aa;return _0x3a3691&&'mergeTableCells'==_0x3a3691['commandName']?{'type':'format','content':o(_0x1172c9,'*Merge\x20cells*')}:void 0x0;}),_0x574158['descriptionFactory']['registerDescriptionCallback'](_0x5c53d1=>{if('formatBlock'!=_0x5c53d1['type']&&'formatInline'!=_0x5c53d1['type'])return;const {data:_0x14f45e}=_0x5c53d1;return _0x14f45e?'splitTableCellVertically'==_0x14f45e['commandName']?{'type':'format','content':o(_0x1172c9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14f45e['commandName']?{'type':'format','content':o(_0x1172c9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x13149f=_0x5eac9f['_acceptFormatSuggestionCallbackFactory']();for(const _0x1fff38 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x574158['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fff38,'accept',_0x13149f);for(const _0x253101 of['splitTableCellVertically','splitTableCellHorizontally'])_0x574158['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x253101,'accept',_0x13149f);_0x574158['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x53ca05=>{_0x151e16['model']['change'](_0x1cdd19=>{const _0x4708ab=Array['from'](_0x10cf4b['getRanges']())['map'](_0x4402b3=>_0x4da4a9['fromRange'](_0x4402b3));_0x1cdd19['setSelection'](_0x53ca05),_0x151e16['commands']['get']('mergeTableCells')['refresh'](),_0x151e16['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xb5e43c=_0x4708ab['filter'](_0x354699=>'$graveyard'!=_0x354699['root']['rootName']);_0xb5e43c['length']>0x0&&_0x1cdd19['setSelection'](_0xb5e43c);for(const _0xee1fea of _0x4708ab)_0xee1fea['detach']();});});for(const _0x133347 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xe56afc=_0x151e16['commands']['get'](_0x133347);_0xe56afc['on']('set:isEnabled',(_0x2289f1,_0x11d44b,_0x54dde0)=>{if(_0x54dde0){const _0x3d9860=_0x151e16['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d5617=>_0x4d5617['is']('element','tableCell'));this['_areMergableCells'](_0xe56afc['value'],_0x3d9860)||(_0x2289f1['return']=!0x1,_0x2289f1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x47a572=this['editor']['commands']['get']('mergeTableCells'),_0xa8115b=this['editor']['plugins']['get']('TableUtils');if(!_0x47a572['isEnabled'])return!0x1;const _0x56ce6f=_0xa8115b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x43354d of _0x56ce6f)for(const _0x2e5343 of _0x56ce6f)if(_0x43354d!=_0x2e5343&&!this['_areMergableCells'](_0x43354d,_0x2e5343))return!0x1;return!0x0;}['_areMergableCells'](_0x1212a2,_0x5f27db){const _0x2c418f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf355c8=this['editor']['model']['createRangeOn'](_0x1212a2),_0x5a2f1f=this['editor']['model']['createRangeOn'](_0x5f27db),_0xecbca1=new Set(),_0xa13088=new Set();for(const _0x841709 of _0x2c418f['getSuggestions']())if(('insertion'==_0x841709['type']||'deletion'==_0x841709['type']||'mergeTableCells'==_0x841709['subType'])&&_0x841709['isInContent']){for(const _0x2efb50 of _0x841709['getRanges']())_0x2efb50['containsRange'](_0xf355c8,!0x0)&&_0xecbca1['add'](_0x841709['type']+':'+_0x841709['author']['id']),_0x2efb50['containsRange'](_0x5a2f1f,!0x0)&&_0xa13088['add'](_0x841709['type']+':'+_0x841709['author']['id']);}if(_0xecbca1['size']!=_0xa13088['size'])return!0x1;for(const _0x3d5ae1 of _0xecbca1)if(!_0xa13088['has'](_0x3d5ae1))return!0x1;return!0x0;}}class Ct extends _0x57a03e{static get['requires'](){return[vt];}['afterInit'](){const _0x5b508b=this['editor'];if(!_0x5b508b['plugins']['has']('TableEditing'))return;const _0x53281e=_0x5b508b['locale'],_0x34e4c2=_0x5b508b['plugins']['get']('TrackChangesEditing');_0x34e4c2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x34e4c2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x34e4c2['registerBlockAttribute']('headingRows'),_0x34e4c2['registerBlockAttribute']('headingColumns'),_0x34e4c2['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x53281e,'FORMAT_HEADER_ROW')),_0x34e4c2['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x53281e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7939b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4926d2=this['editor']['plugins']['get']('TableUtils'),_0x40ad89=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x38a597({showActiveMarker:_0x100dde=!0x0,setDataAttribute:_0xbbc0e=!0x0}={}){return(_0xb2bd83,_0x444985,_0x475503)=>{const {type:_0x1b67d4,id:_0x33f769}=_0x7939b0['_splitMarkerName'](_0x444985['markerName']),_0x4aa040=_0x7939b0['getSuggestion'](_0x33f769),_0x5d18a5=_0x4aa040['data'];if('formatBlock'!=_0x4aa040['type']||!_0x5d18a5||'setTableColumnHeader'!=_0x5d18a5['commandName'])return;if(_0x444985['item'])return void _0xb2bd83['stop']();if(!_0x475503['consumable']['consume'](_0x444985['markerRange'],_0xb2bd83['name']))return;const _0x21c191=_0x444985['markerRange']['start']['nodeAfter'],_0x17fe02=_0x444985['markerRange']['end']['nodeBefore'],_0x29c482=_0x21c191['parent']['parent'],{column:_0x5093a3}=_0x4926d2['getCellLocation'](_0x21c191),{column:_0x399e83}=_0x4926d2['getCellLocation'](_0x17fe02);for(let _0x5de68a=_0x5093a3;_0x5de68a<=_0x399e83;_0x5de68a++){const _0x3d1ae9=_0x4926d2['createTableWalker'](_0x29c482,{'column':_0x5de68a,'includeAllSlots':!0x1});for(const _0x5dcc85 of _0x3d1ae9){const _0x13c588=_0x5dcc85['cell'],_0x5857b3=_0x475503['mapper']['toViewElement'](_0x13c588);_0x475503['writer']['addClass']('ck-suggestion-marker-'+_0x1b67d4,_0x5857b3),_0xbbc0e&&_0x475503['writer']['setAttribute']('data-suggestion',_0x33f769,_0x5857b3),_0x475503['mapper']['bindElementToMarker'](_0x5857b3,_0x444985['markerName']),_0x100dde&&(_0x7939b0['activeMarkers']['includes'](_0x444985['markerName'])?_0x475503['writer']['addClass']('ck-suggestion-marker--active',_0x5857b3):_0x475503['writer']['removeClass']('ck-suggestion-marker--active',_0x5857b3));}}};}_0x7939b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x40ad89),_0x7939b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x40ad89),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38a597(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4225c4,_0x121276,_0x3472d4)=>{_0x3472d4['options']['showSuggestionHighlights']&&_0x38a597({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4225c4,_0x121276,_0x3472d4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x21bfca,_0x168694,_0x28805d)=>{const {type:_0x4ace1d,id:_0x2c1e23}=_0x7939b0['_splitMarkerName'](_0x168694['markerName']),_0x523f33=_0x7939b0['getSuggestion'](_0x2c1e23),_0x366c8a=_0x523f33['data'];if('formatBlock'!=_0x523f33['type']||!_0x366c8a||'setTableColumnHeader'!=_0x366c8a['commandName'])return;const _0x2eca18=_0x28805d['mapper']['markerNameToElements'](_0x168694['markerName']);if(_0x2eca18){for(const _0x10de94 of _0x2eca18)_0x28805d['writer']['removeClass']('ck-suggestion-marker-'+_0x4ace1d,_0x10de94),_0x28805d['writer']['removeClass']('ck-suggestion-marker--active',_0x10de94),_0x28805d['writer']['removeAttribute']('data-suggestion',_0x10de94),_0x28805d['mapper']['unbindElementFromMarkerName'](_0x10de94,_0x168694['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142692=this['editor'],_0xcf6e98=_0x142692['locale'];function _0x5f528f(_0x3e7ad0){return{'type':'format','content':o(_0xcf6e98,'*Format:*\x20%0',_0x3e7ad0)};}_0x142692['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23a081=>{if('formatBlock'!=_0x23a081['type'])return;const {data:_0x21baf5}=_0x23a081;if(_0x21baf5){if('setTableRowHeader'==_0x21baf5['commandName']){const _0x55f2dd=_0x21baf5['commandParams'][0x0]['forceValue'];return _0x5f528f(o(_0xcf6e98,_0x55f2dd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x21baf5['commandName']){const _0x1369f1=_0x21baf5['commandParams'][0x0]['forceValue'];return _0x5f528f(o(_0xcf6e98,_0x1369f1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4b7142=>[_0x4b7142,null]));class Nt extends _0x57a03e{static get['requires'](){return[vt];}['afterInit'](){const _0x1eeb5c=this['editor'];if(!_0x1eeb5c['plugins']['has']('TableClipboard'))return;const _0x4ebe57=_0x1eeb5c['plugins']['get']('TrackChangesEditing'),_0x57c89d=_0x1eeb5c['plugins']['get']('TableUtils'),_0x1e2931=_0x1eeb5c['plugins']['get'](vt),_0xacebe7=_0x1eeb5c['plugins']['get']('TableClipboard');_0x1e2931['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1eeb5c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1eeb5c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5b3e8f=null;_0x1eeb5c['model']['on']('insertContent',(_0x270322,_0x4bab57)=>{const [_0x50ad14,_0x324c76]=_0x4bab57,_0x1315f3=_0x4bab57[_0x4bab57['length']-0x1];_0x1315f3&&_0x1315f3['forceDefaultExecution']||_0x4ebe57['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x222133,_0x2a2f44,_0x12923b,_0x3eda32,_0x572334){if(_0x2a2f44&&!_0x2a2f44['is']('documentSelection'))return!0x1;const _0x24211a=_0x572334['getTableIfOnlyTableInContent'](_0x222133,_0x12923b);if(!_0x24211a||!Ue(_0x24211a,void 0x0,_0x3eda32))return!0x1;const _0x4b0a78=_0x3eda32['getSelectionAffectedTableCells'](_0x12923b['document']['selection']);if(!_0x4b0a78['length'])return!0x1;const _0x23ec17=_0x4b0a78[0x0]['findAncestor']('table'),_0x671d7f=_0x3eda32['getRowIndexes'](_0x4b0a78),_0x3f617b=_0x3eda32['getColumnIndexes'](_0x4b0a78),_0x234ea2={'startRow':_0x671d7f['first'],'endRow':_0x671d7f['last'],'startColumn':_0x3f617b['first'],'endColumn':_0x3f617b['last']};return 0x1==_0x4b0a78['length']&&(_0x234ea2['endRow']+=_0x3eda32['getRows'](_0x24211a)-0x1,_0x234ea2['endColumn']+=_0x3eda32['getColumns'](_0x24211a)-0x1),Ue(_0x23ec17,_0x234ea2,_0x3eda32);}(_0x50ad14,_0x324c76,_0x1eeb5c['model'],_0x57c89d,_0xacebe7)&&(_0x270322['stop'](),_0x5b3e8f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1eeb5c['model']['change'](()=>{_0x1eeb5c['model']['insertContent'](_0x4bab57[0x0],_0x4bab57[0x1],_0x4bab57[0x2],{'forceDefaultExecution':!0x0});const _0x2ac72a=_0x10a187(),{rowInsertionRanges:_0x1f25ce,columnInsertionRanges:_0x3c0ad1,insertionRanges:_0x341839,deletionRanges:_0x2b9902,cells:_0x4c1342}=_0x5b3e8f;_0x1f25ce['length']&&_0x4ebe57['markMultiRangeInsertion'](_0x1f25ce,'tablePasteRow',{'tablePasteChainId':_0x2ac72a}),_0x3c0ad1['length']&&_0x4ebe57['markMultiRangeInsertion'](_0x3c0ad1,'tablePasteColumn',{'tablePasteChainId':_0x2ac72a}),_0x341839['length']&&(_0x4ebe57['markMultiRangeInsertion'](_0x341839,'tablePaste',{'tablePasteChainId':_0x2ac72a,'skipNestingCheck':!0x0}),_0x341839['forEach'](_0x30b208=>_0x30b208['detach']?.())),_0x2b9902['length']&&(_0x4ebe57['markMultiRangeDeletion'](_0x2b9902,'tablePaste',{'tablePasteChainId':_0x2ac72a,'skipNestingCheck':!0x0}),_0x2b9902['forEach'](_0x530324=>_0x530324['detach']?.()));const _0x5aa541=_0x4ebe57['markMultiRangeBlockFormat'](_0x4c1342['map'](({element:_0x3bad33})=>_0x3bad33),{'formatGroupId':_0x10a187()},[],'tablePasteCell',{'tablePasteChainId':_0x2ac72a});if(_0x5aa541){const _0x3cc46c=_0x5aa541['getMarkers'](),_0x5c50dc=[];for(const {element:_0xc70600,attributes:_0x43130c}of _0x4c1342){if(!_0x43130c)continue;const _0x22e958=_0x1eeb5c['model']['createRangeOn'](_0xc70600),_0x207de0=_0x3cc46c['find'](_0x1a9fda=>_0x1a9fda['getRange']()['isEqual'](_0x22e958));_0x207de0&&_0x5c50dc['push']([_0x207de0['name'],_0x43130c]);}_0x5c50dc['length']&&_0x5aa541['setAttribute']('markerAttributes',Object['fromEntries'](_0x5c50dc));}_0x5b3e8f=null;}));},{'priority':_0x458afa['high']+0xa}),_0x1eeb5c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x56b0f9,_0x534d72)=>{const [_0x37ba2f,_0x174f3a,,_0x2a3cab]=_0x534d72;if(!_0x5b3e8f)return;_0x56b0f9['stop']();const _0x5459f2=_0x37ba2f['cell'],_0x13416c=_0x174f3a,_0x1a631a=Oe(_0x5459f2),_0x34a450=Oe(_0x13416c);_0x56b0f9['return']=_0x5459f2;let _0x36ba0c=null,_0x9491fe=null;if(_0x34a450||_0x1a631a){if(_0x1a631a&&!_0x34a450){_0x2a3cab['remove'](_0x5459f2['getChild'](0x0));for(const _0x9fc3 of Array['from'](_0x13416c['getChildren']()))_0x2a3cab['insert'](_0x9fc3,_0x5459f2,'end');const _0x2f5d18=_0x5b3e8f['rowInsertionIndexes']['includes'](_0x37ba2f['row']),_0x485b44=_0x5b3e8f['columnInsertionIndexes']['includes'](_0x37ba2f['column']);_0x2f5d18||_0x485b44||(_0x36ba0c=_0x4da4a9['fromRange'](_0x2a3cab['createRangeIn'](_0x5459f2)));}else _0x34a450&&!_0x1a631a&&(_0x9491fe=_0x2a3cab['createRangeIn'](_0x5459f2));}else{const _0x19c30c=_0x2a3cab['createElement']('tableCellSuggestion'),_0x28d6cb=_0x2a3cab['createElement']('tableCellSuggestion');_0x2a3cab['wrap'](_0x2a3cab['createRangeIn'](_0x5459f2),_0x28d6cb),_0x2a3cab['insert'](_0x19c30c,_0x5459f2,0x0);for(const _0xb43871 of Array['from'](_0x13416c['getChildren']()))_0x2a3cab['insert'](_0xb43871,_0x19c30c,'end');_0x36ba0c=_0x4da4a9['fromRange'](_0x2a3cab['createRangeOn'](_0x19c30c)),_0x9491fe=_0x4da4a9['fromRange'](_0x2a3cab['createRangeOn'](_0x28d6cb));}const _0x1aaaa7=Array['from'](_0x13416c['getAttributes']())['filter'](([_0x276251])=>Be['includes'](_0x276251));_0x5b3e8f['cells']['push']({'element':_0x5459f2,'attributes':_0x1aaaa7['length']?Object['fromEntries'](_0x1aaaa7):null}),_0x36ba0c&&_0x5b3e8f['insertionRanges']['push'](_0x36ba0c),_0x9491fe&&_0x5b3e8f['deletionRanges']['push'](_0x9491fe);},{'priority':'high'}),_0x57c89d['on']('insertColumns',(_0x2c6092,_0x5bb941)=>{const [_0x620563,_0x2001ea={}]=_0x5bb941;if(!_0x5b3e8f)return;const _0x526f9a=_0x2001ea['at']||0x0,_0x4837c1=_0x2001ea['columns']||0x1;_0x5b3e8f['columnInsertionIndexes']=new Array(_0x4837c1)['fill'](_0x526f9a)['map']((_0x425fe3,_0x3a4c5c)=>_0x425fe3+_0x3a4c5c);for(const {cell:_0x3971d6}of _0x57c89d['createTableWalker'](_0x620563,{'startColumn':_0x526f9a,'endColumn':_0x526f9a+_0x4837c1-0x1}))_0x5b3e8f['columnInsertionRanges']['push'](_0x1eeb5c['model']['createRangeOn'](_0x3971d6));},{'priority':'low'}),_0x57c89d['on']('insertRows',(_0x265b40,_0x147100)=>{const [_0x277bff,_0x104397={}]=_0x147100;if(!_0x5b3e8f)return;const _0x498ede=_0x104397['at']||0x0,_0x55e536=_0x104397['rows']||0x1;_0x5b3e8f['rowInsertionIndexes']=new Array(_0x55e536)['fill'](_0x498ede)['map']((_0x31f71f,_0x355e69)=>_0x31f71f+_0x355e69);for(const {cell:_0x4b45ce}of _0x57c89d['createTableWalker'](_0x277bff,{'startRow':_0x498ede,'endRow':_0x498ede+_0x55e536-0x1}))_0x5b3e8f['rowInsertionRanges']['push'](_0x1eeb5c['model']['createRangeOn'](_0x4b45ce));},{'priority':'low'}),_0x4ebe57['descriptionFactory']['registerDescriptionCallback'](_0x1bac87=>{if(_0x1bac87['subType']&&_0x1bac87['subType']['startsWith']('tablePaste'))return _0x1bac87['previous']?{}:{'type':'insertion','content':o(_0x1eeb5c['locale'],'*Replace\x20table\x20cells*')};});const _0x199d03=()=>!0x1;for(const _0x38063e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4ebe57['_suggestionFactory']['registerCustomCallback']('insertion',_0x38063e,'join',_0x199d03),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('deletion',_0x38063e,'join',_0x199d03),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38063e,'join',_0x199d03);_0x4ebe57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x199d03),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4cf9af,_0x2fadc9,_0x1f387b)=>{const _0x566d02=_0x4cf9af['map'](_0x165a5b=>_0x165a5b['getContainedElement']())['filter'](_0x17ef41=>_0x17ef41),_0x1fa94a=new Map(_0x566d02['map'](_0x237ede=>[_0x237ede,null]));if(_0x5b3e8f){for(const {element:_0x24c3df,attributes:_0x57f5a6}of _0x5b3e8f['cells'])_0x57f5a6&&_0x1fa94a['set'](_0x24c3df,_0x57f5a6);}else{if(_0x1f387b&&_0x1f387b['markerAttributes'])for(const [_0x320991,_0x11c347]of Object['entries'](_0x1f387b['markerAttributes'])){const _0x2e700d=_0x1eeb5c['model']['markers']['get'](_0x320991),_0x41a210=_0x2e700d?_0x2e700d['getRange']()['getContainedElement']():null;_0x41a210&&_0x1fa94a['set'](_0x41a210,_0x11c347);}}_0x1eeb5c['model']['change'](_0x1bd6a1=>{for(const [_0x596fda,_0x4c47c8]of _0x1fa94a)_0x1bd6a1['setAttributes']({...xe,..._0x4c47c8},_0x596fda);});});const _0xd34f3c=(_0x4755b8,_0x45e237)=>{_0x4ebe57['_suggestionFactory']['registerCustomCallback'](_0x4755b8,'tablePaste',_0x45e237,(_0x5a25a8,_0x3526f5,_0x1fc72d)=>{_0x1eeb5c['model']['change'](_0x3cdb3c=>{const _0x5ca3f5=[];for(const _0x3e7b45 of _0x5a25a8){const _0x559ec4=_0x3e7b45['start']['nodeAfter'];_0x559ec4['is']('element','tableCellSuggestion')&&_0x5ca3f5['push'](_0x559ec4);}_0x4ebe57['_suggestionFactory']['getSuggestionCallback'](_0x4755b8,null,_0x45e237)(_0x5a25a8,_0x3526f5,_0x1fc72d);for(const _0xd983fc of _0x5ca3f5)'$graveyard'!=_0xd983fc['root']['rootName']&&_0x3cdb3c['unwrap'](_0xd983fc);});});};_0xd34f3c('insertion','accept'),_0xd34f3c('insertion','discard'),_0xd34f3c('deletion','accept'),_0xd34f3c('deletion','discard'),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x294591=>{const _0x1f8653=_0x294591['map'](_0x5d7e2b=>_0x5d7e2b['getContainedElement']()),_0x57cf4e=_0x1f8653[0x0]['findAncestor']('table'),{minRow:_0xaa7254,maxRow:_0x43bb66}=_0x1e2931['_getCoordsForCells'](_0x1f8653);_0x57c89d['removeRows'](_0x57cf4e,{'at':_0xaa7254,'rows':_0x43bb66-_0xaa7254+0x1});}),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x640997=>{const _0x5ccded=_0x640997['map'](_0x2c2f4f=>_0x2c2f4f['getContainedElement']()),_0x487c70=_0x5ccded[0x0]['findAncestor']('table'),{minColumn:_0x3f8147,maxColumn:_0x2e4622}=_0x1e2931['_getCoordsForCells'](_0x5ccded);_0x57c89d['removeColumns'](_0x487c70,{'at':_0x3f8147,'columns':_0x2e4622-_0x3f8147+0x1});});const _0x4d4620=(_0xc18785,_0x5626ab)=>{if(!_0x5626ab['subType']||!_0x5626ab['subType']['startsWith']('tablePaste'))return;const _0x33b96b=_0x5626ab['attributes']['tablePasteChainId'],_0x3a1813=_0x4ebe57['getSuggestions']()['filter'](_0x1eb152=>_0x1eb152['isInContent']&&_0x1eb152['attributes']&&_0x1eb152['attributes']['tablePasteChainId']==_0x33b96b);_0x3a1813['length']&&_0x5626ab['getAllAdjacentSuggestions']()['length']!=_0x3a1813['length']&&_0x3a1813['reduce']((_0x324783,_0x5a08f1)=>(_0x324783['next']=_0x5a08f1,_0x5a08f1['previous']=_0x324783,_0x5a08f1));};function _0x13ead5(_0x9fa2ba,_0x354dad=!0x0){const {id:_0x4dd99a,authorId:_0x541206}=_0x4ebe57['_splitMarkerName'](_0x9fa2ba['markerName']),_0x2d2eeb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x157401=_0x4ebe57['activeMarkers']['includes'](_0x9fa2ba['markerName']);return _0x157401&&_0x2d2eeb['push']('ck-suggestion-marker--active'),{'classes':_0x2d2eeb,'attributes':{'data-suggestion':_0x4dd99a,'data-author-id':_0x541206},'priority':_0x157401&&_0x354dad?0xbc2:0xbb8};}_0x4ebe57['on']('suggestionLoaded',_0x4d4620,{'priority':'high'}),_0x4ebe57['on']('suggestionUnloaded',_0x4d4620,{'priority':'high'}),_0x1eeb5c['model']['document']['registerPostFixer'](()=>{let _0x3919e9=!0x1;const _0x44f0eb=Array['from'](_0x1eeb5c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a1371,data:_0x17bf54}of _0x44f0eb){const {group:_0x15a70e,type:_0x5f3ac7,id:_0x3cc8c9}=_0x4ebe57['_splitMarkerName'](_0x2a1371);if('suggestion'!=_0x15a70e||'deletion'!=_0x5f3ac7||_0x17bf54['oldRange'])continue;if(!_0x4ebe57['hasSuggestion'](_0x3cc8c9))continue;const _0x20191c=_0x4ebe57['getSuggestion'](_0x3cc8c9)['getRanges'](),_0x48192b=_0x1eeb5c['plugins']['get']('Users')['me'];for(const _0x367c5f of _0x4ebe57['getSuggestions']()){if(!_0x367c5f['isInContent']||_0x367c5f['author']!=_0x48192b)continue;if('formatBlock'!=_0x367c5f['type']||'tablePasteCell'!=_0x367c5f['subType'])continue;if(_0x367c5f['getRanges']()['every'](_0x5ef39e=>_0x20191c['some'](_0x10dd92=>_0x10dd92['containsRange'](_0x5ef39e,!0x0)))){for(const _0x54df51 of _0x367c5f['getAllAdjacentSuggestions']())_0x54df51['isInContent']&&(_0x54df51['discard'](),_0x3919e9=!0x0);}}}return _0x3919e9;}),_0x1eeb5c['model']['document']['registerPostFixer'](_0x340be9=>{const _0x399a25=_0x1eeb5c['commands']['get']('redo');if(!_0x399a25||!_0x399a25['_createdBatches']['has'](_0x340be9['batch']))return!0x1;let _0x5317f4=!0x1;const _0x197042=_0x1eeb5c['plugins']['get']('Users')['me'],_0xa83414=_0x1eeb5c['model']['document']['differ']['getChanges'](),_0x24b42a=Array['from'](_0x1eeb5c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1886eb,data:_0x13c2b7})=>{const {group:_0x2ec68d,subType:_0x924576,authorId:_0x41281e}=_0x4ebe57['_splitMarkerName'](_0x1886eb);return'suggestion'==_0x2ec68d&&'tablePaste'==_0x924576&&_0x41281e==_0x197042['id']&&!_0x13c2b7['oldRange'];});for(const _0x29a42a of _0xa83414){if('insert'!=_0x29a42a['type']||'tableCellSuggestion'!=_0x29a42a['name']||0x1!=_0x29a42a['length'])continue;const _0xaf943e=_0x340be9['createRange'](_0x29a42a['position'],_0x29a42a['position']['getShiftedBy'](0x1));if(!_0x24b42a['find'](({data:_0x46bbe3})=>_0x46bbe3['newRange']['isEqual'](_0xaf943e))){for(const {name:_0x118631,data:_0x2a7997}of _0x24b42a)if(_0xaf943e['containsRange'](_0x2a7997['newRange'])){_0x340be9['updateMarker'](_0x118631,{'range':_0xaf943e}),_0x5317f4=!0x0;break;}}}return _0x5317f4;}),_0x1eeb5c['model']['document']['registerPostFixer'](_0x38e367=>{let _0x5163a8=!0x1;const _0x1a14ac=_0x1eeb5c['plugins']['get']('Users')['me'],_0xfd9f9e=_0x4ebe57['getSuggestions']()['filter'](_0x5c2e2f=>_0x5c2e2f['isInContent']&&_0x5c2e2f['author']==_0x1a14ac),_0x287053=new Set(),_0x3d6f09=new Set();for(const _0x87f5ad of _0xfd9f9e)if('tablePaste'==_0x87f5ad['subType'])for(const _0x40166c of _0x87f5ad['getMarkers']()){const _0x1303c3=_0x40166c['getRange']()['getContainedElement']();if(_0x1303c3){if(_0x1303c3['is']('element','tableCellSuggestion')&&Oe(_0x1303c3)){_0x87f5ad['removeMarker'](_0x40166c['name']),_0x287053['add'](_0x1303c3),_0x5163a8=!0x0;const _0x4b9e1b=_0x1303c3['nextSibling'],_0x7818b4=_0x1303c3['previousSibling'],_0xd67ca3=_0x4b9e1b&&_0x4b9e1b['is']('element','tableCellSuggestion'),_0x1a4def=_0x7818b4&&_0x7818b4['is']('element','tableCellSuggestion');_0xd67ca3&&!_0x287053['has'](_0x4b9e1b)&&_0x3d6f09['add'](_0x4b9e1b),_0x1a4def&&!_0x287053['has'](_0x7818b4)&&_0x3d6f09['add'](_0x7818b4);}else _0x1303c3['is']('element','paragraph')&&_0x1303c3['isEmpty']&&(_0x87f5ad['removeMarker'](_0x40166c['name']),_0x5163a8=!0x0);}}else{if('tablePasteCell'==_0x87f5ad['subType']){if(!_0x87f5ad['attributes']||!_0x87f5ad['attributes']['tablePasteChainId'])continue;const _0x46c001=_0x87f5ad['attributes']['markerAttributes'];if(_0x46c001&&Object['keys'](_0x46c001)['length'])continue;const _0x25b98c=_0x87f5ad['attributes']['tablePasteChainId'];let _0x58409e=!0x0,_0x469bb5=!0x0;for(const _0x347ee1 of _0xfd9f9e)if(_0x347ee1['subType']&&_0x347ee1['subType']['startsWith']('tablePaste')){if(!_0x347ee1['attributes']['tablePasteChainId']){_0x469bb5=!0x1;break;}if(_0x347ee1['id']!=_0x87f5ad['id']&&_0x347ee1['attributes']['tablePasteChainId']==_0x25b98c){_0x58409e=!0x1;break;}}_0x469bb5&&_0x58409e&&(_0x87f5ad['removeMarkers'](),_0x5163a8=!0x0);}}for(const _0x330a2d of _0x287053)_0x38e367['remove'](_0x330a2d);for(const _0x181f9a of _0x3d6f09)_0x38e367['unwrap'](_0x181f9a);return _0x5163a8;}),_0x1eeb5c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x232c0f=>_0x13ead5(_0x232c0f),'converterPriority':'high'}),_0x1eeb5c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28cfc5,_0x13cb7c)=>_0x13cb7c['options']['showSuggestionHighlights']?_0x13ead5(_0x28cfc5,!0x1):null,'converterPriority':'high'});const _0x58c578=_0x1eeb5c['editing']['view'];this['listenTo'](_0x58c578['document'],'clipboardOutput',(_0x5923fa,_0x4e2159)=>{const _0x1097b1=[];for(const _0x4b78d9 of _0x58c578['createRangeIn'](_0x4e2159['content'])['getItems']())_0x4b78d9['is']('element','suggestion-td')&&_0x1097b1['push'](_0x4b78d9);_0x58c578['change'](_0x113bd4=>{for(const _0x4786ed of _0x1097b1)_0x113bd4['move'](_0x113bd4['createRangeIn'](_0x4786ed),_0x113bd4['createPositionBefore'](_0x4786ed)),_0x113bd4['remove'](_0x4786ed);});});}}function Oe(_0x453803){if(_0x453803['isEmpty'])return!0x0;const _0x630321=_0x453803['getChild'](0x0);return _0x630321['is']('element','paragraph')&&_0x630321['isEmpty'];}function Ue(_0x6c1c8c,_0x52b89a={},_0xcb37ad){for(const {isAnchor:_0x31cd01,cellHeight:_0x39964c,cellWidth:_0x4160a7}of _0xcb37ad['createTableWalker'](_0x6c1c8c,{'includeAllSlots':!0x0,..._0x52b89a}))if(!_0x31cd01||0x1!=_0x39964c||0x1!=_0x4160a7)return!0x1;return!0x0;}class Dt extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x190c2c=this['editor']['plugins']['get']('TrackChangesEditing');_0x190c2c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x190c2c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x190c2c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x190c2c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x190c2c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x190c2c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5798a5,_0x590443){const _0x47b2dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48a5b9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2021e1=_0x590443['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x123837=_0x48a5b9['getColumnGroupElement'](_0x2021e1);let _0x5d2220=_0x123837?_0x48a5b9['getTableColumnsWidths'](_0x123837):null,_0x12d6db=_0x2021e1['getAttribute']('tableWidth')||null;const _0x994d63=_0x590443['tableWidth']||_0x12d6db,_0x2c93d2=_0x590443['columnWidths']||_0x5d2220,_0x277285=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e870d of _0x47b2dc['getSuggestions']()){const _0xfa7954=_0x4e870d['getContainedElement']();if('resizeTable'===_0x4e870d['subType']&&_0xfa7954===_0x2021e1){_0x4e870d['author']!==_0x277285&&_0x4e870d['discard']();const _0x46b9f4=_0x4e870d['data']['commandParams'];_0x12d6db=_0x46b9f4[0x0]['tableWidth'],_0x5d2220=_0x46b9f4[0x0]['columnWidths'];break;}}_0x5798a5({'table':_0x2021e1,'tableWidth':_0x994d63,'columnWidths':_0x2c93d2}),_0x47b2dc['markBlockFormat'](_0x2021e1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x12d6db,'columnWidths':_0x5d2220}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2b8882){if('formatBlock'!=_0x2b8882['type']&&'formatInline'!=_0x2b8882['type'])return;const {data:_0x588bde}=_0x2b8882;if(_0x588bde&&'resizeTable'===_0x588bde['formatGroupId']){const _0x594d2a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x594d2a)};}}}class Mt extends _0x57a03e{['afterInit'](){const _0x4d09ff=this['editor'];_0x4d09ff['plugins']['has']('Template')&&_0x4d09ff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x57a03e{['afterInit'](){const _0x352f31=this['editor'];if(!_0x352f31['commands']['get']('insertTableOfContents'))return;_0x352f31['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x598c05=_0x352f31['plugins']['get']('TrackChangesEditing'),_0x44f844=_0x352f31['locale'];_0x598c05['descriptionFactory']['registerElementLabel']('tableOfContents',_0x552797=>o(_0x44f844,'ELEMENT_TABLE_OF_CONTENTS',_0x552797));}}class Bt extends _0x57a03e{['afterInit'](){const _0x55b37c=this['editor'];if(!_0x55b37c['plugins']['has']('Title'))return;const _0x2e9874=_0x55b37c['plugins']['get']('TrackChangesEditing');_0x2e9874['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x55b37c['locale'],'ELEMENT_TITLE')),_0x55b37c['model']['document']['registerPostFixer'](_0x302351=>{let _0x51d399=!0x1;const _0xb1a708=Array['from'](_0x55b37c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45f0d9,data:_0x15b96c}of _0xb1a708){const {group:_0x55af5d}=_0x2e9874['_splitMarkerName'](_0x45f0d9);if('suggestion'!==_0x55af5d||!_0x15b96c['newRange'])continue;const _0x44778b=_0x15b96c['newRange'],_0x2083bb=_0x44778b['end']['nodeBefore'];if(!_0x2083bb||!_0x2083bb['is']('element','title-content'))continue;if(!_0x44778b['start']['isTouching'](_0x44778b['end']))continue;const _0x385080=_0x55b37c['model']['schema']['getNearestSelectionRange'](_0x44778b['end'],'forward');if(_0x385080&&_0x385080['isCollapsed']){const _0x421c30=_0x302351['createRange'](_0x44778b['start'],_0x385080['start']);_0x421c30['isEqual'](_0x44778b)||(_0x302351['updateMarker'](_0x45f0d9,{'range':_0x421c30}),_0x51d399=!0x0);}_0x51d399||(_0x302351['removeMarker'](_0x45f0d9),_0x51d399=!0x0);}return _0x51d399;});}}class Ot extends _0x57a03e{['afterInit'](){const _0x58f271=this['editor'],_0xfe7b77=_0x58f271['plugins']['get']('TrackChangesEditing');_0x58f271['plugins']['has']('Uploadcare')&&(_0xfe7b77['enableCommand']('uploadcare'),_0x58f271['plugins']['has']('UploadcareImageEdit')&&(_0xfe7b77['enableCommand']('uploadcareImageEdit'),_0xfe7b77['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xfe7b77['registerBlockAttribute']('uploadcareImageId'),_0xfe7b77['descriptionFactory']['registerDescriptionCallback'](_0x3b3eb0=>{if('attribute'!=_0x3b3eb0['type'])return;const {data:_0x4422cb}=_0x3b3eb0;return _0x4422cb&&'uploadcareImageId'==_0x4422cb['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x57a03e{['afterInit'](){const _0x36288f=this['editor'],_0x5e7286=_0x36288f['plugins']['get']('TrackChangesEditing');_0x36288f['plugins']['has']('UndoEditing')&&(_0x5e7286['enableCommand']('undo'),_0x5e7286['enableCommand']('redo'));}}class Tt extends _0x57a03e{static get['requires'](){return[vt];}['afterInit'](){const _0x310522=this['editor'];if(!_0x310522['plugins']['has']('TableCaptionEditing'))return;_0x310522['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x57a03e{['tableProperties'];['tableCellProperties'];constructor(_0x5979e0){super(_0x5979e0),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 _0x69066a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5bab24 of this['tableProperties'])_0x69066a['enableCommand'](_0x5bab24,(_0x1473dd,_0x8160fb)=>{const _0xe0eccd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5bab24,[_0xe0eccd],this['tableProperties'],'tableProperties',_0x1473dd,_0x8160fb);});_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x69066a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x314b7c,_0x32342d)=>this['handleDiscardAction'](this['tableProperties'],_0x314b7c,_0x32342d)),_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14bb68 of this['tableCellProperties'])_0x69066a['enableCommand'](_0x14bb68,(_0x1844fe,_0x2bbfeb)=>{const _0x2d6b83=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14bb68,_0x2d6b83,this['tableCellProperties'],'tableCellProperties',_0x1844fe,_0x2bbfeb);});_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x69066a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd9169e,_0x3993c1)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd9169e,_0x3993c1)),_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x69066a['descriptionFactory']['registerDescriptionCallback'](_0x4ce4a9=>this['handleSuggestionDescription'](_0x4ce4a9));}['_handlePropertyChange'](_0x5c63ba,_0x4b96f0,_0x371c3f,_0x1b0ce3,_0x2f4aa9,_0x357b48){const _0x2e3cf6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x357b48['batch'],()=>{for(const _0x210397 of _0x4b96f0){if(this['_getSuggestion'](_0x210397,_0x1b0ce3))_0x2f4aa9(_0x357b48);else{const _0x5901fe={};for(const _0x177ed0 of _0x371c3f){const _0x5e0258=_0x210397['getAttribute'](_0x177ed0);void 0x0!==_0x5e0258&&(_0x5901fe[_0x177ed0]=_0x5e0258);}_0x2f4aa9(_0x357b48),_0x2e3cf6['markBlockFormat'](_0x210397,{'commandParams':[_0x5901fe]},[],_0x1b0ce3);}}});}['handleDiscardAction'](_0x374404,_0x286453,_0x23f997){const _0x15d791=_0x286453[0x0]['start']['nodeAfter'],_0x3cc12b=_0x23f997['commandParams'][0x0];this['editor']['model']['change'](_0x3b5739=>{for(const _0x3584ab of _0x374404)void 0x0!==_0x3cc12b[_0x3584ab]?_0x3b5739['setAttribute'](_0x3584ab,_0x3cc12b[_0x3584ab],_0x15d791):_0x3b5739['removeAttribute'](_0x3584ab,_0x15d791);});}['handleSuggestionDescription'](_0xe9b68c){if(_0xe9b68c['data'])switch(_0xe9b68c['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'](_0x266eaa,_0x18ddf8){const _0x25849e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x465531 of _0x25849e['getSuggestions']({'skipNotAttached':!0x0})){const _0x470200=_0x465531['getContainedElement']();if(_0x465531['subType']===_0x18ddf8&&_0x470200===_0x266eaa)return _0x465531;}return null;}}const m='$elementName';class p extends _0x57a03e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25a128,_0x241f6a,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f9139){super(_0x3f9139),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x37fbc1,_0x5437d2,_0x2d1671,_0x2adc9f)=>{this['_model']['change'](()=>{for(const _0xe66ac6 of[..._0x2adc9f,..._0x2d1671])this['_model']['markers']['has'](_0xe66ac6)&&_0x3f9139['editing']['reconvertMarker'](_0xe66ac6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3f9139['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(),_0x3f9139['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3f9139['config']['get']('trackChanges.trackFormatChanges'),_0x3f9139['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3f9139['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3f9139,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x903fdd=this['editor'],_0x47ab39=(_0x31eaef,_0x41b332)=>{if('attribute'!=_0x31eaef)return'ck-suggestion-marker-'+_0x31eaef;const _0x7f492c=_0x41b332['split']('|')[0x0];return this['_isBlockAttribute'](_0x7f492c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x903fdd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1edb64=>{const {id:_0x3b13a5,authorId:_0xd8ca70,type:_0x5ed216,subType:_0x313417}=this['_splitMarkerName'](_0x1edb64['markerName']),_0x1720c6=['ck-suggestion-marker',_0x47ab39(_0x5ed216,_0x313417)];let _0x5e41f2=0xbb8;return this['activeMarkers']['includes'](_0x1edb64['markerName'])&&(_0x1720c6['push']('ck-suggestion-marker--active'),_0x5e41f2=0xbc2),'deletion'==_0x5ed216&&(_0x5e41f2+=0x5),{'classes':_0x1720c6,'attributes':{'data-suggestion':_0x3b13a5,'data-author-id':_0xd8ca70},'priority':_0x5e41f2};}}),_0x903fdd['conversion']['for']('dataDowncast')['add'](_0x18867e=>{_0x18867e['on']('addMarker:suggestion',(_0x2957f7,_0xfe0ece,_0x5a79b4)=>{if(!_0x5a79b4['options']['showSuggestionHighlights'])return;const _0x272af9=_0xfe0ece['item'];if(!_0x272af9)return;const _0x442afe=_0x5a79b4['mapper']['toViewElement'](_0x272af9);_0x903fdd['model']['schema']['isObject'](_0x272af9)&&_0x442afe&&!_0x442afe['getCustomProperty']('widget')&&_0x442afe['is']('containerElement')&&_0x4110e5(_0x442afe,_0x5a79b4['writer']);},{'priority':'high'});}),_0x903fdd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2f2e90,_0x15b9dd)=>{if(!_0x15b9dd['options']['showSuggestionHighlights'])return null;const {type:_0x268e03,subType:_0x4f1a8c}=this['_splitMarkerName'](_0x2f2e90['markerName']);return{'classes':['ck-suggestion-marker',_0x47ab39(_0x268e03,_0x4f1a8c)],'priority':0xbb8};}});const _0x6c77ca=({showActiveMarkers:_0x360dcc=!0x0,isAttributeSuggestion:_0x3d7cc0=!0x1}={})=>(_0x6f6ddb,_0x1d87f2,_0x101925)=>{if(!_0x1d87f2['item'])return;const {id:_0x188493,authorId:_0x168cee}=this['_splitMarkerName'](_0x1d87f2['markerName']);if(_0x3d7cc0){const _0x5c97eb=this['_suggestions']['get'](_0x188493),_0x9ab4e9=this['_getAttributeKey'](_0x5c97eb);if(!this['_isBlockAttribute'](_0x9ab4e9))return;}if(_0x1d87f2['item']['is']('selection'))return void _0x101925['consumable']['consume'](_0x1d87f2['item'],_0x6f6ddb['name']);const _0x197859=_0x101925['mapper']['toViewElement'](_0x1d87f2['item']);if(_0x1d87f2['item']['is']('element')&&_0x903fdd['model']['schema']['isBlock'](_0x1d87f2['item'])&&!_0x197859['getCustomProperty']('addHighlight')){_0x101925['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x197859),_0x101925['writer']['setAttribute']('data-suggestion',_0x188493,_0x197859),_0x101925['writer']['setAttribute']('data-author-id',_0x168cee,_0x197859),_0x101925['mapper']['bindElementToMarker'](_0x197859,_0x1d87f2['markerName']),_0x360dcc&&(this['activeMarkers']['includes'](_0x1d87f2['markerName'])?_0x101925['writer']['addClass']('ck-suggestion-marker--active',_0x197859):_0x101925['writer']['removeClass']('ck-suggestion-marker--active',_0x197859));for(const _0x42e725 of _0x903fdd['model']['createRangeIn'](_0x1d87f2['item'])['getItems']())_0x101925['consumable']['consume'](_0x42e725,_0x6f6ddb['name']);_0x101925['consumable']['consume'](_0x1d87f2['item'],_0x6f6ddb['name']);}};_0x903fdd['conversion']['for']('dataDowncast')['add'](_0x58da38=>{_0x58da38['on']('addMarker:suggestion:formatBlock',(_0x275362,_0x32f1e2,_0x5d31a4)=>{_0x5d31a4['options']['showSuggestionHighlights']&&_0x6c77ca({'showActiveMarkers':!0x1})(_0x275362,_0x32f1e2,_0x5d31a4);},{'priority':'highest'});}),_0x903fdd['conversion']['for']('dataDowncast')['add'](_0x43f8b3=>{_0x43f8b3['on']('addMarker:suggestion:attribute',(_0x401308,_0xf43946,_0x4d4682)=>{_0x4d4682['options']['showSuggestionHighlights']&&_0x6c77ca({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x401308,_0xf43946,_0x4d4682);},{'priority':'highest'});}),_0x903fdd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xfec45a,_0x4cc0c3)=>_0x4cc0c3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xfec45a['substr'](0xb)}}),_0x903fdd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x559e34,{writer:_0x311813})=>{let _0x23651b='suggestion:'+_0x559e34['getAttribute']('suggestion-type')+':'+_0x559e34['getAttribute']('id');return _0x559e34['getAttribute']('marker-count')&&(_0x23651b+=':'+_0x559e34['getAttribute']('marker-count')),_0x311813['createElement']('$marker',{'data-name':_0x23651b});}}),_0x903fdd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x903fdd['conversion']['for']('editingDowncast')['add'](_0x30e1b7=>{_0x30e1b7['on']('addMarker:suggestion:formatBlock',_0x6c77ca(),{'priority':'high'});}),_0x903fdd['conversion']['for']('editingDowncast')['add'](_0x187f35=>{_0x187f35['on']('addMarker:suggestion:attribute',_0x6c77ca({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x903fdd['conversion']['for']('editingDowncast')['add'](_0x304f65=>{_0x304f65['on']('removeMarker:suggestion:formatBlock',(_0x12be49,_0xec66e,_0x55ab10)=>{const _0x3e66a6=_0x55ab10['mapper']['markerNameToElements'](_0xec66e['markerName']);if(_0x3e66a6){for(const _0x406730 of _0x3e66a6)_0x406730['getCustomProperty']('addHighlight')||(_0x55ab10['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x406730),_0x55ab10['writer']['removeAttribute']('data-suggestion',_0x406730),_0x55ab10['writer']['removeAttribute']('data-author-id',_0x406730),_0x55ab10['mapper']['unbindElementFromMarkerName'](_0x406730,_0xec66e['markerName']));}},{'priority':'high'});}),_0x903fdd['conversion']['for']('editingDowncast')['add'](_0x49d502=>{_0x49d502['on']('removeMarker:suggestion:attribute',(_0x43b14b,_0x26a4c3,_0xe819d9)=>{const _0x3ad299=_0xe819d9['mapper']['markerNameToElements'](_0x26a4c3['markerName']);if(!_0x3ad299)return;const {id:_0x38edbc}=this['_splitMarkerName'](_0x26a4c3['markerName']),_0xba2616=this['_suggestions']['get'](_0x38edbc),_0x38feca=this['_getAttributeKey'](_0xba2616);if(this['_isBlockAttribute'](_0x38feca)){for(const _0x2b2321 of _0x3ad299)_0x2b2321['getCustomProperty']('addHighlight')||(_0xe819d9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b2321),_0xe819d9['writer']['removeAttribute']('data-suggestion',_0x2b2321),_0xe819d9['writer']['removeAttribute']('data-author-id',_0x2b2321),_0xe819d9['mapper']['unbindElementFromMarkerName'](_0x2b2321,_0x26a4c3['markerName']));}},{'priority':'high'});}),_0x903fdd['model']['document']['registerPostFixer'](_0x3cc06d=>{let _0x2d0b63=!0x1;const _0x1754f1=Array['from'](_0x903fdd['model']['document']['differ']['getChangedMarkers']()),_0xbd2b57=new Set();for(const {name:_0x197c74,data:_0x1cc2e0}of _0x1754f1){const {group:_0x4b43b8,type:_0x2098e4,subType:_0x411f37,id:_0x2b36b3}=this['_splitMarkerName'](_0x197c74);if('suggestion'!==_0x4b43b8)continue;const _0x289f08=this['_suggestions']['get'](_0x2b36b3);if(null!=_0x1cc2e0['newRange']){'formatInline'==_0x2098e4&&(_0x2d0b63=_0x2d0b63||Gt(_0x1cc2e0['newRange'],_0x197c74,_0x3cc06d,_0x903fdd['model']['schema']));const _0x5ce687='attribute'==_0x2098e4&&this['_isBlockAttribute'](_0x411f37['split']('|')[0x0]);if(_0x1cc2e0['newRange']['isCollapsed']||'$graveyard'==_0x1cc2e0['newRange']['root']['rootName']||'formatBlock'==_0x2098e4&&!Lt(_0x1cc2e0['newRange'])||_0x5ce687&&!Lt(_0x1cc2e0['newRange'])||'deletion'==_0x2098e4&&!(!Pt(_0x23f448=_0x1cc2e0['newRange'])&&!function(_0x1a534b){return _0x1a534b['start']['parent']==_0x1a534b['end']['nodeBefore']&&_0x1a534b['start']['isAtEnd'];}(_0x23f448)))_0x3cc06d['removeMarker'](_0x197c74),_0x2d0b63=!0x0;else{if(!_0x289f08||!_0x289f08['isInContent'])continue;if(_0x1cc2e0['newRange']&&_0x1cc2e0['oldRange']&&_0x1cc2e0['newRange']['isEqual'](_0x1cc2e0['oldRange']))continue;_0xbd2b57['add'](_0x289f08);}}}var _0x23f448;return _0xbd2b57['size']>0x0&&(_0x2d0b63=!!this['_joinWithAdjacentSuggestions'](_0xbd2b57)||_0x2d0b63),_0x2d0b63;}),_0x903fdd['model']['document']['registerPostFixer'](_0x16f16d=>{let _0x4181f7=!0x1;for(const _0x2094f3 of _0x903fdd['model']['document']['differ']['getChanges']())if('insert'==_0x2094f3['type'])for(const _0x586b72 of this['_suggestions']['values']()){if(_0x586b72['isMultiRange']||!_0x586b72['isInContent'])continue;const _0x4eb0a1='formatBlock'==_0x586b72['type'],_0x1bf273=this['_getAttributeKey'](_0x586b72),_0x2980b6=_0x1bf273&&this['_isBlockAttribute'](_0x1bf273);if(!_0x4eb0a1&&!_0x2980b6)continue;const _0x4d5890=_0x586b72['getFirstRange']();if(_0x4d5890['start']['parent']!=_0x4d5890['end']['parent']&&!_0x4d5890['end']['isAtEnd']){const _0x20f5d3=_0x903fdd['model']['createPositionAt'](_0x4d5890['start']['nodeAfter'],'end'),_0x51fe1c=_0x903fdd['model']['createRange'](_0x4d5890['start'],_0x20f5d3);_0x16f16d['updateMarker'](_0x586b72['getFirstMarker'](),{'range':_0x51fe1c}),_0x4181f7=!0x0;}}return _0x4181f7;}),_0x903fdd['model']['document']['registerPostFixer'](_0x58e668=>this['_processAttributeChanges'](_0x58e668)),_0x903fdd['model']['document']['registerPostFixer'](_0x13c694=>!_0x13c694['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x13c694)),_0x903fdd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x903fdd['model']['document']['on']('change:data',(_0x19abb7,_0x52416e)=>{if(!_0x52416e['isLocal']||_0x52416e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x46ce99=_0x903fdd['model']['document']['differ']['getChanges']();if(0x0==_0x46ce99['length'])return;const _0x84f0fc=[],_0x2febe9=_0x46ce99['filter'](_0x49a0f9=>'attribute'==_0x49a0f9['type']),_0x394ce8=_0x46ce99['filter'](_0x425891=>'insert'==_0x425891['type']&&'$text'!=_0x425891['name']);for(const _0xf5f55c of _0x2febe9)this['_isRegisteredAttribute'](_0xf5f55c['attributeKey'])&&_0x84f0fc['push']({'key':_0xf5f55c['attributeKey'],'newValue':_0xf5f55c['attributeNewValue'],'oldValue':_0xf5f55c['attributeOldValue'],'range':Jt(_0xf5f55c['range'],_0x903fdd['model'])});for(const _0x1aad8b of _0x394ce8){if('rename'!=_0x1aad8b['action']&&'refresh'!=_0x1aad8b['action'])continue;const _0xce8bbb=Ht(_0x1aad8b['position']['nodeAfter'],_0x903fdd['model']),_0x40b06a=_0x1aad8b['before'];'rename'==_0x1aad8b['action']&&_0x84f0fc['push']({'key':m,'newValue':_0x1aad8b['name'],'oldValue':_0x40b06a['name'],'range':_0xce8bbb});for(const [_0x407c1f,_0x447dfc]of _0x40b06a['attributes']){if(!this['_isRegisteredAttribute'](_0x407c1f))continue;const _0x1dd24b=_0x1aad8b['attributes']['get'](_0x407c1f);_0x447dfc!==_0x1dd24b&&_0x84f0fc['push']({'key':_0x407c1f,'newValue':_0x1dd24b,'oldValue':_0x447dfc,'range':_0xce8bbb});}for(const [_0x29d7c5,_0x27d134]of _0x1aad8b['attributes'])this['_isRegisteredAttribute'](_0x29d7c5)&&(_0x40b06a['attributes']['has'](_0x29d7c5)||_0x84f0fc['push']({'key':_0x29d7c5,'newValue':_0x27d134,'oldValue':null,'range':_0xce8bbb}));}0x0!=_0x84f0fc['length']&&_0x903fdd['model']['enqueueChange'](_0x52416e,_0x19381e=>{const _0x225cfe=_0x10a187();for(const {range:_0x115d17,key:_0xc77d34,oldValue:_0xd743f1,newValue:_0x5acc59}of _0x84f0fc)this['markAttributeChange'](_0x115d17,_0xc77d34,_0xd743f1,_0x5acc59,{'groupId':_0x225cfe});this['_reduceExistingSuggestions'](_0x19381e,_0x84f0fc);});},{'priority':'lowest'}),_0x903fdd['model']['markers']['on']('update:suggestion',(_0x16c7c0,_0x40926b,_0x208b9f)=>{if(null==_0x208b9f){const {id:_0x466f5b}=this['_splitMarkerName'](_0x40926b['name']),_0x16115e=this['_suggestions']['get'](_0x466f5b);_0x16115e&&_0x16115e['addMarkerName'](_0x40926b['name']);}}),_0x903fdd['model']['document']['on']('change:data',()=>{const _0x42738c=Array['from'](_0x903fdd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x6eccbe=>'suggestion'===this['_splitMarkerName'](_0x6eccbe['name'])['group']);if(0x0===_0x42738c['length'])return;_0x42738c['sort']((_0x2c17dc,_0x4f99f7)=>{const _0xa5f0db=_0x2c17dc['data']['oldRange'],_0x1feb10=_0x4f99f7['data']['oldRange'];return null===_0xa5f0db&&null===_0x1feb10?0x0:null===_0xa5f0db&&null!==_0x1feb10?-0x1:null!==_0xa5f0db&&null===_0x1feb10?0x1:_0xa5f0db['start']['isBefore'](_0x1feb10['start'])?-0x1:0x1;});const _0x200090=new Set(),_0x250b6a=new Set();for(const {name:_0x5d2121,data:_0x3fc26e}of _0x42738c){const {id:_0x47c1a0}=this['_splitMarkerName'](_0x5d2121);if(null===_0x3fc26e['oldRange']){const _0x18a7ca=this['_handleNewSuggestionMarker'](_0x5d2121);_0x250b6a['add'](_0x18a7ca);}else{const _0x426880=this['_suggestions']['get'](_0x47c1a0);null!==_0x3fc26e['newRange']||_0x426880['isInContent']?(_0x200090['add'](_0x426880['head']),_0x250b6a['add'](_0x426880)):this['_removeSuggestion'](_0x426880);}}_0x250b6a['size']>0x0&&this['_refreshSuggestionsChain'](_0x250b6a);for(const _0x8c821c of _0x200090)this['fire']('suggestionChanged',_0x8c821c);}),_0x903fdd['model']['on']('applyOperation',(_0x18eb32,_0x5dac02)=>{const _0x75477b=_0x5dac02[0x0];if(!this['_suggestions']['size'])return;if(!_0x75477b['isDocumentOperation'])return;if(_0x75477b['batch']['isUndo']||!_0x75477b['batch']['isLocal'])return;let _0x31486b,_0x196b18;switch(_0x75477b['type']){case'insert':_0x31486b=_0x903fdd['model']['createPositionAt'](_0x75477b['position']),_0x196b18=_0x31486b['getShiftedBy'](_0x75477b['howMany']);break;case'split':_0x31486b=_0x903fdd['model']['createPositionAt'](_0x75477b['splitPosition']),_0x196b18=_0x903fdd['model']['createPositionAt'](_0x75477b['moveTargetPosition']);break;case'move':_0x31486b=_0x903fdd['model']['createPositionAt'](_0x75477b['targetPosition']),_0x196b18=_0x31486b['getShiftedBy'](_0x75477b['howMany']);break;default:return;}const _0x120b48=_0x903fdd['model']['createRange'](_0x31486b,_0x196b18);_0x903fdd['model']['change'](()=>{for(const {suggestion:_0x47b6ea,meta:_0x387797}of this['_findSuggestions'](_0x120b48)){if(_0x47b6ea['isMultiRange'])continue;if('formatInline'==_0x47b6ea['type'])continue;const _0x2604e5=this['_getAttributeKey'](_0x47b6ea);if(_0x2604e5&&this['_isBlockAttribute'](_0x2604e5)&&'split'!=_0x75477b['type'])continue;const _0x440ad2=_0x47b6ea['data']&&_0x47b6ea['data']['multipleBlocks'];('formatBlock'!=_0x47b6ea['type']||'split'==_0x75477b['type']&&!_0x440ad2)&&(_0x387797['containsRangeInObject']||'insertion'==_0x47b6ea['type']&&_0x387797['isOwn']||_0x47b6ea['getFirstRange']()['containsRange'](_0x120b48)&&this['_breakSuggestionMarker'](_0x47b6ea,_0x31486b,_0x196b18));}});},{'priority':'lowest'}),_0x903fdd['model']['on']('deleteContent',(_0xc3bc63,_0x40670c)=>{const _0x516382=_0x40670c[0x0],_0x55d565=_0x40670c[0x1];if(_0x55d565&&_0x55d565['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x516382['isCollapsed'])return;const _0x361745=_0x903fdd['model']['schema'],{start:_0x4fef9d,end:_0x3d7580}=_0x516382['getFirstRange'](),_0x317f5a=_0x4fef9d['nodeAfter']&&_0x361745['isLimit'](_0x4fef9d['nodeAfter'])?null:_0x361745['getNearestSelectionRange'](_0x4fef9d,'forward'),_0x1000ef=_0x3d7580['nodeBefore']&&_0x361745['isLimit'](_0x3d7580['nodeBefore'])?null:_0x361745['getNearestSelectionRange'](_0x3d7580,'backward'),_0x3519dd=_0x903fdd['model']['createRange'](_0x317f5a?_0x317f5a['start']:_0x4fef9d,_0x1000ef?_0x1000ef['end']:_0x3d7580);_0x903fdd['model']['change'](_0x286576=>{this['markDeletion'](_0x3519dd);const _0x41070a=_0x903fdd['model']['schema']['getNearestSelectionRange'](_0x3519dd['start']);_0x516382['is']('documentSelection')?_0x286576['setSelection'](_0x41070a):_0x516382['setTo'](_0x41070a);}),_0xc3bc63['stop']();},{'priority':_0x458afa['normal']+0xa}),_0x903fdd['model']['on']('insertContent',(_0x536e61,_0x5f1475)=>{const _0x54e2f6=_0x5f1475[_0x5f1475['length']-0x1];_0x54e2f6&&_0x54e2f6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x903fdd['model']['change'](()=>{let _0x2e8bcd=_0x903fdd['model']['insertContent'](_0x5f1475[0x0],_0x5f1475[0x1],_0x5f1475[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e8bcd)return;_0x536e61['return']=_0x2e8bcd['clone']();const _0x16fbaf=_0x2e8bcd['end']['nodeBefore'],_0x31522d=_0x903fdd['model']['schema'];_0x16fbaf&&_0x31522d['isBlock'](_0x16fbaf)&&!_0x31522d['isObject'](_0x16fbaf)&&(_0x2e8bcd=_0x903fdd['model']['createRange'](_0x2e8bcd['start'],_0x903fdd['model']['createPositionAt'](_0x16fbaf,'end'))),this['markInsertion'](_0x2e8bcd);}),_0x536e61['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2e8faa=new O(_0x903fdd,this['_suggestions']);_0x903fdd['commands']['add']('acceptSuggestion',_0x2e8faa),this['enableCommand']('acceptSuggestion');const _0xecaf74=new R(_0x903fdd,this['_suggestions']);_0x903fdd['commands']['add']('discardSuggestion',_0xecaf74),this['enableCommand']('discardSuggestion'),_0x903fdd['commands']['add']('acceptAllSuggestions',new x(_0x903fdd,_0x2e8faa,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x903fdd['commands']['add']('discardAllSuggestions',new x(_0x903fdd,_0xecaf74,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x903fdd['commands']['add']('acceptSelectedSuggestions',new E(_0x903fdd,_0x2e8faa,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x903fdd['commands']['add']('discardSelectedSuggestions',new E(_0x903fdd,_0xecaf74,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b4c17=_0x903fdd['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b4c17,'addComment',(_0x2b321a,{threadId:_0x3d5a31})=>{const _0xab93a1=this['_suggestions']['get'](_0x3d5a31);_0xab93a1&&_0xab93a1['commentThread']&&0x1===_0xab93a1['commentThread']['length']&&this['_updateSuggestionData'](_0x3d5a31,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b4c17,'removeComment',(_0x58bee5,{threadId:_0x328a65})=>{const _0x453ef7=this['_suggestions']['get'](_0x328a65);_0x453ef7&&_0x453ef7['commentThread']&&!_0x453ef7['commentThread']['length']&&this['_updateSuggestionData'](_0x328a65,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x35e0aa){const _0xb29489=_0x492cf8([0x6e,0x73,0x32,0x76,0x78,0x47,0x37,0x4b,0x56,0x75,0x53,0x31,0x50,0x69,0x45,0x44,0x38,0x62,0x66,0x58,0x5a,0x59,0x4c,0x64,0x7a,0x55,0x46,0x79,0x33,0x70,0x39,0x54,0x65,0x74,0x48,0x43,0x36,0x42,0x63,0x61,0x4f,0x51,0x71,0x4d,0x6b,0x72,0x67,0x4e,0x52,0x41,0x6a,0x57,0x6c,0x30,0x4a,0x49,0x6d,0x34,0x68,0x6f,0x35,0x77]),_0x22072f=0x319fc86c,_0x18c3e0=0x3198967c^_0x22072f,_0x3fca77=window[_0x492cf8([0x44,0x61,0x74,0x65])][_0x492cf8([0x6e,0x6f,0x77])](),_0x262d11=_0x35e0aa[_0x492cf8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e14e7=new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d2f3b=>{_0x262d11[_0x492cf8([0x6f,0x6e,0x63,0x65])](_0x492cf8([0x72,0x65,0x61,0x64,0x79]),_0x4d2f3b);}),_0x4a21b4={[_0x492cf8([0x6b,0x74,0x79])]:_0x492cf8([0x45,0x43]),[_0x492cf8([0x75,0x73,0x65])]:_0x492cf8([0x73,0x69,0x67]),[_0x492cf8([0x63,0x72,0x76])]:_0x492cf8([0x50,0x2d,0x32,0x35,0x36]),[_0x492cf8([0x78])]:_0x492cf8([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]),[_0x492cf8([0x79])]:_0x492cf8([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]),[_0x492cf8([0x61,0x6c,0x67])]:_0x492cf8([0x45,0x53,0x32,0x35,0x36])},_0x1ddbfe=_0x262d11[_0x492cf8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x492cf8([0x67,0x65,0x74])](_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d5c9d(){let _0x357479,_0x53e902=null,_0x38cb24=null;try{if(_0x1ddbfe==_0x492cf8([0x47,0x50,0x4c]))return _0x492cf8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x357479=_0x7a5d1b(),!_0x357479)return _0x492cf8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x357479[_0x492cf8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38cb24=_0x42c28a(_0x357479[_0x492cf8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x357479[_0x492cf8([0x6a,0x74,0x69])])),await _0x3390ca()?_0x132835()?_0x3384da()?_0x492cf8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x547c49()?(_0x357479[_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x492cf8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53e902=_0x3ae0cb(_0x492cf8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x357479[_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x492cf8([0x74,0x72,0x69,0x61,0x6c])&&(_0x53e902=_0x3ae0cb(_0x492cf8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22121c()):_0x492cf8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x492cf8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x492cf8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54494b){return _0x492cf8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3384da(){const _0x31e98=[_0x492cf8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x492cf8([0x74,0x72,0x69,0x61,0x6c])][_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x357479[_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fca77/0x3e8:0xe10*_0x18c3e0;return _0x357479[_0x492cf8([0x65,0x78,0x70])]<_0x31e98;}function _0x132835(){const _0x22d1cb=_0x357479[_0x492cf8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x22d1cb)return!0x1;if(_0x22d1cb[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x492cf8([0x2a])))return!0x0;if(_0x22d1cb[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x492cf8([0x54,0x43])))return!0x0;if(_0x22d1cb[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x492cf8([0x52,0x54,0x43]))){if(_0x5ebec5())return!0x0;if(_0x4c740b()||_0x480351())return!0x0;}return!0x1;}function _0x547c49(){const _0x4e7b0e=_0x357479[_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e7b0e||0x0==_0x4e7b0e[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a234f}=new URL(window[_0x492cf8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e7b0e[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a234f))return!0x0;const _0x469d90=_0x3a234f[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])](_0x492cf8([0x2e]));return _0x4e7b0e[_0x492cf8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x480650=>_0x480650[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x492cf8([0x2a])))[_0x492cf8([0x6d,0x61,0x70])](_0xeed5f1=>_0xeed5f1[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])](_0x492cf8([0x2e])))[_0x492cf8([0x73,0x6f,0x6d,0x65])](_0x191ac8=>_0x469d90[_0x492cf8([0x65,0x76,0x65,0x72,0x79])]((_0xecb0b4,_0x5c7c92)=>_0x191ac8[_0x5c7c92]===_0xecb0b4||_0x191ac8[_0x5c7c92]===_0x492cf8([0x2a])));}function _0x22121c(){return _0x53e902&&_0x38cb24?new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x222e65,_0x32f960)=>{_0x53e902[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x222e65,_0x32f960),_0x38cb24[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x3ad0c6=>{_0x3ad0c6!=_0x492cf8([0x56,0x61,0x6c,0x69,0x64])&&_0x222e65(_0x3ad0c6);},_0x32f960);}):_0x53e902||_0x38cb24||_0x492cf8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42c28a(_0x4c8217,_0x6d5a46){return new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583071=>{if(_0x5fbaa())return _0x583071(_0x492cf8([0x56,0x61,0x6c,0x69,0x64]));_0x26f7bc(),_0x262d11[_0x492cf8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x492cf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15fba6=!0x1;const _0x32c952=_0x10a187();function _0x3f3f3a(_0x4bf566){return!!_0x4bf566&&(typeof _0x4bf566===_0x492cf8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bf566===_0x492cf8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bf566[_0x492cf8([0x74,0x68,0x65,0x6e])]===_0x492cf8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bf566[_0x492cf8([0x63,0x61,0x74,0x63,0x68])]===_0x492cf8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x527a21(_0x1b15cb){_0x4ef811(_0x1b15cb)[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x343764=>{if(!_0x343764||_0x343764[_0x492cf8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x492cf8([0x6f,0x6b]))return _0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x271c47(_0x548d2b(_0x32c952+_0x6d5a46))!=_0x343764[_0x492cf8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x492cf8([0x56,0x61,0x6c,0x69,0x64]);})[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x205f6a=>(_0x422742(),_0x205f6a),()=>{const _0x194697=_0xceb8c0();return null==_0x194697?(_0x422742(),_0x492cf8([0x56,0x61,0x6c,0x69,0x64])):_0x492cf8(_0x3fca77-_0x194697>(0x15934c6c^_0x22072f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x583071)[_0x492cf8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x583071(_0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xad00f3=0x31a926ec^_0x22072f;function _0x422742(){const _0x1e38e2=_0x492cf8([0x6c,0x6c,0x63,0x74,0x2d])+_0x271c47(_0x548d2b(_0x4c8217)),_0x3eaee6=_0x213c8e(_0x271c47(window[_0x492cf8([0x4d,0x61,0x74,0x68])][_0x492cf8([0x63,0x65,0x69,0x6c])](_0x3fca77/_0xad00f3)));window[_0x492cf8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x492cf8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e38e2,_0x3eaee6);}function _0xceb8c0(){const _0xe8e477=_0x492cf8([0x6c,0x6c,0x63,0x74,0x2d])+_0x271c47(_0x548d2b(_0x4c8217)),_0x558723=window[_0x492cf8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x492cf8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe8e477);return _0x558723?window[_0x492cf8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x213c8e(_0x558723),0x10)*_0xad00f3:null;}function _0x4ef811(_0x1bf814){return new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x382b0f,_0x68432)=>{_0x1bf814[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x382b0f,_0x68432),window[_0x492cf8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x68432,0x319e1cac^_0x22072f);});}}_0x262d11[_0x492cf8([0x6f,0x6e])](_0x492cf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c59c6,_0x4839ec)=>{if(_0x4839ec[0x0]!=_0x4c8217)return _0x583071(_0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4839ec[0x1]={..._0x4839ec[0x1],[_0x492cf8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32c952};},{[_0x492cf8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x492cf8([0x68,0x69,0x67,0x68])}),_0x262d11[_0x492cf8([0x6f,0x6e])](_0x492cf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fbed3=>{_0x3f3f3a(_0x4fbed3[_0x492cf8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15fba6=!0x0,_0x527a21(_0x4fbed3[_0x492cf8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x492cf8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x492cf8([0x6c,0x6f,0x77])}),_0x1e14e7[_0x492cf8([0x74,0x68,0x65,0x6e])](()=>{_0x15fba6||_0x583071(_0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5fbaa(){return _0x262d11[_0x492cf8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x492cf8([0x76,0x69,0x65,0x77])][_0x492cf8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x492cf8([0x61,0x75,0x74,0x6f]);}function _0x26f7bc(){_0x262d11[_0x492cf8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x492cf8([0x76,0x69,0x65,0x77])][_0x492cf8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x492cf8([0x61,0x75,0x74,0x6f]);}}function _0x3ae0cb(_0x27622b){const _0x2d64a4=[new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa5b5fe=>setTimeout(_0xa5b5fe,0x3196f6a0^_0x22072f)),_0x1e14e7[_0x492cf8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583e93=>{let _0x562ac5=0x0;_0x262d11[_0x492cf8([0x6d,0x6f,0x64,0x65,0x6c])][_0x492cf8([0x6f,0x6e])](_0x492cf8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x214b94,_0x346458)=>{_0x346458[0x0][_0x492cf8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x562ac5++,_0x562ac5==(0x319fc994^_0x22072f)&&(_0x583e93(),_0x214b94[_0x492cf8([0x6f,0x66,0x66])]());});}))];return window[_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x492cf8([0x72,0x61,0x63,0x65])](_0x2d64a4)[_0x492cf8([0x74,0x68,0x65,0x6e])](()=>_0x27622b);}async function _0x28c8b2(){await _0x1e14e7,_0x262d11[_0x492cf8([0x6d,0x6f,0x64,0x65,0x6c])][_0x492cf8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x468794,_0x262d11[_0x492cf8([0x6d,0x6f,0x64,0x65,0x6c])][_0x492cf8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x468794,_0x262d11[_0x492cf8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x492cf8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ebec5(){return _0x38995a(_0x492cf8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x565f61(_0x492cf8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x492cf8([0x73,0x74,0x61,0x74,0x65])]==_0x492cf8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4c740b(){return _0x38995a(_0x492cf8([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 _0x480351(){return _0x38995a(_0x492cf8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x264160(_0x7b7fe7){const _0xb07b4a=_0x24c880();_0x262d11[_0xb07b4a]=_0x492cf8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x7b7fe7,_0x7b7fe7!=_0x492cf8([0x56,0x61,0x6c,0x69,0x64])&&_0x28c8b2();}function _0x24c880(){const _0xdd9a80=window[_0x492cf8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x492cf8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x492cf8([0x6e,0x6f,0x77])]())[_0x492cf8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x492cf8([0x2e]),'');let _0x17466b=_0x492cf8([0x6e]);for(let _0x38a2d7=0x0;_0x38a2d7<_0xdd9a80[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38a2d7+=0x2){let _0x2d8971=window[_0x492cf8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdd9a80[_0x492cf8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38a2d7,_0x38a2d7+0x2));_0x2d8971>=_0xb29489[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d8971-=_0xb29489[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17466b+=_0xb29489[_0x2d8971];}return _0x17466b;}function _0x7a5d1b(){const _0x3fae54=_0x1ddbfe[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])](_0x492cf8([0x2e]));if(0x3!=_0x3fae54[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1213fd(_0x3fae54[0x1]);function _0x1213fd(_0x396fc0){const _0x5a23b5=_0x2ccf2e(_0x396fc0);return _0x5a23b5&&_0x3a7e25()?_0x5a23b5:null;function _0x3a7e25(){const _0x5a1400=_0x5a23b5[_0x492cf8([0x6a,0x74,0x69])],_0x308cba=window[_0x492cf8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a1400[_0x492cf8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a1400[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37f939={..._0x5a23b5,[_0x492cf8([0x6a,0x74,0x69])]:_0x5a1400[_0x492cf8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a1400[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37f939[_0x492cf8([0x76,0x63])],_0x548d2b(_0x37f939)==_0x308cba;}}}async function _0x3390ca(){let _0x1b7f29=!0x0;try{const _0xa6c114=_0x1ddbfe[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])](_0x492cf8([0x2e])),[_0x52ccad,_0x4bb9af,_0x397f04]=_0xa6c114;return _0x471fdf(_0x52ccad),await _0x45a316(_0x52ccad,_0x4bb9af,_0x397f04),_0x1b7f29;}catch(_0x3b19e4){return!0x1;}function _0x471fdf(_0x55e851){const _0x5c1192=_0x2ccf2e(_0x55e851);_0x5c1192&&_0x5c1192[_0x492cf8([0x61,0x6c,0x67])]==_0x492cf8([0x45,0x53,0x32,0x35,0x36])||(_0x1b7f29=!0x1);}async function _0x45a316(_0x5d6942,_0x1e2f66,_0x17d68a){const _0x3245c9=window[_0x492cf8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x492cf8([0x66,0x72,0x6f,0x6d])](_0x2591a8(_0x17d68a),_0xd20108=>_0xd20108[_0x492cf8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b16de=new window[(_0x492cf8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x492cf8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d6942+_0x492cf8([0x2e])+_0x1e2f66),_0x3a92bc=window[_0x492cf8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x492cf8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a92bc)return;const _0x4c3eb3=await _0x3a92bc[_0x492cf8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x492cf8([0x6a,0x77,0x6b]),_0x4a21b4,{[_0x492cf8([0x6e,0x61,0x6d,0x65])]:_0x492cf8([0x45,0x43,0x44,0x53,0x41]),[_0x492cf8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x492cf8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x492cf8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a92bc[_0x492cf8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x492cf8([0x6e,0x61,0x6d,0x65])]:_0x492cf8([0x45,0x43,0x44,0x53,0x41]),[_0x492cf8([0x68,0x61,0x73,0x68])]:{[_0x492cf8([0x6e,0x61,0x6d,0x65])]:_0x492cf8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c3eb3,_0x3245c9,_0x3b16de)||(_0x1b7f29=!0x1);}}function _0x2ccf2e(_0x2703df){return _0x2703df[_0x492cf8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x492cf8([0x65,0x79]))?JSON[_0x492cf8([0x70,0x61,0x72,0x73,0x65])](_0x2591a8(_0x2703df)):null;}function _0x2591a8(_0x3ad626){return window[_0x492cf8([0x61,0x74,0x6f,0x62])](_0x3ad626[_0x492cf8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x492cf8([0x2b]))[_0x492cf8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x492cf8([0x2f])));}function _0x548d2b(_0x454f1b){let _0x226512=0x1505;function _0x2c0e3d(_0x4289a1){for(let _0x2b7985=0x0;_0x2b7985<_0x4289a1[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b7985++){const _0x137ada=_0x4289a1[_0x492cf8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b7985);_0x226512=(_0x226512<<0x5)+_0x226512+_0x137ada,_0x226512&=_0x226512;}}function _0x57f86d(_0x4dc66f){Array[_0x492cf8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4dc66f)?_0x4dc66f[_0x492cf8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57f86d):_0x4dc66f&&typeof _0x4dc66f==_0x492cf8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x492cf8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4dc66f)[_0x492cf8([0x73,0x6f,0x72,0x74])]()[_0x492cf8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23531b,_0x363450])=>{_0x2c0e3d(_0x23531b),_0x57f86d(_0x363450);}):_0x2c0e3d(window[_0x492cf8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4dc66f));}return _0x57f86d(_0x454f1b),_0x226512>>>0x0;}function _0x271c47(_0x18e2b4){return _0x18e2b4[_0x492cf8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x492cf8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x492cf8([0x30]));}function _0x213c8e(_0x5eac08){return _0x5eac08[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x492cf8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x492cf8([0x6a,0x6f,0x69,0x6e])]('');}function _0x38995a(_0x13e585){return _0x262d11[_0x492cf8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x492cf8([0x68,0x61,0x73])](_0x13e585);}function _0x565f61(_0x565d9c){return _0x262d11[_0x492cf8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x492cf8([0x67,0x65,0x74])](_0x565d9c);}function _0x468794(){}function _0x492cf8(_0xadcdca){return _0xadcdca['map'](_0x11150a=>String['fromCharCode'](_0x11150a))['join']('');}_0x264160(await _0x5d5c9d());}(this);}set['adapter'](_0xba1f87){if(this['_adapter'])throw new _0x46ed90('track-changes-adapter-already-set',this);this['_adapter']=_0xba1f87;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x183e47=!0x1,toJSON:_0x5eefd3=!0x1}={}){const _0xc11ac0=[];for(const _0x2d8936 of this['_suggestions']['values']())_0x183e47&&!_0x2d8936['isInContent']||_0xc11ac0['push'](_0x2d8936);return _0x5eefd3?_0xc11ac0['map'](_0x15e0ca=>_0x15e0ca['toJSON']()):_0xc11ac0;}['getSuggestion'](_0x46f312){const _0x2ecd7e=this['_suggestions']['get'](_0x46f312);if(!_0x2ecd7e)throw new _0x46ed90('track-changes-suggestion-not-found',this);return _0x2ecd7e;}['hasSuggestion'](_0x40e3df){return this['_suggestions']['has'](_0x40e3df);}['addSuggestionData'](_0x55169f){const {authorId:_0x42474a,id:_0x3d8167,attributes:_0xaee6b4}=_0x55169f,[_0x1bd916,_0x3cedda]=_0x55169f['type']['split'](':'),_0x4c8775=this['_suggestions']['get'](_0x3d8167)||this['_createSuggestion'](_0x1bd916,_0x3cedda,_0x3d8167,_0x42474a,_0xaee6b4);if(this['_addThreadToSuggestion'](_0x4c8775),this['_checkSuggestionCorrectness'](_0x4c8775,_0x1bd916,_0x3cedda||null,_0x42474a),_0x4c8775['createdAt']=_0x55169f['createdAt'],_0x4c8775['_isDataLoaded']=!0x0,_0xaee6b4&&_0xaee6b4['@external']){const _0x1956fe=_0xaee6b4['@external'],_0x3d8f9a=this['_getExternalAuthor'](_0x1956fe['authorName']);_0x4c8775['authoredAt']=_0x1956fe['createdAt'],_0x4c8775['author']=_0x3d8f9a,_0x4c8775['isExternal']=!0x0;}else _0x4c8775['authoredAt']=_0x55169f['createdAt'];switch(_0x55169f['data']&&(_0x4c8775['data']=_0x55169f['data']),_0x55169f['attributes']&&(_0x4c8775['attributes']=_0x55169f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4c8775['_saved']=!0x0),this['_suggestionState']['get'](_0x4c8775)){case'notReady':this['_suggestionState']['set'](_0x4c8775,'dataReady');break;case'markerReady':_0x4c8775['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c8775])),this['_refreshSuggestionsChain'](new Set([_0x4c8775])),this['_suggestionState']['set'](_0x4c8775,'ready'),this['fire']('suggestionLoaded',_0x4c8775)):this['_suggestionState']['set'](_0x4c8775,'removed');}return _0x4c8775;}['acceptSuggestion'](_0x1d667a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d35a7 of _0x1d667a['getAllAdjacentSuggestions']())_0x1d35a7['accept']();});});}['discardSuggestion'](_0x5ca0ac){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xe37e2b of _0x5ca0ac['getAllAdjacentSuggestions']())_0xe37e2b['discard']();});});}['enableCommand'](_0x21ec4c,_0x3af489){const _0x48b045=this['editor']['commands']['get'](_0x21ec4c);if(!_0x48b045)throw new _0x46ed90('track-changes-command-not-found',this,{'commandName':_0x21ec4c});if(this['_enabledCommands']['has'](_0x48b045))throw new _0x46ed90('track-changes-enable-command-twice',this,{'commandName':_0x21ec4c});this['_enabledCommands']['add'](_0x48b045),_0x3af489&&_0x48b045['on']('execute',(_0x2fe724,_0x25fb23)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x25fb23['length']>0x0&&_0x25fb23[_0x25fb23['length']-0x1]&&_0x25fb23[_0x25fb23['length']-0x1]['forceDefaultExecution']?_0x25fb23['pop']():(_0x2fe724['return']=_0x3af489((..._0x4e7034)=>_0x48b045['execute'](..._0x4e7034,{'forceDefaultExecution':!0x0}),..._0x25fb23),_0x2fe724['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1933d3){let _0x2bbd93,_0x51351f;const _0x478ae2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2bbd93=_0x1933d3();}catch(_0x5aaeee){_0x51351f=_0x5aaeee;}return _0x478ae2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x51351f&&_0x46ed90['rethrowUnexpectedError'](_0x51351f,this),_0x2bbd93;}['markInsertion'](_0x3e54f7,_0x4bc4ff=null,_0x4c0aa3={}){if(_0x3e54f7['isCollapsed'])return null;const _0x3be662=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x182b6f,meta:_0x2cf230}of this['_findSuggestions'](_0x3e54f7,'insertion'))if(_0x2cf230['isOwn']){if(!_0x2cf230['isNextTo']){if(_0x2cf230['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x182b6f,_0x4c0aa3))continue;return _0x182b6f;}if(Kt(_0x182b6f,_0x4c0aa3))return _0x182b6f;this['_breakSuggestionMarker'](_0x182b6f,_0x3e54f7['start'],_0x3e54f7['end']);break;}if(_0x4bc4ff==_0x182b6f['subType']&&Kt(_0x182b6f,_0x4c0aa3)){const _0x58414c=_0x182b6f['getFirstRange']();return _0x58414c['start']['isEqual'](_0x3e54f7['end'])?this['_setSuggestionRange'](_0x182b6f,this['_model']['createRange'](_0x3e54f7['start'],_0x58414c['end'])):this['_setSuggestionRange'](_0x182b6f,this['_model']['createRange'](_0x58414c['start'],_0x3e54f7['end'])),_0x182b6f;}}const _0x47aac9=_0x10a187(),_0x205423=_0x3be662['id'],_0x55401e=_0x4bc4ff?'insertion:'+_0x4bc4ff:'insertion',_0x5eafb5=this['_setSuggestionData']({'id':_0x47aac9,'type':_0x55401e,'createdAt':new Date(),'authorId':_0x205423,'attributes':_0x4c0aa3});return this['_addSuggestionMarker'](_0x55401e,_0x47aac9,_0x205423,_0x3e54f7),_0x5eafb5;}['markMultiRangeInsertion'](_0x470dbf,_0x38e384='multi',_0x2f1432={}){const _0x3b7ccc=this['editor']['plugins']['get']('Users')['me'],_0x2dd99e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x38e384,'join');for(const _0x539d39 of this['getSuggestions']())if(_0x539d39['author']['id']==_0x3b7ccc['id']&&'insertion'==_0x539d39['type']&&_0x539d39['subType']==_0x38e384&&Kt(_0x539d39,_0x2f1432)&&(_0x2dd99e(_0x539d39['getRanges'](),_0x470dbf)||_0x2dd99e(_0x470dbf,_0x539d39['getRanges']()))){for(const _0x2e3b11 of _0x470dbf)_0x539d39['addRange'](_0x2e3b11);return _0x539d39;}for(const {suggestion:_0x4ecdaa,meta:_0x552280}of this['_findSuggestions'](_0x470dbf,'insertion')){if(!_0x552280['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x552280['containsRangeInObject'])continue;if(!Kt(_0x4ecdaa,_0x2f1432))continue;let _0x182f60=!0x0;for(const _0x339620 of _0x4ecdaa['getRanges']())for(const _0x2479d4 of _0x470dbf)if(!_0x339620['containsRange'](_0x2479d4)){_0x182f60=!0x1;break;}if(_0x182f60)return _0x4ecdaa;}const _0x51959e=_0x10a187(),_0x4321ce=_0x3b7ccc['id'],_0x299b1d='insertion:'+_0x38e384,_0x46c975=this['_setSuggestionData']({'id':_0x51959e,'type':_0x299b1d,'createdAt':new Date(),'authorId':_0x4321ce,'attributes':_0x2f1432});for(const _0x3b409a of _0x470dbf)this['_addSuggestionMarker'](_0x299b1d,_0x51959e,_0x4321ce,_0x3b409a,u['getMultiRangeId']());return _0x46c975;}['markInlineFormat'](_0x1352ee,_0xf1c1c4,_0x4475a3=null,_0x16119b={}){if(_0x4475a3=_0x4475a3||Ft(_0xf1c1c4),_0x1352ee['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x55564b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4475a3,'accept');return this['forceDefaultExecution'](()=>_0x55564b([_0x1352ee],_0xf1c1c4,_0x16119b)),null;}const _0x5f5507=this['editor']['plugins']['get']('Users')['me'],_0x30d640=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d4618,meta:_0xfacf83}of this['_findSuggestions'](_0x1352ee,'insertion'))_0xfacf83['isOwn']&&!_0xfacf83['isInsideObject']&&_0x30d640['push'](..._0x3d4618['getRanges']());}const _0x13a8a1=function(_0x24579d,_0x4f37ec){const _0x17061a=[];for(const _0x59a79a of _0x4f37ec){const _0x30556f=_0x24579d['getIntersection'](_0x59a79a);_0x30556f&&_0x17061a['push'](_0x30556f);}return _0x17061a;}(_0x1352ee,_0x30d640),_0x58e411=function(_0x102a47,_0x174bb1){const _0xd11ec3=[_0x102a47];for(const _0x3823a7 of _0x174bb1){let _0x3923d5=0x0;for(;_0x3923d5<_0xd11ec3['length'];){const _0x371c08=_0xd11ec3[_0x3923d5]['getDifference'](_0x3823a7);_0xd11ec3['splice'](_0x3923d5,0x1,..._0x371c08),_0x3923d5+=_0x371c08['length'];}}return _0xd11ec3;}(_0x1352ee,_0x30d640);_0x13a8a1['length']&&this['_model']['change'](()=>{for(const _0x134b67 of _0x13a8a1){const _0x4eadf8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4475a3,'accept');this['forceDefaultExecution'](()=>_0x4eadf8([_0x134b67],_0xf1c1c4,_0x16119b));}});for(const _0x43c255 of _0x58e411){let _0x4e354f=null,_0xcc4449=_0x43c255['start'],_0x166fe5=_0x43c255['end'];for(const {suggestion:_0x22187f,meta:_0x17134e}of this['_findSuggestions'](_0x43c255,'formatInline')){if(!_0x17134e['isOwn'])continue;if(_0x22187f['subType']!=_0x4475a3)continue;if(!Kt(_0x22187f,_0x16119b))continue;const _0x340aaa=_0x22187f['getFirstRange']();if(_0x340aaa['containsRange'](_0x43c255,!0x0))return null;_0xcc4449=_0xcc4449['isBefore'](_0x340aaa['start'])?_0xcc4449:_0x340aaa['start'],_0x166fe5=_0x166fe5['isAfter'](_0x340aaa['end'])?_0x166fe5:_0x340aaa['end'],_0x4e354f?_0x340aaa['start']['isBefore'](_0x4e354f['getFirstRange']()['start'])?(_0x4e354f['removeMarkers'](),_0x4e354f=_0x22187f):_0x22187f['removeMarkers']():_0x4e354f=_0x22187f;}const _0x5155c4=this['_model']['createRange'](_0xcc4449,_0x166fe5);if(_0x4e354f)this['_setSuggestionRange'](_0x4e354f,_0x5155c4);else{const _0x31d5ae=_0x10a187(),_0x2606c5=_0x5f5507['id'];this['_setSuggestionData']({'id':_0x31d5ae,'type':'formatInline:'+_0x4475a3,'data':_0xf1c1c4,'createdAt':new Date(),'authorId':_0x2606c5,'attributes':_0x16119b}),this['_addSuggestionMarker']('formatInline:'+_0x4475a3,_0x31d5ae,_0x2606c5,_0x5155c4);}}return null;}['markBlockFormat'](_0x2fad43,_0x3fe3eb,_0x28f790=[],_0x1e22e2=null,_0x30d9d5={}){_0x3fe3eb['formatGroupId']||(_0x3fe3eb['formatGroupId']=_0x3fe3eb['commandName']),_0x3fe3eb['multipleBlocks']=_0x2fad43['is']('range'),_0x1e22e2=_0x1e22e2||Ft(_0x3fe3eb);const _0xd8599c=_0x28f790['map'](_0x20c5c1=>Ht(_0x20c5c1,this['_model'])),_0xdb3c67=_0x2fad43['is']('range')?_0x2fad43:Ht(_0x2fad43,this['_model']);if('never'===this['_trackFormatChanges']){const _0x24e694=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e22e2,'accept');return this['forceDefaultExecution'](()=>_0x24e694([_0xdb3c67],_0x3fe3eb,_0x30d9d5)),null;}_0xd8599c['push'](_0xdb3c67);let _0xbca22c=!0x0;for(const _0x4648a0 of _0xd8599c)if(!this['_rangeIsInLocalUserInsertion'](_0x4648a0)){_0xbca22c=!0x1;break;}if(_0xbca22c&&'always'!==this['_trackFormatChanges']){const _0x189df5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e22e2,'accept');return this['forceDefaultExecution'](()=>_0x189df5([_0xdb3c67],_0x3fe3eb,_0x30d9d5)),null;}let _0xaf7626=null,_0x35d679=_0xdb3c67['start'],_0x4c279c=_0xdb3c67['end'];for(const {suggestion:_0x351285,meta:_0x5b87e9}of this['_findSuggestions'](_0xdb3c67,'formatBlock')){if(!_0x5b87e9['isOwn'])continue;if(_0x5b87e9['isNextTo']||_0x5b87e9['containsRangeInObject']||_0x5b87e9['isInsideObject'])continue;if(_0x351285['data']['formatGroupId']!=_0x3fe3eb['formatGroupId'])continue;if(!Kt(_0x351285,_0x30d9d5))continue;const _0x1cc555=_0x351285['getFirstRange']();if(_0x351285['subType']==_0x1e22e2){if(_0x1cc555['containsRange'](_0xdb3c67,!0x0))return null;_0x35d679=_0x35d679['isBefore'](_0x1cc555['start'])?_0x35d679:_0x1cc555['start'],_0x4c279c=_0x4c279c['isAfter'](_0x1cc555['end'])?_0x4c279c:_0x1cc555['end'],_0xaf7626?_0x1cc555['start']['isBefore'](_0xaf7626['getFirstRange']()['start'])?(_0xaf7626['removeMarkers'](),_0xaf7626=_0x351285):_0x351285['removeMarkers']():_0xaf7626=_0x351285;}else{const _0x3da641=_0xdb3c67['getIntersection'](_0x1cc555);this['_cutOutSuggestionMarker'](_0x351285,_0x3da641);}}const _0x5cb194=this['editor']['plugins']['get']('Users')['me'],_0xade791=_0x10a187(),_0x5b2d98=_0x5cb194['id'];if(_0xaf7626)return this['_setSuggestionRange'](_0xaf7626,this['_model']['createRange'](_0x35d679,_0x4c279c)),_0xaf7626;{const _0xef1761=this['_setSuggestionData']({'id':_0xade791,'type':'formatBlock:'+_0x1e22e2,'data':_0x3fe3eb,'createdAt':new Date(),'authorId':_0x5b2d98,'attributes':_0x30d9d5});return this['_addSuggestionMarker']('formatBlock:'+_0x1e22e2,_0xade791,_0x5b2d98,this['_model']['createRange'](_0x35d679,_0x4c279c)),_0xef1761;}}['markMultiRangeBlockFormat'](_0x2e6bbb,_0x53e010,_0x1dac3a=[],_0x1f5ced=null,_0x4660e1={}){_0x53e010['formatGroupId']||(_0x53e010['formatGroupId']=_0x53e010['commandName']);const _0x3aeec4=_0x2e6bbb[0x0];_0x53e010['multipleBlocks']=_0x3aeec4['is']('range'),_0x1f5ced=_0x1f5ced||Ft(_0x53e010);const _0x8bdb9b=_0x1dac3a['map'](_0xd05e0b=>Ht(_0xd05e0b,this['_model'])),_0x5c3533=_0x3aeec4['is']('range')?_0x2e6bbb:_0x2e6bbb['map'](_0x41c233=>Ht(_0x41c233,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4c72f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f5ced,'accept');return this['forceDefaultExecution'](()=>_0x4c72f7(_0x5c3533,_0x53e010,_0x4660e1)),null;}_0x8bdb9b['push'](..._0x5c3533);let _0x10e9ad=!0x0;for(const _0x5405e7 of _0x8bdb9b)if(!this['_rangeIsInLocalUserInsertion'](_0x5405e7)){_0x10e9ad=!0x1;break;}if(_0x10e9ad&&'always'!==this['_trackFormatChanges']){const _0x28e05c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f5ced,'accept');return this['forceDefaultExecution'](()=>_0x28e05c(_0x5c3533,_0x53e010,_0x4660e1)),null;}const _0x21cdec=this['editor']['plugins']['get']('Users')['me'];for(const _0x5448d5 of this['getSuggestions']()){if(_0x5448d5['author']['id']!=_0x21cdec['id'])continue;if('formatBlock'!=_0x5448d5['type']||_0x5448d5['data']['formatGroupId']!=_0x53e010['formatGroupId'])continue;if(!Kt(_0x5448d5,_0x4660e1))continue;const _0x3c1aee=_0x5448d5['subType']==_0x1f5ced;for(let _0xb01e31=0x0;_0xb01e31<_0x5c3533['length'];_0xb01e31++){const _0xe6fcfb=_0x5c3533[_0xb01e31];for(const _0x2ffe10 of _0x5448d5['getMarkers']()){const _0x30ecef=_0x2ffe10['getRange']();if(_0xe6fcfb['isEqual'](_0x30ecef)){_0x3c1aee?(_0x5c3533['splice'](_0xb01e31,0x1),_0xb01e31--):_0x5448d5['removeMarker'](_0x2ffe10['name']);break;}}}}if(0x0==_0x5c3533['length'])return null;const _0x56dad9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f5ced,'join');for(const _0x4611cd of this['getSuggestions']())if(_0x4611cd['author']['id']==_0x21cdec['id']&&'formatBlock'==_0x4611cd['type']&&_0x4611cd['data']['formatGroupId']==_0x53e010['formatGroupId']&&_0x4611cd['subType']==_0x1f5ced&&Kt(_0x4611cd,_0x4660e1)&&(_0x56dad9(_0x4611cd['getRanges'](),_0x5c3533)||_0x56dad9(_0x5c3533,_0x4611cd['getRanges']()))){for(const _0x269ad5 of _0x5c3533)_0x4611cd['addRange'](_0x269ad5);return _0x4611cd;}const _0x4c95ab=_0x10a187(),_0x2df9bb=_0x21cdec['id'],_0x2052fc='formatBlock:'+_0x1f5ced,_0x57cebb=this['_setSuggestionData']({'id':_0x4c95ab,'type':_0x2052fc,'data':_0x53e010,'createdAt':new Date(),'authorId':_0x2df9bb,'attributes':_0x4660e1});for(const _0xf3d90f of _0x5c3533)this['_addSuggestionMarker'](_0x2052fc,_0x4c95ab,_0x2df9bb,_0xf3d90f,u['getMultiRangeId']());return _0x57cebb;}['markDeletion'](_0x18b068,_0x361949=null,_0x319ae3={}){if(_0x18b068['isCollapsed'])return null;const _0x28c55f=this['editor']['plugins']['get']('Users')['me'],_0x329eaf=new _0x4da4a9(_0x18b068['start'],_0x18b068['end']);for(const {suggestion:_0x34a55c,meta:_0x526aee}of this['_findSuggestions'](_0x329eaf,'insertion'))if(_0x526aee['isOwn']&&!_0x526aee['isNextTo']){if(_0x34a55c['isMultiRange']){const _0x5e9ef2=_0x34a55c['getRanges']()['filter'](_0x1111ca=>'$graveyard'!=_0x1111ca['root']['rootName']);_0x5e9ef2['every'](_0x5c5f19=>_0x329eaf['containsRange'](_0x5c5f19,!0x0))&&_0x34a55c['discard']();if(_0x5e9ef2['some'](_0x442da5=>_0x442da5['containsRange'](_0x329eaf,!0x0))){const _0x5df5f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x361949,'accept');return this['forceDefaultExecution'](()=>_0x5df5f9([_0x329eaf],null,_0x319ae3)),null;}}else{const _0x4a9cef=_0x329eaf['getIntersection'](_0x34a55c['getFirstRange']());null!==_0x4a9cef&&_0x34a55c['_onDiscard']([_0x4a9cef],null,_0x319ae3);}}if(_0x329eaf['detach'](),_0x329eaf['isCollapsed']||'$graveyard'==_0x329eaf['root']['rootName'])return null;let _0x8c215d=null,_0x4c3f21=_0x329eaf['start'],_0x2eb2fa=_0x329eaf['end'];const _0x27bc0b=this['_findSuggestions'](_0x329eaf,'deletion');for(const {suggestion:_0x9a995b,meta:_0x5c2af6}of _0x27bc0b){const _0x778886=this['_model']['createRange'](_0x4c3f21,_0x2eb2fa);if(_0x5c2af6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c2af6['containsRangeInObject']&&!_0x5c2af6['isInsideObject'])){if(_0x9a995b['isMultiRange']){if(!Kt(_0x9a995b,_0x319ae3))continue;let _0x3e1fe2=!0x0;for(const _0x3b75d6 of _0x9a995b['getRanges']()){if(_0x3b75d6['containsRange'](_0x778886,!0x0))return _0x9a995b;_0x778886['containsRange'](_0x3b75d6)||(_0x3e1fe2=!0x1);}_0x3e1fe2&&_0x9a995b['discard']();}else{const _0x5bba5b=_0x9a995b['getFirstRange']();if(_0x5bba5b['containsRange'](_0x778886,!0x0))return _0x9a995b;if(!Kt(_0x9a995b,_0x319ae3)){_0x778886['containsRange'](_0x5bba5b)?_0x9a995b['removeMarkers']():_0x5bba5b['containsPosition'](_0x4c3f21)?_0x4c3f21=_0x5bba5b['end']:_0x5bba5b['containsPosition'](_0x2eb2fa)&&(_0x2eb2fa=_0x5bba5b['start']);continue;}_0x4c3f21=_0x4c3f21['isBefore'](_0x5bba5b['start'])?_0x4c3f21:_0x5bba5b['start'],_0x2eb2fa=_0x2eb2fa['isAfter'](_0x5bba5b['end'])?_0x2eb2fa:_0x5bba5b['end'],_0x319ae3=Object['assign']({},_0x9a995b['attributes']),_0x8c215d?_0x5bba5b['start']['isBefore'](_0x8c215d['getFirstRange']()['start'])?(_0x8c215d['removeMarkers'](),_0x8c215d=_0x9a995b):_0x9a995b['removeMarkers']():_0x8c215d=_0x9a995b;}}}if(_0x8c215d)return this['_setSuggestionRange'](_0x8c215d,this['_model']['createRange'](_0x4c3f21,_0x2eb2fa)),_0x8c215d;{const _0x56a5ad=_0x10a187(),_0x5018f1=this['_model']['createRange'](_0x4c3f21,_0x2eb2fa),_0x1ff5f6=_0x28c55f['id'],_0xfb0393=_0x361949?'deletion:'+_0x361949:'deletion',_0xa081a6=this['_setSuggestionData']({'id':_0x56a5ad,'type':_0xfb0393,'createdAt':new Date(),'authorId':_0x1ff5f6,'attributes':_0x319ae3});return this['_addSuggestionMarker'](_0xfb0393,_0x56a5ad,_0x1ff5f6,_0x5018f1),_0xa081a6;}}['markMultiRangeDeletion'](_0xa4a208,_0x59c524='multi',_0x5c204b={}){const _0x54a60d=this['editor']['plugins']['get']('Users')['me'],_0x1a3e07=_0xa4a208['map'](_0x32d401=>new _0x4da4a9(_0x32d401['start'],_0x32d401['end'])),_0xab5778=new Set();for(const {suggestion:_0x350c68,meta:_0x677503}of this['_findSuggestions'](_0x1a3e07,'insertion'))_0x677503['isOwn']&&!_0x677503['isNextTo']&&_0xab5778['add'](_0x350c68);for(const _0x321004 of _0xab5778)if(_0x321004['isMultiRange']){const _0x46cd48=_0x321004['getRanges']();(!_0x321004['attributes']||!_0x321004['attributes']['skipNestingCheck'])&&(_0x46cd48['every'](_0xa26144=>_0x1a3e07['some'](_0x270fa5=>_0x270fa5['containsRange'](_0xa26144,!0x0)))&&_0x321004['discard']());if(_0x1a3e07['every'](_0x1ed604=>_0x46cd48['some'](_0x496728=>_0x496728['containsRange'](_0x1ed604,!0x0)))){const _0x11d6a6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59c524,'accept');return this['forceDefaultExecution'](()=>_0x11d6a6(_0xa4a208,null,_0x5c204b)),null;}}else{const _0x3d2fbc=_0x321004['getFirstRange']();_0x1a3e07['some'](_0x2585bd=>_0x2585bd['containsRange'](_0x3d2fbc,!0x0))&&_0x321004['discard']();if(_0x1a3e07['every'](_0x5b6c9a=>_0x3d2fbc['containsRange'](_0x5b6c9a,!0x0))){const _0x49e76f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59c524,'accept');return this['forceDefaultExecution'](()=>_0x49e76f(_0x1a3e07,null,_0x5c204b)),null;}}const _0x569901=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59c524,'join');let _0x2e9e11=null;for(const _0x3aca05 of this['getSuggestions']())if(_0x3aca05['author']['id']==_0x54a60d['id']&&_0x3aca05['isInContent']&&'deletion'==_0x3aca05['type']&&_0x3aca05['subType']==_0x59c524&&Kt(_0x3aca05,_0x5c204b)&&(_0x569901(_0x3aca05['getRanges'](),_0x1a3e07)||_0x569901(_0x1a3e07,_0x3aca05['getRanges']()))){if(_0x2e9e11){if(_0x3aca05['commentThread']&&_0x3aca05['commentThread']['length'])continue;for(const _0x3970fd of _0x3aca05['getRanges']())_0x2e9e11['isIntersectingWithRange'](_0x3970fd)||_0x2e9e11['addRange'](_0x3970fd);_0x3aca05['removeMarkers']();}else{_0x2e9e11=_0x3aca05;for(const _0x512c45 of _0x1a3e07)_0x3aca05['isIntersectingWithRange'](_0x512c45)||_0x3aca05['addRange'](_0x512c45);}}if(_0x2e9e11)return _0x2e9e11;_0xab5778['clear']();for(const {suggestion:_0x2cb513,meta:_0x74ceb7}of this['_findSuggestions'](_0x1a3e07,'deletion'))_0x74ceb7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x74ceb7['containsRangeInObject']&&!_0x74ceb7['isInsideObject'])&&Kt(_0x2cb513,_0x5c204b)&&_0xab5778['add'](_0x2cb513);for(const _0x23e7c4 of _0xab5778){const _0x1c6d2e=_0x23e7c4['getRanges']();if(!_0x5c204b||!_0x5c204b['skipNestingCheck']){if(_0x1a3e07['every'](_0x58a9a5=>_0x1c6d2e['some'](_0x528144=>_0x528144['containsRange'](_0x58a9a5,!0x0))))return _0x23e7c4;}(!_0x23e7c4['attributes']||!_0x23e7c4['attributes']['skipNestingCheck'])&&(_0x1c6d2e['every'](_0x13cff0=>_0x1a3e07['some'](_0x3e3e79=>_0x3e3e79['containsRange'](_0x13cff0,!0x0)))&&_0x23e7c4['discard']());}const _0xc19505=_0x10a187(),_0x2a5dc4=_0x54a60d['id'],_0x154052='deletion:'+_0x59c524,_0x1b7123=this['_setSuggestionData']({'id':_0xc19505,'type':_0x154052,'createdAt':new Date(),'authorId':_0x2a5dc4,'attributes':_0x5c204b});for(const _0x301c06 of _0x1a3e07)_0x301c06['detach'](),_0x301c06['isCollapsed']||'$graveyard'==_0x301c06['root']['rootName']||this['_addSuggestionMarker'](_0x154052,_0xc19505,_0x2a5dc4,_0x301c06,u['getMultiRangeId']());return _0x1b7123;}['markAttributeChange'](_0x38040c,_0xdfa588,_0x1ebc3b,_0x27dae5,_0x234db4){if(_0x38040c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x26071b=this['editor']['plugins']['get']('Users')['me']['id'],_0x38f6ca=Array['from'](this['_suggestions']['values']())['filter'](_0x599c86=>'attribute'==_0x599c86['type']&&_0x599c86['data']['key']==_0xdfa588&&_0x599c86['isIntersectingWithRange'](_0x38040c));if('default'===this['_trackFormatChanges']){const _0x1ff448=this['_findSuggestions'](_0x38040c,'insertion')['filter'](({meta:_0x2a1568})=>_0x2a1568['isOwn']&&!_0x2a1568['isInsideObject']&&!_0x2a1568['isNextTo'])['map'](({suggestion:_0x3bca2e})=>_0x3bca2e);_0x38f6ca['unshift'](..._0x1ff448);}const _0x2da277=new Map([[_0x38040c,_0x1ebc3b]]);for(const _0x233e01 of _0x38f6ca){const _0x3801b0='attribute'==_0x233e01['type']?_0x233e01['data']['oldValue']:void 0x0,_0x5aa047=_0x233e01['getFirstRange'](),_0x296bae=Array['from'](_0x2da277['keys']())['find'](_0x2d77e3=>_0x2d77e3['isIntersecting'](_0x5aa047));if(!_0x296bae)continue;const _0x317819=_0x296bae['getDifference'](_0x5aa047);this['_isBlockAttribute'](_0xdfa588)&&'insertion'==_0x233e01['type']&&0x0!=_0x317819['length']||(_0x2da277['delete'](_0x296bae),_0x317819['forEach'](_0x486379=>{_0x2da277['set'](_0x486379,_0x1ebc3b);}),'insertion'!=_0x233e01['type']&&_0x3801b0!=_0x27dae5&&_0x2da277['set'](_0x296bae['getIntersection'](_0x5aa047),_0x3801b0));}const _0x320331=[];for(const [_0x2364aa,_0x547984]of _0x2da277){const _0x20bffa=_0x10a187(),_0x1cf9cf={'key':_0xdfa588,'oldValue':_0x547984,'newValue':_0x27dae5};_0xdfa588['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':_0xdfa588});const _0xb6d22d=('attribute:'+(_0xdfa588+'|'+Ft({'newValue':_0x27dae5})))['substring'](0x0,0x3c),_0x133240=this['_setSuggestionData']({'id':_0x20bffa,'type':_0xb6d22d,'data':_0x1cf9cf,'createdAt':new Date(),'authorId':_0x26071b,'attributes':_0x234db4});_0x320331['push'](_0x133240),this['_addSuggestionMarker'](_0xb6d22d,_0x20bffa,_0x26071b,_0x2364aa);}return _0x320331;}['enableDefaultAttributesIntegration'](_0x1c6ee7){this['enableCommand'](_0x1c6ee7,(_0x4531b8,..._0x1110e5)=>{this['_recordAttributeChanges'](()=>{_0x4531b8(..._0x1110e5);});});}['registerBlockAttribute'](_0x55bf0d){this['_blockAttributeKeys']['add'](_0x55bf0d);}['registerInlineAttribute'](_0x2d4ac0){this['_inlineAttributeKeys']['add'](_0x2d4ac0);}['_getAttributeKey'](_0x465dc0){return'attribute'==_0x465dc0['type']?_0x465dc0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x32b68e,_0x571d82){const _0x4e929d=_0x32b68e['getFirstMarker']();this['_model']['change'](_0x2fbb9d=>{_0x2fbb9d['updateMarker'](_0x4e929d,{'range':_0x571d82});});}['_addThreadToSuggestion'](_0x3f2e4c){const _0x369b17=_0x3f2e4c['id'],_0xfeb66f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x369b17)||this['_commentsRepository']['addCommentThread']({'channelId':_0xfeb66f,'threadId':_0x369b17,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xc7afb8=this['_commentsRepository']['getCommentThread'](_0x369b17);_0xc7afb8['unbind']('isRemovable'),_0xc7afb8['isRemovable']=!0x1,_0x3f2e4c['commentThread']=_0xc7afb8;}['_checkSuggestionCorrectness'](_0x1abcaa,_0x48683c,_0x4e5147,_0x571d33){if(_0x1abcaa['type']!=_0x48683c||_0x1abcaa['subType']!=_0x4e5147||_0x1abcaa['creator']['id']!=_0x571d33)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x46ed90('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x435729,_0x1d71a8){const _0x59616b=_0x435729['getFirstRange']();if(_0x1d71a8['isEqual'](_0x59616b))_0x435729['removeMarkers']();else{if(_0x59616b['containsRange'](_0x1d71a8)){const _0x48e6e4=this['_model']['createPositionAt'](_0x1d71a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x435729,this['_model']['createRange'](_0x59616b['start'],_0x48e6e4));const _0x5f1e5c=_0x10a187(),_0x5aa785=_0x435729['creator']['id'],_0x1ec3af=_0x435729['type']+':'+_0x435729['subType'];this['_setSuggestionData']({'id':_0x5f1e5c,'type':_0x1ec3af,'createdAt':new Date(),'authorId':_0x5aa785,'data':_0x435729['data'],'attributes':_0x435729['attributes']});const _0x4cc491=this['_model']['createPositionAt'](_0x1d71a8['end']['parent'],'after'),_0x58257f=this['_model']['createRange'](_0x4cc491,_0x59616b['end']);this['_addSuggestionMarker'](_0x1ec3af,_0x5f1e5c,_0x5aa785,_0x58257f);}else{if(_0x59616b['containsPosition'](_0x1d71a8['start'])){const _0x29416c=this['_model']['createPositionAt'](_0x1d71a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x435729,this['_model']['createRange'](_0x59616b['start'],_0x29416c));}else{const _0x81d9c5=this['_model']['createPositionAt'](_0x1d71a8['end']['parent'],'after');this['_setSuggestionRange'](_0x435729,this['_model']['createRange'](_0x81d9c5,_0x59616b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x46dba3){for(const {suggestion:_0x3e395b,meta:_0x198333}of this['_findSuggestions'](_0x46dba3,'insertion')){if(!_0x198333['isOwn'])continue;const _0x4b3b3f=_0x3e395b['getRanges']();for(const _0x3ac9f8 of _0x4b3b3f)if(!_0x46dba3['getDifference'](_0x3ac9f8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1a42a4){const _0x3d4cc7=this['editor']['plugins']['get']('Users')['getUser'](_0x1a42a4);if(!_0x3d4cc7)throw new _0x46ed90('track-changes-user-not-found',this);return _0x3d4cc7;}['_getExternalAuthor'](_0x405620){const _0x2e01cc=this['editor']['plugins']['get']('Users'),_0x32ef08=_0x2c181c('external:'+_0x405620),_0x311971=_0x2e01cc['getUser'](_0x32ef08);return _0x311971||_0x2e01cc['addUser']({'id':_0x32ef08,'name':_0x405620});}['_createSuggestion'](_0x492bf1,_0x339583,_0x1afa9a,_0x52d462,_0x493a55){const _0x3e332f=this['_getAuthorFromId'](_0x52d462),_0x626dcf=this['_suggestionFactory']['buildSuggestion'](_0x492bf1,_0x339583,_0x1afa9a,_0x3e332f,_0x493a55,_0x1ec1cc=>{this['_updateSuggestionData'](_0x1afa9a,{'attributes':_0x1ec1cc});const _0x261055=this['getSuggestion'](_0x1afa9a);this['_joinWithAdjacentSuggestions'](new Set([_0x261055])),this['_refreshSuggestionsChain'](new Set([_0x261055]));});return this['listenTo'](_0x626dcf,'accept',()=>{this['_updateSuggestionData'](_0x1afa9a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x626dcf,'discard',()=>{this['_updateSuggestionData'](_0x1afa9a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1afa9a,_0x626dcf),this['_suggestionState']['set'](_0x626dcf,'notReady'),_0x626dcf;}['_splitMarkerName'](_0x471f5e){const _0x3e4503=_0x471f5e['split'](':');return{'group':_0x3e4503[0x0],'type':_0x3e4503[0x1],'subType':_0x3e4503['length']>=0x5?_0x3e4503[0x2]:null,'id':_0x3e4503['length']<0x5?_0x3e4503[0x2]:_0x3e4503[0x3],'authorId':_0x3e4503['length']<0x5?_0x3e4503[0x3]:_0x3e4503[0x4],'markerCount':0x6==_0x3e4503['length']?_0x3e4503[0x5]:null};}['_breakSuggestionMarker'](_0x391f8b,_0x58c2e3,_0x53a4e4){const _0x7e1679=_0x391f8b['getFirstRange'](),_0x590c45=_0x7e1679['start'],_0x47e0ef=_0x7e1679['end'];this['_setSuggestionRange'](_0x391f8b,this['_model']['createRange'](_0x590c45,_0x58c2e3));const _0x244fd7=_0x10a187(),_0x16da00=_0x391f8b['creator']['id'],_0x37e45e=_0x391f8b['type']+(_0x391f8b['subType']?':'+_0x391f8b['subType']:'');this['_setSuggestionData']({'id':_0x244fd7,'type':_0x37e45e,'createdAt':new Date(),'authorId':_0x16da00,'originalSuggestionId':_0x391f8b['id'],'attributes':_0x391f8b['attributes'],'data':_0x391f8b['data']});const _0x49f60c=this['_getAttributeKey'](_0x391f8b);('formatBlock'==_0x391f8b['type']||_0x49f60c&&this['_isBlockAttribute'](_0x49f60c))&&(_0x53a4e4=this['_model']['createPositionBefore'](_0x53a4e4['parent'])),this['_addSuggestionMarker'](_0x37e45e,_0x244fd7,_0x16da00,this['_model']['createRange'](_0x53a4e4,_0x47e0ef));}['_findSuggestions'](_0x3646bf,_0x45c407=null){const _0x212526=[],_0x2c5e61=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3646bf)||(_0x3646bf=[_0x3646bf]);for(const _0x3944de of this['getSuggestions']()){if(!_0x3944de['isInContent'])continue;if(_0x45c407&&_0x3944de['type']!=_0x45c407)continue;let _0x2f72e6=!0x1;for(const _0x4efab4 of _0x3944de['getRanges']()){for(const _0x5c244b of _0x3646bf){const _0x3284c9=_0x5c244b['start']['isEqual'](_0x4efab4['end'])||_0x5c244b['end']['isEqual'](_0x4efab4['start']);if(_0x3284c9||_0x5c244b['getIntersection'](_0x4efab4)){const _0x54a41b=_0x5c244b['containsRange'](_0x4efab4)&&Vt(this['_model']['schema'],_0x4efab4['start'],_0x5c244b),_0x419808=_0x4efab4['containsRange'](_0x5c244b)&&Vt(this['_model']['schema'],_0x5c244b['start'],_0x4efab4);_0x212526['push']({'suggestion':_0x3944de,'meta':{'isOwn':_0x2c5e61==_0x3944de['author'],'isNextTo':_0x3284c9,'isInsideObject':_0x54a41b,'containsRangeInObject':_0x419808}}),_0x2f72e6=!0x0;break;}}if(_0x2f72e6)break;}}return _0x212526;}['_addSuggestionMarker'](_0xbe3f7d,_0x2c3e68,_0x49d872,_0x555c2f,_0x479ab4){this['_model']['change'](_0x5d2e62=>{let _0x57ab36='suggestion:'+_0xbe3f7d+':'+_0x2c3e68+':'+_0x49d872;_0x479ab4&&(_0x57ab36=_0x57ab36+':'+_0x479ab4),_0x5d2e62['addMarker'](_0x57ab36,{'range':_0x555c2f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xae1716){const _0xf8f215=_0xae1716['previous'],_0x1746cb=_0xae1716['next'];_0xae1716['previous']=null,_0xae1716['next']=null,null!=_0xf8f215&&_0xf8f215['next']==_0xae1716&&(_0xf8f215['next']=_0x1746cb),null!=_0x1746cb&&_0x1746cb['previous']==_0xae1716&&(_0x1746cb['previous']=_0xf8f215),'ready'==this['_suggestionState']['get'](_0xae1716)&&(this['_suggestionState']['set'](_0xae1716,'removed'),this['fire']('suggestionUnloaded',_0xae1716,_0xf8f215,_0x1746cb));}['_setSuggestionData'](_0x763370){const _0xb8e3ba=_0x763370['id'],_0x84f5e0=this['addSuggestionData'](_0x763370);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x48511f=this['editor']['plugins']['get']('PendingActions'),_0x30ebfb=_0x84f5e0['hasComments'],_0x5d65af=_0x84f5e0['subType']?_0x84f5e0['type']+':'+_0x84f5e0['subType']:_0x84f5e0['type'],_0x4e2fb1=this['editor']['locale'],_0x316757=_0x48511f['add'](o(_0x4e2fb1,'PENDING_ACTION_SUGGESTION')),_0x200f03={'id':_0xb8e3ba,'type':_0x5d65af,'hasComments':_0x30ebfb,'data':_0x763370['data']||null,'originalSuggestionId':_0x763370['originalSuggestionId']||null,'attributes':_0x84f5e0['attributes']};this['_adapter']['addSuggestion'](_0x200f03)['then'](_0x3cc855=>{_0x84f5e0['_saved']=!0x0,_0x48511f['remove'](_0x316757),_0x3cc855&&_0x3cc855['createdAt']&&(this['_suggestions']['get'](_0xb8e3ba)['createdAt']=_0x3cc855['createdAt']);})['catch'](_0xe07570=>{throw _0xc0772e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x84f5e0['discard']();}),_0x84f5e0['stopListening'](),this['_suggestions']['delete'](_0x84f5e0['id']),this['_suggestionState']['delete'](_0x84f5e0),_0xe07570;});}return _0x84f5e0;}['_isBlockAttribute'](_0x44e2e2){return this['_blockAttributeKeys']['has'](_0x44e2e2);}['_updateSuggestionData'](_0xf72c63,_0x1e843a){const _0x50b5e0=this['editor']['plugins']['get']('PendingActions'),_0x19e49f=this['getSuggestion'](_0xf72c63);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x19e49f['_saved']){const _0x55c5a1=_0x50b5e0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xf72c63,_0x1e843a)['then'](()=>{_0x50b5e0['remove'](_0x55c5a1);});}else _0x19e49f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xf72c63,_0x1e843a);});}}['_getSuggestionData'](_0x46e4a3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x46ed90('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x46e4a3);}['_handleNewSuggestionMarker'](_0x401a0f){const {id:_0x555d51,type:_0x197c32,subType:_0x58cf9c,authorId:_0x45a753}=this['_splitMarkerName'](_0x401a0f),_0x15e199=this['_suggestions']['get'](_0x555d51)||this['_createSuggestion'](_0x197c32,_0x58cf9c,_0x555d51,_0x45a753,{});switch(this['_checkSuggestionCorrectness'](_0x15e199,_0x197c32,_0x58cf9c,_0x45a753),this['_suggestionState']['get'](_0x15e199)){case'notReady':this['_getSuggestionData'](_0x555d51)['then'](_0x5d8fc1=>{let _0x348a6e=Promise['resolve']();_0x5d8fc1['hasComments']&&(_0x348a6e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x555d51})),_0x348a6e['then'](()=>{this['addSuggestionData'](_0x5d8fc1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x15e199,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x555d51,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x15e199,'ready'),this['fire']('suggestionLoaded',_0x15e199);break;case'ready':this['fire']('suggestionChanged',_0x15e199);}return _0x15e199['addMarkerName'](_0x401a0f),_0x15e199;}['_refreshSuggestionsChain'](_0x22448c){const _0x37bc02=Array['from'](_0x22448c),_0x2f8645=_0x37bc02['filter'](_0x20094e=>'attribute'==_0x20094e['type']);this['_refreshAttributeSuggestionsChain'](_0x2f8645);const _0x476cb7=_0x37bc02['filter'](_0x191444=>!_0x191444['isMultiRange']&&'attribute'!=_0x191444['type']),_0x19e902=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x139dc5=>!_0x139dc5['isMultiRange']&&'attribute'!=_0x139dc5['type']),_0x99ad57=_0x19e902['filter'](_0x227e3c=>!_0x22448c['has'](_0x227e3c)),_0x23ad8c=new Map(_0x19e902['map'](_0x14c2e6=>[_0x14c2e6,this['_suggestionFactory']['getSuggestionCallback'](_0x14c2e6['type'],_0x14c2e6['subType'],'chain')])),_0x3fc1ed=new Map(_0x19e902['map'](_0x90f495=>[_0x90f495,_0x90f495['getFirstRange']()])),_0x566ad0=new Set(),_0x4f46a0=new Set();for(let _0xa717ad=0x0;_0xa717ad<_0x476cb7['length'];_0xa717ad++)_0x175585(_0x476cb7[_0xa717ad],_0x476cb7,_0xa717ad+0x1);for(let _0x16f807=0x0;_0x16f807<_0x476cb7['length'];_0x16f807++)_0x175585(_0x476cb7[_0x16f807],_0x99ad57,0x0);const _0x4a80c4=new Set();for(let _0x1b0098=0x0;_0x1b0098<_0x476cb7['length'];_0x1b0098++){const _0x383d9f=_0x476cb7[_0x1b0098];!_0x4f46a0['has'](_0x383d9f)&&_0x383d9f['previous']&&(_0x4a80c4['add'](_0x383d9f['previous']),_0x383d9f['previous']['next']===_0x383d9f&&(_0x383d9f['previous']['next']=null),_0x383d9f['previous']=null),!_0x566ad0['has'](_0x383d9f)&&_0x383d9f['next']&&(_0x4a80c4['add'](_0x383d9f['next']),_0x383d9f['next']['previous']===_0x383d9f&&(_0x383d9f['next']['previous']=null),_0x383d9f['next']=null);}function _0x175585(_0x413d30,_0x18092c,_0x5be078){for(let _0x114208=_0x5be078;_0x114208<_0x18092c['length'];_0x114208++){const _0x1459ef=_0x55cf6c(_0x413d30,_0x18092c[_0x114208]);_0x1459ef&&(_0x1459ef[0x0]['next']=_0x1459ef[0x1],_0x1459ef[0x1]['previous']=_0x1459ef[0x0],_0x566ad0['add'](_0x1459ef[0x0]),_0x4f46a0['add'](_0x1459ef[0x1]));}}function _0x55cf6c(_0x2fd7f0,_0x11d449){if(_0x2fd7f0['author']['id']!==_0x11d449['author']['id'])return null;const _0x2ad184=_0x23ad8c['get'](_0x2fd7f0)(_0x2fd7f0,_0x11d449,_0x3fc1ed['get'](_0x2fd7f0),_0x3fc1ed['get'](_0x11d449));if(!_0x2ad184)return null;return _0x23ad8c['get'](_0x11d449)(_0x2fd7f0,_0x11d449,_0x3fc1ed['get'](_0x2fd7f0),_0x3fc1ed['get'](_0x11d449))?_0x2ad184[0x1]['commentThread']&&_0x2ad184[0x1]['commentThread']['length']?null:_0x2ad184:null;}_0x4a80c4['size']&&this['_refreshSuggestionsChain'](_0x4a80c4);}['_refreshAttributeSuggestionsChain'](_0x40f1ff){if(0x0==_0x40f1ff['length'])return;const _0x582f94=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ce4df=>'attribute'==_0x2ce4df['type']&&_0x2ce4df['_isDataLoaded']),_0x20d0f1=[],_0x2cf81a=new Map();for(const _0x2fa225 of _0x582f94){const _0x36e016=_0x2c181c(_0x2fa225['attributes']);_0x2cf81a['has'](_0x36e016)||(_0x2cf81a['set'](_0x36e016,_0x20d0f1['length']),_0x20d0f1['push']([]));const _0x14f6e7=_0x2cf81a['get'](_0x36e016);_0x20d0f1[_0x14f6e7]['push'](_0x2fa225);}!(function(){_0x20d0f1['sort']((_0x4f0f63,_0x2013cb)=>{const _0x21069b=_0x4f0f63[0x0]['createdAt'],_0x18eb92=_0x2013cb[0x0]['createdAt'];return _0x21069b==_0x18eb92?_0x4f0f63[0x0]['attributes']['groupId']<_0x2013cb[0x0]['attributes']['groupId']?-0x1:0x1:_0x21069b<_0x18eb92?-0x1:0x1;});for(const _0x5cbdad of _0x20d0f1)_0x5cbdad['sort']((_0x3c8443,_0x259308)=>_0x3c8443['id']<_0x259308['id']?-0x1:0x1);}());for(let _0x27b503=0x0;_0x27b503<_0x20d0f1['length'];_0x27b503++){if(0x0==_0x20d0f1[_0x27b503]['length'])continue;const _0x1af942=[];for(let _0x4a323c=_0x27b503+0x1;_0x4a323c<_0x20d0f1['length'];_0x4a323c++)0x0!=_0x20d0f1[_0x4a323c]['length']&&_0x195c24(_0x20d0f1[_0x27b503],_0x20d0f1[_0x4a323c])&&_0x1af942['push'](_0x4a323c);for(const _0x42c858 of _0x1af942)_0x20d0f1[_0x27b503]=_0x20d0f1[_0x27b503]['concat'](_0x20d0f1[_0x42c858]),_0x20d0f1[_0x42c858]=[];}for(const _0x6bd7f7 of _0x20d0f1)for(let _0x231269=0x0;_0x231269<_0x6bd7f7['length'];_0x231269++){const _0x50a17c=_0x6bd7f7[_0x231269+0x1]||null;_0x6bd7f7[_0x231269]['next']!==_0x50a17c&&(_0x6bd7f7[_0x231269]['next']=_0x50a17c);}for(const _0x225a7f of _0x20d0f1)for(let _0x2f8991=0x0;_0x2f8991<_0x225a7f['length'];_0x2f8991++){const _0x274de1=_0x225a7f[_0x2f8991-0x1]||null;_0x225a7f[_0x2f8991]['previous']!==_0x274de1&&(_0x225a7f[_0x2f8991]['previous']=_0x274de1);}function _0x195c24(_0x1d01a2,_0x34b85c){if(_0x1d01a2[0x0]['attributes']['groupId']!==_0x34b85c[0x0]['attributes']['groupId']&&_0x1d01a2[0x0]['author']!==_0x34b85c[0x0]['author'])return!0x1;if(!function(_0x121b76,_0x4a5bd4){if(!_0x121b76['hasComments']&&!_0x4a5bd4['hasComments'])return!0x0;if(_0x121b76['hasComments']&&_0x4a5bd4['hasComments'])return!0x1;if(_0x121b76['hasComments']&&_0x4a5bd4['createdAt']<_0x121b76['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4a5bd4['hasComments']&&_0x121b76['createdAt']<_0x4a5bd4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d01a2[0x0],_0x34b85c[0x0]))return!0x1;const _0x4a3e1f=Et(_0x1d01a2[0x0]['attributes'],'groupId'),_0x2eaf63=Et(_0x34b85c[0x0]['attributes'],'groupId');if(!_0x32ab49(_0x4a3e1f,_0x2eaf63))return!0x1;return!!_0x1d01a2['every'](_0x3353e7=>_0x34b85c['some'](_0x577968=>_0x3353e7['getFirstRange']()['isEqual'](_0x577968['getFirstRange']())))&&_0x34b85c['every'](_0x5f7967=>_0x1d01a2['some'](_0x4944b4=>_0x5f7967['getFirstRange']()['isEqual'](_0x4944b4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x354238){const _0x893ebe=Array['from'](_0x354238),_0x3132f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x13d686=_0x3132f2['filter'](_0xd70cc7=>!_0x354238['has'](_0xd70cc7)),_0x5804f3=new Map(_0x893ebe['map'](_0x55bf3b=>[_0x55bf3b,this['_suggestionFactory']['getSuggestionCallback'](_0x55bf3b['type'],_0x55bf3b['subType'],'join')])),_0x201a9b=new Map(_0x3132f2['map'](_0x1fc8f8=>[_0x1fc8f8,_0x1fc8f8['getRanges']()]));for(let _0x4f6f19=0x0;_0x4f6f19<_0x893ebe['length'];_0x4f6f19++){if(_0x163725(this,_0x893ebe[_0x4f6f19],_0x893ebe,_0x4f6f19+0x1))return!0x0;}for(let _0x3e6801=0x0;_0x3e6801<_0x893ebe['length'];_0x3e6801++){if(_0x163725(this,_0x893ebe[_0x3e6801],_0x13d686,0x0))return!0x0;}return!0x1;function _0x163725(_0x1bdb0a,_0x4afb0f,_0x279f1e,_0x586122){for(let _0x3c8c4b=_0x586122;_0x3c8c4b<_0x279f1e['length'];_0x3c8c4b++){const _0x5984e1=_0x279f1e[_0x3c8c4b];if(_0x5984e1['type']!==_0x4afb0f['type']||_0x5984e1['author']['id']!==_0x4afb0f['author']['id']||_0x5984e1['subType']!==_0x4afb0f['subType'])continue;if(!zt(_0x4afb0f,_0x5984e1))continue;if('attribute'==_0x4afb0f['type']&&_0x4afb0f['data']['oldValue']!=_0x5984e1['data']['oldValue'])continue;if('attribute'==_0x4afb0f['type']&&_0x1bdb0a['_isBlockAttribute'](_0x4afb0f['data']['key']))continue;if('formatBlock'==_0x4afb0f['type']){const _0x5619cb=_0x1bdb0a['editor']['model'],_0x17d4d6=_0x4afb0f['getContainedElement']();if(_0x17d4d6&&(_0x5619cb['schema']['isObject'](_0x17d4d6)||_0x5619cb['schema']['isLimit'](_0x17d4d6)))continue;}const _0xb698e7=_0x5804f3['get'](_0x4afb0f),_0x3bcc19=_0x201a9b['get'](_0x4afb0f),_0x82a649=_0x201a9b['get'](_0x5984e1),_0x31086e=_0x4afb0f['commentThread']&&_0x4afb0f['commentThread']['length'],_0x59e56b=_0x5984e1['commentThread']&&_0x5984e1['commentThread']['length'];if(!_0x31086e&&_0xb698e7(_0x82a649,_0x3bcc19))return _0x1bdb0a['_joinSuggestions'](_0x5984e1,_0x4afb0f),_0x201a9b['delete'](_0x4afb0f),!0x0;if(!_0x59e56b&&_0xb698e7(_0x3bcc19,_0x82a649))return _0x1bdb0a['_joinSuggestions'](_0x4afb0f,_0x5984e1),_0x201a9b['delete'](_0x5984e1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2673c3,_0x2e1f78){if(_0x2673c3['isMultiRange']){for(const _0x63700b of _0x2e1f78['getRanges']())_0x2673c3['addRange'](_0x63700b);}else{const _0x1400ea=_0x2e1f78['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2673c3,this['_model']['createRange'](_0x2673c3['getFirstRange']()['start'],_0x1400ea));}_0x2e1f78['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3412e9,_0xe1f774,_0x1553b5){const _0x1a47fa=_0x3412e9['startsWith']('format')||_0x3412e9['startsWith']('attribute')?'FORMATTING':_0x3412e9['toUpperCase']();return o(this['editor']['locale'],_0xe1f774+'_'+_0x1a47fa+'_SUGGESTION_ANNOUNCEMENT',_0x1553b5);}['_initAriaMarkerChangeAnnouncements'](){const _0x23e67e=this['editor'];if(!_0x23e67e['ui'])return;const {ariaLiveAnnouncer:_0x394252}=_0x23e67e['ui'];_0x212fc9(this['_model'],({left:_0x3dbb38,entered:_0x222978})=>{for(const _0xd7d2fa of _0x3dbb38){const {group:_0xeddd05,type:_0x22b0be}=this['_splitMarkerName'](_0xd7d2fa['name']);if('suggestion'===_0xeddd05){_0x394252['announce'](this['_getMarkerAnnouncementText'](_0x22b0be,'LEAVE'));break;}}for(const _0x5a0a2b of _0x222978){const {group:_0x52563d,type:_0x51c816}=this['_splitMarkerName'](_0x5a0a2b['name']);if('suggestion'===_0x52563d){_0x394252['announce'](this['_getMarkerAnnouncementText'](_0x51c816,'ENTER',_0x4aff40(_0x2db86e)));break;}}});}['_processAttributeChanges'](_0x1477be){if(this['_recordAttributeSuggestions'])return!0x1;const _0x492730=this['editor'],_0x4630d5=_0x492730['model']['document']['differ']['getChanges']();if(0x0==_0x4630d5['length'])return!0x1;const _0x4037d1=[],_0x3928a1=_0x4630d5['filter'](_0x49b32c=>'attribute'==_0x49b32c['type']),_0x513593=_0x4630d5['filter'](_0x168595=>'insert'==_0x168595['type']&&'$text'!=_0x168595['name']),_0x1196d6=_0x4630d5['filter'](_0x5233c7=>'remove'==_0x5233c7['type']&&'$text'!=_0x5233c7['name']);for(const _0x219998 of _0x3928a1)_0x4037d1['push']({'key':_0x219998['attributeKey'],'newValue':_0x219998['attributeNewValue'],'oldValue':_0x219998['attributeOldValue'],'range':Jt(_0x219998['range'],_0x492730['model'])});for(const _0x1fee63 of _0x513593){const _0x4896cb=_0x1196d6['find'](_0x2e0d26=>_0x2e0d26['position']['isEqual'](_0x1fee63['position']));_0x4896cb&&_0x4037d1['push']({'key':m,'newValue':_0x1fee63['name'],'oldValue':_0x4896cb['name'],'range':_0x492730['model']['createRangeOn'](_0x1fee63['position']['nodeAfter'])});}return 0x0!=_0x4037d1['length']&&this['_reduceExistingSuggestions'](_0x1477be,_0x4037d1);}['_processAttributeSuggestions'](_0x5887f8){let _0x54a327=!0x1;const _0x4d8814=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x12c224=>_0x12c224['data']['newRange']&&_0x12c224['name']['startsWith']('suggestion:attribute:'));for(const _0x2b8736 of _0x4d8814){const {subType:_0x38b9c5,id:_0x198777}=this['_splitMarkerName'](_0x2b8736['name']),_0x92ab95=_0x38b9c5['split']('|')[0x0];for(const _0x3e718c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3e718c['id']!=_0x198777&&'attribute'==_0x3e718c['type']&&_0x3e718c['data']&&_0x3e718c['data']['key']==_0x92ab95&&_0x3e718c['getFirstRange']()['isIntersecting'](_0x2b8736['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3e718c,_0x2b8736['data']['newRange'],_0x5887f8),_0x54a327=!0x0);}return _0x54a327;}['_recordAttributeChanges'](_0x1f445c){this['_recordAttributeSuggestions']=!0x0,_0x1f445c();}['_isRegisteredAttribute'](_0xe18025){const _0x3827e5=this['_isBlockAttribute'](_0xe18025),_0x1d2128=this['_inlineAttributeKeys']['has'](_0xe18025);return _0x3827e5||_0x1d2128;}['_reduceExistingSuggestions'](_0x200b22,_0xc36e07){if(0x0==_0xc36e07['length'])return!0x1;let _0x3cfdcc=!0x1;for(const _0x1fc7e2 of _0xc36e07){const _0xb00d89=this['_findSuggestions'](_0x1fc7e2['range'],'attribute')['filter'](_0x3835f2=>!_0x3835f2['meta']['isNextTo'])['map'](_0x35d278=>_0x35d278['suggestion']),_0x387227=_0x2c181c({'newValue':_0x1fc7e2['newValue']});_0xb00d89['filter'](_0xfc8498=>{const [_0x37b50b,_0xc1386b]=_0xfc8498['subType']['split']('|');return _0x37b50b==_0x1fc7e2['key']&&_0xc1386b!=_0x387227;})['forEach'](_0x5418a4=>{this['_reduceSuggestionAttributeRange'](_0x5418a4,_0x1fc7e2['range'],_0x200b22),_0x3cfdcc=!0x0;});}return _0x3cfdcc;}['_reduceSuggestionAttributeRange'](_0x3fd593,_0x4b9742,_0x3f49c7){const _0x33c22e=_0x3fd593['getFirstRange']()['getDifference'](_0x4b9742);0x0!==_0x33c22e['length']?0x1!==_0x33c22e['length']?this['_breakSuggestionMarker'](_0x3fd593,_0x4b9742['start'],_0x4b9742['end']):this['_setSuggestionRange'](_0x3fd593,_0x33c22e[0x0]):_0x3f49c7['removeMarker'](_0x3fd593['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5eb0b0){this['_editor']=_0x5eb0b0,this['_model']=_0x5eb0b0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3350bb,_0x429e5e,_0x245f50,_0x654c11,_0x4203c4,_0x3e3147){return new u(this['_model'],{'type':_0x3350bb,'subType':_0x429e5e,'id':_0x245f50,'author':_0x654c11,'creator':_0x654c11,'attributes':_0x4203c4,'onAttributesChange':_0x3e3147,'onAccept':(..._0x4772cb)=>this['getSuggestionCallback'](_0x3350bb,_0x429e5e,'accept')(..._0x4772cb),'onDiscard':(..._0x303f90)=>this['getSuggestionCallback'](_0x3350bb,_0x429e5e,'discard')(..._0x303f90)});}['registerCustomCallback'](_0x34a16c,_0x43ea25,_0x411f55,_0x5142fc){const _0x4a4cdc=_0x34a16c+':'+_0x43ea25+':'+_0x411f55;this['_customCallbacks']['set'](_0x4a4cdc,_0x5142fc);}['getSuggestionCallback'](_0x161596,_0x562bc6,_0x39f0f5){const _0x38a6af=_0x161596+':'+_0x562bc6+':'+_0x39f0f5;return this['_customCallbacks']['get'](_0x38a6af)||this['_defaultCallbacks']['get'](_0x161596+':'+_0x39f0f5);}['_registerDefaultCallbacks'](){const _0x36ae25=()=>!0x1,_0x22a994=_0x3d24bd=>{_0x3d24bd['sort']((_0x531a12,_0x2cbc6c)=>_0x531a12['start']['isBefore'](_0x2cbc6c['start'])?0x1:-0x1),this['_model']['change'](_0x5c938f=>{for(const _0x4fb756 of _0x3d24bd){let _0x586f32;_0x586f32=_0x4fb756['end']['isAtEnd']&&_0x4fb756['end']['parent']==_0x4fb756['start']['nodeAfter']?_0x5c938f['createSelection'](_0x4fb756['start']['nodeAfter'],'on'):_0x5c938f['createSelection'](_0x4fb756),this['_model']['deleteContent'](_0x586f32,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x55fb18=(_0x501391,_0xa8bcc4)=>{_0xa8bcc4&&this['_model']['change'](_0x1863dd=>{const {commandName:_0x418571,commandParams:_0xcc2e43=[]}=_0xa8bcc4,_0x5d78f4=_0x501391['map'](_0x38dea7=>(Pt(_0x38dea7)&&(_0x38dea7=this['_model']['createRange'](_0x38dea7['end'])),_0x38dea7))['filter'](_0xa9a7c3=>'$graveyard'!==_0xa9a7c3['root']['rootName']);if(_0x5d78f4['length']<0x1)return;const _0x20687c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x412ee0=>_0x4da4a9['fromRange'](_0x412ee0));_0x1863dd['setSelection'](_0x5d78f4);for(const _0x4e40f9 of this['_editor']['commands']['commands']())_0x4e40f9['refresh']();_0xcc2e43['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x418571,..._0xcc2e43);const _0x561742=_0x20687c['filter'](_0x347f02=>'$graveyard'!=_0x347f02['root']['rootName']);_0x561742['length']>0x0&&_0x1863dd['setSelection'](_0x561742);for(const _0x398fc8 of _0x20687c)_0x398fc8['detach']();});},_0x2f2547=(_0x432454,_0x56c328)=>0x1==_0x432454['length']&&0x1==_0x56c328['length']&&_0x432454[0x0]['end']['isEqual'](_0x56c328[0x0]['start']),_0x2ac465=(_0x3698eb,_0x5d8d10,_0x3d0a5b,_0x362f91)=>qt(_0x3698eb,_0x5d8d10,_0x3d0a5b,_0x362f91)?[_0x3698eb,_0x5d8d10]:qt(_0x5d8d10,_0x3698eb,_0x362f91,_0x3d0a5b)?[_0x5d8d10,_0x3698eb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x36ae25),this['_defaultCallbacks']['set']('insertion:discard',_0x22a994),this['_defaultCallbacks']['set']('insertion:join',_0x2f2547),this['_defaultCallbacks']['set']('insertion:chain',_0x2ac465),this['_defaultCallbacks']['set']('deletion:accept',_0x22a994),this['_defaultCallbacks']['set']('deletion:discard',_0x36ae25),this['_defaultCallbacks']['set']('deletion:join',_0x2f2547),this['_defaultCallbacks']['set']('deletion:chain',_0x2ac465),this['_defaultCallbacks']['set']('formatInline:accept',_0x55fb18),this['_defaultCallbacks']['set']('formatInline:discard',_0x36ae25),this['_defaultCallbacks']['set']('formatInline:join',_0x2f2547),this['_defaultCallbacks']['set']('formatInline:chain',_0x36ae25),this['_defaultCallbacks']['set']('formatBlock:accept',_0x55fb18),this['_defaultCallbacks']['set']('formatBlock:discard',_0x36ae25),this['_defaultCallbacks']['set']('formatBlock:join',_0x2f2547),this['_defaultCallbacks']['set']('formatBlock:chain',_0x36ae25),this['_defaultCallbacks']['set']('attribute:accept',_0x36ae25),this['_defaultCallbacks']['set']('attribute:discard',(_0x21705f,_0x45f623)=>{if(!_0x45f623)return;const _0x405df7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4e7aa0=>{if(_0x45f623['key']==m)for(const _0x16ec51 of _0x21705f){const _0x866900=_0x16ec51['start']['nodeAfter'],_0x3c9881=_0x45f623['oldValue'];_0x4e7aa0['rename'](_0x866900,_0x3c9881);}else{if(_0x405df7['_isBlockAttribute'](_0x45f623['key'])){for(const _0x2d87b8 of _0x21705f)void 0x0!==_0x45f623['oldValue']?_0x4e7aa0['setAttribute'](_0x45f623['key'],_0x45f623['oldValue'],_0x2d87b8['start']['nodeAfter']):_0x4e7aa0['removeAttribute'](_0x45f623['key'],_0x2d87b8['start']['nodeAfter']);}else{for(const _0x4f9f71 of _0x21705f)_0x45f623['oldValue']?_0x4e7aa0['setAttribute'](_0x45f623['key'],_0x45f623['oldValue'],_0x4f9f71):_0x4e7aa0['removeAttribute'](_0x45f623['key'],_0x4f9f71);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2f2547);}}function Vt(_0x474eaf,_0x3a5996,_0x8314b){for(const _0x44b94a of _0x3a5996['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44b94a['root']==_0x44b94a)return!0x1;if(!_0x8314b['containsItem'](_0x44b94a))return!0x1;if(_0x474eaf['isObject'](_0x44b94a)||_0x474eaf['isLimit'](_0x44b94a))return!0x0;}return!0x1;}function Pt(_0x1aaa6e){return _0x1aaa6e['end']['parent']==_0x1aaa6e['start']['nodeAfter']&&_0x1aaa6e['end']['isAtStart'];}function Gt(_0x2a197b,_0x25af53,_0x460781,_0x32210e){const _0x5cc533=_0x6f471c=>!_0x6f471c['item']['is']('$textProxy')&&!_0x32210e['isObject'](_0x6f471c['item']),_0x18d3c2=_0x2a197b['start']['getLastMatchingPosition'](_0x5cc533),_0x54dd90=_0x2a197b['end']['getLastMatchingPosition'](_0x5cc533,{'direction':'backward'});return(!_0x2a197b['start']['isEqual'](_0x18d3c2)||!_0x2a197b['end']['isEqual'](_0x54dd90))&&(_0x18d3c2['isBefore'](_0x54dd90)?_0x460781['updateMarker'](_0x25af53,{'range':_0x460781['createRange'](_0x18d3c2,_0x54dd90)}):_0x460781['removeMarker'](_0x25af53),!0x0);}function Ft(_0x57d09d){return _0x2c181c(_0x57d09d);}function Lt(_0x585ad7){const _0x176ea7=_0x585ad7['start']['nodeAfter'];return _0x176ea7&&_0x176ea7['is']('element');}function Jt(_0x188a0f,_0x248a94){return null==_0x188a0f['end']['nodeBefore']&&_0x188a0f['end']['parent']==_0x188a0f['start']['nodeAfter']?Ht(_0x188a0f['start']['nodeAfter'],_0x248a94):_0x188a0f;}function Ht(_0x1861f3,_0x4471ec){const _0x43aa3c=_0x4471ec['schema']['isObject'](_0x1861f3)||_0x4471ec['schema']['isSelectable'](_0x1861f3);return _0x4471ec['createRange'](_0x4471ec['createPositionAt'](_0x1861f3,'before'),_0x43aa3c?_0x4471ec['createPositionAfter'](_0x1861f3):_0x4471ec['createPositionAt'](_0x1861f3,'end'));}function qt(_0x422490,_0x5a5935,_0x464bbb,_0x4f377f){return!!zt(_0x422490,_0x5a5935)&&_0x464bbb['end']['isEqual'](_0x4f377f['start']);}function zt(_0x58ec86,_0x9c499a){if(!_0x58ec86['_isDataLoaded']||!_0x9c499a['_isDataLoaded'])return!0x1;const _0x48e550=new Set(Object['keys'](_0x58ec86['attributes'])),_0x278627=new Set(Object['keys'](_0x9c499a['attributes']));if(_0x48e550['delete']('groupId'),_0x278627['delete']('groupId'),0x0==_0x48e550['size']&&0x0==_0x278627['size'])return!0x0;if(_0x48e550['size']!=_0x278627['size'])return!0x1;const _0x269f57={..._0x58ec86['attributes']},_0x505b11={..._0x9c499a['attributes']};return delete _0x269f57['groupId'],delete _0x505b11['groupId'],JSON['stringify'](_0x269f57)==JSON['stringify'](_0x505b11);}function Kt(_0x39c120,_0x22ecb4){const _0x49279d=Wt(_0x39c120['attributes']),_0x3ac2dc=Wt(_0x22ecb4);if(!_0x39c120['_isDataLoaded'])return!0x1;for(const _0x6c66a2 of Object['keys'](_0x3ac2dc))if(!_0x32ab49(_0x49279d[_0x6c66a2],_0x3ac2dc[_0x6c66a2]))return!0x1;return!0x0;}function Wt(_0xc7d7c0){const _0x38feb2=Object['assign']({},_0xc7d7c0);return delete _0x38feb2['skipNestingCheck'],delete _0x38feb2['tablePasteChainId'],_0x38feb2;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x10e46c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33b8dd,_0x432be5,_0x7ff628,_0x411a21){super(),this['model']=_0x432be5,this['view']=_0x7ff628,this['commentThreadController']=_0x411a21,this['_editor']=_0x33b8dd,this['_acceptCommand']=_0x33b8dd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33b8dd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x402880,_0x4bd953)=>_0x402880||_0x4bd953),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4b095b=>_0x4b095b&&this['_editor']['model']['canEditAt'](_0x432be5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x32e851=>_0x32e851&&this['_editor']['model']['canEditAt'](_0x432be5['getRanges']())),this['_pendingAction']=null,_0x7ff628['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x7ff628,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x7ff628,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x7ff628,'change:isDirty',()=>{_0x7ff628['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 _0x396720=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x396720);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x2b7e33{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50e58c,_0x533790,_0x51b238,_0x582388){super(_0x50e58c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1330d1(_0x50e58c,o(_0x50e58c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x533790['authoredAt']),this['bind']('authoredAt')['to'](_0x533790),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',_0x533790,'authoredAt',this,'descriptionParts',(_0x8773f0,_0x17b21b,_0x1523f7)=>{const _0x4d7666=_0x1523f7['map'](_0x38625b=>ns(_0x38625b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x8773f0-0x1,_0x533790['author']['name'],_0x17b21b?_0x582388['formatDateTime'](_0x17b21b):'',new DOMParser()['parseFromString'](_0x4d7666,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5ef1fd(),this['focusTracker']=new _0xf45791(),this['keystrokes']=new _0xb2b1f1(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42a0c3=>_0x42a0c3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x533790,this['_localUser']=_0x51b238,this['_config']=_0x582388,_0x582388['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xd5d996(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x51c7c0}=this['_config'];this['commentsListView']=new _0x51c7c0(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',_0x1f93a0=>_0x1f93a0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf32397,_0x311e34)=>_0xf32397||!!_0x311e34);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x42b548}=this['_config'],_0x55b876=new _0x42b548(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x404472=_0x55b876['commentInputView'];return _0x55b876['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x404472,'value',(_0xee1efb,_0x4ea936,_0x5ade58)=>!!_0x5ade58||_0xee1efb&&!_0x4ea936),_0x404472['on']('submit',(_0x48fe4f,_0x5f551e)=>{this['fire']('addComment',_0x5f551e),_0x404472['editor']['setData']('');}),_0x404472['on']('cancel',()=>this['focus']()),_0x404472['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55b876;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x5c957b,_0x195c4d,_0x3707cc,_0x46373b){super(_0x5c957b,_0x195c4d,_0x3707cc,_0x46373b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2ae1eb=>_0x2ae1eb&&_0x2ae1eb[0x0]?_0x2ae1eb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1e68f0,_0x55c8fa)=>{let _0x3370cc='';for(const _0x3799e9 of _0x1e68f0)_0x3370cc+='<p>'+ns(_0x3799e9['content'],_0x3799e9['color'])+'</p>';return _0x55c8fa?_0x3370cc:_0x3e9d2(_0x3370cc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x46373b['SuggestionView'](_0x5c957b,_0x195c4d,{'formatDateTime':_0x46373b['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 _0x40c759=this['bindTemplate'],_0x3b91fa=[this['suggestionView']];return this['commentsListView']&&_0x3b91fa['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3b91fa['push'](this['commentThreadInputView']),_0x3b91fa['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x40c759['if']('isActive','ck-suggestion-wrapper--active'),_0x40c759['to']('type',_0x4219a4=>'ck-suggestion-'+_0x4219a4),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':_0x40c759['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3b91fa};}['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 _0x2b7e33{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1ef665,_0x18d051,_0x10db6a){super(_0x1ef665),this['_model']=_0x18d051,this['_config']=_0x10db6a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x18d051),this['acceptButton']=this['_createButton'](o(_0x1ef665,'Accept\x20suggestion'),_0x3e595e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1ef665,'Discard\x20suggestion'),_0x3e595e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x592ecf(_0x1ef665,_0x18d051['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5ef1fd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xf45791(),this['keystrokes']=new _0xb2b1f1(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5ae9c0=>_0x5ae9c0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3455f7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3455f7['innerHTML']=this['description'],this['on']('change:description',(_0x1298d3,_0x180b7f,_0x513a56)=>{_0x3455f7['innerHTML']=_0x513a56;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x41544e=this['bindTemplate'],_0x50051d=[{'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':_0x41544e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x41544e['to']('authoredAt',_0x3eb21c=>this['_config']['formatDateTime'](_0x3eb21c))}]}]},{'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']&&_0x50051d['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':_0x50051d}]};}['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'](_0x426f50,_0x1a2148,_0x50970c,_0xe3631d,_0x53509d){const _0x28a22c=new _0x537bf2(this['locale']);return _0x28a22c['set']({'label':_0x426f50,'icon':_0x1a2148,'tooltip':!0x0,'tooltipPosition':_0x53509d}),_0x28a22c['extendTemplate']({'attributes':{'class':_0x50970c}}),_0x28a22c['on']('execute',()=>{this['fire'](_0xe3631d,this['_model']['id']);}),_0x28a22c;}['_setupKeyboardNavigation'](){const _0x4c79ec=this['element'];this['keystrokes']['listenTo'](_0x4c79ec);for(const _0x19dfcb of this['focusables'])this['focusTracker']['add'](_0x19dfcb['element']),this['keystrokes']['listenTo'](_0x19dfcb['element']);this['keystrokes']['set']('enter',(_0x39a86e,_0x579564)=>{_0x4c79ec===_0x39a86e['target']&&(this['focusCycler']['focusFirst'](),_0x579564());}),this['keystrokes']['set']('esc',(_0xec2ac7,_0x560e64)=>{_0x4c79ec!==_0xec2ac7['target']&&(this['focus'](),_0x560e64());});}}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 _0x57a03e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25a128,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14fc78){super(_0x14fc78),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27a571=this['editor']['config'];_0x27a571['define']('trackChanges.SuggestionThreadView',pe),_0x27a571['define']('trackChanges.SuggestionView',fe),_0x27a571['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27a571['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x37d977,_0x33d956){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x41aad1,_0x6dd0f5]of this['_handleControllerBuffer']){const _0x3e94ab=this['_suggestionToController']['has'](_0x41aad1);_0x3e94ab||_0x6dd0f5?_0x3e94ab&&_0x6dd0f5&&this['_destroyController'](_0x41aad1):this['_initializeController'](_0x41aad1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x37d977,_0x33d956);}['init'](){const _0x31b283=this['editor'],_0x45b063=_0x31b283['plugins']['get']('TrackChangesEditing'),_0x10f285=_0x31b283['plugins']['get']('Annotations'),_0x45ba59=_0x31b283['plugins']['get']('EditorAnnotations'),_0x5c9f3b=_0x31b283['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x45ba59['addSourceCollector'](()=>{const _0x18e142=[];for(const [_0x2ec923,_0x256e66]of Array['from'](this['_suggestionToController'])){const _0x11862b=_0x2ec923['getAllAdjacentSuggestions'](),_0x13a05e=[];for(const _0x422226 of _0x11862b){if(!_0x422226['isInContent'])continue;if(_0x422226['isMultiRange']){_0x13a05e['push'](..._0x422226['getRanges']());continue;}const _0x25a052=_0x422226['getFirstRange']();if(_0x13a05e['length']>0x0){const _0x16c303=_0x13a05e[0x0]['getJoined'](_0x25a052);if(_0x16c303){_0x13a05e[0x0]=_0x16c303;continue;}}_0x13a05e['push'](_0x25a052);}_0x18e142['push']([_0x256e66['view'],_0x13a05e]);}return _0x18e142;}),this['listenTo'](_0x45b063,'suggestionLoaded',(_0x4df6fd,_0x5f3668)=>{this['listenTo'](_0x5f3668,'change:previous',(_0x639335,_0x4d1182,_0x3d7a51,_0x49e725)=>{_0x5f3668['isInContent']&&(null==_0x3d7a51?(this['_updateController'](_0x49e725['head']),this['_handleSuggestionControllerDelayed'](_0x5f3668,!0x1)):(this['_updateController'](_0x3d7a51['head']),null==_0x49e725&&this['_handleSuggestionControllerDelayed'](_0x5f3668,!0x0)));}),null!==_0x5f3668['previous']?this['_updateController'](_0x5f3668['head']):this['_handleSuggestionControllerDelayed'](_0x5f3668,!0x1);}),this['listenTo'](_0x45b063,'suggestionUnloaded',(_0x432afa,_0x34d5bd,_0x13e447)=>{this['stopListening'](_0x34d5bd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x34d5bd),this['_suggestionToController']['has'](_0x34d5bd)&&this['_destroyController'](_0x34d5bd),_0x13e447&&this['_updateController'](_0x13e447['head']);}),this['listenTo'](_0x45b063,'suggestionChanged',(_0x8ca13a,_0x49576a)=>{this['_updateController'](_0x49576a);}),this['listenTo'](_0x10f285,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5c9f3b,'addComment',(_0x480133,{threadId:_0x396de4,isFromAdapter:_0x60baa0})=>{if(_0x60baa0||!_0x45b063['hasSuggestion'](_0x396de4))return;const _0x2ae4c8=_0x45b063['getSuggestion'](_0x396de4);this['_suggestionToController']['get'](_0x2ae4c8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42994e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2eae55;for(const _0xc55157 in _0x42994e){const _0x9fd0e9=_0xc55157,_0x2d8495=_0x42994e[_0x9fd0e9];if('trackChangesLicenseKeyValid'==_0x2d8495||'trackChangesLicenseKeyInvalid'==_0x2d8495||'trackChangesLicenseKeyExpired'==_0x2d8495||'trackChangesLicenseKeyDomainLimit'==_0x2d8495||'trackChangesLicenseKeyNotAllowed'==_0x2d8495||'trackChangesLicenseKeyEvaluationLimit'==_0x2d8495||'trackChangesLicenseKeyTrialLimit'==_0x2d8495||'trackChangesLicenseKeyUsageLimit'==_0x2d8495){delete _0x42994e[_0x9fd0e9],_0x2eae55=_0x2d8495,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2eae55&&_0x42994e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2eae55&&_0x42994e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2eae55&&_0x42994e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2eae55&&_0x42994e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2eae55&&_0x42994e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2eae55&&_0x42994e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2eae55&&_0x42994e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2bd532=this['editor']['plugins']['get']('Annotations'),_0xbbcfc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2346b2=Array['from'](_0x2bd532['activeAnnotations'],_0x1bfe99=>_0x1bfe99['innerView'])['filter'](_0x1ea869=>this['_viewToController']['has'](_0x1ea869)),_0x351ff5=[];for(const _0x4e227b of _0x2346b2){const _0x45c734=this['_viewToController']['get'](_0x4e227b)['model']['getAllAdjacentSuggestions']();_0x351ff5['push'](..._0x45c734['reduce']((_0x24d734,_0x39c69f)=>[..._0x24d734,..._0x39c69f['getMarkerNames']()],[]));}_0xbbcfc3['activeMarkers']=_0x351ff5;}['_addUIComponentsToFactory'](){const _0x1cbd69=this['editor'],_0x1b345c=_0x1cbd69['locale'],_0x805c7a=o(_0x1b345c,'Track\x20changes'),_0x18ec0b=new _0x12ee00([{'type':'switchbutton','model':new _0x59794b({'withText':!0x0,'isToggleable':!0x0,'label':_0x805c7a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1cbd69['plugins']['has']('TrackChangesPreview')&&_0x18ec0b['addMany']([{'type':'separator'},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3b2b3d of _0x18ec0b)if(ke(_0x3b2b3d)){const _0x1a7e63=_0x1cbd69['commands']['get'](_0x3b2b3d['model']['commandName']);_0x3b2b3d['model']['bind']('isOn','isEnabled')['to'](_0x1a7e63,'value','isEnabled');}_0x1cbd69['ui']['componentFactory']['add']('trackChanges',_0x58bc83=>this['_createToolbarButton'](_0x58bc83,_0x18ec0b,_0x805c7a)),_0x1cbd69['ui']['componentFactory']['add']('menuBar:trackChanges',_0x321156=>this['_createMenuBarMenu'](_0x321156,_0x18ec0b,_0x805c7a));}['_createToolbarButton'](_0x283857,_0x1ce5d6,_0x61d23){const _0x135653=_0x317481(_0x283857,_0x36f765),_0x5c40d1=this['editor']['commands']['get']('trackChanges');_0x135653['buttonView']['set']({'tooltip':_0x61d23,'label':_0x61d23,'icon':we}),_0x135653['buttonView']['bind']('isOn')['to'](_0x5c40d1,'value'),_0x135653['buttonView']['on']('execute',()=>{_0x5c40d1['execute'](),this['editor']['editing']['view']['focus']();}),_0x347310(_0x135653,_0x1ce5d6,{'role':'menu'});const _0x4919ee=[];for(const _0x22df21 of _0x1ce5d6)ke(_0x22df21)&&_0x4919ee['push'](this['editor']['commands']['get'](_0x22df21['model']['commandName']));const _0x1df3a7=_0x135653['buttonView'];return _0x1df3a7['actionView']['unbind']('isEnabled'),_0x1df3a7['arrowView']['unbind']('isEnabled'),_0x1df3a7['actionView']['bind']('isEnabled')['to'](_0x5c40d1,'isEnabled'),_0x1df3a7['arrowView']['bind']('isEnabled')['toMany'](_0x4919ee,'isEnabled',(..._0xaf162e)=>_0xaf162e['some'](_0x55fee0=>_0x55fee0)),_0x135653['on']('execute',_0x3e567e=>{this['editor']['execute'](_0x3e567e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x135653;}['_createMenuBarMenu'](_0x26010c,_0x4f5dcd,_0x520c98){const _0x12223a=new _0x159d99(_0x26010c),_0x1d37d4=this['editor']['commands']['get']('trackChanges');_0x12223a['buttonView']['set']({'label':_0x520c98,'icon':we});const _0x32af74=new _0x55d4d6(_0x26010c);for(const _0xa7f55f of _0x4f5dcd){if('separator'==_0xa7f55f['type']){_0x32af74['items']['add'](new _0x36f0d0(_0x26010c));continue;}const _0x2dff1c=new _0x47716e(_0x26010c,_0x12223a),_0x26148c=new _0x48228b(_0x26010c),_0x16915e=_0xa7f55f['model'];_0x26148c['bind'](...Object['keys'](_0x16915e))['to'](_0x16915e),_0x26148c['delegate']('execute')['to'](_0x12223a),_0x26148c['on']('execute',()=>{this['editor']['execute'](_0x16915e['commandName']),this['editor']['editing']['view']['focus']();}),_0x2dff1c['children']['add'](_0x26148c),_0x32af74['items']['add'](_0x2dff1c);}return _0x12223a['bind']('isEnabled')['to'](_0x1d37d4,'isEnabled'),_0x12223a['panelView']['children']['add'](_0x32af74),_0x12223a;}['_initializeController'](_0x217b98){const _0x2d3df4=this['editor'],_0x289267=_0x2d3df4['config'],_0x20522b=_0x2d3df4['plugins']['get']('Annotations'),_0x438e46=_0x2d3df4['plugins']['get']('CommentsRepository'),_0x3c4660=_0x2d3df4['plugins']['get']('EditorAnnotations'),_0x18dbff=_0x2d3df4['plugins']['get'](_0x25a128)['me'],_0x5e0104=_0x289267['get']('trackChanges')['SuggestionThreadView'],_0x19539f=_0x289267['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x23b4e7,CommentThreadInputView:_0x1cbbf5}=_0x2d3df4['plugins']['get']('CommentsUI');let _0x16e189,_0x9603e3,_0x2c25d7;this['_annotationViews']['has'](_0x217b98['id'])?(_0x9603e3=this['_annotationViews']['get'](_0x217b98['id']),_0x16e189=_0x9603e3['mainView']):(_0x16e189=new _0x5e0104(_0x2d3df4['locale'],_0x217b98,_0x18dbff,{'disableComments':this['_disableComments'],'editorConfig':{..._0x289267['get']('comments.editorConfig'),'licenseKey':_0x289267['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x289267['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x289267['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x289267['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x58089b(_0x289267['get']('locale')),'CommentView':_0x289267['get']('comments')['CommentView'],'CommentsListView':_0x23b4e7,'CommentThreadInputView':_0x1cbbf5,'SuggestionView':_0x19539f}),_0x16e189['suggestionView']['acceptButton']['on']('execute',()=>{_0x2d3df4['editing']['view']['focus']();}),_0x16e189['suggestionView']['discardButton']['on']('execute',()=>{_0x2d3df4['editing']['view']['focus']();}),_0x9603e3=_0x20522b['createAnnotationView'](this['editor']['locale'],_0x16e189),_0x9603e3['bind']('isDirty')['to'](_0x16e189,'isDirty'),_0x9603e3['bind']('length')['to'](_0x16e189),_0x9603e3['bind']('type')['to'](_0x16e189,'type',_0xd97483=>'suggestion-'+_0xd97483),_0x16e189['on']('escape',()=>{_0x2c25d7['fire']('escape');}),this['_annotationViews']['set'](_0x217b98['id'],_0x9603e3));const _0x5f4b2c=_0x438e46['createCommentThreadController'](_0x217b98['commentThread'],_0x16e189),_0xdc0453=new Ce(_0x2d3df4,_0x217b98,_0x16e189,_0x5f4b2c),_0x4546a2=_0x217b98['getAllAdjacentSuggestions']()['filter'](_0x56256f=>_0x56256f['isInContent']);_0x16e189['descriptionParts']=_0x2d3df4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4546a2),this['_suggestionToController']['set'](_0x217b98,_0xdc0453),this['_viewToController']['set'](_0x16e189,_0xdc0453),_0x2c25d7=_0x20522b['createAnnotation']({'view':_0x9603e3,'target':()=>{const _0x518b87=[],_0x119764=_0x217b98['getAllAdjacentSuggestions']()['filter'](_0x3d5895=>_0x3d5895['isInContent']);for(const _0x18115b of _0x119764)_0x518b87['push'](..._0x18115b['getMarkers']());return _0x5b4d51(_0x2d3df4['editing'],_0x518b87);},'type':()=>'suggestion-'+_0xdc0453['view']['type']}),_0x438e46['_bindAnnotationToEditors'](_0x16e189,_0x2c25d7),_0x20522b['add'](_0x2c25d7),_0x3c4660['registerAnnotation'](_0x2c25d7);}['_destroyController'](_0x3cd1ff){const _0x5c5529=this['editor']['plugins']['get']('CommentsRepository'),_0x13984d=this['editor']['plugins']['get']('Annotations'),_0x3a1a3f=this['_suggestionToController']['get'](_0x3cd1ff),_0x5dcfdf=_0x3a1a3f['view'],_0x4f5e5a=_0x13984d['getByInnerView'](_0x5dcfdf);_0x5c5529['_unbindEditors'](_0x5dcfdf),_0x4f5e5a&&_0x13984d['remove'](_0x4f5e5a),this['_suggestionToController']['delete'](_0x3cd1ff),this['_viewToController']['delete'](_0x5dcfdf),_0x3a1a3f['destroy']();}['_updateController'](_0x3b1bd4){if(!_0x3b1bd4['isInContent']||!this['_suggestionToController']['has'](_0x3b1bd4))return;const _0x5eeb74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x791109=this['_suggestionToController']['get'](_0x3b1bd4),_0x391d92=_0x3b1bd4['getAllAdjacentSuggestions']();_0x791109['view']['descriptionParts']=_0x5eeb74['descriptionFactory']['getDescriptions'](_0x391d92);}['destroy'](){for(const _0x4c3f53 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4c3f53);for(const _0x3931cb of this['_annotationViews']['values']())_0x3931cb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x118210){return'model'in _0x118210;}class k extends _0x57a03e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x35524a){this['editor']['plugins']['get'](p)['adapter']=_0x35524a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4f1937){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4f1937);}['getSuggestions']({skipNotAttached:_0x357368=!0x1,toJSON:_0xad1299=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x357368,'toJSON':_0xad1299});}['getSuggestion'](_0xaca354){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xaca354);}}const w=['Pagination'];class T extends _0x57a03e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d2a6c=this['editor'];if(_0x4d2a6c['config']['define']('trackChangesData.editorCreator',_0x13d135=>{const _0x44a718=_0x4d2a6c['model']['document']['getRootNames']()['reduce']((_0x523d98,_0x5eba02)=>(_0x523d98[_0x5eba02]='',_0x523d98),{});return _0x4d2a6c['constructor']['create'](_0x44a718,_0x13d135);}),'function'!=typeof _0x4d2a6c['config']['get']('trackChangesData')['editorCreator'])throw new _0x46ed90('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x16ac3b){return N(this['editor'],!0x0,_0x16ac3b);}['getDataWithDiscardedSuggestions'](_0xe85fb0){return N(this['editor'],!0x1,_0xe85fb0);}}class D extends _0x57a03e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bd3d9){function _0x143d69(_0xdc05cb){return _0xdc05cb['map'](_0x32cdef=>String['fromCharCode'](_0x32cdef))['join']('');}super(_0x4bd3d9),this['result']='end',_0x4bd3d9[_0x143d69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x143d69([0x76,0x69,0x65,0x77])][_0x143d69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x143d69([0x61,0x75,0x74,0x6f]),_0x4bd3d9[_0x143d69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x143d69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x143d69([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x143d69([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x143d69([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(_0x526ce1){return void 0x0!==_0x526ce1['getRootsAttributes'];}async function N(_0x25eb52,_0x26e164,_0x18a31e){const _0x19fc39=_0x195234(_0x25eb52,w);_0x19fc39['plugins']['push'](p,D),_0x19fc39['rootsAttributes']=Fe(_0x25eb52)?_0x25eb52['getRootsAttributes']():void 0x0;const _0x2b7c48=document['createDocumentFragment'](),_0x4be366=_0x25eb52['config']['get']('trackChangesData')['editorCreator'],_0x138e7a=await _0x4be366(_0x19fc39,()=>function(_0x4cd632){const _0x46d6bd=document['createElement']('div');return _0x4cd632['appendChild'](_0x46d6bd),_0x46d6bd;}(_0x2b7c48));!function(_0x47e84e,_0x1a1d1f){const _0x743228=_0x47e84e['model']['document']['getRootNames']()['reduce']((_0x231a7d,_0x5b6c7d)=>(_0x231a7d[_0x5b6c7d]=_0x47e84e['data']['get']({'rootName':_0x5b6c7d}),_0x231a7d),{}),_0x17a3d6=_0x47e84e['plugins']['get']('Users')['users']['map'](_0x52768e=>({'id':_0x52768e['id'],'name':_0x52768e['name']})),_0x52be8c=_0x47e84e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30398e=_0x47e84e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xab9e46=_0x1a1d1f['plugins']['get']('Users'),_0x5c2b8c=_0x1a1d1f['plugins']['get']('TrackChangesEditing'),_0x5252bf=_0x1a1d1f['plugins']['get']('CommentsRepository');for(const _0x399698 of _0x5252bf['getCommentThreads']())_0x399698['remove']();for(const _0x29d534 of _0x17a3d6)_0xab9e46['getUser'](_0x29d534['id'])||_0xab9e46['addUser'](_0x29d534);_0xab9e46['me']||_0xab9e46['useAnonymousUser']();for(const _0x34d485 of _0x30398e)_0x5252bf['addCommentThread'](_0x34d485);for(const _0x59a602 of _0x52be8c)_0x5c2b8c['addSuggestionData'](_0x59a602);_0x1a1d1f['data']['set'](_0x743228);}(_0x25eb52,_0x138e7a),_0x138e7a['execute'](_0x26e164?'acceptAllSuggestions':'discardAllSuggestions');const _0x4521c2=Fe(_0x138e7a)?_0x138e7a['getFullData'](_0x18a31e):_0x138e7a['data']['get'](_0x18a31e);return await _0x138e7a['destroy'](),_0x4521c2;}class Me extends _0x2b7e33{['options'];constructor(_0x50af6c,_0x1e86f2){super(_0x50af6c),this['options']=_0x1e86f2,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'](_0x236acb,_0x42b9a4){if(!this['element'])return;const _0x35bcf1=[];for(const [_0x3333e2,_0x4581d0]of _0x236acb){const _0x107fa8=document['createElement']('div');_0x107fa8['setAttribute']('data-ck-root-name',_0x3333e2),_0x107fa8['className']=_0x4581d0['classes']+'\x20ck-track-changes-preview__root-container',_0x107fa8['innerHTML']=_0x4581d0['content'],_0x35bcf1['push'](_0x107fa8);}_0x42b9a4(this['element'],_0x35bcf1),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x38e6d8){super(_0x38e6d8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1671b7=this['editor'],_0x3ead19=_0x1671b7['locale'],_0x5e2bc9=_0x1671b7['plugins']['get']('Dialog');let _0x21c599;const _0x5e431e=function(_0xb74a10){const _0x5bb14c={};if('editables'in _0xb74a10['ui']['view']){for(const [_0x5296ee,_0x15d12f]of Object['entries'](_0xb74a10['ui']['view']['editables']))_0x5bb14c[_0x5296ee]=_0x15d12f['element'];}else _0x5bb14c[_0xb74a10['model']['document']['getRootNames']()[0x0]]=_0xb74a10['ui']['view']['editable']['element'];return _0x5bb14c;}(_0x1671b7),_0x4689ad=function(_0x5949b2){let _0x5128f0=0x0;for(const _0x360d4f of Object['values'](_0x5949b2))_0x5128f0=Math['max'](_0x5128f0,_0x360d4f['getBoundingClientRect']()['width']);let _0xf8b497=0x0;for(const _0x26a3dc of Object['values'](_0x5949b2))_0xf8b497+=_0x26a3dc['getBoundingClientRect']()['height'];const _0x213c78=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x7dfd43=Math['min'](_0xf8b497,_0x213c78);return{'width':_0x5128f0,'height':_0x7dfd43};}(_0x5e431e);_0x5e2bc9['show']({'id':'finalContentPreview','title':o(_0x3ead19,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3ead19,{'dialogRects':_0x4689ad}),'onHide':()=>{_0x21c599['detachFromDom']();},'onShow':()=>{_0x1671b7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4d74fa=>{const _0x32094b=this['_standarizeRootsData'](_0x4d74fa,_0x1671b7,_0x5e431e);_0x5e2bc9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x32094b,_0x1671b7['config']['get']('trackChanges.preview.renderFunction'));}),_0x21c599=new _0x3e344a(_0x3ead19,[_0x5e2bc9['view']]),_0x21c599['attachToDom'](),_0x21c599['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1671b7['once']('destroy',()=>{_0x21c599['detachFromDom']();});const _0x2e26b6=_0x5e2bc9['view']['headerView']['class'];_0x5e2bc9['view']['headerView']['class']=_0x2e26b6?_0x2e26b6+'\x20ck-reset_all':'ck-reset_all',_0x5e2bc9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5e2bc9['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x50b364=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5a8e5b=_0x50b364['previewMode'],_0x11de90={};if('$labels'===_0x5a8e5b){for(const _0x446f19 of _0x50b364['getMergeFieldsIds']())_0x11de90[_0x446f19]=_0x50b364['getLabel'](_0x446f19)||_0x446f19;}else{const _0x2ba819='$defaultValues'===_0x5a8e5b?_0x50b364['getDefaultValues']():_0x50b364['getDataSetValues'](_0x5a8e5b,!0x0);for(const _0x41a2cf of Object['entries'](_0x2ba819)){const [_0x3bbe51,_0x503c15]=_0x41a2cf;_0x11de90[_0x3bbe51]=null!==_0x503c15?_0x503c15:_0x50b364['getLabel'](_0x3bbe51)||_0x3bbe51;}}return{'mergeFieldsData':_0x11de90};}['_standarizeRootsData'](_0x58d459,_0x845114,_0x2ef1e8){let _0x3b051f;if('string'==typeof _0x58d459){const _0x4a42bf=_0x845114['model']['document']['getRootNames']()[0x0];_0x3b051f={[_0x4a42bf]:_0x58d459};}else _0x3b051f=_0x58d459;const _0x2efef0=this['_fixMediaEmbeds'](_0x3b051f,_0x845114),_0x1e9ea1=function(_0x4d68c1,_0x42fda5){for(const [_0x5a412e,_0x478058]of _0x4d68c1)_0x478058['classes']=_0x42fda5[_0x5a412e]['classList']['value']['replace']('ck-focused','');return _0x4d68c1;}(this['_sortRoots'](_0x845114)['reduce']((_0x1984a1,_0x5eac66)=>(_0x1984a1['push']([_0x5eac66,{'content':_0x2efef0[_0x5eac66],'classes':''}]),_0x1984a1),[]),_0x2ef1e8);return _0x1e9ea1;}['_fixMediaEmbeds'](_0x509fc1,_0x13a095){if(!_0x13a095['plugins']['has']('MediaEmbedEditing'))return _0x509fc1;const _0x522ca8=_0x13a095['plugins']['get']('MediaEmbedEditing');for(const [_0x150c7c,_0x7d0c41]of Object['entries'](_0x509fc1)){const _0x58dc17=document['createElement']('div');_0x58dc17['innerHTML']=_0x7d0c41,(_0x58dc17['querySelectorAll']('figure.media')['forEach'](_0x556470=>{const _0x442b88=_0x556470['querySelector']('oembed');if(_0x442b88){const _0xdb3e1c=_0x442b88['getAttribute']('url');if(_0xdb3e1c){const _0x1fdf56=_0x522ca8['registry']['getMediaViewElement'](new _0x3043ab(_0x13a095['editing']['view']['document']),_0xdb3e1c,{'elementName':'','renderForEditingView':!0x0}),_0x148abe=document['createElement']('div');_0x148abe['classList']['add']('ck-media__wrapper'),_0x1fdf56['render'](_0x148abe,_0x13a095['editing']['view']['domConverter']),_0x442b88['replaceWith'](_0x148abe);}}}),_0x509fc1[_0x150c7c]=_0x58dc17['innerHTML']);}return _0x509fc1;}['_sortRoots'](_0x13191b){if(!function(_0x1bb79a){return void 0x0!==_0x1bb79a['getRootsAttributes'];}(_0x13191b))return _0x13191b['model']['document']['getRootNames']();const _0x386325=[],_0x22cea5=new Map();for(const _0x14ba15 of _0x13191b['model']['document']['getRootNames']()){const _0x333500=_0x13191b['editing']['view']['getDomRoot'](_0x14ba15)['getClientRects']()['item'](0x0);_0x386325['push'](_0x14ba15),_0x22cea5['set'](_0x14ba15,_0x333500);}return _0x386325['sort']((_0x125fdd,_0x248a62)=>{const _0x3e4329=_0x22cea5['get'](_0x125fdd),_0x5212a2=_0x22cea5['get'](_0x248a62);return _0x3e4329['y']-_0x5212a2['y']||_0x3e4329['x']-_0x5212a2['x'];}),_0x386325;}}class te extends _0x57a03e{static get['requires'](){return[T,_0x21cc22];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x443ef2){super(_0x443ef2),_0x443ef2['commands']['add']('previewFinalContent',new re(this['editor'])),_0x443ef2['config']['define']('trackChanges.preview.renderFunction',(_0x3a95ec,_0x5601d1)=>{for(const _0x2fb049 of _0x5601d1)_0x3a95ec['appendChild'](_0x2fb049);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};