@ckeditor/ckeditor5-track-changes 43.3.0-alpha.1 → 43.3.0-alpha.10

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 (216) 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 +10 -10
  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/trackchangescommand.js +1 -1
  153. package/src/index.js +1 -1
  154. package/src/integrations/aiassistant.js +1 -1
  155. package/src/integrations/alignment.js +1 -1
  156. package/src/integrations/basicstyles.js +1 -1
  157. package/src/integrations/blockquote.js +1 -1
  158. package/src/integrations/casechange.js +1 -1
  159. package/src/integrations/ckbox.js +1 -1
  160. package/src/integrations/codeblock.js +1 -1
  161. package/src/integrations/comments.js +1 -1
  162. package/src/integrations/deletecommand.js +1 -1
  163. package/src/integrations/entercommand.js +1 -1
  164. package/src/integrations/findandreplace.js +1 -1
  165. package/src/integrations/font.js +1 -1
  166. package/src/integrations/formatpainter.js +1 -1
  167. package/src/integrations/heading.js +1 -1
  168. package/src/integrations/highlight.js +1 -1
  169. package/src/integrations/horizontalline.js +1 -1
  170. package/src/integrations/htmlembed.js +1 -1
  171. package/src/integrations/image.js +1 -1
  172. package/src/integrations/imagereplace.js +1 -1
  173. package/src/integrations/imagestyle.js +1 -1
  174. package/src/integrations/importword.js +1 -1
  175. package/src/integrations/indent.js +1 -1
  176. package/src/integrations/inputcommand.js +1 -1
  177. package/src/integrations/legacylist.js +1 -1
  178. package/src/integrations/legacylistproperties.js +1 -1
  179. package/src/integrations/link.js +1 -1
  180. package/src/integrations/list.js +1 -1
  181. package/src/integrations/listproperties.js +1 -1
  182. package/src/integrations/mediaembed.js +1 -1
  183. package/src/integrations/mention.js +1 -1
  184. package/src/integrations/mergefields.js +1 -1
  185. package/src/integrations/multilevellist.js +1 -1
  186. package/src/integrations/pagebreak.js +1 -1
  187. package/src/integrations/paragraph.js +1 -1
  188. package/src/integrations/removeformat.js +1 -1
  189. package/src/integrations/restrictededitingmode.js +1 -1
  190. package/src/integrations/shiftentercommand.js +1 -1
  191. package/src/integrations/standardeditingmode.js +1 -1
  192. package/src/integrations/style.js +1 -1
  193. package/src/integrations/table.js +1 -1
  194. package/src/integrations/tablecaption.js +1 -1
  195. package/src/integrations/tableclipboard.js +1 -1
  196. package/src/integrations/tablecolumnresize.js +1 -1
  197. package/src/integrations/tableheadings.js +1 -1
  198. package/src/integrations/tablemergesplit.js +1 -1
  199. package/src/integrations/tableofcontents.js +1 -1
  200. package/src/integrations/tableproperties.js +1 -1
  201. package/src/integrations/template.js +1 -1
  202. package/src/integrations/title.js +1 -1
  203. package/src/integrations/undo.js +1 -1
  204. package/src/integrations/utils.js +1 -1
  205. package/src/suggestion.js +2 -2
  206. package/src/suggestiondescriptionfactory.js +1 -1
  207. package/src/trackchanges.js +1 -1
  208. package/src/trackchangesdata.js +1 -1
  209. package/src/trackchangesediting.js +1 -1
  210. package/src/trackchangesui.js +1 -1
  211. package/src/ui/suggestioncontroller.js +2 -2
  212. package/src/ui/view/basesuggestionthreadview.js +1 -1
  213. package/src/ui/view/suggestionthreadview.js +1 -1
  214. package/src/ui/view/suggestionview.js +1 -1
  215. package/src/utils/common-translations.js +1 -1
  216. 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 ts,Plugin as _0x16a2ad,PendingActions as _0x57b538,icons as _0x129e38}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2f735b,ObservableMixin as _0x4f9031,uid as _0x31d1bc,insertToPriorityArray as _0x972427,priorities as _0x3a7800,logWarning as _0x1e894b,getEnvKeystrokeText as _0x3a49cf,FocusTracker as _0x328256,KeystrokeHandler as _0x3f0bfa,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1dc0d1,View as _0x5c48ce,ViewCollection as _0x11e3bc,FocusCycler as _0x594f2e,ViewModel as _0x1596b5,createDropdown as Qt,SplitButtonView as _0x646426,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5c4ce3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5680c5,hashObject as _0x115a16,surroundingMarkersDetector as _0x31b647,FOCUS_ANNOTATION_KEYSTROKE as _0x2cdcf8,AriaDescriptionView as _0x1e2267,setupThreadKeyboardNavigation as _0x3cb939,trimHtml as _0x189d33,UserView as _0x25caa3,LateFocusButtonView as _0x388278,getDateTimeFormatter as _0x1661b2,getAllMarkersDomElementsSorted as _0x39b097,sanitizeEditorConfig as _0x1c6eb1}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x367a8a,LiveRange as _0x1eeee4,LivePosition as _0x10cc9c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2d4906,toWidget as _0x1dfbcb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x45a778,set as _0x54e2f9,isEqual as _0x10d9b1,unset as _0x24aeb4,omit as Rt}from'lodash-es';import{Delete as _0x292bc5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1e43b9,ShiftEnter as _0x3bdf00}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x195baa,_0x493867){super(_0x195baa),this['_enabledCommands']=_0x493867,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 _0xbb5279 of this['editor']['commands']['commands']())_0xbb5279['affectsData']&&!this['_enabledCommands']['has'](_0xbb5279)&&_0xbb5279['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5414b6 of this['editor']['commands']['commands']())_0x5414b6['affectsData']&&!this['_enabledCommands']['has'](_0x5414b6)&&_0x5414b6['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x914731,_0x18d0a9){super(_0x914731),this['_suggestions']=_0x18d0a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3bfce3){const _0xd02ee3=this['_suggestions']['get'](_0x3bfce3);if(!_0xd02ee3)throw new _0x2f735b('track-changes-accept-suggestion-not-found',this);const _0x33d252=_0xd02ee3['getRanges']();this['editor']['model']['canEditAt'](_0x33d252)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd02ee3);}}class O extends ts{['_suggestions'];constructor(_0x5dd319,_0x55fc34){super(_0x5dd319),this['_suggestions']=_0x55fc34,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x459bb8){const _0x4703dd=this['_suggestions']['get'](_0x459bb8);if(!_0x4703dd)throw new _0x2f735b('track-changes-discard-suggestion-not-found',this);const _0x3e456e=_0x4703dd['getRanges']();this['editor']['model']['canEditAt'](_0x3e456e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4703dd);}}function ls(_0x52ae60,_0x407e77){let _0xfc4b7b='';return _0xfc4b7b+=_0x52ae60['split']('*')['map']((_0xe54749,_0x3a97f6)=>_0x3a97f6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xe54749)+'</span>':nn(_0xe54749))['join'](''),_0x407e77&&(_0xfc4b7b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x407e77['value']+'\x22\x20title=\x22'+_0x407e77['title']+'\x22></span>'),_0xfc4b7b;}function nn(_0x10041e){const _0xcd4608=document['createElement']('span');return _0xcd4608['innerText']=_0x10041e,_0xcd4608['innerHTML'];}function ss(_0x2e64d5){return _0x2e64d5['sort']((_0x2cb833,_0x1e2e7a)=>'deletion'==_0x2cb833['type']&&'deletion'!=_0x1e2e7a['type']?-0x1:'deletion'!=_0x2cb833['type']&&'deletion'==_0x1e2e7a['type']?0x1:0x0);}function to(_0x37f122,_0x29783c){let _0x152657,_0x605cf1=0x0;const _0x467042=[],_0x245de0=_0x29783c['schema'];for(;_0x605cf1<_0x37f122['length'];){const _0x540e96=_0x37f122[_0x605cf1],_0x3feb04=_0x37f122[_0x605cf1+0x1];_0x152657||(_0x152657=_0x29783c['createPositionBefore'](_0x540e96)),on(_0x29783c,_0x540e96,_0x3feb04)||(_0x467042['push'](_0x29783c['createRange'](_0x152657,_0x245de0['isObject'](_0x540e96)?_0x29783c['createPositionAfter'](_0x540e96):_0x29783c['createPositionAt'](_0x540e96,'end'))),_0x152657=null),_0x605cf1++;}return _0x467042;}function on(_0x2fb83d,_0x4216c2,_0x3515f3){if(!_0x3515f3)return!0x1;const _0x4845a6=_0x2fb83d['createPositionAfter'](_0x4216c2),_0x593ab8=_0x2fb83d['createPositionBefore'](_0x3515f3);return _0x4845a6['isTouching'](_0x593ab8);}function rs(_0x5fda51,_0x1f704d,_0x4c6b25){for(;_0x4c6b25['length'];){const _0x5627b1=_0x4c6b25['splice'](0x0,0x64);_0x5fda51['change'](()=>{for(const _0x353754 of _0x5627b1)_0x353754['isInContent']&&_0x1f704d['execute'](_0x353754['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x1a82ca,_0x23321e,_0x1f8031){super(_0x1a82ca),this['_command']=_0x23321e,this['_suggestions']=_0x1f8031,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f6459=Array['from'](this['_suggestions']['values']())['some'](_0x462f07=>_0x462f07['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1f6459;}['execute'](){const _0x5af000=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1485bc of _0x5af000){const _0x60a2f3=_0x1485bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x60a2f3))return;}rs(this['editor']['model'],this['_command'],_0x5af000);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x389f58,_0x4701de,_0x2cb87b){super(_0x389f58),this['_command']=_0x4701de,this['_suggestions']=_0x2cb87b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x443964=this['editor']['model']['document']['selection'],_0x449c40=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x8e56d3,_0x580e04){const _0x4a658d=Array['from'](_0x8e56d3['getRanges']()),_0x250da0=new Set();for(const _0x1736ec of _0x580e04)if(_0x1736ec['isInContent']){for(const _0x245705 of _0x4a658d)for(const _0x121fcb of _0x1736ec['getRanges']())(_0x245705['isIntersecting'](_0x121fcb)||_0x8e56d3['isCollapsed']&&!_0x1736ec['isMultiRange']&&_0x1736ec['next']&&_0x121fcb['end']['isTouching'](_0x245705['start']))&&_0x250da0['add'](_0x1736ec);}return _0x250da0;}(_0x443964,_0x449c40),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xece6b7=ss(Array['from'](this['_selectedSuggestions']));for(const _0xa93f31 of _0xece6b7){const _0x1296e8=_0xa93f31['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1296e8))return;}rs(this['editor']['model'],this['_command'],_0xece6b7);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x4f9031(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x140448,_0x29e9d5){super(),this['id']=_0x29e9d5['id'],this['type']=_0x29e9d5['type'],this['subType']=_0x29e9d5['subType']||null,this['author']=_0x29e9d5['author'],this['creator']=_0x29e9d5['creator']||_0x29e9d5['author'],this['isExternal']=Boolean(_0x29e9d5['attributes']&&_0x29e9d5['attributes']['@external']),this['data']=null,this['_model']=_0x140448,this['_onAccept']=_0x29e9d5['onAccept'],this['_onDiscard']=_0x29e9d5['onDiscard'],this['_onAttributesChange']=_0x29e9d5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29e9d5['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 _0x4f27ee=this;for(;_0x4f27ee['previous'];)_0x4f27ee=_0x4f27ee['previous'];return _0x4f27ee;}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'](_0x53e8cd){this['_markerNames']['add'](_0x53e8cd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x42add3=>this['_model']['markers']['get'](_0x42add3))['filter'](_0x4fac7b=>_0x4fac7b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x29d642=>{for(const _0x2ff0bc of this['getMarkers']())_0x29d642['removeMarker'](_0x2ff0bc);}),this['_markerNames']['clear']();}['removeMarker'](_0x29dc32){this['_model']['change'](_0x2f0f90=>{_0x2f0f90['removeMarker'](_0x29dc32);}),this['_markerNames']['delete'](_0x29dc32);}['addRange'](_0x4822c4){const _0x51429b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x51429b),this['_model']['change'](_0x41d51e=>{_0x41d51e['addMarker'](_0x51429b,{'range':_0x4822c4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x8669f2){for(const _0x579013 of this['getRanges']())if(_0x579013['isIntersecting'](_0x8669f2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x582f56=>_0x582f56['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x195262,_0x4df04f)=>[..._0x195262,..._0x4df04f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x42c171=this['getRanges']();if(0x1!=_0x42c171['length'])return null;const _0x18ed40=_0x42c171[0x0],_0x9b9941=_0x18ed40['start']['nodeAfter'],_0x2e4109=_0x18ed40['end']['nodeBefore'];return _0x9b9941 instanceof _0x367a8a?_0x9b9941!=_0x2e4109?null:_0x9b9941: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 _0xe01a0c=[];let _0x11e55c=this['head'];for(;_0x11e55c;)_0xe01a0c['push'](_0x11e55c),_0x11e55c=_0x11e55c['next'];return _0xe01a0c;}['setAttribute'](_0x1157dc,_0x3c4536){const _0x248620=_0x45a778(this['attributes']);_0x54e2f9(_0x248620,_0x1157dc,_0x3c4536),_0x10d9b1(_0x248620,this['attributes'])||(this['attributes']=_0x248620,this['_onAttributesChange'](_0x248620));}['removeAttribute'](_0x4ea4ef){const _0x197ed4=_0x45a778(this['attributes']);_0x24aeb4(_0x197ed4,_0x4ea4ef),_0x10d9b1(_0x197ed4,this['attributes'])||(this['attributes']=_0x197ed4,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 _0x31d1bc()['substr'](0x1,0x5);}}function o(_0x3a643a,_0x48c03c,_0x564575){const _0x501a8d=_0x3a643a['t'],t=_0x3a643a['t'];switch(_0x48c03c){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'*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',_0x564575);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x564575);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x564575);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x564575);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x564575);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',_0x564575);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x564575);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x564575);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x564575);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x564575);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x564575);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x564575);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x564575);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x564575);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x564575);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x564575);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x564575);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x564575);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x564575);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x564575);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x564575);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x564575);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x564575);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'},_0x564575);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x564575);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x564575);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x564575);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x564575);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x564575);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'},_0x564575);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x564575);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x564575);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x564575);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x564575);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'},_0x564575);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x564575);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'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x564575);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x564575);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'},_0x564575);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 _0x501a8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x564575);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x501a8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x564575);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x564575);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'},_0x564575);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'},_0x564575);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'},_0x564575);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x48c03c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d7259,_0x4fbf39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d7259,this['_locale']=_0x4fbf39;}['getDescriptions'](_0x4b60a9){const _0x3ebd3f=[],_0x499342=new Set(),_0x40c875=new Set();for(let _0x561a43=0x0;_0x561a43<_0x4b60a9['length'];_0x561a43++){const _0x448cdc=_0x4b60a9[_0x561a43];if(!_0x448cdc['isInContent'])continue;const _0x376893=this['_handleCustomCallbackDescription'](_0x448cdc);if(_0x376893){if(null!=_0x448cdc['subType']){if(_0x499342['has'](_0x448cdc['subType']))continue;_0x499342['add'](_0x448cdc['subType']);}_0x3ebd3f['push'](_0x376893);}else{if('attribute'!=_0x448cdc['type'])'insertion'!=_0x448cdc['type']&&'deletion'!=_0x448cdc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3ebd3f,_0x448cdc,_0x4b60a9[_0x561a43+0x1]);else{const _0x178f5e=_0x448cdc['data']['key'];if(_0x40c875['has'](_0x178f5e))continue;_0x40c875['add'](_0x448cdc['data']['key']),_0x178f5e==m?this['_handleRenameSuggestionDescription'](_0x3ebd3f,_0x448cdc):this['_handleAttributeSuggestionDescription'](_0x3ebd3f,_0x448cdc);}}}return this['_resolveDescriptionItems'](_0x3ebd3f);}['registerDescriptionCallback'](_0x34c67a){this['_customCallbacks']['push'](_0x34c67a);}['registerElementLabel'](_0x49a99c,_0x882ed3,_0x52e8c0=_0x3a7800['normal']){'function'==typeof _0x49a99c?_0x972427(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49a99c,'label':_0x882ed3,'priority':_0x52e8c0}):this['_itemLabels']['set'](_0x49a99c,_0x882ed3);}['registerAttributeLabel'](_0x5d5eee,_0x16e205){this['_attributeLabels']['set'](_0x5d5eee,_0x16e205);}['getItemLabel'](_0x16d4ac,_0x5f3cd4=0x1){let _0x1327fe;for(const _0xa198c0 of this['_itemLabelsCallbacks'])if(_0xa198c0['matchingCallback'](_0x16d4ac)){_0x1327fe=_0xa198c0['label'];break;}return _0x1327fe||(_0x1327fe=this['_itemLabels']['get'](_0x16d4ac['name'])),_0x1327fe?_0x1327fe(_0x5f3cd4):0x1!==_0x5f3cd4?_0x5f3cd4+'\x20'+_0x16d4ac['name']+'s':''+_0x16d4ac['name'];}['_addDescriptionItems'](_0x150606,_0x2894bc){const _0x250851=_0x2894bc['getFirstRange']()['getWalker'](),_0x48f0a0='insertion'==_0x2894bc['type']?'add':'remove';for(const _0x525bdb of _0x250851){const _0x222f37=_0x525bdb['item'],_0x32c832=_0x150606[_0x150606['length']-0x1];if(_0x222f37['is']('$textProxy'))_0x32c832&&_0x32c832['type']['indexOf']('Container')>-0x1&&_0x150606['pop'](),_0x32c832&&'text'==_0x32c832['type']?_0x32c832[_0x48f0a0]+=_0x222f37['data']:_0x150606['push']({'type':'text','add':'add'==_0x48f0a0?_0x222f37['data']:'','remove':'remove'==_0x48f0a0?_0x222f37['data']:''});else{if(this['_schema']['isObject'](_0x222f37)){const _0x30c6b0=_0x222f37;if(_0x32c832&&_0x32c832['type']['indexOf']('Container')>-0x1&&_0x150606['pop'](),'elementEnd'==_0x525bdb['type'])continue;_0x32c832&&_0x32c832['type']==_0x48f0a0+'Object'&&_0x32c832['element']['name']==_0x30c6b0['name']?_0x32c832['quantity']++:_0x150606['push']({'type':_0x48f0a0+'Object','element':_0x30c6b0,'quantity':0x1}),_0x250851['skip'](_0x308a96=>!('elementEnd'==_0x308a96['type']&&_0x308a96['item']==_0x222f37));}else{if(this['_schema']['checkChild'](_0x222f37,'$text')||_0x222f37['is']('element','softBreak')){const _0xe57d1=_0x222f37;if('add'==_0x48f0a0&&'elementStart'==_0x525bdb['type']||'remove'==_0x48f0a0&&'elementEnd'==_0x525bdb['type'])continue;if(_0x32c832&&-0x1==_0x32c832['type']['indexOf']('Container')){'text'==_0x32c832['type']&&(_0x32c832[_0x48f0a0]+='\x0a');continue;}let _0x3f945c;if(_0x3f945c='add'==_0x48f0a0?_0xe57d1['nextSibling']&&!this['_schema']['isObject'](_0xe57d1['nextSibling'])?_0xe57d1['nextSibling']:null:_0xe57d1['previousSibling']&&!this['_schema']['isObject'](_0xe57d1['previousSibling'])?_0xe57d1['previousSibling']:null,_0xe57d1['isEmpty']||_0x3f945c&&_0x3f945c['isEmpty']){const _0x3ae0a6=_0x3f945c&&_0x3f945c['isEmpty']?_0x3f945c:_0xe57d1;_0x32c832&&_0x32c832['type']==_0x48f0a0+'EmptyContainer'&&_0x32c832['element']['name']==_0x3ae0a6['name']?_0x32c832['quantity']++:_0x150606['push']({'type':_0x48f0a0+'EmptyContainer','element':_0x3ae0a6,'quantity':0x1});}else _0x150606['push']({'type':_0x48f0a0+'Container','element':_0xe57d1});}}}}}['_resolveDescriptionItems'](_0x31bf15){const _0x3f748a=this['_locale'],_0x450dff=[],_0x166dde=[],_0x241ecb=[];for(const _0x31e445 of _0x31bf15)switch(_0x31e445['type']){case'text':if(_0x31e445['add']=_0x31e445['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x31e445['remove']=_0x31e445['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x31e445['add']&&''!=_0x31e445['remove']){_0x450dff['push']({'type':'replace','content':o(_0x3f748a,'REPLACE_TEXT',['\x22'+_0x31e445['remove']+'\x22','\x22'+_0x31e445['add']+'\x22'])});continue;}if(null!=_0x31e445['add']['match'](/^ +$/)){_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0',o(_0x3f748a,'ELEMENT_SPACE',_0x31e445['add']['length']))});continue;}if(null!=_0x31e445['remove']['match'](/^ +$/)){_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0',o(_0x3f748a,'ELEMENT_SPACE',_0x31e445['remove']['length']))});continue;}if(''!=_0x31e445['add']){_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0','\x22'+_0x31e445['add']+'\x22')});continue;}_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0','\x22'+_0x31e445['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'addContainer':_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Split:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'removeContainer':_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Merge:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'addFormat':_0x166dde['push'](_0x31e445['key']);continue;case'removeFormat':_0x241ecb['push'](_0x31e445['key']);continue;default:_0x450dff['push'](_0x31e445);}if(_0x166dde['length']){const _0x22f88d=_0x166dde['map'](_0xa717eb=>this['_attributeLabels']['has'](_0xa717eb)?this['_attributeLabels']['get'](_0xa717eb):_0xa717eb)['join'](',\x20');_0x450dff['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x22f88d)});}if(_0x241ecb['length']){const _0x599e11=_0x241ecb['map'](_0x186a12=>this['_attributeLabels']['has'](_0x186a12)?this['_attributeLabels']['get'](_0x186a12):_0x186a12)['join'](',\x20');_0x450dff['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x599e11)});}return _0x450dff;}['_handleCustomCallbackDescription'](_0xe378ee){for(const _0x129c5d of this['_customCallbacks']){const _0xb8c34f=_0x129c5d(_0xe378ee);if(_0xb8c34f&&'type'in _0xb8c34f)return _0xb8c34f;}}['_handleAttributeSuggestionDescription'](_0x2c324c,_0x520c99){const _0x554a2b=_0x520c99['data'],_0x66956e=void 0x0===_0x554a2b['newValue']?'removeFormat':'addFormat';_0x2c324c['push']({'type':_0x66956e,'key':_0x554a2b['key']});}['_handleRenameSuggestionDescription'](_0x474738,_0x3a5b90){_0x474738['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a5b90['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xea921,_0x4fcea7,_0x430fad){if(this['_addDescriptionItems'](_0xea921,_0x4fcea7),_0x430fad&&_0x430fad['getFirstRange']()&&!_0x4fcea7['getFirstRange']()['end']['isEqual'](_0x430fad['getFirstRange']()['start'])){const _0x1ac367=_0xea921[_0xea921['length']-0x1],_0x480b3f='insertion'==_0x4fcea7['type']?'add':'remove';_0x1ac367&&'text'==_0x1ac367['type']&&(_0x1ac367[_0x480b3f]+='\x0a');}}}class V extends _0x16a2ad{['afterInit'](){const _0x3c404e=this['editor'],_0x49c022=_0x3c404e['plugins']['get']('TrackChangesEditing');_0x3c404e['commands']['get']('showAIAssistant')&&_0x49c022['enableCommand']('showAIAssistant');}}class U extends _0x16a2ad{['afterInit'](){const _0x580d82=this['editor'],_0x46d6b8=_0x580d82['locale'];if(!_0x580d82['plugins']['has']('AlignmentEditing'))return;const _0x1e10d3=_0x580d82['plugins']['get']('TrackChangesEditing');_0x1e10d3['enableDefaultAttributesIntegration']('alignment'),_0x1e10d3['registerBlockAttribute']('alignment'),_0x1e10d3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x46d6b8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34865e=this['editor'],_0x4250dc=_0x34865e['locale'];_0x34865e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3966a3=>{if('formatBlock'!=_0x3966a3['type'])return;const {data:_0x2192c5}=_0x3966a3;if(_0x2192c5&&'alignment'==_0x2192c5['commandName']){const _0x2a57b9=_0x2192c5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4250dc,'*Format:*\x20%0',function(_0x56e6b6){switch(_0x56e6b6){case'left':return o(_0x4250dc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4250dc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4250dc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4250dc,'FORMAT_JUSTIFY_TEXT');}}(_0x2a57b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x16a2ad{['afterInit'](){const _0x13134=this['editor'],_0x484795=_0x13134['plugins']['get']('TrackChangesEditing'),_0xfbbc0e=_0x13134['locale'];for(const _0x2bfe14 of ti){if(!_0x13134['plugins']['has'](_0x2bfe14))continue;const _0x576569=_0x2bfe14['slice'](0x0,-0x7)['toLowerCase'](),_0x47244b='FORMAT_'+_0x576569['toUpperCase']();_0x484795['enableDefaultAttributesIntegration'](_0x576569),_0x484795['registerInlineAttribute'](_0x576569),_0x484795['descriptionFactory']['registerAttributeLabel'](_0x576569,o(_0xfbbc0e,_0x47244b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1380b6=this['editor'],_0x74974b=_0x1380b6['locale'],_0x2a813c=_0x1380b6['plugins']['get']('TrackChangesEditing');function _0x3cf2bd(_0x89b9d9,_0x2c2b51){_0x2a813c['descriptionFactory']['registerDescriptionCallback'](_0x26ab13=>{if('formatInline'!=_0x26ab13['type'])return;const {data:_0x161094}=_0x26ab13;return _0x161094&&_0x161094['commandName']===_0x89b9d9?_0x161094['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x74974b,'*Format:*\x20%0',_0x2c2b51)}:{'type':'format','content':o(_0x74974b,'*Remove\x20format:*\x20%0',_0x2c2b51)}:void 0x0;});}_0x3cf2bd('bold',o(_0x74974b,'FORMAT_BOLD')),_0x3cf2bd('italic',o(_0x74974b,'FORMAT_ITALIC')),_0x3cf2bd('underline',o(_0x74974b,'FORMAT_UNDERLINE')),_0x3cf2bd('code',o(_0x74974b,'FORMAT_CODE')),_0x3cf2bd('strikethrough',o(_0x74974b,'FORMAT_STRIKETHROUGH')),_0x3cf2bd('subscript',o(_0x74974b,'FORMAT_SUBSCRIPT')),_0x3cf2bd('superscript',o(_0x74974b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x16a2ad{['afterInit'](){const _0x231134=this['editor'],_0x5d8cfd=_0x231134['locale'];if(!_0x231134['plugins']['has']('BlockQuoteEditing'))return;const _0x1c1982=_0x231134['plugins']['get']('TrackChangesEditing'),_0x1d81c1=this['editor']['commands']['get']('blockQuote');_0x1c1982['enableCommand']('blockQuote',(_0x199b51,_0x325c73={})=>{const _0x503061=this['editor']['model']['document']['selection'],_0x5b6171=_0x325c73&&void 0x0!==_0x325c73['forceValue']?_0x325c73['forceValue']:!_0x1d81c1['value'];let _0x2db3f9=[];if(_0x5b6171){const _0xc1d935=Array['from'](_0x503061['getSelectedBlocks']())['filter'](_0x31b8cd=>oo(_0x31b8cd)||function(_0x3e7840,_0x4b3a8a){const _0x1fb688=_0x4b3a8a['checkChild'](_0x3e7840['parent'],'blockQuote'),_0x4f529b=_0x4b3a8a['checkChild'](['$root','blockQuote'],_0x3e7840);return _0x1fb688&&_0x4f529b;}(_0x31b8cd,this['editor']['model']['schema']));_0x2db3f9=to(_0xc1d935,_0x231134['model']);}else{const _0x1c1c8d=Array['from'](_0x503061['getSelectedBlocks']())['filter'](_0x342793=>oo(_0x342793));_0x2db3f9=to(_0x1c1c8d,_0x231134['model']);}_0x231134['model']['change'](()=>{for(const _0x24dd38 of _0x2db3f9)_0x1c1982['markBlockFormat'](_0x24dd38,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b6171}]});});}),_0x1c1982['descriptionFactory']['registerDescriptionCallback'](_0x3df2fb=>{const {data:_0x200d4d}=_0x3df2fb;if(_0x200d4d&&'blockQuote'==_0x200d4d['commandName']){const _0x8a6990=o(_0x5d8cfd,'ELEMENT_BLOCK_QUOTE');return _0x200d4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d8cfd,'*Set\x20format:*\x20%0',_0x8a6990)}:{'type':'format','content':o(_0x5d8cfd,'*Remove\x20format:*\x20%0',_0x8a6990)};}});}}function oo(_0x25cf25){return'blockQuote'==_0x25cf25['parent']['name'];}class L extends _0x16a2ad{['afterInit'](){const _0x506377=this['editor'];_0x506377['plugins']['has']('CaseChange')&&(_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x16a2ad{['afterInit'](){const _0x319277=this['editor'];_0x319277['commands']['get']('ckbox')&&_0x319277['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x16a2ad{['afterInit'](){const _0x252f67=this['editor'];if(!_0x252f67['plugins']['has']('CodeBlock'))return;const _0x222280=_0x252f67['plugins']['get']('TrackChangesEditing'),_0x4355aa=_0x252f67['locale'],_0xe2d650=_0x252f67['config']['get']('codeBlock')['languages'],_0x88d22=_0x252f67['commands']['get']('codeBlock');_0x222280['enableCommand']('indentCodeBlock'),_0x222280['enableCommand']('outdentCodeBlock'),_0x222280['enableCommand']('codeBlock',(_0x36ca9f,_0x2e41e3={})=>{const _0x30f604=_0x252f67['model'],_0x2b4c63=_0x252f67['model']['document']['selection'],_0xf4b5db=_0x2e41e3&&void 0x0!==_0x2e41e3['forceValue']?_0x2e41e3['forceValue']:!_0x88d22['value'];let _0x6fc561;_0x2e41e3['language']||(_0x2e41e3['language']=_0xe2d650[0x0]['language']),_0x6fc561=_0xf4b5db?Array['from'](_0x2b4c63['getSelectedBlocks']())['filter'](_0x7064c7=>eo(_0x7064c7)||function(_0x26df80,_0x292c83){if(_0x26df80['is']('rootElement')||_0x292c83['isLimit'](_0x26df80))return!0x1;return _0x292c83['checkChild'](_0x26df80['parent'],'codeBlock');}(_0x7064c7,_0x30f604['schema'])):Array['from'](_0x2b4c63['getSelectedBlocks']())['filter'](_0x23b7d2=>eo(_0x23b7d2));const _0x453e1c=to(_0x6fc561,_0x30f604);_0x30f604['change'](()=>{for(const _0x5f559c of _0x453e1c)_0x222280['markBlockFormat'](_0x5f559c,{'commandName':'codeBlock','commandParams':[{..._0x2e41e3,'forceValue':_0xf4b5db}],'formatGroupId':'blockName'});});}),(_0x222280['descriptionFactory']['registerElementLabel']('codeBlock',_0x141a4d=>o(_0x4355aa,'ELEMENT_CODE_BLOCK',_0x141a4d)),_0x222280['descriptionFactory']['registerDescriptionCallback'](_0x23a11e=>{if('formatBlock'!=_0x23a11e['type'])return;const _0x462f1b=_0x4355aa['t'],{data:_0x36f696}=_0x23a11e;if(!_0x36f696||'codeBlock'!=_0x36f696['commandName'])return;const _0x145141=_0x36f696['commandParams'][0x0]['language'],_0x1655d0=_0x462f1b(_0xe2d650['find'](_0x3d0f78=>_0x3d0f78['language']===_0x145141)['label'])['toLowerCase']();return _0x36f696['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4355aa,'*Set\x20format:*\x20%0',o(_0x4355aa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1655d0+')')}:{'type':'format','content':o(_0x4355aa,'*Remove\x20format:*\x20%0',o(_0x4355aa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x12a62d){return'codeBlock'==_0x12a62d['name'];}class q extends _0x16a2ad{['afterInit'](){const _0x39746e=this['editor'];if(!_0x39746e['plugins']['has']('CommentsEditing'))return;_0x39746e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xb9923,_0x5527be,_0x1e3fae){const _0x36f868=[];for(const _0x49cae1 of _0x5527be['getItems']())_0x49cae1['hasAttribute'](_0xb9923)&&_0x36f868['push'](_0x1e3fae['createRangeOn'](_0x49cae1));return _0x36f868;}function _e(_0x273c82,_0x271a41,{showActiveMarker:_0x10e538=!0x0}={}){const _0x42c443=_0x273c82['plugins']['get']('TrackChangesEditing');return(_0x132e72,_0x39b99c,_0x4889de)=>{if(!_0x4889de['consumable']['test'](_0x39b99c['markerRange'],_0x132e72['name']))return;const _0x66559e=_0x39b99c['markerRange']['getWalker'](),_0x55a4e1=_0x39b99c['markerRange']['start'],_0x42e783=_0x273c82['model']['schema'];let _0x443d6e=null,_0x29278c=null,_0x2b5d17=!0x1,_0x1f8ddd=!0x1;for(const _0x2884e3 of _0x66559e){const _0x180afd=_0x2884e3['item'];_0x2b5d17=_0x2b5d17||_0x42e783['isContent'](_0x180afd);const _0x578a35=_0x4889de['mapper']['toViewElement'](_0x180afd);if(_0x578a35&&_0x578a35['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2884e3['type']&&(_0x42e783['isBlock'](_0x180afd)&&!_0x42e783['isLimit'](_0x180afd)&&(_0x180afd['nextSibling']||_0x55a4e1['isAtEnd']?_0x443d6e&&_0x443d6e['parent']==_0x180afd||(_0x443d6e=_0x180afd,_0x2a53ae(_0x2884e3['previousPosition']),_0x1f8ddd=!0x0):_0x29278c=_0x29278c||_0x2884e3['previousPosition']));}function _0x2a53ae(_0xb26f9c){const {authorId:_0x557dfc}=_0x42c443['_splitMarkerName'](_0x39b99c['markerName']),_0x30ddbc=_0x4889de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x271a41,'data-author-id':_0x557dfc}),_0x4c7e97=_0x4889de['mapper']['toViewPosition'](_0xb26f9c);_0x10e538&&_0x42c443['activeMarkers']['includes'](_0x39b99c['markerName'])&&_0x4889de['writer']['addClass']('ck-suggestion-marker--active',_0x30ddbc),_0x4889de['writer']['insert'](_0x4c7e97,_0x30ddbc),_0x4889de['mapper']['bindElementToMarker'](_0x30ddbc,_0x39b99c['markerName']);}_0x2b5d17||_0x1f8ddd||!_0x29278c||_0x2a53ae(_0x29278c);};}class z extends _0x16a2ad{static get['requires'](){return[_0x292bc5];}['init'](){const _0x543ad5=this['editor'],_0xd09f9f=_0x543ad5['plugins']['get']('TrackChangesEditing');_0xd09f9f['enableCommand']('delete');const _0x1ebb3c=_0x543ad5['commands']['get']('deleteForward');_0xd09f9f['enableCommand']('deleteForward',(_0x492618,_0x246d01={})=>{const _0x2875ad=_0x543ad5['model']['createSelection'](_0x543ad5['model']['document']['selection']);_0x2875ad['isCollapsed']&&_0x543ad5['model']['modifySelection'](_0x2875ad,{'direction':'forward','unit':_0x246d01['unit']});const _0x402beb=_0x2875ad['getFirstRange'](),_0xc6ffe=_0x1eeee4['fromRange'](_0x402beb);let _0x595259;_0x492618(_0x246d01),_0x595259='$graveyard'==_0xc6ffe['root']['rootName']?_0x543ad5['model']['createRange'](_0x402beb['start']):_0x543ad5['model']['createRange'](_0xc6ffe['start'],_0xc6ffe['end']),_0xc6ffe['detach'](),_0x543ad5['model']['enqueueChange'](_0x1ebb3c['buffer']['batch'],_0x472477=>{_0x1ebb3c['buffer']['lock'](),_0x472477['setSelection'](_0x472477['createRange'](_0x595259['end'])),_0x1ebb3c['buffer']['unlock']();});}),_0x543ad5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x543ad5,'merge'),{'priority':'high'}),_0x543ad5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2612fa,_0x431273,_0x540cde)=>{_0x540cde['options']['showSuggestionHighlights']&&_e(_0x543ad5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2612fa,_0x431273,_0x540cde);},{'priority':'high'}),_0x543ad5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f2ed6,_0x1e27a3,_0xdb928b)=>{const _0x2772ec=_0xdb928b['mapper']['markerNameToElements'](_0x1e27a3['markerName']);if(_0x2772ec){for(const _0x254c5b of _0x2772ec)_0x254c5b['is']('uiElement')&&(_0xdb928b['mapper']['unbindElementFromMarkerName'](_0x254c5b,_0x1e27a3['markerName']),_0xdb928b['writer']['remove'](_0x254c5b));}},{'priority':'high'});}}class K extends _0x16a2ad{['afterInit'](){const _0x2a531d=this['editor'];if(!_0x2a531d['plugins']['has']('ListEditing'))return;const _0x52c04c=_0x2a531d['locale'],_0x3697b8=_0x2a531d['plugins']['get']('TrackChangesEditing'),_0x2a854b=_0x2a531d['plugins']['has']('TodoListEditing'),_0xeb0773=!!_0x2a531d['config']['get']('list.multiBlock');function _0x207074(_0x30c078){return{'type':'format','content':''+o(_0x52c04c,'*Set\x20format:*\x20%0',_0x30c078)};}function _0x39252b(_0x4af901){return{'type':'format','content':''+o(_0x52c04c,'*Remove\x20format:*\x20%0',_0x4af901)};}_0x3697b8['enableDefaultAttributesIntegration']('numberedList'),_0x3697b8['enableDefaultAttributesIntegration']('bulletedList'),_0x3697b8['enableDefaultAttributesIntegration']('customNumberedList'),_0x3697b8['enableDefaultAttributesIntegration']('customBulletedList'),_0x3697b8['enableDefaultAttributesIntegration']('indentList'),_0x3697b8['enableDefaultAttributesIntegration']('outdentList'),_0x3697b8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3697b8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3697b8['registerBlockAttribute']('listItemId'),_0x3697b8['registerBlockAttribute']('listType'),_0x3697b8['registerBlockAttribute']('listIndent'),_0xeb0773&&(_0x3697b8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3697b8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2a854b&&(_0x3697b8['enableDefaultAttributesIntegration']('todoList'),_0x3697b8['enableDefaultAttributesIntegration']('checkTodoList'),_0x3697b8['registerBlockAttribute']('todoListChecked'),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x4e125e=>{const {data:_0x16790c}=_0x4e125e;if(_0x16790c&&'todoListChecked'==_0x16790c['key'])return{'type':'format','content':_0x16790c['newValue']?o(_0x52c04c,'*Check\x20item*'):o(_0x52c04c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ad49f=>{if(_0x2ad49f['batch']['isUndo'])return!0x1;let _0x36b7f5=!0x1;const _0xae856=_0x3697b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b4e06=>'todoListChecked'===_0x3697b8['_getAttributeKey'](_0x2b4e06));for(const _0xee6ad5 of _0xae856){'todo'!=_0xee6ad5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3697b8['_findSuggestions'](_0xee6ad5['getFirstRange'](),'attribute')['find'](_0x59147f=>'listType'===_0x3697b8['_getAttributeKey'](_0x59147f['suggestion']))||(_0x2ad49f['removeMarker'](_0xee6ad5['getFirstMarker']()),_0x36b7f5=!0x0));}return _0x36b7f5;})),_0x3697b8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x52c04c,'FORMAT_INDENT'));const _0x5d890e={'type':'format','content':''};_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x365c47=>{const {data:_0x3c3c69}=_0x365c47;if(!_0x3c3c69||'listType'!=_0x3c3c69['key'])return;let _0x3c37c4=_0x365c47['head'];for(;_0x3c37c4;){if(_0x3c37c4['data']&&(('listStyle'==_0x3c37c4['data']['key']||'listMarkerStyle'==_0x3c37c4['data']['key'])&&(_0x3c37c4['data']['newValue']&&'default'!=_0x3c37c4['data']['newValue']||'default'!=_0x3c37c4['data']['oldValue']&&!_0x3c3c69['newValue'])||!_0xeb0773&&_0x3c37c4['data']['key']==m))return _0x5d890e;_0x3c37c4=_0x3c37c4['next'];}if(null==_0x3c3c69['newValue'])switch(_0x3c3c69['oldValue']){case'bulleted':return _0x39252b(o(_0x52c04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39252b(o(_0x52c04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39252b(o(_0x52c04c,'ELEMENT_TODO_LIST'));}switch(_0x3c3c69['newValue']){case'bulleted':return _0x207074(o(_0x52c04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x207074(o(_0x52c04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x207074(o(_0x52c04c,'ELEMENT_TODO_LIST'));}}),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x461c9e=>{const {data:_0x4ec145}=_0x461c9e;if(_0x4ec145&&'listIndent'==_0x4ec145['key'])return null==_0x4ec145['newValue']||null==_0x4ec145['oldValue']&&0x0==_0x4ec145['newValue']?_0x5d890e:void 0x0;}),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x2923a=>{if('attribute'!=_0x2923a['type'])return;const {data:_0x5cb0d3}=_0x2923a;if(!_0x5cb0d3||'listItemId'!=_0x5cb0d3['key'])return;const _0x3d9c97=Ee(_0x2923a);return'newValue'==_0x3d9c97?{'type':'format','content':o(_0x52c04c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d9c97?{'type':'format','content':o(_0x52c04c,'*Split:*\x20list\x20item')}:_0x5d890e;}),_0x2a531d['model']['document']['registerPostFixer'](_0x89298b=>this['listItemIdFixer'](_0x89298b)),_0x2a531d['model']['document']['registerPostFixer'](_0x356fdb=>this['noTrackChangesFixer'](_0x356fdb)),_0x2a531d['model']['document']['on']('change:data',(_0x2dd647,_0x1f7412)=>{if(_0x1f7412['isUndo']||!_0x1f7412['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xdb2648){if(_0xdb2648['batch']['isUndo']||!_0xdb2648['batch']['isLocal'])return!0x1;let _0x162ca2=!0x1;const _0xd98ca3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eda89=>_0x1eda89['data']&&'listItemId'==_0x1eda89['data']['key'])['filter'](_0x1e4416=>_0x1e4416['data']['newValue']&&_0x1e4416['data']['oldValue']);for(const _0x4d68dd of _0xd98ca3)Ee(_0x4d68dd)||(_0xdb2648['removeMarker'](_0x4d68dd['getFirstMarker']()),_0x162ca2=!0x0);return _0x162ca2;}['noTrackChangesFixer'](_0x40473c){if(_0x40473c['batch']['isUndo']||!_0x40473c['batch']['isLocal'])return!0x1;const _0x5c4284=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5c4284['trackChangesCommand']['value'])return!0x1;let _0x20f2eb=!0x1;const _0x2fed19=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x341fec=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xe504ea=>'attribute'==_0xe504ea['type'])['filter'](_0x5eeeda=>_0x2fed19['includes'](_0x5eeeda['attributeKey']));if(0x0==_0x341fec['length'])return _0x20f2eb;for(const _0x337d5f of _0x341fec){const _0x520f7e=_0x5c4284['_findSuggestions'](_0x337d5f['range'],'attribute')['filter'](_0x1f1c07=>!_0x1f1c07['meta']['isNextTo'])['map'](_0x28d276=>_0x28d276['suggestion'])['filter'](_0x5906d0=>{const _0x1fa236=_0x5c4284['_getAttributeKey'](_0x5906d0);return _0x2fed19['includes'](_0x1fa236);});if(_0x520f7e['length']){for(const _0x1488b6 of _0x520f7e)_0x40473c['removeMarker'](_0x1488b6['getFirstMarker']());_0x20f2eb=!0x0;}}return _0x20f2eb;}['assureChains'](){const _0x743c78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d281b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x169e66;const _0x3601f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x497e5c=>{if(_0x497e5c['data']['oldRange']||!_0x497e5c['data']['newRange'])return null;if(!_0x497e5c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4f9455}=_0x743c78['_splitMarkerName'](_0x497e5c['name']);if(!_0x743c78['hasSuggestion'](_0x4f9455))return null;const _0x31295d=_0x743c78['getSuggestion'](_0x4f9455);return _0x4d281b['includes'](_0x31295d['data']['key']);})['map'](_0x467f56=>{const {id:_0x222436}=_0x743c78['_splitMarkerName'](_0x467f56['name']),_0x479d53=_0x743c78['getSuggestion'](_0x222436);return _0x169e66=_0x479d53['attributes']['groupId'],_0x479d53['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3601f3['size'])return;const _0x59dcfc=_0x743c78['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x418b3a=>'attribute'==_0x418b3a['type']&&_0x418b3a['data']&&_0x4d281b['includes'](_0x418b3a['data']['key'])&&_0x418b3a['attributes']['groupId']!=_0x169e66)['map'](_0x401632=>({'listItem':_0x401632['getFirstRange']()['start']['nodeAfter'],'groupId':_0x401632['attributes']['groupId']})),_0x42d24b=new Set();for(const {groupId:_0x120293,listItem:_0x109bb2}of _0x59dcfc)_0x3601f3['has'](_0x109bb2)&&_0x42d24b['add'](_0x120293);for(const _0x11595c of _0x743c78['getSuggestions']())_0x42d24b['has'](_0x11595c['attributes']['groupId'])&&_0x11595c['setAttribute']('groupId',_0x169e66);}['_supportLegacySuggestions'](){const _0x4cb801=this['editor'],_0x5575e6=_0x4cb801['locale'],_0x2daa21=_0x4cb801['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2daa21['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x532c68,_0x1b5a03){const _0x557dc7=[];for(let _0x311f7b of _0x532c68)_0x311f7b['start']['nodeAfter']===_0x311f7b['end']['parent']&&(_0x311f7b=_0x4cb801['model']['createRange'](_0x4cb801['model']['createPositionAt'](_0x311f7b['start']['nodeAfter'],0x0))),_0x557dc7['push'](_0x311f7b);_0x4cb801['model']['change'](_0x5a5c19=>{const _0x335d3d=_0x4cb801['model']['document']['selection'],_0x54478f=Array['from'](_0x335d3d['getRanges']())['map'](_0x54c24e=>_0x1eeee4['fromRange'](_0x54c24e));_0x5a5c19['setSelection'](_0x557dc7),_0x4cb801['commands']['get'](_0x1b5a03['commandName'])['refresh'](),_0x1b5a03['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4cb801['execute'](_0x1b5a03['commandName'],..._0x1b5a03['commandParams']),_0x5a5c19['setSelection'](_0x54478f);for(const _0x4127c9 of _0x54478f)_0x4127c9['detach']();});}),_0x2daa21['descriptionFactory']['registerElementLabel'](function(_0x3d6222){const _0x2c6df3=!_0x4cb801['model']['schema']['isObject'](_0x3d6222),_0x5eb61d=_0x3d6222['previousSibling'],_0x2b8308=_0x3d6222['nextSibling'],_0x2b7983=_0x3d6222['getAttribute']('listItemId'),_0x27cb55=!_0x5eb61d||_0x5eb61d['getAttribute']('listItemId')!==_0x2b7983,_0x480adc=!_0x2b8308||_0x2b8308['getAttribute']('listItemId')!==_0x2b7983;return _0x2c6df3&&Boolean(_0x2b7983)&&_0x27cb55&&_0x480adc;},_0x2f934e=>o(_0x5575e6,'ELEMENT_LIST_ITEM',_0x2f934e));}['_registerLegacyDescription'](){const _0x2f3ce9=this['editor'],_0x5db3d5=_0x2f3ce9['locale'];function _0x13609d(_0x6c9a8b){const _0x2b50d1=_0x2f3ce9['commands']['get']('bulletedList')['value'],_0x5b20aa=_0x2f3ce9['commands']['get']('numberedList')['value'];return'numberedList'===_0x6c9a8b?_0x2b50d1:_0x5b20aa;}_0x2f3ce9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x17ceb7){if('formatBlock'!=_0x17ceb7['type'])return;const {data:_0x2ef00a}=_0x17ceb7;if(!_0x2ef00a)return;let _0x44b8df,_0x4e79e3,_0x29f72d,_0x136f6a;switch(_0x2ef00a['commandName']){case'bulletedList':_0x29f72d=_0x2ef00a['commandParams'][0x0]['forceValue'],_0x136f6a=_0x13609d(_0x2ef00a['commandName']),_0x44b8df=_0x29f72d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136f6a&&_0x2f3ce9['config']['get']('list.multiBlock')||(_0x44b8df='*Change\x20to:*\x20%0'),_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x29f72d=_0x2ef00a['commandParams'][0x0]['forceValue'],_0x136f6a=_0x13609d(_0x2ef00a['commandName']),_0x44b8df=_0x29f72d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136f6a&&_0x2f3ce9['config']['get']('list.multiBlock')||(_0x44b8df='*Change\x20to:*\x20%0'),_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x44b8df='*Indent:*\x20%0',_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x44b8df=function(_0x3006d9){const _0x350b9b=_0x3006d9['getFirstRange']();let _0x16a73f=_0x350b9b['start']['nodeAfter'];for(;_0x16a73f&&_0x350b9b['containsItem'](_0x16a73f);){if(_0x16a73f['getAttribute']('listIndent')>0x0)return!0x1;_0x16a73f=_0x16a73f['nextSibling'];}return!0x0;}(_0x17ceb7)?o(_0x5db3d5,'*Format:*\x20remove\x20from\x20%0',o(_0x5db3d5,function(_0x36e85f){return'ELEMENT_'+_0x36e85f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x17ceb7))):o(_0x5db3d5,'*Outdent:*\x20%0',o(_0x5db3d5,'ELEMENT_LIST_ITEM')),_0x4e79e3={'type':'format','content':_0x44b8df};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ef00a['multipleBlocks']&&(_0x44b8df='*Merge:*\x20%0',_0x4e79e3={'type':'deletion','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_LIST_ITEM'))});}return _0x4e79e3;});}}function Ee(_0x490f76){let _0x3261bc=_0x490f76['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3261bc;){const _0x203342=_0x3261bc['getAttribute']('listItemId');if(!_0x203342)return!0x1;if(_0x203342==_0x490f76['data']['newValue'])return'newValue';if(_0x203342==_0x490f76['data']['oldValue'])return'oldValue';_0x3261bc=_0x3261bc['previousSibling'];}return!0x1;}class pe extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4e1b2f=this['editor']['config']['get']('list.properties'),_0x72597d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e1b2f['styles']&&(_0x72597d['enableDefaultAttributesIntegration']('listStyle'),_0x72597d['registerBlockAttribute']('listStyle')),_0x4e1b2f['reversed']&&(_0x72597d['enableDefaultAttributesIntegration']('listReversed'),_0x72597d['registerBlockAttribute']('listReversed')),_0x4e1b2f['startIndex']&&(_0x72597d['enableDefaultAttributesIntegration']('listStart'),_0x72597d['registerBlockAttribute']('listStart'));const _0x51e11b={'type':'format','content':''};_0x72597d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43bf7c=this['editor']['locale'];_0x72597d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43bf7c,'FORMAT_LIST_REVERSED')),_0x72597d['descriptionFactory']['registerDescriptionCallback'](_0x415c98=>{const {data:_0x5f0250}=_0x415c98;if(_0x5f0250&&'listReversed'==_0x5f0250['key'])return null==_0x5f0250['newValue']||0x0==_0x5f0250['newValue']&&null==_0x5f0250['oldValue']?_0x51e11b:void 0x0;}),_0x72597d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43bf7c,'FORMAT_LIST_START')),_0x72597d['descriptionFactory']['registerDescriptionCallback'](_0x1b99f9=>{const {data:_0x4b7d2a}=_0x1b99f9;if(_0x4b7d2a&&'listStart'==_0x4b7d2a['key'])return null==_0x4b7d2a['newValue']||0x1==_0x4b7d2a['newValue']&&null==_0x4b7d2a['oldValue']?_0x51e11b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4acb1c=>{if(_0x4acb1c['batch']['isUndo'])return!0x1;let _0x2c06ca=!0x1;const _0x43f287=_0x72597d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c2ddf=>{const _0x3b8138=_0x72597d['_getAttributeKey'](_0x2c2ddf);return'listStart'==_0x3b8138||'listReversed'==_0x3b8138;});for(const _0x27d4a3 of _0x43f287){const _0x11110b=_0x27d4a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x11110b||'customNumbered'==_0x11110b)continue;_0x72597d['_findSuggestions'](_0x27d4a3['getFirstRange'](),'attribute')['find'](_0xcb96a5=>'listType'==_0x72597d['_getAttributeKey'](_0xcb96a5['suggestion']))||(_0x4acb1c['removeMarker'](_0x27d4a3['getFirstMarker']()),_0x2c06ca=!0x0);}return _0x2c06ca;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42c306){const _0x51432d=this['editor']['locale'],{data:_0x33aa05}=_0x42c306,_0xdf3cf5={'type':'format','content':''};if(!_0x33aa05||'listStyle'!=_0x33aa05['key'])return;if(!_0x33aa05['oldValue'])return'default'==_0x33aa05['newValue']?_0xdf3cf5:{'type':'format','content':''+o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['newValue'])))};if(!_0x33aa05['newValue']){if('default'==_0x33aa05['oldValue'])return _0xdf3cf5;let _0x3db120=_0x42c306['head'];for(;_0x3db120;){if(_0x3db120['data']&&'listType'==_0x3db120['data']['key']&&_0x3db120['data']['newValue'])return _0xdf3cf5;_0x3db120=_0x3db120['next'];}return{'type':'format','content':''+o(_0x51432d,'*Remove\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['oldValue'])))};}if('default'!=_0x33aa05['newValue'])return{'type':'format','content':''+o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['newValue'])))};let _0x4ce259=_0x42c306['head'];for(;_0x4ce259;){if(_0x4ce259['data']&&'listType'==_0x4ce259['data']['key']&&_0x4ce259['data']['newValue']&&_0x4ce259['data']['oldValue'])return _0xdf3cf5;_0x4ce259=_0x4ce259['next'];}return{'type':'format','content':o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,'ELEMENT_'+_0x42c306['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5e3b1c=this['editor'],_0x1e858e=_0x5e3b1c['locale'];_0x5e3b1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcf9d66=>{if('formatBlock'!=_0xcf9d66['type'])return;const {data:_0x2b66a8}=_0xcf9d66;if(!_0x2b66a8)return;let _0x8ff632,_0x269ddc;switch(_0x2b66a8['commandName']){case'listStyle':_0x8ff632='*Change\x20to:*\x20%0',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632,o(_0x1e858e,this['_getTranslationKeyForListStyle'](_0x2b66a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8ff632=_0x2b66a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632)};break;case'listStart':_0x8ff632='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632,_0x2b66a8['commandParams'][0x0]['startIndex'])};}return _0x269ddc;});}['_getTranslationKeyForListStyle'](_0x1a683a){return'ELEMENT_'+function(_0x120f5d){if(ye['includes'](_0x120f5d))return'bulleted';if(Se['includes'](_0x120f5d))return'numbered';return null;}(_0x1a683a)['toUpperCase']()+'_LIST_'+_0x1a683a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x16a2ad{static get['requires'](){return[_0x1e43b9];}['init'](){const _0x5abc20=this['editor'],_0x4f8897=_0x5abc20['plugins']['get']('TrackChangesEditing'),_0x8edb1d=_0x5abc20['commands']['get']('enter');_0x4f8897['enableCommand']('enter',()=>{_0x5abc20['model']['change'](_0x5abdec=>{const _0x347ee4=_0x5abc20['model']['document']['selection'],_0xd51df7=_0x347ee4['getFirstPosition'](),_0x58ce09=_0x1eeee4['fromRange'](_0x347ee4['getFirstRange']());if(_0x8edb1d['enterBlock'](_0x5abdec)){const _0x45f4da=_0x5abc20['model']['createPositionAt'](_0xd51df7['parent']['nextSibling'],0x0),_0x5854b0=_0x5abdec['createRange'](_0xd51df7,_0x45f4da);_0x4f8897['markInsertion'](_0x5854b0);}else _0x5abdec['setSelection'](_0x5abdec['createRange'](_0x58ce09['end']));_0x58ce09['detach'](),_0x8edb1d['fire']('afterExecute',{'writer':_0x5abdec});});}),_0x5abc20['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5abc20,'split'),{'priority':'high'}),_0x5abc20['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c2485,_0x3f9b52,_0x56d9d1)=>{const _0x1e88c1=_0x56d9d1['mapper']['markerNameToElements'](_0x3f9b52['markerName']);if(_0x1e88c1){for(const _0x4d9554 of _0x1e88c1)_0x4d9554['hasClass']('ck-suggestion-marker-split')&&(_0x56d9d1['mapper']['unbindElementFromMarkerName'](_0x4d9554,_0x3f9b52['markerName']),_0x56d9d1['writer']['remove'](_0x4d9554));}},{'priority':'high'}),_0x5abc20['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25546d,_0x253e03,_0x1fa7be)=>{_0x1fa7be['options']['showSuggestionHighlights']&&_e(_0x5abc20,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25546d,_0x253e03,_0x1fa7be);},{'priority':'high'});}}class X extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x55a244=this['editor']['plugins']['get']('TrackChangesEditing');_0x55a244['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x55a244['enableCommand']('findNext'),_0x55a244['enableCommand']('findPrevious'),_0x55a244['enableCommand']('replace'),_0x55a244['enableCommand']('replaceAll');}['handleFindCommand'](_0x2c568a,_0x8ee1f,_0x4fb420={}){const _0x5d6e8f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2c568a(_0x4aea57=>{let _0x3535d9=('string'==typeof _0x8ee1f?_0x5d6e8f['findByTextCallback'](_0x8ee1f,_0x4fb420):_0x8ee1f)(_0x4aea57);Array['isArray'](_0x3535d9)&&(_0x3535d9={'results':_0x3535d9,'searchText':'string'==typeof _0x8ee1f?_0x8ee1f:''});const _0x30fe45=_0x3535d9['results']['filter'](_0x14277d=>!0x1===this['_isInDeletionRange'](_0x14277d,_0x4aea57['item']));return{..._0x3535d9,'results':_0x30fe45};},_0x4fb420);}['_isInDeletionRange'](_0x48a3fd,_0x447549){const _0x3b72a0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x447549,_0x48a3fd['start']),this['editor']['model']['createPositionAt'](_0x447549,_0x48a3fd['end']));for(const _0x5a52b1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b72a0['getIntersection'](_0x5a52b1['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x16a2ad{['afterInit'](){const _0x2b7fa8=this['editor']['locale'],_0x1e0974=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ed0c2,commandName:_0x43be71}of ro)this['editor']['plugins']['has'](_0x1ed0c2)&&(_0x1e0974['enableDefaultAttributesIntegration'](_0x43be71),_0x1e0974['registerInlineAttribute'](_0x43be71));_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2b7fa8,'FORMAT_FONT_SIZE')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2b7fa8,'FORMAT_FONT_FAMILY')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2b7fa8,'FORMAT_FONT_COLOR')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2b7fa8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x353109=this['editor'],_0x5461ad=_0x353109['locale'];_0x353109['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4173d0=>{const _0x4b6780=_0x5461ad['t'];if('formatInline'!=_0x4173d0['type'])return;const {data:_0x51c2c9}=_0x4173d0;if(null!=_0x51c2c9){if('fontSize'==_0x51c2c9['commandName']){const _0x2be9d1=_0x51c2c9['commandParams'][0x0]['value'];if(_0x2be9d1){const _0x4eb93e=_0x4b6780(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x172a4d=>_0x172a4d['model']==_0x2be9d1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20size:*\x20%0',_0x4eb93e)};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x51c2c9['commandName']){const _0x2ba441=_0x51c2c9['commandParams'][0x0]['value'];return _0x2ba441?{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20family:*\x20%0',_0x2ba441)}:{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20family*')};}if('fontColor'==_0x51c2c9['commandName']){const _0x1b5237=_0x51c2c9['commandParams'][0x0]['value'];if(_0x1b5237){const _0x28fd42=_0x1dc0d1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5296d1=>_0x5296d1['model']==_0x1b5237);let _0x4bbaa7=_0x1b5237,_0x46858b='';return _0x28fd42&&(_0x4bbaa7=_0x28fd42['label'],_0x46858b=_0x4b6780(_0x4bbaa7)['toLowerCase']()),{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20color:*\x20%0',_0x46858b)['trim'](),'color':{'value':_0x1b5237,'title':_0x46858b||_0x4bbaa7}};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x51c2c9['commandName']){const _0x3f33c0=_0x51c2c9['commandParams'][0x0]['value'];if(_0x3f33c0){const _0x1deaeb=_0x1dc0d1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x44d7f9=>_0x44d7f9['model']==_0x3f33c0);let _0x4c6b17=_0x3f33c0,_0x472739='';return _0x1deaeb&&(_0x4c6b17=_0x1deaeb['label'],_0x472739=_0x4b6780(_0x4c6b17)['toLowerCase']()),{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20background\x20color:*\x20%0',_0x472739)['trim'](),'color':{'value':_0x3f33c0,'title':_0x472739||_0x4c6b17}};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x16a2ad{['afterInit'](){const _0x4edb34=this['editor'],_0x30ee5f=_0x4edb34['plugins']['get']('TrackChangesEditing'),_0xe91cb1=_0x4edb34['commands']['get']('copyFormat'),_0x487ae5=_0x4edb34['commands']['get']('pasteFormat');_0xe91cb1&&_0x487ae5&&(_0x30ee5f['enableDefaultAttributesIntegration']('pasteFormat'),_0x30ee5f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18adcc=this['editor'],_0x5b1a98=_0x18adcc['locale'];_0x18adcc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d75d=>{if('formatBlock'!=_0x51d75d['type']&&'formatInline'!=_0x51d75d['type'])return;const {data:_0xee4560}=_0x51d75d;if(_0xee4560&&'pasteFormat'===_0xee4560['commandName']){const _0x5613da=[],_0x3eb284=_0xee4560['commandParams'][0x0];for(const [_0x357f4d,_0x3cc20c]of Object['entries'](_0x3eb284))_0x5613da['push'](so(_0x18adcc,_0x357f4d,_0x3cc20c));return _0x5613da['length']?{'type':'format','content':o(_0x5b1a98,'*Set\x20format\x20to:*\x20%0',_0x5613da['join'](',\x20'))}:{'type':'format','content':o(_0x5b1a98,'*Remove\x20all\x20formatting*')};}});}}function so(_0x32f051,_0x5f5909,_0xe09c0f){const _0x3e0b17=_0x32f051['locale']['t'],_0x3b92c7=_0x5f5909['split'](/(?=[A-Z])/)['join']('\x20'),_0x3ddefd=_0x3e0b17(_0x3b92c7['charAt'](0x0)['toUpperCase']()+_0x3b92c7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xe09c0f)return _0x3ddefd;if('fontColor'===_0x5f5909||'fontBackgroundColor'===_0x5f5909){const _0x1d3797=_0x1dc0d1(_0x32f051['config']['get']('fontColor.colors'))['find'](_0xe8a471=>_0xe8a471['model']==_0xe09c0f);return _0x3ddefd+'\x20('+(_0x1d3797?_0x3e0b17(_0x1d3797['label'])['toLowerCase']():_0xe09c0f)+')';}if('fontSize'===_0x5f5909&&isNaN(parseFloat(_0xe09c0f))){const _0x1f33c2=_0x32f051['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x32f051['config']['get']('fontSize.options'))['find'](_0x291447=>_0x291447['model']==_0xe09c0f);return _0x3ddefd+'\x20('+(_0x1f33c2?_0x3e0b17(_0x1f33c2['title'])['toLowerCase']():_0xe09c0f)+')';}return _0x3ddefd+'\x20('+_0xe09c0f+')';}class tt extends _0x16a2ad{['_headingOptions'];['afterInit'](){const _0x1fdded=this['editor'];if(!_0x1fdded['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1fdded['config']['get']('heading.options');const _0x3a5ec6=_0x1fdded['locale'],_0x1a8e8c=_0x1fdded['plugins']['get']('TrackChangesEditing');_0x1a8e8c['enableDefaultAttributesIntegration']('heading');for(const _0x3e083d of this['_headingOptions'])'paragraph'!=_0x3e083d['model']&&_0x1a8e8c['descriptionFactory']['registerElementLabel'](_0x3e083d['model'],_0x53656a=>{const _0x2bd038=this['_getHeadingLevel'](_0x3e083d['model']);return null!==_0x2bd038?_0x1112b7(_0x53656a,_0x2bd038):_0x4d8199(_0x53656a,_0x3e083d['title']);});function _0x1112b7(_0x114948,_0x2027e9){return o(_0x3a5ec6,'ELEMENT_HEADING',[_0x114948,_0x2027e9]);}function _0x4d8199(_0x44776d,_0x186719){return o(_0x3a5ec6,'ELEMENT_HEADING_CUSTOM',[_0x44776d,_0x186719]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50d6d8=this['editor'],_0x4b9564=_0x50d6d8['locale'];function _0x3a118b(_0x1e1dab,_0x1f223b){return o(_0x4b9564,'ELEMENT_HEADING_CUSTOM',[_0x1e1dab,_0x1f223b]);}_0x50d6d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f3d4a=>{if('formatBlock'!=_0x3f3d4a['type'])return;const {data:_0xf531d8}=_0x3f3d4a;if(_0xf531d8&&'heading'==_0xf531d8['commandName']){const _0x48160e=_0xf531d8['commandParams'][0x0]['value'],_0x98cff5=this['_getHeadingLevel'](_0x48160e);if(null!==_0x98cff5)return{'type':'format','content':o(_0x4b9564,'*Change\x20to:*\x20%0',(_0x21f734=0x1,_0x2f92e6=_0x98cff5,o(_0x4b9564,'ELEMENT_HEADING',[_0x21f734,_0x2f92e6])))};const _0x5c568a=this['_headingOptions']['find'](_0xf0b1c0=>_0xf0b1c0['model']===_0x48160e)['title'];return{'type':'format','content':o(_0x4b9564,'*Change\x20to:*\x20%0',_0x3a118b(0x1,_0x5c568a))};}var _0x21f734,_0x2f92e6;});}['_getHeadingLevel'](_0x41e361){const _0x5ed710=_0x41e361['match'](/^heading(\d+)/);if(_0x5ed710)return _0x5ed710[0x1];const _0x2e38d7=this['_headingOptions']?.['find'](_0x595a00=>_0x595a00['model']==_0x41e361);if(_0x2e38d7&&_0x2e38d7['view']){const _0x17690e=_0x2e38d7['view'],_0x32755b=(_0x17690e['name']??_0x17690e)['match'](/^h(\d+)/);if(_0x32755b)return _0x32755b[0x1];}return null;}}class et extends _0x16a2ad{['afterInit'](){const _0x4ec50e=this['editor'];if(!_0x4ec50e['plugins']['has']('HighlightEditing'))return;const _0x33a78d=_0x4ec50e['plugins']['get']('TrackChangesEditing'),_0x2314d5=_0x4ec50e['locale'];_0x33a78d['enableDefaultAttributesIntegration']('highlight'),_0x33a78d['registerInlineAttribute']('highlight'),_0x33a78d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2314d5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8077=this['editor'],_0x5b44a3=_0x4b8077['locale'];_0x4b8077['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x596292=>{if('formatInline'!=_0x596292['type'])return;const {data:_0x4be782}=_0x596292;if(_0x4be782&&'highlight'==_0x4be782['commandName']){const _0x253ffd=_0x5b44a3['t'],_0x2472e2=_0x4be782['commandParams'][0x0]['value'];if(_0x2472e2){const _0x2629fd=_0x4b8077['config']['get']('highlight.options')['find'](_0x3ca4c6=>_0x3ca4c6['model']==_0x2472e2),_0x2257bb=_0x253ffd(_0x2629fd['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b44a3,'*Set\x20highlight:*\x20%0',_0x2257bb),'color':{'value':_0x2629fd['color'],'title':_0x2629fd['title']}};}return{'type':'format','content':o(_0x5b44a3,'*Remove\x20highlight*',o(_0x5b44a3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x16a2ad{['afterInit'](){const _0x5c6abb=this['editor'];if(!_0x5c6abb['plugins']['has']('HorizontalLineEditing'))return;_0x5c6abb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xde68bd=_0x5c6abb['plugins']['get']('TrackChangesEditing'),_0x120685=_0x5c6abb['locale'];_0xde68bd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4f2d45=>o(_0x120685,'ELEMENT_HORIZONTAL_LINE',_0x4f2d45)),_0x5c6abb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x541b99,{writer:_0x42a7b2,options:_0x3b07bd})=>{if(!_0x3b07bd['showSuggestionHighlights'])return null;const _0x1f4c8c=_0x42a7b2['createContainerElement']('div'),_0x166328=_0x42a7b2['createEmptyElement']('hr');return _0x42a7b2['addClass']('ck-horizontal-line',_0x1f4c8c),_0x42a7b2['insert'](_0x42a7b2['createPositionAt'](_0x1f4c8c,0x0),_0x166328),_0x1f4c8c;},'converterPriority':'high'});}}class st extends _0x16a2ad{['afterInit'](){const _0x4faa9c=this['editor'];if(!_0x4faa9c['plugins']['has']('HtmlEmbed'))return;const _0x180aee=_0x4faa9c['plugins']['get']('TrackChangesEditing'),_0x238e17=_0x4faa9c['locale'];_0x180aee['descriptionFactory']['registerElementLabel']('rawHtml',_0x294bbc=>o(_0x238e17,'ELEMENT_HTML_EMBED',_0x294bbc)),_0x180aee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x180aee['registerBlockAttribute']('value'),_0x180aee['descriptionFactory']['registerDescriptionCallback'](_0x3c1490=>{if('attribute'!=_0x3c1490['type'])return;const {data:_0x5785b9}=_0x3c1490;if(_0x5785b9&&'value'==_0x5785b9['key']&&_0x3c1490['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b1ccb=o(_0x238e17,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x238e17,'*Change\x20%0\x20content*',_0x2b1ccb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0093=this['editor'],_0x4cc50b=_0x3e0093['locale'];_0x3e0093['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2af5=>{if('formatBlock'!=_0xd2af5['type'])return;const {data:_0x46d2cf}=_0xd2af5;if(_0x46d2cf&&'htmlEmbed'==_0x46d2cf['commandName']){const _0x3dcb9b=o(_0x4cc50b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cc50b,'*Change\x20%0\x20content*',_0x3dcb9b)};}});}}class nt extends _0x16a2ad{['afterInit'](){const _0x1d37b7=this['editor'];if(!_0x1d37b7['plugins']['has']('ImageEditing'))return;const _0x11b19f=_0x1d37b7['plugins']['get']('TrackChangesEditing'),_0x54c197=_0x1d37b7['plugins']['get']('ImageUtils'),_0x2b96fc=_0x1d37b7['locale'];_0x11b19f['enableCommand']('insertImage'),_0x11b19f['descriptionFactory']['registerElementLabel']('imageBlock',_0x3fd046=>o(_0x2b96fc,'ELEMENT_IMAGE',_0x3fd046)),_0x11b19f['descriptionFactory']['registerElementLabel']('imageInline',_0x36f2b5=>o(_0x2b96fc,'ELEMENT_INLINE_IMAGE',_0x36f2b5)),_0x11b19f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2b96fc,'ELEMENT_CAPTION')),_0x1d37b7['plugins']['has']('ImageUploadEditing')&&_0x11b19f['enableCommand']('uploadImage'),_0x1d37b7['plugins']['has']('ImageBlockEditing')&&_0x1d37b7['plugins']['has']('ImageInlineEditing')&&(_0x11b19f['enableCommand']('imageTypeInline',(_0x33adcb,_0xcd588c)=>{const _0x43ca56=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']);_0x1d37b7['model']['change'](()=>{_0x11b19f['markBlockFormat'](_0x43ca56,{'commandName':'imageTypeInline','commandParams':[_0xcd588c]},[],'convertBlockImageToInline');});}),_0x11b19f['enableCommand']('imageTypeBlock',(_0x369c8e,_0x57fb6c)=>{_0x1d37b7['model']['change'](_0x563151=>{let _0x1e9c44=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x58d60c=_0x563151['createRangeOn'](_0x1e9c44);const _0x434a7d=_0x10cc9c['fromPosition'](_0x58d60c['start'],'toPrevious'),_0x8e543f=_0x10cc9c['fromPosition'](_0x58d60c['end'],'toNext');_0x11b19f['forceDefaultExecution'](()=>_0x369c8e(_0x57fb6c)),_0x1e9c44=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x58d60c=_0x563151['createRangeOn'](_0x1e9c44);const _0x34eae9=_0x563151['createRange'](_0x434a7d,_0x8e543f);_0x434a7d['detach'](),_0x8e543f['detach'](),_0x11b19f['markBlockFormat'](_0x1e9c44,{'commandName':'imageTypeInline','commandParams':[_0x57fb6c]},[],'convertInlineImageToBlock'),_0x34eae9['start']['isBefore'](_0x58d60c['start'])&&_0x11b19f['markInsertion'](_0x563151['createRange'](_0x34eae9['start'],_0x58d60c['start']),'convertInlineImageToBlock'),_0x58d60c['end']['isBefore'](_0x34eae9['end'])&&_0x11b19f['markInsertion'](_0x563151['createRange'](_0x58d60c['end'],_0x34eae9['end']),'convertInlineImageToBlock');});}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11b19f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x46e348])=>{const _0x4d4708=_0x11b19f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d87d6=_0x46e348['start'],_0x56d38d=_0x46e348['end'];const _0xc9b6df=_0x1d37b7['model']['schema']['getNearestSelectionRange'](_0x3d87d6,'backward'),_0xa7c55b=_0x1d37b7['model']['schema']['getNearestSelectionRange'](_0x56d38d,'forward');_0xc9b6df['isCollapsed']&&(_0x3d87d6=_0xc9b6df['start']),_0xa7c55b['isCollapsed']&&(_0x56d38d=_0xa7c55b['end']),_0x4d4708([_0x1d37b7['model']['createRange'](_0x3d87d6,_0x56d38d)]);}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x39a112),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x39a112)),_0x1d37b7['plugins']['has']('ImageCaptionEditing')&&(_0x11b19f['enableCommand']('toggleImageCaption',(_0x133a8e,_0x4fae0a)=>{const _0x54fc7d=_0x1d37b7['plugins']['get']('ImageCaptionUtils');let _0x190b1a=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x45418e=_0x54fc7d['getCaptionFromImageModelElement'](_0x190b1a);_0x1d37b7['model']['change'](()=>{if(_0x45418e)return void _0x11b19f['markDeletion'](_0x1d37b7['model']['createRangeOn'](_0x45418e));const _0x58d12f=_0x54c197['isBlockImage'](_0x190b1a);_0x133a8e(_0x4fae0a),_0x190b1a=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x45418e=_0x54fc7d['getCaptionFromImageModelElement'](_0x190b1a),_0x11b19f['markInsertion'](_0x1d37b7['model']['createRangeOn'](_0x45418e),_0x58d12f?null:'imageCaption');});}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x39a112));const _0x479d5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ecca3(_0x524203,_0x43497b){const _0x55f889=_0x479d5d['findIndex'](({type:_0x34756f,subType:_0x8ef564})=>_0x524203['type']==_0x34756f&&_0x524203['subType']==_0x8ef564),_0x29af3d=_0x479d5d['findIndex'](({type:_0x25c3a7,subType:_0x4ca356})=>_0x43497b['type']==_0x25c3a7&&_0x43497b['subType']==_0x4ca356);if(_0x55f889<0x0||_0x29af3d<0x0)return!0x1;const _0x32c052=_0x524203['getFirstRange'](),_0x50928e=_0x43497b['getFirstRange']();if((0x0==_0x55f889||0x1==_0x55f889)&&0x2==_0x29af3d&&_0x32c052['isIntersecting'](_0x50928e))return!0x0;if(0x2==_0x55f889&&0x3==_0x29af3d){const _0x5b4eb4=_0x11b19f['_findSuggestions'](_0x32c052,'insertion')['filter'](({suggestion:_0x19c499,meta:_0x8aa3db})=>_0x8aa3db['isOwn']&&'convertInlineImageToBlock'==_0x19c499['subType']);if(_0x5b4eb4['length']>0x1&&_0x50928e['end']['isEqual'](_0x32c052['start']))return!0x0;if(0x1==_0x5b4eb4['length']&&(_0x32c052['start']['isEqual'](_0x50928e['end'])||_0x32c052['end']['isEqual'](_0x50928e['start'])))return!0x0;}if(0x3==_0x55f889&&0x3==_0x29af3d&&_0x32c052['start']['isBefore'](_0x50928e['start'])){const _0x124ca8=_0x32c052['end']['nodeAfter'],_0xe6a82a=_0x50928e['start']['nodeBefore'];return _0x54c197['isBlockImage'](_0x124ca8)&&_0x124ca8===_0xe6a82a;}return!0x1;}function _0x39a112(_0x2d6949,_0x14cd9c){return _0x1ecca3(_0x2d6949,_0x14cd9c)?[_0x2d6949,_0x14cd9c]:_0x1ecca3(_0x14cd9c,_0x2d6949)?[_0x14cd9c,_0x2d6949]:null;}_0x1d37b7['plugins']['has']('ImageResize')&&(_0x11b19f['enableDefaultAttributesIntegration']('resizeImage'),_0x11b19f['registerBlockAttribute']('resizedWidth'),_0x11b19f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2b96fc,'FORMAT_IMAGE_SIZE'))),_0x1d37b7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11b19f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11b19f['registerBlockAttribute']('alt')),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x2250a9=>{if(!!_0x479d5d['find'](({type:_0x2581fd,subType:_0x42f994})=>_0x2250a9['type']==_0x2581fd&&_0x2250a9['subType']==_0x42f994))return _0x2250a9['previous']?{}:void 0x0;}),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x4439d5=>{if('insertion'==_0x4439d5['type']||'deletion'==_0x4439d5['type']){const _0x173ff5=_0x4439d5['getContainedElement']();if(_0x173ff5&&_0x173ff5['is']('element','caption'))return{'type':'insertion'==_0x4439d5['type']?'addObject':'removeObject','element':_0x173ff5,'quantity':0x1};}}),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x5364e7=>'formatBlock'==_0x5364e7['type']&&'convertInlineImageToBlock'==_0x5364e7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5364e7['type']&&'convertBlockImageToInline'==_0x5364e7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x30426d=>{if('attribute'!=_0x30426d['type'])return;const {data:_0x1da8b5}=_0x30426d;if(!_0x1da8b5||'alt'!=_0x1da8b5['key'])return;const _0x2d5698=_0x1da8b5['newValue'];return _0x2d5698?{'type':'format','content':o(_0x2b96fc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d5698+'\x22')}:{'type':'format','content':o(_0x2b96fc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x447c2d=this['editor'],_0x4042f6=_0x447c2d['locale'];_0x447c2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432f10=>{if('formatBlock'!=_0x432f10['type']&&'formatInline'!=_0x432f10['type'])return;const {data:_0x166ad8}=_0x432f10;if(_0x166ad8){if('imageTextAlternative'==_0x166ad8['commandName']){const _0xcba5d7=_0x166ad8['commandParams'][0x0]['newValue'];return _0xcba5d7?{'type':'format','content':o(_0x4042f6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcba5d7+'\x22')}:{'type':'format','content':o(_0x4042f6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x166ad8['commandName']){const _0x3743a5=_0x166ad8['commandParams'][0x0]['width'];return _0x3743a5?{'type':'format','content':o(_0x4042f6,'*Set\x20image\x20width:*\x20%0',_0x3743a5)}:{'type':'format','content':o(_0x4042f6,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x23621b=this['editor']['locale'],_0x3c6fa9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6fa9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3c6fa9['registerBlockAttribute']('src'),_0x3c6fa9['descriptionFactory']['registerDescriptionCallback'](_0x44f64c=>{if('attribute'!=_0x44f64c['type'])return;const {data:_0x10ace0}=_0x44f64c;return _0x10ace0&&'src'==_0x10ace0['key']?_0x10ace0['newValue']&&_0x10ace0['oldValue']?{'type':'format','content':o(_0x23621b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31cbc9=this['editor']['plugins']['get']('TrackChangesEditing');_0x31cbc9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x31cbc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31cbc9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x31cbc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10da4a=this['editor'],_0x54f33c=_0x10da4a['locale'];_0x10da4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b849=>{if('formatBlock'!=_0x34b849['type']&&'formatInline'!=_0x34b849['type'])return;const {data:_0x456eef}=_0x34b849;if(!_0x456eef||'replaceImageSource'!=_0x456eef['commandName'])return;return{'type':'format','content':o(_0x54f33c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x16a2ad{['afterInit'](){const _0x511d18=this['editor'];if(!_0x511d18['plugins']['has']('ImageStyleEditing'))return;const _0x289caf=_0x511d18['plugins']['get']('TrackChangesEditing'),_0x597397=_0x511d18['plugins']['get']('ImageUtils'),_0x456e8b={};_0x289caf['enableCommand']('imageStyle',(_0x1b2ac5,_0x1ce4e0)=>{const _0x4e6e77=_0x511d18['plugins']['get']('Users')['me'],_0x5b60be=_0x511d18['commands']['get']('imageStyle');let _0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),_0x2c276d=_0x511d18['model']['createRangeOn'](_0x5ceb79),_0x427cb5=_0x5b60be['value'];if(_0x427cb5==_0x1ce4e0['value'])return;const _0x4865de={'commandName':'imageStyle','commandParams':[_0x1ce4e0],'formatGroupId':_0x31d1bc()};_0x511d18['model']['change'](()=>{if(_0x289caf['getSuggestions']()['filter'](_0x27aebf=>_0x27aebf['isInContent']&&_0x4e6e77==_0x27aebf['author']&&('formatBlock'==_0x27aebf['type']||'formatInline'==_0x27aebf['type'])&&('imageStylePreApply'==_0x27aebf['subType']||'imageStylePostApply'==_0x27aebf['subType'])&&_0x27aebf['getFirstRange']()['isEqual'](_0x2c276d))['forEach'](_0x5e1f53=>_0x289caf['discardSuggestion'](_0x5e1f53['head'])),_0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),_0x2c276d=_0x511d18['model']['createRangeOn'](_0x5ceb79),_0x5b60be['refresh'](),_0x511d18['commands']['get']('imageTypeInline')['refresh'](),_0x511d18['commands']['get']('imageTypeBlock')['refresh'](),_0x427cb5=_0x5b60be['value'],_0x427cb5!=_0x1ce4e0['value'])return _0x597397['isInlineImage'](_0x5ceb79)&&_0x5b60be['shouldConvertImageType'](_0x1ce4e0['value'],_0x5ceb79)?(_0x1b2ac5({..._0x1ce4e0,'setImageSizes':!0x1}),_0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),void _0x289caf['markBlockFormat'](_0x5ceb79,{..._0x4865de,'commandReversedParams':[{'value':_0x427cb5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x597397['isBlockImage'](_0x5ceb79)?_0x289caf['markBlockFormat'](_0x5ceb79,_0x4865de,[],'imageStylePostApply'):_0x289caf['markInlineFormat'](_0x2c276d,_0x4865de,'imageStylePostApply'));});});for(const _0x4462b8 of _0x511d18['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x456e8b[_0x4462b8['name']]=_0x4462b8['title']['toLowerCase']();_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x221213])=>{_0x597397['setImageNaturalSizeAttributes'](_0x221213['getContainedElement']());}),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xa7434d,_0x1821e3)=>{_0x289caf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xa7434d,{'commandName':_0x1821e3['commandName'],'commandParams':_0x1821e3['commandReversedParams']});}),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2d03e4,_0x144cce){if(_0x1ee099(_0x2d03e4,_0x144cce))return[_0x2d03e4,_0x144cce];if(_0x1ee099(_0x144cce,_0x2d03e4))return[_0x144cce,_0x2d03e4];return null;});const _0x3c7da0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ee099(_0x41ada0,_0x103621){const _0x435d73=_0x3c7da0['findIndex'](({type:_0x18752b,subType:_0x57fdb3})=>_0x41ada0['type']==_0x18752b&&_0x41ada0['subType']==_0x57fdb3),_0x557666=_0x3c7da0['findIndex'](({type:_0x1a88b2,subType:_0x4fbcec})=>_0x103621['type']==_0x1a88b2&&_0x103621['subType']==_0x4fbcec);if(_0x435d73<0x0||_0x557666<0x0)return!0x1;const _0x25e8ca=_0x41ada0['getFirstRange'](),_0xbc9d2b=_0x103621['getFirstRange']();if((0x0==_0x435d73||0x1==_0x435d73)&&0x2==_0x557666&&_0x25e8ca['isIntersecting'](_0xbc9d2b))return!0x0;if(0x2==_0x435d73&&0x3==_0x557666){const _0x50074c=_0x289caf['_findSuggestions'](_0x25e8ca,'insertion')['filter'](({suggestion:_0x36683f,meta:_0x2439c5})=>_0x2439c5['isOwn']&&'convertInlineImageToBlock'==_0x36683f['subType']);if(_0x50074c['length']>0x1&&_0xbc9d2b['end']['isEqual'](_0x25e8ca['start']))return!0x0;if(0x1==_0x50074c['length']&&(_0x25e8ca['start']['isEqual'](_0xbc9d2b['end'])||_0x25e8ca['end']['isEqual'](_0xbc9d2b['start'])))return!0x0;}if(0x3==_0x435d73&&0x3==_0x557666&&_0x25e8ca['start']['isBefore'](_0xbc9d2b['start'])){const _0x684923=_0x25e8ca['end']['nodeAfter'],_0x63c7b9=_0xbc9d2b['start']['nodeBefore'];return _0x597397['isBlockImage'](_0x684923)&&_0x684923===_0x63c7b9;}return!0x1;}_0x511d18['model']['document']['registerPostFixer'](()=>{let _0x44d23c=!0x1;const _0x1bc03a=Array['from'](_0x511d18['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x499e08,data:_0xbf613d}of _0x1bc03a){const {group:_0x3a7ef2,type:_0x3fb111,subType:_0x5068b2,id:_0x5017ae}=_0x289caf['_splitMarkerName'](_0x499e08);if('suggestion'==_0x3a7ef2&&_0x289caf['hasSuggestion'](_0x5017ae)){if('formatBlock'==_0x3fb111&&('imageStylePreApply'==_0x5068b2||'imageStylePostApply'==_0x5068b2)){const _0x489745=_0x289caf['getSuggestion'](_0x5017ae);if(_0xbf613d['newRange']){const _0xd83fbd=_0x489745['getFirstRange']()['getContainedElement']();if(_0x597397['isBlockImage'](_0xd83fbd))continue;_0x289caf['discardSuggestion'](_0x489745),_0x44d23c=!0x0;}}if('insertion'==_0x3fb111&&'imageCaption'==_0x5068b2&&!_0xbf613d['newRange']){const _0x4d221b=_0x289caf['getSuggestion'](_0x5017ae);_0x4d221b['next']&&_0x4d221b['next']['isInContent']&&(_0x289caf['discardSuggestion'](_0x4d221b['next']),_0x44d23c=!0x0);}}}return _0x44d23c;}),this['_registerLegacyDescription'](_0x456e8b);}['_registerLegacyDescription'](_0x520f97){const _0x3562e0=this['editor'],_0x30d7b0=_0x3562e0['locale'];_0x3562e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8e28=>{if('formatBlock'!=_0x2c8e28['type']&&'formatInline'!=_0x2c8e28['type'])return;const {data:_0x39b308}=_0x2c8e28;if(!_0x39b308||'imageStyle'!=_0x39b308['commandName'])return;const _0x362ddc=_0x39b308['commandParams'][0x0]['value'];return _0x4c9041('side'===_0x362ddc?o(_0x30d7b0,'FORMAT_SIDE_IMAGE'):_0x520f97[_0x362ddc]||_0x362ddc);function _0x4c9041(_0x34f6ce){return{'type':'format','content':o(_0x30d7b0,'*Format:*\x20%0',_0x34f6ce)};}});}}class at extends _0x16a2ad{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1405b8){super(_0x1405b8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x315be0=this['editor'],_0x32a908=_0x315be0['commands']['get']('importWord'),_0x2c2476=_0x315be0['commands']['get']('trackChanges');_0x32a908&&(_0x32a908['on']('execute',(_0x29638b,[,_0x4b1d71])=>{this['_trackChangesValueDuringImport']=_0x2c2476['value'],_0x4b1d71['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x32a908,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x32a908,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c2476['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x315be0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x212f21,_0x7898aa){const {suggestions:_0xd54fc8}=_0x7898aa,_0x3bf4be=this['editor']['commands']['get']('trackChanges'),_0x36629e=_0x3bf4be['value'];this['_trackChangesValueDuringImport']!==_0x36629e&&(_0x3bf4be['execute'](),this['_trackChangesExecuted']=!0x0),_0xd54fc8&&_0xd54fc8['forEach'](({id:_0x12b59e,type:_0x54207b,author:_0x46ab48,created_at:_0x53f5ed})=>{const _0x5b3424={'id':_0x12b59e,'type':_0x54207b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46ab48,'createdAt':_0x53f5ed?new Date(_0x53f5ed):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5b3424);});}}class ct extends _0x16a2ad{['afterInit'](){const _0x347bfd=this['editor'],_0x15ac16=_0x347bfd['plugins']['get']('TrackChangesEditing');if(_0x347bfd['plugins']['has']('IndentEditing')&&(_0x15ac16['enableCommand']('indent'),_0x15ac16['enableCommand']('outdent')),_0x347bfd['plugins']['has']('IndentBlock')){for(const _0x2c26ba of['indentBlock','outdentBlock'])_0x15ac16['enableDefaultAttributesIntegration'](_0x2c26ba);}const _0x118f0d=_0x347bfd['locale'];_0x15ac16['registerBlockAttribute']('blockIndent'),_0x15ac16['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x118f0d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f75c=this['editor'],_0x5b838c=_0x57f75c['locale'],_0x5d074c=_0x57f75c['plugins']['get']('TrackChangesEditing');_0x5d074c['descriptionFactory']['registerDescriptionCallback'](_0x52cc43=>{if('formatBlock'!=_0x52cc43['type'])return;const {data:_0x30b396}=_0x52cc43;if(!_0x30b396)return;if('indentBlock'!=_0x30b396['commandName']&&'outdentBlock'!=_0x30b396['commandName'])return;const _0x2e9e85=_0x52cc43['getItems']()[0x0],_0x1e2629=_0x5d074c['descriptionFactory']['getItemLabel'](_0x2e9e85);return'indentBlock'==_0x30b396['commandName']?{'type':'format','content':o(_0x5b838c,'*Indent:*\x20%0',_0x1e2629)}:'outdentBlock'==_0x30b396['commandName']?{'type':'format','content':o(_0x5b838c,'*Outdent:*\x20%0',_0x1e2629)}:void 0x0;});}}class ut extends _0x16a2ad{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x16a2ad{['afterInit'](){const _0x2f60f3=this['editor'];if(!_0x2f60f3['plugins']['has']('LinkEditing'))return;const _0x2fe860=_0x2f60f3['plugins']['get']('TrackChangesEditing'),_0x525a9b=_0x2f60f3['commands']['get']('link');_0x2fe860['enableDefaultAttributesIntegration']('link'),_0x2fe860['enableDefaultAttributesIntegration']('unlink'),_0x2fe860['registerInlineAttribute']('linkHref');for(const _0x25ec2a of _0x525a9b['manualDecorators'])_0x2fe860['registerInlineAttribute'](_0x25ec2a['id']),_0x2fe860['descriptionFactory']['registerAttributeLabel'](_0x25ec2a['id'],'link\x20('+_0x25ec2a['label']['toLowerCase']()+')');_0x2fe860['descriptionFactory']['registerDescriptionCallback'](_0x221f9c=>{if('attribute'!=_0x221f9c['type'])return;const {data:_0x5efef4}=_0x221f9c;if(!_0x5efef4||'linkHref'!=_0x5efef4['key'])return;const _0x52f6fc=_0x5efef4['newValue'],_0x503842=_0x2f60f3['locale'];return{'type':'format','content':null==_0x52f6fc?o(_0x503842,'*Remove\x20link*'):o(_0x503842,'*Set\x20link:*\x20%0','\x22'+_0x52f6fc+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d6d50=this['editor'],_0x68596a=_0x3d6d50['locale'];_0x3d6d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47af01=>{if('formatInline'!=_0x47af01['type'])return;const {data:_0x121f62}=_0x47af01;if(_0x121f62){if('link'==_0x121f62['commandName']){const _0x1f827c=_0x121f62['commandParams'][0x0];return{'type':'format','content':o(_0x68596a,'*Set\x20link:*\x20%0','\x22'+_0x1f827c+'\x22')};}return'unlink'==_0x121f62['commandName']?{'type':'format','content':o(_0x68596a,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x16a2ad{['afterInit'](){const _0x31911e=this['editor'],_0x5834d2=_0x31911e['locale'];if(!_0x31911e['plugins']['has']('LegacyListEditing'))return;const _0x13f63c=_0x31911e['plugins']['get']('TrackChangesEditing'),_0x57f1a3=_0x31911e['plugins']['has']('LegacyTodoListEditing');function _0x45e8ed(_0x5c243e){return()=>{const _0x3420a5=_0x31911e['model']['document']['selection'],_0x2eb20b=_0x31911e['commands']['get'](_0x5c243e);if(_0x2eb20b['value'])return void _0x31911e['execute']('paragraph',{});const _0x25b1b5=_0x5c243e['slice'](0x0,-0x4),_0x51ac23=function(_0x2f7148,_0x4acc7c,_0x4a3835){let _0x288677=Array['from'](_0x2f7148)['filter'](_0x5eb67b=>function(_0x352dcb,_0x5b51aa){return _0x5b51aa['checkChild'](_0x352dcb['parent'],'listItem')&&!_0x5b51aa['isObject'](_0x352dcb);}(_0x5eb67b,_0x4a3835));_0x288677=_0x288677['filter'](_0x219dad=>!_0x219dad['is']('element','listItem')||_0x219dad['getAttribute']('listType')!=_0x4acc7c);const _0x2b6f34=new Set();for(const _0x5248e7 of _0x288677)_0x5248e7['is']('element','listItem')?_0x2b6f34['add'](fe(_0x5248e7)):_0x2b6f34['add'](_0x5248e7);return Array['from'](_0x2b6f34);}(_0x3420a5['getSelectedBlocks'](),_0x25b1b5,_0x31911e['model']['schema']);_0x31911e['model']['change'](()=>{for(const _0x5596d5 of _0x51ac23)_0x13f63c['markBlockFormat'](_0x5596d5,{'commandName':_0x5c243e,'commandParams':[{'forceValue':!_0x2eb20b['value']}],'formatGroupId':'blockName'},ue(_0x5596d5));});};}function _0x5eac82(_0x2c2b1d){return()=>{const _0x5843f2=function(_0x8e72f1){let _0x4b776c=Array['from'](_0x8e72f1);const _0x1925ae=_0x4b776c['findIndex'](_0x3793a2=>'listItem'!=_0x3793a2['name']);return _0x1925ae>-0x1&&(_0x4b776c=_0x4b776c['slice'](0x0,_0x1925ae)),_0x4b776c;}(_0x31911e['model']['document']['selection']['getSelectedBlocks']()),_0x2fceb6=_0x31911e['model']['createRange'](_0x31911e['model']['createPositionAt'](_0x5843f2[0x0],'before'),_0x31911e['model']['createPositionAt'](_0x5843f2[_0x5843f2['length']-0x1],'end'));_0x31911e['model']['change'](()=>{_0x13f63c['markBlockFormat'](_0x2fceb6,{'commandName':_0x2c2b1d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x588b1f){const _0x72958c=new Set();for(const _0x2fe062 of _0x588b1f){let _0x4250c5=_0x2fe062['nextSibling'];for(;_0x4250c5&&_0x4250c5['getAttribute']('listIndent')>_0x2fe062['getAttribute']('listIndent');)_0x72958c['add'](_0x4250c5),_0x4250c5=_0x4250c5['nextSibling'];}return Array['from'](_0x72958c);}(_0x5843f2));});};}_0x13f63c['enableCommand']('numberedList',_0x45e8ed('numberedList')),_0x13f63c['enableCommand']('bulletedList',_0x45e8ed('bulletedList')),_0x57f1a3&&_0x13f63c['enableCommand']('todoList',_0x45e8ed('todoList')),_0x13f63c['enableCommand']('indentList',_0x5eac82('indentList')),_0x13f63c['enableCommand']('outdentList',_0x5eac82('outdentList')),_0x57f1a3&&_0x13f63c['enableCommand']('checkTodoList',()=>{const _0x19c98b=_0x31911e['commands']['get']('checkTodoList'),_0x588819=Array['from'](_0x19c98b['_selectedElements']);_0x588819['filter'](_0x8ec86=>_0x8ec86['getAttribute']('todoListChecked')!=_0x19c98b['value']),_0x31911e['model']['change'](()=>{for(const _0x15ddef of _0x588819)_0x13f63c['markBlockFormat'](_0x15ddef,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19c98b['value']}]});});}),_0x13f63c['descriptionFactory']['registerElementLabel']('listItem',_0x2a00f5=>o(_0x5834d2,'ELEMENT_LIST_ITEM',_0x2a00f5)),_0x13f63c['descriptionFactory']['registerDescriptionCallback'](_0x325adf=>{if('formatBlock'!=_0x325adf['type']&&'formatInline'!=_0x325adf['type'])return;const {data:_0x158538}=_0x325adf;if(_0x158538){if('numberedList'==_0x158538['commandName']||'bulletedList'==_0x158538['commandName']||'todoList'==_0x158538['commandName'])switch(_0x158538['commandName']['replace']('List','')){case'bulleted':return _0x49853d(o(_0x5834d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49853d(o(_0x5834d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49853d(o(_0x5834d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x158538['commandName'])return{'type':'format','content':o(_0x5834d2,'*Indent:*\x20%0',o(_0x5834d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x158538['commandName'])return{'type':'format','content':o(_0x5834d2,'*Outdent:*\x20%0',o(_0x5834d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x158538['commandName'])return _0x158538['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5834d2,'*Check\x20item*')}:{'type':'format','content':o(_0x5834d2,'*Uncheck\x20item*')};}function _0x49853d(_0x2b833e){return{'type':'format','content':o(_0x5834d2,'*Change\x20to:*\x20%0',_0x2b833e)};}});}}function fe(_0x44fecd){const _0xb09392=_0x44fecd['getAttribute']('listIndent');if(0x0==_0xb09392)return _0x44fecd;let _0x577ba0=_0x44fecd;for(;_0x44fecd['previousSibling']&&_0x44fecd['previousSibling']['is']('element','listItem');){const _0x44aaa5=_0x44fecd['previousSibling']['getAttribute']('listIndent');if(_0x44aaa5==_0xb09392)_0x577ba0=_0x44fecd['previousSibling'];else{if(_0x44aaa5<_0xb09392)break;}_0x44fecd=_0x44fecd['previousSibling'];}return _0x577ba0;}function ue(_0x2eaef8){const _0x193cfd=[];if(_0x2eaef8['is']('element','listItem')&&_0x2eaef8['getAttribute']('listIndent')>0x0){let _0x33b322=_0x2eaef8['nextSibling'];for(;_0x33b322&&'listItem'==_0x33b322['name']&&_0x33b322['getAttribute']('listIndent')==_0x2eaef8['getAttribute']('listIndent');)_0x193cfd['push'](_0x33b322),_0x33b322=_0x33b322['nextSibling'];}return _0x193cfd;}class W extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x403206=this['editor']['config']['get']('list.properties'),_0x507a92=this['editor']['plugins']['get']('TrackChangesEditing');_0x403206['styles']&&_0x507a92['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x403206['reversed']&&_0x507a92['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x403206['startIndex']&&_0x507a92['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x507a92['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b08b4,_0x3d3707={}){const _0x47a226=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e44a1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47a226['markMultiRangeBlockFormat'](_0x2e44a1,{'commandName':'listStyle','commandParams':[{'type':_0x3d3707['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x31ede1,_0x30a363={}){const _0x4f021b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44bbea=this['_getSuggestionBlocks'](_0x976aa0=>_0x976aa0['is']('element','listItem')&&'numbered'===_0x976aa0['getAttribute']('listType'));if(_0x44bbea['length']<0x1)return;const _0x955b23=_0x44bbea['map'](_0x113cf6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x113cf6,'before'),this['editor']['model']['createPositionAt'](_0x113cf6,0x0)));this['editor']['model']['change'](()=>{_0x4f021b['markMultiRangeBlockFormat'](_0x955b23,{'commandName':'listReversed','commandParams':[{'reversed':_0x30a363['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37a996,_0x13988a={}){const _0x1d53ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5209=this['_getSuggestionBlocks'](_0x2a606c=>_0x2a606c['is']('element','listItem')&&'numbered'===_0x2a606c['getAttribute']('listType'));if(_0x2c5209['length']<0x1)return;const _0x1d465b=_0x2c5209['map'](_0xf609a9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf609a9,'before'),this['editor']['model']['createPositionAt'](_0xf609a9,0x0)));this['editor']['model']['change'](()=>{_0x1d53ad['markMultiRangeBlockFormat'](_0x1d465b,{'commandName':'listStart','commandParams':[{'startIndex':_0x13988a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2d4b81){if('formatBlock'!=_0x2d4b81['type']&&'formatInline'!=_0x2d4b81['type'])return;const _0x38bd28=this['editor']['locale'],{data:_0x28e397}=_0x2d4b81;if(!_0x28e397)return;let _0x2031e7,_0x2a08a0;switch(_0x28e397['commandName']){case'listStyle':_0x2031e7='*Change\x20to:*\x20%0',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7,o(_0x38bd28,this['_getTranslationKeyForListStyle'](_0x28e397['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2031e7=_0x28e397['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7)};break;case'listStart':_0x2031e7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7,_0x28e397['commandParams'][0x0]['startIndex'])};}return _0x2a08a0;}['_getSuggestionBlocksForListStyle'](){const _0x56fc6e=this['editor']['plugins']['get']('LegacyListUtils');let _0x7e9ddb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x7e9ddb[0x0]?.['is']('element','listItem')&&_0x7e9ddb['unshift'](..._0x56fc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x7e9ddb[_0x7e9ddb['length']-0x1]?.['is']('element','listItem')&&_0x7e9ddb['push'](..._0x56fc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x7e9ddb=[...new Set(_0x7e9ddb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x7e9ddb=_0x7e9ddb['filter'](_0x44502b=>_0x44502b['is']('element','listItem'))),_0x7e9ddb;}['_getSuggestionBlocks'](_0x1958f6){const _0x46e3eb=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e4f2d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1958f6)['map'](_0x285078=>{const _0x17b716=this['editor']['model']['createPositionAt'](_0x285078,0x0);return[..._0x46e3eb['getSiblingNodes'](_0x17b716,'backward'),..._0x46e3eb['getSiblingNodes'](_0x17b716,'forward')];})['flat']();return _0x5e4f2d=[...new Set(_0x5e4f2d)],_0x5e4f2d;}['_getTranslationKeyForListStyle'](_0x47e726){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47e726)||'default')['toUpperCase']()+'_LIST_'+_0x47e726['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x16a2ad{['afterInit'](){const _0x5d5e6d=this['editor'];if(!_0x5d5e6d['plugins']['has']('MediaEmbedEditing'))return;const _0x2281a4=_0x5d5e6d['plugins']['get']('TrackChangesEditing'),_0xef94df=_0x5d5e6d['locale'];_0x2281a4['enableCommand']('mediaEmbed'),_0x2281a4['descriptionFactory']['registerElementLabel']('media',_0x3ae1f9=>o(_0xef94df,'ELEMENT_MEDIA',_0x3ae1f9)),_0x5d5e6d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x575d50,{writer:_0x49f015,options:_0x2dbd47})=>{if(_0x2dbd47['showSuggestionHighlights'])return _0x49f015['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d5e6d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ea00f,_0x24a460,_0x5eee1e)=>{_0x5eee1e['options']['showSuggestionHighlights']&&_0x1ea00f['stop']();},{'priority':'high'});}}class mt extends _0x16a2ad{['afterInit'](){const _0x34d7f5=this['editor'];_0x34d7f5['plugins']['has']('MentionEditing')&&_0x34d7f5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x16a2ad{['afterInit'](){const _0x122545=this['editor'];if(!_0x122545['plugins']['has']('MergeFieldsEditing'))return;_0x122545['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x122545['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2d70ef=_0x122545['plugins']['get']('TrackChangesEditing'),_0x54cdaf=_0x122545['locale'];_0x2d70ef['descriptionFactory']['registerElementLabel']('mergeField',_0x444cbc=>o(_0x54cdaf,'ELEMENT_MERGE_FIELD',_0x444cbc)),_0x2d70ef['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x55ef42=>o(_0x54cdaf,'ELEMENT_MERGE_FIELD',_0x55ef42)),_0x2d70ef['descriptionFactory']['registerDescriptionCallback'](_0xbdd563=>{if('insertion'!=_0xbdd563['type']&&'deletion'!=_0xbdd563['type'])return;const _0x3d84fb=_0xbdd563['getContainedElement']();if(null==_0x3d84fb)return;if(!_0x3d84fb['is']('element','mergeField')&&!_0x3d84fb['is']('element','mergeFieldBlock'))return;const _0x19ae73=_0x122545['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3d84fb['getAttribute']('id'));return'insertion'==_0xbdd563['type']?{'type':'insertion','content':o(_0x54cdaf,'*Insert:*\x20%0','\x22'+_0x19ae73+'\x22\x20'+o(_0x54cdaf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x54cdaf,'*Remove:*\x20%0','\x22'+_0x19ae73+'\x22\x20'+o(_0x54cdaf,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x16a2ad{['afterInit'](){const _0xa66258=this['editor'],_0x54173a=_0xa66258['plugins']['get']('TrackChangesEditing');_0xa66258['plugins']['has']('MultiLevelList')&&(_0x54173a['enableDefaultAttributesIntegration']('multiLevelList'),_0x54173a['registerBlockAttribute']('listMarkerStyle'),_0x54173a['descriptionFactory']['registerDescriptionCallback'](_0x42d9e2=>this['handleDescriptions'](_0x42d9e2)));}['handleDescriptions'](_0x16a34e){const _0x118daa=this['editor']['locale'],{data:_0x314cd2}=_0x16a34e,_0x311ed1={'type':'format','content':''};if(_0x314cd2&&'listMarkerStyle'==_0x314cd2['key']){if(!_0x314cd2['oldValue'])return{'type':'format','content':o(_0x118daa,'*Set\x20format:*\x20%0',o(_0x118daa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x314cd2['newValue']+')'};if(!_0x314cd2['newValue']){let _0xc7de0a=_0x16a34e['head'];for(;_0xc7de0a;){if(_0xc7de0a['data']&&'listType'==_0xc7de0a['data']['key']&&_0xc7de0a['data']['newValue'])return _0x311ed1;_0xc7de0a=_0xc7de0a['next'];}return{'type':'format','content':o(_0x118daa,'*Remove\x20format:*\x20%0',o(_0x118daa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x314cd2['oldValue']+')'};}}}}class kt extends _0x16a2ad{['afterInit'](){const _0x2e1ef9=this['editor'];if(!_0x2e1ef9['plugins']['has']('PageBreakEditing'))return;_0x2e1ef9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x147c91=_0x2e1ef9['plugins']['get']('TrackChangesEditing'),_0x6d413b=_0x2e1ef9['locale'];_0x147c91['descriptionFactory']['registerElementLabel']('pageBreak',_0x454e53=>o(_0x6d413b,'ELEMENT_PAGE_BREAK',_0x454e53));}}class bt extends _0x16a2ad{['afterInit'](){const _0xcb8ca0=this['editor'];if(!_0xcb8ca0['plugins']['has']('Paragraph'))return;const _0x49a106=_0xcb8ca0['locale'],_0x5497fd=_0xcb8ca0['plugins']['get']('TrackChangesEditing');_0x5497fd['descriptionFactory']['registerElementLabel']('paragraph',_0x302694=>o(_0x49a106,'ELEMENT_PARAGRAPH',_0x302694)),_0x5497fd['enableDefaultAttributesIntegration']('paragraph'),_0x5497fd['enableCommand']('insertParagraph'),_0xcb8ca0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xcb8ca0),{'priority':'highest'}),_0xcb8ca0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e359a,_0x153cad,_0x216c0e)=>{_0x216c0e['options']['showSuggestionHighlights']&&nr(_0xcb8ca0,{'showActiveMarker':!0x1})(_0x4e359a,_0x153cad,_0x216c0e);},{'priority':'highest'});const _0x1a7e65=_0x5497fd['descriptionFactory'];_0x1a7e65['registerDescriptionCallback'](_0x2322dc=>{if('insertion'!==_0x2322dc['type'])return;const {start:_0x10bfec,end:_0x2e0ed0}=_0x2322dc['getFirstRange']();if(!_0x10bfec['isTouching'](_0x2e0ed0)||!_0x10bfec['nodeAfter'])return;const _0x30faaa=_0xcb8ca0['model']['schema'],_0x2a2176=_0x10bfec['nodeAfter'];return _0x30faaa['isBlock'](_0x2a2176)&&!_0x30faaa['isLimit'](_0x2a2176)&&_0x30faaa['checkChild'](_0x2a2176,'$text')?{'type':'insertion','content':o(_0x49a106,'*Insert:*\x20%0',_0x1a7e65['getItemLabel'](_0x2a2176,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42a4c9=this['editor'],_0x3362c9=_0x42a4c9['locale'];_0x42a4c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df486=>{if('formatBlock'!=_0x5df486['type'])return;const {data:_0x2a2f50}=_0x5df486;return _0x2a2f50&&'paragraph'==_0x2a2f50['commandName']?{'type':'format','content':o(_0x3362c9,'*Change\x20to:*\x20%0',o(_0x3362c9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x386f76,{showActiveMarker:_0x52cf42=!0x0}={}){return(_0x27ad06,_0x250326,_0x1c581f)=>{const _0x2865a9=_0x386f76['plugins']['get']('TrackChangesEditing'),_0x3bbe24=_0x250326['markerRange']['start'],_0x354d97=_0x250326['markerRange']['end'],_0x192e4a=_0x386f76['model']['schema'];if(!_0x3bbe24['isTouching'](_0x354d97)||!_0x3bbe24['nodeAfter'])return;const _0x4b30f9=_0x3bbe24['nodeAfter'];if(_0x192e4a['isBlock'](_0x4b30f9)&&!_0x192e4a['isLimit'](_0x4b30f9)&&_0x192e4a['checkChild'](_0x4b30f9,'$text')){if(!_0x1c581f['consumable']['consume'](_0x250326['markerRange'],_0x27ad06['name']))return;const {authorId:_0x764827}=_0x2865a9['_splitMarkerName'](_0x250326['markerName']),_0x408eb4=_0x1c581f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x764827}),_0x3eb108=_0x1c581f['mapper']['toViewPosition'](_0x354d97);_0x52cf42&&_0x2865a9['activeMarkers']['includes'](_0x250326['markerName'])&&_0x1c581f['writer']['addClass']('ck-suggestion-marker--active',_0x408eb4),_0x1c581f['writer']['insert'](_0x3eb108,_0x408eb4),_0x1c581f['mapper']['bindElementToMarker'](_0x408eb4,_0x250326['markerName']);}};}class wt extends _0x16a2ad{['afterInit'](){const _0x46b383=this['editor'];if(!_0x46b383['plugins']['has']('RemoveFormatEditing'))return;_0x46b383['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d0860=this['editor'];_0x4d0860['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43425e=>{if('formatBlock'!=_0x43425e['type']&&'formatInline'!=_0x43425e['type'])return;const {data:_0x35c1e2}=_0x43425e;return _0x35c1e2&&'removeFormat'==_0x35c1e2['commandName']?{'type':'format','content':o(_0x4d0860['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x16a2ad{['afterInit'](){const _0x3126bb=this['editor'];if(!_0x3126bb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4397e6=_0x3126bb['plugins']['get']('TrackChangesEditing');_0x4397e6['enableCommand']('goToPreviousRestrictedEditingException'),_0x4397e6['enableCommand']('goToNextRestrictedEditingException');const _0x26ef28=_0x3126bb['plugins']['get']('RestrictedEditingModeEditing');_0x26ef28['enableCommand']('trackChanges'),_0x26ef28['enableCommand']('acceptSuggestion'),_0x26ef28['enableCommand']('discardSuggestion'),_0x26ef28['enableCommand']('acceptAllSuggestions'),_0x26ef28['enableCommand']('discardAllSuggestions'),_0x26ef28['enableCommand']('acceptSelectedSuggestions'),_0x26ef28['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x16a2ad{static get['requires'](){return[_0x3bdf00];}['init'](){const _0x190535=this['editor'],_0x55f8d6=_0x190535['plugins']['get']('TrackChangesEditing');_0x55f8d6['enableCommand']('shiftEnter'),_0x190535['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x190535),{'priority':'high'}),_0x190535['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x190535),{'priority':'high'}),_0x190535['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22f352,_0x5effca,_0x4de0aa)=>{_0x4de0aa['options']['showSuggestionHighlights']&&ge(_0x190535,{'showActiveMarker':!0x1})(_0x22f352,_0x5effca,_0x4de0aa);}),_0x55f8d6['descriptionFactory']['registerElementLabel']('softBreak',_0x4e476a=>o(_0x190535['locale'],'ELEMENT_LINE_BREAK',_0x4e476a));}}function ge(_0xc40bf2,{showActiveMarker:_0x4ea7ec=!0x0}={}){return(_0x329006,_0x4c13b1,_0x32750a)=>{const _0x5280ad=_0xc40bf2['plugins']['get']('TrackChangesEditing');if(!_0x32750a['consumable']['test'](_0x4c13b1['markerRange'],_0x329006['name']))return;const _0x340923=_0xc40bf2['model'];for(const _0x2ffa9e of _0x4c13b1['markerRange']['getItems']()){if(!_0x2ffa9e['is']('element','softBreak'))continue;const _0x4dbfac='deletion'==_0x4c13b1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x580350}=_0x5280ad['_splitMarkerName'](_0x4c13b1['markerName']),_0x3d10ff=_0x32750a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4dbfac,'data-author-id':_0x580350}),_0x5ada6c=_0x32750a['mapper']['toViewPosition'](_0x340923['createPositionBefore'](_0x2ffa9e));_0x4ea7ec&&_0x5280ad['activeMarkers']['includes'](_0x4c13b1['markerName'])&&_0x32750a['writer']['addClass']('ck-suggestion-marker--active',_0x3d10ff),_0x32750a['writer']['insert'](_0x5ada6c,_0x3d10ff),_0x32750a['mapper']['bindElementToMarker'](_0x3d10ff,_0x4c13b1['markerName']);}};}class St extends _0x16a2ad{['afterInit'](){const _0x1640a3=this['editor'],_0x4028dc=_0x1640a3['model'],_0x326bc5=_0x1640a3['locale'];if(!_0x1640a3['plugins']['has']('StandardEditingModeEditing'))return;const _0x5b4ca9=_0x1640a3['plugins']['get']('TrackChangesEditing'),_0x18c793='restrictedEditingException',_0x5b2daf=_0x1640a3['commands']['get'](_0x18c793);_0x5b4ca9['enableCommand'](_0x18c793,(_0x280e28,_0x5d0aba={})=>{const _0xc2de4a=_0x4028dc['document']['selection'];if(_0xc2de4a['isCollapsed'])return void _0x280e28(_0x5d0aba);const _0x38088b=void 0x0!==_0x5d0aba['forceValue']?_0x5d0aba['forceValue']:!_0x5b2daf['value'];_0x4028dc['change'](()=>{const _0x4b04c2=Array['from'](_0xc2de4a['getRanges']());for(const _0x384a72 of _0x4b04c2){const _0x1f3e50=_0x38088b?[_0x384a72]:io(_0x18c793,_0x384a72,_0x4028dc);for(const _0x4fa827 of _0x1f3e50)_0x5b4ca9['markInlineFormat'](_0x4fa827,{'commandName':_0x18c793,'commandParams':[{'forceValue':_0x38088b}]});}});}),_0x5b4ca9['descriptionFactory']['registerDescriptionCallback'](_0xe38330=>{if('formatBlock'!=_0xe38330['type']&&'formatInline'!=_0xe38330['type'])return;const {data:_0xf46020}=_0xe38330;return _0xf46020&&_0xf46020['commandName']==_0x18c793?_0xf46020['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x326bc5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x326bc5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x16a2ad{['afterInit'](){const _0xc45c6a=this['editor'];if(!_0xc45c6a['plugins']['has']('Style')||!_0xc45c6a['plugins']['has']('DataSchema'))return;const _0x274f64=_0xc45c6a['plugins']['get']('TrackChangesEditing'),_0x3bdbc2=_0xc45c6a['locale'],_0x2a63ad=_0xc45c6a['config']['get']('style')||{},_0x4add59=_0xc45c6a['plugins']['get']('GeneralHtmlSupport'),_0x3ad2cb=_0xc45c6a['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc45c6a['plugins']['get']('DataSchema'),_0x2a63ad['definitions']);_0x274f64['enableDefaultAttributesIntegration']('style');const _0x503036=new Set();for(const _0x3d831c of _0x3ad2cb['block']){const _0x22182e=_0x4add59['getGhsAttributeNameForElement'](_0x3d831c['element']);_0x503036['add'](_0x22182e);}const _0x396bfe=new Set();for(const _0x5877e9 of _0x3ad2cb['inline']){const _0x34fd8e=_0x4add59['getGhsAttributeNameForElement'](_0x5877e9['element']);_0x396bfe['add'](_0x34fd8e);for(const _0x11fa40 of _0x5877e9['ghsAttributes'])_0x396bfe['add'](_0x11fa40);}for(const _0x232f6e of _0x503036)_0x274f64['registerBlockAttribute'](_0x232f6e),_0x274f64['descriptionFactory']['registerAttributeLabel'](_0x232f6e,o(_0x3bdbc2,'FORMAT_STYLE'));for(const _0x3409e9 of _0x396bfe)_0x274f64['registerInlineAttribute'](_0x3409e9),_0x274f64['descriptionFactory']['registerAttributeLabel'](_0x3409e9,o(_0x3bdbc2,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55a6ab=this['editor'],_0x20e509=_0x55a6ab['locale'];_0x55a6ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c5988=>{if('formatBlock'!=_0x5c5988['type']&&'formatInline'!=_0x5c5988['type'])return;const {data:_0xb44c6d}=_0x5c5988;return _0xb44c6d&&'style'===_0xb44c6d['commandName']?_0xb44c6d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20e509,'*Set\x20format:*\x20%0',_0xb44c6d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x20e509,'*Remove\x20format:*\x20%0',_0xb44c6d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x16a2ad{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2ec689){super(_0x2ec689),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x451c67=this['editor'],_0x8627f=_0x451c67['model']['document']['selection'];if(!_0x451c67['plugins']['has']('TableEditing'))return;const _0x1e6ef2=_0x451c67['locale'],_0x7421a1=_0x451c67['plugins']['get']('TrackChangesEditing'),_0x23db14=_0x451c67['plugins']['get']('TableUtils');_0x7421a1['descriptionFactory']['registerElementLabel']('table',_0x44efe8=>o(_0x1e6ef2,'ELEMENT_TABLE',_0x44efe8)),this['_setupColumnsRowsFixing'](),_0x7421a1['enableCommand']('insertTable'),_0x7421a1['enableCommand']('selectTableRow'),_0x7421a1['enableCommand']('selectTableColumn');for(const _0x54ca80 of['insertTableRowAbove','insertTableRowBelow']){const _0x1a0db7=_0x451c67['commands']['get'](_0x54ca80);_0x7421a1['enableCommand'](_0x54ca80,_0x1527d4=>{_0x451c67['model']['change'](_0x340960=>{_0x1527d4();const _0xb7aae7='above'===_0x1a0db7['order'],_0x58d17d=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0x17142f=_0x23db14['getRowIndexes'](_0x58d17d),_0x4cef31=_0xb7aae7?_0x17142f['first']-0x1:_0x17142f['last']+0x1,_0x370d52=_0x58d17d[0x0]['findAncestor']('table'),_0x576a6d=_0x23db14['createTableWalker'](_0x370d52,{'startRow':_0x4cef31,'endRow':_0x4cef31}),_0x19ebeb=Array['from'](_0x576a6d)['map'](_0x160fbc=>_0x340960['createRangeOn'](_0x160fbc['cell']));_0x7421a1['markMultiRangeInsertion'](_0x19ebeb,'tableRow');});});}for(const _0x11b7a8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x124867=_0x451c67['commands']['get'](_0x11b7a8);_0x7421a1['enableCommand'](_0x11b7a8,_0x331a98=>{_0x451c67['model']['change'](_0x453bd6=>{_0x331a98();const _0x2c2aed='left'===_0x124867['order'],_0x1b130b=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0xe5bfe2=_0x23db14['getColumnIndexes'](_0x1b130b),_0x2e2e98=_0x2c2aed?_0xe5bfe2['first']-0x1:_0xe5bfe2['last']+0x1,_0x4edbf0=_0x1b130b[0x0]['findAncestor']('table'),_0x18bc61=_0x23db14['createTableWalker'](_0x4edbf0,{'startRow':0x0,'column':_0x2e2e98,'includeAllSlots':!0x1}),_0x5cf5d6=Array['from'](_0x18bc61)['map'](_0x5d9a3b=>_0x453bd6['createRangeOn'](_0x5d9a3b['cell']));_0x7421a1['markMultiRangeInsertion'](_0x5cf5d6,'tableColumn');});});}for(const _0x58cf19 of['removeTableRow','removeTableColumn']){const _0x497572=_0x58cf19['substr'](0xb),_0xe60f63=_0x497572['toLowerCase'](),_0xb98c2c=_0xe60f63['substr'](0x0,0x3)+'span',_0x12143e='table'+_0x497572,_0x2cd0df='min'+_0x497572,_0x55e2a5='max'+_0x497572;_0x7421a1['enableCommand'](_0x58cf19,()=>{_0x451c67['model']['change'](_0x24574b=>{const _0x5de8cb=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0xd1e093=_0x5de8cb[0x0]['findAncestor']('table');let _0x4c9124;if('removeTableRow'==_0x58cf19){const _0x2d7489=_0x23db14['getRowIndexes'](_0x5de8cb);_0x4c9124={'startRow':_0x2d7489['first'],'endRow':_0x2d7489['last'],'includeAllSlots':!0x0};}else{const _0xcea990=_0x23db14['getColumnIndexes'](_0x5de8cb);_0x4c9124={'startColumn':_0xcea990['first'],'endColumn':_0xcea990['last'],'includeAllSlots':!0x0};}const _0xa8091e=_0x23db14['createTableWalker'](_0xd1e093,_0x4c9124),_0x561cb7=Array['from'](_0xa8091e)['map'](({cell:_0x178fab})=>_0x178fab),_0xffd878=be(_0x561cb7['filter'](_0x25c887=>_0x25c887['hasAttribute'](_0xb98c2c))),_0x3c741e=be(_0x561cb7['filter'](_0x331d84=>!_0x331d84['hasAttribute'](_0xb98c2c)))['map'](_0x4232bc=>_0x24574b['createRangeOn'](_0x4232bc)),_0x1a5ec4=_0x7421a1['markMultiRangeDeletion'](_0x3c741e,_0x12143e);if(_0x1a5ec4&&('tableRow'==_0x1a5ec4['subType']||'tableColumn'==_0x1a5ec4['subType'])){const _0x4c4343=this['_getSuggestionCoords'](_0x1a5ec4);for(const _0x2a17b2 of _0xffd878){const _0x2dffc9=_0x24574b['createRangeOn'](_0x2a17b2),_0x5ca5ef=_0x23db14['getCellLocation'](_0x2a17b2),_0x4ef0bf=_0x2a17b2['getAttribute'](_0xb98c2c)-0x1,_0x26447c=_0x4c4343[_0x2cd0df],_0x35f38f=_0x4c4343[_0x55e2a5];_0x26447c<=_0x5ca5ef[_0xe60f63]&&_0x5ca5ef[_0xe60f63]+_0x4ef0bf<=_0x35f38f&&_0x1a5ec4['addRange'](_0x2dffc9);}}});});}function _0x17994c(_0x29449d){const _0x3069c3=Array['from'](_0x8627f['getRanges']())['map'](_0x315416=>_0x1eeee4['fromRange'](_0x315416));_0x451c67['model']['change'](_0x30a853=>{const _0x47d62e=_0x30a853['batch'];_0x29449d=_0x29449d['filter'](_0x57707b=>'$graveyard'!=_0x57707b['root']['rootName']),_0x30a853['setSelection'](_0x29449d),_0x451c67['commands']['get']('removeTableRow')['refresh'](),_0x451c67['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x451c67['model']['enqueueChange'](()=>{_0x451c67['model']['enqueueChange'](_0x47d62e,_0x19cb15=>{const _0x1d1b98=_0x3069c3['filter'](_0x228ffb=>'$graveyard'!=_0x228ffb['root']['rootName']);_0x1d1b98['length']>0x0&&_0x19cb15['setSelection'](_0x1d1b98);for(const _0x17f1ba of _0x3069c3)_0x17f1ba['detach']();});});});}function _0x3d60a5(_0x220885){_0x451c67['model']['change'](_0x155ef2=>{const _0x2c693c=Array['from'](_0x8627f['getRanges']())['map'](_0x45c992=>_0x1eeee4['fromRange'](_0x45c992)),_0x61e152=[];for(const _0x1a4bf3 of _0x220885)for(const _0x2c5a39 of _0x1a4bf3['getItems']({'shallow':!0x0}))_0x61e152['push'](_0x2c5a39);for(const _0x3fbd1c of _0x61e152)'$graveyard'!=_0x3fbd1c['root']['rootName']&&(_0x155ef2['setSelection'](_0x155ef2['createPositionAt'](_0x3fbd1c,0x0)),_0x451c67['commands']['get']('removeTableColumn')['refresh'](),_0x451c67['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42bd75=_0x2c693c['filter'](_0x4b34cc=>'$graveyard'!=_0x4b34cc['root']['rootName']);_0x42bd75['length']>0x0&&_0x155ef2['setSelection'](_0x42bd75);for(const _0x1719e7 of _0x2c693c)_0x1719e7['detach']();});}function _0x37fc7a(_0x4d3335,_0x4cd307){return _0x4cd307['every'](_0x5ba02a=>_0x4d3335['some'](_0x14238d=>_0x14238d['end']['isEqual'](_0x5ba02a['start'])||_0x5ba02a['end']['isEqual'](_0x14238d['start'])));}function _0x5f5676(_0xf77252,_0x4ae753){return!_0xf77252['some'](_0x4ae92f=>_0x4ae753['some'](_0x4d9970=>_0x4ae92f['isIntersecting'](_0x4d9970)))&&_0xf77252['some'](_0x59d969=>_0x4ae753['some'](_0x41f6e1=>_0x59d969['end']['isTouching'](_0x41f6e1['start'])));}_0x451c67['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x172338,_0x233ee9,_0x52f475)=>{if(!_0x52f475['options']['showSuggestionHighlights'])return;const _0x2ea4a6=_0x233ee9['item'];if(!_0x2ea4a6)return;const _0x2178c9=_0x52f475['mapper']['toViewElement'](_0x2ea4a6);function _0x3d619c(_0x2544fa){return Array['isArray'](_0x2544fa)?_0x2544fa:[_0x2544fa];}_0x2178c9&&'tableCell'===_0x2ea4a6['name']&&_0x2d4906(_0x2178c9,_0x52f475['writer'],(_0x48c946,_0x197dbd,_0x1c0878)=>_0x1c0878['addClass'](_0x3d619c(_0x197dbd['classes']),_0x48c946),(_0x114fd4,_0x545103,_0x1a6f9c)=>_0x1a6f9c['removeClass'](_0x3d619c(_0x545103['classes']),_0x114fd4));},{'priority':'highest'}),_0x7421a1['descriptionFactory']['registerDescriptionCallback'](_0x552ec2=>{if('insertion'!=_0x552ec2['type']&&'deletion'!=_0x552ec2['type'])return;const _0x567cbe=_0x552ec2['getContainedElement']();if(null!=_0x567cbe&&_0x567cbe['is']('element','table')){if('insertion'==_0x552ec2['type']){const _0x1e31b0=_0x552ec2['getItems']()['filter'](_0x390bfa=>_0x390bfa['is']('$textProxy'))['map'](_0x1e3c03=>_0x1e3c03['data']);if(_0x1e31b0['length'])return{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1e31b0['join']('\x20')+'\x22'))};}if('deletion'==_0x552ec2['type']){const _0x185afc=_0x552ec2['getItems']()['filter'](_0x101a10=>_0x101a10['is']('$textProxy'))['map'](_0x520d9c=>_0x520d9c['data']);if(_0x185afc['length'])return{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x185afc['join']('\x20')+'\x22'))};}}}),_0x7421a1['descriptionFactory']['registerDescriptionCallback'](_0x5103ee=>{if('tableRow'==_0x5103ee['subType']){const _0x43be9d=_0x5103ee['getItems']()['filter'](_0x52d203=>_0x52d203['is']('$textProxy'))['map'](_0x446282=>_0x446282['data']),_0x972492=this['_getSuggestionCoords'](_0x5103ee),_0x471c07=_0x972492['maxRow']-_0x972492['minRow']+0x1;if('insertion'==_0x5103ee['type'])return _0x43be9d['length']?{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x471c07,'\x22'+_0x43be9d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW',_0x471c07))};if('deletion'==_0x5103ee['type'])return _0x43be9d['length']?{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x471c07,'\x22'+_0x43be9d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW',_0x471c07))};}if('tableColumn'==_0x5103ee['subType']){const _0x6fff98=_0x5103ee['getItems']()['filter'](_0x493122=>_0x493122['is']('$textProxy'))['map'](_0x2c1be4=>_0x2c1be4['data']),_0x5c618a=this['_getSuggestionCoords'](_0x5103ee),_0x367218=_0x5c618a['maxColumn']-_0x5c618a['minColumn']+0x1;if('insertion'==_0x5103ee['type'])return _0x6fff98['length']?{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x367218,'\x22'+_0x6fff98['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN',_0x367218))};if('deletion'==_0x5103ee['type'])return _0x6fff98['length']?{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x367218,'\x22'+_0x6fff98['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN',_0x367218))};}}),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x17994c),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x17994c),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d60a5),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d60a5),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37fc7a),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37fc7a),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5f5676),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5f5676);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2168d7=this['editor'],_0x3ae119=_0x2168d7['model']['document']['selection'];return(_0xe995bf,_0x24aa31)=>{_0x2168d7['model']['change'](_0x56d36f=>{const {commandName:_0x5212d0,commandParams:_0x5db319}=_0x24aa31;let _0x22902a=_0xe995bf[0x0]['end']['nodeBefore'];_0x5db319&&_0x5db319[0x0]&&!0x1===_0x5db319[0x0]['forceValue']&&(_0x22902a=_0xe995bf[0x0]['start']['nodeAfter']);const _0x41ce86=_0x56d36f['createRangeIn'](_0x22902a);if('$graveyard'==_0x41ce86['root']['rootName'])return;const _0x1e58aa=Array['from'](_0x3ae119['getRanges']())['map'](_0x42d7ac=>_0x1eeee4['fromRange'](_0x42d7ac));_0x56d36f['setSelection'](_0x41ce86),_0x2168d7['commands']['get'](_0x5212d0)['refresh'](),_0x5db319['push']({'forceDefaultExecution':!0x0}),_0x2168d7['execute'](_0x5212d0,..._0x5db319);const _0x3feb96=_0x1e58aa['filter'](_0x46c5b5=>'$graveyard'!=_0x46c5b5['root']['rootName']);_0x3feb96['length']>0x0&&_0x56d36f['setSelection'](_0x3feb96);for(const _0x3c8642 of _0x1e58aa)_0x3c8642['detach']();});};}['_getCoordsForCells'](_0x1cf57f){const _0x1a09ca=this['editor']['plugins']['get']('TableUtils');let _0x495543=Number['MAX_SAFE_INTEGER'],_0x5c9c55=Number['MIN_SAFE_INTEGER'],_0x3ca27f=Number['MAX_SAFE_INTEGER'],_0x22665b=Number['MIN_SAFE_INTEGER'];for(const _0x13c8fd of _0x1cf57f){if('$graveyard'==_0x13c8fd['root']['rootName'])continue;const {row:_0x5bc172,column:_0x179e0f}=_0x1a09ca['getCellLocation'](_0x13c8fd),_0x6aabe=_0x13c8fd['hasAttribute']('rowspan')?_0x13c8fd['getAttribute']('rowspan')-0x1:0x0,_0x189062=_0x13c8fd['hasAttribute']('colspan')?_0x13c8fd['getAttribute']('colspan')-0x1:0x0;_0x495543=_0x5bc172<_0x495543?_0x5bc172:_0x495543,_0x5c9c55=_0x5bc172+_0x6aabe>_0x5c9c55?_0x5bc172+_0x6aabe:_0x5c9c55,_0x3ca27f=_0x179e0f<_0x3ca27f?_0x179e0f:_0x3ca27f,_0x22665b=_0x179e0f+_0x189062>_0x22665b?_0x179e0f+_0x189062:_0x22665b;}return{'minRow':_0x495543,'maxRow':_0x5c9c55,'minColumn':_0x3ca27f,'maxColumn':_0x22665b};}['_setupColumnsRowsFixing'](){const _0x108318=this['editor'],_0x5a2464=_0x108318['plugins']['get']('TrackChangesEditing'),_0x3a9772=_0x108318['plugins']['get']('TableUtils');_0x108318['model']['document']['on']('change:data',()=>{const _0x366b8d=Array['from'](_0x108318['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bfeeb,data:_0x3c6ca4}of _0x366b8d){const {group:_0x207604,id:_0x3b3528,subType:_0x53068e}=_0x5a2464['_splitMarkerName'](_0x2bfeeb);if('suggestion'!=_0x207604)continue;if(null!=_0x3c6ca4['oldRange'])continue;const _0x26d036=_0x5a2464['getSuggestion'](_0x3b3528);this['_tablePostFixingSubtypes']['includes'](_0x53068e)&&this['_tableSuggestions']['add'](_0x26d036);}},{'priority':'low'});const _0x2f029d=(_0x1565bd,_0x38ec46)=>{let _0x50e48c=!0x1;const _0x22d9db=_0x38ec46['createRangeOn'](_0x1565bd),_0x3f45d6=_0x1565bd['findAncestor']('table'),_0x379be=_0x3a9772['getCellLocation'](_0x1565bd);for(const _0x19dd07 of this['_tableSuggestions']){const _0x2cef55=_0x19dd07['subType'],_0x4a9e1d=_0x2cef55['startsWith']('tablePaste'),_0x22bf39=_0x2cef55['substr'](_0x4a9e1d?0xa:0x5),_0xd74921=_0x22bf39['toLowerCase'](),_0x40932d=_0xd74921['substr'](0x0,0x3)+'span',_0x5e896f='min'+_0x22bf39,_0xbd1480='max'+_0x22bf39;if(!_0x19dd07['isInContent'])continue;if(_0x3f45d6!=_0x19dd07['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x19dd07['isIntersectingWithRange'](_0x22d9db))continue;const _0x238c3f=_0x1565bd['hasAttribute'](_0x40932d)?_0x1565bd['getAttribute'](_0x40932d)-0x1:0x0,_0x2a9c4d=this['_getSuggestionCoords'](_0x19dd07),_0x3d3eb7=_0x2a9c4d[_0x5e896f],_0x3bdb6d=_0x2a9c4d[_0xbd1480];_0x3d3eb7<=_0x379be[_0xd74921]&&_0x379be[_0xd74921]+_0x238c3f<=_0x3bdb6d&&(_0x19dd07['addRange'](_0x22d9db),_0x50e48c=!0x0);}return _0x50e48c;};_0x108318['model']['document']['registerPostFixer'](_0x1d4400=>{let _0x5c5ad5=!0x1;for(const _0x26b137 of _0x108318['model']['document']['differ']['getChanges']())if('insert'==_0x26b137['type']){if('tableRow'==_0x26b137['name']){for(const _0x1974a8 of _0x26b137['position']['nodeAfter']['getChildren']())_0x5c5ad5=_0x5c5ad5||_0x2f029d(_0x1974a8,_0x1d4400);}else'tableCell'==_0x26b137['name']&&(_0x5c5ad5=_0x5c5ad5||_0x2f029d(_0x26b137['position']['nodeAfter'],_0x1d4400));}return _0x5c5ad5;});}['_getSuggestionCoords'](_0x4d2e07){return this['_getCoordsForCells'](_0x4d2e07['getRanges']()['map'](_0x3c44f0=>_0x3c44f0['start']['nodeAfter']));}}function be(_0x1327bb){return Array['from'](new Set(_0x1327bb)['values']());}class vt extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x5bff96=this['editor'],_0x59c459=_0x5bff96['model']['document']['selection'],_0x47e8a0=_0x5bff96['locale'];if(!_0x5bff96['plugins']['has']('TableEditing'))return;const _0x282a95=_0x5bff96['plugins']['get']('TrackChangesEditing'),_0x37a265=_0x5bff96['plugins']['get']('TableUtils'),_0x4e4697=_0x5bff96['plugins']['get'](It);_0x4e4697['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x282a95['enableCommand']('mergeTableCells',()=>{const _0xe335af=_0x37a265['getSelectionAffectedTableCells'](_0x5bff96['model']['document']['selection']);_0x5bff96['model']['change'](()=>{_0x282a95['markMultiRangeBlockFormat'](_0xe335af,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5bff96['commands']['get']('mergeTableCells')['on']('execute',(_0x2f1d2c,_0xe5b16b)=>{_0x5bff96['commands']['get']('trackChanges')['value']&&(_0xe5b16b['length']>0x0&&_0xe5b16b[_0xe5b16b['length']-0x1]&&_0xe5b16b[_0xe5b16b['length']-0x1]['forceDefaultExecution']||_0x282a95['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2f1d2c['stop']());},{'priority':'highest'});for(const _0x139518 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4bb0a3=_0x5bff96['commands']['get'](_0x139518);_0x282a95['enableCommand'](_0x139518,()=>{const _0x3da3c7=_0x5bff96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8ed2d=>_0x8ed2d['is']('element','tableCell')),_0x5707b0=_0x4bb0a3['value'];_0x5bff96['model']['change'](()=>{_0x282a95['markMultiRangeBlockFormat']([_0x3da3c7,_0x5707b0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d34a8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x254ed2=_0x5bff96['commands']['get'](_0x4d34a8);_0x282a95['enableCommand'](_0x4d34a8,()=>{const _0x36de33=_0x37a265['getSelectionAffectedTableCells'](_0x5bff96['model']['document']['selection'])[0x0],_0xc77cf7=_0x36de33['findAncestor']('table'),{column:_0x496cef,row:_0x2d2470}=_0x37a265['getCellLocation'](_0x36de33);let _0x2b4042=[];if('horizontally'==_0x254ed2['direction']){const _0x464620=_0x37a265['createTableWalker'](_0xc77cf7,{'startRow':_0x2d2470,'endRow':_0x2d2470,'includeAllSlots':!0x0});_0x2b4042=Array['from'](_0x464620)['map'](_0x7e5028=>_0x7e5028['cell']);}else{const _0x31e5ab=_0x37a265['createTableWalker'](_0xc77cf7,{'column':_0x496cef,'includeAllSlots':!0x0});_0x2b4042=Array['from'](_0x31e5ab)['map'](_0x3a28a6=>_0x3a28a6['cell']);}_0x5bff96['model']['change'](_0x71d847=>{_0x282a95['markBlockFormat'](_0x71d847['createRangeOn'](_0x36de33),{'commandName':_0x4d34a8,'commandParams':[]},_0x2b4042,_0x4d34a8);});});}_0x282a95['descriptionFactory']['registerDescriptionCallback'](_0x5ea3eb=>{if('formatBlock'!=_0x5ea3eb['type']&&'formatInline'!=_0x5ea3eb['type'])return;const {data:_0x454d2f}=_0x5ea3eb;return _0x454d2f&&'mergeTableCells'==_0x454d2f['commandName']?{'type':'format','content':o(_0x47e8a0,'*Merge\x20cells*')}:void 0x0;}),_0x282a95['descriptionFactory']['registerDescriptionCallback'](_0x301db7=>{if('formatBlock'!=_0x301db7['type']&&'formatInline'!=_0x301db7['type'])return;const {data:_0x14d925}=_0x301db7;return _0x14d925?'splitTableCellVertically'==_0x14d925['commandName']?{'type':'format','content':o(_0x47e8a0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14d925['commandName']?{'type':'format','content':o(_0x47e8a0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3ca692=_0x4e4697['_acceptFormatSuggestionCallbackFactory']();for(const _0x3adfe7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3adfe7,'accept',_0x3ca692);for(const _0x21cdf7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21cdf7,'accept',_0x3ca692);_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21f20d=>{_0x5bff96['model']['change'](_0x4db9d7=>{const _0x5422e2=Array['from'](_0x59c459['getRanges']())['map'](_0x5476f9=>_0x1eeee4['fromRange'](_0x5476f9));_0x4db9d7['setSelection'](_0x21f20d),_0x5bff96['commands']['get']('mergeTableCells')['refresh'](),_0x5bff96['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4e92f6=_0x5422e2['filter'](_0x2b1be6=>'$graveyard'!=_0x2b1be6['root']['rootName']);_0x4e92f6['length']>0x0&&_0x4db9d7['setSelection'](_0x4e92f6);for(const _0x192327 of _0x5422e2)_0x192327['detach']();});});for(const _0x477915 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ce58a=_0x5bff96['commands']['get'](_0x477915);_0x4ce58a['on']('set:isEnabled',(_0x3be318,_0x2dbb6e,_0x53cb74)=>{if(_0x53cb74){const _0x413948=_0x5bff96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x387025=>_0x387025['is']('element','tableCell'));this['_areMergableCells'](_0x4ce58a['value'],_0x413948)||(_0x3be318['return']=!0x1,_0x3be318['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x505a93=this['editor']['commands']['get']('mergeTableCells'),_0xa26e8=this['editor']['plugins']['get']('TableUtils');if(!_0x505a93['isEnabled'])return!0x1;const _0x4ce69c=_0xa26e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x696d9 of _0x4ce69c)for(const _0x141712 of _0x4ce69c)if(_0x696d9!=_0x141712&&!this['_areMergableCells'](_0x696d9,_0x141712))return!0x1;return!0x0;}['_areMergableCells'](_0x1da1ee,_0x1785d7){const _0x36beb4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ea713=this['editor']['model']['createRangeOn'](_0x1da1ee),_0x5b3a76=this['editor']['model']['createRangeOn'](_0x1785d7),_0x585c43=new Set(),_0x311656=new Set();for(const _0x2af95c of _0x36beb4['getSuggestions']())if(('insertion'==_0x2af95c['type']||'deletion'==_0x2af95c['type']||'mergeTableCells'==_0x2af95c['subType'])&&_0x2af95c['isInContent']){for(const _0x2612ee of _0x2af95c['getRanges']())_0x2612ee['containsRange'](_0x4ea713,!0x0)&&_0x585c43['add'](_0x2af95c['type']+':'+_0x2af95c['author']['id']),_0x2612ee['containsRange'](_0x5b3a76,!0x0)&&_0x311656['add'](_0x2af95c['type']+':'+_0x2af95c['author']['id']);}if(_0x585c43['size']!=_0x311656['size'])return!0x1;for(const _0x43fc7a of _0x585c43)if(!_0x311656['has'](_0x43fc7a))return!0x1;return!0x0;}}class Ct extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x416fac=this['editor'];if(!_0x416fac['plugins']['has']('TableEditing'))return;const _0x372d6d=_0x416fac['locale'],_0x80e7b7=_0x416fac['plugins']['get']('TrackChangesEditing');_0x80e7b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x80e7b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x80e7b7['registerBlockAttribute']('headingRows'),_0x80e7b7['registerBlockAttribute']('headingColumns'),_0x80e7b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x372d6d,'FORMAT_HEADER_ROW')),_0x80e7b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x372d6d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35b2dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e6cd2=this['editor']['plugins']['get']('TableUtils'),_0x15d239=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x459af1({showActiveMarker:_0x499279=!0x0,setDataAttribute:_0x52c55c=!0x0}={}){return(_0x55283,_0x31433c,_0x3119d2)=>{const {type:_0x5bd329,id:_0x529a3c}=_0x35b2dc['_splitMarkerName'](_0x31433c['markerName']),_0x40688f=_0x35b2dc['getSuggestion'](_0x529a3c),_0x5f3b05=_0x40688f['data'];if('formatBlock'!=_0x40688f['type']||!_0x5f3b05||'setTableColumnHeader'!=_0x5f3b05['commandName'])return;if(_0x31433c['item'])return void _0x55283['stop']();if(!_0x3119d2['consumable']['consume'](_0x31433c['markerRange'],_0x55283['name']))return;const _0x3b4dae=_0x31433c['markerRange']['start']['nodeAfter'],_0x4c853c=_0x31433c['markerRange']['end']['nodeBefore'],_0x1e300f=_0x3b4dae['parent']['parent'],{column:_0x50eed7}=_0x3e6cd2['getCellLocation'](_0x3b4dae),{column:_0x15b55c}=_0x3e6cd2['getCellLocation'](_0x4c853c);for(let _0xa6552c=_0x50eed7;_0xa6552c<=_0x15b55c;_0xa6552c++){const _0x2c6eb5=_0x3e6cd2['createTableWalker'](_0x1e300f,{'column':_0xa6552c,'includeAllSlots':!0x1});for(const _0x3daec9 of _0x2c6eb5){const _0x5517e3=_0x3daec9['cell'],_0x652a5b=_0x3119d2['mapper']['toViewElement'](_0x5517e3);_0x3119d2['writer']['addClass']('ck-suggestion-marker-'+_0x5bd329,_0x652a5b),_0x52c55c&&_0x3119d2['writer']['setAttribute']('data-suggestion',_0x529a3c,_0x652a5b),_0x3119d2['mapper']['bindElementToMarker'](_0x652a5b,_0x31433c['markerName']),_0x499279&&(_0x35b2dc['activeMarkers']['includes'](_0x31433c['markerName'])?_0x3119d2['writer']['addClass']('ck-suggestion-marker--active',_0x652a5b):_0x3119d2['writer']['removeClass']('ck-suggestion-marker--active',_0x652a5b));}}};}_0x35b2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x15d239),_0x35b2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x15d239),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x459af1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58a094,_0x20a761,_0x3277b8)=>{_0x3277b8['options']['showSuggestionHighlights']&&_0x459af1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x58a094,_0x20a761,_0x3277b8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3776b3,_0x3965e5,_0xc1b946)=>{const {type:_0x4fa1df,id:_0x5b1c0a}=_0x35b2dc['_splitMarkerName'](_0x3965e5['markerName']),_0x588b27=_0x35b2dc['getSuggestion'](_0x5b1c0a),_0x595ebc=_0x588b27['data'];if('formatBlock'!=_0x588b27['type']||!_0x595ebc||'setTableColumnHeader'!=_0x595ebc['commandName'])return;const _0x33e688=_0xc1b946['mapper']['markerNameToElements'](_0x3965e5['markerName']);if(_0x33e688){for(const _0x3321bd of _0x33e688)_0xc1b946['writer']['removeClass']('ck-suggestion-marker-'+_0x4fa1df,_0x3321bd),_0xc1b946['writer']['removeClass']('ck-suggestion-marker--active',_0x3321bd),_0xc1b946['writer']['removeAttribute']('data-suggestion',_0x3321bd),_0xc1b946['mapper']['unbindElementFromMarkerName'](_0x3321bd,_0x3965e5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289a67=this['editor'],_0x10e088=_0x289a67['locale'];function _0x29ab9b(_0x4a92aa){return{'type':'format','content':o(_0x10e088,'*Format:*\x20%0',_0x4a92aa)};}_0x289a67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a103d=>{if('formatBlock'!=_0x4a103d['type'])return;const {data:_0x32d719}=_0x4a103d;if(_0x32d719){if('setTableRowHeader'==_0x32d719['commandName']){const _0x3470fe=_0x32d719['commandParams'][0x0]['forceValue'];return _0x29ab9b(o(_0x10e088,_0x3470fe?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x32d719['commandName']){const _0x293756=_0x32d719['commandParams'][0x0]['forceValue'];return _0x29ab9b(o(_0x10e088,_0x293756?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x42e5d5=>[_0x42e5d5,null]));class _t extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0xecd6ca=this['editor'];if(!_0xecd6ca['plugins']['has']('TableClipboard'))return;const _0x4eae74=_0xecd6ca['plugins']['get']('TrackChangesEditing'),_0x10e791=_0xecd6ca['plugins']['get']('TableUtils'),_0x80031a=_0xecd6ca['plugins']['get'](It),_0x2c51a5=_0xecd6ca['plugins']['get']('TableClipboard');_0x80031a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xecd6ca['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xecd6ca['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xd11a0=null;_0xecd6ca['model']['on']('insertContent',(_0x35f1f0,_0x5e2b30)=>{const [_0x42a0fb,_0x2f7f88]=_0x5e2b30,_0x53f3d9=_0x5e2b30[_0x5e2b30['length']-0x1];_0x53f3d9&&_0x53f3d9['forceDefaultExecution']||_0x4eae74['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14ef17,_0x5e6168,_0x446239,_0x327947,_0x2da079){if(_0x5e6168&&!_0x5e6168['is']('documentSelection'))return!0x1;const _0x332da7=_0x2da079['getTableIfOnlyTableInContent'](_0x14ef17,_0x446239);if(!_0x332da7||!Re(_0x332da7,void 0x0,_0x327947))return!0x1;const _0x376f5d=_0x327947['getSelectionAffectedTableCells'](_0x446239['document']['selection']);if(!_0x376f5d['length'])return!0x1;const _0x5c3ef3=_0x376f5d[0x0]['findAncestor']('table'),_0x550f3d=_0x327947['getRowIndexes'](_0x376f5d),_0x55a16c=_0x327947['getColumnIndexes'](_0x376f5d),_0x3d3e54={'startRow':_0x550f3d['first'],'endRow':_0x550f3d['last'],'startColumn':_0x55a16c['first'],'endColumn':_0x55a16c['last']};return 0x1==_0x376f5d['length']&&(_0x3d3e54['endRow']+=_0x327947['getRows'](_0x332da7)-0x1,_0x3d3e54['endColumn']+=_0x327947['getColumns'](_0x332da7)-0x1),Re(_0x5c3ef3,_0x3d3e54,_0x327947);}(_0x42a0fb,_0x2f7f88,_0xecd6ca['model'],_0x10e791,_0x2c51a5)&&(_0x35f1f0['stop'](),_0xd11a0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xecd6ca['model']['change'](()=>{_0xecd6ca['model']['insertContent'](_0x5e2b30[0x0],_0x5e2b30[0x1],_0x5e2b30[0x2],{'forceDefaultExecution':!0x0});const _0x2c3dd1=_0x31d1bc(),{rowInsertionRanges:_0x5ebd02,columnInsertionRanges:_0x712b8a,insertionRanges:_0x3bb202,deletionRanges:_0x53e62b,cells:_0x1e07ee}=_0xd11a0;_0x5ebd02['length']&&_0x4eae74['markMultiRangeInsertion'](_0x5ebd02,'tablePasteRow',{'tablePasteChainId':_0x2c3dd1}),_0x712b8a['length']&&_0x4eae74['markMultiRangeInsertion'](_0x712b8a,'tablePasteColumn',{'tablePasteChainId':_0x2c3dd1}),_0x3bb202['length']&&(_0x4eae74['markMultiRangeInsertion'](_0x3bb202,'tablePaste',{'tablePasteChainId':_0x2c3dd1,'skipNestingCheck':!0x0}),_0x3bb202['forEach'](_0x216335=>_0x216335['detach']?.())),_0x53e62b['length']&&(_0x4eae74['markMultiRangeDeletion'](_0x53e62b,'tablePaste',{'tablePasteChainId':_0x2c3dd1,'skipNestingCheck':!0x0}),_0x53e62b['forEach'](_0x3057d1=>_0x3057d1['detach']?.()));const _0xa25d66=_0x4eae74['markMultiRangeBlockFormat'](_0x1e07ee['map'](({element:_0x314f30})=>_0x314f30),{'formatGroupId':_0x31d1bc()},[],'tablePasteCell',{'tablePasteChainId':_0x2c3dd1});if(_0xa25d66){const _0x48d8e7=_0xa25d66['getMarkers'](),_0x196f0d=[];for(const {element:_0x5189cb,attributes:_0x2a25c1}of _0x1e07ee){if(!_0x2a25c1)continue;const _0x4096e6=_0xecd6ca['model']['createRangeOn'](_0x5189cb),_0x3c1f09=_0x48d8e7['find'](_0x4193a3=>_0x4193a3['getRange']()['isEqual'](_0x4096e6));_0x3c1f09&&_0x196f0d['push']([_0x3c1f09['name'],_0x2a25c1]);}_0x196f0d['length']&&_0xa25d66['setAttribute']('markerAttributes',Object['fromEntries'](_0x196f0d));}_0xd11a0=null;}));},{'priority':_0x3a7800['high']+0xa}),_0xecd6ca['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4c5097,_0x53879b)=>{const [_0x2f8bf5,_0xd39981,,_0x4cfc1f]=_0x53879b;if(!_0xd11a0)return;_0x4c5097['stop']();const _0x4c2833=_0x2f8bf5['cell'],_0x2c61f7=_0xd39981,_0x3a9e20=ke(_0x4c2833),_0x645d78=ke(_0x2c61f7);_0x4c5097['return']=_0x4c2833;let _0x2f0397=null,_0x337fae=null;if(_0x645d78||_0x3a9e20){if(_0x3a9e20&&!_0x645d78){_0x4cfc1f['remove'](_0x4c2833['getChild'](0x0));for(const _0x33669c of Array['from'](_0x2c61f7['getChildren']()))_0x4cfc1f['insert'](_0x33669c,_0x4c2833,'end');const _0x293fcd=_0xd11a0['rowInsertionIndexes']['includes'](_0x2f8bf5['row']),_0xb47819=_0xd11a0['columnInsertionIndexes']['includes'](_0x2f8bf5['column']);_0x293fcd||_0xb47819||(_0x2f0397=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeIn'](_0x4c2833)));}else _0x645d78&&!_0x3a9e20&&(_0x337fae=_0x4cfc1f['createRangeIn'](_0x4c2833));}else{const _0x4dc9c2=_0x4cfc1f['createElement']('tableCellSuggestion'),_0x111c93=_0x4cfc1f['createElement']('tableCellSuggestion');_0x4cfc1f['wrap'](_0x4cfc1f['createRangeIn'](_0x4c2833),_0x111c93),_0x4cfc1f['insert'](_0x4dc9c2,_0x4c2833,0x0);for(const _0x1d2fef of Array['from'](_0x2c61f7['getChildren']()))_0x4cfc1f['insert'](_0x1d2fef,_0x4dc9c2,'end');_0x2f0397=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeOn'](_0x4dc9c2)),_0x337fae=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeOn'](_0x111c93));}const _0x508397=Array['from'](_0x2c61f7['getAttributes']())['filter'](([_0x5d4589])=>Pe['includes'](_0x5d4589));_0xd11a0['cells']['push']({'element':_0x4c2833,'attributes':_0x508397['length']?Object['fromEntries'](_0x508397):null}),_0x2f0397&&_0xd11a0['insertionRanges']['push'](_0x2f0397),_0x337fae&&_0xd11a0['deletionRanges']['push'](_0x337fae);},{'priority':'high'}),_0x10e791['on']('insertColumns',(_0x4a3827,_0x331e48)=>{const [_0x42e7b9,_0x53acb2={}]=_0x331e48;if(!_0xd11a0)return;const _0xbe1b49=_0x53acb2['at']||0x0,_0x2e33b5=_0x53acb2['columns']||0x1;_0xd11a0['columnInsertionIndexes']=new Array(_0x2e33b5)['fill'](_0xbe1b49)['map']((_0x26d9a8,_0x50e943)=>_0x26d9a8+_0x50e943);for(const {cell:_0x1dca57}of _0x10e791['createTableWalker'](_0x42e7b9,{'startColumn':_0xbe1b49,'endColumn':_0xbe1b49+_0x2e33b5-0x1}))_0xd11a0['columnInsertionRanges']['push'](_0xecd6ca['model']['createRangeOn'](_0x1dca57));},{'priority':'low'}),_0x10e791['on']('insertRows',(_0xfe6e2d,_0x3ac944)=>{const [_0x5040c9,_0x1f99a9={}]=_0x3ac944;if(!_0xd11a0)return;const _0x14ff6d=_0x1f99a9['at']||0x0,_0x246d09=_0x1f99a9['rows']||0x1;_0xd11a0['rowInsertionIndexes']=new Array(_0x246d09)['fill'](_0x14ff6d)['map']((_0x9f8d0,_0xc1bceb)=>_0x9f8d0+_0xc1bceb);for(const {cell:_0x153be7}of _0x10e791['createTableWalker'](_0x5040c9,{'startRow':_0x14ff6d,'endRow':_0x14ff6d+_0x246d09-0x1}))_0xd11a0['rowInsertionRanges']['push'](_0xecd6ca['model']['createRangeOn'](_0x153be7));},{'priority':'low'}),_0x4eae74['descriptionFactory']['registerDescriptionCallback'](_0x45a792=>{if(_0x45a792['subType']&&_0x45a792['subType']['startsWith']('tablePaste'))return _0x45a792['previous']?{}:{'type':'insertion','content':o(_0xecd6ca['locale'],'*Replace\x20table\x20cells*')};});const _0x6c4c9=()=>!0x1;for(const _0x263e14 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion',_0x263e14,'join',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('deletion',_0x263e14,'join',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x263e14,'join',_0x6c4c9);_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4b5c5a,_0x4cf7bd,_0x4a07fc)=>{const _0x2f7e6f=_0x4b5c5a['map'](_0x5d5085=>_0x5d5085['getContainedElement']())['filter'](_0x37a577=>_0x37a577),_0x354c92=new Map(_0x2f7e6f['map'](_0x4648ab=>[_0x4648ab,null]));if(_0xd11a0){for(const {element:_0x2965b2,attributes:_0x4f19c1}of _0xd11a0['cells'])_0x4f19c1&&_0x354c92['set'](_0x2965b2,_0x4f19c1);}else{if(_0x4a07fc&&_0x4a07fc['markerAttributes'])for(const [_0xa8c85f,_0x480d6e]of Object['entries'](_0x4a07fc['markerAttributes'])){const _0x5985ac=_0xecd6ca['model']['markers']['get'](_0xa8c85f),_0x5d61ef=_0x5985ac?_0x5985ac['getRange']()['getContainedElement']():null;_0x5d61ef&&_0x354c92['set'](_0x5d61ef,_0x480d6e);}}_0xecd6ca['model']['change'](_0x395aab=>{for(const [_0x2690fd,_0x3e6f43]of _0x354c92)_0x395aab['setAttributes']({...we,..._0x3e6f43},_0x2690fd);});});const _0x46ef7a=(_0x2f56c7,_0x233c88)=>{_0x4eae74['_suggestionFactory']['registerCustomCallback'](_0x2f56c7,'tablePaste',_0x233c88,(_0x2a3520,_0x955132,_0x6f471c)=>{_0xecd6ca['model']['change'](_0x18ee49=>{const _0x21e2ef=[];for(const _0x392bf3 of _0x2a3520){const _0x53004b=_0x392bf3['start']['nodeAfter'];_0x53004b['is']('element','tableCellSuggestion')&&_0x21e2ef['push'](_0x53004b);}_0x4eae74['_suggestionFactory']['getSuggestionCallback'](_0x2f56c7,null,_0x233c88)(_0x2a3520,_0x955132,_0x6f471c);for(const _0x1b3c1f of _0x21e2ef)'$graveyard'!=_0x1b3c1f['root']['rootName']&&_0x18ee49['unwrap'](_0x1b3c1f);});});};_0x46ef7a('insertion','accept'),_0x46ef7a('insertion','discard'),_0x46ef7a('deletion','accept'),_0x46ef7a('deletion','discard'),_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x37cba4=>{const _0x57af80=_0x37cba4['map'](_0x252c21=>_0x252c21['getContainedElement']()),_0x1ee771=_0x57af80[0x0]['findAncestor']('table'),{minRow:_0x430276,maxRow:_0x232208}=_0x80031a['_getCoordsForCells'](_0x57af80);_0x10e791['removeRows'](_0x1ee771,{'at':_0x430276,'rows':_0x232208-_0x430276+0x1});}),_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8aa277=>{const _0x5f5a73=_0x8aa277['map'](_0x5f2196=>_0x5f2196['getContainedElement']()),_0xd8ee99=_0x5f5a73[0x0]['findAncestor']('table'),{minColumn:_0x55f948,maxColumn:_0x19bbf1}=_0x80031a['_getCoordsForCells'](_0x5f5a73);_0x10e791['removeColumns'](_0xd8ee99,{'at':_0x55f948,'columns':_0x19bbf1-_0x55f948+0x1});});const _0x2ecd7d=(_0x9db23b,_0x39e5c6)=>{if(!_0x39e5c6['subType']||!_0x39e5c6['subType']['startsWith']('tablePaste'))return;const _0x339464=_0x39e5c6['attributes']['tablePasteChainId'],_0x29a3f9=_0x4eae74['getSuggestions']()['filter'](_0x24eee3=>_0x24eee3['isInContent']&&_0x24eee3['attributes']&&_0x24eee3['attributes']['tablePasteChainId']==_0x339464);_0x29a3f9['length']&&_0x39e5c6['getAllAdjacentSuggestions']()['length']!=_0x29a3f9['length']&&_0x29a3f9['reduce']((_0x3d959f,_0x2399d0)=>(_0x3d959f['next']=_0x2399d0,_0x2399d0['previous']=_0x3d959f,_0x2399d0));};function _0x3c8d0f(_0x5b7064,_0x39ff60=!0x0){const {id:_0x5e20ea,authorId:_0x22335d}=_0x4eae74['_splitMarkerName'](_0x5b7064['markerName']),_0x1dc15f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xe0e9c2=_0x4eae74['activeMarkers']['includes'](_0x5b7064['markerName']);return _0xe0e9c2&&_0x1dc15f['push']('ck-suggestion-marker--active'),{'classes':_0x1dc15f,'attributes':{'data-suggestion':_0x5e20ea,'data-author-id':_0x22335d},'priority':_0xe0e9c2&&_0x39ff60?0xbc2:0xbb8};}_0x4eae74['on']('suggestionLoaded',_0x2ecd7d,{'priority':'high'}),_0x4eae74['on']('suggestionUnloaded',_0x2ecd7d,{'priority':'high'}),_0xecd6ca['model']['document']['registerPostFixer'](()=>{let _0x3e3a5e=!0x1;const _0x154965=Array['from'](_0xecd6ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a5670,data:_0x155d06}of _0x154965){const {group:_0x4c9e5e,type:_0x2138c4,id:_0x36b6d6}=_0x4eae74['_splitMarkerName'](_0x1a5670);if('suggestion'!=_0x4c9e5e||'deletion'!=_0x2138c4||_0x155d06['oldRange'])continue;if(!_0x4eae74['hasSuggestion'](_0x36b6d6))continue;const _0x351685=_0x4eae74['getSuggestion'](_0x36b6d6)['getRanges'](),_0x4b7d94=_0xecd6ca['plugins']['get']('Users')['me'];for(const _0x26eecd of _0x4eae74['getSuggestions']()){if(!_0x26eecd['isInContent']||_0x26eecd['author']!=_0x4b7d94)continue;if('formatBlock'!=_0x26eecd['type']||'tablePasteCell'!=_0x26eecd['subType'])continue;if(_0x26eecd['getRanges']()['every'](_0x2492b1=>_0x351685['some'](_0x361267=>_0x361267['containsRange'](_0x2492b1,!0x0)))){for(const _0x37da4f of _0x26eecd['getAllAdjacentSuggestions']())_0x37da4f['isInContent']&&(_0x37da4f['discard'](),_0x3e3a5e=!0x0);}}}return _0x3e3a5e;}),_0xecd6ca['model']['document']['registerPostFixer'](_0x51ff3e=>{const _0x1d597f=_0xecd6ca['commands']['get']('redo');if(!_0x1d597f||!_0x1d597f['_createdBatches']['has'](_0x51ff3e['batch']))return!0x1;let _0x1f18a3=!0x1;const _0x554712=_0xecd6ca['plugins']['get']('Users')['me'],_0x52b2d1=_0xecd6ca['model']['document']['differ']['getChanges'](),_0x487355=Array['from'](_0xecd6ca['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xa414e5,data:_0x56b1f7})=>{const {group:_0x582948,subType:_0x1db1b1,authorId:_0x2f8e9}=_0x4eae74['_splitMarkerName'](_0xa414e5);return'suggestion'==_0x582948&&'tablePaste'==_0x1db1b1&&_0x2f8e9==_0x554712['id']&&!_0x56b1f7['oldRange'];});for(const _0x17dfc3 of _0x52b2d1){if('insert'!=_0x17dfc3['type']||'tableCellSuggestion'!=_0x17dfc3['name']||0x1!=_0x17dfc3['length'])continue;const _0xf6b0c6=_0x51ff3e['createRange'](_0x17dfc3['position'],_0x17dfc3['position']['getShiftedBy'](0x1));if(!_0x487355['find'](({data:_0x19915a})=>_0x19915a['newRange']['isEqual'](_0xf6b0c6))){for(const {name:_0x584760,data:_0x19fc97}of _0x487355)if(_0xf6b0c6['containsRange'](_0x19fc97['newRange'])){_0x51ff3e['updateMarker'](_0x584760,{'range':_0xf6b0c6}),_0x1f18a3=!0x0;break;}}}return _0x1f18a3;}),_0xecd6ca['model']['document']['registerPostFixer'](_0x2798da=>{let _0x462293=!0x1;const _0x1214ec=_0xecd6ca['plugins']['get']('Users')['me'],_0x194bc6=_0x4eae74['getSuggestions']()['filter'](_0x2a83cc=>_0x2a83cc['isInContent']&&_0x2a83cc['author']==_0x1214ec),_0x3af201=new Set(),_0x22b255=new Set();for(const _0x1ce888 of _0x194bc6)if('tablePaste'==_0x1ce888['subType'])for(const _0x12cd1b of _0x1ce888['getMarkers']()){const _0x1599a1=_0x12cd1b['getRange']()['getContainedElement']();if(_0x1599a1){if(_0x1599a1['is']('element','tableCellSuggestion')&&ke(_0x1599a1)){_0x1ce888['removeMarker'](_0x12cd1b['name']),_0x3af201['add'](_0x1599a1),_0x462293=!0x0;const _0xabda9e=_0x1599a1['nextSibling'],_0x2a370f=_0x1599a1['previousSibling'],_0x413615=_0xabda9e&&_0xabda9e['is']('element','tableCellSuggestion'),_0x3d1095=_0x2a370f&&_0x2a370f['is']('element','tableCellSuggestion');_0x413615&&!_0x3af201['has'](_0xabda9e)&&_0x22b255['add'](_0xabda9e),_0x3d1095&&!_0x3af201['has'](_0x2a370f)&&_0x22b255['add'](_0x2a370f);}else _0x1599a1['is']('element','paragraph')&&_0x1599a1['isEmpty']&&(_0x1ce888['removeMarker'](_0x12cd1b['name']),_0x462293=!0x0);}}else{if('tablePasteCell'==_0x1ce888['subType']){if(!_0x1ce888['attributes']||!_0x1ce888['attributes']['tablePasteChainId'])continue;const _0x582491=_0x1ce888['attributes']['markerAttributes'];if(_0x582491&&Object['keys'](_0x582491)['length'])continue;const _0x55d0e4=_0x1ce888['attributes']['tablePasteChainId'];let _0x3824bf=!0x0,_0x3ebf7e=!0x0;for(const _0x78b63e of _0x194bc6)if(_0x78b63e['subType']&&_0x78b63e['subType']['startsWith']('tablePaste')){if(!_0x78b63e['attributes']['tablePasteChainId']){_0x3ebf7e=!0x1;break;}if(_0x78b63e['id']!=_0x1ce888['id']&&_0x78b63e['attributes']['tablePasteChainId']==_0x55d0e4){_0x3824bf=!0x1;break;}}_0x3ebf7e&&_0x3824bf&&(_0x1ce888['removeMarkers'](),_0x462293=!0x0);}}for(const _0x1b80dc of _0x3af201)_0x2798da['remove'](_0x1b80dc);for(const _0xa44caa of _0x22b255)_0x2798da['unwrap'](_0xa44caa);return _0x462293;}),_0xecd6ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2ffb84=>_0x3c8d0f(_0x2ffb84),'converterPriority':'high'}),_0xecd6ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x342c85,_0x2f11c9)=>_0x2f11c9['options']['showSuggestionHighlights']?_0x3c8d0f(_0x342c85,!0x1):null,'converterPriority':'high'});const _0x358d26=_0xecd6ca['editing']['view'];this['listenTo'](_0x358d26['document'],'clipboardOutput',(_0x48ecc4,_0x2c4312)=>{const _0x8649bb=[];for(const _0x2674e7 of _0x358d26['createRangeIn'](_0x2c4312['content'])['getItems']())_0x2674e7['is']('element','suggestion-td')&&_0x8649bb['push'](_0x2674e7);_0x358d26['change'](_0x2b0871=>{for(const _0x996702 of _0x8649bb)_0x2b0871['move'](_0x2b0871['createRangeIn'](_0x996702),_0x2b0871['createPositionBefore'](_0x996702)),_0x2b0871['remove'](_0x996702);});});}}function ke(_0x29f047){if(_0x29f047['isEmpty'])return!0x0;const _0x2a2f18=_0x29f047['getChild'](0x0);return _0x2a2f18['is']('element','paragraph')&&_0x2a2f18['isEmpty'];}function Re(_0x4b31aa,_0x1bbae8={},_0x227fe9){for(const {isAnchor:_0x4c6aaf,cellHeight:_0x41e6ac,cellWidth:_0x45b809}of _0x227fe9['createTableWalker'](_0x4b31aa,{'includeAllSlots':!0x0,..._0x1bbae8}))if(!_0x4c6aaf||0x1!=_0x41e6ac||0x1!=_0x45b809)return!0x1;return!0x0;}class Nt extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1cf54e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cf54e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1cf54e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1cf54e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cf54e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1cf54e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1cf54e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x444dd4,_0x451af7){const _0x2a4068=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27bc1a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x138c0f=_0x451af7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x9f392b=_0x27bc1a['getColumnGroupElement'](_0x138c0f);let _0x1ebe2d=_0x9f392b?_0x27bc1a['getTableColumnsWidths'](_0x9f392b):null,_0x434ebf=_0x138c0f['getAttribute']('tableWidth')||null;const _0xa17716=_0x451af7['tableWidth']||_0x434ebf,_0x3a5b35=_0x451af7['columnWidths']||_0x1ebe2d,_0x290107=this['editor']['plugins']['get']('Users')['me'];for(const _0x45f9a6 of _0x2a4068['getSuggestions']()){const _0x568289=_0x45f9a6['getContainedElement']();if('resizeTable'===_0x45f9a6['subType']&&_0x568289===_0x138c0f){_0x45f9a6['author']!==_0x290107&&_0x45f9a6['discard']();const _0x5b129a=_0x45f9a6['data']['commandParams'];_0x434ebf=_0x5b129a[0x0]['tableWidth'],_0x1ebe2d=_0x5b129a[0x0]['columnWidths'];break;}}_0x444dd4({'table':_0x138c0f,'tableWidth':_0xa17716,'columnWidths':_0x3a5b35}),_0x2a4068['markBlockFormat'](_0x138c0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x434ebf,'columnWidths':_0x1ebe2d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x32a18a){if('formatBlock'!=_0x32a18a['type']&&'formatInline'!=_0x32a18a['type'])return;const {data:_0x2dafdc}=_0x32a18a;if(_0x2dafdc&&'resizeTable'===_0x2dafdc['formatGroupId']){const _0x268fe1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x268fe1)};}}}class Dt extends _0x16a2ad{['afterInit'](){const _0x38779b=this['editor'];_0x38779b['plugins']['has']('Template')&&_0x38779b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x16a2ad{['afterInit'](){const _0x1c8fa9=this['editor'];if(!_0x1c8fa9['commands']['get']('insertTableOfContents'))return;_0x1c8fa9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5856a5=_0x1c8fa9['plugins']['get']('TrackChangesEditing'),_0x5463e6=_0x1c8fa9['locale'];_0x5856a5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3060ed=>o(_0x5463e6,'ELEMENT_TABLE_OF_CONTENTS',_0x3060ed));}}class $t extends _0x16a2ad{['afterInit'](){const _0x53103d=this['editor'];if(!_0x53103d['plugins']['has']('Title'))return;const _0x4b7ac5=_0x53103d['plugins']['get']('TrackChangesEditing');_0x4b7ac5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x53103d['locale'],'ELEMENT_TITLE')),_0x53103d['model']['document']['registerPostFixer'](_0x2ccc87=>{let _0x3bbb22=!0x1;const _0x7f53c0=Array['from'](_0x53103d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39d44b,data:_0x1d990a}of _0x7f53c0){const {group:_0x350714}=_0x4b7ac5['_splitMarkerName'](_0x39d44b);if('suggestion'!==_0x350714||!_0x1d990a['newRange'])continue;const _0x1eb46e=_0x1d990a['newRange'],_0xb2a84b=_0x1eb46e['end']['nodeBefore'];if(!_0xb2a84b||!_0xb2a84b['is']('element','title-content'))continue;if(!_0x1eb46e['start']['isTouching'](_0x1eb46e['end']))continue;const _0x2a9662=_0x53103d['model']['schema']['getNearestSelectionRange'](_0x1eb46e['end'],'forward');if(_0x2a9662&&_0x2a9662['isCollapsed']){const _0x128625=_0x2ccc87['createRange'](_0x1eb46e['start'],_0x2a9662['start']);_0x128625['isEqual'](_0x1eb46e)||(_0x2ccc87['updateMarker'](_0x39d44b,{'range':_0x128625}),_0x3bbb22=!0x0);}_0x3bbb22||(_0x2ccc87['removeMarker'](_0x39d44b),_0x3bbb22=!0x0);}return _0x3bbb22;});}}class Bt extends _0x16a2ad{['afterInit'](){const _0x3c5506=this['editor'],_0x2ba949=_0x3c5506['plugins']['get']('TrackChangesEditing');_0x3c5506['plugins']['has']('UndoEditing')&&(_0x2ba949['enableCommand']('undo'),_0x2ba949['enableCommand']('redo'));}}class xt extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x4fee00=this['editor'];if(!_0x4fee00['plugins']['has']('TableCaptionEditing'))return;_0x4fee00['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x16a2ad{['tableProperties'];['tableCellProperties'];constructor(_0x1d87b1){super(_0x1d87b1),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 _0x28b2e9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x443f3b of this['tableProperties'])_0x28b2e9['enableCommand'](_0x443f3b,(_0x3762bf,_0x8bec59)=>{const _0x408b5a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x443f3b,[_0x408b5a],this['tableProperties'],'tableProperties',_0x3762bf,_0x8bec59);});_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x28b2e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26273a,_0x54b8e5)=>this['handleDiscardAction'](this['tableProperties'],_0x26273a,_0x54b8e5)),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4b8a15 of this['tableCellProperties'])_0x28b2e9['enableCommand'](_0x4b8a15,(_0x145cb1,_0x13f92b)=>{const _0x14507f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4b8a15,_0x14507f,this['tableCellProperties'],'tableCellProperties',_0x145cb1,_0x13f92b);});_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x28b2e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x427d4e,_0x3f49a0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x427d4e,_0x3f49a0)),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x28b2e9['descriptionFactory']['registerDescriptionCallback'](_0x5ab412=>this['handleSuggestionDescription'](_0x5ab412));}['_handlePropertyChange'](_0x1223c2,_0x599812,_0x209f8d,_0x613e28,_0xe1ce6f,_0x424cb2){const _0x5c88b9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x424cb2['batch'],()=>{for(const _0x235af8 of _0x599812){if(this['_getSuggestion'](_0x235af8,_0x613e28))_0xe1ce6f(_0x424cb2);else{const _0x3c2919={};for(const _0x430525 of _0x209f8d){const _0x32e679=_0x235af8['getAttribute'](_0x430525);void 0x0!==_0x32e679&&(_0x3c2919[_0x430525]=_0x32e679);}_0xe1ce6f(_0x424cb2),_0x5c88b9['markBlockFormat'](_0x235af8,{'commandParams':[_0x3c2919]},[],_0x613e28);}}});}['handleDiscardAction'](_0x3cf29e,_0xfa6a29,_0x408911){const _0x257a89=_0xfa6a29[0x0]['start']['nodeAfter'],_0x55494d=_0x408911['commandParams'][0x0];this['editor']['model']['change'](_0x33e183=>{for(const _0x4d8a79 of _0x3cf29e)void 0x0!==_0x55494d[_0x4d8a79]?_0x33e183['setAttribute'](_0x4d8a79,_0x55494d[_0x4d8a79],_0x257a89):_0x33e183['removeAttribute'](_0x4d8a79,_0x257a89);});}['handleSuggestionDescription'](_0x6058f4){if(_0x6058f4['data'])switch(_0x6058f4['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'](_0x5938fb,_0x4ebd37){const _0x1227d4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d5b41 of _0x1227d4['getSuggestions']({'skipNotAttached':!0x0})){const _0x55514f=_0x3d5b41['getContainedElement']();if(_0x3d5b41['subType']===_0x4ebd37&&_0x55514f===_0x5938fb)return _0x3d5b41;}return null;}}const m='$elementName';class p extends _0x16a2ad{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5680c5,_0x57b538,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d897c){function _0x311db0(_0x4e56c2){return _0x4e56c2['map'](_0x20ab6f=>String['fromCharCode'](_0x20ab6f))['join']('');}super(_0x1d897c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x856554,_0x2e1e75,_0x1bf750,_0x311222)=>{this['_model']['change'](()=>{for(const _0x379a2d of[..._0x311222,..._0x1bf750])this['_model']['markers']['has'](_0x379a2d)&&_0x1d897c['editing']['reconvertMarker'](_0x379a2d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1d897c['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(),_0x1d897c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1d897c['config']['get']('trackChanges.trackFormatChanges'),_0x1d897c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1d897c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1d897c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x311db0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x311db0([0x34,0x30,0x34,0x38,0x32,0x30,0x35,0x30]);}['init'](){const _0x3332ae=this['editor'],_0x59f621=(_0x23aefe,_0x34c5e6)=>{if('attribute'!=_0x23aefe)return'ck-suggestion-marker-'+_0x23aefe;const _0x520915=_0x34c5e6['split']('|')[0x0];return this['_isBlockAttribute'](_0x520915)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3332ae['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ff78a=>{const {id:_0x163081,authorId:_0x28a8f8,type:_0x28e0c1,subType:_0xae49a}=this['_splitMarkerName'](_0x3ff78a['markerName']),_0x244905=['ck-suggestion-marker',_0x59f621(_0x28e0c1,_0xae49a)];let _0x2e1df5=0xbb8;return this['activeMarkers']['includes'](_0x3ff78a['markerName'])&&(_0x244905['push']('ck-suggestion-marker--active'),_0x2e1df5=0xbc2),'deletion'==_0x28e0c1&&(_0x2e1df5+=0x5),{'classes':_0x244905,'attributes':{'data-suggestion':_0x163081,'data-author-id':_0x28a8f8},'priority':_0x2e1df5};}}),_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x123b9a=>{_0x123b9a['on']('addMarker:suggestion',(_0x694b5b,_0x5f5382,_0x5aa099)=>{if(!_0x5aa099['options']['showSuggestionHighlights'])return;const _0x51ecb6=_0x5f5382['item'];if(!_0x51ecb6)return;const _0x184fa1=_0x5aa099['mapper']['toViewElement'](_0x51ecb6);_0x3332ae['model']['schema']['isObject'](_0x51ecb6)&&_0x184fa1&&!_0x184fa1['getCustomProperty']('widget')&&_0x184fa1['is']('containerElement')&&_0x1dfbcb(_0x184fa1,_0x5aa099['writer']);},{'priority':'high'});}),_0x3332ae['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x14ab44,_0xf1f3a6)=>{if(!_0xf1f3a6['options']['showSuggestionHighlights'])return null;const {type:_0x15083d,subType:_0x55de5c}=this['_splitMarkerName'](_0x14ab44['markerName']);return{'classes':['ck-suggestion-marker',_0x59f621(_0x15083d,_0x55de5c)],'priority':0xbb8};}});const _0x42c029=({showActiveMarkers:_0x78291=!0x0,isAttributeSuggestion:_0x49a1ae=!0x1}={})=>(_0x5639ec,_0x1c35ac,_0x1a3cb3)=>{if(!_0x1c35ac['item'])return;const {id:_0x21dbf4,authorId:_0x53c6be}=this['_splitMarkerName'](_0x1c35ac['markerName']);if(_0x49a1ae){const _0x170ed8=this['_suggestions']['get'](_0x21dbf4),_0x20d71f=this['_getAttributeKey'](_0x170ed8);if(!this['_isBlockAttribute'](_0x20d71f))return;}if(_0x1c35ac['item']['is']('selection'))return void _0x1a3cb3['consumable']['consume'](_0x1c35ac['item'],_0x5639ec['name']);const _0x22ae91=_0x1a3cb3['mapper']['toViewElement'](_0x1c35ac['item']);if(_0x1c35ac['item']['is']('element')&&_0x3332ae['model']['schema']['isBlock'](_0x1c35ac['item'])&&!_0x22ae91['getCustomProperty']('addHighlight')){_0x1a3cb3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x22ae91),_0x1a3cb3['writer']['setAttribute']('data-suggestion',_0x21dbf4,_0x22ae91),_0x1a3cb3['writer']['setAttribute']('data-author-id',_0x53c6be,_0x22ae91),_0x1a3cb3['mapper']['bindElementToMarker'](_0x22ae91,_0x1c35ac['markerName']),_0x78291&&(this['activeMarkers']['includes'](_0x1c35ac['markerName'])?_0x1a3cb3['writer']['addClass']('ck-suggestion-marker--active',_0x22ae91):_0x1a3cb3['writer']['removeClass']('ck-suggestion-marker--active',_0x22ae91));for(const _0x5f0435 of _0x3332ae['model']['createRangeIn'](_0x1c35ac['item'])['getItems']())_0x1a3cb3['consumable']['consume'](_0x5f0435,_0x5639ec['name']);_0x1a3cb3['consumable']['consume'](_0x1c35ac['item'],_0x5639ec['name']);}};_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x469ce8=>{_0x469ce8['on']('addMarker:suggestion:formatBlock',(_0x4634ca,_0x351681,_0x19c2c2)=>{_0x19c2c2['options']['showSuggestionHighlights']&&_0x42c029({'showActiveMarkers':!0x1})(_0x4634ca,_0x351681,_0x19c2c2);},{'priority':'highest'});}),_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x2c762f=>{_0x2c762f['on']('addMarker:suggestion:attribute',(_0x38fa76,_0x1ee8f9,_0x5a3354)=>{_0x5a3354['options']['showSuggestionHighlights']&&_0x42c029({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38fa76,_0x1ee8f9,_0x5a3354);},{'priority':'highest'});}),_0x3332ae['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x214b44,_0x160cc4)=>_0x160cc4['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x214b44['substr'](0xb)}}),_0x3332ae['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x204293,{writer:_0x2ed46d})=>{let _0x352418='suggestion:'+_0x204293['getAttribute']('suggestion-type')+':'+_0x204293['getAttribute']('id');return _0x204293['getAttribute']('marker-count')&&(_0x352418+=':'+_0x204293['getAttribute']('marker-count')),_0x2ed46d['createElement']('$marker',{'data-name':_0x352418});}}),_0x3332ae['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x20d85d=>{_0x20d85d['on']('addMarker:suggestion:formatBlock',_0x42c029(),{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x5f435b=>{_0x5f435b['on']('addMarker:suggestion:attribute',_0x42c029({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x168f14=>{_0x168f14['on']('removeMarker:suggestion:formatBlock',(_0x23ed0d,_0x45a7b4,_0x175113)=>{const _0x19e6e5=_0x175113['mapper']['markerNameToElements'](_0x45a7b4['markerName']);if(_0x19e6e5){for(const _0x55d163 of _0x19e6e5)_0x55d163['getCustomProperty']('addHighlight')||(_0x175113['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x55d163),_0x175113['writer']['removeAttribute']('data-suggestion',_0x55d163),_0x175113['writer']['removeAttribute']('data-author-id',_0x55d163),_0x175113['mapper']['unbindElementFromMarkerName'](_0x55d163,_0x45a7b4['markerName']));}},{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x3b7ede=>{_0x3b7ede['on']('removeMarker:suggestion:attribute',(_0x19a5c5,_0x4b521c,_0x567610)=>{const _0x54a502=_0x567610['mapper']['markerNameToElements'](_0x4b521c['markerName']);if(!_0x54a502)return;const {id:_0x4164c6}=this['_splitMarkerName'](_0x4b521c['markerName']),_0x3959c8=this['_suggestions']['get'](_0x4164c6),_0x572c1f=this['_getAttributeKey'](_0x3959c8);if(this['_isBlockAttribute'](_0x572c1f)){for(const _0x37a0b9 of _0x54a502)_0x37a0b9['getCustomProperty']('addHighlight')||(_0x567610['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37a0b9),_0x567610['writer']['removeAttribute']('data-suggestion',_0x37a0b9),_0x567610['writer']['removeAttribute']('data-author-id',_0x37a0b9),_0x567610['mapper']['unbindElementFromMarkerName'](_0x37a0b9,_0x4b521c['markerName']));}},{'priority':'high'});}),_0x3332ae['model']['document']['registerPostFixer'](_0x456745=>{let _0x3bae6f=!0x1;const _0x334bfd=Array['from'](_0x3332ae['model']['document']['differ']['getChangedMarkers']()),_0x32670d=new Set();for(const {name:_0x2d6ea4,data:_0x4f219d}of _0x334bfd){const {group:_0x32f57c,type:_0x5a934d,subType:_0x3de4b3,id:_0x38da2b}=this['_splitMarkerName'](_0x2d6ea4);if('suggestion'!==_0x32f57c)continue;const _0x1d24ff=this['_suggestions']['get'](_0x38da2b);if(null!=_0x4f219d['newRange']){'formatInline'==_0x5a934d&&(_0x3bae6f=_0x3bae6f||Ut(_0x4f219d['newRange'],_0x2d6ea4,_0x456745,_0x3332ae['model']['schema']));const _0x3081eb='attribute'==_0x5a934d&&this['_isBlockAttribute'](_0x3de4b3['split']('|')[0x0]);if(_0x4f219d['newRange']['isCollapsed']||'$graveyard'==_0x4f219d['newRange']['root']['rootName']||'formatBlock'==_0x5a934d&&!Gt(_0x4f219d['newRange'])||_0x3081eb&&!Gt(_0x4f219d['newRange'])||'deletion'==_0x5a934d&&!(!Vt(_0x1f66a5=_0x4f219d['newRange'])&&!function(_0x57c0f9){return _0x57c0f9['start']['parent']==_0x57c0f9['end']['nodeBefore']&&_0x57c0f9['start']['isAtEnd'];}(_0x1f66a5)))_0x456745['removeMarker'](_0x2d6ea4),_0x3bae6f=!0x0;else{if(!_0x1d24ff||!_0x1d24ff['isInContent'])continue;if(_0x4f219d['newRange']&&_0x4f219d['oldRange']&&_0x4f219d['newRange']['isEqual'](_0x4f219d['oldRange']))continue;_0x32670d['add'](_0x1d24ff);}}}var _0x1f66a5;return _0x32670d['size']>0x0&&(_0x3bae6f=!!this['_joinWithAdjacentSuggestions'](_0x32670d)||_0x3bae6f),_0x3bae6f;}),_0x3332ae['model']['document']['registerPostFixer'](_0x2aaf32=>{let _0x42bcb9=!0x1;for(const _0x139033 of _0x3332ae['model']['document']['differ']['getChanges']())if('insert'==_0x139033['type'])for(const _0x3d94f4 of this['_suggestions']['values']()){if(_0x3d94f4['isMultiRange']||!_0x3d94f4['isInContent'])continue;const _0x78a7d1='formatBlock'==_0x3d94f4['type'],_0x47c4c1=this['_getAttributeKey'](_0x3d94f4),_0x3f8839=_0x47c4c1&&this['_isBlockAttribute'](_0x47c4c1);if(!_0x78a7d1&&!_0x3f8839)continue;const _0x18152a=_0x3d94f4['getFirstRange']();if(_0x18152a['start']['parent']!=_0x18152a['end']['parent']&&!_0x18152a['end']['isAtEnd']){const _0x143df8=_0x3332ae['model']['createPositionAt'](_0x18152a['start']['nodeAfter'],'end'),_0x3e2292=_0x3332ae['model']['createRange'](_0x18152a['start'],_0x143df8);_0x2aaf32['updateMarker'](_0x3d94f4['getFirstMarker'](),{'range':_0x3e2292}),_0x42bcb9=!0x0;}}return _0x42bcb9;}),_0x3332ae['model']['document']['registerPostFixer'](_0x50672e=>this['_processAttributeChanges'](_0x50672e)),_0x3332ae['model']['document']['registerPostFixer'](_0x53a56c=>!_0x53a56c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53a56c)),_0x3332ae['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3332ae['model']['document']['on']('change:data',(_0x286401,_0x129f5d)=>{if(!_0x129f5d['isLocal']||_0x129f5d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3a9428=_0x3332ae['model']['document']['differ']['getChanges']();if(0x0==_0x3a9428['length'])return;const _0x2fbcd0=[],_0x425146=_0x3a9428['filter'](_0x37315f=>'attribute'==_0x37315f['type']),_0x49115c=_0x3a9428['filter'](_0x86bed6=>'insert'==_0x86bed6['type']&&'$text'!=_0x86bed6['name']);for(const _0xaed322 of _0x425146)this['_isRegisteredAttribute'](_0xaed322['attributeKey'])&&_0x2fbcd0['push']({'key':_0xaed322['attributeKey'],'newValue':_0xaed322['attributeNewValue'],'oldValue':_0xaed322['attributeOldValue'],'range':Ft(_0xaed322['range'],_0x3332ae['model'])});for(const _0x22d472 of _0x49115c){if('rename'!=_0x22d472['action']&&'refresh'!=_0x22d472['action'])continue;const _0x59429a=Lt(_0x22d472['position']['nodeAfter'],_0x3332ae['model']),_0x36651e=_0x22d472['before'];'rename'==_0x22d472['action']&&_0x2fbcd0['push']({'key':m,'newValue':_0x22d472['name'],'oldValue':_0x36651e['name'],'range':_0x59429a});for(const [_0x47f146,_0x425377]of _0x36651e['attributes']){if(!this['_isRegisteredAttribute'](_0x47f146))continue;const _0x5acc1c=_0x22d472['attributes']['get'](_0x47f146);_0x425377!==_0x5acc1c&&_0x2fbcd0['push']({'key':_0x47f146,'newValue':_0x5acc1c,'oldValue':_0x425377,'range':_0x59429a});}for(const [_0x302999,_0x5d98ab]of _0x22d472['attributes'])this['_isRegisteredAttribute'](_0x302999)&&(_0x36651e['attributes']['has'](_0x302999)||_0x2fbcd0['push']({'key':_0x302999,'newValue':_0x5d98ab,'oldValue':null,'range':_0x59429a}));}0x0!=_0x2fbcd0['length']&&_0x3332ae['model']['enqueueChange'](_0x129f5d,_0x25aa39=>{const _0x29a462=_0x31d1bc();for(const {range:_0x6ba546,key:_0x322f6a,oldValue:_0x4245cb,newValue:_0x22a48b}of _0x2fbcd0)this['markAttributeChange'](_0x6ba546,_0x322f6a,_0x4245cb,_0x22a48b,{'groupId':_0x29a462});this['_reduceExistingSuggestions'](_0x25aa39,_0x2fbcd0);});},{'priority':'lowest'}),_0x3332ae['model']['markers']['on']('update:suggestion',(_0x432fc2,_0x3cfd40,_0x3c9edf)=>{if(null==_0x3c9edf){const {id:_0x43c7ef}=this['_splitMarkerName'](_0x3cfd40['name']),_0x541cd3=this['_suggestions']['get'](_0x43c7ef);_0x541cd3&&_0x541cd3['addMarkerName'](_0x3cfd40['name']);}}),_0x3332ae['model']['document']['on']('change:data',()=>{const _0x329206=Array['from'](_0x3332ae['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31f751=>'suggestion'===this['_splitMarkerName'](_0x31f751['name'])['group']);if(0x0===_0x329206['length'])return;_0x329206['sort']((_0x27f059,_0x3bee1d)=>{const _0x4d80aa=_0x27f059['data']['oldRange'],_0x1c878f=_0x3bee1d['data']['oldRange'];return null===_0x4d80aa&&null===_0x1c878f?0x0:null===_0x4d80aa&&null!==_0x1c878f?-0x1:null!==_0x4d80aa&&null===_0x1c878f?0x1:_0x4d80aa['start']['isBefore'](_0x1c878f['start'])?-0x1:0x1;});const _0x3ce501=new Set(),_0x2c2563=new Set();for(const {name:_0x494cad,data:_0x22c87d}of _0x329206){const {id:_0x47dd91}=this['_splitMarkerName'](_0x494cad);if(null===_0x22c87d['oldRange']){const _0x50fbd7=this['_handleNewSuggestionMarker'](_0x494cad);_0x2c2563['add'](_0x50fbd7);}else{const _0xb69be1=this['_suggestions']['get'](_0x47dd91);null!==_0x22c87d['newRange']||_0xb69be1['isInContent']?(_0x3ce501['add'](_0xb69be1['head']),_0x2c2563['add'](_0xb69be1)):this['_removeSuggestion'](_0xb69be1);}}_0x2c2563['size']>0x0&&this['_refreshSuggestionsChain'](_0x2c2563);for(const _0x4c3648 of _0x3ce501)this['fire']('suggestionChanged',_0x4c3648);}),_0x3332ae['model']['on']('applyOperation',(_0xe4ab68,_0x1cb530)=>{const _0x58959d=_0x1cb530[0x0];if(!this['_suggestions']['size'])return;if(!_0x58959d['isDocumentOperation'])return;if(_0x58959d['batch']['isUndo']||!_0x58959d['batch']['isLocal'])return;let _0x41b883,_0x9816d6;switch(_0x58959d['type']){case'insert':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['position']),_0x9816d6=_0x41b883['getShiftedBy'](_0x58959d['howMany']);break;case'split':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['splitPosition']),_0x9816d6=_0x3332ae['model']['createPositionAt'](_0x58959d['moveTargetPosition']);break;case'move':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['targetPosition']),_0x9816d6=_0x41b883['getShiftedBy'](_0x58959d['howMany']);break;default:return;}const _0x2572d7=_0x3332ae['model']['createRange'](_0x41b883,_0x9816d6);_0x3332ae['model']['change'](()=>{for(const {suggestion:_0x555dd0,meta:_0x516c1c}of this['_findSuggestions'](_0x2572d7)){if(_0x555dd0['isMultiRange'])continue;if('formatInline'==_0x555dd0['type'])continue;const _0xc3365e=this['_getAttributeKey'](_0x555dd0);if(_0xc3365e&&this['_isBlockAttribute'](_0xc3365e)&&'split'!=_0x58959d['type'])continue;const _0x26ce18=_0x555dd0['data']&&_0x555dd0['data']['multipleBlocks'];('formatBlock'!=_0x555dd0['type']||'split'==_0x58959d['type']&&!_0x26ce18)&&(_0x516c1c['containsRangeInObject']||'insertion'==_0x555dd0['type']&&_0x516c1c['isOwn']||_0x555dd0['getFirstRange']()['containsRange'](_0x2572d7)&&this['_breakSuggestionMarker'](_0x555dd0,_0x41b883,_0x9816d6));}});},{'priority':'lowest'}),_0x3332ae['model']['on']('deleteContent',(_0x542637,_0x249bc6)=>{const _0x33d465=_0x249bc6[0x0],_0x32e37b=_0x249bc6[0x1];if(_0x32e37b&&_0x32e37b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x33d465['isCollapsed'])return;const _0x58ec7a=_0x3332ae['model']['schema'],{start:_0x3d4318,end:_0x3c197d}=_0x33d465['getFirstRange'](),_0x3849fd=_0x3d4318['nodeAfter']&&_0x58ec7a['isLimit'](_0x3d4318['nodeAfter'])?null:_0x58ec7a['getNearestSelectionRange'](_0x3d4318,'forward'),_0x497165=_0x3c197d['nodeBefore']&&_0x58ec7a['isLimit'](_0x3c197d['nodeBefore'])?null:_0x58ec7a['getNearestSelectionRange'](_0x3c197d,'backward'),_0x3a3c72=_0x3332ae['model']['createRange'](_0x3849fd?_0x3849fd['start']:_0x3d4318,_0x497165?_0x497165['end']:_0x3c197d);_0x3332ae['model']['change'](_0x2431de=>{this['markDeletion'](_0x3a3c72);const _0x4f48ec=_0x3332ae['model']['schema']['getNearestSelectionRange'](_0x3a3c72['start']);_0x33d465['is']('documentSelection')?_0x2431de['setSelection'](_0x4f48ec):_0x33d465['setTo'](_0x4f48ec);}),_0x542637['stop']();},{'priority':_0x3a7800['normal']+0xa}),_0x3332ae['model']['on']('insertContent',(_0x38f694,_0x48da9b)=>{const _0x34e028=_0x48da9b[_0x48da9b['length']-0x1];_0x34e028&&_0x34e028['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3332ae['model']['change'](()=>{let _0x584ae2=_0x3332ae['model']['insertContent'](_0x48da9b[0x0],_0x48da9b[0x1],_0x48da9b[0x2],{'forceDefaultExecution':!0x0});if(!_0x584ae2)return;_0x38f694['return']=_0x584ae2['clone']();const _0x1e2365=_0x584ae2['end']['nodeBefore'],_0x5789f0=_0x3332ae['model']['schema'];_0x1e2365&&_0x5789f0['isBlock'](_0x1e2365)&&!_0x5789f0['isObject'](_0x1e2365)&&(_0x584ae2=_0x3332ae['model']['createRange'](_0x584ae2['start'],_0x3332ae['model']['createPositionAt'](_0x1e2365,'end'))),this['markInsertion'](_0x584ae2);}),_0x38f694['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x199b83=new x(_0x3332ae,this['_suggestions']);_0x3332ae['commands']['add']('acceptSuggestion',_0x199b83),this['enableCommand']('acceptSuggestion');const _0x4e23b2=new O(_0x3332ae,this['_suggestions']);_0x3332ae['commands']['add']('discardSuggestion',_0x4e23b2),this['enableCommand']('discardSuggestion'),_0x3332ae['commands']['add']('acceptAllSuggestions',new R(_0x3332ae,_0x199b83,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3332ae['commands']['add']('discardAllSuggestions',new R(_0x3332ae,_0x4e23b2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3332ae['commands']['add']('acceptSelectedSuggestions',new E(_0x3332ae,_0x199b83,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3332ae['commands']['add']('discardSelectedSuggestions',new E(_0x3332ae,_0x4e23b2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xb4f1eb=_0x3332ae['plugins']['get']('CommentsRepository');this['listenTo'](_0xb4f1eb,'addComment',(_0x23a961,{threadId:_0x557f48})=>{const _0x5c75dd=this['_suggestions']['get'](_0x557f48);_0x5c75dd&&_0x5c75dd['commentThread']&&0x1===_0x5c75dd['commentThread']['length']&&this['_updateSuggestionData'](_0x557f48,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xb4f1eb,'removeComment',(_0x2b5210,{threadId:_0x308150})=>{const _0x3fe383=this['_suggestions']['get'](_0x308150);_0x3fe383&&_0x3fe383['commentThread']&&!_0x3fe383['commentThread']['length']&&this['_updateSuggestionData'](_0x308150,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5dec36){if(this['_adapter'])throw new _0x2f735b('track-changes-adapter-already-set',this);this['_adapter']=_0x5dec36;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x263083=!0x1,toJSON:_0x284855=!0x1}={}){const _0x742040=[];for(const _0x27dbea of this['_suggestions']['values']())_0x263083&&!_0x27dbea['isInContent']||_0x742040['push'](_0x27dbea);return _0x284855?_0x742040['map'](_0x1f8c1d=>_0x1f8c1d['toJSON']()):_0x742040;}['getSuggestion'](_0x2d2e7a){const _0xa0f3f4=this['_suggestions']['get'](_0x2d2e7a);if(!_0xa0f3f4)throw new _0x2f735b('track-changes-suggestion-not-found',this);return _0xa0f3f4;}['hasSuggestion'](_0x6fbd1f){return this['_suggestions']['has'](_0x6fbd1f);}['addSuggestionData'](_0x1dca27){const {authorId:_0x394cb5,id:_0x11518b,attributes:_0x2c1065}=_0x1dca27,[_0x4ce7b1,_0x5b57da]=_0x1dca27['type']['split'](':'),_0x188806=this['_suggestions']['get'](_0x11518b)||this['_createSuggestion'](_0x4ce7b1,_0x5b57da,_0x11518b,_0x394cb5,_0x2c1065);if(this['_addThreadToSuggestion'](_0x188806),this['_checkSuggestionCorrectness'](_0x188806,_0x4ce7b1,_0x5b57da||null,_0x394cb5),_0x188806['createdAt']=_0x1dca27['createdAt'],_0x188806['_isDataLoaded']=!0x0,_0x2c1065&&_0x2c1065['@external']){const _0x918b0a=_0x2c1065['@external'],_0x4b0351=this['_getExternalAuthor'](_0x918b0a['authorName']);_0x188806['authoredAt']=_0x918b0a['createdAt'],_0x188806['author']=_0x4b0351,_0x188806['isExternal']=!0x0;}else _0x188806['authoredAt']=_0x1dca27['createdAt'];switch(_0x1dca27['data']&&(_0x188806['data']=_0x1dca27['data']),_0x1dca27['attributes']&&(_0x188806['attributes']=_0x1dca27['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x188806['_saved']=!0x0),this['_suggestionState']['get'](_0x188806)){case'notReady':this['_suggestionState']['set'](_0x188806,'dataReady');break;case'markerReady':_0x188806['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x188806])),this['_refreshSuggestionsChain'](new Set([_0x188806])),this['_suggestionState']['set'](_0x188806,'ready'),this['fire']('suggestionLoaded',_0x188806)):this['_suggestionState']['set'](_0x188806,'removed');}return _0x188806;}['acceptSuggestion'](_0x145b7e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x46d27e of _0x145b7e['getAllAdjacentSuggestions']())_0x46d27e['accept']();});});}['discardSuggestion'](_0x4ce958){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2acb3d of _0x4ce958['getAllAdjacentSuggestions']())_0x2acb3d['discard']();});});}['enableCommand'](_0x2e1df9,_0x4a2240){const _0x13bbd3=this['editor']['commands']['get'](_0x2e1df9);if(!_0x13bbd3)throw new _0x2f735b('track-changes-command-not-found',this,{'commandName':_0x2e1df9});if(this['_enabledCommands']['has'](_0x13bbd3))throw new _0x2f735b('track-changes-enable-command-twice',this,{'commandName':_0x2e1df9});this['_enabledCommands']['add'](_0x13bbd3),_0x4a2240&&_0x13bbd3['on']('execute',(_0x5a0861,_0x19b1e9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x19b1e9['length']>0x0&&_0x19b1e9[_0x19b1e9['length']-0x1]&&_0x19b1e9[_0x19b1e9['length']-0x1]['forceDefaultExecution']?_0x19b1e9['pop']():(_0x5a0861['return']=_0x4a2240((..._0x11b696)=>_0x13bbd3['execute'](..._0x11b696,{'forceDefaultExecution':!0x0}),..._0x19b1e9),_0x5a0861['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5202b8){let _0x3e372f,_0x56a145;const _0x2d9a73=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e372f=_0x5202b8();}catch(_0x6dfd90){_0x56a145=_0x6dfd90;}return _0x2d9a73||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x56a145&&_0x2f735b['rethrowUnexpectedError'](_0x56a145,this),_0x3e372f;}['markInsertion'](_0xac9b40,_0x6ca3e6=null,_0x4dd0b6={}){if(_0xac9b40['isCollapsed'])return null;const _0xd418af=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4b8be4,meta:_0x2ece7a}of this['_findSuggestions'](_0xac9b40,'insertion'))if(_0x2ece7a['isOwn']){if(!_0x2ece7a['isNextTo']){if(_0x2ece7a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4b8be4,_0x4dd0b6))continue;return _0x4b8be4;}if(qt(_0x4b8be4,_0x4dd0b6))return _0x4b8be4;this['_breakSuggestionMarker'](_0x4b8be4,_0xac9b40['start'],_0xac9b40['end']);break;}if(_0x6ca3e6==_0x4b8be4['subType']&&qt(_0x4b8be4,_0x4dd0b6)){const _0xb8f90e=_0x4b8be4['getFirstRange']();return _0xb8f90e['start']['isEqual'](_0xac9b40['end'])?this['_setSuggestionRange'](_0x4b8be4,this['_model']['createRange'](_0xac9b40['start'],_0xb8f90e['end'])):this['_setSuggestionRange'](_0x4b8be4,this['_model']['createRange'](_0xb8f90e['start'],_0xac9b40['end'])),_0x4b8be4;}}const _0x3d1b35=_0x31d1bc(),_0x5b21af=_0xd418af['id'],_0x275e65=_0x6ca3e6?'insertion:'+_0x6ca3e6:'insertion',_0x1a13d3=this['_setSuggestionData']({'id':_0x3d1b35,'type':_0x275e65,'createdAt':new Date(),'authorId':_0x5b21af,'attributes':_0x4dd0b6});return this['_addSuggestionMarker'](_0x275e65,_0x3d1b35,_0x5b21af,_0xac9b40),_0x1a13d3;}['markMultiRangeInsertion'](_0x1d1059,_0xa32680='multi',_0x50d599={}){const _0x529c17=this['editor']['plugins']['get']('Users')['me'],_0x336c36=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xa32680,'join');for(const _0x40dfda of this['getSuggestions']())if(_0x40dfda['author']['id']==_0x529c17['id']&&'insertion'==_0x40dfda['type']&&_0x40dfda['subType']==_0xa32680&&qt(_0x40dfda,_0x50d599)&&(_0x336c36(_0x40dfda['getRanges'](),_0x1d1059)||_0x336c36(_0x1d1059,_0x40dfda['getRanges']()))){for(const _0x20bdf of _0x1d1059)_0x40dfda['addRange'](_0x20bdf);return _0x40dfda;}for(const {suggestion:_0x100d24,meta:_0xa923bb}of this['_findSuggestions'](_0x1d1059,'insertion')){if(!_0xa923bb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa923bb['containsRangeInObject'])continue;if(!qt(_0x100d24,_0x50d599))continue;let _0x4336e8=!0x0;for(const _0xefdf64 of _0x100d24['getRanges']())for(const _0x406beb of _0x1d1059)if(!_0xefdf64['containsRange'](_0x406beb)){_0x4336e8=!0x1;break;}if(_0x4336e8)return _0x100d24;}const _0x13f186=_0x31d1bc(),_0x57b8bf=_0x529c17['id'],_0xb41011='insertion:'+_0xa32680,_0x4313f1=this['_setSuggestionData']({'id':_0x13f186,'type':_0xb41011,'createdAt':new Date(),'authorId':_0x57b8bf,'attributes':_0x50d599});for(const _0x4cb3c5 of _0x1d1059)this['_addSuggestionMarker'](_0xb41011,_0x13f186,_0x57b8bf,_0x4cb3c5,u['getMultiRangeId']());return _0x4313f1;}['markInlineFormat'](_0x3a3965,_0x86d1b7,_0x44cad4=null,_0xd20eb9={}){if(_0x44cad4=_0x44cad4||Pt(_0x86d1b7),_0x3a3965['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xf0a5c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44cad4,'accept');return this['forceDefaultExecution'](()=>_0xf0a5c([_0x3a3965],_0x86d1b7,_0xd20eb9)),null;}const _0x3603b8=this['editor']['plugins']['get']('Users')['me'],_0x38a03e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f6173,meta:_0x172be8}of this['_findSuggestions'](_0x3a3965,'insertion'))_0x172be8['isOwn']&&!_0x172be8['isInsideObject']&&_0x38a03e['push'](..._0x3f6173['getRanges']());}const _0x5dc2c6=function(_0x4a2e6c,_0x3c43df){const _0x1dd9dd=[];for(const _0x64c80b of _0x3c43df){const _0xf62806=_0x4a2e6c['getIntersection'](_0x64c80b);_0xf62806&&_0x1dd9dd['push'](_0xf62806);}return _0x1dd9dd;}(_0x3a3965,_0x38a03e),_0x273da0=function(_0x2d9c5a,_0x5af88d){const _0x6017e5=[_0x2d9c5a];for(const _0x21b761 of _0x5af88d){let _0x54ebb2=0x0;for(;_0x54ebb2<_0x6017e5['length'];){const _0x22093b=_0x6017e5[_0x54ebb2]['getDifference'](_0x21b761);_0x6017e5['splice'](_0x54ebb2,0x1,..._0x22093b),_0x54ebb2+=_0x22093b['length'];}}return _0x6017e5;}(_0x3a3965,_0x38a03e);_0x5dc2c6['length']&&this['_model']['change'](()=>{for(const _0x211286 of _0x5dc2c6){const _0x2b37d3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44cad4,'accept');this['forceDefaultExecution'](()=>_0x2b37d3([_0x211286],_0x86d1b7,_0xd20eb9));}});for(const _0x38428d of _0x273da0){let _0x50cc21=null,_0x10e9a8=_0x38428d['start'],_0x338b11=_0x38428d['end'];for(const {suggestion:_0x1143f6,meta:_0x1a3a6f}of this['_findSuggestions'](_0x38428d,'formatInline')){if(!_0x1a3a6f['isOwn'])continue;if(_0x1143f6['subType']!=_0x44cad4)continue;if(!qt(_0x1143f6,_0xd20eb9))continue;const _0x2edc28=_0x1143f6['getFirstRange']();if(_0x2edc28['containsRange'](_0x38428d,!0x0))return null;_0x10e9a8=_0x10e9a8['isBefore'](_0x2edc28['start'])?_0x10e9a8:_0x2edc28['start'],_0x338b11=_0x338b11['isAfter'](_0x2edc28['end'])?_0x338b11:_0x2edc28['end'],_0x50cc21?_0x2edc28['start']['isBefore'](_0x50cc21['getFirstRange']()['start'])?(_0x50cc21['removeMarkers'](),_0x50cc21=_0x1143f6):_0x1143f6['removeMarkers']():_0x50cc21=_0x1143f6;}const _0x2c5884=this['_model']['createRange'](_0x10e9a8,_0x338b11);if(_0x50cc21)this['_setSuggestionRange'](_0x50cc21,_0x2c5884);else{const _0x5f7326=_0x31d1bc(),_0x163dad=_0x3603b8['id'];this['_setSuggestionData']({'id':_0x5f7326,'type':'formatInline:'+_0x44cad4,'data':_0x86d1b7,'createdAt':new Date(),'authorId':_0x163dad,'attributes':_0xd20eb9}),this['_addSuggestionMarker']('formatInline:'+_0x44cad4,_0x5f7326,_0x163dad,_0x2c5884);}}return null;}['markBlockFormat'](_0x45b4df,_0xb5c856,_0x25bdb7=[],_0x80e741=null,_0x16a69f={}){_0xb5c856['formatGroupId']||(_0xb5c856['formatGroupId']=_0xb5c856['commandName']),_0xb5c856['multipleBlocks']=_0x45b4df['is']('range'),_0x80e741=_0x80e741||Pt(_0xb5c856);const _0x490fe9=_0x25bdb7['map'](_0x415fdf=>Lt(_0x415fdf,this['_model'])),_0x2f3cdd=_0x45b4df['is']('range')?_0x45b4df:Lt(_0x45b4df,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4dd0aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80e741,'accept');return this['forceDefaultExecution'](()=>_0x4dd0aa([_0x2f3cdd],_0xb5c856,_0x16a69f)),null;}_0x490fe9['push'](_0x2f3cdd);let _0x4e68b4=!0x0;for(const _0x18ee1b of _0x490fe9)if(!this['_rangeIsInLocalUserInsertion'](_0x18ee1b)){_0x4e68b4=!0x1;break;}if(_0x4e68b4&&'always'!==this['_trackFormatChanges']){const _0x1a4d10=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80e741,'accept');return this['forceDefaultExecution'](()=>_0x1a4d10([_0x2f3cdd],_0xb5c856,_0x16a69f)),null;}let _0x19c74c=null,_0x271ea9=_0x2f3cdd['start'],_0x6447bb=_0x2f3cdd['end'];for(const {suggestion:_0x1a8426,meta:_0x32caf8}of this['_findSuggestions'](_0x2f3cdd,'formatBlock')){if(!_0x32caf8['isOwn'])continue;if(_0x32caf8['isNextTo']||_0x32caf8['containsRangeInObject']||_0x32caf8['isInsideObject'])continue;if(_0x1a8426['data']['formatGroupId']!=_0xb5c856['formatGroupId'])continue;if(!qt(_0x1a8426,_0x16a69f))continue;const _0x5a768f=_0x1a8426['getFirstRange']();if(_0x1a8426['subType']==_0x80e741){if(_0x5a768f['containsRange'](_0x2f3cdd,!0x0))return null;_0x271ea9=_0x271ea9['isBefore'](_0x5a768f['start'])?_0x271ea9:_0x5a768f['start'],_0x6447bb=_0x6447bb['isAfter'](_0x5a768f['end'])?_0x6447bb:_0x5a768f['end'],_0x19c74c?_0x5a768f['start']['isBefore'](_0x19c74c['getFirstRange']()['start'])?(_0x19c74c['removeMarkers'](),_0x19c74c=_0x1a8426):_0x1a8426['removeMarkers']():_0x19c74c=_0x1a8426;}else{const _0x3aaf9a=_0x2f3cdd['getIntersection'](_0x5a768f);this['_cutOutSuggestionMarker'](_0x1a8426,_0x3aaf9a);}}const _0x5e18d4=this['editor']['plugins']['get']('Users')['me'],_0x30acc5=_0x31d1bc(),_0x57399b=_0x5e18d4['id'];if(_0x19c74c)return this['_setSuggestionRange'](_0x19c74c,this['_model']['createRange'](_0x271ea9,_0x6447bb)),_0x19c74c;{const _0x5505eb=this['_setSuggestionData']({'id':_0x30acc5,'type':'formatBlock:'+_0x80e741,'data':_0xb5c856,'createdAt':new Date(),'authorId':_0x57399b,'attributes':_0x16a69f});return this['_addSuggestionMarker']('formatBlock:'+_0x80e741,_0x30acc5,_0x57399b,this['_model']['createRange'](_0x271ea9,_0x6447bb)),_0x5505eb;}}['markMultiRangeBlockFormat'](_0x3a6fc5,_0x4b10cc,_0x5cfc34=[],_0x3408a0=null,_0x4ffb9a={}){_0x4b10cc['formatGroupId']||(_0x4b10cc['formatGroupId']=_0x4b10cc['commandName']);const _0x7322a0=_0x3a6fc5[0x0];_0x4b10cc['multipleBlocks']=_0x7322a0['is']('range'),_0x3408a0=_0x3408a0||Pt(_0x4b10cc);const _0x9d076d=_0x5cfc34['map'](_0x16f2da=>Lt(_0x16f2da,this['_model'])),_0x152c27=_0x7322a0['is']('range')?_0x3a6fc5:_0x3a6fc5['map'](_0x28c1cc=>Lt(_0x28c1cc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x48dcf6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'accept');return this['forceDefaultExecution'](()=>_0x48dcf6(_0x152c27,_0x4b10cc,_0x4ffb9a)),null;}_0x9d076d['push'](..._0x152c27);let _0x2c308b=!0x0;for(const _0x406028 of _0x9d076d)if(!this['_rangeIsInLocalUserInsertion'](_0x406028)){_0x2c308b=!0x1;break;}if(_0x2c308b&&'always'!==this['_trackFormatChanges']){const _0xac4280=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'accept');return this['forceDefaultExecution'](()=>_0xac4280(_0x152c27,_0x4b10cc,_0x4ffb9a)),null;}const _0x26e584=this['editor']['plugins']['get']('Users')['me'];for(const _0x554488 of this['getSuggestions']()){if(_0x554488['author']['id']!=_0x26e584['id'])continue;if('formatBlock'!=_0x554488['type']||_0x554488['data']['formatGroupId']!=_0x4b10cc['formatGroupId'])continue;if(!qt(_0x554488,_0x4ffb9a))continue;const _0x11d3ca=_0x554488['subType']==_0x3408a0;for(let _0xa4abac=0x0;_0xa4abac<_0x152c27['length'];_0xa4abac++){const _0x2d094c=_0x152c27[_0xa4abac];for(const _0x4cb651 of _0x554488['getMarkers']()){const _0x6fe6d0=_0x4cb651['getRange']();if(_0x2d094c['isEqual'](_0x6fe6d0)){_0x11d3ca?(_0x152c27['splice'](_0xa4abac,0x1),_0xa4abac--):_0x554488['removeMarker'](_0x4cb651['name']);break;}}}}if(0x0==_0x152c27['length'])return null;const _0x18bd42=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'join');for(const _0x4e23a2 of this['getSuggestions']())if(_0x4e23a2['author']['id']==_0x26e584['id']&&'formatBlock'==_0x4e23a2['type']&&_0x4e23a2['data']['formatGroupId']==_0x4b10cc['formatGroupId']&&_0x4e23a2['subType']==_0x3408a0&&qt(_0x4e23a2,_0x4ffb9a)&&(_0x18bd42(_0x4e23a2['getRanges'](),_0x152c27)||_0x18bd42(_0x152c27,_0x4e23a2['getRanges']()))){for(const _0x53a32d of _0x152c27)_0x4e23a2['addRange'](_0x53a32d);return _0x4e23a2;}const _0x210e3a=_0x31d1bc(),_0x56cc2c=_0x26e584['id'],_0x2a026b='formatBlock:'+_0x3408a0,_0xf92b07=this['_setSuggestionData']({'id':_0x210e3a,'type':_0x2a026b,'data':_0x4b10cc,'createdAt':new Date(),'authorId':_0x56cc2c,'attributes':_0x4ffb9a});for(const _0x362ccd of _0x152c27)this['_addSuggestionMarker'](_0x2a026b,_0x210e3a,_0x56cc2c,_0x362ccd,u['getMultiRangeId']());return _0xf92b07;}['markDeletion'](_0x24f5ee,_0x1a0019=null,_0x2266ed={}){if(_0x24f5ee['isCollapsed'])return null;const _0x1f83f9=this['editor']['plugins']['get']('Users')['me'],_0x13abe3=new _0x1eeee4(_0x24f5ee['start'],_0x24f5ee['end']);for(const {suggestion:_0x4b76d9,meta:_0x5f5848}of this['_findSuggestions'](_0x13abe3,'insertion'))if(_0x5f5848['isOwn']&&!_0x5f5848['isNextTo']){if(_0x4b76d9['isMultiRange']){const _0x377a28=_0x4b76d9['getRanges']()['filter'](_0x52ee57=>'$graveyard'!=_0x52ee57['root']['rootName']);_0x377a28['every'](_0x1ee4f4=>_0x13abe3['containsRange'](_0x1ee4f4,!0x0))&&_0x4b76d9['discard']();if(_0x377a28['some'](_0x5ba360=>_0x5ba360['containsRange'](_0x13abe3,!0x0))){const _0x4fbff3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a0019,'accept');return this['forceDefaultExecution'](()=>_0x4fbff3([_0x13abe3],null,_0x2266ed)),null;}}else{const _0xf402b9=_0x13abe3['getIntersection'](_0x4b76d9['getFirstRange']());null!==_0xf402b9&&_0x4b76d9['_onDiscard']([_0xf402b9],null,_0x2266ed);}}if(_0x13abe3['detach'](),_0x13abe3['isCollapsed']||'$graveyard'==_0x13abe3['root']['rootName'])return null;let _0x50949c=null,_0x173a16=_0x13abe3['start'],_0x30aabe=_0x13abe3['end'];const _0x5254ed=this['_findSuggestions'](_0x13abe3,'deletion');for(const {suggestion:_0x1b5850,meta:_0x3f867c}of _0x5254ed){const _0x12efeb=this['_model']['createRange'](_0x173a16,_0x30aabe);if(_0x3f867c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f867c['containsRangeInObject']&&!_0x3f867c['isInsideObject'])){if(_0x1b5850['isMultiRange']){if(!qt(_0x1b5850,_0x2266ed))continue;let _0x1b721a=!0x0;for(const _0x1bf415 of _0x1b5850['getRanges']()){if(_0x1bf415['containsRange'](_0x12efeb,!0x0))return _0x1b5850;_0x12efeb['containsRange'](_0x1bf415)||(_0x1b721a=!0x1);}_0x1b721a&&_0x1b5850['discard']();}else{const _0x47a480=_0x1b5850['getFirstRange']();if(_0x47a480['containsRange'](_0x12efeb,!0x0))return _0x1b5850;if(!qt(_0x1b5850,_0x2266ed)){_0x12efeb['containsRange'](_0x47a480)?_0x1b5850['removeMarkers']():_0x47a480['containsPosition'](_0x173a16)?_0x173a16=_0x47a480['end']:_0x47a480['containsPosition'](_0x30aabe)&&(_0x30aabe=_0x47a480['start']);continue;}_0x173a16=_0x173a16['isBefore'](_0x47a480['start'])?_0x173a16:_0x47a480['start'],_0x30aabe=_0x30aabe['isAfter'](_0x47a480['end'])?_0x30aabe:_0x47a480['end'],_0x2266ed=Object['assign']({},_0x1b5850['attributes']),_0x50949c?_0x47a480['start']['isBefore'](_0x50949c['getFirstRange']()['start'])?(_0x50949c['removeMarkers'](),_0x50949c=_0x1b5850):_0x1b5850['removeMarkers']():_0x50949c=_0x1b5850;}}}if(_0x50949c)return this['_setSuggestionRange'](_0x50949c,this['_model']['createRange'](_0x173a16,_0x30aabe)),_0x50949c;{const _0x4bdef2=_0x31d1bc(),_0x30ddd7=this['_model']['createRange'](_0x173a16,_0x30aabe),_0x2b0076=_0x1f83f9['id'],_0x1daf36=_0x1a0019?'deletion:'+_0x1a0019:'deletion',_0xef01a8=this['_setSuggestionData']({'id':_0x4bdef2,'type':_0x1daf36,'createdAt':new Date(),'authorId':_0x2b0076,'attributes':_0x2266ed});return this['_addSuggestionMarker'](_0x1daf36,_0x4bdef2,_0x2b0076,_0x30ddd7),_0xef01a8;}}['markMultiRangeDeletion'](_0x502c08,_0x2484cc='multi',_0x37cd8b={}){const _0x1518d4=this['editor']['plugins']['get']('Users')['me'],_0x277d2f=_0x502c08['map'](_0x8a66a2=>new _0x1eeee4(_0x8a66a2['start'],_0x8a66a2['end'])),_0x4e7942=new Set();for(const {suggestion:_0xb60d40,meta:_0x3e8aeb}of this['_findSuggestions'](_0x277d2f,'insertion'))_0x3e8aeb['isOwn']&&!_0x3e8aeb['isNextTo']&&_0x4e7942['add'](_0xb60d40);for(const _0x2b573b of _0x4e7942)if(_0x2b573b['isMultiRange']){const _0x5a9bac=_0x2b573b['getRanges']();(!_0x2b573b['attributes']||!_0x2b573b['attributes']['skipNestingCheck'])&&(_0x5a9bac['every'](_0x3d27f0=>_0x277d2f['some'](_0xe324bb=>_0xe324bb['containsRange'](_0x3d27f0,!0x0)))&&_0x2b573b['discard']());if(_0x277d2f['every'](_0x258b0d=>_0x5a9bac['some'](_0x59726a=>_0x59726a['containsRange'](_0x258b0d,!0x0)))){const _0x44635e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'accept');return this['forceDefaultExecution'](()=>_0x44635e(_0x502c08,null,_0x37cd8b)),null;}}else{const _0x128429=_0x2b573b['getFirstRange']();_0x277d2f['some'](_0x34e8fe=>_0x34e8fe['containsRange'](_0x128429,!0x0))&&_0x2b573b['discard']();if(_0x277d2f['every'](_0x247cb9=>_0x128429['containsRange'](_0x247cb9,!0x0))){const _0x2ed7ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'accept');return this['forceDefaultExecution'](()=>_0x2ed7ba(_0x277d2f,null,_0x37cd8b)),null;}}const _0x225ffb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'join');let _0x4bfad0=null;for(const _0x3ecc2d of this['getSuggestions']())if(_0x3ecc2d['author']['id']==_0x1518d4['id']&&_0x3ecc2d['isInContent']&&'deletion'==_0x3ecc2d['type']&&_0x3ecc2d['subType']==_0x2484cc&&qt(_0x3ecc2d,_0x37cd8b)&&(_0x225ffb(_0x3ecc2d['getRanges'](),_0x277d2f)||_0x225ffb(_0x277d2f,_0x3ecc2d['getRanges']()))){if(_0x4bfad0){if(_0x3ecc2d['commentThread']&&_0x3ecc2d['commentThread']['length'])continue;for(const _0x11cd91 of _0x3ecc2d['getRanges']())_0x4bfad0['isIntersectingWithRange'](_0x11cd91)||_0x4bfad0['addRange'](_0x11cd91);_0x3ecc2d['removeMarkers']();}else{_0x4bfad0=_0x3ecc2d;for(const _0x3afdbb of _0x277d2f)_0x3ecc2d['isIntersectingWithRange'](_0x3afdbb)||_0x3ecc2d['addRange'](_0x3afdbb);}}if(_0x4bfad0)return _0x4bfad0;_0x4e7942['clear']();for(const {suggestion:_0x5e14f6,meta:_0x57e430}of this['_findSuggestions'](_0x277d2f,'deletion'))_0x57e430['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57e430['containsRangeInObject']&&!_0x57e430['isInsideObject'])&&qt(_0x5e14f6,_0x37cd8b)&&_0x4e7942['add'](_0x5e14f6);for(const _0x52798d of _0x4e7942){const _0x5b72af=_0x52798d['getRanges']();if(!_0x37cd8b||!_0x37cd8b['skipNestingCheck']){if(_0x277d2f['every'](_0x261958=>_0x5b72af['some'](_0x2417d4=>_0x2417d4['containsRange'](_0x261958,!0x0))))return _0x52798d;}(!_0x52798d['attributes']||!_0x52798d['attributes']['skipNestingCheck'])&&(_0x5b72af['every'](_0x5bfe81=>_0x277d2f['some'](_0x391895=>_0x391895['containsRange'](_0x5bfe81,!0x0)))&&_0x52798d['discard']());}const _0x5acff9=_0x31d1bc(),_0x3e5683=_0x1518d4['id'],_0x3f89c2='deletion:'+_0x2484cc,_0x117309=this['_setSuggestionData']({'id':_0x5acff9,'type':_0x3f89c2,'createdAt':new Date(),'authorId':_0x3e5683,'attributes':_0x37cd8b});for(const _0x42489b of _0x277d2f)_0x42489b['detach'](),_0x42489b['isCollapsed']||'$graveyard'==_0x42489b['root']['rootName']||this['_addSuggestionMarker'](_0x3f89c2,_0x5acff9,_0x3e5683,_0x42489b,u['getMultiRangeId']());return _0x117309;}['markAttributeChange'](_0x32c21c,_0x350c64,_0x271dc3,_0x2f931d,_0x3cd2ad){if(_0x32c21c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd378b1=this['editor']['plugins']['get']('Users')['me']['id'],_0x3498eb=Array['from'](this['_suggestions']['values']())['filter'](_0x239fad=>'attribute'==_0x239fad['type']&&_0x239fad['data']['key']==_0x350c64&&_0x239fad['isIntersectingWithRange'](_0x32c21c));if('default'===this['_trackFormatChanges']){const _0x2ada4d=this['_findSuggestions'](_0x32c21c,'insertion')['filter'](({meta:_0x248606})=>_0x248606['isOwn']&&!_0x248606['isInsideObject']&&!_0x248606['isNextTo'])['map'](({suggestion:_0x14e69a})=>_0x14e69a);_0x3498eb['unshift'](..._0x2ada4d);}const _0xe3edd9=new Map([[_0x32c21c,_0x271dc3]]);for(const _0x4ba0ce of _0x3498eb){const _0x56bc57='attribute'==_0x4ba0ce['type']?_0x4ba0ce['data']['oldValue']:void 0x0,_0x3dd742=_0x4ba0ce['getFirstRange'](),_0x3d6d86=Array['from'](_0xe3edd9['keys']())['find'](_0x450972=>_0x450972['isIntersecting'](_0x3dd742));if(!_0x3d6d86)continue;const _0x456ec2=_0x3d6d86['getDifference'](_0x3dd742);this['_isBlockAttribute'](_0x350c64)&&'insertion'==_0x4ba0ce['type']&&0x0!=_0x456ec2['length']||(_0xe3edd9['delete'](_0x3d6d86),_0x456ec2['forEach'](_0x2e3750=>{_0xe3edd9['set'](_0x2e3750,_0x271dc3);}),'insertion'!=_0x4ba0ce['type']&&_0x56bc57!=_0x2f931d&&_0xe3edd9['set'](_0x3d6d86['getIntersection'](_0x3dd742),_0x56bc57));}const _0x195e30=[];for(const [_0xf4911e,_0x545114]of _0xe3edd9){const _0x29e7bc=_0x31d1bc(),_0x3c2217={'key':_0x350c64,'oldValue':_0x545114,'newValue':_0x2f931d};_0x350c64['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':_0x350c64});const _0x1f0560=('attribute:'+(_0x350c64+'|'+Pt({'newValue':_0x2f931d})))['substring'](0x0,0x3c),_0x4e30af=this['_setSuggestionData']({'id':_0x29e7bc,'type':_0x1f0560,'data':_0x3c2217,'createdAt':new Date(),'authorId':_0xd378b1,'attributes':_0x3cd2ad});_0x195e30['push'](_0x4e30af),this['_addSuggestionMarker'](_0x1f0560,_0x29e7bc,_0xd378b1,_0xf4911e);}return _0x195e30;}['enableDefaultAttributesIntegration'](_0x167810){this['enableCommand'](_0x167810,(_0x5d05bf,..._0x1193fc)=>{this['_recordAttributeChanges'](()=>{_0x5d05bf(..._0x1193fc);});});}['registerBlockAttribute'](_0x5516ca){this['_blockAttributeKeys']['add'](_0x5516ca);}['registerInlineAttribute'](_0x25bef2){this['_inlineAttributeKeys']['add'](_0x25bef2);}['_getAttributeKey'](_0x20d5a8){return'attribute'==_0x20d5a8['type']?_0x20d5a8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d46c2,_0xc7116a){const _0x1ac15a=_0x5d46c2['getFirstMarker']();this['_model']['change'](_0x1ea5d5=>{_0x1ea5d5['updateMarker'](_0x1ac15a,{'range':_0xc7116a});});}['_addThreadToSuggestion'](_0x36ac16){const _0x140df6=_0x36ac16['id'],_0x17a6d6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x140df6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x17a6d6,'threadId':_0x140df6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x123cf9=this['_commentsRepository']['getCommentThread'](_0x140df6);_0x123cf9['unbind']('isRemovable'),_0x123cf9['isRemovable']=!0x1,_0x36ac16['commentThread']=_0x123cf9;}['_checkSuggestionCorrectness'](_0x2ff4e9,_0x5c2a5d,_0x2d0d8b,_0x230611){if(_0x2ff4e9['type']!=_0x5c2a5d||_0x2ff4e9['subType']!=_0x2d0d8b||_0x2ff4e9['creator']['id']!=_0x230611)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2f735b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x463335,_0x1a3c99){const _0x3d1e96=_0x463335['getFirstRange']();if(_0x1a3c99['isEqual'](_0x3d1e96))_0x463335['removeMarkers']();else{if(_0x3d1e96['containsRange'](_0x1a3c99)){const _0x2ab778=this['_model']['createPositionAt'](_0x1a3c99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x3d1e96['start'],_0x2ab778));const _0x57231c=_0x31d1bc(),_0x2e1055=_0x463335['creator']['id'],_0x384c65=_0x463335['type']+':'+_0x463335['subType'];this['_setSuggestionData']({'id':_0x57231c,'type':_0x384c65,'createdAt':new Date(),'authorId':_0x2e1055,'data':_0x463335['data'],'attributes':_0x463335['attributes']});const _0x259c0c=this['_model']['createPositionAt'](_0x1a3c99['end']['parent'],'after'),_0x46ad9d=this['_model']['createRange'](_0x259c0c,_0x3d1e96['end']);this['_addSuggestionMarker'](_0x384c65,_0x57231c,_0x2e1055,_0x46ad9d);}else{if(_0x3d1e96['containsPosition'](_0x1a3c99['start'])){const _0x26d3db=this['_model']['createPositionAt'](_0x1a3c99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x3d1e96['start'],_0x26d3db));}else{const _0x2e12cd=this['_model']['createPositionAt'](_0x1a3c99['end']['parent'],'after');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x2e12cd,_0x3d1e96['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2fe1ad){for(const {suggestion:_0x1d45b5,meta:_0x1e2bdd}of this['_findSuggestions'](_0x2fe1ad,'insertion')){if(!_0x1e2bdd['isOwn'])continue;const _0xc2496d=_0x1d45b5['getRanges']();for(const _0x5bbee9 of _0xc2496d)if(!_0x2fe1ad['getDifference'](_0x5bbee9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xf32c60){const _0x4dacdd=this['editor']['plugins']['get']('Users')['getUser'](_0xf32c60);if(!_0x4dacdd)throw new _0x2f735b('track-changes-user-not-found',this);return _0x4dacdd;}['_getExternalAuthor'](_0x552ed3){const _0x3c942d=this['editor']['plugins']['get']('Users'),_0x2523d4=_0x115a16('external:'+_0x552ed3),_0xe74f3e=_0x3c942d['getUser'](_0x2523d4);return _0xe74f3e||_0x3c942d['addUser']({'id':_0x2523d4,'name':_0x552ed3});}['_createSuggestion'](_0x103945,_0x3656e2,_0xaae70d,_0x18d568,_0x1c9bdf){const _0xc3ff18=this['_getAuthorFromId'](_0x18d568),_0x210013=this['_suggestionFactory']['buildSuggestion'](_0x103945,_0x3656e2,_0xaae70d,_0xc3ff18,_0x1c9bdf,_0x21e02f=>{this['_updateSuggestionData'](_0xaae70d,{'attributes':_0x21e02f});const _0xdd9ec2=this['getSuggestion'](_0xaae70d);this['_joinWithAdjacentSuggestions'](new Set([_0xdd9ec2])),this['_refreshSuggestionsChain'](new Set([_0xdd9ec2]));});return this['listenTo'](_0x210013,'accept',()=>{this['_updateSuggestionData'](_0xaae70d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x210013,'discard',()=>{this['_updateSuggestionData'](_0xaae70d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xaae70d,_0x210013),this['_suggestionState']['set'](_0x210013,'notReady'),_0x210013;}['_splitMarkerName'](_0x3aa8cb){const _0x13f105=_0x3aa8cb['split'](':');return{'group':_0x13f105[0x0],'type':_0x13f105[0x1],'subType':_0x13f105['length']>=0x5?_0x13f105[0x2]:null,'id':_0x13f105['length']<0x5?_0x13f105[0x2]:_0x13f105[0x3],'authorId':_0x13f105['length']<0x5?_0x13f105[0x3]:_0x13f105[0x4],'markerCount':0x6==_0x13f105['length']?_0x13f105[0x5]:null};}['_breakSuggestionMarker'](_0x49f27a,_0x5a87dc,_0x132780){const _0x1e6551=_0x49f27a['getFirstRange'](),_0x1d8409=_0x1e6551['start'],_0x599148=_0x1e6551['end'];this['_setSuggestionRange'](_0x49f27a,this['_model']['createRange'](_0x1d8409,_0x5a87dc));const _0x47604d=_0x31d1bc(),_0x486b6e=_0x49f27a['creator']['id'],_0x5be9ff=_0x49f27a['type']+(_0x49f27a['subType']?':'+_0x49f27a['subType']:'');this['_setSuggestionData']({'id':_0x47604d,'type':_0x5be9ff,'createdAt':new Date(),'authorId':_0x486b6e,'originalSuggestionId':_0x49f27a['id'],'attributes':_0x49f27a['attributes'],'data':_0x49f27a['data']});const _0x3c2f21=this['_getAttributeKey'](_0x49f27a);('formatBlock'==_0x49f27a['type']||_0x3c2f21&&this['_isBlockAttribute'](_0x3c2f21))&&(_0x132780=this['_model']['createPositionBefore'](_0x132780['parent'])),this['_addSuggestionMarker'](_0x5be9ff,_0x47604d,_0x486b6e,this['_model']['createRange'](_0x132780,_0x599148));}['_findSuggestions'](_0x21a470,_0x211696=null){const _0x1acf48=[],_0x2f44ca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21a470)||(_0x21a470=[_0x21a470]);for(const _0x118de8 of this['getSuggestions']()){if(!_0x118de8['isInContent'])continue;if(_0x211696&&_0x118de8['type']!=_0x211696)continue;let _0x5c04be=!0x1;for(const _0xc17bd6 of _0x118de8['getRanges']()){for(const _0x534f6b of _0x21a470){const _0x255485=_0x534f6b['start']['isEqual'](_0xc17bd6['end'])||_0x534f6b['end']['isEqual'](_0xc17bd6['start']);if(_0x255485||_0x534f6b['getIntersection'](_0xc17bd6)){const _0x4721a7=_0x534f6b['containsRange'](_0xc17bd6)&&Et(this['_model']['schema'],_0xc17bd6['start'],_0x534f6b),_0x2bd719=_0xc17bd6['containsRange'](_0x534f6b)&&Et(this['_model']['schema'],_0x534f6b['start'],_0xc17bd6);_0x1acf48['push']({'suggestion':_0x118de8,'meta':{'isOwn':_0x2f44ca==_0x118de8['author'],'isNextTo':_0x255485,'isInsideObject':_0x4721a7,'containsRangeInObject':_0x2bd719}}),_0x5c04be=!0x0;break;}}if(_0x5c04be)break;}}return _0x1acf48;}['_addSuggestionMarker'](_0x4ad5b4,_0x2304e3,_0x5a08a6,_0x1ec24a,_0x3e2236){this['_model']['change'](_0x4e1411=>{let _0x5de8f7='suggestion:'+_0x4ad5b4+':'+_0x2304e3+':'+_0x5a08a6;_0x3e2236&&(_0x5de8f7=_0x5de8f7+':'+_0x3e2236),_0x4e1411['addMarker'](_0x5de8f7,{'range':_0x1ec24a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4c0592){const _0x18772f=_0x4c0592['previous'],_0x9847a6=_0x4c0592['next'];_0x4c0592['previous']=null,_0x4c0592['next']=null,null!=_0x18772f&&_0x18772f['next']==_0x4c0592&&(_0x18772f['next']=_0x9847a6),null!=_0x9847a6&&_0x9847a6['previous']==_0x4c0592&&(_0x9847a6['previous']=_0x18772f),'ready'==this['_suggestionState']['get'](_0x4c0592)&&(this['_suggestionState']['set'](_0x4c0592,'removed'),this['fire']('suggestionUnloaded',_0x4c0592,_0x18772f,_0x9847a6));}['_setSuggestionData'](_0x129e35){const _0x2fe200=_0x129e35['id'],_0x58d039=this['addSuggestionData'](_0x129e35);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x48ecac=this['editor']['plugins']['get']('PendingActions'),_0x2ba415=_0x58d039['hasComments'],_0x35d937=_0x58d039['subType']?_0x58d039['type']+':'+_0x58d039['subType']:_0x58d039['type'],_0x2bfbdb=this['editor']['locale'],_0x1a0c90=_0x48ecac['add'](o(_0x2bfbdb,'PENDING_ACTION_SUGGESTION')),_0x586e17={'id':_0x2fe200,'type':_0x35d937,'hasComments':_0x2ba415,'data':_0x129e35['data']||null,'originalSuggestionId':_0x129e35['originalSuggestionId']||null,'attributes':_0x58d039['attributes']};this['_adapter']['addSuggestion'](_0x586e17)['then'](_0x3606ec=>{_0x58d039['_saved']=!0x0,_0x48ecac['remove'](_0x1a0c90),_0x3606ec&&_0x3606ec['createdAt']&&(this['_suggestions']['get'](_0x2fe200)['createdAt']=_0x3606ec['createdAt']);})['catch'](_0x4d4a4e=>{throw _0x1e894b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58d039['discard']();}),_0x58d039['stopListening'](),this['_suggestions']['delete'](_0x58d039['id']),this['_suggestionState']['delete'](_0x58d039),_0x4d4a4e;});}return _0x58d039;}['_isBlockAttribute'](_0x94488d){return this['_blockAttributeKeys']['has'](_0x94488d);}['_updateSuggestionData'](_0x4a0738,_0x5a85eb){const _0x53fde2=this['editor']['plugins']['get']('PendingActions'),_0x4104b2=this['getSuggestion'](_0x4a0738);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4104b2['_saved']){const _0x4b8138=_0x53fde2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4a0738,_0x5a85eb)['then'](()=>{_0x53fde2['remove'](_0x4b8138);});}else _0x4104b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4a0738,_0x5a85eb);});}}['_getSuggestionData'](_0x304dca){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2f735b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x304dca);}['_handleNewSuggestionMarker'](_0x33b3a0){const {id:_0x3c23c8,type:_0x1b9811,subType:_0x13c817,authorId:_0x59f7e4}=this['_splitMarkerName'](_0x33b3a0),_0x2180cd=this['_suggestions']['get'](_0x3c23c8)||this['_createSuggestion'](_0x1b9811,_0x13c817,_0x3c23c8,_0x59f7e4,{});switch(this['_checkSuggestionCorrectness'](_0x2180cd,_0x1b9811,_0x13c817,_0x59f7e4),this['_suggestionState']['get'](_0x2180cd)){case'notReady':this['_getSuggestionData'](_0x3c23c8)['then'](_0x2cbe6a=>{let _0x5bb4d6=Promise['resolve']();_0x2cbe6a['hasComments']&&(_0x5bb4d6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3c23c8})),_0x5bb4d6['then'](()=>{this['addSuggestionData'](_0x2cbe6a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2180cd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3c23c8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2180cd,'ready'),this['fire']('suggestionLoaded',_0x2180cd);break;case'ready':this['fire']('suggestionChanged',_0x2180cd);}return _0x2180cd['addMarkerName'](_0x33b3a0),_0x2180cd;}['_refreshSuggestionsChain'](_0x518bde){const _0xb6687f=Array['from'](_0x518bde),_0x4d1924=_0xb6687f['filter'](_0x18d708=>'attribute'==_0x18d708['type']);this['_refreshAttributeSuggestionsChain'](_0x4d1924);const _0x19cd71=_0xb6687f['filter'](_0x24f9ef=>!_0x24f9ef['isMultiRange']&&'attribute'!=_0x24f9ef['type']),_0x80018a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26c9a2=>!_0x26c9a2['isMultiRange']&&'attribute'!=_0x26c9a2['type']),_0x3d33e4=_0x80018a['filter'](_0x3ce53b=>!_0x518bde['has'](_0x3ce53b)),_0x4de77c=new Map(_0x80018a['map'](_0x1be6d2=>[_0x1be6d2,this['_suggestionFactory']['getSuggestionCallback'](_0x1be6d2['type'],_0x1be6d2['subType'],'chain')])),_0x47fecd=new Map(_0x80018a['map'](_0x21cbab=>[_0x21cbab,_0x21cbab['getFirstRange']()])),_0x4e2db0=new Set(),_0x3738a4=new Set();for(let _0x34e187=0x0;_0x34e187<_0x19cd71['length'];_0x34e187++)_0x521248(_0x19cd71[_0x34e187],_0x19cd71,_0x34e187+0x1);for(let _0x55659d=0x0;_0x55659d<_0x19cd71['length'];_0x55659d++)_0x521248(_0x19cd71[_0x55659d],_0x3d33e4,0x0);const _0xf53c3d=new Set();for(let _0x1623b3=0x0;_0x1623b3<_0x19cd71['length'];_0x1623b3++){const _0x3d04ad=_0x19cd71[_0x1623b3];!_0x3738a4['has'](_0x3d04ad)&&_0x3d04ad['previous']&&(_0xf53c3d['add'](_0x3d04ad['previous']),_0x3d04ad['previous']['next']===_0x3d04ad&&(_0x3d04ad['previous']['next']=null),_0x3d04ad['previous']=null),!_0x4e2db0['has'](_0x3d04ad)&&_0x3d04ad['next']&&(_0xf53c3d['add'](_0x3d04ad['next']),_0x3d04ad['next']['previous']===_0x3d04ad&&(_0x3d04ad['next']['previous']=null),_0x3d04ad['next']=null);}function _0x521248(_0x51f155,_0x4f776b,_0x186e34){for(let _0x55bb52=_0x186e34;_0x55bb52<_0x4f776b['length'];_0x55bb52++){const _0x35a574=_0xab978a(_0x51f155,_0x4f776b[_0x55bb52]);_0x35a574&&(_0x35a574[0x0]['next']=_0x35a574[0x1],_0x35a574[0x1]['previous']=_0x35a574[0x0],_0x4e2db0['add'](_0x35a574[0x0]),_0x3738a4['add'](_0x35a574[0x1]));}}function _0xab978a(_0x5ddd08,_0x165840){if(_0x5ddd08['author']['id']!==_0x165840['author']['id'])return null;const _0x5d80c7=_0x4de77c['get'](_0x5ddd08)(_0x5ddd08,_0x165840,_0x47fecd['get'](_0x5ddd08),_0x47fecd['get'](_0x165840));if(!_0x5d80c7)return null;return _0x4de77c['get'](_0x165840)(_0x5ddd08,_0x165840,_0x47fecd['get'](_0x5ddd08),_0x47fecd['get'](_0x165840))?_0x5d80c7[0x1]['commentThread']&&_0x5d80c7[0x1]['commentThread']['length']?null:_0x5d80c7:null;}_0xf53c3d['size']&&this['_refreshSuggestionsChain'](_0xf53c3d);}['_refreshAttributeSuggestionsChain'](_0x27fe9b){if(0x0==_0x27fe9b['length'])return;const _0x6f69b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5855ce=>'attribute'==_0x5855ce['type']&&_0x5855ce['_isDataLoaded']),_0x234a51=[],_0x1fe615=new Map();for(const _0x126632 of _0x6f69b8){const _0xd31696=_0x115a16(_0x126632['attributes']);_0x1fe615['has'](_0xd31696)||(_0x1fe615['set'](_0xd31696,_0x234a51['length']),_0x234a51['push']([]));const _0x3c41ad=_0x1fe615['get'](_0xd31696);_0x234a51[_0x3c41ad]['push'](_0x126632);}!(function(){_0x234a51['sort']((_0x14285f,_0xe72cc0)=>{const _0x51b856=_0x14285f[0x0]['createdAt'],_0x26ef0c=_0xe72cc0[0x0]['createdAt'];return _0x51b856==_0x26ef0c?_0x14285f[0x0]['attributes']['groupId']<_0xe72cc0[0x0]['attributes']['groupId']?-0x1:0x1:_0x51b856<_0x26ef0c?-0x1:0x1;});for(const _0x1c6e36 of _0x234a51)_0x1c6e36['sort']((_0x1bf53c,_0x4b2222)=>_0x1bf53c['id']<_0x4b2222['id']?-0x1:0x1);}());for(let _0x58306d=0x0;_0x58306d<_0x234a51['length'];_0x58306d++){if(0x0==_0x234a51[_0x58306d]['length'])continue;const _0x5022a9=[];for(let _0x4337ac=_0x58306d+0x1;_0x4337ac<_0x234a51['length'];_0x4337ac++)0x0!=_0x234a51[_0x4337ac]['length']&&_0x2c73e1(_0x234a51[_0x58306d],_0x234a51[_0x4337ac])&&_0x5022a9['push'](_0x4337ac);for(const _0x685ca2 of _0x5022a9)_0x234a51[_0x58306d]=_0x234a51[_0x58306d]['concat'](_0x234a51[_0x685ca2]),_0x234a51[_0x685ca2]=[];}for(const _0x1dca6d of _0x234a51)for(let _0x582dd5=0x0;_0x582dd5<_0x1dca6d['length'];_0x582dd5++){const _0x4d4dea=_0x1dca6d[_0x582dd5+0x1]||null;_0x1dca6d[_0x582dd5]['next']!==_0x4d4dea&&(_0x1dca6d[_0x582dd5]['next']=_0x4d4dea);}for(const _0x313d92 of _0x234a51)for(let _0x5c646f=0x0;_0x5c646f<_0x313d92['length'];_0x5c646f++){const _0x51b660=_0x313d92[_0x5c646f-0x1]||null;_0x313d92[_0x5c646f]['previous']!==_0x51b660&&(_0x313d92[_0x5c646f]['previous']=_0x51b660);}function _0x2c73e1(_0x5066a9,_0x21ef52){if(_0x5066a9[0x0]['attributes']['groupId']!==_0x21ef52[0x0]['attributes']['groupId']&&_0x5066a9[0x0]['author']!==_0x21ef52[0x0]['author'])return!0x1;if(!function(_0x598643,_0x2c777a){if(!_0x598643['hasComments']&&!_0x2c777a['hasComments'])return!0x0;if(_0x598643['hasComments']&&_0x2c777a['hasComments'])return!0x1;if(_0x598643['hasComments']&&_0x2c777a['createdAt']<_0x598643['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c777a['hasComments']&&_0x598643['createdAt']<_0x2c777a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5066a9[0x0],_0x21ef52[0x0]))return!0x1;const _0x306510=Rt(_0x5066a9[0x0]['attributes'],'groupId'),_0xe2b00b=Rt(_0x21ef52[0x0]['attributes'],'groupId');if(!_0x10d9b1(_0x306510,_0xe2b00b))return!0x1;return!!_0x5066a9['every'](_0x57f7a6=>_0x21ef52['some'](_0x5818f6=>_0x57f7a6['getFirstRange']()['isEqual'](_0x5818f6['getFirstRange']())))&&_0x21ef52['every'](_0x3119a7=>_0x5066a9['some'](_0x5ab076=>_0x3119a7['getFirstRange']()['isEqual'](_0x5ab076['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x283fca){const _0x2cfad5=Array['from'](_0x283fca),_0x32d1da=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b84c0=_0x32d1da['filter'](_0x44ffcf=>!_0x283fca['has'](_0x44ffcf)),_0x17be39=new Map(_0x2cfad5['map'](_0x2bcec9=>[_0x2bcec9,this['_suggestionFactory']['getSuggestionCallback'](_0x2bcec9['type'],_0x2bcec9['subType'],'join')])),_0x5ef1a7=new Map(_0x32d1da['map'](_0x5b5ce3=>[_0x5b5ce3,_0x5b5ce3['getRanges']()]));for(let _0x3624de=0x0;_0x3624de<_0x2cfad5['length'];_0x3624de++){if(_0x1c51b(this,_0x2cfad5[_0x3624de],_0x2cfad5,_0x3624de+0x1))return!0x0;}for(let _0x581632=0x0;_0x581632<_0x2cfad5['length'];_0x581632++){if(_0x1c51b(this,_0x2cfad5[_0x581632],_0x1b84c0,0x0))return!0x0;}return!0x1;function _0x1c51b(_0x384f08,_0x4d56d8,_0x53962a,_0x57561f){for(let _0x30f007=_0x57561f;_0x30f007<_0x53962a['length'];_0x30f007++){const _0x11270d=_0x53962a[_0x30f007];if(_0x11270d['type']!==_0x4d56d8['type']||_0x11270d['author']['id']!==_0x4d56d8['author']['id']||_0x11270d['subType']!==_0x4d56d8['subType'])continue;if(!Jt(_0x4d56d8,_0x11270d))continue;if('attribute'==_0x4d56d8['type']&&_0x4d56d8['data']['oldValue']!=_0x11270d['data']['oldValue'])continue;if('attribute'==_0x4d56d8['type']&&_0x384f08['_isBlockAttribute'](_0x4d56d8['data']['key']))continue;if('formatBlock'==_0x4d56d8['type']){const _0x5461a1=_0x384f08['editor']['model'],_0x459e60=_0x4d56d8['getContainedElement']();if(_0x459e60&&(_0x5461a1['schema']['isObject'](_0x459e60)||_0x5461a1['schema']['isLimit'](_0x459e60)))continue;}const _0x54d8f2=_0x17be39['get'](_0x4d56d8),_0x5df007=_0x5ef1a7['get'](_0x4d56d8),_0x54c1f6=_0x5ef1a7['get'](_0x11270d),_0x509ea0=_0x4d56d8['commentThread']&&_0x4d56d8['commentThread']['length'],_0x3241fa=_0x11270d['commentThread']&&_0x11270d['commentThread']['length'];if(!_0x509ea0&&_0x54d8f2(_0x54c1f6,_0x5df007))return _0x384f08['_joinSuggestions'](_0x11270d,_0x4d56d8),_0x5ef1a7['delete'](_0x4d56d8),!0x0;if(!_0x3241fa&&_0x54d8f2(_0x5df007,_0x54c1f6))return _0x384f08['_joinSuggestions'](_0x4d56d8,_0x11270d),_0x5ef1a7['delete'](_0x11270d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x52c3b4,_0x16db1d){if(_0x52c3b4['isMultiRange']){for(const _0xa0d98c of _0x16db1d['getRanges']())_0x52c3b4['addRange'](_0xa0d98c);}else{const _0x17acec=_0x16db1d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x52c3b4,this['_model']['createRange'](_0x52c3b4['getFirstRange']()['start'],_0x17acec));}_0x16db1d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2cd3c0,_0x326e54,_0x219846){const _0x279cdb=_0x2cd3c0['startsWith']('format')||_0x2cd3c0['startsWith']('attribute')?'FORMATTING':_0x2cd3c0['toUpperCase']();return o(this['editor']['locale'],_0x326e54+'_'+_0x279cdb+'_SUGGESTION_ANNOUNCEMENT',_0x219846);}['_initAriaMarkerChangeAnnouncements'](){const _0x3726aa=this['editor'];if(!_0x3726aa['ui'])return;const {ariaLiveAnnouncer:_0x39d527}=_0x3726aa['ui'];_0x31b647(this['_model'],({left:_0x5a090c,entered:_0x4aff72})=>{for(const _0x35f214 of _0x5a090c){const {group:_0x201467,type:_0x1a7ce1}=this['_splitMarkerName'](_0x35f214['name']);if('suggestion'===_0x201467){_0x39d527['announce'](this['_getMarkerAnnouncementText'](_0x1a7ce1,'LEAVE'));break;}}for(const _0x567d11 of _0x4aff72){const {group:_0xb4e9b0,type:_0x5258e3}=this['_splitMarkerName'](_0x567d11['name']);if('suggestion'===_0xb4e9b0){_0x39d527['announce'](this['_getMarkerAnnouncementText'](_0x5258e3,'ENTER',_0x3a49cf(_0x2cdcf8)));break;}}});}['_processAttributeChanges'](_0x4d03df){if(this['_recordAttributeSuggestions'])return!0x1;const _0x145db3=this['editor'],_0x55e2b3=_0x145db3['model']['document']['differ']['getChanges']();if(0x0==_0x55e2b3['length'])return!0x1;const _0x402fda=[],_0x1d3497=_0x55e2b3['filter'](_0x1fa47f=>'attribute'==_0x1fa47f['type']),_0x383689=_0x55e2b3['filter'](_0x354dc4=>'insert'==_0x354dc4['type']&&'$text'!=_0x354dc4['name']),_0x3bc74d=_0x55e2b3['filter'](_0x4fbaec=>'remove'==_0x4fbaec['type']&&'$text'!=_0x4fbaec['name']);for(const _0x1ad83a of _0x1d3497)_0x402fda['push']({'key':_0x1ad83a['attributeKey'],'newValue':_0x1ad83a['attributeNewValue'],'oldValue':_0x1ad83a['attributeOldValue'],'range':Ft(_0x1ad83a['range'],_0x145db3['model'])});for(const _0x2135af of _0x383689){const _0x17c306=_0x3bc74d['find'](_0x343b69=>_0x343b69['position']['isEqual'](_0x2135af['position']));_0x17c306&&_0x402fda['push']({'key':m,'newValue':_0x2135af['name'],'oldValue':_0x17c306['name'],'range':_0x145db3['model']['createRangeOn'](_0x2135af['position']['nodeAfter'])});}return 0x0!=_0x402fda['length']&&this['_reduceExistingSuggestions'](_0x4d03df,_0x402fda);}['_processAttributeSuggestions'](_0x196e39){let _0xf85936=!0x1;const _0x4bc796=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a2330=>_0x2a2330['data']['newRange']&&_0x2a2330['name']['startsWith']('suggestion:attribute:'));for(const _0x13b50b of _0x4bc796){const {subType:_0x270b23,id:_0x8a73a7}=this['_splitMarkerName'](_0x13b50b['name']),_0x41978d=_0x270b23['split']('|')[0x0];for(const _0x40670d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x40670d['id']!=_0x8a73a7&&'attribute'==_0x40670d['type']&&_0x40670d['data']&&_0x40670d['data']['key']==_0x41978d&&_0x40670d['getFirstRange']()['isIntersecting'](_0x13b50b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x40670d,_0x13b50b['data']['newRange'],_0x196e39),_0xf85936=!0x0);}return _0xf85936;}['_recordAttributeChanges'](_0x3e7b39){this['_recordAttributeSuggestions']=!0x0,_0x3e7b39();}['_isRegisteredAttribute'](_0x58671e){const _0x48318d=this['_isBlockAttribute'](_0x58671e),_0xa35f1d=this['_inlineAttributeKeys']['has'](_0x58671e);return _0x48318d||_0xa35f1d;}['_reduceExistingSuggestions'](_0x16b8b5,_0x18ad44){if(0x0==_0x18ad44['length'])return!0x1;let _0x5d89e7=!0x1;for(const _0x277a66 of _0x18ad44){const _0x1369d8=this['_findSuggestions'](_0x277a66['range'],'attribute')['filter'](_0x3ea100=>!_0x3ea100['meta']['isNextTo'])['map'](_0x4ab620=>_0x4ab620['suggestion']),_0x10f5a7=_0x115a16({'newValue':_0x277a66['newValue']});_0x1369d8['filter'](_0x422b87=>{const [_0x5265ef,_0x50c3e3]=_0x422b87['subType']['split']('|');return _0x5265ef==_0x277a66['key']&&_0x50c3e3!=_0x10f5a7;})['forEach'](_0x8cbbf=>{this['_reduceSuggestionAttributeRange'](_0x8cbbf,_0x277a66['range'],_0x16b8b5),_0x5d89e7=!0x0;});}return _0x5d89e7;}['_reduceSuggestionAttributeRange'](_0x3aa8d5,_0x1899a9,_0x131358){const _0x293507=_0x3aa8d5['getFirstRange']()['getDifference'](_0x1899a9);0x0!==_0x293507['length']?0x1!==_0x293507['length']?this['_breakSuggestionMarker'](_0x3aa8d5,_0x1899a9['start'],_0x1899a9['end']):this['_setSuggestionRange'](_0x3aa8d5,_0x293507[0x0]):_0x131358['removeMarker'](_0x3aa8d5['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x27eac1){this['_editor']=_0x27eac1,this['_model']=_0x27eac1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5815c4,_0xe2be85,_0x4c8b1b,_0x20f171,_0x3b28ee,_0x3fdff9){return new u(this['_model'],{'type':_0x5815c4,'subType':_0xe2be85,'id':_0x4c8b1b,'author':_0x20f171,'creator':_0x20f171,'attributes':_0x3b28ee,'onAttributesChange':_0x3fdff9,'onAccept':(..._0x5a9fdb)=>this['getSuggestionCallback'](_0x5815c4,_0xe2be85,'accept')(..._0x5a9fdb),'onDiscard':(..._0x1db212)=>this['getSuggestionCallback'](_0x5815c4,_0xe2be85,'discard')(..._0x1db212)});}['registerCustomCallback'](_0x3db6f7,_0x95d219,_0x3b118b,_0x2af30b){const _0x4a507a=_0x3db6f7+':'+_0x95d219+':'+_0x3b118b;this['_customCallbacks']['set'](_0x4a507a,_0x2af30b);}['getSuggestionCallback'](_0x2eb015,_0x328ee0,_0x23508d){const _0xf37a45=_0x2eb015+':'+_0x328ee0+':'+_0x23508d;return this['_customCallbacks']['get'](_0xf37a45)||this['_defaultCallbacks']['get'](_0x2eb015+':'+_0x23508d);}['_registerDefaultCallbacks'](){const _0x3d0373=()=>!0x1,_0x4ccbb1=_0x3e315c=>{_0x3e315c['sort']((_0x3ce410,_0x5daf06)=>_0x3ce410['start']['isBefore'](_0x5daf06['start'])?0x1:-0x1),this['_model']['change'](_0x26b933=>{for(const _0x3207f7 of _0x3e315c){let _0xdc1b72;_0xdc1b72=_0x3207f7['end']['isAtEnd']&&_0x3207f7['end']['parent']==_0x3207f7['start']['nodeAfter']?_0x26b933['createSelection'](_0x3207f7['start']['nodeAfter'],'on'):_0x26b933['createSelection'](_0x3207f7),this['_model']['deleteContent'](_0xdc1b72,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x578739=(_0x3263b2,_0x4629f8)=>{_0x4629f8&&this['_model']['change'](_0x134d8d=>{const {commandName:_0x28ef5c,commandParams:_0x214112=[]}=_0x4629f8,_0x519863=_0x3263b2['map'](_0x29e6a2=>(Vt(_0x29e6a2)&&(_0x29e6a2=this['_model']['createRange'](_0x29e6a2['end'])),_0x29e6a2))['filter'](_0x276520=>'$graveyard'!==_0x276520['root']['rootName']);if(_0x519863['length']<0x1)return;const _0x44013f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x527217=>_0x1eeee4['fromRange'](_0x527217));_0x134d8d['setSelection'](_0x519863);for(const _0x539004 of this['_editor']['commands']['commands']())_0x539004['refresh']();_0x214112['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28ef5c,..._0x214112);const _0x37e6e3=_0x44013f['filter'](_0x5077cd=>'$graveyard'!=_0x5077cd['root']['rootName']);_0x37e6e3['length']>0x0&&_0x134d8d['setSelection'](_0x37e6e3);for(const _0xf65362 of _0x44013f)_0xf65362['detach']();});},_0x1d4bb6=(_0xcfe454,_0x2495d2)=>0x1==_0xcfe454['length']&&0x1==_0x2495d2['length']&&_0xcfe454[0x0]['end']['isEqual'](_0x2495d2[0x0]['start']),_0x3ced21=(_0x44d637,_0x43a655,_0x5a0f61,_0x23ba6a)=>Ht(_0x44d637,_0x43a655,_0x5a0f61,_0x23ba6a,this['_model'])?[_0x44d637,_0x43a655]:Ht(_0x43a655,_0x44d637,_0x23ba6a,_0x5a0f61,this['_model'])?[_0x43a655,_0x44d637]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3d0373),this['_defaultCallbacks']['set']('insertion:discard',_0x4ccbb1),this['_defaultCallbacks']['set']('insertion:join',_0x1d4bb6),this['_defaultCallbacks']['set']('insertion:chain',_0x3ced21),this['_defaultCallbacks']['set']('deletion:accept',_0x4ccbb1),this['_defaultCallbacks']['set']('deletion:discard',_0x3d0373),this['_defaultCallbacks']['set']('deletion:join',_0x1d4bb6),this['_defaultCallbacks']['set']('deletion:chain',_0x3ced21),this['_defaultCallbacks']['set']('formatInline:accept',_0x578739),this['_defaultCallbacks']['set']('formatInline:discard',_0x3d0373),this['_defaultCallbacks']['set']('formatInline:join',_0x1d4bb6),this['_defaultCallbacks']['set']('formatInline:chain',_0x3d0373),this['_defaultCallbacks']['set']('formatBlock:accept',_0x578739),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3d0373),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d4bb6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3d0373),this['_defaultCallbacks']['set']('attribute:accept',_0x3d0373),this['_defaultCallbacks']['set']('attribute:discard',(_0x138fee,_0xb61517)=>{if(!_0xb61517)return;const _0x14128f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c9029=>{if(_0xb61517['key']==m)for(const _0x4746ac of _0x138fee){const _0x3ed69e=_0x4746ac['start']['nodeAfter'],_0x2d05e5=_0xb61517['oldValue'];_0x2c9029['rename'](_0x3ed69e,_0x2d05e5);}else{if(_0x14128f['_isBlockAttribute'](_0xb61517['key'])){for(const _0x43bd6a of _0x138fee)void 0x0!==_0xb61517['oldValue']?_0x2c9029['setAttribute'](_0xb61517['key'],_0xb61517['oldValue'],_0x43bd6a['start']['nodeAfter']):_0x2c9029['removeAttribute'](_0xb61517['key'],_0x43bd6a['start']['nodeAfter']);}else{for(const _0x161e1c of _0x138fee)_0xb61517['oldValue']?_0x2c9029['setAttribute'](_0xb61517['key'],_0xb61517['oldValue'],_0x161e1c):_0x2c9029['removeAttribute'](_0xb61517['key'],_0x161e1c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d4bb6);}}function Et(_0x4c988c,_0xcd5190,_0x248b82){for(const _0x3fef16 of _0xcd5190['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3fef16['root']==_0x3fef16)return!0x1;if(!_0x248b82['containsItem'](_0x3fef16))return!0x1;if(_0x4c988c['isObject'](_0x3fef16)||_0x4c988c['isLimit'](_0x3fef16))return!0x0;}return!0x1;}function Vt(_0x1961ed){return _0x1961ed['end']['parent']==_0x1961ed['start']['nodeAfter']&&_0x1961ed['end']['isAtStart'];}function Ut(_0x5c8e98,_0x11ff07,_0x45f137,_0x4b8648){const _0xee42ef=_0x340d03=>!_0x340d03['item']['is']('$textProxy')&&!_0x4b8648['isObject'](_0x340d03['item']),_0x40709e=_0x5c8e98['start']['getLastMatchingPosition'](_0xee42ef),_0x227d3b=_0x5c8e98['end']['getLastMatchingPosition'](_0xee42ef,{'direction':'backward'});return(!_0x5c8e98['start']['isEqual'](_0x40709e)||!_0x5c8e98['end']['isEqual'](_0x227d3b))&&(_0x40709e['isBefore'](_0x227d3b)?_0x45f137['updateMarker'](_0x11ff07,{'range':_0x45f137['createRange'](_0x40709e,_0x227d3b)}):_0x45f137['removeMarker'](_0x11ff07),!0x0);}function Pt(_0x2920b4){return _0x115a16(_0x2920b4);}function Gt(_0x28cc7e){const _0x5abd0d=_0x28cc7e['start']['nodeAfter'];return _0x5abd0d&&_0x5abd0d['is']('element');}function Ft(_0x3f0d1c,_0x2876e1){return null==_0x3f0d1c['end']['nodeBefore']&&_0x3f0d1c['end']['parent']==_0x3f0d1c['start']['nodeAfter']?Lt(_0x3f0d1c['start']['nodeAfter'],_0x2876e1):_0x3f0d1c;}function Lt(_0x25fea0,_0x198a83){const _0x52cdb2=_0x198a83['schema']['isObject'](_0x25fea0)||_0x198a83['schema']['isSelectable'](_0x25fea0);return _0x198a83['createRange'](_0x198a83['createPositionAt'](_0x25fea0,'before'),_0x52cdb2?_0x198a83['createPositionAfter'](_0x25fea0):_0x198a83['createPositionAt'](_0x25fea0,'end'));}function Ht(_0x4a7864,_0x4e0e96,_0x2167fd,_0xca527c,_0x236f5e){if(_0x4a7864['next'])return!0x1;if(!Jt(_0x4a7864,_0x4e0e96))return!0x1;if(_0x2167fd['end']['isEqual'](_0xca527c['start']))return!0x0;if(_0x4a7864['type']!=_0x4e0e96['type'])return!0x1;if(!_0x2167fd['end']['isTouching'](_0xca527c['start']))return!0x1;const _0x2f0c22=_0x236f5e['createRange'](_0x2167fd['end'],_0xca527c['start'])['getWalker']();for(const _0x423ad7 of _0x2f0c22)if(['elementStart','elementEnd']['includes'](_0x423ad7['type'])&&_0x236f5e['schema']['isLimit'](_0x423ad7['item']))return!0x1;return!0x0;}function Jt(_0x55de90,_0x1e7e09){if(!_0x55de90['_isDataLoaded']||!_0x1e7e09['_isDataLoaded'])return!0x1;const _0x36fcca=new Set(Object['keys'](_0x55de90['attributes'])),_0x7dcbf5=new Set(Object['keys'](_0x1e7e09['attributes']));if(_0x36fcca['delete']('groupId'),_0x7dcbf5['delete']('groupId'),0x0==_0x36fcca['size']&&0x0==_0x7dcbf5['size'])return!0x0;if(_0x36fcca['size']!=_0x7dcbf5['size'])return!0x1;const _0x555401={..._0x55de90['attributes']},_0x330205={..._0x1e7e09['attributes']};return delete _0x555401['groupId'],delete _0x330205['groupId'],JSON['stringify'](_0x555401)==JSON['stringify'](_0x330205);}function qt(_0x22b5a7,_0x1af863){const _0x5a331e=zt(_0x22b5a7['attributes']),_0x23157f=zt(_0x1af863);if(!_0x22b5a7['_isDataLoaded'])return!0x1;for(const _0x58dde1 of Object['keys'](_0x23157f))if(!_0x10d9b1(_0x5a331e[_0x58dde1],_0x23157f[_0x58dde1]))return!0x1;return!0x0;}function zt(_0x1998d8){const _0x17a956=Object['assign']({},_0x1998d8);return delete _0x17a956['skipNestingCheck'],delete _0x17a956['tablePasteChainId'],_0x17a956;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x4f9031(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4da596,_0x5337cd,_0x27292d,_0x4edbc9){super(),this['model']=_0x5337cd,this['view']=_0x27292d,this['commentThreadController']=_0x4edbc9,this['_editor']=_0x4da596,this['_acceptCommand']=_0x4da596['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4da596['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xe4a638,_0x3a2209)=>_0xe4a638||_0x3a2209),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5515f6=>_0x5515f6&&this['_editor']['model']['canEditAt'](_0x5337cd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ed547=>_0x2ed547&&this['_editor']['model']['canEditAt'](_0x5337cd['getRanges']())),this['_pendingAction']=null,_0x27292d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x27292d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x27292d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x27292d,'change:isDirty',()=>{_0x27292d['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 _0x4d275d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d275d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5c48ce{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4de915,_0x38f93a,_0x289c8d,_0x283225){super(_0x4de915),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1e2267(_0x4de915,o(_0x4de915,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x38f93a['authoredAt']),this['bind']('authoredAt')['to'](_0x38f93a),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',_0x38f93a,'authoredAt',this,'descriptionParts',(_0xe23af6,_0x3164a8,_0x3ffa8b)=>{const _0x4ef3f7=_0x3ffa8b['map'](_0x444163=>ls(_0x444163['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xe23af6-0x1,_0x38f93a['author']['name'],_0x3164a8?_0x283225['formatDateTime'](_0x3164a8):'',new DOMParser()['parseFromString'](_0x4ef3f7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x11e3bc(),this['focusTracker']=new _0x328256(),this['keystrokes']=new _0x3f0bfa(),this['focusCycler']=new _0x594f2e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x138f59=>_0x138f59['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x38f93a,this['_localUser']=_0x289c8d,this['_config']=_0x283225,_0x283225['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3cb939(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f5ad8}=this['_config'];this['commentsListView']=new _0x4f5ad8(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',_0x2c6805=>_0x2c6805+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x28945a,_0x45519f)=>_0x28945a||!!_0x45519f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x587785}=this['_config'],_0x4676d2=new _0x587785(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x341148=_0x4676d2['commentInputView'];return _0x4676d2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x341148,'value',(_0x31d152,_0x210269,_0x561a88)=>!!_0x561a88||_0x31d152&&!_0x210269),_0x341148['on']('submit',(_0x23de98,_0x4f96b5)=>{this['fire']('addComment',_0x4f96b5),_0x341148['editor']['setData']('');}),_0x341148['on']('cancel',()=>this['focus']()),_0x341148['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4676d2;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x326b97,_0x47706e,_0x13297f,_0x37cac8){super(_0x326b97,_0x47706e,_0x13297f,_0x37cac8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1db1ae=>_0x1db1ae&&_0x1db1ae[0x0]?_0x1db1ae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4772ad,_0x2d53e8)=>{let _0xc6296f='';for(const _0x8bfc9b of _0x4772ad)_0xc6296f+='<p>'+ls(_0x8bfc9b['content'],_0x8bfc9b['color'])+'</p>';return _0x2d53e8?_0xc6296f:_0x189d33(_0xc6296f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37cac8['SuggestionView'](_0x326b97,_0x47706e,{'formatDateTime':_0x37cac8['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 _0x3feebc=this['bindTemplate'],_0xe85350=[this['suggestionView']];return this['commentsListView']&&_0xe85350['push'](this['commentsListView']),this['commentThreadInputView']&&_0xe85350['push'](this['commentThreadInputView']),_0xe85350['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3feebc['if']('isActive','ck-suggestion-wrapper--active'),_0x3feebc['to']('type',_0xf6a757=>'ck-suggestion-'+_0xf6a757),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':_0x3feebc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xe85350};}['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 ce extends _0x5c48ce{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x38e132,_0x422372,_0x5e6f12){super(_0x38e132),this['_model']=_0x422372,this['_config']=_0x5e6f12,this['set']('description',''),this['bind']('authoredAt')['to'](_0x422372),this['acceptButton']=this['_createButton'](o(_0x38e132,'Accept\x20suggestion'),_0x129e38['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x38e132,'Discard\x20suggestion'),_0x129e38['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x25caa3(_0x38e132,_0x422372['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x11e3bc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x328256(),this['keystrokes']=new _0x3f0bfa(),this['focusCycler']=new _0x594f2e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1a240e=>_0x1a240e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe50baa=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe50baa['innerHTML']=this['description'],this['on']('change:description',(_0x2d937c,_0x200f0c,_0x3ec1df)=>{_0xe50baa['innerHTML']=_0x3ec1df;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3fe16f=this['bindTemplate'],_0x308a85=[{'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']}},{'tag':'time','attributes':{'datetime':_0x3fe16f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3fe16f['to']('authoredAt',_0x569457=>this['_config']['formatDateTime'](_0x569457))}]}]},{'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']&&_0x308a85['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':_0x308a85}]};}['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'](_0x313349,_0x1e9414,_0x56c8cf,_0x4dfd9e,_0x42a865){const _0x14ab74=new _0x388278(this['locale']);return _0x14ab74['set']({'label':_0x313349,'icon':_0x1e9414,'tooltip':!0x0,'tooltipPosition':_0x42a865}),_0x14ab74['extendTemplate']({'attributes':{'class':_0x56c8cf}}),_0x14ab74['on']('execute',()=>{this['fire'](_0x4dfd9e,this['_model']['id']);}),_0x14ab74;}['_setupKeyboardNavigation'](){const _0x4358ec=this['element'];this['keystrokes']['listenTo'](_0x4358ec);for(const _0x320c69 of this['focusables'])this['focusTracker']['add'](_0x320c69['element']),this['keystrokes']['listenTo'](_0x320c69['element']);this['keystrokes']['set']('enter',(_0x919a8a,_0x52f317)=>{_0x4358ec===_0x919a8a['target']&&(this['focusCycler']['focusFirst'](),_0x52f317());}),this['keystrokes']['set']('esc',(_0x211dd2,_0x10d6ef)=>{_0x4358ec!==_0x211dd2['target']&&(this['focus'](),_0x10d6ef());});}}var he='<!--\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-2024,\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 _0x16a2ad{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5680c5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x372f5a){super(_0x372f5a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x19ed8e=this['editor']['config'];_0x19ed8e['define']('trackChanges.SuggestionThreadView',re),_0x19ed8e['define']('trackChanges.SuggestionView',ce),_0x19ed8e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x19ed8e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4c6bce,_0xdddd07){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x517aff,_0x30ce37]of this['_handleControllerBuffer']){const _0x3615dd=this['_suggestionToController']['has'](_0x517aff);_0x3615dd||_0x30ce37?_0x3615dd&&_0x30ce37&&this['_destroyController'](_0x517aff):this['_initializeController'](_0x517aff);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4c6bce,_0xdddd07);}['init'](){const _0x5ea4a8=this['editor'],_0x15a2ab=_0x5ea4a8['plugins']['get']('TrackChangesEditing'),_0x239e8b=_0x5ea4a8['plugins']['get']('Annotations'),_0x55b2dc=_0x5ea4a8['plugins']['get']('EditorAnnotations'),_0x23f9bc=_0x5ea4a8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x55b2dc['addSourceCollector'](()=>{const _0x559bba=[];for(const [_0x599a2f,_0x2af9c8]of Array['from'](this['_suggestionToController'])){const _0x146191=_0x599a2f['getAllAdjacentSuggestions'](),_0x4c02c8=[];for(const _0x3e9daf of _0x146191){if(!_0x3e9daf['isInContent'])continue;if(_0x3e9daf['isMultiRange']){_0x4c02c8['push'](..._0x3e9daf['getRanges']());continue;}const _0x3b6dd1=_0x3e9daf['getFirstRange']();if(_0x4c02c8['length']>0x0){const _0x1b3a42=_0x4c02c8[0x0]['getJoined'](_0x3b6dd1);if(_0x1b3a42){_0x4c02c8[0x0]=_0x1b3a42;continue;}}_0x4c02c8['push'](_0x3b6dd1);}_0x559bba['push']([_0x2af9c8['view'],_0x4c02c8]);}return _0x559bba;}),this['listenTo'](_0x15a2ab,'suggestionLoaded',(_0x43a95d,_0x31415b)=>{this['listenTo'](_0x31415b,'change:previous',(_0x574ba7,_0x4cf6ae,_0x21ff20,_0x4f257f)=>{_0x31415b['isInContent']&&(null==_0x21ff20?(this['_updateController'](_0x4f257f['head']),this['_handleSuggestionControllerDelayed'](_0x31415b,!0x1)):(this['_updateController'](_0x21ff20['head']),null==_0x4f257f&&this['_handleSuggestionControllerDelayed'](_0x31415b,!0x0)));}),null!==_0x31415b['previous']?this['_updateController'](_0x31415b['head']):this['_handleSuggestionControllerDelayed'](_0x31415b,!0x1);}),this['listenTo'](_0x15a2ab,'suggestionUnloaded',(_0x33c3c7,_0x3d81f2,_0x577aa7)=>{this['stopListening'](_0x3d81f2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d81f2),this['_suggestionToController']['has'](_0x3d81f2)&&this['_destroyController'](_0x3d81f2),_0x577aa7&&this['_updateController'](_0x577aa7['head']);}),this['listenTo'](_0x15a2ab,'suggestionChanged',(_0x2881,_0x31a187)=>{this['_updateController'](_0x31a187);}),this['listenTo'](_0x239e8b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x23f9bc,'addComment',(_0x5b0f90,{threadId:_0x1b495e,isFromAdapter:_0x444e80})=>{if(_0x444e80||!_0x15a2ab['hasSuggestion'](_0x1b495e))return;const _0x5525f2=_0x15a2ab['getSuggestion'](_0x1b495e);this['_suggestionToController']['get'](_0x5525f2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x227c9d=this['editor']['plugins']['get']('Annotations'),_0x49cd74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fa9d8=Array['from'](_0x227c9d['activeAnnotations'],_0xda591c=>_0xda591c['innerView'])['filter'](_0x2ba5d9=>this['_viewToController']['has'](_0x2ba5d9)),_0xcf13ea=[];for(const _0x22d2e6 of _0x1fa9d8){const _0x59bcf0=this['_viewToController']['get'](_0x22d2e6)['model']['getAllAdjacentSuggestions']();_0xcf13ea['push'](..._0x59bcf0['reduce']((_0x2ce8ac,_0x43b001)=>[..._0x2ce8ac,..._0x43b001['getMarkerNames']()],[]));}_0x49cd74['activeMarkers']=_0xcf13ea;}['_addUIComponentsToFactory'](){const _0x14b216=this['editor'],_0x247595=_0x14b216['locale'],_0x95ccfe=o(_0x247595,'Track\x20changes'),_0x3dcf1a=new Wt([{'type':'switchbutton','model':new _0x1596b5({'withText':!0x0,'isToggleable':!0x0,'label':_0x95ccfe,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xd3c1af of _0x3dcf1a)if(me(_0xd3c1af)){const _0x3b5307=_0x14b216['commands']['get'](_0xd3c1af['model']['commandName']);_0xd3c1af['model']['bind']('isOn','isEnabled')['to'](_0x3b5307,'value','isEnabled');}_0x14b216['ui']['componentFactory']['add']('trackChanges',_0x14c117=>this['_createToolbarButton'](_0x14c117,_0x3dcf1a,_0x95ccfe)),_0x14b216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x18c914=>this['_createMenuBarMenu'](_0x18c914,_0x3dcf1a,_0x95ccfe));}['_createToolbarButton'](_0x2d7189,_0x1a02e7,_0x570df3){const _0x1bdb4e=Qt(_0x2d7189,_0x646426),_0x49fa3f=this['editor']['commands']['get']('trackChanges');_0x1bdb4e['buttonView']['set']({'tooltip':_0x570df3,'label':_0x570df3,'icon':he}),_0x1bdb4e['buttonView']['bind']('isOn')['to'](_0x49fa3f,'value'),_0x1bdb4e['buttonView']['on']('execute',()=>{_0x49fa3f['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1bdb4e,_0x1a02e7,{'role':'menu'});const _0xc2a35c=[];for(const _0x1a78de of _0x1a02e7)me(_0x1a78de)&&_0xc2a35c['push'](this['editor']['commands']['get'](_0x1a78de['model']['commandName']));const _0x5c1731=_0x1bdb4e['buttonView'];return _0x5c1731['actionView']['unbind']('isEnabled'),_0x5c1731['arrowView']['unbind']('isEnabled'),_0x5c1731['actionView']['bind']('isEnabled')['to'](_0x49fa3f,'isEnabled'),_0x5c1731['arrowView']['bind']('isEnabled')['toMany'](_0xc2a35c,'isEnabled',(..._0x1f44e3)=>_0x1f44e3['some'](_0x46473e=>_0x46473e)),_0x1bdb4e['on']('execute',_0x1b8559=>{this['editor']['execute'](_0x1b8559['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1bdb4e;}['_createMenuBarMenu'](_0x37f98b,_0x57d835,_0x218001){const _0x2cf741=new Yt(_0x37f98b),_0x22b24e=this['editor']['commands']['get']('trackChanges');_0x2cf741['buttonView']['set']({'label':_0x218001,'icon':he});const _0x2f5ce2=new Zt(_0x37f98b);for(const _0x399505 of _0x57d835){if('separator'==_0x399505['type']){_0x2f5ce2['items']['add'](new Xt(_0x37f98b));continue;}const _0x22ed8b=new te(_0x37f98b,_0x2cf741),_0x300865=new _0x5c4ce3(_0x37f98b),_0x5b3857=_0x399505['model'];_0x300865['bind'](...Object['keys'](_0x5b3857))['to'](_0x5b3857),_0x300865['delegate']('execute')['to'](_0x2cf741),_0x300865['on']('execute',()=>{this['editor']['execute'](_0x5b3857['commandName']),this['editor']['editing']['view']['focus']();}),_0x22ed8b['children']['add'](_0x300865),_0x2f5ce2['items']['add'](_0x22ed8b);}return _0x2cf741['bind']('isEnabled')['to'](_0x22b24e,'isEnabled'),_0x2cf741['panelView']['children']['add'](_0x2f5ce2),_0x2cf741;}['_initializeController'](_0x468315){const _0xe80444=this['editor'],_0x58ae59=_0xe80444['config'],_0x419898=_0xe80444['plugins']['get']('Annotations'),_0x5a1d32=_0xe80444['plugins']['get']('CommentsRepository'),_0x32e6f6=_0xe80444['plugins']['get']('EditorAnnotations'),_0x5b3214=_0xe80444['plugins']['get'](_0x5680c5)['me'],_0x514eb4=_0x58ae59['get']('trackChanges')['SuggestionThreadView'],_0xa25f88=_0x58ae59['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x37a5f9,CommentThreadInputView:_0x5243b1}=_0xe80444['plugins']['get']('CommentsUI');let _0x68acf5,_0x56ead3,_0x1f9d74;this['_annotationViews']['has'](_0x468315['id'])?(_0x56ead3=this['_annotationViews']['get'](_0x468315['id']),_0x68acf5=_0x56ead3['mainView']):(_0x68acf5=new _0x514eb4(_0xe80444['locale'],_0x468315,_0x5b3214,{'disableComments':this['_disableComments'],'editorConfig':_0x58ae59['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x58ae59['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x58ae59['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x58ae59['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1661b2(_0x58ae59['get']('locale')),'CommentView':_0x58ae59['get']('comments')['CommentView'],'CommentsListView':_0x37a5f9,'CommentThreadInputView':_0x5243b1,'SuggestionView':_0xa25f88}),_0x68acf5['suggestionView']['acceptButton']['on']('execute',()=>{_0xe80444['editing']['view']['focus']();}),_0x68acf5['suggestionView']['discardButton']['on']('execute',()=>{_0xe80444['editing']['view']['focus']();}),_0x56ead3=_0x419898['createAnnotationView'](this['editor']['locale'],_0x68acf5),_0x56ead3['bind']('isDirty')['to'](_0x68acf5,'isDirty'),_0x56ead3['bind']('length')['to'](_0x68acf5),_0x56ead3['bind']('type')['to'](_0x68acf5,'type',_0x1db4f2=>'suggestion-'+_0x1db4f2),_0x68acf5['on']('escape',()=>{_0x1f9d74['fire']('escape');}),this['_annotationViews']['set'](_0x468315['id'],_0x56ead3));const _0x4ea89e=_0x5a1d32['createCommentThreadController'](_0x468315['commentThread'],_0x68acf5),_0x5e4214=new ae(_0xe80444,_0x468315,_0x68acf5,_0x4ea89e),_0x99ab1e=_0x468315['getAllAdjacentSuggestions']()['filter'](_0x8469e3=>_0x8469e3['isInContent']);_0x68acf5['descriptionParts']=_0xe80444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x99ab1e),this['_suggestionToController']['set'](_0x468315,_0x5e4214),this['_viewToController']['set'](_0x68acf5,_0x5e4214),_0x1f9d74=_0x419898['createAnnotation']({'view':_0x56ead3,'target':()=>{const _0x40f5d0=[],_0x48566c=_0x468315['getAllAdjacentSuggestions']()['filter'](_0x9b6cca=>_0x9b6cca['isInContent']);for(const _0x1017ff of _0x48566c)_0x40f5d0['push'](..._0x1017ff['getMarkers']());return _0x39b097(_0xe80444['editing'],_0x40f5d0);},'type':()=>'suggestion-'+_0x5e4214['view']['type']}),_0x5a1d32['_bindAnnotationToEditors'](_0x68acf5,_0x1f9d74),_0x419898['add'](_0x1f9d74),_0x32e6f6['registerAnnotation'](_0x1f9d74);}['_destroyController'](_0x4303a1){const _0x46ec7e=this['editor']['plugins']['get']('CommentsRepository'),_0x8ca332=this['editor']['plugins']['get']('Annotations'),_0x3ef3bc=this['_suggestionToController']['get'](_0x4303a1),_0x25ef55=_0x3ef3bc['view'],_0x57c1f0=_0x8ca332['getByInnerView'](_0x25ef55);_0x46ec7e['_unbindEditors'](_0x25ef55),_0x57c1f0&&_0x8ca332['remove'](_0x57c1f0),this['_suggestionToController']['delete'](_0x4303a1),this['_viewToController']['delete'](_0x25ef55),_0x3ef3bc['destroy']();}['_updateController'](_0x2836c6){if(!_0x2836c6['isInContent']||!this['_suggestionToController']['has'](_0x2836c6))return;const _0x9b015d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4593f1=this['_suggestionToController']['get'](_0x2836c6),_0x502532=_0x2836c6['getAllAdjacentSuggestions']();_0x4593f1['view']['descriptionParts']=_0x9b015d['descriptionFactory']['getDescriptions'](_0x502532);}['destroy'](){for(const _0x5f4384 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5f4384);for(const _0x20a5ba of this['_annotationViews']['values']())_0x20a5ba['mainView']['destroy']();super['destroy']();}}function me(_0x2e8946){return'model'in _0x2e8946;}class k extends _0x16a2ad{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2f6505){this['editor']['plugins']['get'](p)['adapter']=_0x2f6505;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x41b57b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x41b57b);}['getSuggestions']({skipNotAttached:_0x5dddfe=!0x1,toJSON:_0x32f33e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5dddfe,'toJSON':_0x32f33e});}['getSuggestion'](_0x256bb0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x256bb0);}}const w=['Pagination'];class T extends _0x16a2ad{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4513ec=this['editor'];if(_0x4513ec['config']['define']('trackChangesData.editorCreator',_0x3018ac=>{const _0x37598a=_0x4513ec['model']['document']['getRootNames']()['reduce']((_0x30beb3,_0x232801)=>(_0x30beb3[_0x232801]='',_0x30beb3),{});return _0x4513ec['constructor']['create'](_0x37598a,_0x3018ac);}),'function'!=typeof _0x4513ec['config']['get']('trackChangesData')['editorCreator'])throw new _0x2f735b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ed58b){return N(this['editor'],!0x0,_0x2ed58b);}['getDataWithDiscardedSuggestions'](_0x36b153){return N(this['editor'],!0x1,_0x36b153);}}class D extends _0x16a2ad{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5192aa){super(_0x5192aa),this['result']='end';}['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 v(_0x7008a8){return void 0x0!==_0x7008a8['getRootsAttributes'];}async function N(_0x178906,_0x55b589,_0x40087f){const _0x1af51a=_0x1c6eb1(_0x178906,w);_0x1af51a['plugins']['push'](p,D),_0x1af51a['rootsAttributes']=v(_0x178906)?_0x178906['getRootsAttributes']():void 0x0;const _0x1b3d27=document['createDocumentFragment'](),_0x5e0ddf=_0x178906['config']['get']('trackChangesData')['editorCreator'],_0x345de3=await _0x5e0ddf(_0x1af51a,()=>function(_0x5c46fa){const _0x5c0710=document['createElement']('div');return _0x5c46fa['appendChild'](_0x5c0710),_0x5c0710;}(_0x1b3d27));!function(_0x25bc16,_0x40ac72){const _0xc74e74=_0x25bc16['model']['document']['getRootNames']()['reduce']((_0x27a9ac,_0x216f71)=>(_0x27a9ac[_0x216f71]=_0x25bc16['data']['get']({'rootName':_0x216f71}),_0x27a9ac),{}),_0x165272=_0x25bc16['plugins']['get']('Users')['users']['map'](_0x132df7=>({'id':_0x132df7['id'],'name':_0x132df7['name']})),_0x5a45f6=_0x25bc16['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x11c8fa=_0x25bc16['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45d9e6=_0x40ac72['plugins']['get']('Users'),_0x5259b7=_0x40ac72['plugins']['get']('TrackChangesEditing'),_0x1577dd=_0x40ac72['plugins']['get']('CommentsRepository');for(const _0x4921d9 of _0x1577dd['getCommentThreads']())_0x4921d9['remove']();for(const _0x5b9bf3 of _0x165272)_0x45d9e6['getUser'](_0x5b9bf3['id'])||_0x45d9e6['addUser'](_0x5b9bf3);_0x45d9e6['me']||_0x45d9e6['useAnonymousUser']();for(const _0x1f5841 of _0x11c8fa)_0x1577dd['addCommentThread'](_0x1f5841);for(const _0xde9429 of _0x5a45f6)_0x5259b7['addSuggestionData'](_0xde9429);_0x40ac72['data']['set'](_0xc74e74);}(_0x178906,_0x345de3),_0x345de3['execute'](_0x55b589?'acceptAllSuggestions':'discardAllSuggestions');const _0x50e155=v(_0x345de3)?_0x345de3['getFullData'](_0x40087f):_0x345de3['data']['get'](_0x40087f);return await _0x345de3['destroy'](),_0x50e155;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x30188a,PendingActions as _0x306155,icons as _0x59ae22}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3a7afb,ObservableMixin as _0x262186,uid as _0xadcd2f,insertToPriorityArray as _0x28f309,priorities as _0x45fb90,logWarning as _0x2e1b81,getEnvKeystrokeText as _0x359385,FocusTracker as _0x2c9097,KeystrokeHandler as _0x5e9749,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1f9fdd,View as _0x4a27ed,ViewCollection as _0x147d17,FocusCycler as _0x1abfec,ViewModel as _0x4fe4d9,createDropdown as Qt,SplitButtonView as _0x368180,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x4bd3e7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1d31e6,hashObject as _0x12c7fd,surroundingMarkersDetector as _0x2bf9d2,FOCUS_ANNOTATION_KEYSTROKE as _0x118620,AriaDescriptionView as _0x3b72a9,setupThreadKeyboardNavigation as _0x2409b3,trimHtml as _0x30d59a,UserView as _0x24ffc1,LateFocusButtonView as _0x4e8185,getDateTimeFormatter as _0x242a5e,getAllMarkersDomElementsSorted as _0x1837f0,sanitizeEditorConfig as _0x47eac9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xbc0d51,LiveRange as _0x5de9d6,LivePosition as _0x2b19a6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3117ba,toWidget as _0x127592}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x58a82b,set as _0x54c175,isEqual as _0x58efdc,unset as _0x4bcd0a,omit as Rt}from'lodash-es';import{Delete as _0x3970fb,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5a8fcb,ShiftEnter as _0x1f4832}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x16ba04,_0x22da59){super(_0x16ba04),this['_enabledCommands']=_0x22da59,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 _0x5302e9 of this['editor']['commands']['commands']())_0x5302e9['affectsData']&&!this['_enabledCommands']['has'](_0x5302e9)&&_0x5302e9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x407d94 of this['editor']['commands']['commands']())_0x407d94['affectsData']&&!this['_enabledCommands']['has'](_0x407d94)&&_0x407d94['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x14f15d,_0x57ff0b){super(_0x14f15d),this['_suggestions']=_0x57ff0b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2852d3){const _0x1b90da=this['_suggestions']['get'](_0x2852d3);if(!_0x1b90da)throw new _0x3a7afb('track-changes-accept-suggestion-not-found',this);const _0x4f0271=_0x1b90da['getRanges']();this['editor']['model']['canEditAt'](_0x4f0271)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b90da);}}class O extends ts{['_suggestions'];constructor(_0x5c3055,_0x4cc359){super(_0x5c3055),this['_suggestions']=_0x4cc359,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x340705){const _0x457c82=this['_suggestions']['get'](_0x340705);if(!_0x457c82)throw new _0x3a7afb('track-changes-discard-suggestion-not-found',this);const _0x5342a3=_0x457c82['getRanges']();this['editor']['model']['canEditAt'](_0x5342a3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x457c82);}}function ls(_0xf53d80,_0x20b5ba){let _0xa1e03b='';return _0xa1e03b+=_0xf53d80['split']('*')['map']((_0x4fe360,_0x1dffd3)=>_0x1dffd3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4fe360)+'</span>':nn(_0x4fe360))['join'](''),_0x20b5ba&&(_0xa1e03b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x20b5ba['value']+'\x22\x20title=\x22'+_0x20b5ba['title']+'\x22></span>'),_0xa1e03b;}function nn(_0x4a24e5){const _0x352b7b=document['createElement']('span');return _0x352b7b['innerText']=_0x4a24e5,_0x352b7b['innerHTML'];}function ss(_0xd81bc1){return _0xd81bc1['sort']((_0x3806dd,_0x160ad1)=>'deletion'==_0x3806dd['type']&&'deletion'!=_0x160ad1['type']?-0x1:'deletion'!=_0x3806dd['type']&&'deletion'==_0x160ad1['type']?0x1:0x0);}function to(_0x577fdc,_0x45cbbb){let _0x36cb88,_0x22349a=0x0;const _0x1ce2d8=[],_0x51cbe2=_0x45cbbb['schema'];for(;_0x22349a<_0x577fdc['length'];){const _0x407bd9=_0x577fdc[_0x22349a],_0x5b60c9=_0x577fdc[_0x22349a+0x1];_0x36cb88||(_0x36cb88=_0x45cbbb['createPositionBefore'](_0x407bd9)),on(_0x45cbbb,_0x407bd9,_0x5b60c9)||(_0x1ce2d8['push'](_0x45cbbb['createRange'](_0x36cb88,_0x51cbe2['isObject'](_0x407bd9)?_0x45cbbb['createPositionAfter'](_0x407bd9):_0x45cbbb['createPositionAt'](_0x407bd9,'end'))),_0x36cb88=null),_0x22349a++;}return _0x1ce2d8;}function on(_0x266c53,_0x26a579,_0x2d269a){if(!_0x2d269a)return!0x1;const _0x77a492=_0x266c53['createPositionAfter'](_0x26a579),_0x51337f=_0x266c53['createPositionBefore'](_0x2d269a);return _0x77a492['isTouching'](_0x51337f);}function rs(_0x43054e,_0x51d266,_0x265c79){for(;_0x265c79['length'];){const _0x3a7b30=_0x265c79['splice'](0x0,0x64);_0x43054e['change'](()=>{for(const _0x4bc9c4 of _0x3a7b30)_0x4bc9c4['isInContent']&&_0x51d266['execute'](_0x4bc9c4['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x5db915,_0x2d0d86,_0x52fa67){super(_0x5db915),this['_command']=_0x2d0d86,this['_suggestions']=_0x52fa67,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4afceb=Array['from'](this['_suggestions']['values']())['some'](_0x3d734c=>_0x3d734c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4afceb;}['execute'](){const _0xede0ca=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3ac708 of _0xede0ca){const _0x4f4e1d=_0x3ac708['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4f4e1d))return;}rs(this['editor']['model'],this['_command'],_0xede0ca);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x7621c1,_0x3d6424,_0x1efed1){super(_0x7621c1),this['_command']=_0x3d6424,this['_suggestions']=_0x1efed1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28e926=this['editor']['model']['document']['selection'],_0x28eaf9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xf79e44,_0x5e110e){const _0x2722aa=Array['from'](_0xf79e44['getRanges']()),_0x202bb1=new Set();for(const _0x45f350 of _0x5e110e)if(_0x45f350['isInContent']){for(const _0x314195 of _0x2722aa)for(const _0x155819 of _0x45f350['getRanges']())(_0x314195['isIntersecting'](_0x155819)||_0xf79e44['isCollapsed']&&!_0x45f350['isMultiRange']&&_0x45f350['next']&&_0x155819['end']['isTouching'](_0x314195['start']))&&_0x202bb1['add'](_0x45f350);}return _0x202bb1;}(_0x28e926,_0x28eaf9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4d90a1=ss(Array['from'](this['_selectedSuggestions']));for(const _0x53e97f of _0x4d90a1){const _0x56a43d=_0x53e97f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x56a43d))return;}rs(this['editor']['model'],this['_command'],_0x4d90a1);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x262186(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2fb0cb,_0x1254af){super(),this['id']=_0x1254af['id'],this['type']=_0x1254af['type'],this['subType']=_0x1254af['subType']||null,this['author']=_0x1254af['author'],this['creator']=_0x1254af['creator']||_0x1254af['author'],this['isExternal']=Boolean(_0x1254af['attributes']&&_0x1254af['attributes']['@external']),this['data']=null,this['_model']=_0x2fb0cb,this['_onAccept']=_0x1254af['onAccept'],this['_onDiscard']=_0x1254af['onDiscard'],this['_onAttributesChange']=_0x1254af['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1254af['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 _0x974af3=this;for(;_0x974af3['previous'];)_0x974af3=_0x974af3['previous'];return _0x974af3;}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'](_0x59172c){this['_markerNames']['add'](_0x59172c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x9335be=>this['_model']['markers']['get'](_0x9335be))['filter'](_0x1e9337=>_0x1e9337);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34bf20=>{for(const _0x5cffa8 of this['getMarkers']())_0x34bf20['removeMarker'](_0x5cffa8);}),this['_markerNames']['clear']();}['removeMarker'](_0x45cd78){this['_model']['change'](_0x2f49db=>{_0x2f49db['removeMarker'](_0x45cd78);}),this['_markerNames']['delete'](_0x45cd78);}['addRange'](_0x581dcf){const _0x3e811b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3e811b),this['_model']['change'](_0x3e474e=>{_0x3e474e['addMarker'](_0x3e811b,{'range':_0x581dcf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2172fe){for(const _0x5e1e76 of this['getRanges']())if(_0x5e1e76['isIntersecting'](_0x2172fe))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x227e57=>_0x227e57['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3172a3,_0x432e24)=>[..._0x3172a3,..._0x432e24['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x493173=this['getRanges']();if(0x1!=_0x493173['length'])return null;const _0x49f0b2=_0x493173[0x0],_0x3cbc62=_0x49f0b2['start']['nodeAfter'],_0x1534ef=_0x49f0b2['end']['nodeBefore'];return _0x3cbc62 instanceof _0xbc0d51?_0x3cbc62!=_0x1534ef?null:_0x3cbc62: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 _0x4335f2=[];let _0x5f2982=this['head'];for(;_0x5f2982;)_0x4335f2['push'](_0x5f2982),_0x5f2982=_0x5f2982['next'];return _0x4335f2;}['setAttribute'](_0x4aff0e,_0x5c3a2b){const _0x24062f=_0x58a82b(this['attributes']);_0x54c175(_0x24062f,_0x4aff0e,_0x5c3a2b),_0x58efdc(_0x24062f,this['attributes'])||(this['attributes']=_0x24062f,this['_onAttributesChange'](_0x24062f));}['removeAttribute'](_0x295251){const _0x2e4bd5=_0x58a82b(this['attributes']);_0x4bcd0a(_0x2e4bd5,_0x295251),_0x58efdc(_0x2e4bd5,this['attributes'])||(this['attributes']=_0x2e4bd5,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 _0xadcd2f()['substr'](0x1,0x5);}}function o(_0x181a13,_0x114d32,_0x13cf8a){const _0x1cd13c=_0x181a13['t'],t=_0x181a13['t'];switch(_0x114d32){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'*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',_0x13cf8a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13cf8a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13cf8a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13cf8a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13cf8a);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',_0x13cf8a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13cf8a);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x13cf8a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13cf8a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13cf8a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13cf8a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13cf8a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13cf8a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13cf8a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13cf8a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13cf8a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13cf8a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13cf8a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13cf8a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13cf8a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13cf8a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13cf8a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13cf8a);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'},_0x13cf8a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13cf8a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13cf8a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13cf8a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13cf8a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13cf8a);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'},_0x13cf8a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13cf8a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13cf8a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13cf8a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13cf8a);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'},_0x13cf8a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13cf8a);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'},_0x13cf8a);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'},_0x13cf8a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13cf8a);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'},_0x13cf8a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13cf8a);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'},_0x13cf8a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13cf8a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13cf8a);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'},_0x13cf8a);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 _0x1cd13c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x13cf8a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1cd13c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x13cf8a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x13cf8a);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'},_0x13cf8a);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'},_0x13cf8a);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'},_0x13cf8a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x114d32;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x31dad4,_0x4b60d6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x31dad4,this['_locale']=_0x4b60d6;}['getDescriptions'](_0x147026){const _0x4bd946=[],_0x55661d=new Set(),_0x31b549=new Set();for(let _0x143751=0x0;_0x143751<_0x147026['length'];_0x143751++){const _0x5deb07=_0x147026[_0x143751];if(!_0x5deb07['isInContent'])continue;const _0x178981=this['_handleCustomCallbackDescription'](_0x5deb07);if(_0x178981){if(null!=_0x5deb07['subType']){if(_0x55661d['has'](_0x5deb07['subType']))continue;_0x55661d['add'](_0x5deb07['subType']);}_0x4bd946['push'](_0x178981);}else{if('attribute'!=_0x5deb07['type'])'insertion'!=_0x5deb07['type']&&'deletion'!=_0x5deb07['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4bd946,_0x5deb07,_0x147026[_0x143751+0x1]);else{const _0x4ee0bb=_0x5deb07['data']['key'];if(_0x31b549['has'](_0x4ee0bb))continue;_0x31b549['add'](_0x5deb07['data']['key']),_0x4ee0bb==m?this['_handleRenameSuggestionDescription'](_0x4bd946,_0x5deb07):this['_handleAttributeSuggestionDescription'](_0x4bd946,_0x5deb07);}}}return this['_resolveDescriptionItems'](_0x4bd946);}['registerDescriptionCallback'](_0x223c44){this['_customCallbacks']['push'](_0x223c44);}['registerElementLabel'](_0x27087a,_0x4fcde5,_0x14c7a5=_0x45fb90['normal']){'function'==typeof _0x27087a?_0x28f309(this['_itemLabelsCallbacks'],{'matchingCallback':_0x27087a,'label':_0x4fcde5,'priority':_0x14c7a5}):this['_itemLabels']['set'](_0x27087a,_0x4fcde5);}['registerAttributeLabel'](_0x344397,_0x4dbf26){this['_attributeLabels']['set'](_0x344397,_0x4dbf26);}['getItemLabel'](_0x7eea5b,_0x3bd8a5=0x1){let _0xf22466;for(const _0x1293be of this['_itemLabelsCallbacks'])if(_0x1293be['matchingCallback'](_0x7eea5b)){_0xf22466=_0x1293be['label'];break;}return _0xf22466||(_0xf22466=this['_itemLabels']['get'](_0x7eea5b['name'])),_0xf22466?_0xf22466(_0x3bd8a5):0x1!==_0x3bd8a5?_0x3bd8a5+'\x20'+_0x7eea5b['name']+'s':''+_0x7eea5b['name'];}['_addDescriptionItems'](_0x33d65a,_0x185178){const _0x22c88a=_0x185178['getFirstRange']()['getWalker'](),_0xfa4e26='insertion'==_0x185178['type']?'add':'remove';for(const _0x17b376 of _0x22c88a){const _0xce350c=_0x17b376['item'],_0x8fc42b=_0x33d65a[_0x33d65a['length']-0x1];if(_0xce350c['is']('$textProxy'))_0x8fc42b&&_0x8fc42b['type']['indexOf']('Container')>-0x1&&_0x33d65a['pop'](),_0x8fc42b&&'text'==_0x8fc42b['type']?_0x8fc42b[_0xfa4e26]+=_0xce350c['data']:_0x33d65a['push']({'type':'text','add':'add'==_0xfa4e26?_0xce350c['data']:'','remove':'remove'==_0xfa4e26?_0xce350c['data']:''});else{if(this['_schema']['isObject'](_0xce350c)){const _0x26174d=_0xce350c;if(_0x8fc42b&&_0x8fc42b['type']['indexOf']('Container')>-0x1&&_0x33d65a['pop'](),'elementEnd'==_0x17b376['type'])continue;_0x8fc42b&&_0x8fc42b['type']==_0xfa4e26+'Object'&&_0x8fc42b['element']['name']==_0x26174d['name']?_0x8fc42b['quantity']++:_0x33d65a['push']({'type':_0xfa4e26+'Object','element':_0x26174d,'quantity':0x1}),_0x22c88a['skip'](_0x5be6dc=>!('elementEnd'==_0x5be6dc['type']&&_0x5be6dc['item']==_0xce350c));}else{if(this['_schema']['checkChild'](_0xce350c,'$text')||_0xce350c['is']('element','softBreak')){const _0x8bce57=_0xce350c;if('add'==_0xfa4e26&&'elementStart'==_0x17b376['type']||'remove'==_0xfa4e26&&'elementEnd'==_0x17b376['type'])continue;if(_0x8fc42b&&-0x1==_0x8fc42b['type']['indexOf']('Container')){'text'==_0x8fc42b['type']&&(_0x8fc42b[_0xfa4e26]+='\x0a');continue;}let _0xdcfba3;if(_0xdcfba3='add'==_0xfa4e26?_0x8bce57['nextSibling']&&!this['_schema']['isObject'](_0x8bce57['nextSibling'])?_0x8bce57['nextSibling']:null:_0x8bce57['previousSibling']&&!this['_schema']['isObject'](_0x8bce57['previousSibling'])?_0x8bce57['previousSibling']:null,_0x8bce57['isEmpty']||_0xdcfba3&&_0xdcfba3['isEmpty']){const _0x26f501=_0xdcfba3&&_0xdcfba3['isEmpty']?_0xdcfba3:_0x8bce57;_0x8fc42b&&_0x8fc42b['type']==_0xfa4e26+'EmptyContainer'&&_0x8fc42b['element']['name']==_0x26f501['name']?_0x8fc42b['quantity']++:_0x33d65a['push']({'type':_0xfa4e26+'EmptyContainer','element':_0x26f501,'quantity':0x1});}else _0x33d65a['push']({'type':_0xfa4e26+'Container','element':_0x8bce57});}}}}}['_resolveDescriptionItems'](_0x18b99c){const _0x4090e2=this['_locale'],_0x15de46=[],_0x58ae4e=[],_0x5452c9=[];for(const _0xebe026 of _0x18b99c)switch(_0xebe026['type']){case'text':if(_0xebe026['add']=_0xebe026['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xebe026['remove']=_0xebe026['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xebe026['add']&&''!=_0xebe026['remove']){_0x15de46['push']({'type':'replace','content':o(_0x4090e2,'REPLACE_TEXT',['\x22'+_0xebe026['remove']+'\x22','\x22'+_0xebe026['add']+'\x22'])});continue;}if(null!=_0xebe026['add']['match'](/^ +$/)){_0x15de46['push']({'type':'insertion','content':o(_0x4090e2,'*Insert:*\x20%0',o(_0x4090e2,'ELEMENT_SPACE',_0xebe026['add']['length']))});continue;}if(null!=_0xebe026['remove']['match'](/^ +$/)){_0x15de46['push']({'type':'deletion','content':o(_0x4090e2,'*Remove:*\x20%0',o(_0x4090e2,'ELEMENT_SPACE',_0xebe026['remove']['length']))});continue;}if(''!=_0xebe026['add']){_0x15de46['push']({'type':'insertion','content':o(_0x4090e2,'*Insert:*\x20%0','\x22'+_0xebe026['add']+'\x22')});continue;}_0x15de46['push']({'type':'deletion','content':o(_0x4090e2,'*Remove:*\x20%0','\x22'+_0xebe026['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x15de46['push']({'type':'insertion','content':o(_0x4090e2,'*Insert:*\x20%0',this['getItemLabel'](_0xebe026['element'],_0xebe026['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x15de46['push']({'type':'deletion','content':o(_0x4090e2,'*Remove:*\x20%0',this['getItemLabel'](_0xebe026['element'],_0xebe026['quantity']))});continue;case'addContainer':_0x15de46['push']({'type':'insertion','content':o(_0x4090e2,'*Split:*\x20%0',this['getItemLabel'](_0xebe026['element'],_0xebe026['quantity']))});continue;case'removeContainer':_0x15de46['push']({'type':'deletion','content':o(_0x4090e2,'*Merge:*\x20%0',this['getItemLabel'](_0xebe026['element'],_0xebe026['quantity']))});continue;case'addFormat':_0x58ae4e['push'](_0xebe026['key']);continue;case'removeFormat':_0x5452c9['push'](_0xebe026['key']);continue;default:_0x15de46['push'](_0xebe026);}if(_0x58ae4e['length']){const _0x3a051b=_0x58ae4e['map'](_0x2f7dcf=>this['_attributeLabels']['has'](_0x2f7dcf)?this['_attributeLabels']['get'](_0x2f7dcf):_0x2f7dcf)['join'](',\x20');_0x15de46['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3a051b)});}if(_0x5452c9['length']){const _0x2c5ca0=_0x5452c9['map'](_0x4d4520=>this['_attributeLabels']['has'](_0x4d4520)?this['_attributeLabels']['get'](_0x4d4520):_0x4d4520)['join'](',\x20');_0x15de46['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2c5ca0)});}return _0x15de46;}['_handleCustomCallbackDescription'](_0x4f1ab9){for(const _0x339cf8 of this['_customCallbacks']){const _0x2fa37f=_0x339cf8(_0x4f1ab9);if(_0x2fa37f&&'type'in _0x2fa37f)return _0x2fa37f;}}['_handleAttributeSuggestionDescription'](_0x3a479e,_0x300202){const _0x359703=_0x300202['data'],_0x5f1ed1=void 0x0===_0x359703['newValue']?'removeFormat':'addFormat';_0x3a479e['push']({'type':_0x5f1ed1,'key':_0x359703['key']});}['_handleRenameSuggestionDescription'](_0x2916f2,_0x355c9a){_0x2916f2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x355c9a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x53f3a9,_0x304f65,_0x387220){if(this['_addDescriptionItems'](_0x53f3a9,_0x304f65),_0x387220&&_0x387220['getFirstRange']()&&!_0x304f65['getFirstRange']()['end']['isEqual'](_0x387220['getFirstRange']()['start'])){const _0x19e0f8=_0x53f3a9[_0x53f3a9['length']-0x1],_0x323f9f='insertion'==_0x304f65['type']?'add':'remove';_0x19e0f8&&'text'==_0x19e0f8['type']&&(_0x19e0f8[_0x323f9f]+='\x0a');}}}class V extends _0x30188a{['afterInit'](){const _0x1458f7=this['editor'],_0x37cbc3=_0x1458f7['plugins']['get']('TrackChangesEditing');_0x1458f7['commands']['get']('showAIAssistant')&&_0x37cbc3['enableCommand']('showAIAssistant');}}class U extends _0x30188a{['afterInit'](){const _0xdc8cf3=this['editor'],_0x292e8b=_0xdc8cf3['locale'];if(!_0xdc8cf3['plugins']['has']('AlignmentEditing'))return;const _0x9d177e=_0xdc8cf3['plugins']['get']('TrackChangesEditing');_0x9d177e['enableDefaultAttributesIntegration']('alignment'),_0x9d177e['registerBlockAttribute']('alignment'),_0x9d177e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x292e8b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbd1170=this['editor'],_0x51301c=_0xbd1170['locale'];_0xbd1170['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x511eb2=>{if('formatBlock'!=_0x511eb2['type'])return;const {data:_0x18f6c6}=_0x511eb2;if(_0x18f6c6&&'alignment'==_0x18f6c6['commandName']){const _0x16908e=_0x18f6c6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x51301c,'*Format:*\x20%0',function(_0x303b1f){switch(_0x303b1f){case'left':return o(_0x51301c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x51301c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x51301c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x51301c,'FORMAT_JUSTIFY_TEXT');}}(_0x16908e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x30188a{['afterInit'](){const _0x390306=this['editor'],_0x597c5c=_0x390306['plugins']['get']('TrackChangesEditing'),_0x16c634=_0x390306['locale'];for(const _0x4a75c8 of ti){if(!_0x390306['plugins']['has'](_0x4a75c8))continue;const _0x5cdd8c=_0x4a75c8['slice'](0x0,-0x7)['toLowerCase'](),_0x73cd89='FORMAT_'+_0x5cdd8c['toUpperCase']();_0x597c5c['enableDefaultAttributesIntegration'](_0x5cdd8c),_0x597c5c['registerInlineAttribute'](_0x5cdd8c),_0x597c5c['descriptionFactory']['registerAttributeLabel'](_0x5cdd8c,o(_0x16c634,_0x73cd89));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x540229=this['editor'],_0x1e093d=_0x540229['locale'],_0x3a27b9=_0x540229['plugins']['get']('TrackChangesEditing');function _0x54fd6f(_0xf4fd07,_0x53ffde){_0x3a27b9['descriptionFactory']['registerDescriptionCallback'](_0x3c639e=>{if('formatInline'!=_0x3c639e['type'])return;const {data:_0x53c730}=_0x3c639e;return _0x53c730&&_0x53c730['commandName']===_0xf4fd07?_0x53c730['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e093d,'*Format:*\x20%0',_0x53ffde)}:{'type':'format','content':o(_0x1e093d,'*Remove\x20format:*\x20%0',_0x53ffde)}:void 0x0;});}_0x54fd6f('bold',o(_0x1e093d,'FORMAT_BOLD')),_0x54fd6f('italic',o(_0x1e093d,'FORMAT_ITALIC')),_0x54fd6f('underline',o(_0x1e093d,'FORMAT_UNDERLINE')),_0x54fd6f('code',o(_0x1e093d,'FORMAT_CODE')),_0x54fd6f('strikethrough',o(_0x1e093d,'FORMAT_STRIKETHROUGH')),_0x54fd6f('subscript',o(_0x1e093d,'FORMAT_SUBSCRIPT')),_0x54fd6f('superscript',o(_0x1e093d,'FORMAT_SUPERSCRIPT'));}}class F extends _0x30188a{['afterInit'](){const _0x20bea9=this['editor'],_0x559b26=_0x20bea9['locale'];if(!_0x20bea9['plugins']['has']('BlockQuoteEditing'))return;const _0x3afe26=_0x20bea9['plugins']['get']('TrackChangesEditing'),_0x5f2a38=this['editor']['commands']['get']('blockQuote');_0x3afe26['enableCommand']('blockQuote',(_0x34b525,_0x7c116b={})=>{const _0x7297a3=this['editor']['model']['document']['selection'],_0xfdc8ed=_0x7c116b&&void 0x0!==_0x7c116b['forceValue']?_0x7c116b['forceValue']:!_0x5f2a38['value'];let _0x2abe94=[];if(_0xfdc8ed){const _0x4b613f=Array['from'](_0x7297a3['getSelectedBlocks']())['filter'](_0x4d8399=>oo(_0x4d8399)||function(_0x43300f,_0x2fd920){const _0x1895d7=_0x2fd920['checkChild'](_0x43300f['parent'],'blockQuote'),_0x24f51c=_0x2fd920['checkChild'](['$root','blockQuote'],_0x43300f);return _0x1895d7&&_0x24f51c;}(_0x4d8399,this['editor']['model']['schema']));_0x2abe94=to(_0x4b613f,_0x20bea9['model']);}else{const _0x23d1d9=Array['from'](_0x7297a3['getSelectedBlocks']())['filter'](_0x3c1120=>oo(_0x3c1120));_0x2abe94=to(_0x23d1d9,_0x20bea9['model']);}_0x20bea9['model']['change'](()=>{for(const _0x46ee72 of _0x2abe94)_0x3afe26['markBlockFormat'](_0x46ee72,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xfdc8ed}]});});}),_0x3afe26['descriptionFactory']['registerDescriptionCallback'](_0x3097d9=>{const {data:_0x3f2081}=_0x3097d9;if(_0x3f2081&&'blockQuote'==_0x3f2081['commandName']){const _0x574539=o(_0x559b26,'ELEMENT_BLOCK_QUOTE');return _0x3f2081['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x559b26,'*Set\x20format:*\x20%0',_0x574539)}:{'type':'format','content':o(_0x559b26,'*Remove\x20format:*\x20%0',_0x574539)};}});}}function oo(_0x59cb39){return'blockQuote'==_0x59cb39['parent']['name'];}class L extends _0x30188a{['afterInit'](){const _0x55d3c8=this['editor'];_0x55d3c8['plugins']['has']('CaseChange')&&(_0x55d3c8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x55d3c8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x55d3c8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x30188a{['afterInit'](){const _0x791ea3=this['editor'];_0x791ea3['commands']['get']('ckbox')&&_0x791ea3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x30188a{['afterInit'](){const _0x84f074=this['editor'];if(!_0x84f074['plugins']['has']('CodeBlock'))return;const _0x425d04=_0x84f074['plugins']['get']('TrackChangesEditing'),_0x551898=_0x84f074['locale'],_0x1cbbde=_0x84f074['config']['get']('codeBlock')['languages'],_0x32b9d4=_0x84f074['commands']['get']('codeBlock');_0x425d04['enableCommand']('indentCodeBlock'),_0x425d04['enableCommand']('outdentCodeBlock'),_0x425d04['enableCommand']('codeBlock',(_0x55e439,_0x331944={})=>{const _0xc435c0=_0x84f074['model'],_0x32ce56=_0x84f074['model']['document']['selection'],_0x6bce75=_0x331944&&void 0x0!==_0x331944['forceValue']?_0x331944['forceValue']:!_0x32b9d4['value'];let _0x51c156;_0x331944['language']||(_0x331944['language']=_0x1cbbde[0x0]['language']),_0x51c156=_0x6bce75?Array['from'](_0x32ce56['getSelectedBlocks']())['filter'](_0x282ea9=>eo(_0x282ea9)||function(_0x3b6f06,_0x1a1c30){if(_0x3b6f06['is']('rootElement')||_0x1a1c30['isLimit'](_0x3b6f06))return!0x1;return _0x1a1c30['checkChild'](_0x3b6f06['parent'],'codeBlock');}(_0x282ea9,_0xc435c0['schema'])):Array['from'](_0x32ce56['getSelectedBlocks']())['filter'](_0x215157=>eo(_0x215157));const _0x139f5e=to(_0x51c156,_0xc435c0);_0xc435c0['change'](()=>{for(const _0x52a98e of _0x139f5e)_0x425d04['markBlockFormat'](_0x52a98e,{'commandName':'codeBlock','commandParams':[{..._0x331944,'forceValue':_0x6bce75}],'formatGroupId':'blockName'});});}),(_0x425d04['descriptionFactory']['registerElementLabel']('codeBlock',_0x36c73f=>o(_0x551898,'ELEMENT_CODE_BLOCK',_0x36c73f)),_0x425d04['descriptionFactory']['registerDescriptionCallback'](_0x2dd227=>{if('formatBlock'!=_0x2dd227['type'])return;const _0xb723e0=_0x551898['t'],{data:_0x4bce1b}=_0x2dd227;if(!_0x4bce1b||'codeBlock'!=_0x4bce1b['commandName'])return;const _0x381568=_0x4bce1b['commandParams'][0x0]['language'],_0x327d6b=_0xb723e0(_0x1cbbde['find'](_0xb9b744=>_0xb9b744['language']===_0x381568)['label'])['toLowerCase']();return _0x4bce1b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x551898,'*Set\x20format:*\x20%0',o(_0x551898,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x327d6b+')')}:{'type':'format','content':o(_0x551898,'*Remove\x20format:*\x20%0',o(_0x551898,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1019d7){return'codeBlock'==_0x1019d7['name'];}class q extends _0x30188a{['afterInit'](){const _0x2bf640=this['editor'];if(!_0x2bf640['plugins']['has']('CommentsEditing'))return;_0x2bf640['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1ee759,_0x1c7330,_0x540ed0){const _0x71adc6=[];for(const _0x27f28f of _0x1c7330['getItems']())_0x27f28f['hasAttribute'](_0x1ee759)&&_0x71adc6['push'](_0x540ed0['createRangeOn'](_0x27f28f));return _0x71adc6;}function _e(_0x27ae0c,_0x5b304e,{showActiveMarker:_0x41b68b=!0x0}={}){const _0x1bdfdf=_0x27ae0c['plugins']['get']('TrackChangesEditing');return(_0x588f40,_0x24913a,_0x3ae7bd)=>{if(!_0x3ae7bd['consumable']['test'](_0x24913a['markerRange'],_0x588f40['name']))return;const _0x20ff49=_0x24913a['markerRange']['getWalker'](),_0xea1340=_0x24913a['markerRange']['start'],_0x32004a=_0x27ae0c['model']['schema'];let _0xc9bc97=null,_0x14a9fa=null,_0x22329d=!0x1,_0xa24b32=!0x1;for(const _0x5f3d52 of _0x20ff49){const _0x2d6752=_0x5f3d52['item'];_0x22329d=_0x22329d||_0x32004a['isContent'](_0x2d6752);const _0x3d262a=_0x3ae7bd['mapper']['toViewElement'](_0x2d6752);if(_0x3d262a&&_0x3d262a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5f3d52['type']&&(_0x32004a['isBlock'](_0x2d6752)&&!_0x32004a['isLimit'](_0x2d6752)&&(_0x2d6752['nextSibling']||_0xea1340['isAtEnd']?_0xc9bc97&&_0xc9bc97['parent']==_0x2d6752||(_0xc9bc97=_0x2d6752,_0x44a7ea(_0x5f3d52['previousPosition']),_0xa24b32=!0x0):_0x14a9fa=_0x14a9fa||_0x5f3d52['previousPosition']));}function _0x44a7ea(_0x32ad83){const {authorId:_0x5a9ebd}=_0x1bdfdf['_splitMarkerName'](_0x24913a['markerName']),_0x513c10=_0x3ae7bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b304e,'data-author-id':_0x5a9ebd}),_0x5043e1=_0x3ae7bd['mapper']['toViewPosition'](_0x32ad83);_0x41b68b&&_0x1bdfdf['activeMarkers']['includes'](_0x24913a['markerName'])&&_0x3ae7bd['writer']['addClass']('ck-suggestion-marker--active',_0x513c10),_0x3ae7bd['writer']['insert'](_0x5043e1,_0x513c10),_0x3ae7bd['mapper']['bindElementToMarker'](_0x513c10,_0x24913a['markerName']);}_0x22329d||_0xa24b32||!_0x14a9fa||_0x44a7ea(_0x14a9fa);};}class z extends _0x30188a{static get['requires'](){return[_0x3970fb];}['init'](){const _0x2c0c3a=this['editor'],_0x591867=_0x2c0c3a['plugins']['get']('TrackChangesEditing');_0x591867['enableCommand']('delete');const _0x46ad5c=_0x2c0c3a['commands']['get']('deleteForward');_0x591867['enableCommand']('deleteForward',(_0xa11037,_0x3d2749={})=>{const _0x3a428a=_0x2c0c3a['model']['createSelection'](_0x2c0c3a['model']['document']['selection']);_0x3a428a['isCollapsed']&&_0x2c0c3a['model']['modifySelection'](_0x3a428a,{'direction':'forward','unit':_0x3d2749['unit']});const _0x6f4295=_0x3a428a['getFirstRange'](),_0x45e29d=_0x5de9d6['fromRange'](_0x6f4295);let _0x11ca25;_0xa11037(_0x3d2749),_0x11ca25='$graveyard'==_0x45e29d['root']['rootName']?_0x2c0c3a['model']['createRange'](_0x6f4295['start']):_0x2c0c3a['model']['createRange'](_0x45e29d['start'],_0x45e29d['end']),_0x45e29d['detach'](),_0x2c0c3a['model']['enqueueChange'](_0x46ad5c['buffer']['batch'],_0x5b3794=>{_0x46ad5c['buffer']['lock'](),_0x5b3794['setSelection'](_0x5b3794['createRange'](_0x11ca25['end'])),_0x46ad5c['buffer']['unlock']();});}),_0x2c0c3a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2c0c3a,'merge'),{'priority':'high'}),_0x2c0c3a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x170389,_0x2eb1aa,_0x1135d4)=>{_0x1135d4['options']['showSuggestionHighlights']&&_e(_0x2c0c3a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x170389,_0x2eb1aa,_0x1135d4);},{'priority':'high'}),_0x2c0c3a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x205c4f,_0x19878d,_0x37e156)=>{const _0x33f31b=_0x37e156['mapper']['markerNameToElements'](_0x19878d['markerName']);if(_0x33f31b){for(const _0x2cb1b9 of _0x33f31b)_0x2cb1b9['is']('uiElement')&&(_0x37e156['mapper']['unbindElementFromMarkerName'](_0x2cb1b9,_0x19878d['markerName']),_0x37e156['writer']['remove'](_0x2cb1b9));}},{'priority':'high'});}}class K extends _0x30188a{['afterInit'](){const _0x2e3732=this['editor'];if(!_0x2e3732['plugins']['has']('ListEditing'))return;const _0x15c5be=_0x2e3732['locale'],_0xb4dc6a=_0x2e3732['plugins']['get']('TrackChangesEditing'),_0x55fe29=_0x2e3732['plugins']['has']('TodoListEditing'),_0x15ffcc=!!_0x2e3732['config']['get']('list.multiBlock');function _0x3f0cec(_0x163ad5){return{'type':'format','content':''+o(_0x15c5be,'*Set\x20format:*\x20%0',_0x163ad5)};}function _0x59476b(_0x1a7121){return{'type':'format','content':''+o(_0x15c5be,'*Remove\x20format:*\x20%0',_0x1a7121)};}_0xb4dc6a['enableDefaultAttributesIntegration']('numberedList'),_0xb4dc6a['enableDefaultAttributesIntegration']('bulletedList'),_0xb4dc6a['enableDefaultAttributesIntegration']('customNumberedList'),_0xb4dc6a['enableDefaultAttributesIntegration']('customBulletedList'),_0xb4dc6a['enableDefaultAttributesIntegration']('indentList'),_0xb4dc6a['enableDefaultAttributesIntegration']('outdentList'),_0xb4dc6a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xb4dc6a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xb4dc6a['registerBlockAttribute']('listItemId'),_0xb4dc6a['registerBlockAttribute']('listType'),_0xb4dc6a['registerBlockAttribute']('listIndent'),_0x15ffcc&&(_0xb4dc6a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xb4dc6a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x55fe29&&(_0xb4dc6a['enableDefaultAttributesIntegration']('todoList'),_0xb4dc6a['enableDefaultAttributesIntegration']('checkTodoList'),_0xb4dc6a['registerBlockAttribute']('todoListChecked'),_0xb4dc6a['descriptionFactory']['registerDescriptionCallback'](_0x59ec4f=>{const {data:_0x15b469}=_0x59ec4f;if(_0x15b469&&'todoListChecked'==_0x15b469['key'])return{'type':'format','content':_0x15b469['newValue']?o(_0x15c5be,'*Check\x20item*'):o(_0x15c5be,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x98d27e=>{if(_0x98d27e['batch']['isUndo'])return!0x1;let _0x3cf367=!0x1;const _0x742976=_0xb4dc6a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b9e2e=>'todoListChecked'===_0xb4dc6a['_getAttributeKey'](_0x2b9e2e));for(const _0x450efd of _0x742976){'todo'!=_0x450efd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xb4dc6a['_findSuggestions'](_0x450efd['getFirstRange'](),'attribute')['find'](_0x64ac9a=>'listType'===_0xb4dc6a['_getAttributeKey'](_0x64ac9a['suggestion']))||(_0x98d27e['removeMarker'](_0x450efd['getFirstMarker']()),_0x3cf367=!0x0));}return _0x3cf367;})),_0xb4dc6a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x15c5be,'FORMAT_INDENT'));const _0x38d29e={'type':'format','content':''};_0xb4dc6a['descriptionFactory']['registerDescriptionCallback'](_0x1e5307=>{const {data:_0x43d1d7}=_0x1e5307;if(!_0x43d1d7||'listType'!=_0x43d1d7['key'])return;let _0x3eaf0d=_0x1e5307['head'];for(;_0x3eaf0d;){if(_0x3eaf0d['data']&&(('listStyle'==_0x3eaf0d['data']['key']||'listMarkerStyle'==_0x3eaf0d['data']['key'])&&(_0x3eaf0d['data']['newValue']&&'default'!=_0x3eaf0d['data']['newValue']||'default'!=_0x3eaf0d['data']['oldValue']&&!_0x43d1d7['newValue'])||!_0x15ffcc&&_0x3eaf0d['data']['key']==m))return _0x38d29e;_0x3eaf0d=_0x3eaf0d['next'];}if(null==_0x43d1d7['newValue'])switch(_0x43d1d7['oldValue']){case'bulleted':return _0x59476b(o(_0x15c5be,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x59476b(o(_0x15c5be,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x59476b(o(_0x15c5be,'ELEMENT_TODO_LIST'));}switch(_0x43d1d7['newValue']){case'bulleted':return _0x3f0cec(o(_0x15c5be,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f0cec(o(_0x15c5be,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f0cec(o(_0x15c5be,'ELEMENT_TODO_LIST'));}}),_0xb4dc6a['descriptionFactory']['registerDescriptionCallback'](_0x3b301f=>{const {data:_0x2fbb9d}=_0x3b301f;if(_0x2fbb9d&&'listIndent'==_0x2fbb9d['key'])return null==_0x2fbb9d['newValue']||null==_0x2fbb9d['oldValue']&&0x0==_0x2fbb9d['newValue']?_0x38d29e:void 0x0;}),_0xb4dc6a['descriptionFactory']['registerDescriptionCallback'](_0x9b6bdc=>{if('attribute'!=_0x9b6bdc['type'])return;const {data:_0x1122e8}=_0x9b6bdc;if(!_0x1122e8||'listItemId'!=_0x1122e8['key'])return;const _0x21639d=Ee(_0x9b6bdc);return'newValue'==_0x21639d?{'type':'format','content':o(_0x15c5be,'*Merge:*\x20list\x20item')}:'oldValue'==_0x21639d?{'type':'format','content':o(_0x15c5be,'*Split:*\x20list\x20item')}:_0x38d29e;}),_0x2e3732['model']['document']['registerPostFixer'](_0x1478c7=>this['listItemIdFixer'](_0x1478c7)),_0x2e3732['model']['document']['registerPostFixer'](_0x4e1afd=>this['noTrackChangesFixer'](_0x4e1afd)),_0x2e3732['model']['document']['on']('change:data',(_0x464c52,_0x439189)=>{if(_0x439189['isUndo']||!_0x439189['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x587d95){if(_0x587d95['batch']['isUndo']||!_0x587d95['batch']['isLocal'])return!0x1;let _0x4ea394=!0x1;const _0x584312=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x589b67=>_0x589b67['data']&&'listItemId'==_0x589b67['data']['key'])['filter'](_0xc84e6c=>_0xc84e6c['data']['newValue']&&_0xc84e6c['data']['oldValue']);for(const _0x16c46f of _0x584312)Ee(_0x16c46f)||(_0x587d95['removeMarker'](_0x16c46f['getFirstMarker']()),_0x4ea394=!0x0);return _0x4ea394;}['noTrackChangesFixer'](_0x57664d){if(_0x57664d['batch']['isUndo']||!_0x57664d['batch']['isLocal'])return!0x1;const _0x4013cd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4013cd['trackChangesCommand']['value'])return!0x1;let _0x8b7bc7=!0x1;const _0x17ae20=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x282ff1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x435ca8=>'attribute'==_0x435ca8['type'])['filter'](_0x33e565=>_0x17ae20['includes'](_0x33e565['attributeKey']));if(0x0==_0x282ff1['length'])return _0x8b7bc7;for(const _0x431d9d of _0x282ff1){const _0x59c418=_0x4013cd['_findSuggestions'](_0x431d9d['range'],'attribute')['filter'](_0x20861d=>!_0x20861d['meta']['isNextTo'])['map'](_0x12a481=>_0x12a481['suggestion'])['filter'](_0x42eb0b=>{const _0xfa6b18=_0x4013cd['_getAttributeKey'](_0x42eb0b);return _0x17ae20['includes'](_0xfa6b18);});if(_0x59c418['length']){for(const _0x372461 of _0x59c418)_0x57664d['removeMarker'](_0x372461['getFirstMarker']());_0x8b7bc7=!0x0;}}return _0x8b7bc7;}['assureChains'](){const _0xa0875c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a3210=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2d9490;const _0x1d31be=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5431b6=>{if(_0x5431b6['data']['oldRange']||!_0x5431b6['data']['newRange'])return null;if(!_0x5431b6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x42e662}=_0xa0875c['_splitMarkerName'](_0x5431b6['name']);if(!_0xa0875c['hasSuggestion'](_0x42e662))return null;const _0x1dcc69=_0xa0875c['getSuggestion'](_0x42e662);return _0x4a3210['includes'](_0x1dcc69['data']['key']);})['map'](_0x2e69a2=>{const {id:_0x1ee36c}=_0xa0875c['_splitMarkerName'](_0x2e69a2['name']),_0x2a2532=_0xa0875c['getSuggestion'](_0x1ee36c);return _0x2d9490=_0x2a2532['attributes']['groupId'],_0x2a2532['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1d31be['size'])return;const _0x452426=_0xa0875c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40da48=>'attribute'==_0x40da48['type']&&_0x40da48['data']&&_0x4a3210['includes'](_0x40da48['data']['key'])&&_0x40da48['attributes']['groupId']!=_0x2d9490)['map'](_0x4cc02c=>({'listItem':_0x4cc02c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4cc02c['attributes']['groupId']})),_0x3c94c4=new Set();for(const {groupId:_0x77b42,listItem:_0x1aca3d}of _0x452426)_0x1d31be['has'](_0x1aca3d)&&_0x3c94c4['add'](_0x77b42);for(const _0x38c87d of _0xa0875c['getSuggestions']())_0x3c94c4['has'](_0x38c87d['attributes']['groupId'])&&_0x38c87d['setAttribute']('groupId',_0x2d9490);}['_supportLegacySuggestions'](){const _0x56576b=this['editor'],_0x5a2e64=_0x56576b['locale'],_0x2489e3=_0x56576b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2489e3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3ff36b,_0xe0534c){const _0x3b1ab4=[];for(let _0x5a25a6 of _0x3ff36b)_0x5a25a6['start']['nodeAfter']===_0x5a25a6['end']['parent']&&(_0x5a25a6=_0x56576b['model']['createRange'](_0x56576b['model']['createPositionAt'](_0x5a25a6['start']['nodeAfter'],0x0))),_0x3b1ab4['push'](_0x5a25a6);_0x56576b['model']['change'](_0x55d0a8=>{const _0x468885=_0x56576b['model']['document']['selection'],_0x50baac=Array['from'](_0x468885['getRanges']())['map'](_0xfce472=>_0x5de9d6['fromRange'](_0xfce472));_0x55d0a8['setSelection'](_0x3b1ab4),_0x56576b['commands']['get'](_0xe0534c['commandName'])['refresh'](),_0xe0534c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x56576b['execute'](_0xe0534c['commandName'],..._0xe0534c['commandParams']),_0x55d0a8['setSelection'](_0x50baac);for(const _0x897709 of _0x50baac)_0x897709['detach']();});}),_0x2489e3['descriptionFactory']['registerElementLabel'](function(_0x5620b8){const _0x4edafb=!_0x56576b['model']['schema']['isObject'](_0x5620b8),_0x3503c1=_0x5620b8['previousSibling'],_0x2d7ecf=_0x5620b8['nextSibling'],_0x59b386=_0x5620b8['getAttribute']('listItemId'),_0x3760b9=!_0x3503c1||_0x3503c1['getAttribute']('listItemId')!==_0x59b386,_0x108678=!_0x2d7ecf||_0x2d7ecf['getAttribute']('listItemId')!==_0x59b386;return _0x4edafb&&Boolean(_0x59b386)&&_0x3760b9&&_0x108678;},_0x12b514=>o(_0x5a2e64,'ELEMENT_LIST_ITEM',_0x12b514));}['_registerLegacyDescription'](){const _0x10378f=this['editor'],_0x127599=_0x10378f['locale'];function _0xb1e349(_0xd11242){const _0x5883df=_0x10378f['commands']['get']('bulletedList')['value'],_0x4c342e=_0x10378f['commands']['get']('numberedList')['value'];return'numberedList'===_0xd11242?_0x5883df:_0x4c342e;}_0x10378f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xa06583){if('formatBlock'!=_0xa06583['type'])return;const {data:_0x18de61}=_0xa06583;if(!_0x18de61)return;let _0x681a22,_0x3e79dc,_0x42395c,_0x20daea;switch(_0x18de61['commandName']){case'bulletedList':_0x42395c=_0x18de61['commandParams'][0x0]['forceValue'],_0x20daea=_0xb1e349(_0x18de61['commandName']),_0x681a22=_0x42395c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20daea&&_0x10378f['config']['get']('list.multiBlock')||(_0x681a22='*Change\x20to:*\x20%0'),_0x3e79dc={'type':'format','content':o(_0x127599,_0x681a22,o(_0x127599,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42395c=_0x18de61['commandParams'][0x0]['forceValue'],_0x20daea=_0xb1e349(_0x18de61['commandName']),_0x681a22=_0x42395c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20daea&&_0x10378f['config']['get']('list.multiBlock')||(_0x681a22='*Change\x20to:*\x20%0'),_0x3e79dc={'type':'format','content':o(_0x127599,_0x681a22,o(_0x127599,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x681a22='*Indent:*\x20%0',_0x3e79dc={'type':'format','content':o(_0x127599,_0x681a22,o(_0x127599,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x681a22=function(_0x1d4be1){const _0x2a089f=_0x1d4be1['getFirstRange']();let _0x1f29c9=_0x2a089f['start']['nodeAfter'];for(;_0x1f29c9&&_0x2a089f['containsItem'](_0x1f29c9);){if(_0x1f29c9['getAttribute']('listIndent')>0x0)return!0x1;_0x1f29c9=_0x1f29c9['nextSibling'];}return!0x0;}(_0xa06583)?o(_0x127599,'*Format:*\x20remove\x20from\x20%0',o(_0x127599,function(_0x572d47){return'ELEMENT_'+_0x572d47['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xa06583))):o(_0x127599,'*Outdent:*\x20%0',o(_0x127599,'ELEMENT_LIST_ITEM')),_0x3e79dc={'type':'format','content':_0x681a22};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x18de61['multipleBlocks']&&(_0x681a22='*Merge:*\x20%0',_0x3e79dc={'type':'deletion','content':o(_0x127599,_0x681a22,o(_0x127599,'ELEMENT_LIST_ITEM'))});}return _0x3e79dc;});}}function Ee(_0x1c8472){let _0x158ab9=_0x1c8472['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x158ab9;){const _0xa8e149=_0x158ab9['getAttribute']('listItemId');if(!_0xa8e149)return!0x1;if(_0xa8e149==_0x1c8472['data']['newValue'])return'newValue';if(_0xa8e149==_0x1c8472['data']['oldValue'])return'oldValue';_0x158ab9=_0x158ab9['previousSibling'];}return!0x1;}class pe extends _0x30188a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x131866=this['editor']['config']['get']('list.properties'),_0x7ee630=this['editor']['plugins']['get']('TrackChangesEditing');_0x131866['styles']&&(_0x7ee630['enableDefaultAttributesIntegration']('listStyle'),_0x7ee630['registerBlockAttribute']('listStyle')),_0x131866['reversed']&&(_0x7ee630['enableDefaultAttributesIntegration']('listReversed'),_0x7ee630['registerBlockAttribute']('listReversed')),_0x131866['startIndex']&&(_0x7ee630['enableDefaultAttributesIntegration']('listStart'),_0x7ee630['registerBlockAttribute']('listStart'));const _0x57a99f={'type':'format','content':''};_0x7ee630['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x198a69=this['editor']['locale'];_0x7ee630['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x198a69,'FORMAT_LIST_REVERSED')),_0x7ee630['descriptionFactory']['registerDescriptionCallback'](_0x539e0e=>{const {data:_0x204225}=_0x539e0e;if(_0x204225&&'listReversed'==_0x204225['key'])return null==_0x204225['newValue']||0x0==_0x204225['newValue']&&null==_0x204225['oldValue']?_0x57a99f:void 0x0;}),_0x7ee630['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x198a69,'FORMAT_LIST_START')),_0x7ee630['descriptionFactory']['registerDescriptionCallback'](_0x3c2fd5=>{const {data:_0x111676}=_0x3c2fd5;if(_0x111676&&'listStart'==_0x111676['key'])return null==_0x111676['newValue']||0x1==_0x111676['newValue']&&null==_0x111676['oldValue']?_0x57a99f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x152588=>{if(_0x152588['batch']['isUndo'])return!0x1;let _0x2cdad4=!0x1;const _0x2f19e2=_0x7ee630['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fb702=>{const _0x24d7ac=_0x7ee630['_getAttributeKey'](_0x1fb702);return'listStart'==_0x24d7ac||'listReversed'==_0x24d7ac;});for(const _0x475e of _0x2f19e2){const _0x11a31b=_0x475e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x11a31b||'customNumbered'==_0x11a31b)continue;_0x7ee630['_findSuggestions'](_0x475e['getFirstRange'](),'attribute')['find'](_0x596080=>'listType'==_0x7ee630['_getAttributeKey'](_0x596080['suggestion']))||(_0x152588['removeMarker'](_0x475e['getFirstMarker']()),_0x2cdad4=!0x0);}return _0x2cdad4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x47d9e3){const _0x481f96=this['editor']['locale'],{data:_0x3d4780}=_0x47d9e3,_0x5ce2fa={'type':'format','content':''};if(!_0x3d4780||'listStyle'!=_0x3d4780['key'])return;if(!_0x3d4780['oldValue'])return'default'==_0x3d4780['newValue']?_0x5ce2fa:{'type':'format','content':''+o(_0x481f96,'*Set\x20format:*\x20%0',o(_0x481f96,this['_getTranslationKeyForListStyle'](_0x3d4780['newValue'])))};if(!_0x3d4780['newValue']){if('default'==_0x3d4780['oldValue'])return _0x5ce2fa;let _0x16dd13=_0x47d9e3['head'];for(;_0x16dd13;){if(_0x16dd13['data']&&'listType'==_0x16dd13['data']['key']&&_0x16dd13['data']['newValue'])return _0x5ce2fa;_0x16dd13=_0x16dd13['next'];}return{'type':'format','content':''+o(_0x481f96,'*Remove\x20format:*\x20%0',o(_0x481f96,this['_getTranslationKeyForListStyle'](_0x3d4780['oldValue'])))};}if('default'!=_0x3d4780['newValue'])return{'type':'format','content':''+o(_0x481f96,'*Set\x20format:*\x20%0',o(_0x481f96,this['_getTranslationKeyForListStyle'](_0x3d4780['newValue'])))};let _0x2a8bab=_0x47d9e3['head'];for(;_0x2a8bab;){if(_0x2a8bab['data']&&'listType'==_0x2a8bab['data']['key']&&_0x2a8bab['data']['newValue']&&_0x2a8bab['data']['oldValue'])return _0x5ce2fa;_0x2a8bab=_0x2a8bab['next'];}return{'type':'format','content':o(_0x481f96,'*Set\x20format:*\x20%0',o(_0x481f96,'ELEMENT_'+_0x47d9e3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2c35c2=this['editor'],_0x10dbac=_0x2c35c2['locale'];_0x2c35c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28c072=>{if('formatBlock'!=_0x28c072['type'])return;const {data:_0x30f601}=_0x28c072;if(!_0x30f601)return;let _0x297d93,_0x49f598;switch(_0x30f601['commandName']){case'listStyle':_0x297d93='*Change\x20to:*\x20%0',_0x49f598={'type':'format','content':o(_0x10dbac,_0x297d93,o(_0x10dbac,this['_getTranslationKeyForListStyle'](_0x30f601['commandParams'][0x0]['type'])))};break;case'listReversed':_0x297d93=_0x30f601['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x49f598={'type':'format','content':o(_0x10dbac,_0x297d93)};break;case'listStart':_0x297d93='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x49f598={'type':'format','content':o(_0x10dbac,_0x297d93,_0x30f601['commandParams'][0x0]['startIndex'])};}return _0x49f598;});}['_getTranslationKeyForListStyle'](_0x46114b){return'ELEMENT_'+function(_0x46c01e){if(ye['includes'](_0x46c01e))return'bulleted';if(Se['includes'](_0x46c01e))return'numbered';return null;}(_0x46114b)['toUpperCase']()+'_LIST_'+_0x46114b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x30188a{static get['requires'](){return[_0x5a8fcb];}['init'](){const _0x2548f8=this['editor'],_0x2221b8=_0x2548f8['plugins']['get']('TrackChangesEditing'),_0x52a997=_0x2548f8['commands']['get']('enter');_0x2221b8['enableCommand']('enter',()=>{_0x2548f8['model']['change'](_0x2eeece=>{const _0xa3675a=_0x2548f8['model']['document']['selection'],_0x250f03=_0xa3675a['getFirstPosition'](),_0x236dd9=_0x5de9d6['fromRange'](_0xa3675a['getFirstRange']());if(_0x52a997['enterBlock'](_0x2eeece)){const _0x58afbc=_0x2548f8['model']['createPositionAt'](_0x250f03['parent']['nextSibling'],0x0),_0x10e596=_0x2eeece['createRange'](_0x250f03,_0x58afbc);_0x2221b8['markInsertion'](_0x10e596);}else _0x2eeece['setSelection'](_0x2eeece['createRange'](_0x236dd9['end']));_0x236dd9['detach'](),_0x52a997['fire']('afterExecute',{'writer':_0x2eeece});});}),_0x2548f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2548f8,'split'),{'priority':'high'}),_0x2548f8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2c610c,_0x39ecc8,_0x149c88)=>{const _0x107e24=_0x149c88['mapper']['markerNameToElements'](_0x39ecc8['markerName']);if(_0x107e24){for(const _0x44d93a of _0x107e24)_0x44d93a['hasClass']('ck-suggestion-marker-split')&&(_0x149c88['mapper']['unbindElementFromMarkerName'](_0x44d93a,_0x39ecc8['markerName']),_0x149c88['writer']['remove'](_0x44d93a));}},{'priority':'high'}),_0x2548f8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc02e5f,_0x275752,_0x4cbc6b)=>{_0x4cbc6b['options']['showSuggestionHighlights']&&_e(_0x2548f8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xc02e5f,_0x275752,_0x4cbc6b);},{'priority':'high'});}}class X extends _0x30188a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3c5b3d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c5b3d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3c5b3d['enableCommand']('findNext'),_0x3c5b3d['enableCommand']('findPrevious'),_0x3c5b3d['enableCommand']('replace'),_0x3c5b3d['enableCommand']('replaceAll');}['handleFindCommand'](_0x42aef1,_0x4bd376,_0x26cff9={}){const _0x50072f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x42aef1(_0x26a8c0=>{let _0x1aa1bd=('string'==typeof _0x4bd376?_0x50072f['findByTextCallback'](_0x4bd376,_0x26cff9):_0x4bd376)(_0x26a8c0);Array['isArray'](_0x1aa1bd)&&(_0x1aa1bd={'results':_0x1aa1bd,'searchText':'string'==typeof _0x4bd376?_0x4bd376:''});const _0x6770e6=_0x1aa1bd['results']['filter'](_0x4ab21a=>!0x1===this['_isInDeletionRange'](_0x4ab21a,_0x26a8c0['item']));return{..._0x1aa1bd,'results':_0x6770e6};},_0x26cff9);}['_isInDeletionRange'](_0x57a224,_0x5f0460){const _0x26a821=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f0460,_0x57a224['start']),this['editor']['model']['createPositionAt'](_0x5f0460,_0x57a224['end']));for(const _0x313882 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x26a821['getIntersection'](_0x313882['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x30188a{['afterInit'](){const _0x36c82c=this['editor']['locale'],_0xdf1c5a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x337853,commandName:_0x24ecc3}of ro)this['editor']['plugins']['has'](_0x337853)&&(_0xdf1c5a['enableDefaultAttributesIntegration'](_0x24ecc3),_0xdf1c5a['registerInlineAttribute'](_0x24ecc3));_0xdf1c5a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x36c82c,'FORMAT_FONT_SIZE')),_0xdf1c5a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x36c82c,'FORMAT_FONT_FAMILY')),_0xdf1c5a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x36c82c,'FORMAT_FONT_COLOR')),_0xdf1c5a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x36c82c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2266f7=this['editor'],_0x4cde49=_0x2266f7['locale'];_0x2266f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32427e=>{const _0x40ac71=_0x4cde49['t'];if('formatInline'!=_0x32427e['type'])return;const {data:_0x14199d}=_0x32427e;if(null!=_0x14199d){if('fontSize'==_0x14199d['commandName']){const _0x36a73c=_0x14199d['commandParams'][0x0]['value'];if(_0x36a73c){const _0x159206=_0x40ac71(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x562985=>_0x562985['model']==_0x36a73c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4cde49,'*Set\x20font\x20size:*\x20%0',_0x159206)};}return{'type':'format','content':o(_0x4cde49,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x14199d['commandName']){const _0x3fa757=_0x14199d['commandParams'][0x0]['value'];return _0x3fa757?{'type':'format','content':o(_0x4cde49,'*Set\x20font\x20family:*\x20%0',_0x3fa757)}:{'type':'format','content':o(_0x4cde49,'*Reset\x20font\x20family*')};}if('fontColor'==_0x14199d['commandName']){const _0x50d942=_0x14199d['commandParams'][0x0]['value'];if(_0x50d942){const _0x1bcc40=_0x1f9fdd(this['editor']['config']['get']('fontColor.colors'))['find'](_0x194f8f=>_0x194f8f['model']==_0x50d942);let _0x242964=_0x50d942,_0x87fee4='';return _0x1bcc40&&(_0x242964=_0x1bcc40['label'],_0x87fee4=_0x40ac71(_0x242964)['toLowerCase']()),{'type':'format','content':o(_0x4cde49,'*Set\x20font\x20color:*\x20%0',_0x87fee4)['trim'](),'color':{'value':_0x50d942,'title':_0x87fee4||_0x242964}};}return{'type':'format','content':o(_0x4cde49,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x14199d['commandName']){const _0x58bb28=_0x14199d['commandParams'][0x0]['value'];if(_0x58bb28){const _0x7e35b3=_0x1f9fdd(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3e54e8=>_0x3e54e8['model']==_0x58bb28);let _0x432895=_0x58bb28,_0x2f46f3='';return _0x7e35b3&&(_0x432895=_0x7e35b3['label'],_0x2f46f3=_0x40ac71(_0x432895)['toLowerCase']()),{'type':'format','content':o(_0x4cde49,'*Set\x20font\x20background\x20color:*\x20%0',_0x2f46f3)['trim'](),'color':{'value':_0x58bb28,'title':_0x2f46f3||_0x432895}};}return{'type':'format','content':o(_0x4cde49,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x30188a{['afterInit'](){const _0x4e7263=this['editor'],_0x156ced=_0x4e7263['plugins']['get']('TrackChangesEditing'),_0x543815=_0x4e7263['commands']['get']('copyFormat'),_0x55fae0=_0x4e7263['commands']['get']('pasteFormat');_0x543815&&_0x55fae0&&(_0x156ced['enableDefaultAttributesIntegration']('pasteFormat'),_0x156ced['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x34b941=this['editor'],_0x40215f=_0x34b941['locale'];_0x34b941['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58c3bb=>{if('formatBlock'!=_0x58c3bb['type']&&'formatInline'!=_0x58c3bb['type'])return;const {data:_0x4eb279}=_0x58c3bb;if(_0x4eb279&&'pasteFormat'===_0x4eb279['commandName']){const _0x1ac9c6=[],_0x1a0548=_0x4eb279['commandParams'][0x0];for(const [_0x2487e4,_0x2163c2]of Object['entries'](_0x1a0548))_0x1ac9c6['push'](so(_0x34b941,_0x2487e4,_0x2163c2));return _0x1ac9c6['length']?{'type':'format','content':o(_0x40215f,'*Set\x20format\x20to:*\x20%0',_0x1ac9c6['join'](',\x20'))}:{'type':'format','content':o(_0x40215f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3075a6,_0x306e8d,_0x59c7e4){const _0x32f256=_0x3075a6['locale']['t'],_0x5b0ed2=_0x306e8d['split'](/(?=[A-Z])/)['join']('\x20'),_0x94517d=_0x32f256(_0x5b0ed2['charAt'](0x0)['toUpperCase']()+_0x5b0ed2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x59c7e4)return _0x94517d;if('fontColor'===_0x306e8d||'fontBackgroundColor'===_0x306e8d){const _0x1d7465=_0x1f9fdd(_0x3075a6['config']['get']('fontColor.colors'))['find'](_0xbfaf63=>_0xbfaf63['model']==_0x59c7e4);return _0x94517d+'\x20('+(_0x1d7465?_0x32f256(_0x1d7465['label'])['toLowerCase']():_0x59c7e4)+')';}if('fontSize'===_0x306e8d&&isNaN(parseFloat(_0x59c7e4))){const _0x2693a3=_0x3075a6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3075a6['config']['get']('fontSize.options'))['find'](_0x37cbfd=>_0x37cbfd['model']==_0x59c7e4);return _0x94517d+'\x20('+(_0x2693a3?_0x32f256(_0x2693a3['title'])['toLowerCase']():_0x59c7e4)+')';}return _0x94517d+'\x20('+_0x59c7e4+')';}class tt extends _0x30188a{['_headingOptions'];['afterInit'](){const _0x1b119f=this['editor'];if(!_0x1b119f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1b119f['config']['get']('heading.options');const _0x39193d=_0x1b119f['locale'],_0x5a2cb3=_0x1b119f['plugins']['get']('TrackChangesEditing');_0x5a2cb3['enableDefaultAttributesIntegration']('heading');for(const _0x385c60 of this['_headingOptions'])'paragraph'!=_0x385c60['model']&&_0x5a2cb3['descriptionFactory']['registerElementLabel'](_0x385c60['model'],_0x6d3ec3=>{const _0x152259=this['_getHeadingLevel'](_0x385c60['model']);return null!==_0x152259?_0x2a59b2(_0x6d3ec3,_0x152259):_0x4ba52f(_0x6d3ec3,_0x385c60['title']);});function _0x2a59b2(_0x303cc5,_0x953e14){return o(_0x39193d,'ELEMENT_HEADING',[_0x303cc5,_0x953e14]);}function _0x4ba52f(_0x5ff8bb,_0x101456){return o(_0x39193d,'ELEMENT_HEADING_CUSTOM',[_0x5ff8bb,_0x101456]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11ec47=this['editor'],_0x16bc39=_0x11ec47['locale'];function _0x5cac24(_0x5de5aa,_0x5b18a1){return o(_0x16bc39,'ELEMENT_HEADING_CUSTOM',[_0x5de5aa,_0x5b18a1]);}_0x11ec47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47d6f6=>{if('formatBlock'!=_0x47d6f6['type'])return;const {data:_0x25501a}=_0x47d6f6;if(_0x25501a&&'heading'==_0x25501a['commandName']){const _0xa85c76=_0x25501a['commandParams'][0x0]['value'],_0x55134f=this['_getHeadingLevel'](_0xa85c76);if(null!==_0x55134f)return{'type':'format','content':o(_0x16bc39,'*Change\x20to:*\x20%0',(_0x1f64b1=0x1,_0x487737=_0x55134f,o(_0x16bc39,'ELEMENT_HEADING',[_0x1f64b1,_0x487737])))};const _0x4a8c26=this['_headingOptions']['find'](_0x5a77c6=>_0x5a77c6['model']===_0xa85c76)['title'];return{'type':'format','content':o(_0x16bc39,'*Change\x20to:*\x20%0',_0x5cac24(0x1,_0x4a8c26))};}var _0x1f64b1,_0x487737;});}['_getHeadingLevel'](_0x926a63){const _0x2a745e=_0x926a63['match'](/^heading(\d+)/);if(_0x2a745e)return _0x2a745e[0x1];const _0xeee2fe=this['_headingOptions']?.['find'](_0x35300f=>_0x35300f['model']==_0x926a63);if(_0xeee2fe&&_0xeee2fe['view']){const _0x262479=_0xeee2fe['view'],_0x338e4b=(_0x262479['name']??_0x262479)['match'](/^h(\d+)/);if(_0x338e4b)return _0x338e4b[0x1];}return null;}}class et extends _0x30188a{['afterInit'](){const _0x49ecd6=this['editor'];if(!_0x49ecd6['plugins']['has']('HighlightEditing'))return;const _0x1738d9=_0x49ecd6['plugins']['get']('TrackChangesEditing'),_0x40457b=_0x49ecd6['locale'];_0x1738d9['enableDefaultAttributesIntegration']('highlight'),_0x1738d9['registerInlineAttribute']('highlight'),_0x1738d9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x40457b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8d0d07=this['editor'],_0x56b851=_0x8d0d07['locale'];_0x8d0d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6e5e=>{if('formatInline'!=_0x2f6e5e['type'])return;const {data:_0x1e8d14}=_0x2f6e5e;if(_0x1e8d14&&'highlight'==_0x1e8d14['commandName']){const _0x2fa0a0=_0x56b851['t'],_0x1470f3=_0x1e8d14['commandParams'][0x0]['value'];if(_0x1470f3){const _0x68f5d2=_0x8d0d07['config']['get']('highlight.options')['find'](_0x4c126e=>_0x4c126e['model']==_0x1470f3),_0x3e5110=_0x2fa0a0(_0x68f5d2['title'])['toLowerCase']();return{'type':'format','content':o(_0x56b851,'*Set\x20highlight:*\x20%0',_0x3e5110),'color':{'value':_0x68f5d2['color'],'title':_0x68f5d2['title']}};}return{'type':'format','content':o(_0x56b851,'*Remove\x20highlight*',o(_0x56b851,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x30188a{['afterInit'](){const _0x177066=this['editor'];if(!_0x177066['plugins']['has']('HorizontalLineEditing'))return;_0x177066['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3dd212=_0x177066['plugins']['get']('TrackChangesEditing'),_0x3b938b=_0x177066['locale'];_0x3dd212['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3cb384=>o(_0x3b938b,'ELEMENT_HORIZONTAL_LINE',_0x3cb384)),_0x177066['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x26c4b7,{writer:_0x145e81,options:_0x5008c4})=>{if(!_0x5008c4['showSuggestionHighlights'])return null;const _0x50ec84=_0x145e81['createContainerElement']('div'),_0x2c0713=_0x145e81['createEmptyElement']('hr');return _0x145e81['addClass']('ck-horizontal-line',_0x50ec84),_0x145e81['insert'](_0x145e81['createPositionAt'](_0x50ec84,0x0),_0x2c0713),_0x50ec84;},'converterPriority':'high'});}}class st extends _0x30188a{['afterInit'](){const _0x1e1f01=this['editor'];if(!_0x1e1f01['plugins']['has']('HtmlEmbed'))return;const _0x101027=_0x1e1f01['plugins']['get']('TrackChangesEditing'),_0x7b49c6=_0x1e1f01['locale'];_0x101027['descriptionFactory']['registerElementLabel']('rawHtml',_0x494799=>o(_0x7b49c6,'ELEMENT_HTML_EMBED',_0x494799)),_0x101027['enableDefaultAttributesIntegration']('htmlEmbed'),_0x101027['registerBlockAttribute']('value'),_0x101027['descriptionFactory']['registerDescriptionCallback'](_0x35ecf3=>{if('attribute'!=_0x35ecf3['type'])return;const {data:_0x5e4e93}=_0x35ecf3;if(_0x5e4e93&&'value'==_0x5e4e93['key']&&_0x35ecf3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x12cb87=o(_0x7b49c6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x7b49c6,'*Change\x20%0\x20content*',_0x12cb87)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f0f4a=this['editor'],_0x5957be=_0x1f0f4a['locale'];_0x1f0f4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11a61f=>{if('formatBlock'!=_0x11a61f['type'])return;const {data:_0x7f78f6}=_0x11a61f;if(_0x7f78f6&&'htmlEmbed'==_0x7f78f6['commandName']){const _0x328a09=o(_0x5957be,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5957be,'*Change\x20%0\x20content*',_0x328a09)};}});}}class nt extends _0x30188a{['afterInit'](){const _0x11406a=this['editor'];if(!_0x11406a['plugins']['has']('ImageEditing'))return;const _0xbde2b0=_0x11406a['plugins']['get']('TrackChangesEditing'),_0x4352cf=_0x11406a['plugins']['get']('ImageUtils'),_0x186d65=_0x11406a['locale'];_0xbde2b0['enableCommand']('insertImage'),_0xbde2b0['descriptionFactory']['registerElementLabel']('imageBlock',_0x47a955=>o(_0x186d65,'ELEMENT_IMAGE',_0x47a955)),_0xbde2b0['descriptionFactory']['registerElementLabel']('imageInline',_0x2dced5=>o(_0x186d65,'ELEMENT_INLINE_IMAGE',_0x2dced5)),_0xbde2b0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x186d65,'ELEMENT_CAPTION')),_0x11406a['plugins']['has']('ImageUploadEditing')&&_0xbde2b0['enableCommand']('uploadImage'),_0x11406a['plugins']['has']('ImageBlockEditing')&&_0x11406a['plugins']['has']('ImageInlineEditing')&&(_0xbde2b0['enableCommand']('imageTypeInline',(_0x56b9dd,_0xbe4cbe)=>{const _0x585a74=_0x4352cf['getClosestSelectedImageElement'](_0x11406a['model']['document']['selection']);_0x11406a['model']['change'](()=>{_0xbde2b0['markBlockFormat'](_0x585a74,{'commandName':'imageTypeInline','commandParams':[_0xbe4cbe]},[],'convertBlockImageToInline');});}),_0xbde2b0['enableCommand']('imageTypeBlock',(_0x124334,_0x4492c3)=>{_0x11406a['model']['change'](_0x2d69e3=>{let _0x589af1=_0x4352cf['getClosestSelectedImageElement'](_0x11406a['model']['document']['selection']),_0x25e8e4=_0x2d69e3['createRangeOn'](_0x589af1);const _0x236961=_0x2b19a6['fromPosition'](_0x25e8e4['start'],'toPrevious'),_0x1863e4=_0x2b19a6['fromPosition'](_0x25e8e4['end'],'toNext');_0xbde2b0['forceDefaultExecution'](()=>_0x124334(_0x4492c3)),_0x589af1=_0x4352cf['getClosestSelectedImageElement'](_0x11406a['model']['document']['selection']),_0x25e8e4=_0x2d69e3['createRangeOn'](_0x589af1);const _0x29fe31=_0x2d69e3['createRange'](_0x236961,_0x1863e4);_0x236961['detach'](),_0x1863e4['detach'](),_0xbde2b0['markBlockFormat'](_0x589af1,{'commandName':'imageTypeInline','commandParams':[_0x4492c3]},[],'convertInlineImageToBlock'),_0x29fe31['start']['isBefore'](_0x25e8e4['start'])&&_0xbde2b0['markInsertion'](_0x2d69e3['createRange'](_0x29fe31['start'],_0x25e8e4['start']),'convertInlineImageToBlock'),_0x25e8e4['end']['isBefore'](_0x29fe31['end'])&&_0xbde2b0['markInsertion'](_0x2d69e3['createRange'](_0x25e8e4['end'],_0x29fe31['end']),'convertInlineImageToBlock');});}),_0xbde2b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xbde2b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xbde2b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xbde2b0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xbde2b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xbde2b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x457d80])=>{const _0x1e27ad=_0xbde2b0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xcb2daa=_0x457d80['start'],_0x895163=_0x457d80['end'];const _0x75716f=_0x11406a['model']['schema']['getNearestSelectionRange'](_0xcb2daa,'backward'),_0x4d4cec=_0x11406a['model']['schema']['getNearestSelectionRange'](_0x895163,'forward');_0x75716f['isCollapsed']&&(_0xcb2daa=_0x75716f['start']),_0x4d4cec['isCollapsed']&&(_0x895163=_0x4d4cec['end']),_0x1e27ad([_0x11406a['model']['createRange'](_0xcb2daa,_0x895163)]);}),_0xbde2b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5724f0),_0xbde2b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5724f0)),_0x11406a['plugins']['has']('ImageCaptionEditing')&&(_0xbde2b0['enableCommand']('toggleImageCaption',(_0x399c55,_0x3af4ee)=>{const _0x3f72c4=_0x11406a['plugins']['get']('ImageCaptionUtils');let _0x5041d4=_0x4352cf['getClosestSelectedImageElement'](_0x11406a['model']['document']['selection']),_0x171ceb=_0x3f72c4['getCaptionFromImageModelElement'](_0x5041d4);_0x11406a['model']['change'](()=>{if(_0x171ceb)return void _0xbde2b0['markDeletion'](_0x11406a['model']['createRangeOn'](_0x171ceb));const _0x32bd89=_0x4352cf['isBlockImage'](_0x5041d4);_0x399c55(_0x3af4ee),_0x5041d4=_0x4352cf['getClosestSelectedImageElement'](_0x11406a['model']['document']['selection']),_0x171ceb=_0x3f72c4['getCaptionFromImageModelElement'](_0x5041d4),_0xbde2b0['markInsertion'](_0x11406a['model']['createRangeOn'](_0x171ceb),_0x32bd89?null:'imageCaption');});}),_0xbde2b0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5724f0));const _0x331e0b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x24dfaa(_0x14a388,_0x46af12){const _0x2af4eb=_0x331e0b['findIndex'](({type:_0x49275d,subType:_0x1e77c7})=>_0x14a388['type']==_0x49275d&&_0x14a388['subType']==_0x1e77c7),_0x50f9e3=_0x331e0b['findIndex'](({type:_0x29ab83,subType:_0x353c39})=>_0x46af12['type']==_0x29ab83&&_0x46af12['subType']==_0x353c39);if(_0x2af4eb<0x0||_0x50f9e3<0x0)return!0x1;const _0x32b9e3=_0x14a388['getFirstRange'](),_0x179d2a=_0x46af12['getFirstRange']();if((0x0==_0x2af4eb||0x1==_0x2af4eb)&&0x2==_0x50f9e3&&_0x32b9e3['isIntersecting'](_0x179d2a))return!0x0;if(0x2==_0x2af4eb&&0x3==_0x50f9e3){const _0x30163e=_0xbde2b0['_findSuggestions'](_0x32b9e3,'insertion')['filter'](({suggestion:_0x2dbed5,meta:_0x4e66d})=>_0x4e66d['isOwn']&&'convertInlineImageToBlock'==_0x2dbed5['subType']);if(_0x30163e['length']>0x1&&_0x179d2a['end']['isEqual'](_0x32b9e3['start']))return!0x0;if(0x1==_0x30163e['length']&&(_0x32b9e3['start']['isEqual'](_0x179d2a['end'])||_0x32b9e3['end']['isEqual'](_0x179d2a['start'])))return!0x0;}if(0x3==_0x2af4eb&&0x3==_0x50f9e3&&_0x32b9e3['start']['isBefore'](_0x179d2a['start'])){const _0x2f01a3=_0x32b9e3['end']['nodeAfter'],_0x1e4485=_0x179d2a['start']['nodeBefore'];return _0x4352cf['isBlockImage'](_0x2f01a3)&&_0x2f01a3===_0x1e4485;}return!0x1;}function _0x5724f0(_0x46d0ef,_0x24babf){return _0x24dfaa(_0x46d0ef,_0x24babf)?[_0x46d0ef,_0x24babf]:_0x24dfaa(_0x24babf,_0x46d0ef)?[_0x24babf,_0x46d0ef]:null;}_0x11406a['plugins']['has']('ImageResize')&&(_0xbde2b0['enableDefaultAttributesIntegration']('resizeImage'),_0xbde2b0['registerBlockAttribute']('resizedWidth'),_0xbde2b0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x186d65,'FORMAT_IMAGE_SIZE'))),_0x11406a['plugins']['has']('ImageTextAlternativeEditing')&&(_0xbde2b0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xbde2b0['registerBlockAttribute']('alt')),_0xbde2b0['descriptionFactory']['registerDescriptionCallback'](_0x45f5a0=>{if(!!_0x331e0b['find'](({type:_0x543d41,subType:_0x53c8b8})=>_0x45f5a0['type']==_0x543d41&&_0x45f5a0['subType']==_0x53c8b8))return _0x45f5a0['previous']?{}:void 0x0;}),_0xbde2b0['descriptionFactory']['registerDescriptionCallback'](_0x3f5bcd=>{if('insertion'==_0x3f5bcd['type']||'deletion'==_0x3f5bcd['type']){const _0x249b07=_0x3f5bcd['getContainedElement']();if(_0x249b07&&_0x249b07['is']('element','caption'))return{'type':'insertion'==_0x3f5bcd['type']?'addObject':'removeObject','element':_0x249b07,'quantity':0x1};}}),_0xbde2b0['descriptionFactory']['registerDescriptionCallback'](_0x53feeb=>'formatBlock'==_0x53feeb['type']&&'convertInlineImageToBlock'==_0x53feeb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x53feeb['type']&&'convertBlockImageToInline'==_0x53feeb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xbde2b0['descriptionFactory']['registerDescriptionCallback'](_0x2aea01=>{if('attribute'!=_0x2aea01['type'])return;const {data:_0x190f0a}=_0x2aea01;if(!_0x190f0a||'alt'!=_0x190f0a['key'])return;const _0x237b42=_0x190f0a['newValue'];return _0x237b42?{'type':'format','content':o(_0x186d65,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x237b42+'\x22')}:{'type':'format','content':o(_0x186d65,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x336513=this['editor'],_0x215c6e=_0x336513['locale'];_0x336513['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ee442=>{if('formatBlock'!=_0x4ee442['type']&&'formatInline'!=_0x4ee442['type'])return;const {data:_0x5c2f4f}=_0x4ee442;if(_0x5c2f4f){if('imageTextAlternative'==_0x5c2f4f['commandName']){const _0x476e6a=_0x5c2f4f['commandParams'][0x0]['newValue'];return _0x476e6a?{'type':'format','content':o(_0x215c6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x476e6a+'\x22')}:{'type':'format','content':o(_0x215c6e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5c2f4f['commandName']){const _0x13cd05=_0x5c2f4f['commandParams'][0x0]['width'];return _0x13cd05?{'type':'format','content':o(_0x215c6e,'*Set\x20image\x20width:*\x20%0',_0x13cd05)}:{'type':'format','content':o(_0x215c6e,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x30188a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x55019e=this['editor']['locale'],_0x9c8d2e=this['editor']['plugins']['get']('TrackChangesEditing');_0x9c8d2e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x9c8d2e['registerBlockAttribute']('src'),_0x9c8d2e['descriptionFactory']['registerDescriptionCallback'](_0x59b888=>{if('attribute'!=_0x59b888['type'])return;const {data:_0x59db6}=_0x59b888;return _0x59db6&&'src'==_0x59db6['key']?_0x59db6['newValue']&&_0x59db6['oldValue']?{'type':'format','content':o(_0x55019e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc987b0=this['editor']['plugins']['get']('TrackChangesEditing');_0xc987b0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc987b0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc987b0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc987b0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa0f03b=this['editor'],_0x248c14=_0xa0f03b['locale'];_0xa0f03b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59a831=>{if('formatBlock'!=_0x59a831['type']&&'formatInline'!=_0x59a831['type'])return;const {data:_0x26065f}=_0x59a831;if(!_0x26065f||'replaceImageSource'!=_0x26065f['commandName'])return;return{'type':'format','content':o(_0x248c14,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x30188a{['afterInit'](){const _0x5608ef=this['editor'];if(!_0x5608ef['plugins']['has']('ImageStyleEditing'))return;const _0x101a13=_0x5608ef['plugins']['get']('TrackChangesEditing'),_0x445587=_0x5608ef['plugins']['get']('ImageUtils'),_0x46862b={};_0x101a13['enableCommand']('imageStyle',(_0x55525,_0x17b162)=>{const _0x1c130c=_0x5608ef['plugins']['get']('Users')['me'],_0x132223=_0x5608ef['commands']['get']('imageStyle');let _0x2f33fa=_0x445587['getClosestSelectedImageElement'](_0x5608ef['model']['document']['selection']),_0x457513=_0x5608ef['model']['createRangeOn'](_0x2f33fa),_0x3a6f41=_0x132223['value'];if(_0x3a6f41==_0x17b162['value'])return;const _0xa3b5a6={'commandName':'imageStyle','commandParams':[_0x17b162],'formatGroupId':_0xadcd2f()};_0x5608ef['model']['change'](()=>{if(_0x101a13['getSuggestions']()['filter'](_0x3e1dea=>_0x3e1dea['isInContent']&&_0x1c130c==_0x3e1dea['author']&&('formatBlock'==_0x3e1dea['type']||'formatInline'==_0x3e1dea['type'])&&('imageStylePreApply'==_0x3e1dea['subType']||'imageStylePostApply'==_0x3e1dea['subType'])&&_0x3e1dea['getFirstRange']()['isEqual'](_0x457513))['forEach'](_0x4679b0=>_0x101a13['discardSuggestion'](_0x4679b0['head'])),_0x2f33fa=_0x445587['getClosestSelectedImageElement'](_0x5608ef['model']['document']['selection']),_0x457513=_0x5608ef['model']['createRangeOn'](_0x2f33fa),_0x132223['refresh'](),_0x5608ef['commands']['get']('imageTypeInline')['refresh'](),_0x5608ef['commands']['get']('imageTypeBlock')['refresh'](),_0x3a6f41=_0x132223['value'],_0x3a6f41!=_0x17b162['value'])return _0x445587['isInlineImage'](_0x2f33fa)&&_0x132223['shouldConvertImageType'](_0x17b162['value'],_0x2f33fa)?(_0x55525({..._0x17b162,'setImageSizes':!0x1}),_0x2f33fa=_0x445587['getClosestSelectedImageElement'](_0x5608ef['model']['document']['selection']),void _0x101a13['markBlockFormat'](_0x2f33fa,{..._0xa3b5a6,'commandReversedParams':[{'value':_0x3a6f41||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x445587['isBlockImage'](_0x2f33fa)?_0x101a13['markBlockFormat'](_0x2f33fa,_0xa3b5a6,[],'imageStylePostApply'):_0x101a13['markInlineFormat'](_0x457513,_0xa3b5a6,'imageStylePostApply'));});});for(const _0x2de8c9 of _0x5608ef['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x46862b[_0x2de8c9['name']]=_0x2de8c9['title']['toLowerCase']();_0x101a13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x101a13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x101a13['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x101a13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x10e298])=>{_0x445587['setImageNaturalSizeAttributes'](_0x10e298['getContainedElement']());}),_0x101a13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xedf85a,_0x5bc4c6)=>{_0x101a13['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xedf85a,{'commandName':_0x5bc4c6['commandName'],'commandParams':_0x5bc4c6['commandReversedParams']});}),_0x101a13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x162def,_0x52f075){if(_0x1e0b32(_0x162def,_0x52f075))return[_0x162def,_0x52f075];if(_0x1e0b32(_0x52f075,_0x162def))return[_0x52f075,_0x162def];return null;});const _0xa5503f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1e0b32(_0x2ad061,_0xecd571){const _0x50f772=_0xa5503f['findIndex'](({type:_0x642f3,subType:_0x6ddb0c})=>_0x2ad061['type']==_0x642f3&&_0x2ad061['subType']==_0x6ddb0c),_0x27e8b0=_0xa5503f['findIndex'](({type:_0x52eb18,subType:_0x2d2f27})=>_0xecd571['type']==_0x52eb18&&_0xecd571['subType']==_0x2d2f27);if(_0x50f772<0x0||_0x27e8b0<0x0)return!0x1;const _0x249c52=_0x2ad061['getFirstRange'](),_0x47f5a2=_0xecd571['getFirstRange']();if((0x0==_0x50f772||0x1==_0x50f772)&&0x2==_0x27e8b0&&_0x249c52['isIntersecting'](_0x47f5a2))return!0x0;if(0x2==_0x50f772&&0x3==_0x27e8b0){const _0x3eb959=_0x101a13['_findSuggestions'](_0x249c52,'insertion')['filter'](({suggestion:_0x41b6c4,meta:_0x2975ad})=>_0x2975ad['isOwn']&&'convertInlineImageToBlock'==_0x41b6c4['subType']);if(_0x3eb959['length']>0x1&&_0x47f5a2['end']['isEqual'](_0x249c52['start']))return!0x0;if(0x1==_0x3eb959['length']&&(_0x249c52['start']['isEqual'](_0x47f5a2['end'])||_0x249c52['end']['isEqual'](_0x47f5a2['start'])))return!0x0;}if(0x3==_0x50f772&&0x3==_0x27e8b0&&_0x249c52['start']['isBefore'](_0x47f5a2['start'])){const _0x584679=_0x249c52['end']['nodeAfter'],_0x390991=_0x47f5a2['start']['nodeBefore'];return _0x445587['isBlockImage'](_0x584679)&&_0x584679===_0x390991;}return!0x1;}_0x5608ef['model']['document']['registerPostFixer'](()=>{let _0x277cbb=!0x1;const _0x3b3734=Array['from'](_0x5608ef['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3983e0,data:_0x4e45b5}of _0x3b3734){const {group:_0x628f56,type:_0x335a4b,subType:_0x276806,id:_0xa3eefd}=_0x101a13['_splitMarkerName'](_0x3983e0);if('suggestion'==_0x628f56&&_0x101a13['hasSuggestion'](_0xa3eefd)){if('formatBlock'==_0x335a4b&&('imageStylePreApply'==_0x276806||'imageStylePostApply'==_0x276806)){const _0xb2065b=_0x101a13['getSuggestion'](_0xa3eefd);if(_0x4e45b5['newRange']){const _0x39cf2b=_0xb2065b['getFirstRange']()['getContainedElement']();if(_0x445587['isBlockImage'](_0x39cf2b))continue;_0x101a13['discardSuggestion'](_0xb2065b),_0x277cbb=!0x0;}}if('insertion'==_0x335a4b&&'imageCaption'==_0x276806&&!_0x4e45b5['newRange']){const _0x1bb9cd=_0x101a13['getSuggestion'](_0xa3eefd);_0x1bb9cd['next']&&_0x1bb9cd['next']['isInContent']&&(_0x101a13['discardSuggestion'](_0x1bb9cd['next']),_0x277cbb=!0x0);}}}return _0x277cbb;}),this['_registerLegacyDescription'](_0x46862b);}['_registerLegacyDescription'](_0x10630b){const _0x2453cf=this['editor'],_0x2fbb13=_0x2453cf['locale'];_0x2453cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x325b89=>{if('formatBlock'!=_0x325b89['type']&&'formatInline'!=_0x325b89['type'])return;const {data:_0x3c2a28}=_0x325b89;if(!_0x3c2a28||'imageStyle'!=_0x3c2a28['commandName'])return;const _0x232fe6=_0x3c2a28['commandParams'][0x0]['value'];return _0x4ed8ae('side'===_0x232fe6?o(_0x2fbb13,'FORMAT_SIDE_IMAGE'):_0x10630b[_0x232fe6]||_0x232fe6);function _0x4ed8ae(_0xf9cb14){return{'type':'format','content':o(_0x2fbb13,'*Format:*\x20%0',_0xf9cb14)};}});}}class at extends _0x30188a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x487bf7){super(_0x487bf7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b07e3=this['editor'],_0x3ae461=_0x4b07e3['commands']['get']('importWord'),_0x32d330=_0x4b07e3['commands']['get']('trackChanges');_0x3ae461&&(_0x3ae461['on']('execute',(_0x1ce93f,[,_0x361d2c])=>{this['_trackChangesValueDuringImport']=_0x32d330['value'],_0x361d2c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3ae461,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3ae461,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x32d330['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b07e3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3778aa,_0x257128){const {suggestions:_0x4aba9b}=_0x257128,_0x2f4c5a=this['editor']['commands']['get']('trackChanges'),_0x1235e7=_0x2f4c5a['value'];this['_trackChangesValueDuringImport']!==_0x1235e7&&(_0x2f4c5a['execute'](),this['_trackChangesExecuted']=!0x0),_0x4aba9b&&_0x4aba9b['forEach'](({id:_0x2161ca,type:_0x49eb97,author:_0x4fb18b,created_at:_0xef4cec})=>{const _0x5d9cf6={'id':_0x2161ca,'type':_0x49eb97,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4fb18b,'createdAt':_0xef4cec?new Date(_0xef4cec):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5d9cf6);});}}class ct extends _0x30188a{['afterInit'](){const _0x30ee17=this['editor'],_0x5e9b20=_0x30ee17['plugins']['get']('TrackChangesEditing');if(_0x30ee17['plugins']['has']('IndentEditing')&&(_0x5e9b20['enableCommand']('indent'),_0x5e9b20['enableCommand']('outdent')),_0x30ee17['plugins']['has']('IndentBlock')){for(const _0x589be4 of['indentBlock','outdentBlock'])_0x5e9b20['enableDefaultAttributesIntegration'](_0x589be4);}const _0xc86dc9=_0x30ee17['locale'];_0x5e9b20['registerBlockAttribute']('blockIndent'),_0x5e9b20['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xc86dc9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb95fe2=this['editor'],_0x46a4c2=_0xb95fe2['locale'],_0x5c6352=_0xb95fe2['plugins']['get']('TrackChangesEditing');_0x5c6352['descriptionFactory']['registerDescriptionCallback'](_0x87852=>{if('formatBlock'!=_0x87852['type'])return;const {data:_0x1f915a}=_0x87852;if(!_0x1f915a)return;if('indentBlock'!=_0x1f915a['commandName']&&'outdentBlock'!=_0x1f915a['commandName'])return;const _0x2296d0=_0x87852['getItems']()[0x0],_0x444a72=_0x5c6352['descriptionFactory']['getItemLabel'](_0x2296d0);return'indentBlock'==_0x1f915a['commandName']?{'type':'format','content':o(_0x46a4c2,'*Indent:*\x20%0',_0x444a72)}:'outdentBlock'==_0x1f915a['commandName']?{'type':'format','content':o(_0x46a4c2,'*Outdent:*\x20%0',_0x444a72)}:void 0x0;});}}class ut extends _0x30188a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x30188a{['afterInit'](){const _0x486957=this['editor'];if(!_0x486957['plugins']['has']('LinkEditing'))return;const _0x58c0c3=_0x486957['plugins']['get']('TrackChangesEditing'),_0x157657=_0x486957['commands']['get']('link');_0x58c0c3['enableDefaultAttributesIntegration']('link'),_0x58c0c3['enableDefaultAttributesIntegration']('unlink'),_0x58c0c3['registerInlineAttribute']('linkHref');for(const _0x1d3ca9 of _0x157657['manualDecorators'])_0x58c0c3['registerInlineAttribute'](_0x1d3ca9['id']),_0x58c0c3['descriptionFactory']['registerAttributeLabel'](_0x1d3ca9['id'],'link\x20('+_0x1d3ca9['label']['toLowerCase']()+')');_0x58c0c3['descriptionFactory']['registerDescriptionCallback'](_0x3951b8=>{if('attribute'!=_0x3951b8['type'])return;const {data:_0x1493ac}=_0x3951b8;if(!_0x1493ac||'linkHref'!=_0x1493ac['key'])return;const _0x4e96b3=_0x1493ac['newValue'],_0x157cde=_0x486957['locale'];return{'type':'format','content':null==_0x4e96b3?o(_0x157cde,'*Remove\x20link*'):o(_0x157cde,'*Set\x20link:*\x20%0','\x22'+_0x4e96b3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x567fe8=this['editor'],_0x1edd0b=_0x567fe8['locale'];_0x567fe8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c344c=>{if('formatInline'!=_0x5c344c['type'])return;const {data:_0x2d9b1c}=_0x5c344c;if(_0x2d9b1c){if('link'==_0x2d9b1c['commandName']){const _0x483173=_0x2d9b1c['commandParams'][0x0];return{'type':'format','content':o(_0x1edd0b,'*Set\x20link:*\x20%0','\x22'+_0x483173+'\x22')};}return'unlink'==_0x2d9b1c['commandName']?{'type':'format','content':o(_0x1edd0b,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x30188a{['afterInit'](){const _0x26def1=this['editor'],_0x39103b=_0x26def1['locale'];if(!_0x26def1['plugins']['has']('LegacyListEditing'))return;const _0x27e84d=_0x26def1['plugins']['get']('TrackChangesEditing'),_0xee036d=_0x26def1['plugins']['has']('LegacyTodoListEditing');function _0x1956a1(_0x4f484b){return()=>{const _0x122d5c=_0x26def1['model']['document']['selection'],_0x5a68c1=_0x26def1['commands']['get'](_0x4f484b);if(_0x5a68c1['value'])return void _0x26def1['execute']('paragraph',{});const _0x8ef7d8=_0x4f484b['slice'](0x0,-0x4),_0x1eb922=function(_0x2f16a3,_0x2e08e7,_0x2b8dc7){let _0x474c4a=Array['from'](_0x2f16a3)['filter'](_0x2c6896=>function(_0x1d1cfd,_0x907cf4){return _0x907cf4['checkChild'](_0x1d1cfd['parent'],'listItem')&&!_0x907cf4['isObject'](_0x1d1cfd);}(_0x2c6896,_0x2b8dc7));_0x474c4a=_0x474c4a['filter'](_0x4d2a2d=>!_0x4d2a2d['is']('element','listItem')||_0x4d2a2d['getAttribute']('listType')!=_0x2e08e7);const _0x3b866e=new Set();for(const _0x226f06 of _0x474c4a)_0x226f06['is']('element','listItem')?_0x3b866e['add'](fe(_0x226f06)):_0x3b866e['add'](_0x226f06);return Array['from'](_0x3b866e);}(_0x122d5c['getSelectedBlocks'](),_0x8ef7d8,_0x26def1['model']['schema']);_0x26def1['model']['change'](()=>{for(const _0x22edd7 of _0x1eb922)_0x27e84d['markBlockFormat'](_0x22edd7,{'commandName':_0x4f484b,'commandParams':[{'forceValue':!_0x5a68c1['value']}],'formatGroupId':'blockName'},ue(_0x22edd7));});};}function _0x3d6501(_0x4c2c8e){return()=>{const _0x34fac5=function(_0x3f9abd){let _0x4d9d65=Array['from'](_0x3f9abd);const _0x4ad93f=_0x4d9d65['findIndex'](_0x57a254=>'listItem'!=_0x57a254['name']);return _0x4ad93f>-0x1&&(_0x4d9d65=_0x4d9d65['slice'](0x0,_0x4ad93f)),_0x4d9d65;}(_0x26def1['model']['document']['selection']['getSelectedBlocks']()),_0x4bf990=_0x26def1['model']['createRange'](_0x26def1['model']['createPositionAt'](_0x34fac5[0x0],'before'),_0x26def1['model']['createPositionAt'](_0x34fac5[_0x34fac5['length']-0x1],'end'));_0x26def1['model']['change'](()=>{_0x27e84d['markBlockFormat'](_0x4bf990,{'commandName':_0x4c2c8e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x39bdb5){const _0x1f11b2=new Set();for(const _0x2d9378 of _0x39bdb5){let _0x30964c=_0x2d9378['nextSibling'];for(;_0x30964c&&_0x30964c['getAttribute']('listIndent')>_0x2d9378['getAttribute']('listIndent');)_0x1f11b2['add'](_0x30964c),_0x30964c=_0x30964c['nextSibling'];}return Array['from'](_0x1f11b2);}(_0x34fac5));});};}_0x27e84d['enableCommand']('numberedList',_0x1956a1('numberedList')),_0x27e84d['enableCommand']('bulletedList',_0x1956a1('bulletedList')),_0xee036d&&_0x27e84d['enableCommand']('todoList',_0x1956a1('todoList')),_0x27e84d['enableCommand']('indentList',_0x3d6501('indentList')),_0x27e84d['enableCommand']('outdentList',_0x3d6501('outdentList')),_0xee036d&&_0x27e84d['enableCommand']('checkTodoList',()=>{const _0x1a4079=_0x26def1['commands']['get']('checkTodoList'),_0x45cead=Array['from'](_0x1a4079['_selectedElements']);_0x45cead['filter'](_0x4e471f=>_0x4e471f['getAttribute']('todoListChecked')!=_0x1a4079['value']),_0x26def1['model']['change'](()=>{for(const _0x47d25e of _0x45cead)_0x27e84d['markBlockFormat'](_0x47d25e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1a4079['value']}]});});}),_0x27e84d['descriptionFactory']['registerElementLabel']('listItem',_0x3fcec0=>o(_0x39103b,'ELEMENT_LIST_ITEM',_0x3fcec0)),_0x27e84d['descriptionFactory']['registerDescriptionCallback'](_0x241d3c=>{if('formatBlock'!=_0x241d3c['type']&&'formatInline'!=_0x241d3c['type'])return;const {data:_0x24a417}=_0x241d3c;if(_0x24a417){if('numberedList'==_0x24a417['commandName']||'bulletedList'==_0x24a417['commandName']||'todoList'==_0x24a417['commandName'])switch(_0x24a417['commandName']['replace']('List','')){case'bulleted':return _0x24e60b(o(_0x39103b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24e60b(o(_0x39103b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24e60b(o(_0x39103b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x24a417['commandName'])return{'type':'format','content':o(_0x39103b,'*Indent:*\x20%0',o(_0x39103b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x24a417['commandName'])return{'type':'format','content':o(_0x39103b,'*Outdent:*\x20%0',o(_0x39103b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x24a417['commandName'])return _0x24a417['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39103b,'*Check\x20item*')}:{'type':'format','content':o(_0x39103b,'*Uncheck\x20item*')};}function _0x24e60b(_0x435bc8){return{'type':'format','content':o(_0x39103b,'*Change\x20to:*\x20%0',_0x435bc8)};}});}}function fe(_0x516c60){const _0x7efff9=_0x516c60['getAttribute']('listIndent');if(0x0==_0x7efff9)return _0x516c60;let _0x3a3924=_0x516c60;for(;_0x516c60['previousSibling']&&_0x516c60['previousSibling']['is']('element','listItem');){const _0x107842=_0x516c60['previousSibling']['getAttribute']('listIndent');if(_0x107842==_0x7efff9)_0x3a3924=_0x516c60['previousSibling'];else{if(_0x107842<_0x7efff9)break;}_0x516c60=_0x516c60['previousSibling'];}return _0x3a3924;}function ue(_0x257067){const _0x350183=[];if(_0x257067['is']('element','listItem')&&_0x257067['getAttribute']('listIndent')>0x0){let _0x335e48=_0x257067['nextSibling'];for(;_0x335e48&&'listItem'==_0x335e48['name']&&_0x335e48['getAttribute']('listIndent')==_0x257067['getAttribute']('listIndent');)_0x350183['push'](_0x335e48),_0x335e48=_0x335e48['nextSibling'];}return _0x350183;}class W extends _0x30188a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2a07d3=this['editor']['config']['get']('list.properties'),_0x105689=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a07d3['styles']&&_0x105689['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2a07d3['reversed']&&_0x105689['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2a07d3['startIndex']&&_0x105689['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x105689['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x7a1d90,_0x5c1e29={}){const _0x5aa02c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e0e29=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5aa02c['markMultiRangeBlockFormat'](_0x1e0e29,{'commandName':'listStyle','commandParams':[{'type':_0x5c1e29['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1bfba3,_0x3b06e8={}){const _0x3e2fe2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1470bf=this['_getSuggestionBlocks'](_0x513c8f=>_0x513c8f['is']('element','listItem')&&'numbered'===_0x513c8f['getAttribute']('listType'));if(_0x1470bf['length']<0x1)return;const _0x265bf7=_0x1470bf['map'](_0x2eea6a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2eea6a,'before'),this['editor']['model']['createPositionAt'](_0x2eea6a,0x0)));this['editor']['model']['change'](()=>{_0x3e2fe2['markMultiRangeBlockFormat'](_0x265bf7,{'commandName':'listReversed','commandParams':[{'reversed':_0x3b06e8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x273831,_0x3231de={}){const _0x5019e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255db3=this['_getSuggestionBlocks'](_0x1c7f2a=>_0x1c7f2a['is']('element','listItem')&&'numbered'===_0x1c7f2a['getAttribute']('listType'));if(_0x255db3['length']<0x1)return;const _0xec698d=_0x255db3['map'](_0x1f053a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f053a,'before'),this['editor']['model']['createPositionAt'](_0x1f053a,0x0)));this['editor']['model']['change'](()=>{_0x5019e1['markMultiRangeBlockFormat'](_0xec698d,{'commandName':'listStart','commandParams':[{'startIndex':_0x3231de['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1064b7){if('formatBlock'!=_0x1064b7['type']&&'formatInline'!=_0x1064b7['type'])return;const _0x29ef08=this['editor']['locale'],{data:_0x433767}=_0x1064b7;if(!_0x433767)return;let _0x10d12d,_0x1ae53b;switch(_0x433767['commandName']){case'listStyle':_0x10d12d='*Change\x20to:*\x20%0',_0x1ae53b={'type':'format','content':o(_0x29ef08,_0x10d12d,o(_0x29ef08,this['_getTranslationKeyForListStyle'](_0x433767['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10d12d=_0x433767['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ae53b={'type':'format','content':o(_0x29ef08,_0x10d12d)};break;case'listStart':_0x10d12d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ae53b={'type':'format','content':o(_0x29ef08,_0x10d12d,_0x433767['commandParams'][0x0]['startIndex'])};}return _0x1ae53b;}['_getSuggestionBlocksForListStyle'](){const _0x198c66=this['editor']['plugins']['get']('LegacyListUtils');let _0x151ba0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x151ba0[0x0]?.['is']('element','listItem')&&_0x151ba0['unshift'](..._0x198c66['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x151ba0[_0x151ba0['length']-0x1]?.['is']('element','listItem')&&_0x151ba0['push'](..._0x198c66['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x151ba0=[...new Set(_0x151ba0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x151ba0=_0x151ba0['filter'](_0x5f35f2=>_0x5f35f2['is']('element','listItem'))),_0x151ba0;}['_getSuggestionBlocks'](_0x1462c8){const _0xedafd2=this['editor']['plugins']['get']('LegacyListUtils');let _0x2377ea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1462c8)['map'](_0x53e73d=>{const _0xb571f7=this['editor']['model']['createPositionAt'](_0x53e73d,0x0);return[..._0xedafd2['getSiblingNodes'](_0xb571f7,'backward'),..._0xedafd2['getSiblingNodes'](_0xb571f7,'forward')];})['flat']();return _0x2377ea=[...new Set(_0x2377ea)],_0x2377ea;}['_getTranslationKeyForListStyle'](_0x4e38b7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4e38b7)||'default')['toUpperCase']()+'_LIST_'+_0x4e38b7['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x30188a{['afterInit'](){const _0x56f652=this['editor'];if(!_0x56f652['plugins']['has']('MediaEmbedEditing'))return;const _0x5b4187=_0x56f652['plugins']['get']('TrackChangesEditing'),_0x2c56bb=_0x56f652['locale'];_0x5b4187['enableCommand']('mediaEmbed'),_0x5b4187['descriptionFactory']['registerElementLabel']('media',_0x23301=>o(_0x2c56bb,'ELEMENT_MEDIA',_0x23301)),_0x56f652['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4db1f2,{writer:_0x4f5939,options:_0xa0f3f0})=>{if(_0xa0f3f0['showSuggestionHighlights'])return _0x4f5939['createEmptyElement']('div');},'converterPriority':'high'}),_0x56f652['data']['downcastDispatcher']['on']('attribute:url:media',(_0x890265,_0x584165,_0x448e23)=>{_0x448e23['options']['showSuggestionHighlights']&&_0x890265['stop']();},{'priority':'high'});}}class mt extends _0x30188a{['afterInit'](){const _0x3681d1=this['editor'];_0x3681d1['plugins']['has']('MentionEditing')&&_0x3681d1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x30188a{['afterInit'](){const _0x5b329d=this['editor'];if(!_0x5b329d['plugins']['has']('MergeFieldsEditing'))return;_0x5b329d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5b329d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x3c5d5c=_0x5b329d['plugins']['get']('TrackChangesEditing'),_0x137c97=_0x5b329d['locale'];_0x3c5d5c['descriptionFactory']['registerElementLabel']('mergeField',_0x426410=>o(_0x137c97,'ELEMENT_MERGE_FIELD',_0x426410)),_0x3c5d5c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15416f=>o(_0x137c97,'ELEMENT_MERGE_FIELD',_0x15416f)),_0x3c5d5c['descriptionFactory']['registerDescriptionCallback'](_0x141379=>{if('insertion'!=_0x141379['type']&&'deletion'!=_0x141379['type'])return;const _0x292e51=_0x141379['getContainedElement']();if(null==_0x292e51)return;if(!_0x292e51['is']('element','mergeField')&&!_0x292e51['is']('element','mergeFieldBlock'))return;const _0x1fd642=_0x5b329d['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x292e51['getAttribute']('id'));return'insertion'==_0x141379['type']?{'type':'insertion','content':o(_0x137c97,'*Insert:*\x20%0','\x22'+_0x1fd642+'\x22\x20'+o(_0x137c97,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x137c97,'*Remove:*\x20%0','\x22'+_0x1fd642+'\x22\x20'+o(_0x137c97,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x30188a{['afterInit'](){const _0x7af35e=this['editor'],_0x48fcac=_0x7af35e['plugins']['get']('TrackChangesEditing');_0x7af35e['plugins']['has']('MultiLevelList')&&(_0x48fcac['enableDefaultAttributesIntegration']('multiLevelList'),_0x48fcac['registerBlockAttribute']('listMarkerStyle'),_0x48fcac['descriptionFactory']['registerDescriptionCallback'](_0x3d2470=>this['handleDescriptions'](_0x3d2470)));}['handleDescriptions'](_0x44d67d){const _0x4f0f19=this['editor']['locale'],{data:_0x4cb859}=_0x44d67d,_0x2205db={'type':'format','content':''};if(_0x4cb859&&'listMarkerStyle'==_0x4cb859['key']){if(!_0x4cb859['oldValue'])return{'type':'format','content':o(_0x4f0f19,'*Set\x20format:*\x20%0',o(_0x4f0f19,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4cb859['newValue']+')'};if(!_0x4cb859['newValue']){let _0x43ec46=_0x44d67d['head'];for(;_0x43ec46;){if(_0x43ec46['data']&&'listType'==_0x43ec46['data']['key']&&_0x43ec46['data']['newValue'])return _0x2205db;_0x43ec46=_0x43ec46['next'];}return{'type':'format','content':o(_0x4f0f19,'*Remove\x20format:*\x20%0',o(_0x4f0f19,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4cb859['oldValue']+')'};}}}}class kt extends _0x30188a{['afterInit'](){const _0x266763=this['editor'];if(!_0x266763['plugins']['has']('PageBreakEditing'))return;_0x266763['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x17054f=_0x266763['plugins']['get']('TrackChangesEditing'),_0x331b10=_0x266763['locale'];_0x17054f['descriptionFactory']['registerElementLabel']('pageBreak',_0x17e9b0=>o(_0x331b10,'ELEMENT_PAGE_BREAK',_0x17e9b0));}}class bt extends _0x30188a{['afterInit'](){const _0xca6087=this['editor'];if(!_0xca6087['plugins']['has']('Paragraph'))return;const _0x381866=_0xca6087['locale'],_0x1c58d5=_0xca6087['plugins']['get']('TrackChangesEditing');_0x1c58d5['descriptionFactory']['registerElementLabel']('paragraph',_0x525b8a=>o(_0x381866,'ELEMENT_PARAGRAPH',_0x525b8a)),_0x1c58d5['enableDefaultAttributesIntegration']('paragraph'),_0x1c58d5['enableCommand']('insertParagraph'),_0xca6087['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xca6087),{'priority':'highest'}),_0xca6087['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x414f33,_0x523e61,_0x270ed6)=>{_0x270ed6['options']['showSuggestionHighlights']&&nr(_0xca6087,{'showActiveMarker':!0x1})(_0x414f33,_0x523e61,_0x270ed6);},{'priority':'highest'});const _0x52ddf8=_0x1c58d5['descriptionFactory'];_0x52ddf8['registerDescriptionCallback'](_0x151cbe=>{if('insertion'!==_0x151cbe['type'])return;const {start:_0x1a40cd,end:_0x1389b3}=_0x151cbe['getFirstRange']();if(!_0x1a40cd['isTouching'](_0x1389b3)||!_0x1a40cd['nodeAfter'])return;const _0x20f0a7=_0xca6087['model']['schema'],_0x14f311=_0x1a40cd['nodeAfter'];return _0x20f0a7['isBlock'](_0x14f311)&&!_0x20f0a7['isLimit'](_0x14f311)&&_0x20f0a7['checkChild'](_0x14f311,'$text')?{'type':'insertion','content':o(_0x381866,'*Insert:*\x20%0',_0x52ddf8['getItemLabel'](_0x14f311,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x193970=this['editor'],_0x4f7ba4=_0x193970['locale'];_0x193970['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5340d7=>{if('formatBlock'!=_0x5340d7['type'])return;const {data:_0x38d81a}=_0x5340d7;return _0x38d81a&&'paragraph'==_0x38d81a['commandName']?{'type':'format','content':o(_0x4f7ba4,'*Change\x20to:*\x20%0',o(_0x4f7ba4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x21843a,{showActiveMarker:_0x4e6ef7=!0x0}={}){return(_0x2c15e8,_0x26dc18,_0x477484)=>{const _0x5edccb=_0x21843a['plugins']['get']('TrackChangesEditing'),_0x58deaf=_0x26dc18['markerRange']['start'],_0xdfee1b=_0x26dc18['markerRange']['end'],_0x134948=_0x21843a['model']['schema'];if(!_0x58deaf['isTouching'](_0xdfee1b)||!_0x58deaf['nodeAfter'])return;const _0xd0e580=_0x58deaf['nodeAfter'];if(_0x134948['isBlock'](_0xd0e580)&&!_0x134948['isLimit'](_0xd0e580)&&_0x134948['checkChild'](_0xd0e580,'$text')){if(!_0x477484['consumable']['consume'](_0x26dc18['markerRange'],_0x2c15e8['name']))return;const {authorId:_0x51bb60}=_0x5edccb['_splitMarkerName'](_0x26dc18['markerName']),_0x1066a9=_0x477484['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x51bb60}),_0x1ffb34=_0x477484['mapper']['toViewPosition'](_0xdfee1b);_0x4e6ef7&&_0x5edccb['activeMarkers']['includes'](_0x26dc18['markerName'])&&_0x477484['writer']['addClass']('ck-suggestion-marker--active',_0x1066a9),_0x477484['writer']['insert'](_0x1ffb34,_0x1066a9),_0x477484['mapper']['bindElementToMarker'](_0x1066a9,_0x26dc18['markerName']);}};}class wt extends _0x30188a{['afterInit'](){const _0x123c7b=this['editor'];if(!_0x123c7b['plugins']['has']('RemoveFormatEditing'))return;_0x123c7b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5113f1=this['editor'];_0x5113f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x720322=>{if('formatBlock'!=_0x720322['type']&&'formatInline'!=_0x720322['type'])return;const {data:_0x5e5826}=_0x720322;return _0x5e5826&&'removeFormat'==_0x5e5826['commandName']?{'type':'format','content':o(_0x5113f1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x30188a{['afterInit'](){const _0x38f8f9=this['editor'];if(!_0x38f8f9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x38760e=_0x38f8f9['plugins']['get']('TrackChangesEditing');_0x38760e['enableCommand']('goToPreviousRestrictedEditingException'),_0x38760e['enableCommand']('goToNextRestrictedEditingException');const _0x45191d=_0x38f8f9['plugins']['get']('RestrictedEditingModeEditing');_0x45191d['enableCommand']('trackChanges'),_0x45191d['enableCommand']('acceptSuggestion'),_0x45191d['enableCommand']('discardSuggestion'),_0x45191d['enableCommand']('acceptAllSuggestions'),_0x45191d['enableCommand']('discardAllSuggestions'),_0x45191d['enableCommand']('acceptSelectedSuggestions'),_0x45191d['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x30188a{static get['requires'](){return[_0x1f4832];}['init'](){const _0x4c13b0=this['editor'],_0x5ec4fa=_0x4c13b0['plugins']['get']('TrackChangesEditing');_0x5ec4fa['enableCommand']('shiftEnter'),_0x4c13b0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4c13b0),{'priority':'high'}),_0x4c13b0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4c13b0),{'priority':'high'}),_0x4c13b0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a219e,_0x1fd204,_0x19d441)=>{_0x19d441['options']['showSuggestionHighlights']&&ge(_0x4c13b0,{'showActiveMarker':!0x1})(_0x2a219e,_0x1fd204,_0x19d441);}),_0x5ec4fa['descriptionFactory']['registerElementLabel']('softBreak',_0x50c43d=>o(_0x4c13b0['locale'],'ELEMENT_LINE_BREAK',_0x50c43d));}}function ge(_0x183497,{showActiveMarker:_0x57a98f=!0x0}={}){return(_0x3ccc28,_0x505b12,_0x171505)=>{const _0x181631=_0x183497['plugins']['get']('TrackChangesEditing');if(!_0x171505['consumable']['test'](_0x505b12['markerRange'],_0x3ccc28['name']))return;const _0xc1137b=_0x183497['model'];for(const _0x1bb49c of _0x505b12['markerRange']['getItems']()){if(!_0x1bb49c['is']('element','softBreak'))continue;const _0x44223e='deletion'==_0x505b12['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5adef0}=_0x181631['_splitMarkerName'](_0x505b12['markerName']),_0x47eac7=_0x171505['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x44223e,'data-author-id':_0x5adef0}),_0x530ca8=_0x171505['mapper']['toViewPosition'](_0xc1137b['createPositionBefore'](_0x1bb49c));_0x57a98f&&_0x181631['activeMarkers']['includes'](_0x505b12['markerName'])&&_0x171505['writer']['addClass']('ck-suggestion-marker--active',_0x47eac7),_0x171505['writer']['insert'](_0x530ca8,_0x47eac7),_0x171505['mapper']['bindElementToMarker'](_0x47eac7,_0x505b12['markerName']);}};}class St extends _0x30188a{['afterInit'](){const _0x5afda7=this['editor'],_0x52abb4=_0x5afda7['model'],_0x19bf7b=_0x5afda7['locale'];if(!_0x5afda7['plugins']['has']('StandardEditingModeEditing'))return;const _0x482838=_0x5afda7['plugins']['get']('TrackChangesEditing'),_0x347957='restrictedEditingException',_0x31bbfe=_0x5afda7['commands']['get'](_0x347957);_0x482838['enableCommand'](_0x347957,(_0x4f3828,_0x1edb5a={})=>{const _0x10a84f=_0x52abb4['document']['selection'];if(_0x10a84f['isCollapsed'])return void _0x4f3828(_0x1edb5a);const _0x3f5803=void 0x0!==_0x1edb5a['forceValue']?_0x1edb5a['forceValue']:!_0x31bbfe['value'];_0x52abb4['change'](()=>{const _0x273fcc=Array['from'](_0x10a84f['getRanges']());for(const _0x15075c of _0x273fcc){const _0x24d648=_0x3f5803?[_0x15075c]:io(_0x347957,_0x15075c,_0x52abb4);for(const _0x4aff73 of _0x24d648)_0x482838['markInlineFormat'](_0x4aff73,{'commandName':_0x347957,'commandParams':[{'forceValue':_0x3f5803}]});}});}),_0x482838['descriptionFactory']['registerDescriptionCallback'](_0xe0658e=>{if('formatBlock'!=_0xe0658e['type']&&'formatInline'!=_0xe0658e['type'])return;const {data:_0x3ee22b}=_0xe0658e;return _0x3ee22b&&_0x3ee22b['commandName']==_0x347957?_0x3ee22b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19bf7b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x19bf7b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x30188a{['afterInit'](){const _0x2eae67=this['editor'];if(!_0x2eae67['plugins']['has']('Style')||!_0x2eae67['plugins']['has']('DataSchema'))return;const _0x12c7dd=_0x2eae67['plugins']['get']('TrackChangesEditing'),_0x4c85f9=_0x2eae67['locale'],_0x26b448=_0x2eae67['config']['get']('style')||{},_0x2908d4=_0x2eae67['plugins']['get']('GeneralHtmlSupport'),_0x496a56=_0x2eae67['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2eae67['plugins']['get']('DataSchema'),_0x26b448['definitions']);_0x12c7dd['enableDefaultAttributesIntegration']('style');const _0x36d343=new Set();for(const _0x1c5296 of _0x496a56['block']){const _0x5eb8f2=_0x2908d4['getGhsAttributeNameForElement'](_0x1c5296['element']);_0x36d343['add'](_0x5eb8f2);}const _0x2fc8ae=new Set();for(const _0x248d57 of _0x496a56['inline']){const _0x2d77af=_0x2908d4['getGhsAttributeNameForElement'](_0x248d57['element']);_0x2fc8ae['add'](_0x2d77af);for(const _0x2e4d4c of _0x248d57['ghsAttributes'])_0x2fc8ae['add'](_0x2e4d4c);}for(const _0x395a97 of _0x36d343)_0x12c7dd['registerBlockAttribute'](_0x395a97),_0x12c7dd['descriptionFactory']['registerAttributeLabel'](_0x395a97,o(_0x4c85f9,'FORMAT_STYLE'));for(const _0x5d2995 of _0x2fc8ae)_0x12c7dd['registerInlineAttribute'](_0x5d2995),_0x12c7dd['descriptionFactory']['registerAttributeLabel'](_0x5d2995,o(_0x4c85f9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b6b40=this['editor'],_0x28ce5e=_0x2b6b40['locale'];_0x2b6b40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x82155d=>{if('formatBlock'!=_0x82155d['type']&&'formatInline'!=_0x82155d['type'])return;const {data:_0x4c9aa6}=_0x82155d;return _0x4c9aa6&&'style'===_0x4c9aa6['commandName']?_0x4c9aa6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28ce5e,'*Set\x20format:*\x20%0',_0x4c9aa6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x28ce5e,'*Remove\x20format:*\x20%0',_0x4c9aa6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x30188a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x557bfa){super(_0x557bfa),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e4a08=this['editor'],_0x556518=_0x5e4a08['model']['document']['selection'];if(!_0x5e4a08['plugins']['has']('TableEditing'))return;const _0xb55ee9=_0x5e4a08['locale'],_0x1f7b59=_0x5e4a08['plugins']['get']('TrackChangesEditing'),_0x575ecd=_0x5e4a08['plugins']['get']('TableUtils');_0x1f7b59['descriptionFactory']['registerElementLabel']('table',_0x464cc0=>o(_0xb55ee9,'ELEMENT_TABLE',_0x464cc0)),this['_setupColumnsRowsFixing'](),_0x1f7b59['enableCommand']('insertTable'),_0x1f7b59['enableCommand']('selectTableRow'),_0x1f7b59['enableCommand']('selectTableColumn');for(const _0x3b4e1a of['insertTableRowAbove','insertTableRowBelow']){const _0x13130a=_0x5e4a08['commands']['get'](_0x3b4e1a);_0x1f7b59['enableCommand'](_0x3b4e1a,_0xa95bdb=>{_0x5e4a08['model']['change'](_0x52956e=>{_0xa95bdb();const _0x48dd9a='above'===_0x13130a['order'],_0x2f072f=_0x575ecd['getSelectionAffectedTableCells'](_0x556518),_0x3cbbc8=_0x575ecd['getRowIndexes'](_0x2f072f),_0x14a350=_0x48dd9a?_0x3cbbc8['first']-0x1:_0x3cbbc8['last']+0x1,_0x2088a8=_0x2f072f[0x0]['findAncestor']('table'),_0xcc32e0=_0x575ecd['createTableWalker'](_0x2088a8,{'startRow':_0x14a350,'endRow':_0x14a350}),_0x3f61b3=Array['from'](_0xcc32e0)['map'](_0xa82221=>_0x52956e['createRangeOn'](_0xa82221['cell']));_0x1f7b59['markMultiRangeInsertion'](_0x3f61b3,'tableRow');});});}for(const _0x34a251 of['insertTableColumnLeft','insertTableColumnRight']){const _0x16ce8b=_0x5e4a08['commands']['get'](_0x34a251);_0x1f7b59['enableCommand'](_0x34a251,_0x35bd8d=>{_0x5e4a08['model']['change'](_0x47e567=>{_0x35bd8d();const _0x259f37='left'===_0x16ce8b['order'],_0x1f288d=_0x575ecd['getSelectionAffectedTableCells'](_0x556518),_0x51621d=_0x575ecd['getColumnIndexes'](_0x1f288d),_0x5db8a9=_0x259f37?_0x51621d['first']-0x1:_0x51621d['last']+0x1,_0x35445b=_0x1f288d[0x0]['findAncestor']('table'),_0x1aafb4=_0x575ecd['createTableWalker'](_0x35445b,{'startRow':0x0,'column':_0x5db8a9,'includeAllSlots':!0x1}),_0x34d326=Array['from'](_0x1aafb4)['map'](_0x45bad0=>_0x47e567['createRangeOn'](_0x45bad0['cell']));_0x1f7b59['markMultiRangeInsertion'](_0x34d326,'tableColumn');});});}for(const _0x31be4a of['removeTableRow','removeTableColumn']){const _0x353122=_0x31be4a['substr'](0xb),_0x38d5c4=_0x353122['toLowerCase'](),_0x3e6ad2=_0x38d5c4['substr'](0x0,0x3)+'span',_0x644512='table'+_0x353122,_0x44bdcb='min'+_0x353122,_0x50ffd2='max'+_0x353122;_0x1f7b59['enableCommand'](_0x31be4a,()=>{_0x5e4a08['model']['change'](_0x25af6b=>{const _0x5216cc=_0x575ecd['getSelectionAffectedTableCells'](_0x556518),_0x5dbb1b=_0x5216cc[0x0]['findAncestor']('table');let _0x3a2fbd;if('removeTableRow'==_0x31be4a){const _0xad5e1a=_0x575ecd['getRowIndexes'](_0x5216cc);_0x3a2fbd={'startRow':_0xad5e1a['first'],'endRow':_0xad5e1a['last'],'includeAllSlots':!0x0};}else{const _0x38cfe2=_0x575ecd['getColumnIndexes'](_0x5216cc);_0x3a2fbd={'startColumn':_0x38cfe2['first'],'endColumn':_0x38cfe2['last'],'includeAllSlots':!0x0};}const _0x3bb1ff=_0x575ecd['createTableWalker'](_0x5dbb1b,_0x3a2fbd),_0x51f547=Array['from'](_0x3bb1ff)['map'](({cell:_0x17e399})=>_0x17e399),_0x31f3f8=be(_0x51f547['filter'](_0x12a2bd=>_0x12a2bd['hasAttribute'](_0x3e6ad2))),_0x5a30e5=be(_0x51f547['filter'](_0x1fb05c=>!_0x1fb05c['hasAttribute'](_0x3e6ad2)))['map'](_0x5d8e04=>_0x25af6b['createRangeOn'](_0x5d8e04)),_0x9ba5e9=_0x1f7b59['markMultiRangeDeletion'](_0x5a30e5,_0x644512);if(_0x9ba5e9&&('tableRow'==_0x9ba5e9['subType']||'tableColumn'==_0x9ba5e9['subType'])){const _0x4fbe39=this['_getSuggestionCoords'](_0x9ba5e9);for(const _0xfa33ca of _0x31f3f8){const _0x52c3f8=_0x25af6b['createRangeOn'](_0xfa33ca),_0x30454b=_0x575ecd['getCellLocation'](_0xfa33ca),_0x997d7=_0xfa33ca['getAttribute'](_0x3e6ad2)-0x1,_0x47f8e7=_0x4fbe39[_0x44bdcb],_0x169c68=_0x4fbe39[_0x50ffd2];_0x47f8e7<=_0x30454b[_0x38d5c4]&&_0x30454b[_0x38d5c4]+_0x997d7<=_0x169c68&&_0x9ba5e9['addRange'](_0x52c3f8);}}});});}function _0xf77efc(_0x309b0d){const _0x482afa=Array['from'](_0x556518['getRanges']())['map'](_0x4b66a0=>_0x5de9d6['fromRange'](_0x4b66a0));_0x5e4a08['model']['change'](_0x528fd7=>{const _0x483c5a=_0x528fd7['batch'];_0x309b0d=_0x309b0d['filter'](_0x31688b=>'$graveyard'!=_0x31688b['root']['rootName']),_0x528fd7['setSelection'](_0x309b0d),_0x5e4a08['commands']['get']('removeTableRow')['refresh'](),_0x5e4a08['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e4a08['model']['enqueueChange'](()=>{_0x5e4a08['model']['enqueueChange'](_0x483c5a,_0x46acc1=>{const _0x32db52=_0x482afa['filter'](_0x115fc1=>'$graveyard'!=_0x115fc1['root']['rootName']);_0x32db52['length']>0x0&&_0x46acc1['setSelection'](_0x32db52);for(const _0x12b06e of _0x482afa)_0x12b06e['detach']();});});});}function _0x5a4481(_0x2abe91){_0x5e4a08['model']['change'](_0xde058c=>{const _0x5ce36e=Array['from'](_0x556518['getRanges']())['map'](_0x33729d=>_0x5de9d6['fromRange'](_0x33729d)),_0x28771b=[];for(const _0x42c43f of _0x2abe91)for(const _0x4c58d8 of _0x42c43f['getItems']({'shallow':!0x0}))_0x28771b['push'](_0x4c58d8);for(const _0x3c581f of _0x28771b)'$graveyard'!=_0x3c581f['root']['rootName']&&(_0xde058c['setSelection'](_0xde058c['createPositionAt'](_0x3c581f,0x0)),_0x5e4a08['commands']['get']('removeTableColumn')['refresh'](),_0x5e4a08['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4e94f6=_0x5ce36e['filter'](_0x5ce74a=>'$graveyard'!=_0x5ce74a['root']['rootName']);_0x4e94f6['length']>0x0&&_0xde058c['setSelection'](_0x4e94f6);for(const _0x1c6652 of _0x5ce36e)_0x1c6652['detach']();});}function _0x2a26d0(_0xc0d063,_0x3aadf8){return _0x3aadf8['every'](_0x120be1=>_0xc0d063['some'](_0x352a7e=>_0x352a7e['end']['isEqual'](_0x120be1['start'])||_0x120be1['end']['isEqual'](_0x352a7e['start'])));}function _0x5b098a(_0x1241bf,_0x14d634){return!_0x1241bf['some'](_0x48ce30=>_0x14d634['some'](_0x1dc291=>_0x48ce30['isIntersecting'](_0x1dc291)))&&_0x1241bf['some'](_0x518ab5=>_0x14d634['some'](_0xb8ef98=>_0x518ab5['end']['isTouching'](_0xb8ef98['start'])));}_0x5e4a08['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3b977f,_0x518526,_0xc46491)=>{if(!_0xc46491['options']['showSuggestionHighlights'])return;const _0x1064da=_0x518526['item'];if(!_0x1064da)return;const _0x166cfe=_0xc46491['mapper']['toViewElement'](_0x1064da);function _0x57e0ec(_0x71f962){return Array['isArray'](_0x71f962)?_0x71f962:[_0x71f962];}_0x166cfe&&'tableCell'===_0x1064da['name']&&_0x3117ba(_0x166cfe,_0xc46491['writer'],(_0x491cbe,_0x4e200b,_0x1d52aa)=>_0x1d52aa['addClass'](_0x57e0ec(_0x4e200b['classes']),_0x491cbe),(_0x5a978c,_0x26b3f5,_0xb5aee1)=>_0xb5aee1['removeClass'](_0x57e0ec(_0x26b3f5['classes']),_0x5a978c));},{'priority':'highest'}),_0x1f7b59['descriptionFactory']['registerDescriptionCallback'](_0x38eb12=>{if('insertion'!=_0x38eb12['type']&&'deletion'!=_0x38eb12['type'])return;const _0x50eee0=_0x38eb12['getContainedElement']();if(null!=_0x50eee0&&_0x50eee0['is']('element','table')){if('insertion'==_0x38eb12['type']){const _0x512df8=_0x38eb12['getItems']()['filter'](_0x515539=>_0x515539['is']('$textProxy'))['map'](_0x47fcb8=>_0x47fcb8['data']);if(_0x512df8['length'])return{'type':'insertion','content':o(_0xb55ee9,'*Insert:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x512df8['join']('\x20')+'\x22'))};}if('deletion'==_0x38eb12['type']){const _0x235beb=_0x38eb12['getItems']()['filter'](_0x5d79b0=>_0x5d79b0['is']('$textProxy'))['map'](_0x149e3c=>_0x149e3c['data']);if(_0x235beb['length'])return{'type':'deletion','content':o(_0xb55ee9,'*Remove:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x235beb['join']('\x20')+'\x22'))};}}}),_0x1f7b59['descriptionFactory']['registerDescriptionCallback'](_0x2182f1=>{if('tableRow'==_0x2182f1['subType']){const _0x26a85e=_0x2182f1['getItems']()['filter'](_0x3babdd=>_0x3babdd['is']('$textProxy'))['map'](_0x20cd65=>_0x20cd65['data']),_0x4c4127=this['_getSuggestionCoords'](_0x2182f1),_0x5b0eb0=_0x4c4127['maxRow']-_0x4c4127['minRow']+0x1;if('insertion'==_0x2182f1['type'])return _0x26a85e['length']?{'type':'insertion','content':o(_0xb55ee9,'*Insert:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5b0eb0,'\x22'+_0x26a85e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xb55ee9,'*Insert:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_ROW',_0x5b0eb0))};if('deletion'==_0x2182f1['type'])return _0x26a85e['length']?{'type':'deletion','content':o(_0xb55ee9,'*Remove:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5b0eb0,'\x22'+_0x26a85e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xb55ee9,'*Remove:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_ROW',_0x5b0eb0))};}if('tableColumn'==_0x2182f1['subType']){const _0xb313d2=_0x2182f1['getItems']()['filter'](_0x782480=>_0x782480['is']('$textProxy'))['map'](_0x3a627e=>_0x3a627e['data']),_0x1d93a5=this['_getSuggestionCoords'](_0x2182f1),_0x4797fc=_0x1d93a5['maxColumn']-_0x1d93a5['minColumn']+0x1;if('insertion'==_0x2182f1['type'])return _0xb313d2['length']?{'type':'insertion','content':o(_0xb55ee9,'*Insert:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4797fc,'\x22'+_0xb313d2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xb55ee9,'*Insert:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_COLUMN',_0x4797fc))};if('deletion'==_0x2182f1['type'])return _0xb313d2['length']?{'type':'deletion','content':o(_0xb55ee9,'*Remove:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4797fc,'\x22'+_0xb313d2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xb55ee9,'*Remove:*\x20%0',o(_0xb55ee9,'ELEMENT_TABLE_COLUMN',_0x4797fc))};}}),_0x1f7b59['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf77efc),_0x1f7b59['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf77efc),_0x1f7b59['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5a4481),_0x1f7b59['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5a4481),_0x1f7b59['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2a26d0),_0x1f7b59['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2a26d0),_0x1f7b59['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5b098a),_0x1f7b59['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5b098a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2eec67=this['editor'],_0x1f28af=_0x2eec67['model']['document']['selection'];return(_0x4ce5ce,_0x212cf9)=>{_0x2eec67['model']['change'](_0x452f6f=>{const {commandName:_0x562291,commandParams:_0xf10a46}=_0x212cf9;let _0x51bf04=_0x4ce5ce[0x0]['end']['nodeBefore'];_0xf10a46&&_0xf10a46[0x0]&&!0x1===_0xf10a46[0x0]['forceValue']&&(_0x51bf04=_0x4ce5ce[0x0]['start']['nodeAfter']);const _0x26f6a0=_0x452f6f['createRangeIn'](_0x51bf04);if('$graveyard'==_0x26f6a0['root']['rootName'])return;const _0x356e8e=Array['from'](_0x1f28af['getRanges']())['map'](_0x52d556=>_0x5de9d6['fromRange'](_0x52d556));_0x452f6f['setSelection'](_0x26f6a0),_0x2eec67['commands']['get'](_0x562291)['refresh'](),_0xf10a46['push']({'forceDefaultExecution':!0x0}),_0x2eec67['execute'](_0x562291,..._0xf10a46);const _0x4b6a87=_0x356e8e['filter'](_0x2c42be=>'$graveyard'!=_0x2c42be['root']['rootName']);_0x4b6a87['length']>0x0&&_0x452f6f['setSelection'](_0x4b6a87);for(const _0x4c63c9 of _0x356e8e)_0x4c63c9['detach']();});};}['_getCoordsForCells'](_0x1f48b5){const _0x3e3cc3=this['editor']['plugins']['get']('TableUtils');let _0x170579=Number['MAX_SAFE_INTEGER'],_0x26f6fd=Number['MIN_SAFE_INTEGER'],_0x37d8cc=Number['MAX_SAFE_INTEGER'],_0x4ec59b=Number['MIN_SAFE_INTEGER'];for(const _0x2caa71 of _0x1f48b5){if('$graveyard'==_0x2caa71['root']['rootName'])continue;const {row:_0x1363de,column:_0x27681a}=_0x3e3cc3['getCellLocation'](_0x2caa71),_0x58f4cc=_0x2caa71['hasAttribute']('rowspan')?_0x2caa71['getAttribute']('rowspan')-0x1:0x0,_0xe2c09c=_0x2caa71['hasAttribute']('colspan')?_0x2caa71['getAttribute']('colspan')-0x1:0x0;_0x170579=_0x1363de<_0x170579?_0x1363de:_0x170579,_0x26f6fd=_0x1363de+_0x58f4cc>_0x26f6fd?_0x1363de+_0x58f4cc:_0x26f6fd,_0x37d8cc=_0x27681a<_0x37d8cc?_0x27681a:_0x37d8cc,_0x4ec59b=_0x27681a+_0xe2c09c>_0x4ec59b?_0x27681a+_0xe2c09c:_0x4ec59b;}return{'minRow':_0x170579,'maxRow':_0x26f6fd,'minColumn':_0x37d8cc,'maxColumn':_0x4ec59b};}['_setupColumnsRowsFixing'](){const _0x34da39=this['editor'],_0x3e56c0=_0x34da39['plugins']['get']('TrackChangesEditing'),_0xc9191b=_0x34da39['plugins']['get']('TableUtils');_0x34da39['model']['document']['on']('change:data',()=>{const _0xf8efaa=Array['from'](_0x34da39['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d0803,data:_0x239702}of _0xf8efaa){const {group:_0x313b39,id:_0x2eba99,subType:_0x160ffb}=_0x3e56c0['_splitMarkerName'](_0x3d0803);if('suggestion'!=_0x313b39)continue;if(null!=_0x239702['oldRange'])continue;const _0x536627=_0x3e56c0['getSuggestion'](_0x2eba99);this['_tablePostFixingSubtypes']['includes'](_0x160ffb)&&this['_tableSuggestions']['add'](_0x536627);}},{'priority':'low'});const _0x246e66=(_0x5dcf81,_0x24e6ea)=>{let _0x253ca2=!0x1;const _0x1ad582=_0x24e6ea['createRangeOn'](_0x5dcf81),_0x8f7308=_0x5dcf81['findAncestor']('table'),_0xa4ede4=_0xc9191b['getCellLocation'](_0x5dcf81);for(const _0x5e3714 of this['_tableSuggestions']){const _0x2b7bf4=_0x5e3714['subType'],_0x551e77=_0x2b7bf4['startsWith']('tablePaste'),_0x2346ed=_0x2b7bf4['substr'](_0x551e77?0xa:0x5),_0x1d7354=_0x2346ed['toLowerCase'](),_0xc86218=_0x1d7354['substr'](0x0,0x3)+'span',_0x1c0900='min'+_0x2346ed,_0x1b1d26='max'+_0x2346ed;if(!_0x5e3714['isInContent'])continue;if(_0x8f7308!=_0x5e3714['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5e3714['isIntersectingWithRange'](_0x1ad582))continue;const _0x3aae7a=_0x5dcf81['hasAttribute'](_0xc86218)?_0x5dcf81['getAttribute'](_0xc86218)-0x1:0x0,_0xdf1749=this['_getSuggestionCoords'](_0x5e3714),_0x3081e9=_0xdf1749[_0x1c0900],_0x4535ec=_0xdf1749[_0x1b1d26];_0x3081e9<=_0xa4ede4[_0x1d7354]&&_0xa4ede4[_0x1d7354]+_0x3aae7a<=_0x4535ec&&(_0x5e3714['addRange'](_0x1ad582),_0x253ca2=!0x0);}return _0x253ca2;};_0x34da39['model']['document']['registerPostFixer'](_0x7cd47e=>{let _0x404ef3=!0x1;for(const _0xc294ca of _0x34da39['model']['document']['differ']['getChanges']())if('insert'==_0xc294ca['type']){if('tableRow'==_0xc294ca['name']){for(const _0x2ffd8f of _0xc294ca['position']['nodeAfter']['getChildren']())_0x404ef3=_0x404ef3||_0x246e66(_0x2ffd8f,_0x7cd47e);}else'tableCell'==_0xc294ca['name']&&(_0x404ef3=_0x404ef3||_0x246e66(_0xc294ca['position']['nodeAfter'],_0x7cd47e));}return _0x404ef3;});}['_getSuggestionCoords'](_0x320c18){return this['_getCoordsForCells'](_0x320c18['getRanges']()['map'](_0xba3a63=>_0xba3a63['start']['nodeAfter']));}}function be(_0x53e53f){return Array['from'](new Set(_0x53e53f)['values']());}class vt extends _0x30188a{static get['requires'](){return[It];}['afterInit'](){const _0x1903aa=this['editor'],_0x2320b7=_0x1903aa['model']['document']['selection'],_0xfaf563=_0x1903aa['locale'];if(!_0x1903aa['plugins']['has']('TableEditing'))return;const _0x465767=_0x1903aa['plugins']['get']('TrackChangesEditing'),_0x4e9c47=_0x1903aa['plugins']['get']('TableUtils'),_0x52ccf0=_0x1903aa['plugins']['get'](It);_0x52ccf0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x465767['enableCommand']('mergeTableCells',()=>{const _0x24128e=_0x4e9c47['getSelectionAffectedTableCells'](_0x1903aa['model']['document']['selection']);_0x1903aa['model']['change'](()=>{_0x465767['markMultiRangeBlockFormat'](_0x24128e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1903aa['commands']['get']('mergeTableCells')['on']('execute',(_0x307a34,_0x4f14d6)=>{_0x1903aa['commands']['get']('trackChanges')['value']&&(_0x4f14d6['length']>0x0&&_0x4f14d6[_0x4f14d6['length']-0x1]&&_0x4f14d6[_0x4f14d6['length']-0x1]['forceDefaultExecution']||_0x465767['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x307a34['stop']());},{'priority':'highest'});for(const _0x3a9a2e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x361d29=_0x1903aa['commands']['get'](_0x3a9a2e);_0x465767['enableCommand'](_0x3a9a2e,()=>{const _0x5f4b4e=_0x1903aa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1c1332=>_0x1c1332['is']('element','tableCell')),_0x576dde=_0x361d29['value'];_0x1903aa['model']['change'](()=>{_0x465767['markMultiRangeBlockFormat']([_0x5f4b4e,_0x576dde],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x47ba69 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xd51769=_0x1903aa['commands']['get'](_0x47ba69);_0x465767['enableCommand'](_0x47ba69,()=>{const _0x405b44=_0x4e9c47['getSelectionAffectedTableCells'](_0x1903aa['model']['document']['selection'])[0x0],_0x4810d3=_0x405b44['findAncestor']('table'),{column:_0x382db4,row:_0x4b6130}=_0x4e9c47['getCellLocation'](_0x405b44);let _0x532f77=[];if('horizontally'==_0xd51769['direction']){const _0x161a18=_0x4e9c47['createTableWalker'](_0x4810d3,{'startRow':_0x4b6130,'endRow':_0x4b6130,'includeAllSlots':!0x0});_0x532f77=Array['from'](_0x161a18)['map'](_0x48bf08=>_0x48bf08['cell']);}else{const _0x1f1c58=_0x4e9c47['createTableWalker'](_0x4810d3,{'column':_0x382db4,'includeAllSlots':!0x0});_0x532f77=Array['from'](_0x1f1c58)['map'](_0x5019d8=>_0x5019d8['cell']);}_0x1903aa['model']['change'](_0x3dcc57=>{_0x465767['markBlockFormat'](_0x3dcc57['createRangeOn'](_0x405b44),{'commandName':_0x47ba69,'commandParams':[]},_0x532f77,_0x47ba69);});});}_0x465767['descriptionFactory']['registerDescriptionCallback'](_0x4953b2=>{if('formatBlock'!=_0x4953b2['type']&&'formatInline'!=_0x4953b2['type'])return;const {data:_0x33d1ef}=_0x4953b2;return _0x33d1ef&&'mergeTableCells'==_0x33d1ef['commandName']?{'type':'format','content':o(_0xfaf563,'*Merge\x20cells*')}:void 0x0;}),_0x465767['descriptionFactory']['registerDescriptionCallback'](_0x29bee9=>{if('formatBlock'!=_0x29bee9['type']&&'formatInline'!=_0x29bee9['type'])return;const {data:_0x39611a}=_0x29bee9;return _0x39611a?'splitTableCellVertically'==_0x39611a['commandName']?{'type':'format','content':o(_0xfaf563,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x39611a['commandName']?{'type':'format','content':o(_0xfaf563,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x14e025=_0x52ccf0['_acceptFormatSuggestionCallbackFactory']();for(const _0x31f353 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x465767['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31f353,'accept',_0x14e025);for(const _0x33510a of['splitTableCellVertically','splitTableCellHorizontally'])_0x465767['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33510a,'accept',_0x14e025);_0x465767['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4b28c9=>{_0x1903aa['model']['change'](_0x15b298=>{const _0x144ed2=Array['from'](_0x2320b7['getRanges']())['map'](_0x5155ed=>_0x5de9d6['fromRange'](_0x5155ed));_0x15b298['setSelection'](_0x4b28c9),_0x1903aa['commands']['get']('mergeTableCells')['refresh'](),_0x1903aa['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5df452=_0x144ed2['filter'](_0xc79a73=>'$graveyard'!=_0xc79a73['root']['rootName']);_0x5df452['length']>0x0&&_0x15b298['setSelection'](_0x5df452);for(const _0x1b52d6 of _0x144ed2)_0x1b52d6['detach']();});});for(const _0x3c1909 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x15cc21=_0x1903aa['commands']['get'](_0x3c1909);_0x15cc21['on']('set:isEnabled',(_0x2f5972,_0x120929,_0x759df4)=>{if(_0x759df4){const _0x58c136=_0x1903aa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29d4fb=>_0x29d4fb['is']('element','tableCell'));this['_areMergableCells'](_0x15cc21['value'],_0x58c136)||(_0x2f5972['return']=!0x1,_0x2f5972['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5132a2=this['editor']['commands']['get']('mergeTableCells'),_0x1cba51=this['editor']['plugins']['get']('TableUtils');if(!_0x5132a2['isEnabled'])return!0x1;const _0x4651df=_0x1cba51['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x167341 of _0x4651df)for(const _0x29cd58 of _0x4651df)if(_0x167341!=_0x29cd58&&!this['_areMergableCells'](_0x167341,_0x29cd58))return!0x1;return!0x0;}['_areMergableCells'](_0x47d97d,_0x5bef83){const _0x4f53e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d9c6c=this['editor']['model']['createRangeOn'](_0x47d97d),_0x1b0bd4=this['editor']['model']['createRangeOn'](_0x5bef83),_0x55391d=new Set(),_0x3edead=new Set();for(const _0x1be961 of _0x4f53e8['getSuggestions']())if(('insertion'==_0x1be961['type']||'deletion'==_0x1be961['type']||'mergeTableCells'==_0x1be961['subType'])&&_0x1be961['isInContent']){for(const _0x4dea5a of _0x1be961['getRanges']())_0x4dea5a['containsRange'](_0x5d9c6c,!0x0)&&_0x55391d['add'](_0x1be961['type']+':'+_0x1be961['author']['id']),_0x4dea5a['containsRange'](_0x1b0bd4,!0x0)&&_0x3edead['add'](_0x1be961['type']+':'+_0x1be961['author']['id']);}if(_0x55391d['size']!=_0x3edead['size'])return!0x1;for(const _0x1a1d4d of _0x55391d)if(!_0x3edead['has'](_0x1a1d4d))return!0x1;return!0x0;}}class Ct extends _0x30188a{static get['requires'](){return[It];}['afterInit'](){const _0x420ce5=this['editor'];if(!_0x420ce5['plugins']['has']('TableEditing'))return;const _0x131ebb=_0x420ce5['locale'],_0x3823da=_0x420ce5['plugins']['get']('TrackChangesEditing');_0x3823da['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3823da['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3823da['registerBlockAttribute']('headingRows'),_0x3823da['registerBlockAttribute']('headingColumns'),_0x3823da['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x131ebb,'FORMAT_HEADER_ROW')),_0x3823da['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x131ebb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4826ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ee3eb=this['editor']['plugins']['get']('TableUtils'),_0xc252d9=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x3d8e18({showActiveMarker:_0x7f7b9b=!0x0,setDataAttribute:_0x505922=!0x0}={}){return(_0x242e25,_0x39974f,_0xb56861)=>{const {type:_0x192e47,id:_0x395da7}=_0x4826ae['_splitMarkerName'](_0x39974f['markerName']),_0x8dd50=_0x4826ae['getSuggestion'](_0x395da7),_0x48e69a=_0x8dd50['data'];if('formatBlock'!=_0x8dd50['type']||!_0x48e69a||'setTableColumnHeader'!=_0x48e69a['commandName'])return;if(_0x39974f['item'])return void _0x242e25['stop']();if(!_0xb56861['consumable']['consume'](_0x39974f['markerRange'],_0x242e25['name']))return;const _0x3bfcaa=_0x39974f['markerRange']['start']['nodeAfter'],_0x1928ef=_0x39974f['markerRange']['end']['nodeBefore'],_0x45fd86=_0x3bfcaa['parent']['parent'],{column:_0x12feb7}=_0x2ee3eb['getCellLocation'](_0x3bfcaa),{column:_0x1235ec}=_0x2ee3eb['getCellLocation'](_0x1928ef);for(let _0x2cfde4=_0x12feb7;_0x2cfde4<=_0x1235ec;_0x2cfde4++){const _0x30ff26=_0x2ee3eb['createTableWalker'](_0x45fd86,{'column':_0x2cfde4,'includeAllSlots':!0x1});for(const _0x433004 of _0x30ff26){const _0x13ca2e=_0x433004['cell'],_0x21ea85=_0xb56861['mapper']['toViewElement'](_0x13ca2e);_0xb56861['writer']['addClass']('ck-suggestion-marker-'+_0x192e47,_0x21ea85),_0x505922&&_0xb56861['writer']['setAttribute']('data-suggestion',_0x395da7,_0x21ea85),_0xb56861['mapper']['bindElementToMarker'](_0x21ea85,_0x39974f['markerName']),_0x7f7b9b&&(_0x4826ae['activeMarkers']['includes'](_0x39974f['markerName'])?_0xb56861['writer']['addClass']('ck-suggestion-marker--active',_0x21ea85):_0xb56861['writer']['removeClass']('ck-suggestion-marker--active',_0x21ea85));}}};}_0x4826ae['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc252d9),_0x4826ae['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc252d9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d8e18(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b60d4,_0x37ba82,_0x27b5bd)=>{_0x27b5bd['options']['showSuggestionHighlights']&&_0x3d8e18({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b60d4,_0x37ba82,_0x27b5bd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x27ea5e,_0x518164,_0x599aab)=>{const {type:_0x422526,id:_0x9f480a}=_0x4826ae['_splitMarkerName'](_0x518164['markerName']),_0x2c3c49=_0x4826ae['getSuggestion'](_0x9f480a),_0x3ed9f9=_0x2c3c49['data'];if('formatBlock'!=_0x2c3c49['type']||!_0x3ed9f9||'setTableColumnHeader'!=_0x3ed9f9['commandName'])return;const _0x4bd6ae=_0x599aab['mapper']['markerNameToElements'](_0x518164['markerName']);if(_0x4bd6ae){for(const _0x472fe9 of _0x4bd6ae)_0x599aab['writer']['removeClass']('ck-suggestion-marker-'+_0x422526,_0x472fe9),_0x599aab['writer']['removeClass']('ck-suggestion-marker--active',_0x472fe9),_0x599aab['writer']['removeAttribute']('data-suggestion',_0x472fe9),_0x599aab['mapper']['unbindElementFromMarkerName'](_0x472fe9,_0x518164['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x568828=this['editor'],_0x48aabe=_0x568828['locale'];function _0x1f4ed6(_0x1f302a){return{'type':'format','content':o(_0x48aabe,'*Format:*\x20%0',_0x1f302a)};}_0x568828['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc68a=>{if('formatBlock'!=_0x4bc68a['type'])return;const {data:_0x33f797}=_0x4bc68a;if(_0x33f797){if('setTableRowHeader'==_0x33f797['commandName']){const _0x2d52fe=_0x33f797['commandParams'][0x0]['forceValue'];return _0x1f4ed6(o(_0x48aabe,_0x2d52fe?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x33f797['commandName']){const _0x55362c=_0x33f797['commandParams'][0x0]['forceValue'];return _0x1f4ed6(o(_0x48aabe,_0x55362c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x4f6240=>[_0x4f6240,null]));class _t extends _0x30188a{static get['requires'](){return[It];}['afterInit'](){const _0x4a935c=this['editor'];if(!_0x4a935c['plugins']['has']('TableClipboard'))return;const _0x2f6b53=_0x4a935c['plugins']['get']('TrackChangesEditing'),_0x4a62f7=_0x4a935c['plugins']['get']('TableUtils'),_0x431151=_0x4a935c['plugins']['get'](It),_0xa0d6b6=_0x4a935c['plugins']['get']('TableClipboard');_0x431151['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4a935c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4a935c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d95fe=null;_0x4a935c['model']['on']('insertContent',(_0x1ec6e2,_0x1d9046)=>{const [_0x3f8ee9,_0x1d71a7]=_0x1d9046,_0x43305c=_0x1d9046[_0x1d9046['length']-0x1];_0x43305c&&_0x43305c['forceDefaultExecution']||_0x2f6b53['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x92b4aa,_0x4f4a43,_0x34cac9,_0x13d390,_0x245b5c){if(_0x4f4a43&&!_0x4f4a43['is']('documentSelection'))return!0x1;const _0x4f19e0=_0x245b5c['getTableIfOnlyTableInContent'](_0x92b4aa,_0x34cac9);if(!_0x4f19e0||!Re(_0x4f19e0,void 0x0,_0x13d390))return!0x1;const _0x284e50=_0x13d390['getSelectionAffectedTableCells'](_0x34cac9['document']['selection']);if(!_0x284e50['length'])return!0x1;const _0x4590a7=_0x284e50[0x0]['findAncestor']('table'),_0x14695b=_0x13d390['getRowIndexes'](_0x284e50),_0x4c7a35=_0x13d390['getColumnIndexes'](_0x284e50),_0x29e9e4={'startRow':_0x14695b['first'],'endRow':_0x14695b['last'],'startColumn':_0x4c7a35['first'],'endColumn':_0x4c7a35['last']};return 0x1==_0x284e50['length']&&(_0x29e9e4['endRow']+=_0x13d390['getRows'](_0x4f19e0)-0x1,_0x29e9e4['endColumn']+=_0x13d390['getColumns'](_0x4f19e0)-0x1),Re(_0x4590a7,_0x29e9e4,_0x13d390);}(_0x3f8ee9,_0x1d71a7,_0x4a935c['model'],_0x4a62f7,_0xa0d6b6)&&(_0x1ec6e2['stop'](),_0x1d95fe={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a935c['model']['change'](()=>{_0x4a935c['model']['insertContent'](_0x1d9046[0x0],_0x1d9046[0x1],_0x1d9046[0x2],{'forceDefaultExecution':!0x0});const _0x1353d4=_0xadcd2f(),{rowInsertionRanges:_0x45ddad,columnInsertionRanges:_0x3e0ce1,insertionRanges:_0x2c3496,deletionRanges:_0x48fda3,cells:_0x48eac7}=_0x1d95fe;_0x45ddad['length']&&_0x2f6b53['markMultiRangeInsertion'](_0x45ddad,'tablePasteRow',{'tablePasteChainId':_0x1353d4}),_0x3e0ce1['length']&&_0x2f6b53['markMultiRangeInsertion'](_0x3e0ce1,'tablePasteColumn',{'tablePasteChainId':_0x1353d4}),_0x2c3496['length']&&(_0x2f6b53['markMultiRangeInsertion'](_0x2c3496,'tablePaste',{'tablePasteChainId':_0x1353d4,'skipNestingCheck':!0x0}),_0x2c3496['forEach'](_0x14ce60=>_0x14ce60['detach']?.())),_0x48fda3['length']&&(_0x2f6b53['markMultiRangeDeletion'](_0x48fda3,'tablePaste',{'tablePasteChainId':_0x1353d4,'skipNestingCheck':!0x0}),_0x48fda3['forEach'](_0x3cd05e=>_0x3cd05e['detach']?.()));const _0x58c76e=_0x2f6b53['markMultiRangeBlockFormat'](_0x48eac7['map'](({element:_0xe3e77b})=>_0xe3e77b),{'formatGroupId':_0xadcd2f()},[],'tablePasteCell',{'tablePasteChainId':_0x1353d4});if(_0x58c76e){const _0x3954fc=_0x58c76e['getMarkers'](),_0x12bea8=[];for(const {element:_0x45e4ed,attributes:_0x47513a}of _0x48eac7){if(!_0x47513a)continue;const _0x4b4849=_0x4a935c['model']['createRangeOn'](_0x45e4ed),_0x13b8a9=_0x3954fc['find'](_0x15ba37=>_0x15ba37['getRange']()['isEqual'](_0x4b4849));_0x13b8a9&&_0x12bea8['push']([_0x13b8a9['name'],_0x47513a]);}_0x12bea8['length']&&_0x58c76e['setAttribute']('markerAttributes',Object['fromEntries'](_0x12bea8));}_0x1d95fe=null;}));},{'priority':_0x45fb90['high']+0xa}),_0x4a935c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4fd012,_0x449887)=>{const [_0x50c9db,_0x13498c,,_0x4f1cbd]=_0x449887;if(!_0x1d95fe)return;_0x4fd012['stop']();const _0x3a120d=_0x50c9db['cell'],_0x12a5d2=_0x13498c,_0x452ba2=ke(_0x3a120d),_0x4175c7=ke(_0x12a5d2);_0x4fd012['return']=_0x3a120d;let _0x2fdf8b=null,_0x597e0e=null;if(_0x4175c7||_0x452ba2){if(_0x452ba2&&!_0x4175c7){_0x4f1cbd['remove'](_0x3a120d['getChild'](0x0));for(const _0x283ba0 of Array['from'](_0x12a5d2['getChildren']()))_0x4f1cbd['insert'](_0x283ba0,_0x3a120d,'end');const _0x50669e=_0x1d95fe['rowInsertionIndexes']['includes'](_0x50c9db['row']),_0x18d606=_0x1d95fe['columnInsertionIndexes']['includes'](_0x50c9db['column']);_0x50669e||_0x18d606||(_0x2fdf8b=_0x5de9d6['fromRange'](_0x4f1cbd['createRangeIn'](_0x3a120d)));}else _0x4175c7&&!_0x452ba2&&(_0x597e0e=_0x4f1cbd['createRangeIn'](_0x3a120d));}else{const _0x3cd4ff=_0x4f1cbd['createElement']('tableCellSuggestion'),_0xdb032d=_0x4f1cbd['createElement']('tableCellSuggestion');_0x4f1cbd['wrap'](_0x4f1cbd['createRangeIn'](_0x3a120d),_0xdb032d),_0x4f1cbd['insert'](_0x3cd4ff,_0x3a120d,0x0);for(const _0x3e42b9 of Array['from'](_0x12a5d2['getChildren']()))_0x4f1cbd['insert'](_0x3e42b9,_0x3cd4ff,'end');_0x2fdf8b=_0x5de9d6['fromRange'](_0x4f1cbd['createRangeOn'](_0x3cd4ff)),_0x597e0e=_0x5de9d6['fromRange'](_0x4f1cbd['createRangeOn'](_0xdb032d));}const _0x4808d5=Array['from'](_0x12a5d2['getAttributes']())['filter'](([_0xc10de3])=>Pe['includes'](_0xc10de3));_0x1d95fe['cells']['push']({'element':_0x3a120d,'attributes':_0x4808d5['length']?Object['fromEntries'](_0x4808d5):null}),_0x2fdf8b&&_0x1d95fe['insertionRanges']['push'](_0x2fdf8b),_0x597e0e&&_0x1d95fe['deletionRanges']['push'](_0x597e0e);},{'priority':'high'}),_0x4a62f7['on']('insertColumns',(_0x10353c,_0x1e6cdc)=>{const [_0x1f636f,_0x330a94={}]=_0x1e6cdc;if(!_0x1d95fe)return;const _0x50c91a=_0x330a94['at']||0x0,_0x3348d0=_0x330a94['columns']||0x1;_0x1d95fe['columnInsertionIndexes']=new Array(_0x3348d0)['fill'](_0x50c91a)['map']((_0x210ab7,_0x374e88)=>_0x210ab7+_0x374e88);for(const {cell:_0x1719f5}of _0x4a62f7['createTableWalker'](_0x1f636f,{'startColumn':_0x50c91a,'endColumn':_0x50c91a+_0x3348d0-0x1}))_0x1d95fe['columnInsertionRanges']['push'](_0x4a935c['model']['createRangeOn'](_0x1719f5));},{'priority':'low'}),_0x4a62f7['on']('insertRows',(_0x123dab,_0x1b2f27)=>{const [_0x427024,_0xc708ac={}]=_0x1b2f27;if(!_0x1d95fe)return;const _0x45a322=_0xc708ac['at']||0x0,_0x289b27=_0xc708ac['rows']||0x1;_0x1d95fe['rowInsertionIndexes']=new Array(_0x289b27)['fill'](_0x45a322)['map']((_0xe9b2e7,_0x326f04)=>_0xe9b2e7+_0x326f04);for(const {cell:_0x2759ca}of _0x4a62f7['createTableWalker'](_0x427024,{'startRow':_0x45a322,'endRow':_0x45a322+_0x289b27-0x1}))_0x1d95fe['rowInsertionRanges']['push'](_0x4a935c['model']['createRangeOn'](_0x2759ca));},{'priority':'low'}),_0x2f6b53['descriptionFactory']['registerDescriptionCallback'](_0x5980d9=>{if(_0x5980d9['subType']&&_0x5980d9['subType']['startsWith']('tablePaste'))return _0x5980d9['previous']?{}:{'type':'insertion','content':o(_0x4a935c['locale'],'*Replace\x20table\x20cells*')};});const _0x591d77=()=>!0x1;for(const _0x570231 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2f6b53['_suggestionFactory']['registerCustomCallback']('insertion',_0x570231,'join',_0x591d77),_0x2f6b53['_suggestionFactory']['registerCustomCallback']('deletion',_0x570231,'join',_0x591d77),_0x2f6b53['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x570231,'join',_0x591d77);_0x2f6b53['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x591d77),_0x2f6b53['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x223d8c,_0x1f3528,_0x27e42f)=>{const _0x27d99d=_0x223d8c['map'](_0x1b0acc=>_0x1b0acc['getContainedElement']())['filter'](_0x55f0bf=>_0x55f0bf),_0x54a3c6=new Map(_0x27d99d['map'](_0x48d6f1=>[_0x48d6f1,null]));if(_0x1d95fe){for(const {element:_0x3f9d5c,attributes:_0x1ebb4d}of _0x1d95fe['cells'])_0x1ebb4d&&_0x54a3c6['set'](_0x3f9d5c,_0x1ebb4d);}else{if(_0x27e42f&&_0x27e42f['markerAttributes'])for(const [_0x270b22,_0x5ae2d4]of Object['entries'](_0x27e42f['markerAttributes'])){const _0x5435c1=_0x4a935c['model']['markers']['get'](_0x270b22),_0x4c5337=_0x5435c1?_0x5435c1['getRange']()['getContainedElement']():null;_0x4c5337&&_0x54a3c6['set'](_0x4c5337,_0x5ae2d4);}}_0x4a935c['model']['change'](_0x4cc4fa=>{for(const [_0x201153,_0x381393]of _0x54a3c6)_0x4cc4fa['setAttributes']({...we,..._0x381393},_0x201153);});});const _0x3b6bfc=(_0x178195,_0x1c4eed)=>{_0x2f6b53['_suggestionFactory']['registerCustomCallback'](_0x178195,'tablePaste',_0x1c4eed,(_0x44b332,_0x961bd2,_0x316919)=>{_0x4a935c['model']['change'](_0x14f6e3=>{const _0x4dd5d9=[];for(const _0x4689f1 of _0x44b332){const _0x6f1161=_0x4689f1['start']['nodeAfter'];_0x6f1161['is']('element','tableCellSuggestion')&&_0x4dd5d9['push'](_0x6f1161);}_0x2f6b53['_suggestionFactory']['getSuggestionCallback'](_0x178195,null,_0x1c4eed)(_0x44b332,_0x961bd2,_0x316919);for(const _0x97f49d of _0x4dd5d9)'$graveyard'!=_0x97f49d['root']['rootName']&&_0x14f6e3['unwrap'](_0x97f49d);});});};_0x3b6bfc('insertion','accept'),_0x3b6bfc('insertion','discard'),_0x3b6bfc('deletion','accept'),_0x3b6bfc('deletion','discard'),_0x2f6b53['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x337ab4=>{const _0x53dec9=_0x337ab4['map'](_0x26ae22=>_0x26ae22['getContainedElement']()),_0x1a0bfe=_0x53dec9[0x0]['findAncestor']('table'),{minRow:_0x3bc3c1,maxRow:_0x5b126f}=_0x431151['_getCoordsForCells'](_0x53dec9);_0x4a62f7['removeRows'](_0x1a0bfe,{'at':_0x3bc3c1,'rows':_0x5b126f-_0x3bc3c1+0x1});}),_0x2f6b53['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3751cc=>{const _0x35975c=_0x3751cc['map'](_0x193217=>_0x193217['getContainedElement']()),_0x5291c4=_0x35975c[0x0]['findAncestor']('table'),{minColumn:_0xee3de5,maxColumn:_0x2eb9b4}=_0x431151['_getCoordsForCells'](_0x35975c);_0x4a62f7['removeColumns'](_0x5291c4,{'at':_0xee3de5,'columns':_0x2eb9b4-_0xee3de5+0x1});});const _0x3025b3=(_0x2c6fa9,_0x55f8b1)=>{if(!_0x55f8b1['subType']||!_0x55f8b1['subType']['startsWith']('tablePaste'))return;const _0x3d8202=_0x55f8b1['attributes']['tablePasteChainId'],_0x1b40c3=_0x2f6b53['getSuggestions']()['filter'](_0x206ec6=>_0x206ec6['isInContent']&&_0x206ec6['attributes']&&_0x206ec6['attributes']['tablePasteChainId']==_0x3d8202);_0x1b40c3['length']&&_0x55f8b1['getAllAdjacentSuggestions']()['length']!=_0x1b40c3['length']&&_0x1b40c3['reduce']((_0x26074e,_0x53e9e6)=>(_0x26074e['next']=_0x53e9e6,_0x53e9e6['previous']=_0x26074e,_0x53e9e6));};function _0x1ee4e7(_0x32622a,_0x5770b6=!0x0){const {id:_0x462a72,authorId:_0x551e5b}=_0x2f6b53['_splitMarkerName'](_0x32622a['markerName']),_0x2afc76=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x34aa67=_0x2f6b53['activeMarkers']['includes'](_0x32622a['markerName']);return _0x34aa67&&_0x2afc76['push']('ck-suggestion-marker--active'),{'classes':_0x2afc76,'attributes':{'data-suggestion':_0x462a72,'data-author-id':_0x551e5b},'priority':_0x34aa67&&_0x5770b6?0xbc2:0xbb8};}_0x2f6b53['on']('suggestionLoaded',_0x3025b3,{'priority':'high'}),_0x2f6b53['on']('suggestionUnloaded',_0x3025b3,{'priority':'high'}),_0x4a935c['model']['document']['registerPostFixer'](()=>{let _0x4a9532=!0x1;const _0xe58de7=Array['from'](_0x4a935c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e656a,data:_0x59ee2a}of _0xe58de7){const {group:_0x46364c,type:_0x35bcce,id:_0x1ee47e}=_0x2f6b53['_splitMarkerName'](_0x4e656a);if('suggestion'!=_0x46364c||'deletion'!=_0x35bcce||_0x59ee2a['oldRange'])continue;if(!_0x2f6b53['hasSuggestion'](_0x1ee47e))continue;const _0x184784=_0x2f6b53['getSuggestion'](_0x1ee47e)['getRanges'](),_0xb38120=_0x4a935c['plugins']['get']('Users')['me'];for(const _0x486712 of _0x2f6b53['getSuggestions']()){if(!_0x486712['isInContent']||_0x486712['author']!=_0xb38120)continue;if('formatBlock'!=_0x486712['type']||'tablePasteCell'!=_0x486712['subType'])continue;if(_0x486712['getRanges']()['every'](_0x272b70=>_0x184784['some'](_0xd8163=>_0xd8163['containsRange'](_0x272b70,!0x0)))){for(const _0x2b080b of _0x486712['getAllAdjacentSuggestions']())_0x2b080b['isInContent']&&(_0x2b080b['discard'](),_0x4a9532=!0x0);}}}return _0x4a9532;}),_0x4a935c['model']['document']['registerPostFixer'](_0x47b06a=>{const _0x29830d=_0x4a935c['commands']['get']('redo');if(!_0x29830d||!_0x29830d['_createdBatches']['has'](_0x47b06a['batch']))return!0x1;let _0x29eabf=!0x1;const _0x48bfd0=_0x4a935c['plugins']['get']('Users')['me'],_0x3f135b=_0x4a935c['model']['document']['differ']['getChanges'](),_0x2b1c49=Array['from'](_0x4a935c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x485d14,data:_0x50d9c0})=>{const {group:_0x13ce32,subType:_0x2cf30a,authorId:_0x1dabb9}=_0x2f6b53['_splitMarkerName'](_0x485d14);return'suggestion'==_0x13ce32&&'tablePaste'==_0x2cf30a&&_0x1dabb9==_0x48bfd0['id']&&!_0x50d9c0['oldRange'];});for(const _0x3f9052 of _0x3f135b){if('insert'!=_0x3f9052['type']||'tableCellSuggestion'!=_0x3f9052['name']||0x1!=_0x3f9052['length'])continue;const _0x89732d=_0x47b06a['createRange'](_0x3f9052['position'],_0x3f9052['position']['getShiftedBy'](0x1));if(!_0x2b1c49['find'](({data:_0x3d8d3a})=>_0x3d8d3a['newRange']['isEqual'](_0x89732d))){for(const {name:_0x1e4b89,data:_0x3c9fb4}of _0x2b1c49)if(_0x89732d['containsRange'](_0x3c9fb4['newRange'])){_0x47b06a['updateMarker'](_0x1e4b89,{'range':_0x89732d}),_0x29eabf=!0x0;break;}}}return _0x29eabf;}),_0x4a935c['model']['document']['registerPostFixer'](_0x121a36=>{let _0x3e64e6=!0x1;const _0x491fcb=_0x4a935c['plugins']['get']('Users')['me'],_0x1913be=_0x2f6b53['getSuggestions']()['filter'](_0x4b8a90=>_0x4b8a90['isInContent']&&_0x4b8a90['author']==_0x491fcb),_0x5c3e02=new Set(),_0x582779=new Set();for(const _0x2e93f6 of _0x1913be)if('tablePaste'==_0x2e93f6['subType'])for(const _0x8def0 of _0x2e93f6['getMarkers']()){const _0x3c6014=_0x8def0['getRange']()['getContainedElement']();if(_0x3c6014){if(_0x3c6014['is']('element','tableCellSuggestion')&&ke(_0x3c6014)){_0x2e93f6['removeMarker'](_0x8def0['name']),_0x5c3e02['add'](_0x3c6014),_0x3e64e6=!0x0;const _0x990c71=_0x3c6014['nextSibling'],_0xdb7c1e=_0x3c6014['previousSibling'],_0x2543ad=_0x990c71&&_0x990c71['is']('element','tableCellSuggestion'),_0x192d2b=_0xdb7c1e&&_0xdb7c1e['is']('element','tableCellSuggestion');_0x2543ad&&!_0x5c3e02['has'](_0x990c71)&&_0x582779['add'](_0x990c71),_0x192d2b&&!_0x5c3e02['has'](_0xdb7c1e)&&_0x582779['add'](_0xdb7c1e);}else _0x3c6014['is']('element','paragraph')&&_0x3c6014['isEmpty']&&(_0x2e93f6['removeMarker'](_0x8def0['name']),_0x3e64e6=!0x0);}}else{if('tablePasteCell'==_0x2e93f6['subType']){if(!_0x2e93f6['attributes']||!_0x2e93f6['attributes']['tablePasteChainId'])continue;const _0x2b56d1=_0x2e93f6['attributes']['markerAttributes'];if(_0x2b56d1&&Object['keys'](_0x2b56d1)['length'])continue;const _0x2aec2d=_0x2e93f6['attributes']['tablePasteChainId'];let _0x483651=!0x0,_0x48f4b6=!0x0;for(const _0x13b3db of _0x1913be)if(_0x13b3db['subType']&&_0x13b3db['subType']['startsWith']('tablePaste')){if(!_0x13b3db['attributes']['tablePasteChainId']){_0x48f4b6=!0x1;break;}if(_0x13b3db['id']!=_0x2e93f6['id']&&_0x13b3db['attributes']['tablePasteChainId']==_0x2aec2d){_0x483651=!0x1;break;}}_0x48f4b6&&_0x483651&&(_0x2e93f6['removeMarkers'](),_0x3e64e6=!0x0);}}for(const _0x3732d2 of _0x5c3e02)_0x121a36['remove'](_0x3732d2);for(const _0x452372 of _0x582779)_0x121a36['unwrap'](_0x452372);return _0x3e64e6;}),_0x4a935c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2262b4=>_0x1ee4e7(_0x2262b4),'converterPriority':'high'}),_0x4a935c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5d9685,_0x280f2)=>_0x280f2['options']['showSuggestionHighlights']?_0x1ee4e7(_0x5d9685,!0x1):null,'converterPriority':'high'});const _0x338f09=_0x4a935c['editing']['view'];this['listenTo'](_0x338f09['document'],'clipboardOutput',(_0x4454ac,_0x14dcdb)=>{const _0x1d7053=[];for(const _0x2316ee of _0x338f09['createRangeIn'](_0x14dcdb['content'])['getItems']())_0x2316ee['is']('element','suggestion-td')&&_0x1d7053['push'](_0x2316ee);_0x338f09['change'](_0x22b950=>{for(const _0x296316 of _0x1d7053)_0x22b950['move'](_0x22b950['createRangeIn'](_0x296316),_0x22b950['createPositionBefore'](_0x296316)),_0x22b950['remove'](_0x296316);});});}}function ke(_0x2e480a){if(_0x2e480a['isEmpty'])return!0x0;const _0x11af02=_0x2e480a['getChild'](0x0);return _0x11af02['is']('element','paragraph')&&_0x11af02['isEmpty'];}function Re(_0x1ef4ad,_0x33e245={},_0x55d714){for(const {isAnchor:_0x37044c,cellHeight:_0x327373,cellWidth:_0x580335}of _0x55d714['createTableWalker'](_0x1ef4ad,{'includeAllSlots':!0x0,..._0x33e245}))if(!_0x37044c||0x1!=_0x327373||0x1!=_0x580335)return!0x1;return!0x0;}class Nt extends _0x30188a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x573f6a=this['editor']['plugins']['get']('TrackChangesEditing');_0x573f6a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x573f6a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x573f6a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x573f6a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x573f6a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x573f6a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4a7b99,_0x4191c6){const _0x493905=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ef707=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x6efc7f=_0x4191c6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2b094d=_0x2ef707['getColumnGroupElement'](_0x6efc7f);let _0x48368e=_0x2b094d?_0x2ef707['getTableColumnsWidths'](_0x2b094d):null,_0xa4e02b=_0x6efc7f['getAttribute']('tableWidth')||null;const _0x254f2c=_0x4191c6['tableWidth']||_0xa4e02b,_0x5400cc=_0x4191c6['columnWidths']||_0x48368e,_0x429c25=this['editor']['plugins']['get']('Users')['me'];for(const _0x266b26 of _0x493905['getSuggestions']()){const _0x4532e5=_0x266b26['getContainedElement']();if('resizeTable'===_0x266b26['subType']&&_0x4532e5===_0x6efc7f){_0x266b26['author']!==_0x429c25&&_0x266b26['discard']();const _0x46b9c=_0x266b26['data']['commandParams'];_0xa4e02b=_0x46b9c[0x0]['tableWidth'],_0x48368e=_0x46b9c[0x0]['columnWidths'];break;}}_0x4a7b99({'table':_0x6efc7f,'tableWidth':_0x254f2c,'columnWidths':_0x5400cc}),_0x493905['markBlockFormat'](_0x6efc7f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa4e02b,'columnWidths':_0x48368e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4bccc9){if('formatBlock'!=_0x4bccc9['type']&&'formatInline'!=_0x4bccc9['type'])return;const {data:_0x3f2abf}=_0x4bccc9;if(_0x3f2abf&&'resizeTable'===_0x3f2abf['formatGroupId']){const _0x15d13f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x15d13f)};}}}class Dt extends _0x30188a{['afterInit'](){const _0x297ccc=this['editor'];_0x297ccc['plugins']['has']('Template')&&_0x297ccc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x30188a{['afterInit'](){const _0x4644fe=this['editor'];if(!_0x4644fe['commands']['get']('insertTableOfContents'))return;_0x4644fe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59edcb=_0x4644fe['plugins']['get']('TrackChangesEditing'),_0xd0e827=_0x4644fe['locale'];_0x59edcb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x22c615=>o(_0xd0e827,'ELEMENT_TABLE_OF_CONTENTS',_0x22c615));}}class $t extends _0x30188a{['afterInit'](){const _0x10e168=this['editor'];if(!_0x10e168['plugins']['has']('Title'))return;const _0x5e9ae9=_0x10e168['plugins']['get']('TrackChangesEditing');_0x5e9ae9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x10e168['locale'],'ELEMENT_TITLE')),_0x10e168['model']['document']['registerPostFixer'](_0x1ba386=>{let _0x2157ae=!0x1;const _0x5831b6=Array['from'](_0x10e168['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22b907,data:_0x4d7a80}of _0x5831b6){const {group:_0x334c35}=_0x5e9ae9['_splitMarkerName'](_0x22b907);if('suggestion'!==_0x334c35||!_0x4d7a80['newRange'])continue;const _0x43b96a=_0x4d7a80['newRange'],_0x4079d8=_0x43b96a['end']['nodeBefore'];if(!_0x4079d8||!_0x4079d8['is']('element','title-content'))continue;if(!_0x43b96a['start']['isTouching'](_0x43b96a['end']))continue;const _0x5166f8=_0x10e168['model']['schema']['getNearestSelectionRange'](_0x43b96a['end'],'forward');if(_0x5166f8&&_0x5166f8['isCollapsed']){const _0x1bc9fb=_0x1ba386['createRange'](_0x43b96a['start'],_0x5166f8['start']);_0x1bc9fb['isEqual'](_0x43b96a)||(_0x1ba386['updateMarker'](_0x22b907,{'range':_0x1bc9fb}),_0x2157ae=!0x0);}_0x2157ae||(_0x1ba386['removeMarker'](_0x22b907),_0x2157ae=!0x0);}return _0x2157ae;});}}class Bt extends _0x30188a{['afterInit'](){const _0x13282a=this['editor'],_0x54ea90=_0x13282a['plugins']['get']('TrackChangesEditing');_0x13282a['plugins']['has']('UndoEditing')&&(_0x54ea90['enableCommand']('undo'),_0x54ea90['enableCommand']('redo'));}}class xt extends _0x30188a{static get['requires'](){return[It];}['afterInit'](){const _0x21f7d5=this['editor'];if(!_0x21f7d5['plugins']['has']('TableCaptionEditing'))return;_0x21f7d5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x30188a{['tableProperties'];['tableCellProperties'];constructor(_0xda18c8){super(_0xda18c8),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 _0x4f4f1d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x820f91 of this['tableProperties'])_0x4f4f1d['enableCommand'](_0x820f91,(_0x39929b,_0x3b6b53)=>{const _0x13fdc2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x820f91,[_0x13fdc2],this['tableProperties'],'tableProperties',_0x39929b,_0x3b6b53);});_0x4f4f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4f4f1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f4f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1013d5,_0x67fbdd)=>this['handleDiscardAction'](this['tableProperties'],_0x1013d5,_0x67fbdd)),_0x4f4f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f0dc4 of this['tableCellProperties'])_0x4f4f1d['enableCommand'](_0x1f0dc4,(_0x35758f,_0x405e23)=>{const _0x2b324c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f0dc4,_0x2b324c,this['tableCellProperties'],'tableCellProperties',_0x35758f,_0x405e23);});_0x4f4f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4f4f1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f4f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc216a3,_0x29fbe4)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc216a3,_0x29fbe4)),_0x4f4f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4f4f1d['descriptionFactory']['registerDescriptionCallback'](_0x2314ef=>this['handleSuggestionDescription'](_0x2314ef));}['_handlePropertyChange'](_0x232e6e,_0x1e12f9,_0x30e2b3,_0x9bc1ad,_0x163e8f,_0xca1121){const _0x1f9d05=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xca1121['batch'],()=>{for(const _0x4fb8c8 of _0x1e12f9){if(this['_getSuggestion'](_0x4fb8c8,_0x9bc1ad))_0x163e8f(_0xca1121);else{const _0xa9809b={};for(const _0x370138 of _0x30e2b3){const _0x3ff8b8=_0x4fb8c8['getAttribute'](_0x370138);void 0x0!==_0x3ff8b8&&(_0xa9809b[_0x370138]=_0x3ff8b8);}_0x163e8f(_0xca1121),_0x1f9d05['markBlockFormat'](_0x4fb8c8,{'commandParams':[_0xa9809b]},[],_0x9bc1ad);}}});}['handleDiscardAction'](_0x5811d0,_0x13ba9a,_0x1cb007){const _0x2128b4=_0x13ba9a[0x0]['start']['nodeAfter'],_0x37984b=_0x1cb007['commandParams'][0x0];this['editor']['model']['change'](_0xd31303=>{for(const _0x472b1e of _0x5811d0)void 0x0!==_0x37984b[_0x472b1e]?_0xd31303['setAttribute'](_0x472b1e,_0x37984b[_0x472b1e],_0x2128b4):_0xd31303['removeAttribute'](_0x472b1e,_0x2128b4);});}['handleSuggestionDescription'](_0x3a3442){if(_0x3a3442['data'])switch(_0x3a3442['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'](_0x298637,_0x1fa605){const _0x3bd27e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x35f8b6 of _0x3bd27e['getSuggestions']({'skipNotAttached':!0x0})){const _0x375632=_0x35f8b6['getContainedElement']();if(_0x35f8b6['subType']===_0x1fa605&&_0x375632===_0x298637)return _0x35f8b6;}return null;}}const m='$elementName';class p extends _0x30188a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1d31e6,_0x306155,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x473855){function _0x1d7697(_0x58f890){return _0x58f890['map'](_0x4f8a96=>String['fromCharCode'](_0x4f8a96))['join']('');}super(_0x473855),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x130bef,_0x4dce7c,_0x4f2c80,_0x45dcf0)=>{this['_model']['change'](()=>{for(const _0x5a063c of[..._0x45dcf0,..._0x4f2c80])this['_model']['markers']['has'](_0x5a063c)&&_0x473855['editing']['reconvertMarker'](_0x5a063c);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x473855['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(),_0x473855['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x473855['config']['get']('trackChanges.trackFormatChanges'),_0x473855['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x473855['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x473855,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1d7697([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d7697([0x34,0x30,0x34,0x38,0x32,0x30,0x35,0x36]);}['init'](){const _0x5427eb=this['editor'],_0x11b6d2=(_0x32ed52,_0x4e08c7)=>{if('attribute'!=_0x32ed52)return'ck-suggestion-marker-'+_0x32ed52;const _0x308b83=_0x4e08c7['split']('|')[0x0];return this['_isBlockAttribute'](_0x308b83)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5427eb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x39d7ee=>{const {id:_0xc25308,authorId:_0x4d4bf0,type:_0x3b998b,subType:_0x149cfc}=this['_splitMarkerName'](_0x39d7ee['markerName']),_0x11e84d=['ck-suggestion-marker',_0x11b6d2(_0x3b998b,_0x149cfc)];let _0x1be8f5=0xbb8;return this['activeMarkers']['includes'](_0x39d7ee['markerName'])&&(_0x11e84d['push']('ck-suggestion-marker--active'),_0x1be8f5=0xbc2),'deletion'==_0x3b998b&&(_0x1be8f5+=0x5),{'classes':_0x11e84d,'attributes':{'data-suggestion':_0xc25308,'data-author-id':_0x4d4bf0},'priority':_0x1be8f5};}}),_0x5427eb['conversion']['for']('dataDowncast')['add'](_0x24a01=>{_0x24a01['on']('addMarker:suggestion',(_0x28d2a5,_0x23c88e,_0x254464)=>{if(!_0x254464['options']['showSuggestionHighlights'])return;const _0x1ef87f=_0x23c88e['item'];if(!_0x1ef87f)return;const _0x5a97cd=_0x254464['mapper']['toViewElement'](_0x1ef87f);_0x5427eb['model']['schema']['isObject'](_0x1ef87f)&&_0x5a97cd&&!_0x5a97cd['getCustomProperty']('widget')&&_0x5a97cd['is']('containerElement')&&_0x127592(_0x5a97cd,_0x254464['writer']);},{'priority':'high'});}),_0x5427eb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x51bd71,_0x2a59d5)=>{if(!_0x2a59d5['options']['showSuggestionHighlights'])return null;const {type:_0x1ce9ef,subType:_0x331cb0}=this['_splitMarkerName'](_0x51bd71['markerName']);return{'classes':['ck-suggestion-marker',_0x11b6d2(_0x1ce9ef,_0x331cb0)],'priority':0xbb8};}});const _0x179d1c=({showActiveMarkers:_0x3a08e5=!0x0,isAttributeSuggestion:_0x5e451d=!0x1}={})=>(_0x39311e,_0x4ee5af,_0x845c10)=>{if(!_0x4ee5af['item'])return;const {id:_0x365bf2,authorId:_0x373965}=this['_splitMarkerName'](_0x4ee5af['markerName']);if(_0x5e451d){const _0xc6b32b=this['_suggestions']['get'](_0x365bf2),_0x257b83=this['_getAttributeKey'](_0xc6b32b);if(!this['_isBlockAttribute'](_0x257b83))return;}if(_0x4ee5af['item']['is']('selection'))return void _0x845c10['consumable']['consume'](_0x4ee5af['item'],_0x39311e['name']);const _0x1ae13f=_0x845c10['mapper']['toViewElement'](_0x4ee5af['item']);if(_0x4ee5af['item']['is']('element')&&_0x5427eb['model']['schema']['isBlock'](_0x4ee5af['item'])&&!_0x1ae13f['getCustomProperty']('addHighlight')){_0x845c10['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1ae13f),_0x845c10['writer']['setAttribute']('data-suggestion',_0x365bf2,_0x1ae13f),_0x845c10['writer']['setAttribute']('data-author-id',_0x373965,_0x1ae13f),_0x845c10['mapper']['bindElementToMarker'](_0x1ae13f,_0x4ee5af['markerName']),_0x3a08e5&&(this['activeMarkers']['includes'](_0x4ee5af['markerName'])?_0x845c10['writer']['addClass']('ck-suggestion-marker--active',_0x1ae13f):_0x845c10['writer']['removeClass']('ck-suggestion-marker--active',_0x1ae13f));for(const _0x3150d4 of _0x5427eb['model']['createRangeIn'](_0x4ee5af['item'])['getItems']())_0x845c10['consumable']['consume'](_0x3150d4,_0x39311e['name']);_0x845c10['consumable']['consume'](_0x4ee5af['item'],_0x39311e['name']);}};_0x5427eb['conversion']['for']('dataDowncast')['add'](_0x309ec7=>{_0x309ec7['on']('addMarker:suggestion:formatBlock',(_0x341f6b,_0x3c5cb0,_0x15631a)=>{_0x15631a['options']['showSuggestionHighlights']&&_0x179d1c({'showActiveMarkers':!0x1})(_0x341f6b,_0x3c5cb0,_0x15631a);},{'priority':'highest'});}),_0x5427eb['conversion']['for']('dataDowncast')['add'](_0x1fdb30=>{_0x1fdb30['on']('addMarker:suggestion:attribute',(_0x3588e7,_0xcd154,_0x313246)=>{_0x313246['options']['showSuggestionHighlights']&&_0x179d1c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3588e7,_0xcd154,_0x313246);},{'priority':'highest'});}),_0x5427eb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x561c5d,_0x2d7fbb)=>_0x2d7fbb['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x561c5d['substr'](0xb)}}),_0x5427eb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x546098,{writer:_0x8222b5})=>{let _0x1c59ad='suggestion:'+_0x546098['getAttribute']('suggestion-type')+':'+_0x546098['getAttribute']('id');return _0x546098['getAttribute']('marker-count')&&(_0x1c59ad+=':'+_0x546098['getAttribute']('marker-count')),_0x8222b5['createElement']('$marker',{'data-name':_0x1c59ad});}}),_0x5427eb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5427eb['conversion']['for']('editingDowncast')['add'](_0x33edd2=>{_0x33edd2['on']('addMarker:suggestion:formatBlock',_0x179d1c(),{'priority':'high'});}),_0x5427eb['conversion']['for']('editingDowncast')['add'](_0x19d1bb=>{_0x19d1bb['on']('addMarker:suggestion:attribute',_0x179d1c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5427eb['conversion']['for']('editingDowncast')['add'](_0x125dbc=>{_0x125dbc['on']('removeMarker:suggestion:formatBlock',(_0x16fc49,_0x317799,_0x214806)=>{const _0x5d27ed=_0x214806['mapper']['markerNameToElements'](_0x317799['markerName']);if(_0x5d27ed){for(const _0x3a5c08 of _0x5d27ed)_0x3a5c08['getCustomProperty']('addHighlight')||(_0x214806['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a5c08),_0x214806['writer']['removeAttribute']('data-suggestion',_0x3a5c08),_0x214806['writer']['removeAttribute']('data-author-id',_0x3a5c08),_0x214806['mapper']['unbindElementFromMarkerName'](_0x3a5c08,_0x317799['markerName']));}},{'priority':'high'});}),_0x5427eb['conversion']['for']('editingDowncast')['add'](_0x68e32e=>{_0x68e32e['on']('removeMarker:suggestion:attribute',(_0x3bf643,_0x3222a5,_0x5acaa0)=>{const _0x30fca6=_0x5acaa0['mapper']['markerNameToElements'](_0x3222a5['markerName']);if(!_0x30fca6)return;const {id:_0x3fcd76}=this['_splitMarkerName'](_0x3222a5['markerName']),_0x163c10=this['_suggestions']['get'](_0x3fcd76),_0x591b60=this['_getAttributeKey'](_0x163c10);if(this['_isBlockAttribute'](_0x591b60)){for(const _0xb2ede3 of _0x30fca6)_0xb2ede3['getCustomProperty']('addHighlight')||(_0x5acaa0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xb2ede3),_0x5acaa0['writer']['removeAttribute']('data-suggestion',_0xb2ede3),_0x5acaa0['writer']['removeAttribute']('data-author-id',_0xb2ede3),_0x5acaa0['mapper']['unbindElementFromMarkerName'](_0xb2ede3,_0x3222a5['markerName']));}},{'priority':'high'});}),_0x5427eb['model']['document']['registerPostFixer'](_0x84c7=>{let _0x87c498=!0x1;const _0x5e563d=Array['from'](_0x5427eb['model']['document']['differ']['getChangedMarkers']()),_0x1a595d=new Set();for(const {name:_0x1d198c,data:_0x7d17c9}of _0x5e563d){const {group:_0x31b7cf,type:_0x2e0a76,subType:_0x333385,id:_0x524f28}=this['_splitMarkerName'](_0x1d198c);if('suggestion'!==_0x31b7cf)continue;const _0x67940c=this['_suggestions']['get'](_0x524f28);if(null!=_0x7d17c9['newRange']){'formatInline'==_0x2e0a76&&(_0x87c498=_0x87c498||Ut(_0x7d17c9['newRange'],_0x1d198c,_0x84c7,_0x5427eb['model']['schema']));const _0x147088='attribute'==_0x2e0a76&&this['_isBlockAttribute'](_0x333385['split']('|')[0x0]);if(_0x7d17c9['newRange']['isCollapsed']||'$graveyard'==_0x7d17c9['newRange']['root']['rootName']||'formatBlock'==_0x2e0a76&&!Gt(_0x7d17c9['newRange'])||_0x147088&&!Gt(_0x7d17c9['newRange'])||'deletion'==_0x2e0a76&&!(!Vt(_0x4370be=_0x7d17c9['newRange'])&&!function(_0x22e643){return _0x22e643['start']['parent']==_0x22e643['end']['nodeBefore']&&_0x22e643['start']['isAtEnd'];}(_0x4370be)))_0x84c7['removeMarker'](_0x1d198c),_0x87c498=!0x0;else{if(!_0x67940c||!_0x67940c['isInContent'])continue;if(_0x7d17c9['newRange']&&_0x7d17c9['oldRange']&&_0x7d17c9['newRange']['isEqual'](_0x7d17c9['oldRange']))continue;_0x1a595d['add'](_0x67940c);}}}var _0x4370be;return _0x1a595d['size']>0x0&&(_0x87c498=!!this['_joinWithAdjacentSuggestions'](_0x1a595d)||_0x87c498),_0x87c498;}),_0x5427eb['model']['document']['registerPostFixer'](_0x1ac8b4=>{let _0x23f199=!0x1;for(const _0x4ebdf4 of _0x5427eb['model']['document']['differ']['getChanges']())if('insert'==_0x4ebdf4['type'])for(const _0x30de0c of this['_suggestions']['values']()){if(_0x30de0c['isMultiRange']||!_0x30de0c['isInContent'])continue;const _0x189d3d='formatBlock'==_0x30de0c['type'],_0x4c27c4=this['_getAttributeKey'](_0x30de0c),_0x265fdc=_0x4c27c4&&this['_isBlockAttribute'](_0x4c27c4);if(!_0x189d3d&&!_0x265fdc)continue;const _0x242778=_0x30de0c['getFirstRange']();if(_0x242778['start']['parent']!=_0x242778['end']['parent']&&!_0x242778['end']['isAtEnd']){const _0x4c5b51=_0x5427eb['model']['createPositionAt'](_0x242778['start']['nodeAfter'],'end'),_0x1c9294=_0x5427eb['model']['createRange'](_0x242778['start'],_0x4c5b51);_0x1ac8b4['updateMarker'](_0x30de0c['getFirstMarker'](),{'range':_0x1c9294}),_0x23f199=!0x0;}}return _0x23f199;}),_0x5427eb['model']['document']['registerPostFixer'](_0x5b2179=>this['_processAttributeChanges'](_0x5b2179)),_0x5427eb['model']['document']['registerPostFixer'](_0x620c07=>!_0x620c07['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x620c07)),_0x5427eb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5427eb['model']['document']['on']('change:data',(_0x413c7c,_0x2017a4)=>{if(!_0x2017a4['isLocal']||_0x2017a4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x86a741=_0x5427eb['model']['document']['differ']['getChanges']();if(0x0==_0x86a741['length'])return;const _0x23e34a=[],_0x338ea3=_0x86a741['filter'](_0x216abc=>'attribute'==_0x216abc['type']),_0x3d3951=_0x86a741['filter'](_0x5918ea=>'insert'==_0x5918ea['type']&&'$text'!=_0x5918ea['name']);for(const _0x26cc6c of _0x338ea3)this['_isRegisteredAttribute'](_0x26cc6c['attributeKey'])&&_0x23e34a['push']({'key':_0x26cc6c['attributeKey'],'newValue':_0x26cc6c['attributeNewValue'],'oldValue':_0x26cc6c['attributeOldValue'],'range':Ft(_0x26cc6c['range'],_0x5427eb['model'])});for(const _0x58a5b6 of _0x3d3951){if('rename'!=_0x58a5b6['action']&&'refresh'!=_0x58a5b6['action'])continue;const _0x5c8b9f=Lt(_0x58a5b6['position']['nodeAfter'],_0x5427eb['model']),_0x5b1280=_0x58a5b6['before'];'rename'==_0x58a5b6['action']&&_0x23e34a['push']({'key':m,'newValue':_0x58a5b6['name'],'oldValue':_0x5b1280['name'],'range':_0x5c8b9f});for(const [_0x368e53,_0xc793df]of _0x5b1280['attributes']){if(!this['_isRegisteredAttribute'](_0x368e53))continue;const _0x232640=_0x58a5b6['attributes']['get'](_0x368e53);_0xc793df!==_0x232640&&_0x23e34a['push']({'key':_0x368e53,'newValue':_0x232640,'oldValue':_0xc793df,'range':_0x5c8b9f});}for(const [_0x7b81a1,_0x2f4f55]of _0x58a5b6['attributes'])this['_isRegisteredAttribute'](_0x7b81a1)&&(_0x5b1280['attributes']['has'](_0x7b81a1)||_0x23e34a['push']({'key':_0x7b81a1,'newValue':_0x2f4f55,'oldValue':null,'range':_0x5c8b9f}));}0x0!=_0x23e34a['length']&&_0x5427eb['model']['enqueueChange'](_0x2017a4,_0x5bba7c=>{const _0x1f1a13=_0xadcd2f();for(const {range:_0x25e80a,key:_0x25271e,oldValue:_0x5df182,newValue:_0x426a37}of _0x23e34a)this['markAttributeChange'](_0x25e80a,_0x25271e,_0x5df182,_0x426a37,{'groupId':_0x1f1a13});this['_reduceExistingSuggestions'](_0x5bba7c,_0x23e34a);});},{'priority':'lowest'}),_0x5427eb['model']['markers']['on']('update:suggestion',(_0xca8e44,_0x56472f,_0x919673)=>{if(null==_0x919673){const {id:_0x2baa4c}=this['_splitMarkerName'](_0x56472f['name']),_0x52734a=this['_suggestions']['get'](_0x2baa4c);_0x52734a&&_0x52734a['addMarkerName'](_0x56472f['name']);}}),_0x5427eb['model']['document']['on']('change:data',()=>{const _0x578b4b=Array['from'](_0x5427eb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x37aebf=>'suggestion'===this['_splitMarkerName'](_0x37aebf['name'])['group']);if(0x0===_0x578b4b['length'])return;_0x578b4b['sort']((_0x14392c,_0x27da08)=>{const _0x49ca9e=_0x14392c['data']['oldRange'],_0x34db28=_0x27da08['data']['oldRange'];return null===_0x49ca9e&&null===_0x34db28?0x0:null===_0x49ca9e&&null!==_0x34db28?-0x1:null!==_0x49ca9e&&null===_0x34db28?0x1:_0x49ca9e['start']['isBefore'](_0x34db28['start'])?-0x1:0x1;});const _0x22f719=new Set(),_0x365f77=new Set();for(const {name:_0x1aa0a9,data:_0x1e98af}of _0x578b4b){const {id:_0x55211e}=this['_splitMarkerName'](_0x1aa0a9);if(null===_0x1e98af['oldRange']){const _0x49156a=this['_handleNewSuggestionMarker'](_0x1aa0a9);_0x365f77['add'](_0x49156a);}else{const _0x50c64e=this['_suggestions']['get'](_0x55211e);null!==_0x1e98af['newRange']||_0x50c64e['isInContent']?(_0x22f719['add'](_0x50c64e['head']),_0x365f77['add'](_0x50c64e)):this['_removeSuggestion'](_0x50c64e);}}_0x365f77['size']>0x0&&this['_refreshSuggestionsChain'](_0x365f77);for(const _0x548dc7 of _0x22f719)this['fire']('suggestionChanged',_0x548dc7);}),_0x5427eb['model']['on']('applyOperation',(_0x313d84,_0x2dd0ec)=>{const _0x348ddc=_0x2dd0ec[0x0];if(!this['_suggestions']['size'])return;if(!_0x348ddc['isDocumentOperation'])return;if(_0x348ddc['batch']['isUndo']||!_0x348ddc['batch']['isLocal'])return;let _0x3c097d,_0x495930;switch(_0x348ddc['type']){case'insert':_0x3c097d=_0x5427eb['model']['createPositionAt'](_0x348ddc['position']),_0x495930=_0x3c097d['getShiftedBy'](_0x348ddc['howMany']);break;case'split':_0x3c097d=_0x5427eb['model']['createPositionAt'](_0x348ddc['splitPosition']),_0x495930=_0x5427eb['model']['createPositionAt'](_0x348ddc['moveTargetPosition']);break;case'move':_0x3c097d=_0x5427eb['model']['createPositionAt'](_0x348ddc['targetPosition']),_0x495930=_0x3c097d['getShiftedBy'](_0x348ddc['howMany']);break;default:return;}const _0xa027ec=_0x5427eb['model']['createRange'](_0x3c097d,_0x495930);_0x5427eb['model']['change'](()=>{for(const {suggestion:_0x5ebc50,meta:_0x4a86ea}of this['_findSuggestions'](_0xa027ec)){if(_0x5ebc50['isMultiRange'])continue;if('formatInline'==_0x5ebc50['type'])continue;const _0x5c4f24=this['_getAttributeKey'](_0x5ebc50);if(_0x5c4f24&&this['_isBlockAttribute'](_0x5c4f24)&&'split'!=_0x348ddc['type'])continue;const _0x4465a1=_0x5ebc50['data']&&_0x5ebc50['data']['multipleBlocks'];('formatBlock'!=_0x5ebc50['type']||'split'==_0x348ddc['type']&&!_0x4465a1)&&(_0x4a86ea['containsRangeInObject']||'insertion'==_0x5ebc50['type']&&_0x4a86ea['isOwn']||_0x5ebc50['getFirstRange']()['containsRange'](_0xa027ec)&&this['_breakSuggestionMarker'](_0x5ebc50,_0x3c097d,_0x495930));}});},{'priority':'lowest'}),_0x5427eb['model']['on']('deleteContent',(_0x205e9b,_0x42289f)=>{const _0x27df22=_0x42289f[0x0],_0x4b8705=_0x42289f[0x1];if(_0x4b8705&&_0x4b8705['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x27df22['isCollapsed'])return;const _0x4663a9=_0x5427eb['model']['schema'],{start:_0x8dca5d,end:_0x20572d}=_0x27df22['getFirstRange'](),_0x1e111b=_0x8dca5d['nodeAfter']&&_0x4663a9['isLimit'](_0x8dca5d['nodeAfter'])?null:_0x4663a9['getNearestSelectionRange'](_0x8dca5d,'forward'),_0xcca97=_0x20572d['nodeBefore']&&_0x4663a9['isLimit'](_0x20572d['nodeBefore'])?null:_0x4663a9['getNearestSelectionRange'](_0x20572d,'backward'),_0x96a4d5=_0x5427eb['model']['createRange'](_0x1e111b?_0x1e111b['start']:_0x8dca5d,_0xcca97?_0xcca97['end']:_0x20572d);_0x5427eb['model']['change'](_0x4eda59=>{this['markDeletion'](_0x96a4d5);const _0x809a8=_0x5427eb['model']['schema']['getNearestSelectionRange'](_0x96a4d5['start']);_0x27df22['is']('documentSelection')?_0x4eda59['setSelection'](_0x809a8):_0x27df22['setTo'](_0x809a8);}),_0x205e9b['stop']();},{'priority':_0x45fb90['normal']+0xa}),_0x5427eb['model']['on']('insertContent',(_0x34339e,_0x554303)=>{const _0x2df1dd=_0x554303[_0x554303['length']-0x1];_0x2df1dd&&_0x2df1dd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5427eb['model']['change'](()=>{let _0x193fe3=_0x5427eb['model']['insertContent'](_0x554303[0x0],_0x554303[0x1],_0x554303[0x2],{'forceDefaultExecution':!0x0});if(!_0x193fe3)return;_0x34339e['return']=_0x193fe3['clone']();const _0x1cbc1f=_0x193fe3['end']['nodeBefore'],_0x529de7=_0x5427eb['model']['schema'];_0x1cbc1f&&_0x529de7['isBlock'](_0x1cbc1f)&&!_0x529de7['isObject'](_0x1cbc1f)&&(_0x193fe3=_0x5427eb['model']['createRange'](_0x193fe3['start'],_0x5427eb['model']['createPositionAt'](_0x1cbc1f,'end'))),this['markInsertion'](_0x193fe3);}),_0x34339e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4e2056=new x(_0x5427eb,this['_suggestions']);_0x5427eb['commands']['add']('acceptSuggestion',_0x4e2056),this['enableCommand']('acceptSuggestion');const _0x375240=new O(_0x5427eb,this['_suggestions']);_0x5427eb['commands']['add']('discardSuggestion',_0x375240),this['enableCommand']('discardSuggestion'),_0x5427eb['commands']['add']('acceptAllSuggestions',new R(_0x5427eb,_0x4e2056,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5427eb['commands']['add']('discardAllSuggestions',new R(_0x5427eb,_0x375240,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5427eb['commands']['add']('acceptSelectedSuggestions',new E(_0x5427eb,_0x4e2056,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5427eb['commands']['add']('discardSelectedSuggestions',new E(_0x5427eb,_0x375240,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5fbebe=_0x5427eb['plugins']['get']('CommentsRepository');this['listenTo'](_0x5fbebe,'addComment',(_0x33ac2f,{threadId:_0x525d4b})=>{const _0x2ff240=this['_suggestions']['get'](_0x525d4b);_0x2ff240&&_0x2ff240['commentThread']&&0x1===_0x2ff240['commentThread']['length']&&this['_updateSuggestionData'](_0x525d4b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5fbebe,'removeComment',(_0x513ea8,{threadId:_0x45e67b})=>{const _0x53a431=this['_suggestions']['get'](_0x45e67b);_0x53a431&&_0x53a431['commentThread']&&!_0x53a431['commentThread']['length']&&this['_updateSuggestionData'](_0x45e67b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3bfaf3){if(this['_adapter'])throw new _0x3a7afb('track-changes-adapter-already-set',this);this['_adapter']=_0x3bfaf3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x44abb0=!0x1,toJSON:_0x248657=!0x1}={}){const _0x1cdff4=[];for(const _0x52183a of this['_suggestions']['values']())_0x44abb0&&!_0x52183a['isInContent']||_0x1cdff4['push'](_0x52183a);return _0x248657?_0x1cdff4['map'](_0x27235d=>_0x27235d['toJSON']()):_0x1cdff4;}['getSuggestion'](_0x4e7e80){const _0x577026=this['_suggestions']['get'](_0x4e7e80);if(!_0x577026)throw new _0x3a7afb('track-changes-suggestion-not-found',this);return _0x577026;}['hasSuggestion'](_0x1a21c8){return this['_suggestions']['has'](_0x1a21c8);}['addSuggestionData'](_0x2fee4c){const {authorId:_0x346e92,id:_0x3566cd,attributes:_0x317e8e}=_0x2fee4c,[_0x29b27f,_0x5843d1]=_0x2fee4c['type']['split'](':'),_0x48a7f5=this['_suggestions']['get'](_0x3566cd)||this['_createSuggestion'](_0x29b27f,_0x5843d1,_0x3566cd,_0x346e92,_0x317e8e);if(this['_addThreadToSuggestion'](_0x48a7f5),this['_checkSuggestionCorrectness'](_0x48a7f5,_0x29b27f,_0x5843d1||null,_0x346e92),_0x48a7f5['createdAt']=_0x2fee4c['createdAt'],_0x48a7f5['_isDataLoaded']=!0x0,_0x317e8e&&_0x317e8e['@external']){const _0x5f53bd=_0x317e8e['@external'],_0x446dbd=this['_getExternalAuthor'](_0x5f53bd['authorName']);_0x48a7f5['authoredAt']=_0x5f53bd['createdAt'],_0x48a7f5['author']=_0x446dbd,_0x48a7f5['isExternal']=!0x0;}else _0x48a7f5['authoredAt']=_0x2fee4c['createdAt'];switch(_0x2fee4c['data']&&(_0x48a7f5['data']=_0x2fee4c['data']),_0x2fee4c['attributes']&&(_0x48a7f5['attributes']=_0x2fee4c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x48a7f5['_saved']=!0x0),this['_suggestionState']['get'](_0x48a7f5)){case'notReady':this['_suggestionState']['set'](_0x48a7f5,'dataReady');break;case'markerReady':_0x48a7f5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x48a7f5])),this['_refreshSuggestionsChain'](new Set([_0x48a7f5])),this['_suggestionState']['set'](_0x48a7f5,'ready'),this['fire']('suggestionLoaded',_0x48a7f5)):this['_suggestionState']['set'](_0x48a7f5,'removed');}return _0x48a7f5;}['acceptSuggestion'](_0x4722d8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5f262f of _0x4722d8['getAllAdjacentSuggestions']())_0x5f262f['accept']();});});}['discardSuggestion'](_0x37de65){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x33c97b of _0x37de65['getAllAdjacentSuggestions']())_0x33c97b['discard']();});});}['enableCommand'](_0x350885,_0x41b13f){const _0x12bcf1=this['editor']['commands']['get'](_0x350885);if(!_0x12bcf1)throw new _0x3a7afb('track-changes-command-not-found',this,{'commandName':_0x350885});if(this['_enabledCommands']['has'](_0x12bcf1))throw new _0x3a7afb('track-changes-enable-command-twice',this,{'commandName':_0x350885});this['_enabledCommands']['add'](_0x12bcf1),_0x41b13f&&_0x12bcf1['on']('execute',(_0x1c0865,_0x13ce67)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x13ce67['length']>0x0&&_0x13ce67[_0x13ce67['length']-0x1]&&_0x13ce67[_0x13ce67['length']-0x1]['forceDefaultExecution']?_0x13ce67['pop']():(_0x1c0865['return']=_0x41b13f((..._0x142311)=>_0x12bcf1['execute'](..._0x142311,{'forceDefaultExecution':!0x0}),..._0x13ce67),_0x1c0865['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4537a9){let _0xa963bc,_0x39e7a0;const _0x22c757=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xa963bc=_0x4537a9();}catch(_0x2e8551){_0x39e7a0=_0x2e8551;}return _0x22c757||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x39e7a0&&_0x3a7afb['rethrowUnexpectedError'](_0x39e7a0,this),_0xa963bc;}['markInsertion'](_0x475a89,_0x34542f=null,_0x3d1491={}){if(_0x475a89['isCollapsed'])return null;const _0x624e16=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3054d3,meta:_0x5e4582}of this['_findSuggestions'](_0x475a89,'insertion'))if(_0x5e4582['isOwn']){if(!_0x5e4582['isNextTo']){if(_0x5e4582['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3054d3,_0x3d1491))continue;return _0x3054d3;}if(qt(_0x3054d3,_0x3d1491))return _0x3054d3;this['_breakSuggestionMarker'](_0x3054d3,_0x475a89['start'],_0x475a89['end']);break;}if(_0x34542f==_0x3054d3['subType']&&qt(_0x3054d3,_0x3d1491)){const _0x5752c9=_0x3054d3['getFirstRange']();return _0x5752c9['start']['isEqual'](_0x475a89['end'])?this['_setSuggestionRange'](_0x3054d3,this['_model']['createRange'](_0x475a89['start'],_0x5752c9['end'])):this['_setSuggestionRange'](_0x3054d3,this['_model']['createRange'](_0x5752c9['start'],_0x475a89['end'])),_0x3054d3;}}const _0x42e47b=_0xadcd2f(),_0x1e7270=_0x624e16['id'],_0x36b5a6=_0x34542f?'insertion:'+_0x34542f:'insertion',_0x467599=this['_setSuggestionData']({'id':_0x42e47b,'type':_0x36b5a6,'createdAt':new Date(),'authorId':_0x1e7270,'attributes':_0x3d1491});return this['_addSuggestionMarker'](_0x36b5a6,_0x42e47b,_0x1e7270,_0x475a89),_0x467599;}['markMultiRangeInsertion'](_0x1d4bc3,_0x13f6da='multi',_0x476a50={}){const _0x2913d4=this['editor']['plugins']['get']('Users')['me'],_0x276d31=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x13f6da,'join');for(const _0x2fdefb of this['getSuggestions']())if(_0x2fdefb['author']['id']==_0x2913d4['id']&&'insertion'==_0x2fdefb['type']&&_0x2fdefb['subType']==_0x13f6da&&qt(_0x2fdefb,_0x476a50)&&(_0x276d31(_0x2fdefb['getRanges'](),_0x1d4bc3)||_0x276d31(_0x1d4bc3,_0x2fdefb['getRanges']()))){for(const _0xe473c9 of _0x1d4bc3)_0x2fdefb['addRange'](_0xe473c9);return _0x2fdefb;}for(const {suggestion:_0xcc634c,meta:_0x404e97}of this['_findSuggestions'](_0x1d4bc3,'insertion')){if(!_0x404e97['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x404e97['containsRangeInObject'])continue;if(!qt(_0xcc634c,_0x476a50))continue;let _0x1910a2=!0x0;for(const _0x110767 of _0xcc634c['getRanges']())for(const _0x39710c of _0x1d4bc3)if(!_0x110767['containsRange'](_0x39710c)){_0x1910a2=!0x1;break;}if(_0x1910a2)return _0xcc634c;}const _0x80363f=_0xadcd2f(),_0x95fedd=_0x2913d4['id'],_0x26674d='insertion:'+_0x13f6da,_0x46e6e0=this['_setSuggestionData']({'id':_0x80363f,'type':_0x26674d,'createdAt':new Date(),'authorId':_0x95fedd,'attributes':_0x476a50});for(const _0x4875e7 of _0x1d4bc3)this['_addSuggestionMarker'](_0x26674d,_0x80363f,_0x95fedd,_0x4875e7,u['getMultiRangeId']());return _0x46e6e0;}['markInlineFormat'](_0x3096bd,_0x2d9417,_0x1c26ac=null,_0x425cf6={}){if(_0x1c26ac=_0x1c26ac||Pt(_0x2d9417),_0x3096bd['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x592cb4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1c26ac,'accept');return this['forceDefaultExecution'](()=>_0x592cb4([_0x3096bd],_0x2d9417,_0x425cf6)),null;}const _0x4047c0=this['editor']['plugins']['get']('Users')['me'],_0x3ad95d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x452bce,meta:_0x55d631}of this['_findSuggestions'](_0x3096bd,'insertion'))_0x55d631['isOwn']&&!_0x55d631['isInsideObject']&&_0x3ad95d['push'](..._0x452bce['getRanges']());}const _0x82e7eb=function(_0x3e3c54,_0x4a3cbe){const _0x24cb5d=[];for(const _0x5897f4 of _0x4a3cbe){const _0x37455f=_0x3e3c54['getIntersection'](_0x5897f4);_0x37455f&&_0x24cb5d['push'](_0x37455f);}return _0x24cb5d;}(_0x3096bd,_0x3ad95d),_0x1f4c10=function(_0x18115d,_0x102574){const _0x130f23=[_0x18115d];for(const _0x28f20c of _0x102574){let _0x146a75=0x0;for(;_0x146a75<_0x130f23['length'];){const _0x43d59c=_0x130f23[_0x146a75]['getDifference'](_0x28f20c);_0x130f23['splice'](_0x146a75,0x1,..._0x43d59c),_0x146a75+=_0x43d59c['length'];}}return _0x130f23;}(_0x3096bd,_0x3ad95d);_0x82e7eb['length']&&this['_model']['change'](()=>{for(const _0x1ceba5 of _0x82e7eb){const _0x3b9aa2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1c26ac,'accept');this['forceDefaultExecution'](()=>_0x3b9aa2([_0x1ceba5],_0x2d9417,_0x425cf6));}});for(const _0x132893 of _0x1f4c10){let _0x2777b4=null,_0x59a270=_0x132893['start'],_0x156bc1=_0x132893['end'];for(const {suggestion:_0x4efde1,meta:_0x1d3eb2}of this['_findSuggestions'](_0x132893,'formatInline')){if(!_0x1d3eb2['isOwn'])continue;if(_0x4efde1['subType']!=_0x1c26ac)continue;if(!qt(_0x4efde1,_0x425cf6))continue;const _0x4b0620=_0x4efde1['getFirstRange']();if(_0x4b0620['containsRange'](_0x132893,!0x0))return null;_0x59a270=_0x59a270['isBefore'](_0x4b0620['start'])?_0x59a270:_0x4b0620['start'],_0x156bc1=_0x156bc1['isAfter'](_0x4b0620['end'])?_0x156bc1:_0x4b0620['end'],_0x2777b4?_0x4b0620['start']['isBefore'](_0x2777b4['getFirstRange']()['start'])?(_0x2777b4['removeMarkers'](),_0x2777b4=_0x4efde1):_0x4efde1['removeMarkers']():_0x2777b4=_0x4efde1;}const _0x4e93b9=this['_model']['createRange'](_0x59a270,_0x156bc1);if(_0x2777b4)this['_setSuggestionRange'](_0x2777b4,_0x4e93b9);else{const _0x4c8000=_0xadcd2f(),_0x2ef5bc=_0x4047c0['id'];this['_setSuggestionData']({'id':_0x4c8000,'type':'formatInline:'+_0x1c26ac,'data':_0x2d9417,'createdAt':new Date(),'authorId':_0x2ef5bc,'attributes':_0x425cf6}),this['_addSuggestionMarker']('formatInline:'+_0x1c26ac,_0x4c8000,_0x2ef5bc,_0x4e93b9);}}return null;}['markBlockFormat'](_0x8a9c86,_0x5685b0,_0x48cd52=[],_0x245ecf=null,_0x291186={}){_0x5685b0['formatGroupId']||(_0x5685b0['formatGroupId']=_0x5685b0['commandName']),_0x5685b0['multipleBlocks']=_0x8a9c86['is']('range'),_0x245ecf=_0x245ecf||Pt(_0x5685b0);const _0x567c7d=_0x48cd52['map'](_0x2d26a3=>Lt(_0x2d26a3,this['_model'])),_0x579f50=_0x8a9c86['is']('range')?_0x8a9c86:Lt(_0x8a9c86,this['_model']);if('never'===this['_trackFormatChanges']){const _0x485313=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x245ecf,'accept');return this['forceDefaultExecution'](()=>_0x485313([_0x579f50],_0x5685b0,_0x291186)),null;}_0x567c7d['push'](_0x579f50);let _0x56a66a=!0x0;for(const _0xaa13eb of _0x567c7d)if(!this['_rangeIsInLocalUserInsertion'](_0xaa13eb)){_0x56a66a=!0x1;break;}if(_0x56a66a&&'always'!==this['_trackFormatChanges']){const _0x2d7b9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x245ecf,'accept');return this['forceDefaultExecution'](()=>_0x2d7b9c([_0x579f50],_0x5685b0,_0x291186)),null;}let _0x4c6b7f=null,_0x724a8=_0x579f50['start'],_0x3c3f4c=_0x579f50['end'];for(const {suggestion:_0x128ced,meta:_0x42fa59}of this['_findSuggestions'](_0x579f50,'formatBlock')){if(!_0x42fa59['isOwn'])continue;if(_0x42fa59['isNextTo']||_0x42fa59['containsRangeInObject']||_0x42fa59['isInsideObject'])continue;if(_0x128ced['data']['formatGroupId']!=_0x5685b0['formatGroupId'])continue;if(!qt(_0x128ced,_0x291186))continue;const _0x17ea51=_0x128ced['getFirstRange']();if(_0x128ced['subType']==_0x245ecf){if(_0x17ea51['containsRange'](_0x579f50,!0x0))return null;_0x724a8=_0x724a8['isBefore'](_0x17ea51['start'])?_0x724a8:_0x17ea51['start'],_0x3c3f4c=_0x3c3f4c['isAfter'](_0x17ea51['end'])?_0x3c3f4c:_0x17ea51['end'],_0x4c6b7f?_0x17ea51['start']['isBefore'](_0x4c6b7f['getFirstRange']()['start'])?(_0x4c6b7f['removeMarkers'](),_0x4c6b7f=_0x128ced):_0x128ced['removeMarkers']():_0x4c6b7f=_0x128ced;}else{const _0x5bd780=_0x579f50['getIntersection'](_0x17ea51);this['_cutOutSuggestionMarker'](_0x128ced,_0x5bd780);}}const _0x3e59a6=this['editor']['plugins']['get']('Users')['me'],_0x576033=_0xadcd2f(),_0x2172cf=_0x3e59a6['id'];if(_0x4c6b7f)return this['_setSuggestionRange'](_0x4c6b7f,this['_model']['createRange'](_0x724a8,_0x3c3f4c)),_0x4c6b7f;{const _0x30a6f0=this['_setSuggestionData']({'id':_0x576033,'type':'formatBlock:'+_0x245ecf,'data':_0x5685b0,'createdAt':new Date(),'authorId':_0x2172cf,'attributes':_0x291186});return this['_addSuggestionMarker']('formatBlock:'+_0x245ecf,_0x576033,_0x2172cf,this['_model']['createRange'](_0x724a8,_0x3c3f4c)),_0x30a6f0;}}['markMultiRangeBlockFormat'](_0x230a8e,_0x27ae4d,_0x1e901b=[],_0x186209=null,_0x3459aa={}){_0x27ae4d['formatGroupId']||(_0x27ae4d['formatGroupId']=_0x27ae4d['commandName']);const _0x4973e3=_0x230a8e[0x0];_0x27ae4d['multipleBlocks']=_0x4973e3['is']('range'),_0x186209=_0x186209||Pt(_0x27ae4d);const _0x109157=_0x1e901b['map'](_0xf2a891=>Lt(_0xf2a891,this['_model'])),_0x52629f=_0x4973e3['is']('range')?_0x230a8e:_0x230a8e['map'](_0x56b1c1=>Lt(_0x56b1c1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1daeb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x186209,'accept');return this['forceDefaultExecution'](()=>_0x1daeb6(_0x52629f,_0x27ae4d,_0x3459aa)),null;}_0x109157['push'](..._0x52629f);let _0x402ce8=!0x0;for(const _0x3aef46 of _0x109157)if(!this['_rangeIsInLocalUserInsertion'](_0x3aef46)){_0x402ce8=!0x1;break;}if(_0x402ce8&&'always'!==this['_trackFormatChanges']){const _0x2ccf61=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x186209,'accept');return this['forceDefaultExecution'](()=>_0x2ccf61(_0x52629f,_0x27ae4d,_0x3459aa)),null;}const _0x304a2f=this['editor']['plugins']['get']('Users')['me'];for(const _0x25ab75 of this['getSuggestions']()){if(_0x25ab75['author']['id']!=_0x304a2f['id'])continue;if('formatBlock'!=_0x25ab75['type']||_0x25ab75['data']['formatGroupId']!=_0x27ae4d['formatGroupId'])continue;if(!qt(_0x25ab75,_0x3459aa))continue;const _0x2b1a93=_0x25ab75['subType']==_0x186209;for(let _0x480f79=0x0;_0x480f79<_0x52629f['length'];_0x480f79++){const _0x4c96fa=_0x52629f[_0x480f79];for(const _0x20900c of _0x25ab75['getMarkers']()){const _0x217d96=_0x20900c['getRange']();if(_0x4c96fa['isEqual'](_0x217d96)){_0x2b1a93?(_0x52629f['splice'](_0x480f79,0x1),_0x480f79--):_0x25ab75['removeMarker'](_0x20900c['name']);break;}}}}if(0x0==_0x52629f['length'])return null;const _0xe644f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x186209,'join');for(const _0x502c29 of this['getSuggestions']())if(_0x502c29['author']['id']==_0x304a2f['id']&&'formatBlock'==_0x502c29['type']&&_0x502c29['data']['formatGroupId']==_0x27ae4d['formatGroupId']&&_0x502c29['subType']==_0x186209&&qt(_0x502c29,_0x3459aa)&&(_0xe644f2(_0x502c29['getRanges'](),_0x52629f)||_0xe644f2(_0x52629f,_0x502c29['getRanges']()))){for(const _0x3aab13 of _0x52629f)_0x502c29['addRange'](_0x3aab13);return _0x502c29;}const _0x68697b=_0xadcd2f(),_0x2c18f2=_0x304a2f['id'],_0x5d0fb7='formatBlock:'+_0x186209,_0x1b6340=this['_setSuggestionData']({'id':_0x68697b,'type':_0x5d0fb7,'data':_0x27ae4d,'createdAt':new Date(),'authorId':_0x2c18f2,'attributes':_0x3459aa});for(const _0x150317 of _0x52629f)this['_addSuggestionMarker'](_0x5d0fb7,_0x68697b,_0x2c18f2,_0x150317,u['getMultiRangeId']());return _0x1b6340;}['markDeletion'](_0x4db731,_0x12ca78=null,_0x19a43f={}){if(_0x4db731['isCollapsed'])return null;const _0x3ddedb=this['editor']['plugins']['get']('Users')['me'],_0x2c6aa8=new _0x5de9d6(_0x4db731['start'],_0x4db731['end']);for(const {suggestion:_0xecbee4,meta:_0x2ba600}of this['_findSuggestions'](_0x2c6aa8,'insertion'))if(_0x2ba600['isOwn']&&!_0x2ba600['isNextTo']){if(_0xecbee4['isMultiRange']){const _0x290c2b=_0xecbee4['getRanges']()['filter'](_0x1e952a=>'$graveyard'!=_0x1e952a['root']['rootName']);_0x290c2b['every'](_0x235182=>_0x2c6aa8['containsRange'](_0x235182,!0x0))&&_0xecbee4['discard']();if(_0x290c2b['some'](_0x5782e5=>_0x5782e5['containsRange'](_0x2c6aa8,!0x0))){const _0x46ddfc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12ca78,'accept');return this['forceDefaultExecution'](()=>_0x46ddfc([_0x2c6aa8],null,_0x19a43f)),null;}}else{const _0x3b9a17=_0x2c6aa8['getIntersection'](_0xecbee4['getFirstRange']());null!==_0x3b9a17&&_0xecbee4['_onDiscard']([_0x3b9a17],null,_0x19a43f);}}if(_0x2c6aa8['detach'](),_0x2c6aa8['isCollapsed']||'$graveyard'==_0x2c6aa8['root']['rootName'])return null;let _0x3ac2df=null,_0x2de37d=_0x2c6aa8['start'],_0x4c8346=_0x2c6aa8['end'];const _0x4e660b=this['_findSuggestions'](_0x2c6aa8,'deletion');for(const {suggestion:_0x10eefd,meta:_0x45de31}of _0x4e660b){const _0x4b31e6=this['_model']['createRange'](_0x2de37d,_0x4c8346);if(_0x45de31['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45de31['containsRangeInObject']&&!_0x45de31['isInsideObject'])){if(_0x10eefd['isMultiRange']){if(!qt(_0x10eefd,_0x19a43f))continue;let _0x1d83d8=!0x0;for(const _0x184443 of _0x10eefd['getRanges']()){if(_0x184443['containsRange'](_0x4b31e6,!0x0))return _0x10eefd;_0x4b31e6['containsRange'](_0x184443)||(_0x1d83d8=!0x1);}_0x1d83d8&&_0x10eefd['discard']();}else{const _0x4998c0=_0x10eefd['getFirstRange']();if(_0x4998c0['containsRange'](_0x4b31e6,!0x0))return _0x10eefd;if(!qt(_0x10eefd,_0x19a43f)){_0x4b31e6['containsRange'](_0x4998c0)?_0x10eefd['removeMarkers']():_0x4998c0['containsPosition'](_0x2de37d)?_0x2de37d=_0x4998c0['end']:_0x4998c0['containsPosition'](_0x4c8346)&&(_0x4c8346=_0x4998c0['start']);continue;}_0x2de37d=_0x2de37d['isBefore'](_0x4998c0['start'])?_0x2de37d:_0x4998c0['start'],_0x4c8346=_0x4c8346['isAfter'](_0x4998c0['end'])?_0x4c8346:_0x4998c0['end'],_0x19a43f=Object['assign']({},_0x10eefd['attributes']),_0x3ac2df?_0x4998c0['start']['isBefore'](_0x3ac2df['getFirstRange']()['start'])?(_0x3ac2df['removeMarkers'](),_0x3ac2df=_0x10eefd):_0x10eefd['removeMarkers']():_0x3ac2df=_0x10eefd;}}}if(_0x3ac2df)return this['_setSuggestionRange'](_0x3ac2df,this['_model']['createRange'](_0x2de37d,_0x4c8346)),_0x3ac2df;{const _0x39bfb5=_0xadcd2f(),_0x553023=this['_model']['createRange'](_0x2de37d,_0x4c8346),_0x2a8211=_0x3ddedb['id'],_0x5b04c3=_0x12ca78?'deletion:'+_0x12ca78:'deletion',_0x250ace=this['_setSuggestionData']({'id':_0x39bfb5,'type':_0x5b04c3,'createdAt':new Date(),'authorId':_0x2a8211,'attributes':_0x19a43f});return this['_addSuggestionMarker'](_0x5b04c3,_0x39bfb5,_0x2a8211,_0x553023),_0x250ace;}}['markMultiRangeDeletion'](_0x29c0df,_0x551a22='multi',_0x3e1358={}){const _0x4c6196=this['editor']['plugins']['get']('Users')['me'],_0x4b7651=_0x29c0df['map'](_0x3066fd=>new _0x5de9d6(_0x3066fd['start'],_0x3066fd['end'])),_0x49b442=new Set();for(const {suggestion:_0x4c6f69,meta:_0x43b094}of this['_findSuggestions'](_0x4b7651,'insertion'))_0x43b094['isOwn']&&!_0x43b094['isNextTo']&&_0x49b442['add'](_0x4c6f69);for(const _0x3e6e64 of _0x49b442)if(_0x3e6e64['isMultiRange']){const _0x3d99b6=_0x3e6e64['getRanges']();(!_0x3e6e64['attributes']||!_0x3e6e64['attributes']['skipNestingCheck'])&&(_0x3d99b6['every'](_0x2ca816=>_0x4b7651['some'](_0x2a2aa6=>_0x2a2aa6['containsRange'](_0x2ca816,!0x0)))&&_0x3e6e64['discard']());if(_0x4b7651['every'](_0x152fc8=>_0x3d99b6['some'](_0x59c251=>_0x59c251['containsRange'](_0x152fc8,!0x0)))){const _0x4a5528=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x551a22,'accept');return this['forceDefaultExecution'](()=>_0x4a5528(_0x29c0df,null,_0x3e1358)),null;}}else{const _0x4dc604=_0x3e6e64['getFirstRange']();_0x4b7651['some'](_0x44302a=>_0x44302a['containsRange'](_0x4dc604,!0x0))&&_0x3e6e64['discard']();if(_0x4b7651['every'](_0x10bb26=>_0x4dc604['containsRange'](_0x10bb26,!0x0))){const _0x18cbc8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x551a22,'accept');return this['forceDefaultExecution'](()=>_0x18cbc8(_0x4b7651,null,_0x3e1358)),null;}}const _0x1350c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x551a22,'join');let _0x21c6b1=null;for(const _0xb84ab2 of this['getSuggestions']())if(_0xb84ab2['author']['id']==_0x4c6196['id']&&_0xb84ab2['isInContent']&&'deletion'==_0xb84ab2['type']&&_0xb84ab2['subType']==_0x551a22&&qt(_0xb84ab2,_0x3e1358)&&(_0x1350c4(_0xb84ab2['getRanges'](),_0x4b7651)||_0x1350c4(_0x4b7651,_0xb84ab2['getRanges']()))){if(_0x21c6b1){if(_0xb84ab2['commentThread']&&_0xb84ab2['commentThread']['length'])continue;for(const _0x5e115b of _0xb84ab2['getRanges']())_0x21c6b1['isIntersectingWithRange'](_0x5e115b)||_0x21c6b1['addRange'](_0x5e115b);_0xb84ab2['removeMarkers']();}else{_0x21c6b1=_0xb84ab2;for(const _0x5d8973 of _0x4b7651)_0xb84ab2['isIntersectingWithRange'](_0x5d8973)||_0xb84ab2['addRange'](_0x5d8973);}}if(_0x21c6b1)return _0x21c6b1;_0x49b442['clear']();for(const {suggestion:_0x229bcf,meta:_0x356685}of this['_findSuggestions'](_0x4b7651,'deletion'))_0x356685['isOwn']&&(this['_mergeNestedSuggestions']||!_0x356685['containsRangeInObject']&&!_0x356685['isInsideObject'])&&qt(_0x229bcf,_0x3e1358)&&_0x49b442['add'](_0x229bcf);for(const _0x497b58 of _0x49b442){const _0x4a1af7=_0x497b58['getRanges']();if(!_0x3e1358||!_0x3e1358['skipNestingCheck']){if(_0x4b7651['every'](_0x268003=>_0x4a1af7['some'](_0x53ab06=>_0x53ab06['containsRange'](_0x268003,!0x0))))return _0x497b58;}(!_0x497b58['attributes']||!_0x497b58['attributes']['skipNestingCheck'])&&(_0x4a1af7['every'](_0x34f40c=>_0x4b7651['some'](_0x2bb0f9=>_0x2bb0f9['containsRange'](_0x34f40c,!0x0)))&&_0x497b58['discard']());}const _0x437462=_0xadcd2f(),_0x508182=_0x4c6196['id'],_0x12db3e='deletion:'+_0x551a22,_0x16bc96=this['_setSuggestionData']({'id':_0x437462,'type':_0x12db3e,'createdAt':new Date(),'authorId':_0x508182,'attributes':_0x3e1358});for(const _0xab8a3e of _0x4b7651)_0xab8a3e['detach'](),_0xab8a3e['isCollapsed']||'$graveyard'==_0xab8a3e['root']['rootName']||this['_addSuggestionMarker'](_0x12db3e,_0x437462,_0x508182,_0xab8a3e,u['getMultiRangeId']());return _0x16bc96;}['markAttributeChange'](_0x212c02,_0x57145a,_0x3149a5,_0x4ce426,_0x2e3952){if(_0x212c02['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x372f20=this['editor']['plugins']['get']('Users')['me']['id'],_0x3103d9=Array['from'](this['_suggestions']['values']())['filter'](_0x83e4d0=>'attribute'==_0x83e4d0['type']&&_0x83e4d0['data']['key']==_0x57145a&&_0x83e4d0['isIntersectingWithRange'](_0x212c02));if('default'===this['_trackFormatChanges']){const _0x25887b=this['_findSuggestions'](_0x212c02,'insertion')['filter'](({meta:_0x478440})=>_0x478440['isOwn']&&!_0x478440['isInsideObject']&&!_0x478440['isNextTo'])['map'](({suggestion:_0x1f2557})=>_0x1f2557);_0x3103d9['unshift'](..._0x25887b);}const _0x36a412=new Map([[_0x212c02,_0x3149a5]]);for(const _0x5b7ea0 of _0x3103d9){const _0x15b644='attribute'==_0x5b7ea0['type']?_0x5b7ea0['data']['oldValue']:void 0x0,_0x5001c4=_0x5b7ea0['getFirstRange'](),_0x4ea271=Array['from'](_0x36a412['keys']())['find'](_0xb683f4=>_0xb683f4['isIntersecting'](_0x5001c4));if(!_0x4ea271)continue;const _0xb43e7f=_0x4ea271['getDifference'](_0x5001c4);this['_isBlockAttribute'](_0x57145a)&&'insertion'==_0x5b7ea0['type']&&0x0!=_0xb43e7f['length']||(_0x36a412['delete'](_0x4ea271),_0xb43e7f['forEach'](_0x56c418=>{_0x36a412['set'](_0x56c418,_0x3149a5);}),'insertion'!=_0x5b7ea0['type']&&_0x15b644!=_0x4ce426&&_0x36a412['set'](_0x4ea271['getIntersection'](_0x5001c4),_0x15b644));}const _0x4f7616=[];for(const [_0x4dbc4d,_0x180b72]of _0x36a412){const _0x218899=_0xadcd2f(),_0x503710={'key':_0x57145a,'oldValue':_0x180b72,'newValue':_0x4ce426};_0x57145a['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':_0x57145a});const _0x115763=('attribute:'+(_0x57145a+'|'+Pt({'newValue':_0x4ce426})))['substring'](0x0,0x3c),_0xf080a4=this['_setSuggestionData']({'id':_0x218899,'type':_0x115763,'data':_0x503710,'createdAt':new Date(),'authorId':_0x372f20,'attributes':_0x2e3952});_0x4f7616['push'](_0xf080a4),this['_addSuggestionMarker'](_0x115763,_0x218899,_0x372f20,_0x4dbc4d);}return _0x4f7616;}['enableDefaultAttributesIntegration'](_0x5193c0){this['enableCommand'](_0x5193c0,(_0x27b6d3,..._0x54fbbd)=>{this['_recordAttributeChanges'](()=>{_0x27b6d3(..._0x54fbbd);});});}['registerBlockAttribute'](_0x92df87){this['_blockAttributeKeys']['add'](_0x92df87);}['registerInlineAttribute'](_0x4368bb){this['_inlineAttributeKeys']['add'](_0x4368bb);}['_getAttributeKey'](_0x4c0c95){return'attribute'==_0x4c0c95['type']?_0x4c0c95['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x500c5f,_0x203fc1){const _0x4e128b=_0x500c5f['getFirstMarker']();this['_model']['change'](_0x4d5ba0=>{_0x4d5ba0['updateMarker'](_0x4e128b,{'range':_0x203fc1});});}['_addThreadToSuggestion'](_0x4b853d){const _0x16ceaa=_0x4b853d['id'],_0xc1d5f0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x16ceaa)||this['_commentsRepository']['addCommentThread']({'channelId':_0xc1d5f0,'threadId':_0x16ceaa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x41d559=this['_commentsRepository']['getCommentThread'](_0x16ceaa);_0x41d559['unbind']('isRemovable'),_0x41d559['isRemovable']=!0x1,_0x4b853d['commentThread']=_0x41d559;}['_checkSuggestionCorrectness'](_0x20dadd,_0xe57406,_0x5c60df,_0x11e387){if(_0x20dadd['type']!=_0xe57406||_0x20dadd['subType']!=_0x5c60df||_0x20dadd['creator']['id']!=_0x11e387)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3a7afb('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x33a9eb,_0x1e0db2){const _0x153def=_0x33a9eb['getFirstRange']();if(_0x1e0db2['isEqual'](_0x153def))_0x33a9eb['removeMarkers']();else{if(_0x153def['containsRange'](_0x1e0db2)){const _0x462df7=this['_model']['createPositionAt'](_0x1e0db2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33a9eb,this['_model']['createRange'](_0x153def['start'],_0x462df7));const _0x5e47f0=_0xadcd2f(),_0x490068=_0x33a9eb['creator']['id'],_0x5a9e82=_0x33a9eb['type']+':'+_0x33a9eb['subType'];this['_setSuggestionData']({'id':_0x5e47f0,'type':_0x5a9e82,'createdAt':new Date(),'authorId':_0x490068,'data':_0x33a9eb['data'],'attributes':_0x33a9eb['attributes']});const _0x483820=this['_model']['createPositionAt'](_0x1e0db2['end']['parent'],'after'),_0x32e874=this['_model']['createRange'](_0x483820,_0x153def['end']);this['_addSuggestionMarker'](_0x5a9e82,_0x5e47f0,_0x490068,_0x32e874);}else{if(_0x153def['containsPosition'](_0x1e0db2['start'])){const _0x3bc571=this['_model']['createPositionAt'](_0x1e0db2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33a9eb,this['_model']['createRange'](_0x153def['start'],_0x3bc571));}else{const _0x1445d2=this['_model']['createPositionAt'](_0x1e0db2['end']['parent'],'after');this['_setSuggestionRange'](_0x33a9eb,this['_model']['createRange'](_0x1445d2,_0x153def['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4e391e){for(const {suggestion:_0x150a5f,meta:_0x5e93eb}of this['_findSuggestions'](_0x4e391e,'insertion')){if(!_0x5e93eb['isOwn'])continue;const _0xe826e9=_0x150a5f['getRanges']();for(const _0x3f023c of _0xe826e9)if(!_0x4e391e['getDifference'](_0x3f023c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5b649e){const _0x5ceb53=this['editor']['plugins']['get']('Users')['getUser'](_0x5b649e);if(!_0x5ceb53)throw new _0x3a7afb('track-changes-user-not-found',this);return _0x5ceb53;}['_getExternalAuthor'](_0x31f9c8){const _0x531523=this['editor']['plugins']['get']('Users'),_0x281ed9=_0x12c7fd('external:'+_0x31f9c8),_0x17981f=_0x531523['getUser'](_0x281ed9);return _0x17981f||_0x531523['addUser']({'id':_0x281ed9,'name':_0x31f9c8});}['_createSuggestion'](_0x3c5261,_0x1f67de,_0xa6b5d,_0x259270,_0x3b67a7){const _0x2b492e=this['_getAuthorFromId'](_0x259270),_0x2bb9f9=this['_suggestionFactory']['buildSuggestion'](_0x3c5261,_0x1f67de,_0xa6b5d,_0x2b492e,_0x3b67a7,_0x1296ea=>{this['_updateSuggestionData'](_0xa6b5d,{'attributes':_0x1296ea});const _0x420cc6=this['getSuggestion'](_0xa6b5d);this['_joinWithAdjacentSuggestions'](new Set([_0x420cc6])),this['_refreshSuggestionsChain'](new Set([_0x420cc6]));});return this['listenTo'](_0x2bb9f9,'accept',()=>{this['_updateSuggestionData'](_0xa6b5d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2bb9f9,'discard',()=>{this['_updateSuggestionData'](_0xa6b5d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xa6b5d,_0x2bb9f9),this['_suggestionState']['set'](_0x2bb9f9,'notReady'),_0x2bb9f9;}['_splitMarkerName'](_0x16b294){const _0x369183=_0x16b294['split'](':');return{'group':_0x369183[0x0],'type':_0x369183[0x1],'subType':_0x369183['length']>=0x5?_0x369183[0x2]:null,'id':_0x369183['length']<0x5?_0x369183[0x2]:_0x369183[0x3],'authorId':_0x369183['length']<0x5?_0x369183[0x3]:_0x369183[0x4],'markerCount':0x6==_0x369183['length']?_0x369183[0x5]:null};}['_breakSuggestionMarker'](_0x4050fa,_0x1e958e,_0x5ac128){const _0x2ebb51=_0x4050fa['getFirstRange'](),_0x22c36d=_0x2ebb51['start'],_0x176885=_0x2ebb51['end'];this['_setSuggestionRange'](_0x4050fa,this['_model']['createRange'](_0x22c36d,_0x1e958e));const _0x2d3a53=_0xadcd2f(),_0x1fc4a3=_0x4050fa['creator']['id'],_0x4c47d1=_0x4050fa['type']+(_0x4050fa['subType']?':'+_0x4050fa['subType']:'');this['_setSuggestionData']({'id':_0x2d3a53,'type':_0x4c47d1,'createdAt':new Date(),'authorId':_0x1fc4a3,'originalSuggestionId':_0x4050fa['id'],'attributes':_0x4050fa['attributes'],'data':_0x4050fa['data']});const _0x1331f8=this['_getAttributeKey'](_0x4050fa);('formatBlock'==_0x4050fa['type']||_0x1331f8&&this['_isBlockAttribute'](_0x1331f8))&&(_0x5ac128=this['_model']['createPositionBefore'](_0x5ac128['parent'])),this['_addSuggestionMarker'](_0x4c47d1,_0x2d3a53,_0x1fc4a3,this['_model']['createRange'](_0x5ac128,_0x176885));}['_findSuggestions'](_0x32293c,_0x286a72=null){const _0x11e983=[],_0x5b0bfa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x32293c)||(_0x32293c=[_0x32293c]);for(const _0x5dd976 of this['getSuggestions']()){if(!_0x5dd976['isInContent'])continue;if(_0x286a72&&_0x5dd976['type']!=_0x286a72)continue;let _0x1a480b=!0x1;for(const _0x22ee05 of _0x5dd976['getRanges']()){for(const _0x36f1e5 of _0x32293c){const _0x2814bd=_0x36f1e5['start']['isEqual'](_0x22ee05['end'])||_0x36f1e5['end']['isEqual'](_0x22ee05['start']);if(_0x2814bd||_0x36f1e5['getIntersection'](_0x22ee05)){const _0x5eeff0=_0x36f1e5['containsRange'](_0x22ee05)&&Et(this['_model']['schema'],_0x22ee05['start'],_0x36f1e5),_0x213989=_0x22ee05['containsRange'](_0x36f1e5)&&Et(this['_model']['schema'],_0x36f1e5['start'],_0x22ee05);_0x11e983['push']({'suggestion':_0x5dd976,'meta':{'isOwn':_0x5b0bfa==_0x5dd976['author'],'isNextTo':_0x2814bd,'isInsideObject':_0x5eeff0,'containsRangeInObject':_0x213989}}),_0x1a480b=!0x0;break;}}if(_0x1a480b)break;}}return _0x11e983;}['_addSuggestionMarker'](_0x1acdfc,_0x34136f,_0x310b3d,_0x547b36,_0x36dca0){this['_model']['change'](_0x3fe80c=>{let _0x47effe='suggestion:'+_0x1acdfc+':'+_0x34136f+':'+_0x310b3d;_0x36dca0&&(_0x47effe=_0x47effe+':'+_0x36dca0),_0x3fe80c['addMarker'](_0x47effe,{'range':_0x547b36,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x302db5){const _0x213d48=_0x302db5['previous'],_0x28f473=_0x302db5['next'];_0x302db5['previous']=null,_0x302db5['next']=null,null!=_0x213d48&&_0x213d48['next']==_0x302db5&&(_0x213d48['next']=_0x28f473),null!=_0x28f473&&_0x28f473['previous']==_0x302db5&&(_0x28f473['previous']=_0x213d48),'ready'==this['_suggestionState']['get'](_0x302db5)&&(this['_suggestionState']['set'](_0x302db5,'removed'),this['fire']('suggestionUnloaded',_0x302db5,_0x213d48,_0x28f473));}['_setSuggestionData'](_0x443734){const _0xe84ce5=_0x443734['id'],_0x572466=this['addSuggestionData'](_0x443734);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x27ff16=this['editor']['plugins']['get']('PendingActions'),_0x1fd541=_0x572466['hasComments'],_0x3cca58=_0x572466['subType']?_0x572466['type']+':'+_0x572466['subType']:_0x572466['type'],_0x5a2129=this['editor']['locale'],_0xbc40be=_0x27ff16['add'](o(_0x5a2129,'PENDING_ACTION_SUGGESTION')),_0x25d0cd={'id':_0xe84ce5,'type':_0x3cca58,'hasComments':_0x1fd541,'data':_0x443734['data']||null,'originalSuggestionId':_0x443734['originalSuggestionId']||null,'attributes':_0x572466['attributes']};this['_adapter']['addSuggestion'](_0x25d0cd)['then'](_0x19ac16=>{_0x572466['_saved']=!0x0,_0x27ff16['remove'](_0xbc40be),_0x19ac16&&_0x19ac16['createdAt']&&(this['_suggestions']['get'](_0xe84ce5)['createdAt']=_0x19ac16['createdAt']);})['catch'](_0x2b159f=>{throw _0x2e1b81('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x572466['discard']();}),_0x572466['stopListening'](),this['_suggestions']['delete'](_0x572466['id']),this['_suggestionState']['delete'](_0x572466),_0x2b159f;});}return _0x572466;}['_isBlockAttribute'](_0x496197){return this['_blockAttributeKeys']['has'](_0x496197);}['_updateSuggestionData'](_0x4978b8,_0x4ab2dc){const _0x2c528b=this['editor']['plugins']['get']('PendingActions'),_0x42c929=this['getSuggestion'](_0x4978b8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x42c929['_saved']){const _0x5b882c=_0x2c528b['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4978b8,_0x4ab2dc)['then'](()=>{_0x2c528b['remove'](_0x5b882c);});}else _0x42c929['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4978b8,_0x4ab2dc);});}}['_getSuggestionData'](_0x262823){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3a7afb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x262823);}['_handleNewSuggestionMarker'](_0x136532){const {id:_0xc0306b,type:_0x487a1a,subType:_0x466c58,authorId:_0x580891}=this['_splitMarkerName'](_0x136532),_0x31640f=this['_suggestions']['get'](_0xc0306b)||this['_createSuggestion'](_0x487a1a,_0x466c58,_0xc0306b,_0x580891,{});switch(this['_checkSuggestionCorrectness'](_0x31640f,_0x487a1a,_0x466c58,_0x580891),this['_suggestionState']['get'](_0x31640f)){case'notReady':this['_getSuggestionData'](_0xc0306b)['then'](_0x307357=>{let _0x5bbeba=Promise['resolve']();_0x307357['hasComments']&&(_0x5bbeba=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc0306b})),_0x5bbeba['then'](()=>{this['addSuggestionData'](_0x307357)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x31640f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc0306b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x31640f,'ready'),this['fire']('suggestionLoaded',_0x31640f);break;case'ready':this['fire']('suggestionChanged',_0x31640f);}return _0x31640f['addMarkerName'](_0x136532),_0x31640f;}['_refreshSuggestionsChain'](_0xcf7b9f){const _0x318f89=Array['from'](_0xcf7b9f),_0x3228ec=_0x318f89['filter'](_0x30bfbe=>'attribute'==_0x30bfbe['type']);this['_refreshAttributeSuggestionsChain'](_0x3228ec);const _0xcd8e50=_0x318f89['filter'](_0x207380=>!_0x207380['isMultiRange']&&'attribute'!=_0x207380['type']),_0x546d32=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7cc574=>!_0x7cc574['isMultiRange']&&'attribute'!=_0x7cc574['type']),_0x1dcda5=_0x546d32['filter'](_0x470fc0=>!_0xcf7b9f['has'](_0x470fc0)),_0x53d7ee=new Map(_0x546d32['map'](_0xd543fa=>[_0xd543fa,this['_suggestionFactory']['getSuggestionCallback'](_0xd543fa['type'],_0xd543fa['subType'],'chain')])),_0x37c467=new Map(_0x546d32['map'](_0x422257=>[_0x422257,_0x422257['getFirstRange']()])),_0xff4721=new Set(),_0x10c207=new Set();for(let _0x2b6f31=0x0;_0x2b6f31<_0xcd8e50['length'];_0x2b6f31++)_0x274c4d(_0xcd8e50[_0x2b6f31],_0xcd8e50,_0x2b6f31+0x1);for(let _0x2d6e01=0x0;_0x2d6e01<_0xcd8e50['length'];_0x2d6e01++)_0x274c4d(_0xcd8e50[_0x2d6e01],_0x1dcda5,0x0);const _0x1a40f7=new Set();for(let _0x49420b=0x0;_0x49420b<_0xcd8e50['length'];_0x49420b++){const _0x50a276=_0xcd8e50[_0x49420b];!_0x10c207['has'](_0x50a276)&&_0x50a276['previous']&&(_0x1a40f7['add'](_0x50a276['previous']),_0x50a276['previous']['next']===_0x50a276&&(_0x50a276['previous']['next']=null),_0x50a276['previous']=null),!_0xff4721['has'](_0x50a276)&&_0x50a276['next']&&(_0x1a40f7['add'](_0x50a276['next']),_0x50a276['next']['previous']===_0x50a276&&(_0x50a276['next']['previous']=null),_0x50a276['next']=null);}function _0x274c4d(_0xbdccfa,_0x725e5c,_0x3952de){for(let _0xce50c8=_0x3952de;_0xce50c8<_0x725e5c['length'];_0xce50c8++){const _0x214bf5=_0x49c3a8(_0xbdccfa,_0x725e5c[_0xce50c8]);_0x214bf5&&(_0x214bf5[0x0]['next']=_0x214bf5[0x1],_0x214bf5[0x1]['previous']=_0x214bf5[0x0],_0xff4721['add'](_0x214bf5[0x0]),_0x10c207['add'](_0x214bf5[0x1]));}}function _0x49c3a8(_0x15e5da,_0x14f402){if(_0x15e5da['author']['id']!==_0x14f402['author']['id'])return null;const _0x2c37db=_0x53d7ee['get'](_0x15e5da)(_0x15e5da,_0x14f402,_0x37c467['get'](_0x15e5da),_0x37c467['get'](_0x14f402));if(!_0x2c37db)return null;return _0x53d7ee['get'](_0x14f402)(_0x15e5da,_0x14f402,_0x37c467['get'](_0x15e5da),_0x37c467['get'](_0x14f402))?_0x2c37db[0x1]['commentThread']&&_0x2c37db[0x1]['commentThread']['length']?null:_0x2c37db:null;}_0x1a40f7['size']&&this['_refreshSuggestionsChain'](_0x1a40f7);}['_refreshAttributeSuggestionsChain'](_0x1e7721){if(0x0==_0x1e7721['length'])return;const _0x27f88e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d082a=>'attribute'==_0x2d082a['type']&&_0x2d082a['_isDataLoaded']),_0x3265d8=[],_0x4de6d5=new Map();for(const _0x3ab576 of _0x27f88e){const _0x554795=_0x12c7fd(_0x3ab576['attributes']);_0x4de6d5['has'](_0x554795)||(_0x4de6d5['set'](_0x554795,_0x3265d8['length']),_0x3265d8['push']([]));const _0xb8d1c7=_0x4de6d5['get'](_0x554795);_0x3265d8[_0xb8d1c7]['push'](_0x3ab576);}!(function(){_0x3265d8['sort']((_0x1129a2,_0xa278e9)=>{const _0x2d7c79=_0x1129a2[0x0]['createdAt'],_0x219d0f=_0xa278e9[0x0]['createdAt'];return _0x2d7c79==_0x219d0f?_0x1129a2[0x0]['attributes']['groupId']<_0xa278e9[0x0]['attributes']['groupId']?-0x1:0x1:_0x2d7c79<_0x219d0f?-0x1:0x1;});for(const _0x1c3137 of _0x3265d8)_0x1c3137['sort']((_0x36da15,_0x258033)=>_0x36da15['id']<_0x258033['id']?-0x1:0x1);}());for(let _0x598370=0x0;_0x598370<_0x3265d8['length'];_0x598370++){if(0x0==_0x3265d8[_0x598370]['length'])continue;const _0x143f3c=[];for(let _0x300c21=_0x598370+0x1;_0x300c21<_0x3265d8['length'];_0x300c21++)0x0!=_0x3265d8[_0x300c21]['length']&&_0x11c9a2(_0x3265d8[_0x598370],_0x3265d8[_0x300c21])&&_0x143f3c['push'](_0x300c21);for(const _0xa7a31d of _0x143f3c)_0x3265d8[_0x598370]=_0x3265d8[_0x598370]['concat'](_0x3265d8[_0xa7a31d]),_0x3265d8[_0xa7a31d]=[];}for(const _0x31f337 of _0x3265d8)for(let _0x1265ef=0x0;_0x1265ef<_0x31f337['length'];_0x1265ef++){const _0x24016a=_0x31f337[_0x1265ef+0x1]||null;_0x31f337[_0x1265ef]['next']!==_0x24016a&&(_0x31f337[_0x1265ef]['next']=_0x24016a);}for(const _0x30ca6d of _0x3265d8)for(let _0x3ef271=0x0;_0x3ef271<_0x30ca6d['length'];_0x3ef271++){const _0x2ccfb5=_0x30ca6d[_0x3ef271-0x1]||null;_0x30ca6d[_0x3ef271]['previous']!==_0x2ccfb5&&(_0x30ca6d[_0x3ef271]['previous']=_0x2ccfb5);}function _0x11c9a2(_0x52268e,_0x585e2a){if(_0x52268e[0x0]['attributes']['groupId']!==_0x585e2a[0x0]['attributes']['groupId']&&_0x52268e[0x0]['author']!==_0x585e2a[0x0]['author'])return!0x1;if(!function(_0xb9430a,_0x115305){if(!_0xb9430a['hasComments']&&!_0x115305['hasComments'])return!0x0;if(_0xb9430a['hasComments']&&_0x115305['hasComments'])return!0x1;if(_0xb9430a['hasComments']&&_0x115305['createdAt']<_0xb9430a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x115305['hasComments']&&_0xb9430a['createdAt']<_0x115305['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x52268e[0x0],_0x585e2a[0x0]))return!0x1;const _0x1d017b=Rt(_0x52268e[0x0]['attributes'],'groupId'),_0x58dbe4=Rt(_0x585e2a[0x0]['attributes'],'groupId');if(!_0x58efdc(_0x1d017b,_0x58dbe4))return!0x1;return!!_0x52268e['every'](_0x2d8f31=>_0x585e2a['some'](_0x908951=>_0x2d8f31['getFirstRange']()['isEqual'](_0x908951['getFirstRange']())))&&_0x585e2a['every'](_0x1152be=>_0x52268e['some'](_0x291064=>_0x1152be['getFirstRange']()['isEqual'](_0x291064['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5778e4){const _0x394048=Array['from'](_0x5778e4),_0x5b46d4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2c5785=_0x5b46d4['filter'](_0x56abe7=>!_0x5778e4['has'](_0x56abe7)),_0xf20a8f=new Map(_0x394048['map'](_0x47ba9f=>[_0x47ba9f,this['_suggestionFactory']['getSuggestionCallback'](_0x47ba9f['type'],_0x47ba9f['subType'],'join')])),_0x12e6e1=new Map(_0x5b46d4['map'](_0x447c1c=>[_0x447c1c,_0x447c1c['getRanges']()]));for(let _0x2dcaa7=0x0;_0x2dcaa7<_0x394048['length'];_0x2dcaa7++){if(_0x17d812(this,_0x394048[_0x2dcaa7],_0x394048,_0x2dcaa7+0x1))return!0x0;}for(let _0x517443=0x0;_0x517443<_0x394048['length'];_0x517443++){if(_0x17d812(this,_0x394048[_0x517443],_0x2c5785,0x0))return!0x0;}return!0x1;function _0x17d812(_0x590485,_0x4bb145,_0xca7c61,_0x855b71){for(let _0x508acf=_0x855b71;_0x508acf<_0xca7c61['length'];_0x508acf++){const _0x5993f8=_0xca7c61[_0x508acf];if(_0x5993f8['type']!==_0x4bb145['type']||_0x5993f8['author']['id']!==_0x4bb145['author']['id']||_0x5993f8['subType']!==_0x4bb145['subType'])continue;if(!Jt(_0x4bb145,_0x5993f8))continue;if('attribute'==_0x4bb145['type']&&_0x4bb145['data']['oldValue']!=_0x5993f8['data']['oldValue'])continue;if('attribute'==_0x4bb145['type']&&_0x590485['_isBlockAttribute'](_0x4bb145['data']['key']))continue;if('formatBlock'==_0x4bb145['type']){const _0x14427e=_0x590485['editor']['model'],_0x2eb0c6=_0x4bb145['getContainedElement']();if(_0x2eb0c6&&(_0x14427e['schema']['isObject'](_0x2eb0c6)||_0x14427e['schema']['isLimit'](_0x2eb0c6)))continue;}const _0x2d42d4=_0xf20a8f['get'](_0x4bb145),_0x1474bc=_0x12e6e1['get'](_0x4bb145),_0xf1422e=_0x12e6e1['get'](_0x5993f8),_0x26f47e=_0x4bb145['commentThread']&&_0x4bb145['commentThread']['length'],_0x2fcce9=_0x5993f8['commentThread']&&_0x5993f8['commentThread']['length'];if(!_0x26f47e&&_0x2d42d4(_0xf1422e,_0x1474bc))return _0x590485['_joinSuggestions'](_0x5993f8,_0x4bb145),_0x12e6e1['delete'](_0x4bb145),!0x0;if(!_0x2fcce9&&_0x2d42d4(_0x1474bc,_0xf1422e))return _0x590485['_joinSuggestions'](_0x4bb145,_0x5993f8),_0x12e6e1['delete'](_0x5993f8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4f9f46,_0x2c751){if(_0x4f9f46['isMultiRange']){for(const _0x2d8b83 of _0x2c751['getRanges']())_0x4f9f46['addRange'](_0x2d8b83);}else{const _0x3a6bfd=_0x2c751['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4f9f46,this['_model']['createRange'](_0x4f9f46['getFirstRange']()['start'],_0x3a6bfd));}_0x2c751['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11408e,_0x14a35b,_0x18fac5){const _0xdc5bbe=_0x11408e['startsWith']('format')||_0x11408e['startsWith']('attribute')?'FORMATTING':_0x11408e['toUpperCase']();return o(this['editor']['locale'],_0x14a35b+'_'+_0xdc5bbe+'_SUGGESTION_ANNOUNCEMENT',_0x18fac5);}['_initAriaMarkerChangeAnnouncements'](){const _0x5f595d=this['editor'];if(!_0x5f595d['ui'])return;const {ariaLiveAnnouncer:_0x1add58}=_0x5f595d['ui'];_0x2bf9d2(this['_model'],({left:_0x11b601,entered:_0x34d1e6})=>{for(const _0x51d75e of _0x11b601){const {group:_0x39a4e3,type:_0x3ee21b}=this['_splitMarkerName'](_0x51d75e['name']);if('suggestion'===_0x39a4e3){_0x1add58['announce'](this['_getMarkerAnnouncementText'](_0x3ee21b,'LEAVE'));break;}}for(const _0x34f68a of _0x34d1e6){const {group:_0x209ae1,type:_0x4b26fc}=this['_splitMarkerName'](_0x34f68a['name']);if('suggestion'===_0x209ae1){_0x1add58['announce'](this['_getMarkerAnnouncementText'](_0x4b26fc,'ENTER',_0x359385(_0x118620)));break;}}});}['_processAttributeChanges'](_0x38e8cb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5b19be=this['editor'],_0x51b155=_0x5b19be['model']['document']['differ']['getChanges']();if(0x0==_0x51b155['length'])return!0x1;const _0x22541c=[],_0x1452f4=_0x51b155['filter'](_0x2ab7a6=>'attribute'==_0x2ab7a6['type']),_0x49df4d=_0x51b155['filter'](_0x1db0c8=>'insert'==_0x1db0c8['type']&&'$text'!=_0x1db0c8['name']),_0x3701a3=_0x51b155['filter'](_0x536d82=>'remove'==_0x536d82['type']&&'$text'!=_0x536d82['name']);for(const _0x5a9f31 of _0x1452f4)_0x22541c['push']({'key':_0x5a9f31['attributeKey'],'newValue':_0x5a9f31['attributeNewValue'],'oldValue':_0x5a9f31['attributeOldValue'],'range':Ft(_0x5a9f31['range'],_0x5b19be['model'])});for(const _0x5849ea of _0x49df4d){const _0x4f96a7=_0x3701a3['find'](_0xdca53b=>_0xdca53b['position']['isEqual'](_0x5849ea['position']));_0x4f96a7&&_0x22541c['push']({'key':m,'newValue':_0x5849ea['name'],'oldValue':_0x4f96a7['name'],'range':_0x5b19be['model']['createRangeOn'](_0x5849ea['position']['nodeAfter'])});}return 0x0!=_0x22541c['length']&&this['_reduceExistingSuggestions'](_0x38e8cb,_0x22541c);}['_processAttributeSuggestions'](_0x29b2db){let _0x462f33=!0x1;const _0x3ac1ff=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5126a2=>_0x5126a2['data']['newRange']&&_0x5126a2['name']['startsWith']('suggestion:attribute:'));for(const _0x17ae1e of _0x3ac1ff){const {subType:_0x344caf,id:_0x87fbc7}=this['_splitMarkerName'](_0x17ae1e['name']),_0x4d9436=_0x344caf['split']('|')[0x0];for(const _0x54da2b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x54da2b['id']!=_0x87fbc7&&'attribute'==_0x54da2b['type']&&_0x54da2b['data']&&_0x54da2b['data']['key']==_0x4d9436&&_0x54da2b['getFirstRange']()['isIntersecting'](_0x17ae1e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x54da2b,_0x17ae1e['data']['newRange'],_0x29b2db),_0x462f33=!0x0);}return _0x462f33;}['_recordAttributeChanges'](_0xed2acb){this['_recordAttributeSuggestions']=!0x0,_0xed2acb();}['_isRegisteredAttribute'](_0x44ab57){const _0x8804f8=this['_isBlockAttribute'](_0x44ab57),_0x1693f8=this['_inlineAttributeKeys']['has'](_0x44ab57);return _0x8804f8||_0x1693f8;}['_reduceExistingSuggestions'](_0x49d1a0,_0xf1c5af){if(0x0==_0xf1c5af['length'])return!0x1;let _0x152dc1=!0x1;for(const _0x2814a8 of _0xf1c5af){const _0x32ae4d=this['_findSuggestions'](_0x2814a8['range'],'attribute')['filter'](_0x3d8e28=>!_0x3d8e28['meta']['isNextTo'])['map'](_0x44db66=>_0x44db66['suggestion']),_0x1822d3=_0x12c7fd({'newValue':_0x2814a8['newValue']});_0x32ae4d['filter'](_0xc211b9=>{const [_0x4461e5,_0x4c5d13]=_0xc211b9['subType']['split']('|');return _0x4461e5==_0x2814a8['key']&&_0x4c5d13!=_0x1822d3;})['forEach'](_0x580788=>{this['_reduceSuggestionAttributeRange'](_0x580788,_0x2814a8['range'],_0x49d1a0),_0x152dc1=!0x0;});}return _0x152dc1;}['_reduceSuggestionAttributeRange'](_0x180896,_0x519ea9,_0x20b020){const _0x568275=_0x180896['getFirstRange']()['getDifference'](_0x519ea9);0x0!==_0x568275['length']?0x1!==_0x568275['length']?this['_breakSuggestionMarker'](_0x180896,_0x519ea9['start'],_0x519ea9['end']):this['_setSuggestionRange'](_0x180896,_0x568275[0x0]):_0x20b020['removeMarker'](_0x180896['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4cf141){this['_editor']=_0x4cf141,this['_model']=_0x4cf141['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x595aa9,_0x184169,_0x2ce6a9,_0x3e1fa8,_0x212cf6,_0xa178ba){return new u(this['_model'],{'type':_0x595aa9,'subType':_0x184169,'id':_0x2ce6a9,'author':_0x3e1fa8,'creator':_0x3e1fa8,'attributes':_0x212cf6,'onAttributesChange':_0xa178ba,'onAccept':(..._0x1a6625)=>this['getSuggestionCallback'](_0x595aa9,_0x184169,'accept')(..._0x1a6625),'onDiscard':(..._0x365778)=>this['getSuggestionCallback'](_0x595aa9,_0x184169,'discard')(..._0x365778)});}['registerCustomCallback'](_0xf87972,_0x11cf1c,_0xf43bf6,_0x460b58){const _0x553a53=_0xf87972+':'+_0x11cf1c+':'+_0xf43bf6;this['_customCallbacks']['set'](_0x553a53,_0x460b58);}['getSuggestionCallback'](_0x437b3a,_0x3dcdf0,_0x2a5619){const _0x2e5c51=_0x437b3a+':'+_0x3dcdf0+':'+_0x2a5619;return this['_customCallbacks']['get'](_0x2e5c51)||this['_defaultCallbacks']['get'](_0x437b3a+':'+_0x2a5619);}['_registerDefaultCallbacks'](){const _0x536d8f=()=>!0x1,_0x53bf4a=_0x3eb4d8=>{_0x3eb4d8['sort']((_0x2ba9ff,_0x37702a)=>_0x2ba9ff['start']['isBefore'](_0x37702a['start'])?0x1:-0x1),this['_model']['change'](_0x275a82=>{for(const _0x3fd828 of _0x3eb4d8){let _0x541bc0;_0x541bc0=_0x3fd828['end']['isAtEnd']&&_0x3fd828['end']['parent']==_0x3fd828['start']['nodeAfter']?_0x275a82['createSelection'](_0x3fd828['start']['nodeAfter'],'on'):_0x275a82['createSelection'](_0x3fd828),this['_model']['deleteContent'](_0x541bc0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x50eb68=(_0x135a50,_0x170400)=>{_0x170400&&this['_model']['change'](_0x43485b=>{const {commandName:_0x3926b8,commandParams:_0x4461a3=[]}=_0x170400,_0x29f9cb=_0x135a50['map'](_0x189ab4=>(Vt(_0x189ab4)&&(_0x189ab4=this['_model']['createRange'](_0x189ab4['end'])),_0x189ab4))['filter'](_0x3136f0=>'$graveyard'!==_0x3136f0['root']['rootName']);if(_0x29f9cb['length']<0x1)return;const _0x558c1c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x150018=>_0x5de9d6['fromRange'](_0x150018));_0x43485b['setSelection'](_0x29f9cb);for(const _0x23cfa5 of this['_editor']['commands']['commands']())_0x23cfa5['refresh']();_0x4461a3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3926b8,..._0x4461a3);const _0x32b1be=_0x558c1c['filter'](_0x41f689=>'$graveyard'!=_0x41f689['root']['rootName']);_0x32b1be['length']>0x0&&_0x43485b['setSelection'](_0x32b1be);for(const _0x4e1be7 of _0x558c1c)_0x4e1be7['detach']();});},_0x3d4efb=(_0x515700,_0x5d13da)=>0x1==_0x515700['length']&&0x1==_0x5d13da['length']&&_0x515700[0x0]['end']['isEqual'](_0x5d13da[0x0]['start']),_0x53c999=(_0x3a4899,_0x21d348,_0x5538f8,_0x253bd5)=>Ht(_0x3a4899,_0x21d348,_0x5538f8,_0x253bd5,this['_model'])?[_0x3a4899,_0x21d348]:Ht(_0x21d348,_0x3a4899,_0x253bd5,_0x5538f8,this['_model'])?[_0x21d348,_0x3a4899]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x536d8f),this['_defaultCallbacks']['set']('insertion:discard',_0x53bf4a),this['_defaultCallbacks']['set']('insertion:join',_0x3d4efb),this['_defaultCallbacks']['set']('insertion:chain',_0x53c999),this['_defaultCallbacks']['set']('deletion:accept',_0x53bf4a),this['_defaultCallbacks']['set']('deletion:discard',_0x536d8f),this['_defaultCallbacks']['set']('deletion:join',_0x3d4efb),this['_defaultCallbacks']['set']('deletion:chain',_0x53c999),this['_defaultCallbacks']['set']('formatInline:accept',_0x50eb68),this['_defaultCallbacks']['set']('formatInline:discard',_0x536d8f),this['_defaultCallbacks']['set']('formatInline:join',_0x3d4efb),this['_defaultCallbacks']['set']('formatInline:chain',_0x536d8f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x50eb68),this['_defaultCallbacks']['set']('formatBlock:discard',_0x536d8f),this['_defaultCallbacks']['set']('formatBlock:join',_0x3d4efb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x536d8f),this['_defaultCallbacks']['set']('attribute:accept',_0x536d8f),this['_defaultCallbacks']['set']('attribute:discard',(_0x51f8d7,_0x301d8e)=>{if(!_0x301d8e)return;const _0x43677b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5ae583=>{if(_0x301d8e['key']==m)for(const _0x28f8fb of _0x51f8d7){const _0x2465c5=_0x28f8fb['start']['nodeAfter'],_0x1e95f0=_0x301d8e['oldValue'];_0x5ae583['rename'](_0x2465c5,_0x1e95f0);}else{if(_0x43677b['_isBlockAttribute'](_0x301d8e['key'])){for(const _0x243dd4 of _0x51f8d7)void 0x0!==_0x301d8e['oldValue']?_0x5ae583['setAttribute'](_0x301d8e['key'],_0x301d8e['oldValue'],_0x243dd4['start']['nodeAfter']):_0x5ae583['removeAttribute'](_0x301d8e['key'],_0x243dd4['start']['nodeAfter']);}else{for(const _0xc92419 of _0x51f8d7)_0x301d8e['oldValue']?_0x5ae583['setAttribute'](_0x301d8e['key'],_0x301d8e['oldValue'],_0xc92419):_0x5ae583['removeAttribute'](_0x301d8e['key'],_0xc92419);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3d4efb);}}function Et(_0x5f1458,_0x1674e7,_0x4deed6){for(const _0x12ade5 of _0x1674e7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x12ade5['root']==_0x12ade5)return!0x1;if(!_0x4deed6['containsItem'](_0x12ade5))return!0x1;if(_0x5f1458['isObject'](_0x12ade5)||_0x5f1458['isLimit'](_0x12ade5))return!0x0;}return!0x1;}function Vt(_0x5e2606){return _0x5e2606['end']['parent']==_0x5e2606['start']['nodeAfter']&&_0x5e2606['end']['isAtStart'];}function Ut(_0x951c66,_0x4e35af,_0x3f0b68,_0x160e6d){const _0x379517=_0x1b0d58=>!_0x1b0d58['item']['is']('$textProxy')&&!_0x160e6d['isObject'](_0x1b0d58['item']),_0x2a9ace=_0x951c66['start']['getLastMatchingPosition'](_0x379517),_0x4d203c=_0x951c66['end']['getLastMatchingPosition'](_0x379517,{'direction':'backward'});return(!_0x951c66['start']['isEqual'](_0x2a9ace)||!_0x951c66['end']['isEqual'](_0x4d203c))&&(_0x2a9ace['isBefore'](_0x4d203c)?_0x3f0b68['updateMarker'](_0x4e35af,{'range':_0x3f0b68['createRange'](_0x2a9ace,_0x4d203c)}):_0x3f0b68['removeMarker'](_0x4e35af),!0x0);}function Pt(_0x15f3e6){return _0x12c7fd(_0x15f3e6);}function Gt(_0x2632aa){const _0x2a8c79=_0x2632aa['start']['nodeAfter'];return _0x2a8c79&&_0x2a8c79['is']('element');}function Ft(_0x7ae87c,_0x39d6d1){return null==_0x7ae87c['end']['nodeBefore']&&_0x7ae87c['end']['parent']==_0x7ae87c['start']['nodeAfter']?Lt(_0x7ae87c['start']['nodeAfter'],_0x39d6d1):_0x7ae87c;}function Lt(_0x463ca6,_0x3be1d2){const _0x3770d6=_0x3be1d2['schema']['isObject'](_0x463ca6)||_0x3be1d2['schema']['isSelectable'](_0x463ca6);return _0x3be1d2['createRange'](_0x3be1d2['createPositionAt'](_0x463ca6,'before'),_0x3770d6?_0x3be1d2['createPositionAfter'](_0x463ca6):_0x3be1d2['createPositionAt'](_0x463ca6,'end'));}function Ht(_0x5e9986,_0x1918a9,_0x173d2e,_0x474cb5,_0x3ff548){if(_0x5e9986['next'])return!0x1;if(!Jt(_0x5e9986,_0x1918a9))return!0x1;if(_0x173d2e['end']['isEqual'](_0x474cb5['start']))return!0x0;if(_0x5e9986['type']!=_0x1918a9['type'])return!0x1;if(!_0x173d2e['end']['isTouching'](_0x474cb5['start']))return!0x1;const _0x40d562=_0x3ff548['createRange'](_0x173d2e['end'],_0x474cb5['start'])['getWalker']();for(const _0x2cb08c of _0x40d562)if(['elementStart','elementEnd']['includes'](_0x2cb08c['type'])&&_0x3ff548['schema']['isLimit'](_0x2cb08c['item']))return!0x1;return!0x0;}function Jt(_0xab8f21,_0x2f18b7){if(!_0xab8f21['_isDataLoaded']||!_0x2f18b7['_isDataLoaded'])return!0x1;const _0x3070a5=new Set(Object['keys'](_0xab8f21['attributes'])),_0x2f94de=new Set(Object['keys'](_0x2f18b7['attributes']));if(_0x3070a5['delete']('groupId'),_0x2f94de['delete']('groupId'),0x0==_0x3070a5['size']&&0x0==_0x2f94de['size'])return!0x0;if(_0x3070a5['size']!=_0x2f94de['size'])return!0x1;const _0x55acb8={..._0xab8f21['attributes']},_0x43d0a7={..._0x2f18b7['attributes']};return delete _0x55acb8['groupId'],delete _0x43d0a7['groupId'],JSON['stringify'](_0x55acb8)==JSON['stringify'](_0x43d0a7);}function qt(_0x5f4d06,_0x410561){const _0x59e18b=zt(_0x5f4d06['attributes']),_0x583a48=zt(_0x410561);if(!_0x5f4d06['_isDataLoaded'])return!0x1;for(const _0x1acd12 of Object['keys'](_0x583a48))if(!_0x58efdc(_0x59e18b[_0x1acd12],_0x583a48[_0x1acd12]))return!0x1;return!0x0;}function zt(_0x3ae709){const _0x1cd1a2=Object['assign']({},_0x3ae709);return delete _0x1cd1a2['skipNestingCheck'],delete _0x1cd1a2['tablePasteChainId'],_0x1cd1a2;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x262186(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5a2892,_0x4de65c,_0x12a664,_0x3e6c22){super(),this['model']=_0x4de65c,this['view']=_0x12a664,this['commentThreadController']=_0x3e6c22,this['_editor']=_0x5a2892,this['_acceptCommand']=_0x5a2892['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5a2892['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x940bde,_0x8181f9)=>_0x940bde||_0x8181f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x566c0d=>_0x566c0d&&this['_editor']['model']['canEditAt'](_0x4de65c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ff983=>_0x4ff983&&this['_editor']['model']['canEditAt'](_0x4de65c['getRanges']())),this['_pendingAction']=null,_0x12a664['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x12a664,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x12a664,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x12a664,'change:isDirty',()=>{_0x12a664['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 _0x63cd27=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x63cd27);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4a27ed{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3a6ac5,_0x471612,_0x1650da,_0xa16826){super(_0x3a6ac5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3b72a9(_0x3a6ac5,o(_0x3a6ac5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x471612['authoredAt']),this['bind']('authoredAt')['to'](_0x471612),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',_0x471612,'authoredAt',this,'descriptionParts',(_0x4ce255,_0x356332,_0x1d44fe)=>{const _0x31b7a4=_0x1d44fe['map'](_0x51cf81=>ls(_0x51cf81['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4ce255-0x1,_0x471612['author']['name'],_0x356332?_0xa16826['formatDateTime'](_0x356332):'',new DOMParser()['parseFromString'](_0x31b7a4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x147d17(),this['focusTracker']=new _0x2c9097(),this['keystrokes']=new _0x5e9749(),this['focusCycler']=new _0x1abfec({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5c5cc0=>_0x5c5cc0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x471612,this['_localUser']=_0x1650da,this['_config']=_0xa16826,_0xa16826['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2409b3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2d14f4}=this['_config'];this['commentsListView']=new _0x2d14f4(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',_0x1b7ab8=>_0x1b7ab8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x122335,_0x1eaa36)=>_0x122335||!!_0x1eaa36);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x390b53}=this['_config'],_0x27a7bd=new _0x390b53(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3b4553=_0x27a7bd['commentInputView'];return _0x27a7bd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3b4553,'value',(_0x403c42,_0x230ae0,_0x1e3440)=>!!_0x1e3440||_0x403c42&&!_0x230ae0),_0x3b4553['on']('submit',(_0x40b9e5,_0x18dc88)=>{this['fire']('addComment',_0x18dc88),_0x3b4553['editor']['setData']('');}),_0x3b4553['on']('cancel',()=>this['focus']()),_0x3b4553['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x27a7bd;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5a3af6,_0x398956,_0x58652f,_0x2857c6){super(_0x5a3af6,_0x398956,_0x58652f,_0x2857c6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x880e42=>_0x880e42&&_0x880e42[0x0]?_0x880e42[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5d7b20,_0x226707)=>{let _0x55d0b5='';for(const _0x35ab92 of _0x5d7b20)_0x55d0b5+='<p>'+ls(_0x35ab92['content'],_0x35ab92['color'])+'</p>';return _0x226707?_0x55d0b5:_0x30d59a(_0x55d0b5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2857c6['SuggestionView'](_0x5a3af6,_0x398956,{'formatDateTime':_0x2857c6['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 _0x544d2e=this['bindTemplate'],_0x48cca5=[this['suggestionView']];return this['commentsListView']&&_0x48cca5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x48cca5['push'](this['commentThreadInputView']),_0x48cca5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x544d2e['if']('isActive','ck-suggestion-wrapper--active'),_0x544d2e['to']('type',_0x2baa22=>'ck-suggestion-'+_0x2baa22),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':_0x544d2e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x48cca5};}['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 ce extends _0x4a27ed{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x39bea2,_0x3d54e8,_0x273797){super(_0x39bea2),this['_model']=_0x3d54e8,this['_config']=_0x273797,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3d54e8),this['acceptButton']=this['_createButton'](o(_0x39bea2,'Accept\x20suggestion'),_0x59ae22['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x39bea2,'Discard\x20suggestion'),_0x59ae22['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x24ffc1(_0x39bea2,_0x3d54e8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x147d17([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2c9097(),this['keystrokes']=new _0x5e9749(),this['focusCycler']=new _0x1abfec({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4a1a08=>_0x4a1a08['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x416a32=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x416a32['innerHTML']=this['description'],this['on']('change:description',(_0x120942,_0x3bf98a,_0x598eeb)=>{_0x416a32['innerHTML']=_0x598eeb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4eb56b=this['bindTemplate'],_0x574246=[{'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']}},{'tag':'time','attributes':{'datetime':_0x4eb56b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4eb56b['to']('authoredAt',_0x56b336=>this['_config']['formatDateTime'](_0x56b336))}]}]},{'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']&&_0x574246['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':_0x574246}]};}['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'](_0x4baae0,_0x5554ec,_0x5d5b43,_0x2286ea,_0x549b70){const _0x2ba989=new _0x4e8185(this['locale']);return _0x2ba989['set']({'label':_0x4baae0,'icon':_0x5554ec,'tooltip':!0x0,'tooltipPosition':_0x549b70}),_0x2ba989['extendTemplate']({'attributes':{'class':_0x5d5b43}}),_0x2ba989['on']('execute',()=>{this['fire'](_0x2286ea,this['_model']['id']);}),_0x2ba989;}['_setupKeyboardNavigation'](){const _0x441943=this['element'];this['keystrokes']['listenTo'](_0x441943);for(const _0x271852 of this['focusables'])this['focusTracker']['add'](_0x271852['element']),this['keystrokes']['listenTo'](_0x271852['element']);this['keystrokes']['set']('enter',(_0xf70e6c,_0x4356e7)=>{_0x441943===_0xf70e6c['target']&&(this['focusCycler']['focusFirst'](),_0x4356e7());}),this['keystrokes']['set']('esc',(_0x2cbdea,_0x5bada6)=>{_0x441943!==_0x2cbdea['target']&&(this['focus'](),_0x5bada6());});}}var he='<!--\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-2024,\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 _0x30188a{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1d31e6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d57cf){super(_0x5d57cf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x52ed8a=this['editor']['config'];_0x52ed8a['define']('trackChanges.SuggestionThreadView',re),_0x52ed8a['define']('trackChanges.SuggestionView',ce),_0x52ed8a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x52ed8a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1d2aab,_0x13e11b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x477640,_0x504bb0]of this['_handleControllerBuffer']){const _0x117c7d=this['_suggestionToController']['has'](_0x477640);_0x117c7d||_0x504bb0?_0x117c7d&&_0x504bb0&&this['_destroyController'](_0x477640):this['_initializeController'](_0x477640);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1d2aab,_0x13e11b);}['init'](){const _0x5855a=this['editor'],_0x2b6988=_0x5855a['plugins']['get']('TrackChangesEditing'),_0x3d5f2c=_0x5855a['plugins']['get']('Annotations'),_0x318a60=_0x5855a['plugins']['get']('EditorAnnotations'),_0x12b775=_0x5855a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x318a60['addSourceCollector'](()=>{const _0x1a7064=[];for(const [_0x4e9e4f,_0x49af01]of Array['from'](this['_suggestionToController'])){const _0x350018=_0x4e9e4f['getAllAdjacentSuggestions'](),_0xf30a95=[];for(const _0x40488c of _0x350018){if(!_0x40488c['isInContent'])continue;if(_0x40488c['isMultiRange']){_0xf30a95['push'](..._0x40488c['getRanges']());continue;}const _0x8976fc=_0x40488c['getFirstRange']();if(_0xf30a95['length']>0x0){const _0x3fcb6a=_0xf30a95[0x0]['getJoined'](_0x8976fc);if(_0x3fcb6a){_0xf30a95[0x0]=_0x3fcb6a;continue;}}_0xf30a95['push'](_0x8976fc);}_0x1a7064['push']([_0x49af01['view'],_0xf30a95]);}return _0x1a7064;}),this['listenTo'](_0x2b6988,'suggestionLoaded',(_0x128379,_0x8e9b4a)=>{this['listenTo'](_0x8e9b4a,'change:previous',(_0x10ae95,_0xc44e4b,_0x33987b,_0x305e2d)=>{_0x8e9b4a['isInContent']&&(null==_0x33987b?(this['_updateController'](_0x305e2d['head']),this['_handleSuggestionControllerDelayed'](_0x8e9b4a,!0x1)):(this['_updateController'](_0x33987b['head']),null==_0x305e2d&&this['_handleSuggestionControllerDelayed'](_0x8e9b4a,!0x0)));}),null!==_0x8e9b4a['previous']?this['_updateController'](_0x8e9b4a['head']):this['_handleSuggestionControllerDelayed'](_0x8e9b4a,!0x1);}),this['listenTo'](_0x2b6988,'suggestionUnloaded',(_0x2c7981,_0x38bb31,_0x1cfe0c)=>{this['stopListening'](_0x38bb31,'change:previous'),this['_handleControllerBuffer']['delete'](_0x38bb31),this['_suggestionToController']['has'](_0x38bb31)&&this['_destroyController'](_0x38bb31),_0x1cfe0c&&this['_updateController'](_0x1cfe0c['head']);}),this['listenTo'](_0x2b6988,'suggestionChanged',(_0x28e017,_0x48e75c)=>{this['_updateController'](_0x48e75c);}),this['listenTo'](_0x3d5f2c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x12b775,'addComment',(_0x563c03,{threadId:_0x1fd132,isFromAdapter:_0x56b615})=>{if(_0x56b615||!_0x2b6988['hasSuggestion'](_0x1fd132))return;const _0x212324=_0x2b6988['getSuggestion'](_0x1fd132);this['_suggestionToController']['get'](_0x212324)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3dfed9=this['editor']['plugins']['get']('Annotations'),_0x5463b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d3571=Array['from'](_0x3dfed9['activeAnnotations'],_0x35da81=>_0x35da81['innerView'])['filter'](_0x3091c1=>this['_viewToController']['has'](_0x3091c1)),_0xb96017=[];for(const _0x39c7d2 of _0x3d3571){const _0x400d25=this['_viewToController']['get'](_0x39c7d2)['model']['getAllAdjacentSuggestions']();_0xb96017['push'](..._0x400d25['reduce']((_0x36563d,_0x3feed5)=>[..._0x36563d,..._0x3feed5['getMarkerNames']()],[]));}_0x5463b1['activeMarkers']=_0xb96017;}['_addUIComponentsToFactory'](){const _0x5b0afb=this['editor'],_0xff2b9d=_0x5b0afb['locale'],_0x4337e6=o(_0xff2b9d,'Track\x20changes'),_0xedc06=new Wt([{'type':'switchbutton','model':new _0x4fe4d9({'withText':!0x0,'isToggleable':!0x0,'label':_0x4337e6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4fe4d9({'withText':!0x0,'label':o(_0xff2b9d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fe4d9({'withText':!0x0,'label':o(_0xff2b9d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fe4d9({'withText':!0x0,'label':o(_0xff2b9d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fe4d9({'withText':!0x0,'label':o(_0xff2b9d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x574f0c of _0xedc06)if(me(_0x574f0c)){const _0xadef49=_0x5b0afb['commands']['get'](_0x574f0c['model']['commandName']);_0x574f0c['model']['bind']('isOn','isEnabled')['to'](_0xadef49,'value','isEnabled');}_0x5b0afb['ui']['componentFactory']['add']('trackChanges',_0x986f98=>this['_createToolbarButton'](_0x986f98,_0xedc06,_0x4337e6)),_0x5b0afb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x21014b=>this['_createMenuBarMenu'](_0x21014b,_0xedc06,_0x4337e6));}['_createToolbarButton'](_0x14d409,_0x512427,_0x31270c){const _0x25d7b7=Qt(_0x14d409,_0x368180),_0x333c5a=this['editor']['commands']['get']('trackChanges');_0x25d7b7['buttonView']['set']({'tooltip':_0x31270c,'label':_0x31270c,'icon':he}),_0x25d7b7['buttonView']['bind']('isOn')['to'](_0x333c5a,'value'),_0x25d7b7['buttonView']['on']('execute',()=>{_0x333c5a['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x25d7b7,_0x512427,{'role':'menu'});const _0x4c34b8=[];for(const _0x2f9dbb of _0x512427)me(_0x2f9dbb)&&_0x4c34b8['push'](this['editor']['commands']['get'](_0x2f9dbb['model']['commandName']));const _0x5bc289=_0x25d7b7['buttonView'];return _0x5bc289['actionView']['unbind']('isEnabled'),_0x5bc289['arrowView']['unbind']('isEnabled'),_0x5bc289['actionView']['bind']('isEnabled')['to'](_0x333c5a,'isEnabled'),_0x5bc289['arrowView']['bind']('isEnabled')['toMany'](_0x4c34b8,'isEnabled',(..._0xdb066)=>_0xdb066['some'](_0x29a7d0=>_0x29a7d0)),_0x25d7b7['on']('execute',_0x3fbe17=>{this['editor']['execute'](_0x3fbe17['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x25d7b7;}['_createMenuBarMenu'](_0xba8926,_0x9f5332,_0x1be35d){const _0x5bbdfa=new Yt(_0xba8926),_0x1803d1=this['editor']['commands']['get']('trackChanges');_0x5bbdfa['buttonView']['set']({'label':_0x1be35d,'icon':he});const _0x1a69d0=new Zt(_0xba8926);for(const _0x2663e6 of _0x9f5332){if('separator'==_0x2663e6['type']){_0x1a69d0['items']['add'](new Xt(_0xba8926));continue;}const _0x3fce9c=new te(_0xba8926,_0x5bbdfa),_0x108f06=new _0x4bd3e7(_0xba8926),_0x2531c2=_0x2663e6['model'];_0x108f06['bind'](...Object['keys'](_0x2531c2))['to'](_0x2531c2),_0x108f06['delegate']('execute')['to'](_0x5bbdfa),_0x108f06['on']('execute',()=>{this['editor']['execute'](_0x2531c2['commandName']),this['editor']['editing']['view']['focus']();}),_0x3fce9c['children']['add'](_0x108f06),_0x1a69d0['items']['add'](_0x3fce9c);}return _0x5bbdfa['bind']('isEnabled')['to'](_0x1803d1,'isEnabled'),_0x5bbdfa['panelView']['children']['add'](_0x1a69d0),_0x5bbdfa;}['_initializeController'](_0x2893d3){const _0x9d2f44=this['editor'],_0x558bbe=_0x9d2f44['config'],_0x544bb9=_0x9d2f44['plugins']['get']('Annotations'),_0x49991b=_0x9d2f44['plugins']['get']('CommentsRepository'),_0x1a5982=_0x9d2f44['plugins']['get']('EditorAnnotations'),_0x59debe=_0x9d2f44['plugins']['get'](_0x1d31e6)['me'],_0x236bca=_0x558bbe['get']('trackChanges')['SuggestionThreadView'],_0x4b61e6=_0x558bbe['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xf8b697,CommentThreadInputView:_0x4e86e5}=_0x9d2f44['plugins']['get']('CommentsUI');let _0x4ac379,_0x23385b,_0x5cb966;this['_annotationViews']['has'](_0x2893d3['id'])?(_0x23385b=this['_annotationViews']['get'](_0x2893d3['id']),_0x4ac379=_0x23385b['mainView']):(_0x4ac379=new _0x236bca(_0x9d2f44['locale'],_0x2893d3,_0x59debe,{'disableComments':this['_disableComments'],'editorConfig':_0x558bbe['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x558bbe['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x558bbe['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x558bbe['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x242a5e(_0x558bbe['get']('locale')),'CommentView':_0x558bbe['get']('comments')['CommentView'],'CommentsListView':_0xf8b697,'CommentThreadInputView':_0x4e86e5,'SuggestionView':_0x4b61e6}),_0x4ac379['suggestionView']['acceptButton']['on']('execute',()=>{_0x9d2f44['editing']['view']['focus']();}),_0x4ac379['suggestionView']['discardButton']['on']('execute',()=>{_0x9d2f44['editing']['view']['focus']();}),_0x23385b=_0x544bb9['createAnnotationView'](this['editor']['locale'],_0x4ac379),_0x23385b['bind']('isDirty')['to'](_0x4ac379,'isDirty'),_0x23385b['bind']('length')['to'](_0x4ac379),_0x23385b['bind']('type')['to'](_0x4ac379,'type',_0x4938b9=>'suggestion-'+_0x4938b9),_0x4ac379['on']('escape',()=>{_0x5cb966['fire']('escape');}),this['_annotationViews']['set'](_0x2893d3['id'],_0x23385b));const _0x38da6f=_0x49991b['createCommentThreadController'](_0x2893d3['commentThread'],_0x4ac379),_0x4c12c2=new ae(_0x9d2f44,_0x2893d3,_0x4ac379,_0x38da6f),_0x324e5f=_0x2893d3['getAllAdjacentSuggestions']()['filter'](_0x26875a=>_0x26875a['isInContent']);_0x4ac379['descriptionParts']=_0x9d2f44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x324e5f),this['_suggestionToController']['set'](_0x2893d3,_0x4c12c2),this['_viewToController']['set'](_0x4ac379,_0x4c12c2),_0x5cb966=_0x544bb9['createAnnotation']({'view':_0x23385b,'target':()=>{const _0xd1a635=[],_0x30929a=_0x2893d3['getAllAdjacentSuggestions']()['filter'](_0x5b88d9=>_0x5b88d9['isInContent']);for(const _0xb8d695 of _0x30929a)_0xd1a635['push'](..._0xb8d695['getMarkers']());return _0x1837f0(_0x9d2f44['editing'],_0xd1a635);},'type':()=>'suggestion-'+_0x4c12c2['view']['type']}),_0x49991b['_bindAnnotationToEditors'](_0x4ac379,_0x5cb966),_0x544bb9['add'](_0x5cb966),_0x1a5982['registerAnnotation'](_0x5cb966);}['_destroyController'](_0x16915f){const _0xfd0bdb=this['editor']['plugins']['get']('CommentsRepository'),_0x3d7964=this['editor']['plugins']['get']('Annotations'),_0x2c469b=this['_suggestionToController']['get'](_0x16915f),_0x2d0459=_0x2c469b['view'],_0x251811=_0x3d7964['getByInnerView'](_0x2d0459);_0xfd0bdb['_unbindEditors'](_0x2d0459),_0x251811&&_0x3d7964['remove'](_0x251811),this['_suggestionToController']['delete'](_0x16915f),this['_viewToController']['delete'](_0x2d0459),_0x2c469b['destroy']();}['_updateController'](_0x3fec73){if(!_0x3fec73['isInContent']||!this['_suggestionToController']['has'](_0x3fec73))return;const _0x4d8d93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2662ef=this['_suggestionToController']['get'](_0x3fec73),_0x5ca529=_0x3fec73['getAllAdjacentSuggestions']();_0x2662ef['view']['descriptionParts']=_0x4d8d93['descriptionFactory']['getDescriptions'](_0x5ca529);}['destroy'](){for(const _0x4d4f1a of this['_suggestionToController']['keys']())this['_destroyController'](_0x4d4f1a);for(const _0x3676f9 of this['_annotationViews']['values']())_0x3676f9['mainView']['destroy']();super['destroy']();}}function me(_0x5f415f){return'model'in _0x5f415f;}class k extends _0x30188a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3a8173){this['editor']['plugins']['get'](p)['adapter']=_0x3a8173;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x486185){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x486185);}['getSuggestions']({skipNotAttached:_0x5f2e12=!0x1,toJSON:_0x5ce4c4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5f2e12,'toJSON':_0x5ce4c4});}['getSuggestion'](_0x4c92ae){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4c92ae);}}const w=['Pagination'];class T extends _0x30188a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6c674=this['editor'];if(_0x6c674['config']['define']('trackChangesData.editorCreator',_0x1edc8b=>{const _0x2aca83=_0x6c674['model']['document']['getRootNames']()['reduce']((_0x4e69e7,_0x331f99)=>(_0x4e69e7[_0x331f99]='',_0x4e69e7),{});return _0x6c674['constructor']['create'](_0x2aca83,_0x1edc8b);}),'function'!=typeof _0x6c674['config']['get']('trackChangesData')['editorCreator'])throw new _0x3a7afb('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2db62f){return N(this['editor'],!0x0,_0x2db62f);}['getDataWithDiscardedSuggestions'](_0x5a3cdf){return N(this['editor'],!0x1,_0x5a3cdf);}}class D extends _0x30188a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x533d7b){super(_0x533d7b),this['result']='end';}['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 v(_0x1008f2){return void 0x0!==_0x1008f2['getRootsAttributes'];}async function N(_0x14104f,_0x43cb6f,_0x423e56){const _0x51431c=_0x47eac9(_0x14104f,w);_0x51431c['plugins']['push'](p,D),_0x51431c['rootsAttributes']=v(_0x14104f)?_0x14104f['getRootsAttributes']():void 0x0;const _0x59ec7f=document['createDocumentFragment'](),_0x245f95=_0x14104f['config']['get']('trackChangesData')['editorCreator'],_0x2d2232=await _0x245f95(_0x51431c,()=>function(_0x15c115){const _0x5e4cdb=document['createElement']('div');return _0x15c115['appendChild'](_0x5e4cdb),_0x5e4cdb;}(_0x59ec7f));!function(_0x22e247,_0x307ec7){const _0x3ca44c=_0x22e247['model']['document']['getRootNames']()['reduce']((_0x15b06d,_0x246245)=>(_0x15b06d[_0x246245]=_0x22e247['data']['get']({'rootName':_0x246245}),_0x15b06d),{}),_0xc6a78b=_0x22e247['plugins']['get']('Users')['users']['map'](_0x3d4921=>({'id':_0x3d4921['id'],'name':_0x3d4921['name']})),_0x4fb1c4=_0x22e247['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3f0b9a=_0x22e247['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c056d=_0x307ec7['plugins']['get']('Users'),_0x35a477=_0x307ec7['plugins']['get']('TrackChangesEditing'),_0x41ef53=_0x307ec7['plugins']['get']('CommentsRepository');for(const _0x58b3e6 of _0x41ef53['getCommentThreads']())_0x58b3e6['remove']();for(const _0x4db71c of _0xc6a78b)_0x2c056d['getUser'](_0x4db71c['id'])||_0x2c056d['addUser'](_0x4db71c);_0x2c056d['me']||_0x2c056d['useAnonymousUser']();for(const _0x68537b of _0x3f0b9a)_0x41ef53['addCommentThread'](_0x68537b);for(const _0x5bce7b of _0x4fb1c4)_0x35a477['addSuggestionData'](_0x5bce7b);_0x307ec7['data']['set'](_0x3ca44c);}(_0x14104f,_0x2d2232),_0x2d2232['execute'](_0x43cb6f?'acceptAllSuggestions':'discardAllSuggestions');const _0x9d93fc=v(_0x2d2232)?_0x2d2232['getFullData'](_0x423e56):_0x2d2232['data']['get'](_0x423e56);return await _0x2d2232['destroy'](),_0x9d93fc;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};