@ckeditor/ckeditor5-track-changes 44.0.0-alpha.7 → 44.0.0-alpha.9

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 (219) hide show
  1. package/LICENSE.md +7 -7
  2. package/README.md +16 -13
  3. package/build/track-changes.js +1 -1
  4. package/dist/index.js +3 -3
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +10 -10
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/trackchangescommand.js +1 -1
  155. package/src/index.js +1 -1
  156. package/src/integrations/aiassistant.js +1 -1
  157. package/src/integrations/alignment.js +1 -1
  158. package/src/integrations/basicstyles.js +1 -1
  159. package/src/integrations/blockquote.js +1 -1
  160. package/src/integrations/bookmark.js +1 -1
  161. package/src/integrations/casechange.js +1 -1
  162. package/src/integrations/ckbox.js +1 -1
  163. package/src/integrations/codeblock.js +1 -1
  164. package/src/integrations/comments.js +1 -1
  165. package/src/integrations/deletecommand.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/restrictededitingmode.js +1 -1
  193. package/src/integrations/shiftentercommand.js +1 -1
  194. package/src/integrations/standardeditingmode.js +1 -1
  195. package/src/integrations/style.js +1 -1
  196. package/src/integrations/table.js +1 -1
  197. package/src/integrations/tablecaption.js +1 -1
  198. package/src/integrations/tableclipboard.js +1 -1
  199. package/src/integrations/tablecolumnresize.js +1 -1
  200. package/src/integrations/tableheadings.js +1 -1
  201. package/src/integrations/tablemergesplit.js +1 -1
  202. package/src/integrations/tableofcontents.js +1 -1
  203. package/src/integrations/tableproperties.js +1 -1
  204. package/src/integrations/template.js +1 -1
  205. package/src/integrations/title.js +1 -1
  206. package/src/integrations/undo.js +1 -1
  207. package/src/integrations/utils.js +1 -1
  208. package/src/suggestion.js +2 -2
  209. package/src/suggestiondescriptionfactory.js +1 -1
  210. package/src/trackchanges.js +1 -1
  211. package/src/trackchangesdata.js +1 -1
  212. package/src/trackchangesediting.js +1 -1
  213. package/src/trackchangesui.js +1 -1
  214. package/src/ui/suggestioncontroller.js +2 -2
  215. package/src/ui/view/basesuggestionthreadview.js +1 -1
  216. package/src/ui/view/suggestionthreadview.js +1 -1
  217. package/src/ui/view/suggestionview.js +1 -1
  218. package/src/utils/common-translations.js +1 -1
  219. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x4a8caa,PendingActions as _0x270b6b,icons as _0x2c4691}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x562698,ObservableMixin as _0x235e1f,uid as _0x205078,insertToPriorityArray as _0x575b8e,priorities as _0x494c20,logWarning as _0x14f29b,getEnvKeystrokeText as _0x46bc23,FocusTracker as _0x24e33d,KeystrokeHandler as _0x2c0aef,Collection as _0x2afe4c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xb9f5be,View as _0x4bd17a,ViewCollection as _0x32304b,FocusCycler as ts,ViewModel as _0x136c8f,createDropdown as _0x168dba,SplitButtonView as _0x336f15,addListToDropdown as te,MenuBarMenuView as _0x4b9f92,MenuBarMenuListView as _0x1b30e5,ListSeparatorView as _0xf49527,MenuBarMenuListItemView as _0x1e06fb,MenuBarMenuListItemButtonView as _0x209c2c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x117a29,hashObject as _0x1c304,surroundingMarkersDetector as _0xbdba6c,FOCUS_ANNOTATION_KEYSTROKE as _0x2ea0eb,AriaDescriptionView as _0x7503c5,setupThreadKeyboardNavigation as _0x51e096,trimHtml as ti,UserView as _0x403439,LateFocusButtonView as _0x3253a5,getDateTimeFormatter as _0x4be061,getAllMarkersDomElementsSorted as _0x4031ca,sanitizeEditorConfig as _0x151acd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1bbcd2,LiveRange as _0x4daf91,LivePosition as _0x502f7e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x492f28,toWidget as _0x5d3d60}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x488f54,set as _0x4f97dd,isEqual as _0x1a4045,unset as _0x4777cf,omit as xt}from'lodash-es';import{Delete as _0x403987,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3d94fb,ShiftEnter as _0x103ccf}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x4a3d4b,_0x3a08ad){super(_0x4a3d4b),this['_enabledCommands']=_0x3a08ad,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 _0x515140 of this['editor']['commands']['commands']())_0x515140['affectsData']&&!this['_enabledCommands']['has'](_0x515140)&&_0x515140['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x368b94 of this['editor']['commands']['commands']())_0x368b94['affectsData']&&!this['_enabledCommands']['has'](_0x368b94)&&_0x368b94['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x69f69b,_0x7acb50){super(_0x69f69b),this['_suggestions']=_0x7acb50,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3c2aba){const _0x4548be=this['_suggestions']['get'](_0x3c2aba);if(!_0x4548be)throw new _0x562698('track-changes-accept-suggestion-not-found',this);const _0x7d751b=_0x4548be['getRanges']();this['editor']['model']['canEditAt'](_0x7d751b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4548be);}}class R extends Qt{['_suggestions'];constructor(_0x4c6ee5,_0x50f69f){super(_0x4c6ee5),this['_suggestions']=_0x50f69f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xabe34){const _0x40ac52=this['_suggestions']['get'](_0xabe34);if(!_0x40ac52)throw new _0x562698('track-changes-discard-suggestion-not-found',this);const _0x1d331e=_0x40ac52['getRanges']();this['editor']['model']['canEditAt'](_0x1d331e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x40ac52);}}function ns(_0xd5da23,_0x2d66cf){let _0x3d25a9='';return _0x3d25a9+=_0xd5da23['split']('*')['map']((_0x156c89,_0x24ce81)=>_0x24ce81%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x156c89)+'</span>':nn(_0x156c89))['join'](''),_0x2d66cf&&(_0x3d25a9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2d66cf['value']+'\x22\x20title=\x22'+_0x2d66cf['title']+'\x22></span>'),_0x3d25a9;}function nn(_0x3f0d37){const _0x32833b=document['createElement']('span');return _0x32833b['innerText']=_0x3f0d37,_0x32833b['innerHTML'];}function Wt(_0x35c8c1){return _0x35c8c1['sort']((_0x2070fa,_0x36cef8)=>'deletion'==_0x2070fa['type']&&'deletion'!=_0x36cef8['type']?-0x1:'deletion'!=_0x2070fa['type']&&'deletion'==_0x36cef8['type']?0x1:0x0);}function to(_0x1b7435,_0x5f152c){let _0x73b0bc,_0x5e0243=0x0;const _0x2e5064=[],_0x1fce09=_0x5f152c['schema'];for(;_0x5e0243<_0x1b7435['length'];){const _0x1564cb=_0x1b7435[_0x5e0243],_0x27574c=_0x1b7435[_0x5e0243+0x1];_0x73b0bc||(_0x73b0bc=_0x5f152c['createPositionBefore'](_0x1564cb)),on(_0x5f152c,_0x1564cb,_0x27574c)||(_0x2e5064['push'](_0x5f152c['createRange'](_0x73b0bc,_0x1fce09['isObject'](_0x1564cb)?_0x5f152c['createPositionAfter'](_0x1564cb):_0x5f152c['createPositionAt'](_0x1564cb,'end'))),_0x73b0bc=null),_0x5e0243++;}return _0x2e5064;}function on(_0x1ce72f,_0x3946b8,_0x87dd91){if(!_0x87dd91)return!0x1;const _0x56e939=_0x1ce72f['createPositionAfter'](_0x3946b8),_0x2dd923=_0x1ce72f['createPositionBefore'](_0x87dd91);return _0x56e939['isTouching'](_0x2dd923);}function Xt(_0x4316d,_0x42ec6b,_0x8b6f61){for(;_0x8b6f61['length'];){const _0x32eaf1=_0x8b6f61['splice'](0x0,0x64);_0x4316d['change'](()=>{for(const _0xfce34 of _0x32eaf1)_0xfce34['isInContent']&&_0x42ec6b['execute'](_0xfce34['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x493bec,_0x5abbb4,_0x12d8ad){super(_0x493bec),this['_command']=_0x5abbb4,this['_suggestions']=_0x12d8ad,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x222819=Array['from'](this['_suggestions']['values']())['some'](_0x1d0048=>_0x1d0048['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x222819;}['execute'](){const _0x14b701=Wt(Array['from'](this['_suggestions']['values']()));for(const _0xd09246 of _0x14b701){const _0x16538a=_0xd09246['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16538a))return;}Xt(this['editor']['model'],this['_command'],_0x14b701);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3d8ac1,_0x434564,_0x212ddd){super(_0x3d8ac1),this['_command']=_0x434564,this['_suggestions']=_0x212ddd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x494ee0=this['editor']['model']['document']['selection'],_0x73af07=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2790a5,_0x137891){const _0x26041e=Array['from'](_0x2790a5['getRanges']()),_0x439547=new Set();for(const _0x3b3192 of _0x137891)if(_0x3b3192['isInContent']){for(const _0x69fa71 of _0x26041e)for(const _0x1bb3d4 of _0x3b3192['getRanges']())(_0x69fa71['isIntersecting'](_0x1bb3d4)||_0x2790a5['isCollapsed']&&!_0x3b3192['isMultiRange']&&_0x3b3192['next']&&_0x1bb3d4['end']['isTouching'](_0x69fa71['start']))&&_0x439547['add'](_0x3b3192);}return _0x439547;}(_0x494ee0,_0x73af07),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xa5560c=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x270d00 of _0xa5560c){const _0x459fa7=_0x270d00['getRanges']();if(!this['editor']['model']['canEditAt'](_0x459fa7))return;}Xt(this['editor']['model'],this['_command'],_0xa5560c);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x235e1f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4cea86,_0x3a8300){super(),this['id']=_0x3a8300['id'],this['type']=_0x3a8300['type'],this['subType']=_0x3a8300['subType']||null,this['author']=_0x3a8300['author'],this['creator']=_0x3a8300['creator']||_0x3a8300['author'],this['isExternal']=Boolean(_0x3a8300['attributes']&&_0x3a8300['attributes']['@external']),this['data']=null,this['_model']=_0x4cea86,this['_onAccept']=_0x3a8300['onAccept'],this['_onDiscard']=_0x3a8300['onDiscard'],this['_onAttributesChange']=_0x3a8300['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3a8300['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 _0x4e42f0=this;for(;_0x4e42f0['previous'];)_0x4e42f0=_0x4e42f0['previous'];return _0x4e42f0;}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'](_0x1b5b05){this['_markerNames']['add'](_0x1b5b05);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x35e61=>this['_model']['markers']['get'](_0x35e61))['filter'](_0x1840bc=>_0x1840bc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x537f40=>{for(const _0x401eaa of this['getMarkers']())_0x537f40['removeMarker'](_0x401eaa);}),this['_markerNames']['clear']();}['removeMarker'](_0x309183){this['_model']['change'](_0x17c9d7=>{_0x17c9d7['removeMarker'](_0x309183);}),this['_markerNames']['delete'](_0x309183);}['addRange'](_0x4807be){const _0xb4f3a3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xb4f3a3),this['_model']['change'](_0x3356eb=>{_0x3356eb['addMarker'](_0xb4f3a3,{'range':_0x4807be,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c3166){for(const _0x587257 of this['getRanges']())if(_0x587257['isIntersecting'](_0x5c3166))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x182488=>_0x182488['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x178959,_0x2b093b)=>[..._0x178959,..._0x2b093b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5cd195=this['getRanges']();if(0x1!=_0x5cd195['length'])return null;const _0x465037=_0x5cd195[0x0],_0x364df4=_0x465037['start']['nodeAfter'],_0x294dd4=_0x465037['end']['nodeBefore'];return _0x364df4 instanceof _0x1bbcd2?_0x364df4!=_0x294dd4?null:_0x364df4: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 _0x59da9d=[];let _0x3d39bc=this['head'];for(;_0x3d39bc;)_0x59da9d['push'](_0x3d39bc),_0x3d39bc=_0x3d39bc['next'];return _0x59da9d;}['setAttribute'](_0x4f8fe6,_0x2fb026){const _0x135122=_0x488f54(this['attributes']);_0x4f97dd(_0x135122,_0x4f8fe6,_0x2fb026),_0x1a4045(_0x135122,this['attributes'])||(this['attributes']=_0x135122,this['_onAttributesChange'](_0x135122));}['removeAttribute'](_0x4704de){const _0x468a4e=_0x488f54(this['attributes']);_0x4777cf(_0x468a4e,_0x4704de),_0x1a4045(_0x468a4e,this['attributes'])||(this['attributes']=_0x468a4e,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 _0x205078()['substr'](0x1,0x5);}}function o(_0xc4a9c9,_0x28e809,_0x46f6c5){const _0x5e7bd7=_0xc4a9c9['t'],t=_0xc4a9c9['t'];switch(_0x28e809){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',_0x46f6c5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46f6c5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46f6c5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46f6c5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46f6c5);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',_0x46f6c5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46f6c5);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',_0x46f6c5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46f6c5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46f6c5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46f6c5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46f6c5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46f6c5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46f6c5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46f6c5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46f6c5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46f6c5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46f6c5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46f6c5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46f6c5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46f6c5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46f6c5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46f6c5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46f6c5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46f6c5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46f6c5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46f6c5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46f6c5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46f6c5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46f6c5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46f6c5);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'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46f6c5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46f6c5);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 _0x5e7bd7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46f6c5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5e7bd7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46f6c5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46f6c5);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'},_0x46f6c5);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'},_0x46f6c5);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'},_0x46f6c5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x28e809;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5845a6,_0x18363c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5845a6,this['_locale']=_0x18363c;}['getDescriptions'](_0x82b83c){const _0x45f56c=[],_0x1ce362=new Set(),_0x335025=new Set();for(let _0x4e4bc8=0x0;_0x4e4bc8<_0x82b83c['length'];_0x4e4bc8++){const _0x52a815=_0x82b83c[_0x4e4bc8];if(!_0x52a815['isInContent'])continue;const _0x64dc06=this['_handleCustomCallbackDescription'](_0x52a815);if(_0x64dc06){if(null!=_0x52a815['subType']){if(_0x1ce362['has'](_0x52a815['subType']))continue;_0x1ce362['add'](_0x52a815['subType']);}_0x45f56c['push'](_0x64dc06);}else{if('attribute'!=_0x52a815['type'])'insertion'!=_0x52a815['type']&&'deletion'!=_0x52a815['type']||this['_handleInsertRemoveSuggestionDescription'](_0x45f56c,_0x52a815,_0x82b83c[_0x4e4bc8+0x1]);else{const _0x5557fc=_0x52a815['data']['key'];if(_0x335025['has'](_0x5557fc))continue;_0x335025['add'](_0x52a815['data']['key']),_0x5557fc==m?this['_handleRenameSuggestionDescription'](_0x45f56c,_0x52a815):this['_handleAttributeSuggestionDescription'](_0x45f56c,_0x52a815);}}}return this['_resolveDescriptionItems'](_0x45f56c);}['registerDescriptionCallback'](_0x4af08f){this['_customCallbacks']['push'](_0x4af08f);}['registerElementLabel'](_0xae53dc,_0x2228b3,_0x584914=_0x494c20['normal']){'function'==typeof _0xae53dc?_0x575b8e(this['_itemLabelsCallbacks'],{'matchingCallback':_0xae53dc,'label':_0x2228b3,'priority':_0x584914}):this['_itemLabels']['set'](_0xae53dc,_0x2228b3);}['registerAttributeLabel'](_0x2b2bc3,_0x486a3b){this['_attributeLabels']['set'](_0x2b2bc3,_0x486a3b);}['getItemLabel'](_0x524fa4,_0x14b794=0x1){let _0x1cf657;for(const _0x33608d of this['_itemLabelsCallbacks'])if(_0x33608d['matchingCallback'](_0x524fa4)){_0x1cf657=_0x33608d['label'];break;}return _0x1cf657||(_0x1cf657=this['_itemLabels']['get'](_0x524fa4['name'])),_0x1cf657?_0x1cf657(_0x14b794):0x1!==_0x14b794?_0x14b794+'\x20'+_0x524fa4['name']+'s':''+_0x524fa4['name'];}['_addDescriptionItems'](_0x16b9f5,_0x2f58f8){const _0x4a3ea7=_0x2f58f8['getFirstRange']()['getWalker'](),_0x53b6e5='insertion'==_0x2f58f8['type']?'add':'remove';for(const _0x572ae9 of _0x4a3ea7){const _0x194f39=_0x572ae9['item'],_0x3f7501=_0x16b9f5[_0x16b9f5['length']-0x1];if(_0x194f39['is']('$textProxy'))_0x3f7501&&_0x3f7501['type']['indexOf']('Container')>-0x1&&_0x16b9f5['pop'](),_0x3f7501&&'text'==_0x3f7501['type']?_0x3f7501[_0x53b6e5]+=_0x194f39['data']:_0x16b9f5['push']({'type':'text','add':'add'==_0x53b6e5?_0x194f39['data']:'','remove':'remove'==_0x53b6e5?_0x194f39['data']:''});else{if(this['_schema']['isObject'](_0x194f39)){const _0x1bebbe=_0x194f39;if(_0x3f7501&&_0x3f7501['type']['indexOf']('Container')>-0x1&&_0x16b9f5['pop'](),'elementEnd'==_0x572ae9['type'])continue;_0x3f7501&&_0x3f7501['type']==_0x53b6e5+'Object'&&_0x3f7501['element']['name']==_0x1bebbe['name']?_0x3f7501['quantity']++:_0x16b9f5['push']({'type':_0x53b6e5+'Object','element':_0x1bebbe,'quantity':0x1}),_0x4a3ea7['skip'](_0x5d58dd=>!('elementEnd'==_0x5d58dd['type']&&_0x5d58dd['item']==_0x194f39));}else{if(this['_schema']['checkChild'](_0x194f39,'$text')||_0x194f39['is']('element','softBreak')){const _0x5ad354=_0x194f39;if('add'==_0x53b6e5&&'elementStart'==_0x572ae9['type']||'remove'==_0x53b6e5&&'elementEnd'==_0x572ae9['type'])continue;if(_0x3f7501&&-0x1==_0x3f7501['type']['indexOf']('Container')){'text'==_0x3f7501['type']&&(_0x3f7501[_0x53b6e5]+='\x0a');continue;}let _0xb77d60;if(_0xb77d60='add'==_0x53b6e5?_0x5ad354['nextSibling']&&!this['_schema']['isObject'](_0x5ad354['nextSibling'])?_0x5ad354['nextSibling']:null:_0x5ad354['previousSibling']&&!this['_schema']['isObject'](_0x5ad354['previousSibling'])?_0x5ad354['previousSibling']:null,_0x5ad354['isEmpty']||_0xb77d60&&_0xb77d60['isEmpty']){const _0x48ab42=_0xb77d60&&_0xb77d60['isEmpty']?_0xb77d60:_0x5ad354;_0x3f7501&&_0x3f7501['type']==_0x53b6e5+'EmptyContainer'&&_0x3f7501['element']['name']==_0x48ab42['name']?_0x3f7501['quantity']++:_0x16b9f5['push']({'type':_0x53b6e5+'EmptyContainer','element':_0x48ab42,'quantity':0x1});}else _0x16b9f5['push']({'type':_0x53b6e5+'Container','element':_0x5ad354});}}}}}['_resolveDescriptionItems'](_0x271985){const _0x502016=this['_locale'],_0xc7ad6d=[],_0x2e7a33=[],_0x4b3a32=[];for(const _0x398255 of _0x271985)switch(_0x398255['type']){case'text':if(_0x398255['add']=_0x398255['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x398255['remove']=_0x398255['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x398255['add']&&''!=_0x398255['remove']){_0xc7ad6d['push']({'type':'replace','content':o(_0x502016,'REPLACE_TEXT',['\x22'+_0x398255['remove']+'\x22','\x22'+_0x398255['add']+'\x22'])});continue;}if(null!=_0x398255['add']['match'](/^ +$/)){_0xc7ad6d['push']({'type':'insertion','content':o(_0x502016,'*Insert:*\x20%0',o(_0x502016,'ELEMENT_SPACE',_0x398255['add']['length']))});continue;}if(null!=_0x398255['remove']['match'](/^ +$/)){_0xc7ad6d['push']({'type':'deletion','content':o(_0x502016,'*Remove:*\x20%0',o(_0x502016,'ELEMENT_SPACE',_0x398255['remove']['length']))});continue;}if(''!=_0x398255['add']){_0xc7ad6d['push']({'type':'insertion','content':o(_0x502016,'*Insert:*\x20%0','\x22'+_0x398255['add']+'\x22')});continue;}_0xc7ad6d['push']({'type':'deletion','content':o(_0x502016,'*Remove:*\x20%0','\x22'+_0x398255['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xc7ad6d['push']({'type':'insertion','content':o(_0x502016,'*Insert:*\x20%0',this['getItemLabel'](_0x398255['element'],_0x398255['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xc7ad6d['push']({'type':'deletion','content':o(_0x502016,'*Remove:*\x20%0',this['getItemLabel'](_0x398255['element'],_0x398255['quantity']))});continue;case'addContainer':_0xc7ad6d['push']({'type':'insertion','content':o(_0x502016,'*Split:*\x20%0',this['getItemLabel'](_0x398255['element'],_0x398255['quantity']))});continue;case'removeContainer':_0xc7ad6d['push']({'type':'deletion','content':o(_0x502016,'*Merge:*\x20%0',this['getItemLabel'](_0x398255['element'],_0x398255['quantity']))});continue;case'addFormat':_0x2e7a33['push'](_0x398255['key']);continue;case'removeFormat':_0x4b3a32['push'](_0x398255['key']);continue;default:_0xc7ad6d['push'](_0x398255);}if(_0x2e7a33['length']){const _0x11d152=_0x2e7a33['map'](_0x4e70bb=>this['_attributeLabels']['has'](_0x4e70bb)?this['_attributeLabels']['get'](_0x4e70bb):_0x4e70bb)['join'](',\x20');_0xc7ad6d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x11d152)});}if(_0x4b3a32['length']){const _0x423163=_0x4b3a32['map'](_0x5a8235=>this['_attributeLabels']['has'](_0x5a8235)?this['_attributeLabels']['get'](_0x5a8235):_0x5a8235)['join'](',\x20');_0xc7ad6d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x423163)});}return _0xc7ad6d;}['_handleCustomCallbackDescription'](_0x49cf90){for(const _0x202f77 of this['_customCallbacks']){const _0x485748=_0x202f77(_0x49cf90);if(_0x485748&&'type'in _0x485748)return _0x485748;}}['_handleAttributeSuggestionDescription'](_0x3e59fc,_0x2debbd){const _0x18550e=_0x2debbd['data'],_0x23f325=void 0x0===_0x18550e['newValue']?'removeFormat':'addFormat';_0x3e59fc['push']({'type':_0x23f325,'key':_0x18550e['key']});}['_handleRenameSuggestionDescription'](_0x468f92,_0x3abee4){_0x468f92['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3abee4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f6912,_0x45a76a,_0x4fda58){if(this['_addDescriptionItems'](_0x4f6912,_0x45a76a),_0x4fda58&&_0x4fda58['getFirstRange']()&&!_0x45a76a['getFirstRange']()['end']['isEqual'](_0x4fda58['getFirstRange']()['start'])){const _0xdaa83a=_0x4f6912[_0x4f6912['length']-0x1],_0xd5e2ec='insertion'==_0x45a76a['type']?'add':'remove';_0xdaa83a&&'text'==_0xdaa83a['type']&&(_0xdaa83a[_0xd5e2ec]+='\x0a');}}}class U extends _0x4a8caa{['afterInit'](){const _0x86fa2d=this['editor'],_0x140556=_0x86fa2d['plugins']['get']('TrackChangesEditing');_0x86fa2d['commands']['get']('showAIAssistant')&&_0x140556['enableCommand']('showAIAssistant');}}class V extends _0x4a8caa{['afterInit'](){const _0x3c1085=this['editor'],_0x4c7ddc=_0x3c1085['locale'];if(!_0x3c1085['plugins']['has']('AlignmentEditing'))return;const _0x552511=_0x3c1085['plugins']['get']('TrackChangesEditing');_0x552511['enableDefaultAttributesIntegration']('alignment'),_0x552511['registerBlockAttribute']('alignment'),_0x552511['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c7ddc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x574286=this['editor'],_0x34616e=_0x574286['locale'];_0x574286['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1456b4=>{if('formatBlock'!=_0x1456b4['type'])return;const {data:_0x1ed4ab}=_0x1456b4;if(_0x1ed4ab&&'alignment'==_0x1ed4ab['commandName']){const _0x47e9f6=_0x1ed4ab['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x34616e,'*Format:*\x20%0',function(_0x3f213c){switch(_0x3f213c){case'left':return o(_0x34616e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x34616e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x34616e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x34616e,'FORMAT_JUSTIFY_TEXT');}}(_0x47e9f6))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4a8caa{['afterInit'](){const _0x1eb02b=this['editor'],_0x171097=_0x1eb02b['plugins']['get']('TrackChangesEditing'),_0x144b98=_0x1eb02b['locale'];for(const _0x32feee of Zt){if(!_0x1eb02b['plugins']['has'](_0x32feee))continue;const _0x2b7c6e=_0x32feee['slice'](0x0,-0x7)['toLowerCase'](),_0x27dccc='FORMAT_'+_0x2b7c6e['toUpperCase']();_0x171097['enableDefaultAttributesIntegration'](_0x2b7c6e),_0x171097['registerInlineAttribute'](_0x2b7c6e),_0x171097['descriptionFactory']['registerAttributeLabel'](_0x2b7c6e,o(_0x144b98,_0x27dccc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x121051=this['editor'],_0x3a0dbb=_0x121051['locale'],_0x364b07=_0x121051['plugins']['get']('TrackChangesEditing');function _0x559c84(_0x4a305d,_0x4352b8){_0x364b07['descriptionFactory']['registerDescriptionCallback'](_0x3c521d=>{if('formatInline'!=_0x3c521d['type'])return;const {data:_0x1adac6}=_0x3c521d;return _0x1adac6&&_0x1adac6['commandName']===_0x4a305d?_0x1adac6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a0dbb,'*Format:*\x20%0',_0x4352b8)}:{'type':'format','content':o(_0x3a0dbb,'*Remove\x20format:*\x20%0',_0x4352b8)}:void 0x0;});}_0x559c84('bold',o(_0x3a0dbb,'FORMAT_BOLD')),_0x559c84('italic',o(_0x3a0dbb,'FORMAT_ITALIC')),_0x559c84('underline',o(_0x3a0dbb,'FORMAT_UNDERLINE')),_0x559c84('code',o(_0x3a0dbb,'FORMAT_CODE')),_0x559c84('strikethrough',o(_0x3a0dbb,'FORMAT_STRIKETHROUGH')),_0x559c84('subscript',o(_0x3a0dbb,'FORMAT_SUBSCRIPT')),_0x559c84('superscript',o(_0x3a0dbb,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4a8caa{['afterInit'](){const _0x124f19=this['editor'],_0x559b98=_0x124f19['locale'];if(!_0x124f19['plugins']['has']('BlockQuoteEditing'))return;const _0x2ec8c1=_0x124f19['plugins']['get']('TrackChangesEditing'),_0x2abb08=this['editor']['commands']['get']('blockQuote');_0x2ec8c1['enableCommand']('blockQuote',(_0xa4995f,_0x1e2521={})=>{const _0x24c654=this['editor']['model']['document']['selection'],_0x48c8da=_0x1e2521&&void 0x0!==_0x1e2521['forceValue']?_0x1e2521['forceValue']:!_0x2abb08['value'];let _0x3ced20=[];if(_0x48c8da){const _0x4917b4=Array['from'](_0x24c654['getSelectedBlocks']())['filter'](_0x1f601f=>oo(_0x1f601f)||function(_0x20aa4a,_0x4e466d){const _0x26c6c1=_0x4e466d['checkChild'](_0x20aa4a['parent'],'blockQuote'),_0x387740=_0x4e466d['checkChild'](['$root','blockQuote'],_0x20aa4a);return _0x26c6c1&&_0x387740;}(_0x1f601f,this['editor']['model']['schema']));_0x3ced20=to(_0x4917b4,_0x124f19['model']);}else{const _0x32a6f6=Array['from'](_0x24c654['getSelectedBlocks']())['filter'](_0x56420d=>oo(_0x56420d));_0x3ced20=to(_0x32a6f6,_0x124f19['model']);}_0x124f19['model']['change'](()=>{for(const _0xe766ff of _0x3ced20)_0x2ec8c1['markBlockFormat'](_0xe766ff,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x48c8da}]});});}),_0x2ec8c1['descriptionFactory']['registerDescriptionCallback'](_0x4ae3a2=>{const {data:_0x52a75d}=_0x4ae3a2;if(_0x52a75d&&'blockQuote'==_0x52a75d['commandName']){const _0x50e656=o(_0x559b98,'ELEMENT_BLOCK_QUOTE');return _0x52a75d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x559b98,'*Set\x20format:*\x20%0',_0x50e656)}:{'type':'format','content':o(_0x559b98,'*Remove\x20format:*\x20%0',_0x50e656)};}});}}function oo(_0x2934d2){return'blockQuote'==_0x2934d2['parent']['name'];}class L extends _0x4a8caa{['afterInit'](){const _0x107af9=this['editor'],_0x8d98aa=_0x107af9['locale'],_0x38c116=_0x107af9['plugins']['get']('TrackChangesEditing');_0x107af9['plugins']['has']('BookmarkEditing')&&(_0x38c116['enableCommand']('insertBookmark'),_0x38c116['enableDefaultAttributesIntegration']('updateBookmark'),_0x38c116['registerBlockAttribute']('bookmarkId'),_0x38c116['descriptionFactory']['registerDescriptionCallback'](_0x2137af=>{if('insertion'!=_0x2137af['type']&&'deletion'!=_0x2137af['type']&&'attribute'!=_0x2137af['type'])return;const _0x2d475e=_0x2137af['getContainedElement']();if(null==_0x2d475e)return;if(!_0x2d475e['is']('element','bookmark'))return;const _0x24145a=_0x2d475e['getAttribute']('bookmarkId');if('insertion'==_0x2137af['type'])return{'type':'insertion','content':o(_0x8d98aa,'*Insert:*\x20%0','\x22'+_0x24145a+'\x22\x20'+o(_0x8d98aa,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2137af['type'])return{'type':'deletion','content':o(_0x8d98aa,'*Remove:*\x20%0','\x22'+_0x24145a+'\x22\x20'+o(_0x8d98aa,'ELEMENT_BOOKMARK'))};const {data:_0x54f0dd}=_0x2137af;if(!_0x54f0dd||'bookmarkId'!=_0x54f0dd['key'])return;return{'type':'format','content':o(_0x8d98aa,'*Set\x20bookmark:*\x20%0','\x22'+_0x54f0dd['newValue']+'\x22')};}));}}class J extends _0x4a8caa{['afterInit'](){const _0x614793=this['editor'];_0x614793['plugins']['has']('CaseChange')&&(_0x614793['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x614793['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x614793['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4a8caa{['afterInit'](){const _0x1ff868=this['editor'];_0x1ff868['commands']['get']('ckbox')&&_0x1ff868['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4a8caa{['afterInit'](){const _0x2d6244=this['editor'];if(!_0x2d6244['plugins']['has']('CodeBlock'))return;const _0x1da88f=_0x2d6244['plugins']['get']('TrackChangesEditing'),_0x4ef770=_0x2d6244['locale'],_0x1f5130=_0x2d6244['config']['get']('codeBlock')['languages'],_0x115c76=_0x2d6244['commands']['get']('codeBlock');_0x1da88f['enableCommand']('indentCodeBlock'),_0x1da88f['enableCommand']('outdentCodeBlock'),_0x1da88f['enableCommand']('codeBlock',(_0x240819,_0x1ddb78={})=>{const _0x14c5a0=_0x2d6244['model'],_0x1212cf=_0x2d6244['model']['document']['selection'],_0x155c30=_0x1ddb78&&void 0x0!==_0x1ddb78['forceValue']?_0x1ddb78['forceValue']:!_0x115c76['value'];let _0x689fe5;_0x1ddb78['language']||(_0x1ddb78['language']=_0x1f5130[0x0]['language']),_0x689fe5=_0x155c30?Array['from'](_0x1212cf['getSelectedBlocks']())['filter'](_0x197fdb=>eo(_0x197fdb)||function(_0xb7c988,_0x148fea){if(_0xb7c988['is']('rootElement')||_0x148fea['isLimit'](_0xb7c988))return!0x1;return _0x148fea['checkChild'](_0xb7c988['parent'],'codeBlock');}(_0x197fdb,_0x14c5a0['schema'])):Array['from'](_0x1212cf['getSelectedBlocks']())['filter'](_0x1f6fbd=>eo(_0x1f6fbd));const _0x3656e2=to(_0x689fe5,_0x14c5a0);_0x14c5a0['change'](()=>{for(const _0x12091d of _0x3656e2)_0x1da88f['markBlockFormat'](_0x12091d,{'commandName':'codeBlock','commandParams':[{..._0x1ddb78,'forceValue':_0x155c30}],'formatGroupId':'blockName'});});}),(_0x1da88f['descriptionFactory']['registerElementLabel']('codeBlock',_0x4965c8=>o(_0x4ef770,'ELEMENT_CODE_BLOCK',_0x4965c8)),_0x1da88f['descriptionFactory']['registerDescriptionCallback'](_0x49fb6d=>{if('formatBlock'!=_0x49fb6d['type'])return;const _0x272e62=_0x4ef770['t'],{data:_0x58ccd3}=_0x49fb6d;if(!_0x58ccd3||'codeBlock'!=_0x58ccd3['commandName'])return;const _0x2a62d8=_0x58ccd3['commandParams'][0x0]['language'],_0x5af68f=_0x272e62(_0x1f5130['find'](_0x251949=>_0x251949['language']===_0x2a62d8)['label'])['toLowerCase']();return _0x58ccd3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ef770,'*Set\x20format:*\x20%0',o(_0x4ef770,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5af68f+')')}:{'type':'format','content':o(_0x4ef770,'*Remove\x20format:*\x20%0',o(_0x4ef770,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4b779a){return'codeBlock'==_0x4b779a['name'];}class z extends _0x4a8caa{['afterInit'](){const _0x269dc3=this['editor'];if(!_0x269dc3['plugins']['has']('CommentsEditing'))return;_0x269dc3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1f4c0a,_0x536fc9,_0x3aa0e4){const _0x29fffe=[];for(const _0x4405c7 of _0x536fc9['getItems']())_0x4405c7['hasAttribute'](_0x1f4c0a)&&_0x29fffe['push'](_0x3aa0e4['createRangeOn'](_0x4405c7));return _0x29fffe;}function Ne(_0x3368a3,_0x33ff39,{showActiveMarker:_0x3b4955=!0x0}={}){const _0x3eba8c=_0x3368a3['plugins']['get']('TrackChangesEditing');return(_0x5ac422,_0x412053,_0x1bc165)=>{if(!_0x1bc165['consumable']['test'](_0x412053['markerRange'],_0x5ac422['name']))return;const _0x5d7609=_0x412053['markerRange']['getWalker'](),_0x33870d=_0x412053['markerRange']['start'],_0x3075dd=_0x3368a3['model']['schema'];let _0x244c1d=null,_0xf6cd07=null,_0x54ef60=!0x1,_0x3d6284=!0x1;for(const _0x3d768c of _0x5d7609){const _0x3d11d0=_0x3d768c['item'];_0x54ef60=_0x54ef60||_0x3075dd['isContent'](_0x3d11d0);const _0x1f3748=_0x1bc165['mapper']['toViewElement'](_0x3d11d0);if(_0x1f3748&&_0x1f3748['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d768c['type']&&(_0x3075dd['isBlock'](_0x3d11d0)&&!_0x3075dd['isLimit'](_0x3d11d0)&&(_0x3d11d0['nextSibling']||_0x33870d['isAtEnd']?_0x244c1d&&_0x244c1d['parent']==_0x3d11d0||(_0x244c1d=_0x3d11d0,_0x1a4b9e(_0x3d768c['previousPosition']),_0x3d6284=!0x0):_0xf6cd07=_0xf6cd07||_0x3d768c['previousPosition']));}function _0x1a4b9e(_0x4d6163){const {authorId:_0x394058}=_0x3eba8c['_splitMarkerName'](_0x412053['markerName']),_0x3c350b=_0x1bc165['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33ff39,'data-author-id':_0x394058}),_0x5769fd=_0x1bc165['mapper']['toViewPosition'](_0x4d6163);_0x3b4955&&_0x3eba8c['activeMarkers']['includes'](_0x412053['markerName'])&&_0x1bc165['writer']['addClass']('ck-suggestion-marker--active',_0x3c350b),_0x1bc165['writer']['insert'](_0x5769fd,_0x3c350b),_0x1bc165['mapper']['bindElementToMarker'](_0x3c350b,_0x412053['markerName']);}_0x54ef60||_0x3d6284||!_0xf6cd07||_0x1a4b9e(_0xf6cd07);};}class K extends _0x4a8caa{static get['requires'](){return[_0x403987];}['init'](){const _0xc6faf2=this['editor'],_0xb3fd14=_0xc6faf2['plugins']['get']('TrackChangesEditing');_0xb3fd14['enableCommand']('delete');const _0x448f36=_0xc6faf2['commands']['get']('deleteForward');_0xb3fd14['enableCommand']('deleteForward',(_0x4208dc,_0x2d4159={})=>{const _0x6f9d44=_0xc6faf2['model']['createSelection'](_0xc6faf2['model']['document']['selection']);_0x6f9d44['isCollapsed']&&_0xc6faf2['model']['modifySelection'](_0x6f9d44,{'direction':'forward','unit':_0x2d4159['unit']});const _0x5dfae8=_0x6f9d44['getFirstRange'](),_0x4cc5aa=_0x4daf91['fromRange'](_0x5dfae8);let _0x2d74ac;_0x4208dc(_0x2d4159),_0x2d74ac='$graveyard'==_0x4cc5aa['root']['rootName']?_0xc6faf2['model']['createRange'](_0x5dfae8['start']):_0xc6faf2['model']['createRange'](_0x4cc5aa['start'],_0x4cc5aa['end']),_0x4cc5aa['detach'](),_0xc6faf2['model']['enqueueChange'](_0x448f36['buffer']['batch'],_0x5ca7d9=>{_0x448f36['buffer']['lock'](),_0x5ca7d9['setSelection'](_0x5ca7d9['createRange'](_0x2d74ac['end'])),_0x448f36['buffer']['unlock']();});}),_0xc6faf2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0xc6faf2,'merge'),{'priority':'high'}),_0xc6faf2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x18ea2e,_0x32cdf6,_0x3f84ab)=>{_0x3f84ab['options']['showSuggestionHighlights']&&Ne(_0xc6faf2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x18ea2e,_0x32cdf6,_0x3f84ab);},{'priority':'high'}),_0xc6faf2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x37f377,_0x54aebf,_0x4c3144)=>{const _0x3c6025=_0x4c3144['mapper']['markerNameToElements'](_0x54aebf['markerName']);if(_0x3c6025){for(const _0x4921fa of _0x3c6025)_0x4921fa['is']('uiElement')&&(_0x4c3144['mapper']['unbindElementFromMarkerName'](_0x4921fa,_0x54aebf['markerName']),_0x4c3144['writer']['remove'](_0x4921fa));}},{'priority':'high'});}}class W extends _0x4a8caa{['afterInit'](){const _0x2dd3b1=this['editor'];if(!_0x2dd3b1['plugins']['has']('ListEditing'))return;const _0x23e3e1=_0x2dd3b1['locale'],_0x3466b4=_0x2dd3b1['plugins']['get']('TrackChangesEditing'),_0x2a711e=_0x2dd3b1['plugins']['has']('TodoListEditing'),_0x4d7c16=!!_0x2dd3b1['config']['get']('list.multiBlock');function _0x421b6b(_0x13d525){return{'type':'format','content':''+o(_0x23e3e1,'*Set\x20format:*\x20%0',_0x13d525)};}function _0x912c68(_0x3cfaad){return{'type':'format','content':''+o(_0x23e3e1,'*Remove\x20format:*\x20%0',_0x3cfaad)};}_0x3466b4['enableDefaultAttributesIntegration']('numberedList'),_0x3466b4['enableDefaultAttributesIntegration']('bulletedList'),_0x3466b4['enableDefaultAttributesIntegration']('customNumberedList'),_0x3466b4['enableDefaultAttributesIntegration']('customBulletedList'),_0x3466b4['enableDefaultAttributesIntegration']('indentList'),_0x3466b4['enableDefaultAttributesIntegration']('outdentList'),_0x3466b4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3466b4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3466b4['registerBlockAttribute']('listItemId'),_0x3466b4['registerBlockAttribute']('listType'),_0x3466b4['registerBlockAttribute']('listIndent'),_0x4d7c16&&(_0x3466b4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3466b4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2a711e&&(_0x3466b4['enableDefaultAttributesIntegration']('todoList'),_0x3466b4['enableDefaultAttributesIntegration']('checkTodoList'),_0x3466b4['registerBlockAttribute']('todoListChecked'),_0x3466b4['descriptionFactory']['registerDescriptionCallback'](_0x1e1ea9=>{const {data:_0x3006c7}=_0x1e1ea9;if(_0x3006c7&&'todoListChecked'==_0x3006c7['key'])return{'type':'format','content':_0x3006c7['newValue']?o(_0x23e3e1,'*Check\x20item*'):o(_0x23e3e1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x564e56=>{if(_0x564e56['batch']['isUndo'])return!0x1;let _0x1852a9=!0x1;const _0x241e9d=_0x3466b4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d13e8=>'todoListChecked'===_0x3466b4['_getAttributeKey'](_0x5d13e8));for(const _0x5d7710 of _0x241e9d){'todo'!=_0x5d7710['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3466b4['_findSuggestions'](_0x5d7710['getFirstRange'](),'attribute')['find'](_0x2f9cdf=>'listType'===_0x3466b4['_getAttributeKey'](_0x2f9cdf['suggestion']))||(_0x564e56['removeMarker'](_0x5d7710['getFirstMarker']()),_0x1852a9=!0x0));}return _0x1852a9;})),_0x3466b4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x23e3e1,'FORMAT_INDENT'));const _0x1562c1={'type':'format','content':''};_0x3466b4['descriptionFactory']['registerDescriptionCallback'](_0xe19f58=>{const {data:_0x24b1f}=_0xe19f58;if(!_0x24b1f||'listType'!=_0x24b1f['key'])return;let _0x4f51dd=_0xe19f58['head'];for(;_0x4f51dd;){if(_0x4f51dd['data']&&(('listStyle'==_0x4f51dd['data']['key']||'listMarkerStyle'==_0x4f51dd['data']['key'])&&(_0x4f51dd['data']['newValue']&&'default'!=_0x4f51dd['data']['newValue']||'default'!=_0x4f51dd['data']['oldValue']&&!_0x24b1f['newValue'])||!_0x4d7c16&&_0x4f51dd['data']['key']==m))return _0x1562c1;_0x4f51dd=_0x4f51dd['next'];}if(null==_0x24b1f['newValue'])switch(_0x24b1f['oldValue']){case'bulleted':return _0x912c68(o(_0x23e3e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x912c68(o(_0x23e3e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x912c68(o(_0x23e3e1,'ELEMENT_TODO_LIST'));}switch(_0x24b1f['newValue']){case'bulleted':return _0x421b6b(o(_0x23e3e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x421b6b(o(_0x23e3e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x421b6b(o(_0x23e3e1,'ELEMENT_TODO_LIST'));}}),_0x3466b4['descriptionFactory']['registerDescriptionCallback'](_0x5c4b5e=>{const {data:_0x1b315c}=_0x5c4b5e;if(_0x1b315c&&'listIndent'==_0x1b315c['key'])return null==_0x1b315c['newValue']||null==_0x1b315c['oldValue']&&0x0==_0x1b315c['newValue']?_0x1562c1:void 0x0;}),_0x3466b4['descriptionFactory']['registerDescriptionCallback'](_0x2db435=>{if('attribute'!=_0x2db435['type'])return;const {data:_0x39d5cb}=_0x2db435;if(!_0x39d5cb||'listItemId'!=_0x39d5cb['key'])return;const _0xc00d13=Te(_0x2db435);return'newValue'==_0xc00d13?{'type':'format','content':o(_0x23e3e1,'*Merge:*\x20list\x20item')}:'oldValue'==_0xc00d13?{'type':'format','content':o(_0x23e3e1,'*Split:*\x20list\x20item')}:_0x1562c1;}),_0x2dd3b1['model']['document']['registerPostFixer'](_0x588166=>this['listItemIdFixer'](_0x588166)),_0x2dd3b1['model']['document']['registerPostFixer'](_0x5eeb84=>this['noTrackChangesFixer'](_0x5eeb84)),_0x2dd3b1['model']['document']['on']('change:data',(_0x53dae6,_0x21ce25)=>{if(_0x21ce25['isUndo']||!_0x21ce25['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1b97ce){if(_0x1b97ce['batch']['isUndo']||!_0x1b97ce['batch']['isLocal'])return!0x1;let _0x4ec314=!0x1;const _0x1375a2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46ed92=>_0x46ed92['data']&&'listItemId'==_0x46ed92['data']['key'])['filter'](_0x2a33a9=>_0x2a33a9['data']['newValue']&&_0x2a33a9['data']['oldValue']);for(const _0x66d8b0 of _0x1375a2)Te(_0x66d8b0)||(_0x1b97ce['removeMarker'](_0x66d8b0['getFirstMarker']()),_0x4ec314=!0x0);return _0x4ec314;}['noTrackChangesFixer'](_0x529f57){if(_0x529f57['batch']['isUndo']||!_0x529f57['batch']['isLocal'])return!0x1;const _0x237507=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x237507['trackChangesCommand']['value'])return!0x1;let _0x25b042=!0x1;const _0x2f068d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x52ecb0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x17cd57=>'attribute'==_0x17cd57['type'])['filter'](_0x1c5999=>_0x2f068d['includes'](_0x1c5999['attributeKey']));if(0x0==_0x52ecb0['length'])return _0x25b042;for(const _0x231801 of _0x52ecb0){const _0x37dad6=_0x237507['_findSuggestions'](_0x231801['range'],'attribute')['filter'](_0x3d6481=>!_0x3d6481['meta']['isNextTo'])['map'](_0x206a71=>_0x206a71['suggestion'])['filter'](_0x5794d6=>{const _0x2dad7f=_0x237507['_getAttributeKey'](_0x5794d6);return _0x2f068d['includes'](_0x2dad7f);});if(_0x37dad6['length']){for(const _0xf03505 of _0x37dad6)_0x529f57['removeMarker'](_0xf03505['getFirstMarker']());_0x25b042=!0x0;}}return _0x25b042;}['assureChains'](){const _0x245a9e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x328cfe=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x58d6b7;const _0x2430d9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e7a7f=>{if(_0x1e7a7f['data']['oldRange']||!_0x1e7a7f['data']['newRange'])return null;if(!_0x1e7a7f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x317357}=_0x245a9e['_splitMarkerName'](_0x1e7a7f['name']);if(!_0x245a9e['hasSuggestion'](_0x317357))return null;const _0x40e671=_0x245a9e['getSuggestion'](_0x317357);return _0x328cfe['includes'](_0x40e671['data']['key']);})['map'](_0x1eecd8=>{const {id:_0x56ee0f}=_0x245a9e['_splitMarkerName'](_0x1eecd8['name']),_0x4a54bb=_0x245a9e['getSuggestion'](_0x56ee0f);return _0x58d6b7=_0x4a54bb['attributes']['groupId'],_0x4a54bb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2430d9['size'])return;const _0x19cdab=_0x245a9e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44e9cd=>'attribute'==_0x44e9cd['type']&&_0x44e9cd['data']&&_0x328cfe['includes'](_0x44e9cd['data']['key'])&&_0x44e9cd['attributes']['groupId']!=_0x58d6b7)['map'](_0x2ab39f=>({'listItem':_0x2ab39f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2ab39f['attributes']['groupId']})),_0x5dfb33=new Set();for(const {groupId:_0x1160c3,listItem:_0x4323b0}of _0x19cdab)_0x2430d9['has'](_0x4323b0)&&_0x5dfb33['add'](_0x1160c3);for(const _0x11683e of _0x245a9e['getSuggestions']())_0x5dfb33['has'](_0x11683e['attributes']['groupId'])&&_0x11683e['setAttribute']('groupId',_0x58d6b7);}['_supportLegacySuggestions'](){const _0x18995f=this['editor'],_0xba0a17=_0x18995f['locale'],_0x319822=_0x18995f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x319822['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x569987,_0x3d22b7){const _0x27739f=[];for(let _0xe93044 of _0x569987)_0xe93044['start']['nodeAfter']===_0xe93044['end']['parent']&&(_0xe93044=_0x18995f['model']['createRange'](_0x18995f['model']['createPositionAt'](_0xe93044['start']['nodeAfter'],0x0))),_0x27739f['push'](_0xe93044);_0x18995f['model']['change'](_0xb297c3=>{const _0x598e6f=_0x18995f['model']['document']['selection'],_0x4ded2a=Array['from'](_0x598e6f['getRanges']())['map'](_0x190e28=>_0x4daf91['fromRange'](_0x190e28));_0xb297c3['setSelection'](_0x27739f),_0x18995f['commands']['get'](_0x3d22b7['commandName'])['refresh'](),_0x3d22b7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x18995f['execute'](_0x3d22b7['commandName'],..._0x3d22b7['commandParams']),_0xb297c3['setSelection'](_0x4ded2a);for(const _0x1e48d2 of _0x4ded2a)_0x1e48d2['detach']();});}),_0x319822['descriptionFactory']['registerElementLabel'](function(_0x18e51e){const _0x1e3b0d=!_0x18995f['model']['schema']['isObject'](_0x18e51e),_0x15929=_0x18e51e['previousSibling'],_0x5f0bfa=_0x18e51e['nextSibling'],_0x57c84e=_0x18e51e['getAttribute']('listItemId'),_0x5b9200=!_0x15929||_0x15929['getAttribute']('listItemId')!==_0x57c84e,_0x581104=!_0x5f0bfa||_0x5f0bfa['getAttribute']('listItemId')!==_0x57c84e;return _0x1e3b0d&&Boolean(_0x57c84e)&&_0x5b9200&&_0x581104;},_0x270f0a=>o(_0xba0a17,'ELEMENT_LIST_ITEM',_0x270f0a));}['_registerLegacyDescription'](){const _0x3e2352=this['editor'],_0x288086=_0x3e2352['locale'];function _0x1dd7dc(_0x3747b1){const _0x319d58=_0x3e2352['commands']['get']('bulletedList')['value'],_0x2ed509=_0x3e2352['commands']['get']('numberedList')['value'];return'numberedList'===_0x3747b1?_0x319d58:_0x2ed509;}_0x3e2352['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2580af){if('formatBlock'!=_0x2580af['type'])return;const {data:_0xc3b0d1}=_0x2580af;if(!_0xc3b0d1)return;let _0x3815b0,_0x52584a,_0xcddc5,_0x36ef2a;switch(_0xc3b0d1['commandName']){case'bulletedList':_0xcddc5=_0xc3b0d1['commandParams'][0x0]['forceValue'],_0x36ef2a=_0x1dd7dc(_0xc3b0d1['commandName']),_0x3815b0=_0xcddc5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36ef2a&&_0x3e2352['config']['get']('list.multiBlock')||(_0x3815b0='*Change\x20to:*\x20%0'),_0x52584a={'type':'format','content':o(_0x288086,_0x3815b0,o(_0x288086,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xcddc5=_0xc3b0d1['commandParams'][0x0]['forceValue'],_0x36ef2a=_0x1dd7dc(_0xc3b0d1['commandName']),_0x3815b0=_0xcddc5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36ef2a&&_0x3e2352['config']['get']('list.multiBlock')||(_0x3815b0='*Change\x20to:*\x20%0'),_0x52584a={'type':'format','content':o(_0x288086,_0x3815b0,o(_0x288086,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3815b0='*Indent:*\x20%0',_0x52584a={'type':'format','content':o(_0x288086,_0x3815b0,o(_0x288086,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3815b0=function(_0x42056f){const _0x6fb058=_0x42056f['getFirstRange']();let _0x5d7316=_0x6fb058['start']['nodeAfter'];for(;_0x5d7316&&_0x6fb058['containsItem'](_0x5d7316);){if(_0x5d7316['getAttribute']('listIndent')>0x0)return!0x1;_0x5d7316=_0x5d7316['nextSibling'];}return!0x0;}(_0x2580af)?o(_0x288086,'*Format:*\x20remove\x20from\x20%0',o(_0x288086,function(_0x1f283b){return'ELEMENT_'+_0x1f283b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2580af))):o(_0x288086,'*Outdent:*\x20%0',o(_0x288086,'ELEMENT_LIST_ITEM')),_0x52584a={'type':'format','content':_0x3815b0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc3b0d1['multipleBlocks']&&(_0x3815b0='*Merge:*\x20%0',_0x52584a={'type':'deletion','content':o(_0x288086,_0x3815b0,o(_0x288086,'ELEMENT_LIST_ITEM'))});}return _0x52584a;});}}function Te(_0xe99d00){let _0x171c40=_0xe99d00['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x171c40;){const _0x13a98f=_0x171c40['getAttribute']('listItemId');if(!_0x13a98f)return!0x1;if(_0x13a98f==_0xe99d00['data']['newValue'])return'newValue';if(_0x13a98f==_0xe99d00['data']['oldValue'])return'oldValue';_0x171c40=_0x171c40['previousSibling'];}return!0x1;}class ye extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x25c6f4=this['editor']['config']['get']('list.properties'),_0x1473fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x25c6f4['styles']&&(_0x1473fd['enableDefaultAttributesIntegration']('listStyle'),_0x1473fd['registerBlockAttribute']('listStyle')),_0x25c6f4['reversed']&&(_0x1473fd['enableDefaultAttributesIntegration']('listReversed'),_0x1473fd['registerBlockAttribute']('listReversed')),_0x25c6f4['startIndex']&&(_0x1473fd['enableDefaultAttributesIntegration']('listStart'),_0x1473fd['registerBlockAttribute']('listStart'));const _0x202f25={'type':'format','content':''};_0x1473fd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x536124=this['editor']['locale'];_0x1473fd['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x536124,'FORMAT_LIST_REVERSED')),_0x1473fd['descriptionFactory']['registerDescriptionCallback'](_0x379093=>{const {data:_0x374b0a}=_0x379093;if(_0x374b0a&&'listReversed'==_0x374b0a['key'])return null==_0x374b0a['newValue']||0x0==_0x374b0a['newValue']&&null==_0x374b0a['oldValue']?_0x202f25:void 0x0;}),_0x1473fd['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x536124,'FORMAT_LIST_START')),_0x1473fd['descriptionFactory']['registerDescriptionCallback'](_0x4a395b=>{const {data:_0x3fa512}=_0x4a395b;if(_0x3fa512&&'listStart'==_0x3fa512['key'])return null==_0x3fa512['newValue']||0x1==_0x3fa512['newValue']&&null==_0x3fa512['oldValue']?_0x202f25:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x345d58=>{if(_0x345d58['batch']['isUndo'])return!0x1;let _0x551846=!0x1;const _0x17a16f=_0x1473fd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59b72e=>{const _0x1bd671=_0x1473fd['_getAttributeKey'](_0x59b72e);return'listStart'==_0x1bd671||'listReversed'==_0x1bd671;});for(const _0x3c8c6e of _0x17a16f){const _0x29a48a=_0x3c8c6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x29a48a||'customNumbered'==_0x29a48a)continue;_0x1473fd['_findSuggestions'](_0x3c8c6e['getFirstRange'](),'attribute')['find'](_0xe542a2=>'listType'==_0x1473fd['_getAttributeKey'](_0xe542a2['suggestion']))||(_0x345d58['removeMarker'](_0x3c8c6e['getFirstMarker']()),_0x551846=!0x0);}return _0x551846;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x310b06){const _0x54a87e=this['editor']['locale'],{data:_0x1f1003}=_0x310b06,_0x4435e5={'type':'format','content':''};if(!_0x1f1003||'listStyle'!=_0x1f1003['key'])return;if(!_0x1f1003['oldValue'])return'default'==_0x1f1003['newValue']?_0x4435e5:{'type':'format','content':''+o(_0x54a87e,'*Set\x20format:*\x20%0',o(_0x54a87e,this['_getTranslationKeyForListStyle'](_0x1f1003['newValue'])))};if(!_0x1f1003['newValue']){if('default'==_0x1f1003['oldValue'])return _0x4435e5;let _0x13d4d1=_0x310b06['head'];for(;_0x13d4d1;){if(_0x13d4d1['data']&&'listType'==_0x13d4d1['data']['key']&&_0x13d4d1['data']['newValue'])return _0x4435e5;_0x13d4d1=_0x13d4d1['next'];}return{'type':'format','content':''+o(_0x54a87e,'*Remove\x20format:*\x20%0',o(_0x54a87e,this['_getTranslationKeyForListStyle'](_0x1f1003['oldValue'])))};}if('default'!=_0x1f1003['newValue'])return{'type':'format','content':''+o(_0x54a87e,'*Set\x20format:*\x20%0',o(_0x54a87e,this['_getTranslationKeyForListStyle'](_0x1f1003['newValue'])))};let _0x4eb72e=_0x310b06['head'];for(;_0x4eb72e;){if(_0x4eb72e['data']&&'listType'==_0x4eb72e['data']['key']&&_0x4eb72e['data']['newValue']&&_0x4eb72e['data']['oldValue'])return _0x4435e5;_0x4eb72e=_0x4eb72e['next'];}return{'type':'format','content':o(_0x54a87e,'*Set\x20format:*\x20%0',o(_0x54a87e,'ELEMENT_'+_0x310b06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x40b3d6=this['editor'],_0x531420=_0x40b3d6['locale'];_0x40b3d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378541=>{if('formatBlock'!=_0x378541['type'])return;const {data:_0xdb1b24}=_0x378541;if(!_0xdb1b24)return;let _0x87ff98,_0x5e9f78;switch(_0xdb1b24['commandName']){case'listStyle':_0x87ff98='*Change\x20to:*\x20%0',_0x5e9f78={'type':'format','content':o(_0x531420,_0x87ff98,o(_0x531420,this['_getTranslationKeyForListStyle'](_0xdb1b24['commandParams'][0x0]['type'])))};break;case'listReversed':_0x87ff98=_0xdb1b24['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5e9f78={'type':'format','content':o(_0x531420,_0x87ff98)};break;case'listStart':_0x87ff98='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e9f78={'type':'format','content':o(_0x531420,_0x87ff98,_0xdb1b24['commandParams'][0x0]['startIndex'])};}return _0x5e9f78;});}['_getTranslationKeyForListStyle'](_0x498f0e){return'ELEMENT_'+function(_0x1f8dca){if(Se['includes'](_0x1f8dca))return'bulleted';if(_e['includes'](_0x1f8dca))return'numbered';return null;}(_0x498f0e)['toUpperCase']()+'_LIST_'+_0x498f0e['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4a8caa{static get['requires'](){return[_0x3d94fb];}['init'](){const _0x22003a=this['editor'],_0x1a1d8c=_0x22003a['plugins']['get']('TrackChangesEditing'),_0x45f2b7=_0x22003a['commands']['get']('enter');_0x1a1d8c['enableCommand']('enter',()=>{_0x22003a['model']['change'](_0x4e9745=>{const _0x12f51c=_0x22003a['model']['document']['selection'],_0x3f5d74=_0x12f51c['getFirstPosition'](),_0x1886d2=_0x4daf91['fromRange'](_0x12f51c['getFirstRange']());if(_0x45f2b7['enterBlock'](_0x4e9745)){const _0x32fdba=_0x22003a['model']['createPositionAt'](_0x3f5d74['parent']['nextSibling'],0x0),_0x31b86d=_0x4e9745['createRange'](_0x3f5d74,_0x32fdba);_0x1a1d8c['markInsertion'](_0x31b86d);}else _0x4e9745['setSelection'](_0x4e9745['createRange'](_0x1886d2['end']));_0x1886d2['detach'](),_0x45f2b7['fire']('afterExecute',{'writer':_0x4e9745});});}),_0x22003a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x22003a,'split'),{'priority':'high'}),_0x22003a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x385259,_0x3be452,_0x5d9168)=>{const _0x17accb=_0x5d9168['mapper']['markerNameToElements'](_0x3be452['markerName']);if(_0x17accb){for(const _0x254860 of _0x17accb)_0x254860['hasClass']('ck-suggestion-marker-split')&&(_0x5d9168['mapper']['unbindElementFromMarkerName'](_0x254860,_0x3be452['markerName']),_0x5d9168['writer']['remove'](_0x254860));}},{'priority':'high'}),_0x22003a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x528884,_0x905bf8,_0x44ebcb)=>{_0x44ebcb['options']['showSuggestionHighlights']&&Ne(_0x22003a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x528884,_0x905bf8,_0x44ebcb);},{'priority':'high'});}}class Y extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3b58c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b58c5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3b58c5['enableCommand']('findNext'),_0x3b58c5['enableCommand']('findPrevious'),_0x3b58c5['enableCommand']('replace'),_0x3b58c5['enableCommand']('replaceAll');}['handleFindCommand'](_0xa41e54,_0x3b194a,_0x421334={}){const _0x76ef9f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa41e54(_0x1af2c3=>{let _0x1f663b=('string'==typeof _0x3b194a?_0x76ef9f['findByTextCallback'](_0x3b194a,_0x421334):_0x3b194a)(_0x1af2c3);Array['isArray'](_0x1f663b)&&(_0x1f663b={'results':_0x1f663b,'searchText':'string'==typeof _0x3b194a?_0x3b194a:''});const _0x4dbcf1=_0x1f663b['results']['filter'](_0x2b7c4a=>!0x1===this['_isInDeletionRange'](_0x2b7c4a,_0x1af2c3['item']));return{..._0x1f663b,'results':_0x4dbcf1};},_0x421334);}['_isInDeletionRange'](_0x2b73c3,_0x3872f9){const _0x1df6de=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3872f9,_0x2b73c3['start']),this['editor']['model']['createPositionAt'](_0x3872f9,_0x2b73c3['end']));for(const _0x216e21 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1df6de['getIntersection'](_0x216e21['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x4a8caa{['afterInit'](){const _0x15bf25=this['editor']['locale'],_0x1fbe7a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x50140a,commandName:_0x54587a}of ro)this['editor']['plugins']['has'](_0x50140a)&&(_0x1fbe7a['enableDefaultAttributesIntegration'](_0x54587a),_0x1fbe7a['registerInlineAttribute'](_0x54587a));_0x1fbe7a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x15bf25,'FORMAT_FONT_SIZE')),_0x1fbe7a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x15bf25,'FORMAT_FONT_FAMILY')),_0x1fbe7a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x15bf25,'FORMAT_FONT_COLOR')),_0x1fbe7a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x15bf25,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f62e7=this['editor'],_0xf008b6=_0x5f62e7['locale'];_0x5f62e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a3735=>{const _0x222a48=_0xf008b6['t'];if('formatInline'!=_0x2a3735['type'])return;const {data:_0x43b113}=_0x2a3735;if(null!=_0x43b113){if('fontSize'==_0x43b113['commandName']){const _0xe3b392=_0x43b113['commandParams'][0x0]['value'];if(_0xe3b392){const _0x353bd5=_0x222a48(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1915a2=>_0x1915a2['model']==_0xe3b392)['title'])['toLowerCase']();return{'type':'format','content':o(_0xf008b6,'*Set\x20font\x20size:*\x20%0',_0x353bd5)};}return{'type':'format','content':o(_0xf008b6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x43b113['commandName']){const _0x279a4f=_0x43b113['commandParams'][0x0]['value'];return _0x279a4f?{'type':'format','content':o(_0xf008b6,'*Set\x20font\x20family:*\x20%0',_0x279a4f)}:{'type':'format','content':o(_0xf008b6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x43b113['commandName']){const _0x10c937=_0x43b113['commandParams'][0x0]['value'];if(_0x10c937){const _0x58b28c=_0xb9f5be(this['editor']['config']['get']('fontColor.colors'))['find'](_0x416f8b=>_0x416f8b['model']==_0x10c937);let _0x57a8ff=_0x10c937,_0x18f554='';return _0x58b28c&&(_0x57a8ff=_0x58b28c['label'],_0x18f554=_0x222a48(_0x57a8ff)['toLowerCase']()),{'type':'format','content':o(_0xf008b6,'*Set\x20font\x20color:*\x20%0',_0x18f554)['trim'](),'color':{'value':_0x10c937,'title':_0x18f554||_0x57a8ff}};}return{'type':'format','content':o(_0xf008b6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x43b113['commandName']){const _0x9b1f99=_0x43b113['commandParams'][0x0]['value'];if(_0x9b1f99){const _0x37294a=_0xb9f5be(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2d0625=>_0x2d0625['model']==_0x9b1f99);let _0x4e6470=_0x9b1f99,_0x4a1e32='';return _0x37294a&&(_0x4e6470=_0x37294a['label'],_0x4a1e32=_0x222a48(_0x4e6470)['toLowerCase']()),{'type':'format','content':o(_0xf008b6,'*Set\x20font\x20background\x20color:*\x20%0',_0x4a1e32)['trim'](),'color':{'value':_0x9b1f99,'title':_0x4a1e32||_0x4e6470}};}return{'type':'format','content':o(_0xf008b6,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x4a8caa{['afterInit'](){const _0x393e70=this['editor'],_0x4be8a0=_0x393e70['plugins']['get']('TrackChangesEditing'),_0xfffc17=_0x393e70['commands']['get']('copyFormat'),_0x265561=_0x393e70['commands']['get']('pasteFormat');_0xfffc17&&_0x265561&&(_0x4be8a0['enableDefaultAttributesIntegration']('pasteFormat'),_0x4be8a0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5a4284=this['editor'],_0x3a0218=_0x5a4284['locale'];_0x5a4284['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1157ad=>{if('formatBlock'!=_0x1157ad['type']&&'formatInline'!=_0x1157ad['type'])return;const {data:_0xd63c78}=_0x1157ad;if(_0xd63c78&&'pasteFormat'===_0xd63c78['commandName']){const _0x4f37b0=[],_0x5e7263=_0xd63c78['commandParams'][0x0];for(const [_0x24e5a0,_0x13dd74]of Object['entries'](_0x5e7263))_0x4f37b0['push'](so(_0x5a4284,_0x24e5a0,_0x13dd74));return _0x4f37b0['length']?{'type':'format','content':o(_0x3a0218,'*Set\x20format\x20to:*\x20%0',_0x4f37b0['join'](',\x20'))}:{'type':'format','content':o(_0x3a0218,'*Remove\x20all\x20formatting*')};}});}}function so(_0x441379,_0x416d44,_0x1fb1f7){const _0x3bda29=_0x441379['locale']['t'],_0x126e8b=_0x416d44['split'](/(?=[A-Z])/)['join']('\x20'),_0x130389=_0x3bda29(_0x126e8b['charAt'](0x0)['toUpperCase']()+_0x126e8b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1fb1f7)return _0x130389;if('fontColor'===_0x416d44||'fontBackgroundColor'===_0x416d44){const _0xa74b03=_0xb9f5be(_0x441379['config']['get']('fontColor.colors'))['find'](_0x518b47=>_0x518b47['model']==_0x1fb1f7);return _0x130389+'\x20('+(_0xa74b03?_0x3bda29(_0xa74b03['label'])['toLowerCase']():_0x1fb1f7)+')';}if('fontSize'===_0x416d44&&isNaN(parseFloat(_0x1fb1f7))){const _0x2c60e2=_0x441379['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x441379['config']['get']('fontSize.options'))['find'](_0x2ddd7d=>_0x2ddd7d['model']==_0x1fb1f7);return _0x130389+'\x20('+(_0x2c60e2?_0x3bda29(_0x2c60e2['title'])['toLowerCase']():_0x1fb1f7)+')';}return _0x130389+'\x20('+_0x1fb1f7+')';}class nt extends _0x4a8caa{['_headingOptions'];['afterInit'](){const _0x4419cc=this['editor'];if(!_0x4419cc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4419cc['config']['get']('heading.options');const _0x20871d=_0x4419cc['locale'],_0x291497=_0x4419cc['plugins']['get']('TrackChangesEditing');_0x291497['enableDefaultAttributesIntegration']('heading');for(const _0x50cdf1 of this['_headingOptions'])'paragraph'!=_0x50cdf1['model']&&_0x291497['descriptionFactory']['registerElementLabel'](_0x50cdf1['model'],_0x57049d=>{const _0x36aa18=this['_getHeadingLevel'](_0x50cdf1['model']);return null!==_0x36aa18?_0x175320(_0x57049d,_0x36aa18):_0x2be59d(_0x57049d,_0x50cdf1['title']);});function _0x175320(_0x563c10,_0x5624b6){return o(_0x20871d,'ELEMENT_HEADING',[_0x563c10,_0x5624b6]);}function _0x2be59d(_0x1bbfdc,_0x5dd5a0){return o(_0x20871d,'ELEMENT_HEADING_CUSTOM',[_0x1bbfdc,_0x5dd5a0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e7022=this['editor'],_0x5e747e=_0x4e7022['locale'];function _0x5937fa(_0xc3856a,_0x336835){return o(_0x5e747e,'ELEMENT_HEADING_CUSTOM',[_0xc3856a,_0x336835]);}_0x4e7022['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23015e=>{if('formatBlock'!=_0x23015e['type'])return;const {data:_0x5a4e09}=_0x23015e;if(_0x5a4e09&&'heading'==_0x5a4e09['commandName']){const _0x2ea9b0=_0x5a4e09['commandParams'][0x0]['value'],_0x3a6cde=this['_getHeadingLevel'](_0x2ea9b0);if(null!==_0x3a6cde)return{'type':'format','content':o(_0x5e747e,'*Change\x20to:*\x20%0',(_0x109c11=0x1,_0x1bd879=_0x3a6cde,o(_0x5e747e,'ELEMENT_HEADING',[_0x109c11,_0x1bd879])))};const _0x3bca22=this['_headingOptions']['find'](_0x3928f9=>_0x3928f9['model']===_0x2ea9b0)['title'];return{'type':'format','content':o(_0x5e747e,'*Change\x20to:*\x20%0',_0x5937fa(0x1,_0x3bca22))};}var _0x109c11,_0x1bd879;});}['_getHeadingLevel'](_0x59625e){const _0x3384c1=_0x59625e['match'](/^heading(\d+)/);if(_0x3384c1)return _0x3384c1[0x1];const _0x20b5ca=this['_headingOptions']?.['find'](_0x4c13ad=>_0x4c13ad['model']==_0x59625e);if(_0x20b5ca&&_0x20b5ca['view']){const _0x501952=_0x20b5ca['view'],_0x4c6a9f=(_0x501952['name']??_0x501952)['match'](/^h(\d+)/);if(_0x4c6a9f)return _0x4c6a9f[0x1];}return null;}}class it extends _0x4a8caa{['afterInit'](){const _0x5d2812=this['editor'];if(!_0x5d2812['plugins']['has']('HighlightEditing'))return;const _0x146fcc=_0x5d2812['plugins']['get']('TrackChangesEditing'),_0xf281=_0x5d2812['locale'];_0x146fcc['enableDefaultAttributesIntegration']('highlight'),_0x146fcc['registerInlineAttribute']('highlight'),_0x146fcc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xf281,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50922e=this['editor'],_0x325c10=_0x50922e['locale'];_0x50922e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45d751=>{if('formatInline'!=_0x45d751['type'])return;const {data:_0x22ac5e}=_0x45d751;if(_0x22ac5e&&'highlight'==_0x22ac5e['commandName']){const _0x3b4695=_0x325c10['t'],_0x5e7495=_0x22ac5e['commandParams'][0x0]['value'];if(_0x5e7495){const _0x560d07=_0x50922e['config']['get']('highlight.options')['find'](_0x3bb29a=>_0x3bb29a['model']==_0x5e7495),_0x2e37b9=_0x3b4695(_0x560d07['title'])['toLowerCase']();return{'type':'format','content':o(_0x325c10,'*Set\x20highlight:*\x20%0',_0x2e37b9),'color':{'value':_0x560d07['color'],'title':_0x560d07['title']}};}return{'type':'format','content':o(_0x325c10,'*Remove\x20highlight*',o(_0x325c10,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x4a8caa{['afterInit'](){const _0x1b618d=this['editor'];if(!_0x1b618d['plugins']['has']('HorizontalLineEditing'))return;_0x1b618d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2f1da3=_0x1b618d['plugins']['get']('TrackChangesEditing'),_0x3af5be=_0x1b618d['locale'];_0x2f1da3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2c9e3a=>o(_0x3af5be,'ELEMENT_HORIZONTAL_LINE',_0x2c9e3a)),_0x1b618d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x90b69c,{writer:_0x176269,options:_0x565b83})=>{if(!_0x565b83['showSuggestionHighlights'])return null;const _0x48bdd0=_0x176269['createContainerElement']('div'),_0x7b9f8b=_0x176269['createEmptyElement']('hr');return _0x176269['addClass']('ck-horizontal-line',_0x48bdd0),_0x176269['insert'](_0x176269['createPositionAt'](_0x48bdd0,0x0),_0x7b9f8b),_0x48bdd0;},'converterPriority':'high'});}}class st extends _0x4a8caa{['afterInit'](){const _0x4f4640=this['editor'];if(!_0x4f4640['plugins']['has']('HtmlEmbed'))return;const _0x5e831a=_0x4f4640['plugins']['get']('TrackChangesEditing'),_0x3e59d4=_0x4f4640['locale'];_0x5e831a['descriptionFactory']['registerElementLabel']('rawHtml',_0x222604=>o(_0x3e59d4,'ELEMENT_HTML_EMBED',_0x222604)),_0x5e831a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e831a['registerBlockAttribute']('value'),_0x5e831a['descriptionFactory']['registerDescriptionCallback'](_0x3390f1=>{if('attribute'!=_0x3390f1['type'])return;const {data:_0x537c75}=_0x3390f1;if(_0x537c75&&'value'==_0x537c75['key']&&_0x3390f1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x44caad=o(_0x3e59d4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3e59d4,'*Change\x20%0\x20content*',_0x44caad)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd888c7=this['editor'],_0x342984=_0xd888c7['locale'];_0xd888c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15ca0c=>{if('formatBlock'!=_0x15ca0c['type'])return;const {data:_0x18b555}=_0x15ca0c;if(_0x18b555&&'htmlEmbed'==_0x18b555['commandName']){const _0x374095=o(_0x342984,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x342984,'*Change\x20%0\x20content*',_0x374095)};}});}}class ot extends _0x4a8caa{['afterInit'](){const _0x37bed7=this['editor'];if(!_0x37bed7['plugins']['has']('ImageEditing'))return;const _0x11dd7b=_0x37bed7['plugins']['get']('TrackChangesEditing'),_0xcf6791=_0x37bed7['plugins']['get']('ImageUtils'),_0x45af8e=_0x37bed7['locale'];_0x11dd7b['enableCommand']('insertImage'),_0x11dd7b['descriptionFactory']['registerElementLabel']('imageBlock',_0x28179d=>o(_0x45af8e,'ELEMENT_IMAGE',_0x28179d)),_0x11dd7b['descriptionFactory']['registerElementLabel']('imageInline',_0x186cb8=>o(_0x45af8e,'ELEMENT_INLINE_IMAGE',_0x186cb8)),_0x11dd7b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x45af8e,'ELEMENT_CAPTION')),_0x37bed7['plugins']['has']('ImageUploadEditing')&&_0x11dd7b['enableCommand']('uploadImage'),_0x37bed7['plugins']['has']('ImageBlockEditing')&&_0x37bed7['plugins']['has']('ImageInlineEditing')&&(_0x11dd7b['enableCommand']('imageTypeInline',(_0x439a37,_0xb399df)=>{const _0x29222f=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']);_0x37bed7['model']['change'](()=>{_0x11dd7b['markBlockFormat'](_0x29222f,{'commandName':'imageTypeInline','commandParams':[_0xb399df]},[],'convertBlockImageToInline');});}),_0x11dd7b['enableCommand']('imageTypeBlock',(_0x7be097,_0x23c330)=>{_0x37bed7['model']['change'](_0x82a776=>{let _0x9b66c4=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']),_0x137b0a=_0x82a776['createRangeOn'](_0x9b66c4);const _0x433a77=_0x502f7e['fromPosition'](_0x137b0a['start'],'toPrevious'),_0x584496=_0x502f7e['fromPosition'](_0x137b0a['end'],'toNext');_0x11dd7b['forceDefaultExecution'](()=>_0x7be097(_0x23c330)),_0x9b66c4=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']),_0x137b0a=_0x82a776['createRangeOn'](_0x9b66c4);const _0x55e392=_0x82a776['createRange'](_0x433a77,_0x584496);_0x433a77['detach'](),_0x584496['detach'](),_0x11dd7b['markBlockFormat'](_0x9b66c4,{'commandName':'imageTypeInline','commandParams':[_0x23c330]},[],'convertInlineImageToBlock'),_0x55e392['start']['isBefore'](_0x137b0a['start'])&&_0x11dd7b['markInsertion'](_0x82a776['createRange'](_0x55e392['start'],_0x137b0a['start']),'convertInlineImageToBlock'),_0x137b0a['end']['isBefore'](_0x55e392['end'])&&_0x11dd7b['markInsertion'](_0x82a776['createRange'](_0x137b0a['end'],_0x55e392['end']),'convertInlineImageToBlock');});}),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11dd7b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x578718])=>{const _0x5f3b94=_0x11dd7b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x51298b=_0x578718['start'],_0x2202c6=_0x578718['end'];const _0x6138fd=_0x37bed7['model']['schema']['getNearestSelectionRange'](_0x51298b,'backward'),_0x36d0c5=_0x37bed7['model']['schema']['getNearestSelectionRange'](_0x2202c6,'forward');_0x6138fd['isCollapsed']&&(_0x51298b=_0x6138fd['start']),_0x36d0c5['isCollapsed']&&(_0x2202c6=_0x36d0c5['end']),_0x5f3b94([_0x37bed7['model']['createRange'](_0x51298b,_0x2202c6)]);}),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2669ae),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2669ae)),_0x37bed7['plugins']['has']('ImageCaptionEditing')&&(_0x11dd7b['enableCommand']('toggleImageCaption',(_0x323ba5,_0x2ec2d2)=>{const _0x52e40e=_0x37bed7['plugins']['get']('ImageCaptionUtils');let _0x15d615=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']),_0x245159=_0x52e40e['getCaptionFromImageModelElement'](_0x15d615);_0x37bed7['model']['change'](()=>{if(_0x245159)return void _0x11dd7b['markDeletion'](_0x37bed7['model']['createRangeOn'](_0x245159));const _0x1a577d=_0xcf6791['isBlockImage'](_0x15d615);_0x323ba5(_0x2ec2d2),_0x15d615=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']),_0x245159=_0x52e40e['getCaptionFromImageModelElement'](_0x15d615),_0x11dd7b['markInsertion'](_0x37bed7['model']['createRangeOn'](_0x245159),_0x1a577d?null:'imageCaption');});}),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2669ae));const _0x47c039=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x351ef3(_0x2b065a,_0x49c2e1){const _0x1f7f78=_0x47c039['findIndex'](({type:_0x322c74,subType:_0x468492})=>_0x2b065a['type']==_0x322c74&&_0x2b065a['subType']==_0x468492),_0x285672=_0x47c039['findIndex'](({type:_0x57283e,subType:_0x42dbfc})=>_0x49c2e1['type']==_0x57283e&&_0x49c2e1['subType']==_0x42dbfc);if(_0x1f7f78<0x0||_0x285672<0x0)return!0x1;const _0x340517=_0x2b065a['getFirstRange'](),_0x291fd3=_0x49c2e1['getFirstRange']();if((0x0==_0x1f7f78||0x1==_0x1f7f78)&&0x2==_0x285672&&_0x340517['isIntersecting'](_0x291fd3))return!0x0;if(0x2==_0x1f7f78&&0x3==_0x285672){const _0x44bb75=_0x11dd7b['_findSuggestions'](_0x340517,'insertion')['filter'](({suggestion:_0x16313a,meta:_0x4a2272})=>_0x4a2272['isOwn']&&'convertInlineImageToBlock'==_0x16313a['subType']);if(_0x44bb75['length']>0x1&&_0x291fd3['end']['isEqual'](_0x340517['start']))return!0x0;if(0x1==_0x44bb75['length']&&(_0x340517['start']['isEqual'](_0x291fd3['end'])||_0x340517['end']['isEqual'](_0x291fd3['start'])))return!0x0;}if(0x3==_0x1f7f78&&0x3==_0x285672&&_0x340517['start']['isBefore'](_0x291fd3['start'])){const _0x8c73f6=_0x340517['end']['nodeAfter'],_0x713934=_0x291fd3['start']['nodeBefore'];return _0xcf6791['isBlockImage'](_0x8c73f6)&&_0x8c73f6===_0x713934;}return!0x1;}function _0x2669ae(_0x2d9ae1,_0x27fb6a){return _0x351ef3(_0x2d9ae1,_0x27fb6a)?[_0x2d9ae1,_0x27fb6a]:_0x351ef3(_0x27fb6a,_0x2d9ae1)?[_0x27fb6a,_0x2d9ae1]:null;}_0x37bed7['plugins']['has']('ImageResize')&&(_0x11dd7b['enableDefaultAttributesIntegration']('resizeImage'),_0x11dd7b['registerBlockAttribute']('resizedWidth'),_0x11dd7b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x45af8e,'FORMAT_IMAGE_SIZE'))),_0x37bed7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11dd7b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11dd7b['registerBlockAttribute']('alt')),_0x11dd7b['descriptionFactory']['registerDescriptionCallback'](_0xde1b02=>{if(!!_0x47c039['find'](({type:_0x352154,subType:_0x280492})=>_0xde1b02['type']==_0x352154&&_0xde1b02['subType']==_0x280492))return _0xde1b02['previous']?{}:void 0x0;}),_0x11dd7b['descriptionFactory']['registerDescriptionCallback'](_0x5ab7e7=>{if('insertion'==_0x5ab7e7['type']||'deletion'==_0x5ab7e7['type']){const _0x5b10b1=_0x5ab7e7['getContainedElement']();if(_0x5b10b1&&_0x5b10b1['is']('element','caption'))return{'type':'insertion'==_0x5ab7e7['type']?'addObject':'removeObject','element':_0x5b10b1,'quantity':0x1};}}),_0x11dd7b['descriptionFactory']['registerDescriptionCallback'](_0x34bed3=>'formatBlock'==_0x34bed3['type']&&'convertInlineImageToBlock'==_0x34bed3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x34bed3['type']&&'convertBlockImageToInline'==_0x34bed3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11dd7b['descriptionFactory']['registerDescriptionCallback'](_0x4216e9=>{if('attribute'!=_0x4216e9['type'])return;const {data:_0x2a92f6}=_0x4216e9;if(!_0x2a92f6||'alt'!=_0x2a92f6['key'])return;const _0x3dd1e2=_0x2a92f6['newValue'];return _0x3dd1e2?{'type':'format','content':o(_0x45af8e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3dd1e2+'\x22')}:{'type':'format','content':o(_0x45af8e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x555b96=this['editor'],_0x41446a=_0x555b96['locale'];_0x555b96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ade67=>{if('formatBlock'!=_0x5ade67['type']&&'formatInline'!=_0x5ade67['type'])return;const {data:_0xca553}=_0x5ade67;if(_0xca553){if('imageTextAlternative'==_0xca553['commandName']){const _0x282ce2=_0xca553['commandParams'][0x0]['newValue'];return _0x282ce2?{'type':'format','content':o(_0x41446a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x282ce2+'\x22')}:{'type':'format','content':o(_0x41446a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xca553['commandName']){const _0x2811f0=_0xca553['commandParams'][0x0]['width'];return _0x2811f0?{'type':'format','content':o(_0x41446a,'*Set\x20image\x20width:*\x20%0',_0x2811f0)}:{'type':'format','content':o(_0x41446a,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x168acf=this['editor']['locale'],_0x8bde03=this['editor']['plugins']['get']('TrackChangesEditing');_0x8bde03['enableDefaultAttributesIntegration']('replaceImageSource'),_0x8bde03['registerBlockAttribute']('src'),_0x8bde03['descriptionFactory']['registerDescriptionCallback'](_0x19f17f=>{if('attribute'!=_0x19f17f['type'])return;const {data:_0xc7a898}=_0x19f17f;return _0xc7a898&&'src'==_0xc7a898['key']?_0xc7a898['newValue']&&_0xc7a898['oldValue']?{'type':'format','content':o(_0x168acf,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x10d108=this['editor']['plugins']['get']('TrackChangesEditing');_0x10d108['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x10d108['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x10d108['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x10d108['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21ea63=this['editor'],_0x40bc6b=_0x21ea63['locale'];_0x21ea63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338c05=>{if('formatBlock'!=_0x338c05['type']&&'formatInline'!=_0x338c05['type'])return;const {data:_0x579192}=_0x338c05;if(!_0x579192||'replaceImageSource'!=_0x579192['commandName'])return;return{'type':'format','content':o(_0x40bc6b,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x4a8caa{['afterInit'](){const _0x1816df=this['editor'];if(!_0x1816df['plugins']['has']('ImageStyleEditing'))return;const _0x4602c5=_0x1816df['plugins']['get']('TrackChangesEditing'),_0x1007d5=_0x1816df['plugins']['get']('ImageUtils'),_0x48ba0a={};_0x4602c5['enableCommand']('imageStyle',(_0x2c293c,_0x5be773)=>{const _0x43f9cd=_0x1816df['plugins']['get']('Users')['me'],_0x41b2e=_0x1816df['commands']['get']('imageStyle');let _0x2a027f=_0x1007d5['getClosestSelectedImageElement'](_0x1816df['model']['document']['selection']),_0xc26488=_0x1816df['model']['createRangeOn'](_0x2a027f),_0xa78f2f=_0x41b2e['value'];if(_0xa78f2f==_0x5be773['value'])return;const _0x21f0ec={'commandName':'imageStyle','commandParams':[_0x5be773],'formatGroupId':_0x205078()};_0x1816df['model']['change'](()=>{if(_0x4602c5['getSuggestions']()['filter'](_0x5744f0=>_0x5744f0['isInContent']&&_0x43f9cd==_0x5744f0['author']&&('formatBlock'==_0x5744f0['type']||'formatInline'==_0x5744f0['type'])&&('imageStylePreApply'==_0x5744f0['subType']||'imageStylePostApply'==_0x5744f0['subType'])&&_0x5744f0['getFirstRange']()['isEqual'](_0xc26488))['forEach'](_0x2a48a1=>_0x4602c5['discardSuggestion'](_0x2a48a1['head'])),_0x2a027f=_0x1007d5['getClosestSelectedImageElement'](_0x1816df['model']['document']['selection']),_0xc26488=_0x1816df['model']['createRangeOn'](_0x2a027f),_0x41b2e['refresh'](),_0x1816df['commands']['get']('imageTypeInline')['refresh'](),_0x1816df['commands']['get']('imageTypeBlock')['refresh'](),_0xa78f2f=_0x41b2e['value'],_0xa78f2f!=_0x5be773['value'])return _0x1007d5['isInlineImage'](_0x2a027f)&&_0x41b2e['shouldConvertImageType'](_0x5be773['value'],_0x2a027f)?(_0x2c293c({..._0x5be773,'setImageSizes':!0x1}),_0x2a027f=_0x1007d5['getClosestSelectedImageElement'](_0x1816df['model']['document']['selection']),void _0x4602c5['markBlockFormat'](_0x2a027f,{..._0x21f0ec,'commandReversedParams':[{'value':_0xa78f2f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1007d5['isBlockImage'](_0x2a027f)?_0x4602c5['markBlockFormat'](_0x2a027f,_0x21f0ec,[],'imageStylePostApply'):_0x4602c5['markInlineFormat'](_0xc26488,_0x21f0ec,'imageStylePostApply'));});});for(const _0x56f13d of _0x1816df['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48ba0a[_0x56f13d['name']]=_0x56f13d['title']['toLowerCase']();_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x22d2a8])=>{_0x1007d5['setImageNaturalSizeAttributes'](_0x22d2a8['getContainedElement']());}),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x45cac2,_0x2c966c)=>{_0x4602c5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x45cac2,{'commandName':_0x2c966c['commandName'],'commandParams':_0x2c966c['commandReversedParams']});}),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x421fea,_0x5e79cd){if(_0xcf85be(_0x421fea,_0x5e79cd))return[_0x421fea,_0x5e79cd];if(_0xcf85be(_0x5e79cd,_0x421fea))return[_0x5e79cd,_0x421fea];return null;});const _0x27a5c1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xcf85be(_0x1c5502,_0x299d2a){const _0x2bf4f6=_0x27a5c1['findIndex'](({type:_0x476914,subType:_0x496177})=>_0x1c5502['type']==_0x476914&&_0x1c5502['subType']==_0x496177),_0x4526e6=_0x27a5c1['findIndex'](({type:_0x3c11a2,subType:_0x4a1afd})=>_0x299d2a['type']==_0x3c11a2&&_0x299d2a['subType']==_0x4a1afd);if(_0x2bf4f6<0x0||_0x4526e6<0x0)return!0x1;const _0x53664f=_0x1c5502['getFirstRange'](),_0x20fe26=_0x299d2a['getFirstRange']();if((0x0==_0x2bf4f6||0x1==_0x2bf4f6)&&0x2==_0x4526e6&&_0x53664f['isIntersecting'](_0x20fe26))return!0x0;if(0x2==_0x2bf4f6&&0x3==_0x4526e6){const _0xd5da8e=_0x4602c5['_findSuggestions'](_0x53664f,'insertion')['filter'](({suggestion:_0x3037eb,meta:_0x111f8a})=>_0x111f8a['isOwn']&&'convertInlineImageToBlock'==_0x3037eb['subType']);if(_0xd5da8e['length']>0x1&&_0x20fe26['end']['isEqual'](_0x53664f['start']))return!0x0;if(0x1==_0xd5da8e['length']&&(_0x53664f['start']['isEqual'](_0x20fe26['end'])||_0x53664f['end']['isEqual'](_0x20fe26['start'])))return!0x0;}if(0x3==_0x2bf4f6&&0x3==_0x4526e6&&_0x53664f['start']['isBefore'](_0x20fe26['start'])){const _0x227a44=_0x53664f['end']['nodeAfter'],_0x5cd937=_0x20fe26['start']['nodeBefore'];return _0x1007d5['isBlockImage'](_0x227a44)&&_0x227a44===_0x5cd937;}return!0x1;}_0x1816df['model']['document']['registerPostFixer'](()=>{let _0x7da8b5=!0x1;const _0x40b8b5=Array['from'](_0x1816df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3811e0,data:_0x1cf034}of _0x40b8b5){const {group:_0x2e48cc,type:_0x21d67c,subType:_0x5764f8,id:_0x335b4a}=_0x4602c5['_splitMarkerName'](_0x3811e0);if('suggestion'==_0x2e48cc&&_0x4602c5['hasSuggestion'](_0x335b4a)){if('formatBlock'==_0x21d67c&&('imageStylePreApply'==_0x5764f8||'imageStylePostApply'==_0x5764f8)){const _0x5cfd0c=_0x4602c5['getSuggestion'](_0x335b4a);if(_0x1cf034['newRange']){const _0x2aaec9=_0x5cfd0c['getFirstRange']()['getContainedElement']();if(_0x1007d5['isBlockImage'](_0x2aaec9))continue;_0x4602c5['discardSuggestion'](_0x5cfd0c),_0x7da8b5=!0x0;}}if('insertion'==_0x21d67c&&'imageCaption'==_0x5764f8&&!_0x1cf034['newRange']){const _0x236723=_0x4602c5['getSuggestion'](_0x335b4a);_0x236723['next']&&_0x236723['next']['isInContent']&&(_0x4602c5['discardSuggestion'](_0x236723['next']),_0x7da8b5=!0x0);}}}return _0x7da8b5;}),this['_registerLegacyDescription'](_0x48ba0a);}['_registerLegacyDescription'](_0x2ec354){const _0x292c4e=this['editor'],_0x3fc8ba=_0x292c4e['locale'];_0x292c4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x289036=>{if('formatBlock'!=_0x289036['type']&&'formatInline'!=_0x289036['type'])return;const {data:_0x16bd79}=_0x289036;if(!_0x16bd79||'imageStyle'!=_0x16bd79['commandName'])return;const _0x4a8c46=_0x16bd79['commandParams'][0x0]['value'];return _0x448811('side'===_0x4a8c46?o(_0x3fc8ba,'FORMAT_SIDE_IMAGE'):_0x2ec354[_0x4a8c46]||_0x4a8c46);function _0x448811(_0x319e2a){return{'type':'format','content':o(_0x3fc8ba,'*Format:*\x20%0',_0x319e2a)};}});}}class ct extends _0x4a8caa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2df076){super(_0x2df076),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x571716=this['editor'],_0x28d20d=_0x571716['commands']['get']('importWord'),_0x32043a=_0x571716['commands']['get']('trackChanges');_0x28d20d&&(_0x28d20d['on']('execute',(_0x2bb4d1,[,_0x5a77f8])=>{this['_trackChangesValueDuringImport']=_0x32043a['value'],_0x5a77f8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x28d20d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x28d20d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x32043a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x571716['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x432b0f,_0x156461){const {suggestions:_0x2cf581}=_0x156461,_0x317eb9=this['editor']['commands']['get']('trackChanges'),_0x4bb95b=_0x317eb9['value'];this['_trackChangesValueDuringImport']!==_0x4bb95b&&(_0x317eb9['execute'](),this['_trackChangesExecuted']=!0x0),_0x2cf581&&_0x2cf581['forEach'](({id:_0x4ffccd,type:_0x1c6549,author:_0x4e2bed,created_at:_0x458c0c})=>{const _0x252a97={'id':_0x4ffccd,'type':_0x1c6549,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4e2bed,'createdAt':_0x458c0c?new Date(_0x458c0c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x252a97);});}}class ut extends _0x4a8caa{['afterInit'](){const _0x197dd2=this['editor'],_0x3ccf63=_0x197dd2['plugins']['get']('TrackChangesEditing');if(_0x197dd2['plugins']['has']('IndentEditing')&&(_0x3ccf63['enableCommand']('indent'),_0x3ccf63['enableCommand']('outdent')),_0x197dd2['plugins']['has']('IndentBlock')){for(const _0x14b674 of['indentBlock','outdentBlock'])_0x3ccf63['enableDefaultAttributesIntegration'](_0x14b674);}const _0x4ad3d4=_0x197dd2['locale'];_0x3ccf63['registerBlockAttribute']('blockIndent'),_0x3ccf63['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4ad3d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3fa1=this['editor'],_0x12a04f=_0x2c3fa1['locale'],_0x4688af=_0x2c3fa1['plugins']['get']('TrackChangesEditing');_0x4688af['descriptionFactory']['registerDescriptionCallback'](_0x436379=>{if('formatBlock'!=_0x436379['type'])return;const {data:_0x2d4376}=_0x436379;if(!_0x2d4376)return;if('indentBlock'!=_0x2d4376['commandName']&&'outdentBlock'!=_0x2d4376['commandName'])return;const _0x227412=_0x436379['getItems']()[0x0],_0x5cf02c=_0x4688af['descriptionFactory']['getItemLabel'](_0x227412);return'indentBlock'==_0x2d4376['commandName']?{'type':'format','content':o(_0x12a04f,'*Indent:*\x20%0',_0x5cf02c)}:'outdentBlock'==_0x2d4376['commandName']?{'type':'format','content':o(_0x12a04f,'*Outdent:*\x20%0',_0x5cf02c)}:void 0x0;});}}class ft extends _0x4a8caa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4a8caa{['afterInit'](){const _0x67868=this['editor'];if(!_0x67868['plugins']['has']('LinkEditing'))return;const _0x340cd6=_0x67868['plugins']['get']('TrackChangesEditing'),_0x3c62e6=_0x67868['commands']['get']('link');_0x340cd6['enableDefaultAttributesIntegration']('link'),_0x340cd6['enableDefaultAttributesIntegration']('unlink'),_0x340cd6['registerInlineAttribute']('linkHref');for(const _0x390aee of _0x3c62e6['manualDecorators'])_0x340cd6['registerInlineAttribute'](_0x390aee['id']),_0x340cd6['descriptionFactory']['registerAttributeLabel'](_0x390aee['id'],'link\x20('+_0x390aee['label']['toLowerCase']()+')');_0x340cd6['descriptionFactory']['registerDescriptionCallback'](_0xfdb9b7=>{if('attribute'!=_0xfdb9b7['type'])return;const {data:_0x7a1a4}=_0xfdb9b7;if(!_0x7a1a4||'linkHref'!=_0x7a1a4['key'])return;const _0x5d587=_0x7a1a4['newValue'],_0x1a2e9f=_0x67868['locale'];return{'type':'format','content':null==_0x5d587?o(_0x1a2e9f,'*Remove\x20link*'):o(_0x1a2e9f,'*Set\x20link:*\x20%0','\x22'+_0x5d587+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142203=this['editor'],_0x5c0718=_0x142203['locale'];_0x142203['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d50cd=>{if('formatInline'!=_0x3d50cd['type'])return;const {data:_0x26defc}=_0x3d50cd;if(_0x26defc){if('link'==_0x26defc['commandName']){const _0x4f8c6d=_0x26defc['commandParams'][0x0];return{'type':'format','content':o(_0x5c0718,'*Set\x20link:*\x20%0','\x22'+_0x4f8c6d+'\x22')};}return'unlink'==_0x26defc['commandName']?{'type':'format','content':o(_0x5c0718,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x4a8caa{['afterInit'](){const _0x1371b1=this['editor'],_0x12aafb=_0x1371b1['locale'];if(!_0x1371b1['plugins']['has']('LegacyListEditing'))return;const _0x3a3e09=_0x1371b1['plugins']['get']('TrackChangesEditing'),_0x5b4393=_0x1371b1['plugins']['has']('LegacyTodoListEditing');function _0x411d75(_0x480f2b){return()=>{const _0x242a24=_0x1371b1['model']['document']['selection'],_0x39de59=_0x1371b1['commands']['get'](_0x480f2b);if(_0x39de59['value'])return void _0x1371b1['execute']('paragraph',{});const _0x4b38c2=_0x480f2b['slice'](0x0,-0x4),_0x3b5a1b=function(_0x46ee74,_0x2767e7,_0x436d93){let _0x3cb34d=Array['from'](_0x46ee74)['filter'](_0x43a007=>function(_0x10265c,_0x12552f){return _0x12552f['checkChild'](_0x10265c['parent'],'listItem')&&!_0x12552f['isObject'](_0x10265c);}(_0x43a007,_0x436d93));_0x3cb34d=_0x3cb34d['filter'](_0x49fc96=>!_0x49fc96['is']('element','listItem')||_0x49fc96['getAttribute']('listType')!=_0x2767e7);const _0x2960f8=new Set();for(const _0x2ae2db of _0x3cb34d)_0x2ae2db['is']('element','listItem')?_0x2960f8['add'](Le(_0x2ae2db)):_0x2960f8['add'](_0x2ae2db);return Array['from'](_0x2960f8);}(_0x242a24['getSelectedBlocks'](),_0x4b38c2,_0x1371b1['model']['schema']);_0x1371b1['model']['change'](()=>{for(const _0xf9adb3 of _0x3b5a1b)_0x3a3e09['markBlockFormat'](_0xf9adb3,{'commandName':_0x480f2b,'commandParams':[{'forceValue':!_0x39de59['value']}],'formatGroupId':'blockName'},Ee(_0xf9adb3));});};}function _0x2dc04e(_0x39e449){return()=>{const _0x1b6123=function(_0x22446d){let _0x186450=Array['from'](_0x22446d);const _0x4d3e37=_0x186450['findIndex'](_0x215258=>'listItem'!=_0x215258['name']);return _0x4d3e37>-0x1&&(_0x186450=_0x186450['slice'](0x0,_0x4d3e37)),_0x186450;}(_0x1371b1['model']['document']['selection']['getSelectedBlocks']()),_0x1b31a3=_0x1371b1['model']['createRange'](_0x1371b1['model']['createPositionAt'](_0x1b6123[0x0],'before'),_0x1371b1['model']['createPositionAt'](_0x1b6123[_0x1b6123['length']-0x1],'end'));_0x1371b1['model']['change'](()=>{_0x3a3e09['markBlockFormat'](_0x1b31a3,{'commandName':_0x39e449,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1b606f){const _0x54518c=new Set();for(const _0x23dfc7 of _0x1b606f){let _0x19ab3e=_0x23dfc7['nextSibling'];for(;_0x19ab3e&&_0x19ab3e['getAttribute']('listIndent')>_0x23dfc7['getAttribute']('listIndent');)_0x54518c['add'](_0x19ab3e),_0x19ab3e=_0x19ab3e['nextSibling'];}return Array['from'](_0x54518c);}(_0x1b6123));});};}_0x3a3e09['enableCommand']('numberedList',_0x411d75('numberedList')),_0x3a3e09['enableCommand']('bulletedList',_0x411d75('bulletedList')),_0x5b4393&&_0x3a3e09['enableCommand']('todoList',_0x411d75('todoList')),_0x3a3e09['enableCommand']('indentList',_0x2dc04e('indentList')),_0x3a3e09['enableCommand']('outdentList',_0x2dc04e('outdentList')),_0x5b4393&&_0x3a3e09['enableCommand']('checkTodoList',()=>{const _0x2a2575=_0x1371b1['commands']['get']('checkTodoList'),_0x4e7bbd=Array['from'](_0x2a2575['_selectedElements']);_0x4e7bbd['filter'](_0x5c05f1=>_0x5c05f1['getAttribute']('todoListChecked')!=_0x2a2575['value']),_0x1371b1['model']['change'](()=>{for(const _0x45010e of _0x4e7bbd)_0x3a3e09['markBlockFormat'](_0x45010e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a2575['value']}]});});}),_0x3a3e09['descriptionFactory']['registerElementLabel']('listItem',_0x35eb8d=>o(_0x12aafb,'ELEMENT_LIST_ITEM',_0x35eb8d)),_0x3a3e09['descriptionFactory']['registerDescriptionCallback'](_0x47ce7a=>{if('formatBlock'!=_0x47ce7a['type']&&'formatInline'!=_0x47ce7a['type'])return;const {data:_0x174e20}=_0x47ce7a;if(_0x174e20){if('numberedList'==_0x174e20['commandName']||'bulletedList'==_0x174e20['commandName']||'todoList'==_0x174e20['commandName'])switch(_0x174e20['commandName']['replace']('List','')){case'bulleted':return _0x33cc65(o(_0x12aafb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33cc65(o(_0x12aafb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33cc65(o(_0x12aafb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x174e20['commandName'])return{'type':'format','content':o(_0x12aafb,'*Indent:*\x20%0',o(_0x12aafb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x174e20['commandName'])return{'type':'format','content':o(_0x12aafb,'*Outdent:*\x20%0',o(_0x12aafb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x174e20['commandName'])return _0x174e20['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12aafb,'*Check\x20item*')}:{'type':'format','content':o(_0x12aafb,'*Uncheck\x20item*')};}function _0x33cc65(_0x6c3458){return{'type':'format','content':o(_0x12aafb,'*Change\x20to:*\x20%0',_0x6c3458)};}});}}function Le(_0x9f444b){const _0x2a6346=_0x9f444b['getAttribute']('listIndent');if(0x0==_0x2a6346)return _0x9f444b;let _0x26202a=_0x9f444b;for(;_0x9f444b['previousSibling']&&_0x9f444b['previousSibling']['is']('element','listItem');){const _0x1ac79d=_0x9f444b['previousSibling']['getAttribute']('listIndent');if(_0x1ac79d==_0x2a6346)_0x26202a=_0x9f444b['previousSibling'];else{if(_0x1ac79d<_0x2a6346)break;}_0x9f444b=_0x9f444b['previousSibling'];}return _0x26202a;}function Ee(_0x24a599){const _0x3cca27=[];if(_0x24a599['is']('element','listItem')&&_0x24a599['getAttribute']('listIndent')>0x0){let _0x442e6a=_0x24a599['nextSibling'];for(;_0x442e6a&&'listItem'==_0x442e6a['name']&&_0x442e6a['getAttribute']('listIndent')==_0x24a599['getAttribute']('listIndent');)_0x3cca27['push'](_0x442e6a),_0x442e6a=_0x442e6a['nextSibling'];}return _0x3cca27;}class Q extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1f7ead=this['editor']['config']['get']('list.properties'),_0xc36fb7=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f7ead['styles']&&_0xc36fb7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1f7ead['reversed']&&_0xc36fb7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1f7ead['startIndex']&&_0xc36fb7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xc36fb7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2302d3,_0x1c4388={}){const _0x1de15d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd5c1a2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1de15d['markMultiRangeBlockFormat'](_0xd5c1a2,{'commandName':'listStyle','commandParams':[{'type':_0x1c4388['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d012e,_0xcbadf2={}){const _0x4cb6fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15c8a2=this['_getSuggestionBlocks'](_0x5e0d20=>_0x5e0d20['is']('element','listItem')&&'numbered'===_0x5e0d20['getAttribute']('listType'));if(_0x15c8a2['length']<0x1)return;const _0x48f086=_0x15c8a2['map'](_0x4932bb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4932bb,'before'),this['editor']['model']['createPositionAt'](_0x4932bb,0x0)));this['editor']['model']['change'](()=>{_0x4cb6fc['markMultiRangeBlockFormat'](_0x48f086,{'commandName':'listReversed','commandParams':[{'reversed':_0xcbadf2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x17f798,_0x58a24e={}){const _0x29a105=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dc1c4=this['_getSuggestionBlocks'](_0x411421=>_0x411421['is']('element','listItem')&&'numbered'===_0x411421['getAttribute']('listType'));if(_0x4dc1c4['length']<0x1)return;const _0x2f5f81=_0x4dc1c4['map'](_0x3788b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3788b8,'before'),this['editor']['model']['createPositionAt'](_0x3788b8,0x0)));this['editor']['model']['change'](()=>{_0x29a105['markMultiRangeBlockFormat'](_0x2f5f81,{'commandName':'listStart','commandParams':[{'startIndex':_0x58a24e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47d4e1){if('formatBlock'!=_0x47d4e1['type']&&'formatInline'!=_0x47d4e1['type'])return;const _0x1d943d=this['editor']['locale'],{data:_0x160812}=_0x47d4e1;if(!_0x160812)return;let _0x406e2b,_0x58558f;switch(_0x160812['commandName']){case'listStyle':_0x406e2b='*Change\x20to:*\x20%0',_0x58558f={'type':'format','content':o(_0x1d943d,_0x406e2b,o(_0x1d943d,this['_getTranslationKeyForListStyle'](_0x160812['commandParams'][0x0]['type'])))};break;case'listReversed':_0x406e2b=_0x160812['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x58558f={'type':'format','content':o(_0x1d943d,_0x406e2b)};break;case'listStart':_0x406e2b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x58558f={'type':'format','content':o(_0x1d943d,_0x406e2b,_0x160812['commandParams'][0x0]['startIndex'])};}return _0x58558f;}['_getSuggestionBlocksForListStyle'](){const _0x5644d8=this['editor']['plugins']['get']('LegacyListUtils');let _0x49359d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x49359d[0x0]?.['is']('element','listItem')&&_0x49359d['unshift'](..._0x5644d8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x49359d[_0x49359d['length']-0x1]?.['is']('element','listItem')&&_0x49359d['push'](..._0x5644d8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x49359d=[...new Set(_0x49359d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x49359d=_0x49359d['filter'](_0x1e35bc=>_0x1e35bc['is']('element','listItem'))),_0x49359d;}['_getSuggestionBlocks'](_0x346f7f){const _0x32f354=this['editor']['plugins']['get']('LegacyListUtils');let _0x4f061e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x346f7f)['map'](_0x592bcf=>{const _0x56e7ca=this['editor']['model']['createPositionAt'](_0x592bcf,0x0);return[..._0x32f354['getSiblingNodes'](_0x56e7ca,'backward'),..._0x32f354['getSiblingNodes'](_0x56e7ca,'forward')];})['flat']();return _0x4f061e=[...new Set(_0x4f061e)],_0x4f061e;}['_getTranslationKeyForListStyle'](_0x2c30c8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2c30c8)||'default')['toUpperCase']()+'_LIST_'+_0x2c30c8['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4a8caa{['afterInit'](){const _0x2fc658=this['editor'];if(!_0x2fc658['plugins']['has']('MediaEmbedEditing'))return;const _0x5f01b1=_0x2fc658['plugins']['get']('TrackChangesEditing'),_0x14b572=_0x2fc658['locale'];_0x5f01b1['enableCommand']('mediaEmbed'),_0x5f01b1['descriptionFactory']['registerElementLabel']('media',_0x3c5b22=>o(_0x14b572,'ELEMENT_MEDIA',_0x3c5b22)),_0x2fc658['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x117769,{writer:_0x18d0ca,options:_0xdc9120})=>{if(_0xdc9120['showSuggestionHighlights'])return _0x18d0ca['createEmptyElement']('div');},'converterPriority':'high'}),_0x2fc658['data']['downcastDispatcher']['on']('attribute:url:media',(_0x25cbb1,_0x1ffc0a,_0x440b8e)=>{_0x440b8e['options']['showSuggestionHighlights']&&_0x25cbb1['stop']();},{'priority':'high'});}}class mt extends _0x4a8caa{['afterInit'](){const _0x57ab85=this['editor'];_0x57ab85['plugins']['has']('MentionEditing')&&_0x57ab85['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x4a8caa{['afterInit'](){const _0x175e77=this['editor'];if(!_0x175e77['plugins']['has']('MergeFieldsEditing'))return;_0x175e77['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x175e77['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1b6a61=_0x175e77['plugins']['get']('TrackChangesEditing'),_0x510bdf=_0x175e77['locale'];_0x1b6a61['descriptionFactory']['registerElementLabel']('mergeField',_0xf4c049=>o(_0x510bdf,'ELEMENT_MERGE_FIELD',_0xf4c049)),_0x1b6a61['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x453ad6=>o(_0x510bdf,'ELEMENT_MERGE_FIELD',_0x453ad6)),_0x1b6a61['descriptionFactory']['registerDescriptionCallback'](_0x41177a=>{if('insertion'!=_0x41177a['type']&&'deletion'!=_0x41177a['type'])return;const _0x5615e1=_0x41177a['getContainedElement']();if(null==_0x5615e1)return;if(!_0x5615e1['is']('element','mergeField')&&!_0x5615e1['is']('element','mergeFieldBlock'))return;const _0x33f4d5=_0x175e77['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5615e1['getAttribute']('id'));return'insertion'==_0x41177a['type']?{'type':'insertion','content':o(_0x510bdf,'*Insert:*\x20%0','\x22'+_0x33f4d5+'\x22\x20'+o(_0x510bdf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x510bdf,'*Remove:*\x20%0','\x22'+_0x33f4d5+'\x22\x20'+o(_0x510bdf,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x4a8caa{['afterInit'](){const _0x2c35a9=this['editor'],_0x266dbc=_0x2c35a9['plugins']['get']('TrackChangesEditing');_0x2c35a9['plugins']['has']('MultiLevelList')&&(_0x266dbc['enableDefaultAttributesIntegration']('multiLevelList'),_0x266dbc['registerBlockAttribute']('listMarkerStyle'),_0x266dbc['descriptionFactory']['registerDescriptionCallback'](_0x23d7aa=>this['handleDescriptions'](_0x23d7aa)));}['handleDescriptions'](_0x1459ac){const _0x216cc0=this['editor']['locale'],{data:_0x18bd84}=_0x1459ac,_0x4568bf={'type':'format','content':''};if(_0x18bd84&&'listMarkerStyle'==_0x18bd84['key']){if(!_0x18bd84['oldValue'])return{'type':'format','content':o(_0x216cc0,'*Set\x20format:*\x20%0',o(_0x216cc0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18bd84['newValue']+')'};if(!_0x18bd84['newValue']){let _0x115ed1=_0x1459ac['head'];for(;_0x115ed1;){if(_0x115ed1['data']&&'listType'==_0x115ed1['data']['key']&&_0x115ed1['data']['newValue'])return _0x4568bf;_0x115ed1=_0x115ed1['next'];}return{'type':'format','content':o(_0x216cc0,'*Remove\x20format:*\x20%0',o(_0x216cc0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18bd84['oldValue']+')'};}}}}class kt extends _0x4a8caa{['afterInit'](){const _0x5cd682=this['editor'];if(!_0x5cd682['plugins']['has']('PageBreakEditing'))return;_0x5cd682['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x29128e=_0x5cd682['plugins']['get']('TrackChangesEditing'),_0x1e1a7c=_0x5cd682['locale'];_0x29128e['descriptionFactory']['registerElementLabel']('pageBreak',_0x55b532=>o(_0x1e1a7c,'ELEMENT_PAGE_BREAK',_0x55b532));}}class bt extends _0x4a8caa{['afterInit'](){const _0x334b5e=this['editor'];if(!_0x334b5e['plugins']['has']('Paragraph'))return;const _0x5da471=_0x334b5e['locale'],_0x7ef739=_0x334b5e['plugins']['get']('TrackChangesEditing');_0x7ef739['descriptionFactory']['registerElementLabel']('paragraph',_0x59e899=>o(_0x5da471,'ELEMENT_PARAGRAPH',_0x59e899)),_0x7ef739['enableDefaultAttributesIntegration']('paragraph'),_0x7ef739['enableCommand']('insertParagraph'),_0x334b5e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x334b5e),{'priority':'highest'}),_0x334b5e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f1ff4,_0x51a98f,_0x24bf96)=>{_0x24bf96['options']['showSuggestionHighlights']&&nr(_0x334b5e,{'showActiveMarker':!0x1})(_0x1f1ff4,_0x51a98f,_0x24bf96);},{'priority':'highest'});const _0x1d0886=_0x7ef739['descriptionFactory'];_0x1d0886['registerDescriptionCallback'](_0x52e308=>{if('insertion'!==_0x52e308['type'])return;const {start:_0x1ec683,end:_0x479be6}=_0x52e308['getFirstRange']();if(!_0x1ec683['isTouching'](_0x479be6)||!_0x1ec683['nodeAfter'])return;const _0x3c5dda=_0x334b5e['model']['schema'],_0xe2d823=_0x1ec683['nodeAfter'];return _0x3c5dda['isBlock'](_0xe2d823)&&!_0x3c5dda['isLimit'](_0xe2d823)&&_0x3c5dda['checkChild'](_0xe2d823,'$text')?{'type':'insertion','content':o(_0x5da471,'*Insert:*\x20%0',_0x1d0886['getItemLabel'](_0xe2d823,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d33c=this['editor'],_0x3a0955=_0x52d33c['locale'];_0x52d33c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x96f34d=>{if('formatBlock'!=_0x96f34d['type'])return;const {data:_0x51d9b0}=_0x96f34d;return _0x51d9b0&&'paragraph'==_0x51d9b0['commandName']?{'type':'format','content':o(_0x3a0955,'*Change\x20to:*\x20%0',o(_0x3a0955,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45539b,{showActiveMarker:_0x265c6c=!0x0}={}){return(_0x3bfb8c,_0x3f0b97,_0x225f45)=>{const _0x4d73b8=_0x45539b['plugins']['get']('TrackChangesEditing'),_0x41f4e2=_0x3f0b97['markerRange']['start'],_0x422f70=_0x3f0b97['markerRange']['end'],_0x3c49fa=_0x45539b['model']['schema'];if(!_0x41f4e2['isTouching'](_0x422f70)||!_0x41f4e2['nodeAfter'])return;const _0x9f169f=_0x41f4e2['nodeAfter'];if(_0x3c49fa['isBlock'](_0x9f169f)&&!_0x3c49fa['isLimit'](_0x9f169f)&&_0x3c49fa['checkChild'](_0x9f169f,'$text')){if(!_0x225f45['consumable']['consume'](_0x3f0b97['markerRange'],_0x3bfb8c['name']))return;const {authorId:_0x5dd17a}=_0x4d73b8['_splitMarkerName'](_0x3f0b97['markerName']),_0xddc02d=_0x225f45['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5dd17a}),_0x3f3845=_0x225f45['mapper']['toViewPosition'](_0x422f70);_0x265c6c&&_0x4d73b8['activeMarkers']['includes'](_0x3f0b97['markerName'])&&_0x225f45['writer']['addClass']('ck-suggestion-marker--active',_0xddc02d),_0x225f45['writer']['insert'](_0x3f3845,_0xddc02d),_0x225f45['mapper']['bindElementToMarker'](_0xddc02d,_0x3f0b97['markerName']);}};}class yt extends _0x4a8caa{['afterInit'](){const _0x9bd471=this['editor'];if(!_0x9bd471['plugins']['has']('RemoveFormatEditing'))return;_0x9bd471['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5853c1=this['editor'];_0x5853c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x124054=>{if('formatBlock'!=_0x124054['type']&&'formatInline'!=_0x124054['type'])return;const {data:_0x54761e}=_0x124054;return _0x54761e&&'removeFormat'==_0x54761e['commandName']?{'type':'format','content':o(_0x5853c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x4a8caa{['afterInit'](){const _0x22dffe=this['editor'];if(!_0x22dffe['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1dbe39=_0x22dffe['plugins']['get']('TrackChangesEditing');_0x1dbe39['enableCommand']('goToPreviousRestrictedEditingException'),_0x1dbe39['enableCommand']('goToNextRestrictedEditingException');const _0x1a2c63=_0x22dffe['plugins']['get']('RestrictedEditingModeEditing');_0x1a2c63['enableCommand']('trackChanges'),_0x1a2c63['enableCommand']('acceptSuggestion'),_0x1a2c63['enableCommand']('discardSuggestion'),_0x1a2c63['enableCommand']('acceptAllSuggestions'),_0x1a2c63['enableCommand']('discardAllSuggestions'),_0x1a2c63['enableCommand']('acceptSelectedSuggestions'),_0x1a2c63['enableCommand']('discardSelectedSuggestions');}}class St extends _0x4a8caa{static get['requires'](){return[_0x103ccf];}['init'](){const _0x554012=this['editor'],_0x3398f5=_0x554012['plugins']['get']('TrackChangesEditing');_0x3398f5['enableCommand']('shiftEnter'),_0x554012['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x554012),{'priority':'high'}),_0x554012['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x554012),{'priority':'high'}),_0x554012['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b7b9a,_0x3545b6,_0x1a5504)=>{_0x1a5504['options']['showSuggestionHighlights']&&ke(_0x554012,{'showActiveMarker':!0x1})(_0x1b7b9a,_0x3545b6,_0x1a5504);}),_0x3398f5['descriptionFactory']['registerElementLabel']('softBreak',_0x25f5b5=>o(_0x554012['locale'],'ELEMENT_LINE_BREAK',_0x25f5b5));}}function ke(_0x57f10b,{showActiveMarker:_0x391f1f=!0x0}={}){return(_0x2c941a,_0x1fb6d9,_0x1b4cb5)=>{const _0xbcaf6d=_0x57f10b['plugins']['get']('TrackChangesEditing');if(!_0x1b4cb5['consumable']['test'](_0x1fb6d9['markerRange'],_0x2c941a['name']))return;const _0x21cc3f=_0x57f10b['model'];for(const _0x4b22b5 of _0x1fb6d9['markerRange']['getItems']()){if(!_0x4b22b5['is']('element','softBreak'))continue;const _0x75d205='deletion'==_0x1fb6d9['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x26640a}=_0xbcaf6d['_splitMarkerName'](_0x1fb6d9['markerName']),_0x5797f4=_0x1b4cb5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x75d205,'data-author-id':_0x26640a}),_0xebec99=_0x1b4cb5['mapper']['toViewPosition'](_0x21cc3f['createPositionBefore'](_0x4b22b5));_0x391f1f&&_0xbcaf6d['activeMarkers']['includes'](_0x1fb6d9['markerName'])&&_0x1b4cb5['writer']['addClass']('ck-suggestion-marker--active',_0x5797f4),_0x1b4cb5['writer']['insert'](_0xebec99,_0x5797f4),_0x1b4cb5['mapper']['bindElementToMarker'](_0x5797f4,_0x1fb6d9['markerName']);}};}class At extends _0x4a8caa{['afterInit'](){const _0x54129f=this['editor'],_0x1409d9=_0x54129f['model'],_0x52f086=_0x54129f['locale'];if(!_0x54129f['plugins']['has']('StandardEditingModeEditing'))return;const _0x8198dc=_0x54129f['plugins']['get']('TrackChangesEditing'),_0x17c570='restrictedEditingException',_0x1e2c85=_0x54129f['commands']['get'](_0x17c570);_0x8198dc['enableCommand'](_0x17c570,(_0x4d1927,_0xb834eb={})=>{const _0x329a3e=_0x1409d9['document']['selection'];if(_0x329a3e['isCollapsed'])return void _0x4d1927(_0xb834eb);const _0x35f176=void 0x0!==_0xb834eb['forceValue']?_0xb834eb['forceValue']:!_0x1e2c85['value'];_0x1409d9['change'](()=>{const _0x393dba=Array['from'](_0x329a3e['getRanges']());for(const _0x3f27b6 of _0x393dba){const _0x4d11f6=_0x35f176?[_0x3f27b6]:io(_0x17c570,_0x3f27b6,_0x1409d9);for(const _0x1f7dbb of _0x4d11f6)_0x8198dc['markInlineFormat'](_0x1f7dbb,{'commandName':_0x17c570,'commandParams':[{'forceValue':_0x35f176}]});}});}),_0x8198dc['descriptionFactory']['registerDescriptionCallback'](_0x39cbc9=>{if('formatBlock'!=_0x39cbc9['type']&&'formatInline'!=_0x39cbc9['type'])return;const {data:_0x1bfd4f}=_0x39cbc9;return _0x1bfd4f&&_0x1bfd4f['commandName']==_0x17c570?_0x1bfd4f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52f086,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x52f086,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x4a8caa{['afterInit'](){const _0x903ac=this['editor'];if(!_0x903ac['plugins']['has']('Style')||!_0x903ac['plugins']['has']('DataSchema'))return;const _0x16253f=_0x903ac['plugins']['get']('TrackChangesEditing'),_0x1fcc62=_0x903ac['locale'],_0x5d5929=_0x903ac['config']['get']('style')||{},_0x121438=_0x903ac['plugins']['get']('GeneralHtmlSupport'),_0x11e672=_0x903ac['plugins']['get']('StyleUtils')['normalizeConfig'](_0x903ac['plugins']['get']('DataSchema'),_0x5d5929['definitions']);_0x16253f['enableDefaultAttributesIntegration']('style');const _0x3792fd=new Set();for(const _0x11678e of _0x11e672['block']){const _0x48c4a9=_0x121438['getGhsAttributeNameForElement'](_0x11678e['element']);_0x3792fd['add'](_0x48c4a9);}const _0x1bed96=new Set();for(const _0x36e2f5 of _0x11e672['inline']){const _0x3ea27a=_0x121438['getGhsAttributeNameForElement'](_0x36e2f5['element']);_0x1bed96['add'](_0x3ea27a);for(const _0x64b17f of _0x36e2f5['ghsAttributes'])_0x1bed96['add'](_0x64b17f);}for(const _0x35b10e of _0x3792fd)_0x16253f['registerBlockAttribute'](_0x35b10e),_0x16253f['descriptionFactory']['registerAttributeLabel'](_0x35b10e,o(_0x1fcc62,'FORMAT_STYLE'));for(const _0x2a42b5 of _0x1bed96)_0x16253f['registerInlineAttribute'](_0x2a42b5),_0x16253f['descriptionFactory']['registerAttributeLabel'](_0x2a42b5,o(_0x1fcc62,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x441ca4=this['editor'],_0x105dcb=_0x441ca4['locale'];_0x441ca4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24618e=>{if('formatBlock'!=_0x24618e['type']&&'formatInline'!=_0x24618e['type'])return;const {data:_0x192239}=_0x24618e;return _0x192239&&'style'===_0x192239['commandName']?_0x192239['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x105dcb,'*Set\x20format:*\x20%0',_0x192239['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x105dcb,'*Remove\x20format:*\x20%0',_0x192239['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x4a8caa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x34d0e0){super(_0x34d0e0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x408872=this['editor'],_0x11c8b6=_0x408872['model']['document']['selection'];if(!_0x408872['plugins']['has']('TableEditing'))return;const _0xda5f6c=_0x408872['locale'],_0x124e08=_0x408872['plugins']['get']('TrackChangesEditing'),_0x3de5b1=_0x408872['plugins']['get']('TableUtils');_0x124e08['descriptionFactory']['registerElementLabel']('table',_0x4cfe04=>o(_0xda5f6c,'ELEMENT_TABLE',_0x4cfe04)),this['_setupColumnsRowsFixing'](),_0x124e08['enableCommand']('insertTable'),_0x124e08['enableCommand']('selectTableRow'),_0x124e08['enableCommand']('selectTableColumn');for(const _0x33dba5 of['insertTableRowAbove','insertTableRowBelow']){const _0x87b1e0=_0x408872['commands']['get'](_0x33dba5);_0x124e08['enableCommand'](_0x33dba5,_0x417aad=>{_0x408872['model']['change'](_0x3d4a31=>{_0x417aad();const _0x315f31='above'===_0x87b1e0['order'],_0x4faee3=_0x3de5b1['getSelectionAffectedTableCells'](_0x11c8b6),_0xe13cbe=_0x3de5b1['getRowIndexes'](_0x4faee3),_0x429108=_0x315f31?_0xe13cbe['first']-0x1:_0xe13cbe['last']+0x1,_0x232226=_0x4faee3[0x0]['findAncestor']('table'),_0x304b7c=_0x3de5b1['createTableWalker'](_0x232226,{'startRow':_0x429108,'endRow':_0x429108}),_0xfa4049=Array['from'](_0x304b7c)['map'](_0x6e6e16=>_0x3d4a31['createRangeOn'](_0x6e6e16['cell']));_0x124e08['markMultiRangeInsertion'](_0xfa4049,'tableRow');});});}for(const _0x14b74f of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c390c=_0x408872['commands']['get'](_0x14b74f);_0x124e08['enableCommand'](_0x14b74f,_0x3404f9=>{_0x408872['model']['change'](_0x26f158=>{_0x3404f9();const _0x4d161a='left'===_0x1c390c['order'],_0x2c635f=_0x3de5b1['getSelectionAffectedTableCells'](_0x11c8b6),_0x5fd609=_0x3de5b1['getColumnIndexes'](_0x2c635f),_0x30bb2b=_0x4d161a?_0x5fd609['first']-0x1:_0x5fd609['last']+0x1,_0x294af0=_0x2c635f[0x0]['findAncestor']('table'),_0x3595d7=_0x3de5b1['createTableWalker'](_0x294af0,{'startRow':0x0,'column':_0x30bb2b,'includeAllSlots':!0x1}),_0x2e2594=Array['from'](_0x3595d7)['map'](_0x3b322d=>_0x26f158['createRangeOn'](_0x3b322d['cell']));_0x124e08['markMultiRangeInsertion'](_0x2e2594,'tableColumn');});});}for(const _0x3e6b50 of['removeTableRow','removeTableColumn']){const _0x1567c7=_0x3e6b50['substr'](0xb),_0x2601b9=_0x1567c7['toLowerCase'](),_0x7320=_0x2601b9['substr'](0x0,0x3)+'span',_0x4bf777='table'+_0x1567c7,_0x23e4d1='min'+_0x1567c7,_0x2a5be5='max'+_0x1567c7;_0x124e08['enableCommand'](_0x3e6b50,()=>{_0x408872['model']['change'](_0x476bd7=>{const _0x5a7d18=_0x3de5b1['getSelectionAffectedTableCells'](_0x11c8b6),_0x3635cd=_0x5a7d18[0x0]['findAncestor']('table');let _0x47440a;if('removeTableRow'==_0x3e6b50){const _0x5996fc=_0x3de5b1['getRowIndexes'](_0x5a7d18);_0x47440a={'startRow':_0x5996fc['first'],'endRow':_0x5996fc['last'],'includeAllSlots':!0x0};}else{const _0x42e9fa=_0x3de5b1['getColumnIndexes'](_0x5a7d18);_0x47440a={'startColumn':_0x42e9fa['first'],'endColumn':_0x42e9fa['last'],'includeAllSlots':!0x0};}const _0x5bffdb=_0x3de5b1['createTableWalker'](_0x3635cd,_0x47440a),_0x2ba266=Array['from'](_0x5bffdb)['map'](({cell:_0x368b67})=>_0x368b67),_0x392092=Re(_0x2ba266['filter'](_0x5215d0=>_0x5215d0['hasAttribute'](_0x7320))),_0x501289=Re(_0x2ba266['filter'](_0x19e7ec=>!_0x19e7ec['hasAttribute'](_0x7320)))['map'](_0x50924e=>_0x476bd7['createRangeOn'](_0x50924e)),_0x10d5ac=_0x124e08['markMultiRangeDeletion'](_0x501289,_0x4bf777);if(_0x10d5ac&&('tableRow'==_0x10d5ac['subType']||'tableColumn'==_0x10d5ac['subType'])){const _0x5b6197=this['_getSuggestionCoords'](_0x10d5ac);for(const _0x1dca1e of _0x392092){const _0x5306fe=_0x476bd7['createRangeOn'](_0x1dca1e),_0x5416a2=_0x3de5b1['getCellLocation'](_0x1dca1e),_0x466a61=_0x1dca1e['getAttribute'](_0x7320)-0x1,_0x54a64d=_0x5b6197[_0x23e4d1],_0x441808=_0x5b6197[_0x2a5be5];_0x54a64d<=_0x5416a2[_0x2601b9]&&_0x5416a2[_0x2601b9]+_0x466a61<=_0x441808&&_0x10d5ac['addRange'](_0x5306fe);}}});});}function _0x11da8a(_0x2a6c14){const _0x4c3dc0=Array['from'](_0x11c8b6['getRanges']())['map'](_0x1e3b1d=>_0x4daf91['fromRange'](_0x1e3b1d));_0x408872['model']['change'](_0x129406=>{const _0x168005=_0x129406['batch'];_0x2a6c14=_0x2a6c14['filter'](_0x30550e=>'$graveyard'!=_0x30550e['root']['rootName']),_0x129406['setSelection'](_0x2a6c14),_0x408872['commands']['get']('removeTableRow')['refresh'](),_0x408872['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x408872['model']['enqueueChange'](()=>{_0x408872['model']['enqueueChange'](_0x168005,_0x2c4dc8=>{const _0x16536f=_0x4c3dc0['filter'](_0x837db8=>'$graveyard'!=_0x837db8['root']['rootName']);_0x16536f['length']>0x0&&_0x2c4dc8['setSelection'](_0x16536f);for(const _0x5e1bc5 of _0x4c3dc0)_0x5e1bc5['detach']();});});});}function _0x5adc02(_0x32fbdd){_0x408872['model']['change'](_0x4f8153=>{const _0x491a75=Array['from'](_0x11c8b6['getRanges']())['map'](_0x476f47=>_0x4daf91['fromRange'](_0x476f47)),_0x3a6bdc=[];for(const _0x53e76a of _0x32fbdd)for(const _0x3cbe98 of _0x53e76a['getItems']({'shallow':!0x0}))_0x3a6bdc['push'](_0x3cbe98);for(const _0x38a128 of _0x3a6bdc)'$graveyard'!=_0x38a128['root']['rootName']&&(_0x4f8153['setSelection'](_0x4f8153['createPositionAt'](_0x38a128,0x0)),_0x408872['commands']['get']('removeTableColumn')['refresh'](),_0x408872['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1f0516=_0x491a75['filter'](_0x3ef01e=>'$graveyard'!=_0x3ef01e['root']['rootName']);_0x1f0516['length']>0x0&&_0x4f8153['setSelection'](_0x1f0516);for(const _0x1730f8 of _0x491a75)_0x1730f8['detach']();});}function _0x4a1111(_0x483256,_0x24806a){return _0x24806a['every'](_0x145ec8=>_0x483256['some'](_0x3d8dfd=>_0x3d8dfd['end']['isEqual'](_0x145ec8['start'])||_0x145ec8['end']['isEqual'](_0x3d8dfd['start'])));}function _0x551258(_0x2e8c63,_0x5b4e9c){return!_0x2e8c63['some'](_0x3b1d17=>_0x5b4e9c['some'](_0x2b25a3=>_0x3b1d17['isIntersecting'](_0x2b25a3)))&&_0x2e8c63['some'](_0x3f0f77=>_0x5b4e9c['some'](_0x172ee7=>_0x3f0f77['end']['isTouching'](_0x172ee7['start'])));}_0x408872['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33b155,_0x3644be,_0x6d6ae4)=>{if(!_0x6d6ae4['options']['showSuggestionHighlights'])return;const _0x27f884=_0x3644be['item'];if(!_0x27f884)return;const _0x1eecca=_0x6d6ae4['mapper']['toViewElement'](_0x27f884);function _0x1f0ece(_0x26ce6b){return Array['isArray'](_0x26ce6b)?_0x26ce6b:[_0x26ce6b];}_0x1eecca&&'tableCell'===_0x27f884['name']&&_0x492f28(_0x1eecca,_0x6d6ae4['writer'],(_0x4d908f,_0x503e5c,_0xa0a5cd)=>_0xa0a5cd['addClass'](_0x1f0ece(_0x503e5c['classes']),_0x4d908f),(_0x5cc87a,_0x477833,_0x399d7f)=>_0x399d7f['removeClass'](_0x1f0ece(_0x477833['classes']),_0x5cc87a));},{'priority':'highest'}),_0x124e08['descriptionFactory']['registerDescriptionCallback'](_0x407cb3=>{if('insertion'!=_0x407cb3['type']&&'deletion'!=_0x407cb3['type'])return;const _0x974501=_0x407cb3['getContainedElement']();if(null!=_0x974501&&_0x974501['is']('element','table')){if('insertion'==_0x407cb3['type']){const _0x107c57=_0x407cb3['getItems']()['filter'](_0x5990df=>_0x5990df['is']('$textProxy'))['map'](_0x934582=>_0x934582['data']);if(_0x107c57['length'])return{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x107c57['join']('\x20')+'\x22'))};}if('deletion'==_0x407cb3['type']){const _0x37e751=_0x407cb3['getItems']()['filter'](_0x1200c9=>_0x1200c9['is']('$textProxy'))['map'](_0x33d7c7=>_0x33d7c7['data']);if(_0x37e751['length'])return{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37e751['join']('\x20')+'\x22'))};}}}),_0x124e08['descriptionFactory']['registerDescriptionCallback'](_0x52a8ab=>{if('tableRow'==_0x52a8ab['subType']){const _0x5e1f45=_0x52a8ab['getItems']()['filter'](_0x497e05=>_0x497e05['is']('$textProxy'))['map'](_0x3f3324=>_0x3f3324['data']),_0x317ac0=this['_getSuggestionCoords'](_0x52a8ab),_0x5d8bad=_0x317ac0['maxRow']-_0x317ac0['minRow']+0x1;if('insertion'==_0x52a8ab['type'])return _0x5e1f45['length']?{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d8bad,'\x22'+_0x5e1f45['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_ROW',_0x5d8bad))};if('deletion'==_0x52a8ab['type'])return _0x5e1f45['length']?{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d8bad,'\x22'+_0x5e1f45['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_ROW',_0x5d8bad))};}if('tableColumn'==_0x52a8ab['subType']){const _0x590dce=_0x52a8ab['getItems']()['filter'](_0x5cecbb=>_0x5cecbb['is']('$textProxy'))['map'](_0xd0f2b8=>_0xd0f2b8['data']),_0x2a285b=this['_getSuggestionCoords'](_0x52a8ab),_0x1b1d27=_0x2a285b['maxColumn']-_0x2a285b['minColumn']+0x1;if('insertion'==_0x52a8ab['type'])return _0x590dce['length']?{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b1d27,'\x22'+_0x590dce['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_COLUMN',_0x1b1d27))};if('deletion'==_0x52a8ab['type'])return _0x590dce['length']?{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b1d27,'\x22'+_0x590dce['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_COLUMN',_0x1b1d27))};}}),_0x124e08['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x11da8a),_0x124e08['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x11da8a),_0x124e08['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5adc02),_0x124e08['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5adc02),_0x124e08['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4a1111),_0x124e08['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4a1111),_0x124e08['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x551258),_0x124e08['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x551258);}['_acceptFormatSuggestionCallbackFactory'](){const _0xdad7da=this['editor'],_0x496820=_0xdad7da['model']['document']['selection'];return(_0x3c26d5,_0x44cc44)=>{_0xdad7da['model']['change'](_0x51ac95=>{const {commandName:_0x59545a,commandParams:_0x1d5cf0}=_0x44cc44;let _0x41f0ad=_0x3c26d5[0x0]['end']['nodeBefore'];_0x1d5cf0&&_0x1d5cf0[0x0]&&!0x1===_0x1d5cf0[0x0]['forceValue']&&(_0x41f0ad=_0x3c26d5[0x0]['start']['nodeAfter']);const _0x257bfc=_0x51ac95['createRangeIn'](_0x41f0ad);if('$graveyard'==_0x257bfc['root']['rootName'])return;const _0x1c1a41=Array['from'](_0x496820['getRanges']())['map'](_0x567585=>_0x4daf91['fromRange'](_0x567585));_0x51ac95['setSelection'](_0x257bfc),_0xdad7da['commands']['get'](_0x59545a)['refresh'](),_0x1d5cf0['push']({'forceDefaultExecution':!0x0}),_0xdad7da['execute'](_0x59545a,..._0x1d5cf0);const _0x4f9319=_0x1c1a41['filter'](_0x2100c7=>'$graveyard'!=_0x2100c7['root']['rootName']);_0x4f9319['length']>0x0&&_0x51ac95['setSelection'](_0x4f9319);for(const _0x57dd2e of _0x1c1a41)_0x57dd2e['detach']();});};}['_getCoordsForCells'](_0x15ad3e){const _0x489501=this['editor']['plugins']['get']('TableUtils');let _0x51eac1=Number['MAX_SAFE_INTEGER'],_0x2ee75d=Number['MIN_SAFE_INTEGER'],_0x38f711=Number['MAX_SAFE_INTEGER'],_0xfec7fa=Number['MIN_SAFE_INTEGER'];for(const _0x3b1c66 of _0x15ad3e){if('$graveyard'==_0x3b1c66['root']['rootName'])continue;const {row:_0x171ce6,column:_0x47cd85}=_0x489501['getCellLocation'](_0x3b1c66),_0x454885=_0x3b1c66['hasAttribute']('rowspan')?_0x3b1c66['getAttribute']('rowspan')-0x1:0x0,_0x34b1b9=_0x3b1c66['hasAttribute']('colspan')?_0x3b1c66['getAttribute']('colspan')-0x1:0x0;_0x51eac1=_0x171ce6<_0x51eac1?_0x171ce6:_0x51eac1,_0x2ee75d=_0x171ce6+_0x454885>_0x2ee75d?_0x171ce6+_0x454885:_0x2ee75d,_0x38f711=_0x47cd85<_0x38f711?_0x47cd85:_0x38f711,_0xfec7fa=_0x47cd85+_0x34b1b9>_0xfec7fa?_0x47cd85+_0x34b1b9:_0xfec7fa;}return{'minRow':_0x51eac1,'maxRow':_0x2ee75d,'minColumn':_0x38f711,'maxColumn':_0xfec7fa};}['_setupColumnsRowsFixing'](){const _0x4dc0ca=this['editor'],_0x56f779=_0x4dc0ca['plugins']['get']('TrackChangesEditing'),_0x587b9c=_0x4dc0ca['plugins']['get']('TableUtils');_0x4dc0ca['model']['document']['on']('change:data',()=>{const _0x464a9e=Array['from'](_0x4dc0ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21445f,data:_0x5ba738}of _0x464a9e){const {group:_0x5a2f97,id:_0x3302d4,subType:_0x3f5a34}=_0x56f779['_splitMarkerName'](_0x21445f);if('suggestion'!=_0x5a2f97)continue;if(null!=_0x5ba738['oldRange'])continue;const _0x4d858b=_0x56f779['getSuggestion'](_0x3302d4);this['_tablePostFixingSubtypes']['includes'](_0x3f5a34)&&this['_tableSuggestions']['add'](_0x4d858b);}},{'priority':'low'});const _0x7fc957=(_0x12ead5,_0x2312c2)=>{let _0x82238c=!0x1;const _0x26cb99=_0x2312c2['createRangeOn'](_0x12ead5),_0x69c45=_0x12ead5['findAncestor']('table'),_0x5aadd4=_0x587b9c['getCellLocation'](_0x12ead5);for(const _0x4f768b of this['_tableSuggestions']){const _0x3c3623=_0x4f768b['subType'],_0x453daa=_0x3c3623['startsWith']('tablePaste'),_0x56a9e2=_0x3c3623['substr'](_0x453daa?0xa:0x5),_0x55f95d=_0x56a9e2['toLowerCase'](),_0x43ee9c=_0x55f95d['substr'](0x0,0x3)+'span',_0x5d8d0f='min'+_0x56a9e2,_0x917be8='max'+_0x56a9e2;if(!_0x4f768b['isInContent'])continue;if(_0x69c45!=_0x4f768b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4f768b['isIntersectingWithRange'](_0x26cb99))continue;const _0x19ff17=_0x12ead5['hasAttribute'](_0x43ee9c)?_0x12ead5['getAttribute'](_0x43ee9c)-0x1:0x0,_0xd8ef78=this['_getSuggestionCoords'](_0x4f768b),_0x23d8f4=_0xd8ef78[_0x5d8d0f],_0x2ea560=_0xd8ef78[_0x917be8];_0x23d8f4<=_0x5aadd4[_0x55f95d]&&_0x5aadd4[_0x55f95d]+_0x19ff17<=_0x2ea560&&(_0x4f768b['addRange'](_0x26cb99),_0x82238c=!0x0);}return _0x82238c;};_0x4dc0ca['model']['document']['registerPostFixer'](_0x5119e0=>{let _0x307c79=!0x1;for(const _0x1b6012 of _0x4dc0ca['model']['document']['differ']['getChanges']())if('insert'==_0x1b6012['type']){if('tableRow'==_0x1b6012['name']){for(const _0x4fcd16 of _0x1b6012['position']['nodeAfter']['getChildren']())_0x307c79=_0x307c79||_0x7fc957(_0x4fcd16,_0x5119e0);}else'tableCell'==_0x1b6012['name']&&(_0x307c79=_0x307c79||_0x7fc957(_0x1b6012['position']['nodeAfter'],_0x5119e0));}return _0x307c79;});}['_getSuggestionCoords'](_0xee8856){return this['_getCoordsForCells'](_0xee8856['getRanges']()['map'](_0x272b48=>_0x272b48['start']['nodeAfter']));}}function Re(_0x39d11a){return Array['from'](new Set(_0x39d11a)['values']());}class _t extends _0x4a8caa{static get['requires'](){return[vt];}['afterInit'](){const _0x2420b2=this['editor'],_0x130473=_0x2420b2['model']['document']['selection'],_0x1eb3ec=_0x2420b2['locale'];if(!_0x2420b2['plugins']['has']('TableEditing'))return;const _0xe730e9=_0x2420b2['plugins']['get']('TrackChangesEditing'),_0x122f10=_0x2420b2['plugins']['get']('TableUtils'),_0x2a2929=_0x2420b2['plugins']['get'](vt);_0x2a2929['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe730e9['enableCommand']('mergeTableCells',()=>{const _0x3cd275=_0x122f10['getSelectionAffectedTableCells'](_0x2420b2['model']['document']['selection']);_0x2420b2['model']['change'](()=>{_0xe730e9['markMultiRangeBlockFormat'](_0x3cd275,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2420b2['commands']['get']('mergeTableCells')['on']('execute',(_0xdfbbe8,_0x158019)=>{_0x2420b2['commands']['get']('trackChanges')['value']&&(_0x158019['length']>0x0&&_0x158019[_0x158019['length']-0x1]&&_0x158019[_0x158019['length']-0x1]['forceDefaultExecution']||_0xe730e9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xdfbbe8['stop']());},{'priority':'highest'});for(const _0x10bec2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x149c06=_0x2420b2['commands']['get'](_0x10bec2);_0xe730e9['enableCommand'](_0x10bec2,()=>{const _0x57e823=_0x2420b2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x145004=>_0x145004['is']('element','tableCell')),_0xea61a4=_0x149c06['value'];_0x2420b2['model']['change'](()=>{_0xe730e9['markMultiRangeBlockFormat']([_0x57e823,_0xea61a4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1270c3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1dad86=_0x2420b2['commands']['get'](_0x1270c3);_0xe730e9['enableCommand'](_0x1270c3,()=>{const _0x2a0d9d=_0x122f10['getSelectionAffectedTableCells'](_0x2420b2['model']['document']['selection'])[0x0],_0x106ca2=_0x2a0d9d['findAncestor']('table'),{column:_0x35781a,row:_0x4e6fb6}=_0x122f10['getCellLocation'](_0x2a0d9d);let _0x4a6897=[];if('horizontally'==_0x1dad86['direction']){const _0x3ec236=_0x122f10['createTableWalker'](_0x106ca2,{'startRow':_0x4e6fb6,'endRow':_0x4e6fb6,'includeAllSlots':!0x0});_0x4a6897=Array['from'](_0x3ec236)['map'](_0x57d778=>_0x57d778['cell']);}else{const _0x2c594c=_0x122f10['createTableWalker'](_0x106ca2,{'column':_0x35781a,'includeAllSlots':!0x0});_0x4a6897=Array['from'](_0x2c594c)['map'](_0x218d74=>_0x218d74['cell']);}_0x2420b2['model']['change'](_0x455e78=>{_0xe730e9['markBlockFormat'](_0x455e78['createRangeOn'](_0x2a0d9d),{'commandName':_0x1270c3,'commandParams':[]},_0x4a6897,_0x1270c3);});});}_0xe730e9['descriptionFactory']['registerDescriptionCallback'](_0x482179=>{if('formatBlock'!=_0x482179['type']&&'formatInline'!=_0x482179['type'])return;const {data:_0x18c30d}=_0x482179;return _0x18c30d&&'mergeTableCells'==_0x18c30d['commandName']?{'type':'format','content':o(_0x1eb3ec,'*Merge\x20cells*')}:void 0x0;}),_0xe730e9['descriptionFactory']['registerDescriptionCallback'](_0xd5f984=>{if('formatBlock'!=_0xd5f984['type']&&'formatInline'!=_0xd5f984['type'])return;const {data:_0x58794e}=_0xd5f984;return _0x58794e?'splitTableCellVertically'==_0x58794e['commandName']?{'type':'format','content':o(_0x1eb3ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x58794e['commandName']?{'type':'format','content':o(_0x1eb3ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x28e595=_0x2a2929['_acceptFormatSuggestionCallbackFactory']();for(const _0x1c7872 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe730e9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c7872,'accept',_0x28e595);for(const _0x4ce9fb of['splitTableCellVertically','splitTableCellHorizontally'])_0xe730e9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ce9fb,'accept',_0x28e595);_0xe730e9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xbf8f33=>{_0x2420b2['model']['change'](_0x29224b=>{const _0x2831ac=Array['from'](_0x130473['getRanges']())['map'](_0x49dc01=>_0x4daf91['fromRange'](_0x49dc01));_0x29224b['setSelection'](_0xbf8f33),_0x2420b2['commands']['get']('mergeTableCells')['refresh'](),_0x2420b2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b2133=_0x2831ac['filter'](_0x105f07=>'$graveyard'!=_0x105f07['root']['rootName']);_0x1b2133['length']>0x0&&_0x29224b['setSelection'](_0x1b2133);for(const _0x3dc96a of _0x2831ac)_0x3dc96a['detach']();});});for(const _0x18bdd3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x26862a=_0x2420b2['commands']['get'](_0x18bdd3);_0x26862a['on']('set:isEnabled',(_0x4d6934,_0x2fdfbb,_0x3adb6c)=>{if(_0x3adb6c){const _0x130244=_0x2420b2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfdb84f=>_0xfdb84f['is']('element','tableCell'));this['_areMergableCells'](_0x26862a['value'],_0x130244)||(_0x4d6934['return']=!0x1,_0x4d6934['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xcb4497=this['editor']['commands']['get']('mergeTableCells'),_0x4c24cd=this['editor']['plugins']['get']('TableUtils');if(!_0xcb4497['isEnabled'])return!0x1;const _0x1df6cd=_0x4c24cd['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5d6ecc of _0x1df6cd)for(const _0x56b7ce of _0x1df6cd)if(_0x5d6ecc!=_0x56b7ce&&!this['_areMergableCells'](_0x5d6ecc,_0x56b7ce))return!0x1;return!0x0;}['_areMergableCells'](_0x186b25,_0x1562d7){const _0x536ba1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe201d7=this['editor']['model']['createRangeOn'](_0x186b25),_0x609f1b=this['editor']['model']['createRangeOn'](_0x1562d7),_0x356a1b=new Set(),_0x20ed89=new Set();for(const _0x597b15 of _0x536ba1['getSuggestions']())if(('insertion'==_0x597b15['type']||'deletion'==_0x597b15['type']||'mergeTableCells'==_0x597b15['subType'])&&_0x597b15['isInContent']){for(const _0x3a9a36 of _0x597b15['getRanges']())_0x3a9a36['containsRange'](_0xe201d7,!0x0)&&_0x356a1b['add'](_0x597b15['type']+':'+_0x597b15['author']['id']),_0x3a9a36['containsRange'](_0x609f1b,!0x0)&&_0x20ed89['add'](_0x597b15['type']+':'+_0x597b15['author']['id']);}if(_0x356a1b['size']!=_0x20ed89['size'])return!0x1;for(const _0x2b5d4e of _0x356a1b)if(!_0x20ed89['has'](_0x2b5d4e))return!0x1;return!0x0;}}class Ct extends _0x4a8caa{static get['requires'](){return[vt];}['afterInit'](){const _0x4755bb=this['editor'];if(!_0x4755bb['plugins']['has']('TableEditing'))return;const _0x21d517=_0x4755bb['locale'],_0x3b30da=_0x4755bb['plugins']['get']('TrackChangesEditing');_0x3b30da['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3b30da['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3b30da['registerBlockAttribute']('headingRows'),_0x3b30da['registerBlockAttribute']('headingColumns'),_0x3b30da['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x21d517,'FORMAT_HEADER_ROW')),_0x3b30da['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x21d517,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x24f8aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cc6ec=this['editor']['plugins']['get']('TableUtils'),_0x91b75a=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x49f2fc({showActiveMarker:_0x2ffa82=!0x0,setDataAttribute:_0x5c43d9=!0x0}={}){return(_0x52ca4a,_0x32332c,_0x452fac)=>{const {type:_0x1cfd10,id:_0x26effc}=_0x24f8aa['_splitMarkerName'](_0x32332c['markerName']),_0x5ef14a=_0x24f8aa['getSuggestion'](_0x26effc),_0x531298=_0x5ef14a['data'];if('formatBlock'!=_0x5ef14a['type']||!_0x531298||'setTableColumnHeader'!=_0x531298['commandName'])return;if(_0x32332c['item'])return void _0x52ca4a['stop']();if(!_0x452fac['consumable']['consume'](_0x32332c['markerRange'],_0x52ca4a['name']))return;const _0xed9801=_0x32332c['markerRange']['start']['nodeAfter'],_0x1eae35=_0x32332c['markerRange']['end']['nodeBefore'],_0x27ff22=_0xed9801['parent']['parent'],{column:_0x113f2b}=_0x2cc6ec['getCellLocation'](_0xed9801),{column:_0x399288}=_0x2cc6ec['getCellLocation'](_0x1eae35);for(let _0x5b54ae=_0x113f2b;_0x5b54ae<=_0x399288;_0x5b54ae++){const _0xe5a29c=_0x2cc6ec['createTableWalker'](_0x27ff22,{'column':_0x5b54ae,'includeAllSlots':!0x1});for(const _0x5cc6c4 of _0xe5a29c){const _0x1c74c5=_0x5cc6c4['cell'],_0x754f61=_0x452fac['mapper']['toViewElement'](_0x1c74c5);_0x452fac['writer']['addClass']('ck-suggestion-marker-'+_0x1cfd10,_0x754f61),_0x5c43d9&&_0x452fac['writer']['setAttribute']('data-suggestion',_0x26effc,_0x754f61),_0x452fac['mapper']['bindElementToMarker'](_0x754f61,_0x32332c['markerName']),_0x2ffa82&&(_0x24f8aa['activeMarkers']['includes'](_0x32332c['markerName'])?_0x452fac['writer']['addClass']('ck-suggestion-marker--active',_0x754f61):_0x452fac['writer']['removeClass']('ck-suggestion-marker--active',_0x754f61));}}};}_0x24f8aa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x91b75a),_0x24f8aa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x91b75a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x49f2fc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35756d,_0x3296d2,_0x153b64)=>{_0x153b64['options']['showSuggestionHighlights']&&_0x49f2fc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x35756d,_0x3296d2,_0x153b64);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d4915,_0xad2446,_0x12e4e9)=>{const {type:_0xf403ed,id:_0xef9ee8}=_0x24f8aa['_splitMarkerName'](_0xad2446['markerName']),_0x5d2b53=_0x24f8aa['getSuggestion'](_0xef9ee8),_0x3f230e=_0x5d2b53['data'];if('formatBlock'!=_0x5d2b53['type']||!_0x3f230e||'setTableColumnHeader'!=_0x3f230e['commandName'])return;const _0x51fafd=_0x12e4e9['mapper']['markerNameToElements'](_0xad2446['markerName']);if(_0x51fafd){for(const _0x340c38 of _0x51fafd)_0x12e4e9['writer']['removeClass']('ck-suggestion-marker-'+_0xf403ed,_0x340c38),_0x12e4e9['writer']['removeClass']('ck-suggestion-marker--active',_0x340c38),_0x12e4e9['writer']['removeAttribute']('data-suggestion',_0x340c38),_0x12e4e9['mapper']['unbindElementFromMarkerName'](_0x340c38,_0xad2446['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cc32b=this['editor'],_0xc3f713=_0x4cc32b['locale'];function _0x15733b(_0x515c6c){return{'type':'format','content':o(_0xc3f713,'*Format:*\x20%0',_0x515c6c)};}_0x4cc32b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41cfe0=>{if('formatBlock'!=_0x41cfe0['type'])return;const {data:_0x2ceee8}=_0x41cfe0;if(_0x2ceee8){if('setTableRowHeader'==_0x2ceee8['commandName']){const _0x55bc75=_0x2ceee8['commandParams'][0x0]['forceValue'];return _0x15733b(o(_0xc3f713,_0x55bc75?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2ceee8['commandName']){const _0x47c091=_0x2ceee8['commandParams'][0x0]['forceValue'];return _0x15733b(o(_0xc3f713,_0x47c091?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x111e51=>[_0x111e51,null]));class Nt extends _0x4a8caa{static get['requires'](){return[vt];}['afterInit'](){const _0x4652ef=this['editor'];if(!_0x4652ef['plugins']['has']('TableClipboard'))return;const _0x3f0c50=_0x4652ef['plugins']['get']('TrackChangesEditing'),_0x15df27=_0x4652ef['plugins']['get']('TableUtils'),_0x2146d1=_0x4652ef['plugins']['get'](vt),_0x356747=_0x4652ef['plugins']['get']('TableClipboard');_0x2146d1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4652ef['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4652ef['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x39b1f9=null;_0x4652ef['model']['on']('insertContent',(_0x5b030c,_0x11add0)=>{const [_0x17a953,_0x268c85]=_0x11add0,_0x451e01=_0x11add0[_0x11add0['length']-0x1];_0x451e01&&_0x451e01['forceDefaultExecution']||_0x3f0c50['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x7267ab,_0x58069a,_0x5f07e3,_0x4bc04d,_0x392772){if(_0x58069a&&!_0x58069a['is']('documentSelection'))return!0x1;const _0x5af314=_0x392772['getTableIfOnlyTableInContent'](_0x7267ab,_0x5f07e3);if(!_0x5af314||!Ae(_0x5af314,void 0x0,_0x4bc04d))return!0x1;const _0x5a09d1=_0x4bc04d['getSelectionAffectedTableCells'](_0x5f07e3['document']['selection']);if(!_0x5a09d1['length'])return!0x1;const _0x4c03b3=_0x5a09d1[0x0]['findAncestor']('table'),_0x43ad12=_0x4bc04d['getRowIndexes'](_0x5a09d1),_0x4637ea=_0x4bc04d['getColumnIndexes'](_0x5a09d1),_0x5f1701={'startRow':_0x43ad12['first'],'endRow':_0x43ad12['last'],'startColumn':_0x4637ea['first'],'endColumn':_0x4637ea['last']};return 0x1==_0x5a09d1['length']&&(_0x5f1701['endRow']+=_0x4bc04d['getRows'](_0x5af314)-0x1,_0x5f1701['endColumn']+=_0x4bc04d['getColumns'](_0x5af314)-0x1),Ae(_0x4c03b3,_0x5f1701,_0x4bc04d);}(_0x17a953,_0x268c85,_0x4652ef['model'],_0x15df27,_0x356747)&&(_0x5b030c['stop'](),_0x39b1f9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4652ef['model']['change'](()=>{_0x4652ef['model']['insertContent'](_0x11add0[0x0],_0x11add0[0x1],_0x11add0[0x2],{'forceDefaultExecution':!0x0});const _0x43e854=_0x205078(),{rowInsertionRanges:_0x45909c,columnInsertionRanges:_0x477065,insertionRanges:_0x7ce68d,deletionRanges:_0xb64303,cells:_0x2cf942}=_0x39b1f9;_0x45909c['length']&&_0x3f0c50['markMultiRangeInsertion'](_0x45909c,'tablePasteRow',{'tablePasteChainId':_0x43e854}),_0x477065['length']&&_0x3f0c50['markMultiRangeInsertion'](_0x477065,'tablePasteColumn',{'tablePasteChainId':_0x43e854}),_0x7ce68d['length']&&(_0x3f0c50['markMultiRangeInsertion'](_0x7ce68d,'tablePaste',{'tablePasteChainId':_0x43e854,'skipNestingCheck':!0x0}),_0x7ce68d['forEach'](_0x1fba9b=>_0x1fba9b['detach']?.())),_0xb64303['length']&&(_0x3f0c50['markMultiRangeDeletion'](_0xb64303,'tablePaste',{'tablePasteChainId':_0x43e854,'skipNestingCheck':!0x0}),_0xb64303['forEach'](_0x30a256=>_0x30a256['detach']?.()));const _0x6b0525=_0x3f0c50['markMultiRangeBlockFormat'](_0x2cf942['map'](({element:_0x30b8e4})=>_0x30b8e4),{'formatGroupId':_0x205078()},[],'tablePasteCell',{'tablePasteChainId':_0x43e854});if(_0x6b0525){const _0xd47fb3=_0x6b0525['getMarkers'](),_0x5d8b51=[];for(const {element:_0x2416e5,attributes:_0x308b34}of _0x2cf942){if(!_0x308b34)continue;const _0x3b4cb8=_0x4652ef['model']['createRangeOn'](_0x2416e5),_0x53d888=_0xd47fb3['find'](_0x55cfc3=>_0x55cfc3['getRange']()['isEqual'](_0x3b4cb8));_0x53d888&&_0x5d8b51['push']([_0x53d888['name'],_0x308b34]);}_0x5d8b51['length']&&_0x6b0525['setAttribute']('markerAttributes',Object['fromEntries'](_0x5d8b51));}_0x39b1f9=null;}));},{'priority':_0x494c20['high']+0xa}),_0x4652ef['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x55b874,_0x50950d)=>{const [_0x51b649,_0x846973,,_0x3226e3]=_0x50950d;if(!_0x39b1f9)return;_0x55b874['stop']();const _0x4ff766=_0x51b649['cell'],_0x1c5040=_0x846973,_0x3b315f=je(_0x4ff766),_0x4620c0=je(_0x1c5040);_0x55b874['return']=_0x4ff766;let _0x23cbbd=null,_0x2d5a68=null;if(_0x4620c0||_0x3b315f){if(_0x3b315f&&!_0x4620c0){_0x3226e3['remove'](_0x4ff766['getChild'](0x0));for(const _0x42c158 of Array['from'](_0x1c5040['getChildren']()))_0x3226e3['insert'](_0x42c158,_0x4ff766,'end');const _0x4a747a=_0x39b1f9['rowInsertionIndexes']['includes'](_0x51b649['row']),_0x2f9e4c=_0x39b1f9['columnInsertionIndexes']['includes'](_0x51b649['column']);_0x4a747a||_0x2f9e4c||(_0x23cbbd=_0x4daf91['fromRange'](_0x3226e3['createRangeIn'](_0x4ff766)));}else _0x4620c0&&!_0x3b315f&&(_0x2d5a68=_0x3226e3['createRangeIn'](_0x4ff766));}else{const _0x1747c8=_0x3226e3['createElement']('tableCellSuggestion'),_0x14bbc0=_0x3226e3['createElement']('tableCellSuggestion');_0x3226e3['wrap'](_0x3226e3['createRangeIn'](_0x4ff766),_0x14bbc0),_0x3226e3['insert'](_0x1747c8,_0x4ff766,0x0);for(const _0x36267f of Array['from'](_0x1c5040['getChildren']()))_0x3226e3['insert'](_0x36267f,_0x1747c8,'end');_0x23cbbd=_0x4daf91['fromRange'](_0x3226e3['createRangeOn'](_0x1747c8)),_0x2d5a68=_0x4daf91['fromRange'](_0x3226e3['createRangeOn'](_0x14bbc0));}const _0x2fe0b6=Array['from'](_0x1c5040['getAttributes']())['filter'](([_0x163ecf])=>we['includes'](_0x163ecf));_0x39b1f9['cells']['push']({'element':_0x4ff766,'attributes':_0x2fe0b6['length']?Object['fromEntries'](_0x2fe0b6):null}),_0x23cbbd&&_0x39b1f9['insertionRanges']['push'](_0x23cbbd),_0x2d5a68&&_0x39b1f9['deletionRanges']['push'](_0x2d5a68);},{'priority':'high'}),_0x15df27['on']('insertColumns',(_0x5d9cdc,_0x289fe0)=>{const [_0x51b863,_0x33935a={}]=_0x289fe0;if(!_0x39b1f9)return;const _0x5e1773=_0x33935a['at']||0x0,_0x3c583c=_0x33935a['columns']||0x1;_0x39b1f9['columnInsertionIndexes']=new Array(_0x3c583c)['fill'](_0x5e1773)['map']((_0x4f121d,_0x21c068)=>_0x4f121d+_0x21c068);for(const {cell:_0x2ba424}of _0x15df27['createTableWalker'](_0x51b863,{'startColumn':_0x5e1773,'endColumn':_0x5e1773+_0x3c583c-0x1}))_0x39b1f9['columnInsertionRanges']['push'](_0x4652ef['model']['createRangeOn'](_0x2ba424));},{'priority':'low'}),_0x15df27['on']('insertRows',(_0x1d02be,_0x1661f9)=>{const [_0x1a6cd3,_0x2b5947={}]=_0x1661f9;if(!_0x39b1f9)return;const _0x4ac53b=_0x2b5947['at']||0x0,_0x19a2ef=_0x2b5947['rows']||0x1;_0x39b1f9['rowInsertionIndexes']=new Array(_0x19a2ef)['fill'](_0x4ac53b)['map']((_0x563bb6,_0x1109ce)=>_0x563bb6+_0x1109ce);for(const {cell:_0x5728f3}of _0x15df27['createTableWalker'](_0x1a6cd3,{'startRow':_0x4ac53b,'endRow':_0x4ac53b+_0x19a2ef-0x1}))_0x39b1f9['rowInsertionRanges']['push'](_0x4652ef['model']['createRangeOn'](_0x5728f3));},{'priority':'low'}),_0x3f0c50['descriptionFactory']['registerDescriptionCallback'](_0x4d7428=>{if(_0x4d7428['subType']&&_0x4d7428['subType']['startsWith']('tablePaste'))return _0x4d7428['previous']?{}:{'type':'insertion','content':o(_0x4652ef['locale'],'*Replace\x20table\x20cells*')};});const _0x27b470=()=>!0x1;for(const _0x508839 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f0c50['_suggestionFactory']['registerCustomCallback']('insertion',_0x508839,'join',_0x27b470),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('deletion',_0x508839,'join',_0x27b470),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x508839,'join',_0x27b470);_0x3f0c50['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x27b470),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48f38f,_0x4a76b8,_0x438f24)=>{const _0x1912aa=_0x48f38f['map'](_0x40d3e4=>_0x40d3e4['getContainedElement']())['filter'](_0x759d9e=>_0x759d9e),_0x5364c1=new Map(_0x1912aa['map'](_0x44696b=>[_0x44696b,null]));if(_0x39b1f9){for(const {element:_0x2614ae,attributes:_0x109f2f}of _0x39b1f9['cells'])_0x109f2f&&_0x5364c1['set'](_0x2614ae,_0x109f2f);}else{if(_0x438f24&&_0x438f24['markerAttributes'])for(const [_0x4651ab,_0x1c7811]of Object['entries'](_0x438f24['markerAttributes'])){const _0x585d28=_0x4652ef['model']['markers']['get'](_0x4651ab),_0x150d01=_0x585d28?_0x585d28['getRange']()['getContainedElement']():null;_0x150d01&&_0x5364c1['set'](_0x150d01,_0x1c7811);}}_0x4652ef['model']['change'](_0x1fc4cf=>{for(const [_0x15d6b2,_0x48ab12]of _0x5364c1)_0x1fc4cf['setAttributes']({...ve,..._0x48ab12},_0x15d6b2);});});const _0x23f808=(_0x3721e6,_0x4dc028)=>{_0x3f0c50['_suggestionFactory']['registerCustomCallback'](_0x3721e6,'tablePaste',_0x4dc028,(_0x4d1694,_0x410c7d,_0xf2f52)=>{_0x4652ef['model']['change'](_0x54068a=>{const _0x2f13ae=[];for(const _0x5a933e of _0x4d1694){const _0x48e90b=_0x5a933e['start']['nodeAfter'];_0x48e90b['is']('element','tableCellSuggestion')&&_0x2f13ae['push'](_0x48e90b);}_0x3f0c50['_suggestionFactory']['getSuggestionCallback'](_0x3721e6,null,_0x4dc028)(_0x4d1694,_0x410c7d,_0xf2f52);for(const _0x28838e of _0x2f13ae)'$graveyard'!=_0x28838e['root']['rootName']&&_0x54068a['unwrap'](_0x28838e);});});};_0x23f808('insertion','accept'),_0x23f808('insertion','discard'),_0x23f808('deletion','accept'),_0x23f808('deletion','discard'),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ec916=>{const _0x4ea4af=_0x1ec916['map'](_0x35efd1=>_0x35efd1['getContainedElement']()),_0x2eda3f=_0x4ea4af[0x0]['findAncestor']('table'),{minRow:_0x282d70,maxRow:_0x45ca35}=_0x2146d1['_getCoordsForCells'](_0x4ea4af);_0x15df27['removeRows'](_0x2eda3f,{'at':_0x282d70,'rows':_0x45ca35-_0x282d70+0x1});}),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52344f=>{const _0x25fad9=_0x52344f['map'](_0x48201f=>_0x48201f['getContainedElement']()),_0x3a28a0=_0x25fad9[0x0]['findAncestor']('table'),{minColumn:_0x35e61b,maxColumn:_0x52d0fa}=_0x2146d1['_getCoordsForCells'](_0x25fad9);_0x15df27['removeColumns'](_0x3a28a0,{'at':_0x35e61b,'columns':_0x52d0fa-_0x35e61b+0x1});});const _0x3cf11a=(_0x4cc545,_0x1120b5)=>{if(!_0x1120b5['subType']||!_0x1120b5['subType']['startsWith']('tablePaste'))return;const _0x440563=_0x1120b5['attributes']['tablePasteChainId'],_0x5265b2=_0x3f0c50['getSuggestions']()['filter'](_0x19e169=>_0x19e169['isInContent']&&_0x19e169['attributes']&&_0x19e169['attributes']['tablePasteChainId']==_0x440563);_0x5265b2['length']&&_0x1120b5['getAllAdjacentSuggestions']()['length']!=_0x5265b2['length']&&_0x5265b2['reduce']((_0x57ff2c,_0x327ec8)=>(_0x57ff2c['next']=_0x327ec8,_0x327ec8['previous']=_0x57ff2c,_0x327ec8));};function _0x5aacab(_0xd478c9,_0x3d2305=!0x0){const {id:_0x331b5e,authorId:_0x14c783}=_0x3f0c50['_splitMarkerName'](_0xd478c9['markerName']),_0x41bd85=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3795b0=_0x3f0c50['activeMarkers']['includes'](_0xd478c9['markerName']);return _0x3795b0&&_0x41bd85['push']('ck-suggestion-marker--active'),{'classes':_0x41bd85,'attributes':{'data-suggestion':_0x331b5e,'data-author-id':_0x14c783},'priority':_0x3795b0&&_0x3d2305?0xbc2:0xbb8};}_0x3f0c50['on']('suggestionLoaded',_0x3cf11a,{'priority':'high'}),_0x3f0c50['on']('suggestionUnloaded',_0x3cf11a,{'priority':'high'}),_0x4652ef['model']['document']['registerPostFixer'](()=>{let _0x3d6857=!0x1;const _0x241670=Array['from'](_0x4652ef['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x400234,data:_0x4a9508}of _0x241670){const {group:_0x4c15c1,type:_0x17724c,id:_0x587d0b}=_0x3f0c50['_splitMarkerName'](_0x400234);if('suggestion'!=_0x4c15c1||'deletion'!=_0x17724c||_0x4a9508['oldRange'])continue;if(!_0x3f0c50['hasSuggestion'](_0x587d0b))continue;const _0x4d2b5b=_0x3f0c50['getSuggestion'](_0x587d0b)['getRanges'](),_0x457254=_0x4652ef['plugins']['get']('Users')['me'];for(const _0x41a209 of _0x3f0c50['getSuggestions']()){if(!_0x41a209['isInContent']||_0x41a209['author']!=_0x457254)continue;if('formatBlock'!=_0x41a209['type']||'tablePasteCell'!=_0x41a209['subType'])continue;if(_0x41a209['getRanges']()['every'](_0x533f6d=>_0x4d2b5b['some'](_0x1c6d24=>_0x1c6d24['containsRange'](_0x533f6d,!0x0)))){for(const _0x28547f of _0x41a209['getAllAdjacentSuggestions']())_0x28547f['isInContent']&&(_0x28547f['discard'](),_0x3d6857=!0x0);}}}return _0x3d6857;}),_0x4652ef['model']['document']['registerPostFixer'](_0x1a5c36=>{const _0x4ed99f=_0x4652ef['commands']['get']('redo');if(!_0x4ed99f||!_0x4ed99f['_createdBatches']['has'](_0x1a5c36['batch']))return!0x1;let _0xb8d245=!0x1;const _0x267dda=_0x4652ef['plugins']['get']('Users')['me'],_0x588a1f=_0x4652ef['model']['document']['differ']['getChanges'](),_0x3f00e0=Array['from'](_0x4652ef['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x24b0ba,data:_0x14c0d3})=>{const {group:_0x5f63e2,subType:_0x438672,authorId:_0x4644cb}=_0x3f0c50['_splitMarkerName'](_0x24b0ba);return'suggestion'==_0x5f63e2&&'tablePaste'==_0x438672&&_0x4644cb==_0x267dda['id']&&!_0x14c0d3['oldRange'];});for(const _0x468f37 of _0x588a1f){if('insert'!=_0x468f37['type']||'tableCellSuggestion'!=_0x468f37['name']||0x1!=_0x468f37['length'])continue;const _0x255f7e=_0x1a5c36['createRange'](_0x468f37['position'],_0x468f37['position']['getShiftedBy'](0x1));if(!_0x3f00e0['find'](({data:_0x3736b4})=>_0x3736b4['newRange']['isEqual'](_0x255f7e))){for(const {name:_0x5b9b47,data:_0x4a2442}of _0x3f00e0)if(_0x255f7e['containsRange'](_0x4a2442['newRange'])){_0x1a5c36['updateMarker'](_0x5b9b47,{'range':_0x255f7e}),_0xb8d245=!0x0;break;}}}return _0xb8d245;}),_0x4652ef['model']['document']['registerPostFixer'](_0x1ce828=>{let _0x36da3a=!0x1;const _0x4748fa=_0x4652ef['plugins']['get']('Users')['me'],_0x4ecca5=_0x3f0c50['getSuggestions']()['filter'](_0x5c1583=>_0x5c1583['isInContent']&&_0x5c1583['author']==_0x4748fa),_0x48f0e0=new Set(),_0x72d88e=new Set();for(const _0x1f7db0 of _0x4ecca5)if('tablePaste'==_0x1f7db0['subType'])for(const _0x1b8c00 of _0x1f7db0['getMarkers']()){const _0x425003=_0x1b8c00['getRange']()['getContainedElement']();if(_0x425003){if(_0x425003['is']('element','tableCellSuggestion')&&je(_0x425003)){_0x1f7db0['removeMarker'](_0x1b8c00['name']),_0x48f0e0['add'](_0x425003),_0x36da3a=!0x0;const _0x3d5590=_0x425003['nextSibling'],_0x6b4dc=_0x425003['previousSibling'],_0x229994=_0x3d5590&&_0x3d5590['is']('element','tableCellSuggestion'),_0x4332e1=_0x6b4dc&&_0x6b4dc['is']('element','tableCellSuggestion');_0x229994&&!_0x48f0e0['has'](_0x3d5590)&&_0x72d88e['add'](_0x3d5590),_0x4332e1&&!_0x48f0e0['has'](_0x6b4dc)&&_0x72d88e['add'](_0x6b4dc);}else _0x425003['is']('element','paragraph')&&_0x425003['isEmpty']&&(_0x1f7db0['removeMarker'](_0x1b8c00['name']),_0x36da3a=!0x0);}}else{if('tablePasteCell'==_0x1f7db0['subType']){if(!_0x1f7db0['attributes']||!_0x1f7db0['attributes']['tablePasteChainId'])continue;const _0x5d0e79=_0x1f7db0['attributes']['markerAttributes'];if(_0x5d0e79&&Object['keys'](_0x5d0e79)['length'])continue;const _0x2905db=_0x1f7db0['attributes']['tablePasteChainId'];let _0x2e131d=!0x0,_0x2fd2ed=!0x0;for(const _0xf57add of _0x4ecca5)if(_0xf57add['subType']&&_0xf57add['subType']['startsWith']('tablePaste')){if(!_0xf57add['attributes']['tablePasteChainId']){_0x2fd2ed=!0x1;break;}if(_0xf57add['id']!=_0x1f7db0['id']&&_0xf57add['attributes']['tablePasteChainId']==_0x2905db){_0x2e131d=!0x1;break;}}_0x2fd2ed&&_0x2e131d&&(_0x1f7db0['removeMarkers'](),_0x36da3a=!0x0);}}for(const _0x2f1a07 of _0x48f0e0)_0x1ce828['remove'](_0x2f1a07);for(const _0x508f6f of _0x72d88e)_0x1ce828['unwrap'](_0x508f6f);return _0x36da3a;}),_0x4652ef['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x50bd65=>_0x5aacab(_0x50bd65),'converterPriority':'high'}),_0x4652ef['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50f079,_0x443440)=>_0x443440['options']['showSuggestionHighlights']?_0x5aacab(_0x50f079,!0x1):null,'converterPriority':'high'});const _0x5cab6f=_0x4652ef['editing']['view'];this['listenTo'](_0x5cab6f['document'],'clipboardOutput',(_0x1d9012,_0x26cefd)=>{const _0xe6c9f3=[];for(const _0x462257 of _0x5cab6f['createRangeIn'](_0x26cefd['content'])['getItems']())_0x462257['is']('element','suggestion-td')&&_0xe6c9f3['push'](_0x462257);_0x5cab6f['change'](_0x571fec=>{for(const _0x5d129a of _0xe6c9f3)_0x571fec['move'](_0x571fec['createRangeIn'](_0x5d129a),_0x571fec['createPositionBefore'](_0x5d129a)),_0x571fec['remove'](_0x5d129a);});});}}function je(_0x590e2f){if(_0x590e2f['isEmpty'])return!0x0;const _0x468775=_0x590e2f['getChild'](0x0);return _0x468775['is']('element','paragraph')&&_0x468775['isEmpty'];}function Ae(_0x2a4f3d,_0x24e477={},_0x51ae92){for(const {isAnchor:_0x325239,cellHeight:_0xdebce3,cellWidth:_0x3e943a}of _0x51ae92['createTableWalker'](_0x2a4f3d,{'includeAllSlots':!0x0,..._0x24e477}))if(!_0x325239||0x1!=_0xdebce3||0x1!=_0x3e943a)return!0x1;return!0x0;}class Dt extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2f6bc3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f6bc3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2f6bc3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2f6bc3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f6bc3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2f6bc3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2f6bc3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x43c096,_0x294521){const _0x20af9c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3be1e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3de907=_0x294521['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22f307=_0x3be1e6['getColumnGroupElement'](_0x3de907);let _0x57211c=_0x22f307?_0x3be1e6['getTableColumnsWidths'](_0x22f307):null,_0x120c6c=_0x3de907['getAttribute']('tableWidth')||null;const _0x4797b6=_0x294521['tableWidth']||_0x120c6c,_0x25e548=_0x294521['columnWidths']||_0x57211c,_0x336323=this['editor']['plugins']['get']('Users')['me'];for(const _0x8c6673 of _0x20af9c['getSuggestions']()){const _0x34d310=_0x8c6673['getContainedElement']();if('resizeTable'===_0x8c6673['subType']&&_0x34d310===_0x3de907){_0x8c6673['author']!==_0x336323&&_0x8c6673['discard']();const _0x5d4217=_0x8c6673['data']['commandParams'];_0x120c6c=_0x5d4217[0x0]['tableWidth'],_0x57211c=_0x5d4217[0x0]['columnWidths'];break;}}_0x43c096({'table':_0x3de907,'tableWidth':_0x4797b6,'columnWidths':_0x25e548}),_0x20af9c['markBlockFormat'](_0x3de907,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x120c6c,'columnWidths':_0x57211c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41719c){if('formatBlock'!=_0x41719c['type']&&'formatInline'!=_0x41719c['type'])return;const {data:_0x2368d0}=_0x41719c;if(_0x2368d0&&'resizeTable'===_0x2368d0['formatGroupId']){const _0x4046a5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4046a5)};}}}class Mt extends _0x4a8caa{['afterInit'](){const _0x1600a9=this['editor'];_0x1600a9['plugins']['has']('Template')&&_0x1600a9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x4a8caa{['afterInit'](){const _0x5f126b=this['editor'];if(!_0x5f126b['commands']['get']('insertTableOfContents'))return;_0x5f126b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x42ea8d=_0x5f126b['plugins']['get']('TrackChangesEditing'),_0x20f940=_0x5f126b['locale'];_0x42ea8d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x52b786=>o(_0x20f940,'ELEMENT_TABLE_OF_CONTENTS',_0x52b786));}}class Bt extends _0x4a8caa{['afterInit'](){const _0x1b4649=this['editor'];if(!_0x1b4649['plugins']['has']('Title'))return;const _0x1a813b=_0x1b4649['plugins']['get']('TrackChangesEditing');_0x1a813b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1b4649['locale'],'ELEMENT_TITLE')),_0x1b4649['model']['document']['registerPostFixer'](_0x50a14b=>{let _0x259ee5=!0x1;const _0x3d1e8b=Array['from'](_0x1b4649['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x141ae8,data:_0x143b43}of _0x3d1e8b){const {group:_0x563dd3}=_0x1a813b['_splitMarkerName'](_0x141ae8);if('suggestion'!==_0x563dd3||!_0x143b43['newRange'])continue;const _0x1d7973=_0x143b43['newRange'],_0x2720ef=_0x1d7973['end']['nodeBefore'];if(!_0x2720ef||!_0x2720ef['is']('element','title-content'))continue;if(!_0x1d7973['start']['isTouching'](_0x1d7973['end']))continue;const _0x507a8d=_0x1b4649['model']['schema']['getNearestSelectionRange'](_0x1d7973['end'],'forward');if(_0x507a8d&&_0x507a8d['isCollapsed']){const _0x1f3528=_0x50a14b['createRange'](_0x1d7973['start'],_0x507a8d['start']);_0x1f3528['isEqual'](_0x1d7973)||(_0x50a14b['updateMarker'](_0x141ae8,{'range':_0x1f3528}),_0x259ee5=!0x0);}_0x259ee5||(_0x50a14b['removeMarker'](_0x141ae8),_0x259ee5=!0x0);}return _0x259ee5;});}}class Ot extends _0x4a8caa{['afterInit'](){const _0x5a954f=this['editor'],_0xc83e99=_0x5a954f['plugins']['get']('TrackChangesEditing');_0x5a954f['plugins']['has']('UndoEditing')&&(_0xc83e99['enableCommand']('undo'),_0xc83e99['enableCommand']('redo'));}}class Rt extends _0x4a8caa{static get['requires'](){return[vt];}['afterInit'](){const _0x57af87=this['editor'];if(!_0x57af87['plugins']['has']('TableCaptionEditing'))return;_0x57af87['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x4a8caa{['tableProperties'];['tableCellProperties'];constructor(_0x4d96ef){super(_0x4d96ef),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 _0x25ea82=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d3ccc of this['tableProperties'])_0x25ea82['enableCommand'](_0x1d3ccc,(_0x5a3d74,_0x240a41)=>{const _0x56e6d6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d3ccc,[_0x56e6d6],this['tableProperties'],'tableProperties',_0x5a3d74,_0x240a41);});_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x25ea82['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2b6627,_0xb5fc6a)=>this['handleDiscardAction'](this['tableProperties'],_0x2b6627,_0xb5fc6a)),_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bf736 of this['tableCellProperties'])_0x25ea82['enableCommand'](_0x3bf736,(_0x3ecbd2,_0x15768f)=>{const _0x3dcb6c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bf736,_0x3dcb6c,this['tableCellProperties'],'tableCellProperties',_0x3ecbd2,_0x15768f);});_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x25ea82['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33cb03,_0x44b169)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33cb03,_0x44b169)),_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x25ea82['descriptionFactory']['registerDescriptionCallback'](_0x564416=>this['handleSuggestionDescription'](_0x564416));}['_handlePropertyChange'](_0x4e608c,_0x4e5969,_0x356b5b,_0x5c2757,_0x2b6089,_0x2f8de3){const _0x52ce20=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f8de3['batch'],()=>{for(const _0x48af29 of _0x4e5969){if(this['_getSuggestion'](_0x48af29,_0x5c2757))_0x2b6089(_0x2f8de3);else{const _0x3b4263={};for(const _0x2b6138 of _0x356b5b){const _0x3d7c90=_0x48af29['getAttribute'](_0x2b6138);void 0x0!==_0x3d7c90&&(_0x3b4263[_0x2b6138]=_0x3d7c90);}_0x2b6089(_0x2f8de3),_0x52ce20['markBlockFormat'](_0x48af29,{'commandParams':[_0x3b4263]},[],_0x5c2757);}}});}['handleDiscardAction'](_0x455aba,_0x34177c,_0x9eff7b){const _0x230631=_0x34177c[0x0]['start']['nodeAfter'],_0x555116=_0x9eff7b['commandParams'][0x0];this['editor']['model']['change'](_0x4a0534=>{for(const _0x5490b8 of _0x455aba)void 0x0!==_0x555116[_0x5490b8]?_0x4a0534['setAttribute'](_0x5490b8,_0x555116[_0x5490b8],_0x230631):_0x4a0534['removeAttribute'](_0x5490b8,_0x230631);});}['handleSuggestionDescription'](_0x48f32b){if(_0x48f32b['data'])switch(_0x48f32b['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'](_0x1180f6,_0x1716ef){const _0x927d12=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x308d9c of _0x927d12['getSuggestions']({'skipNotAttached':!0x0})){const _0x1171f8=_0x308d9c['getContainedElement']();if(_0x308d9c['subType']===_0x1716ef&&_0x1171f8===_0x1180f6)return _0x308d9c;}return null;}}const m='$elementName';class p extends _0x4a8caa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x117a29,_0x270b6b,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5337b7){super(_0x5337b7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x48a684,_0x4004bd,_0x16799a,_0x532045)=>{this['_model']['change'](()=>{for(const _0x15c230 of[..._0x532045,..._0x16799a])this['_model']['markers']['has'](_0x15c230)&&_0x5337b7['editing']['reconvertMarker'](_0x15c230);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5337b7['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(),_0x5337b7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5337b7['config']['get']('trackChanges.trackFormatChanges'),_0x5337b7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5337b7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5337b7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xc26c50=this['editor'],_0x4d4b39=(_0xd1a32f,_0x5a7ba8)=>{if('attribute'!=_0xd1a32f)return'ck-suggestion-marker-'+_0xd1a32f;const _0x166b62=_0x5a7ba8['split']('|')[0x0];return this['_isBlockAttribute'](_0x166b62)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xc26c50['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x202e06=>{const {id:_0x51c6a7,authorId:_0x402713,type:_0x21c5b4,subType:_0x28797e}=this['_splitMarkerName'](_0x202e06['markerName']),_0x599a68=['ck-suggestion-marker',_0x4d4b39(_0x21c5b4,_0x28797e)];let _0x20e747=0xbb8;return this['activeMarkers']['includes'](_0x202e06['markerName'])&&(_0x599a68['push']('ck-suggestion-marker--active'),_0x20e747=0xbc2),'deletion'==_0x21c5b4&&(_0x20e747+=0x5),{'classes':_0x599a68,'attributes':{'data-suggestion':_0x51c6a7,'data-author-id':_0x402713},'priority':_0x20e747};}}),_0xc26c50['conversion']['for']('dataDowncast')['add'](_0x16a019=>{_0x16a019['on']('addMarker:suggestion',(_0x1e58a9,_0x4f209b,_0xf7e3c7)=>{if(!_0xf7e3c7['options']['showSuggestionHighlights'])return;const _0x3197f0=_0x4f209b['item'];if(!_0x3197f0)return;const _0x1a8db0=_0xf7e3c7['mapper']['toViewElement'](_0x3197f0);_0xc26c50['model']['schema']['isObject'](_0x3197f0)&&_0x1a8db0&&!_0x1a8db0['getCustomProperty']('widget')&&_0x1a8db0['is']('containerElement')&&_0x5d3d60(_0x1a8db0,_0xf7e3c7['writer']);},{'priority':'high'});}),_0xc26c50['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2cf0dd,_0x588b00)=>{if(!_0x588b00['options']['showSuggestionHighlights'])return null;const {type:_0x1dec6f,subType:_0x35c6fe}=this['_splitMarkerName'](_0x2cf0dd['markerName']);return{'classes':['ck-suggestion-marker',_0x4d4b39(_0x1dec6f,_0x35c6fe)],'priority':0xbb8};}});const _0x238f9e=({showActiveMarkers:_0x268edc=!0x0,isAttributeSuggestion:_0x1e314b=!0x1}={})=>(_0x8b162d,_0xf84672,_0x3fab72)=>{if(!_0xf84672['item'])return;const {id:_0x349e3c,authorId:_0x22c5fb}=this['_splitMarkerName'](_0xf84672['markerName']);if(_0x1e314b){const _0x3140f3=this['_suggestions']['get'](_0x349e3c),_0x489b9d=this['_getAttributeKey'](_0x3140f3);if(!this['_isBlockAttribute'](_0x489b9d))return;}if(_0xf84672['item']['is']('selection'))return void _0x3fab72['consumable']['consume'](_0xf84672['item'],_0x8b162d['name']);const _0x1319c6=_0x3fab72['mapper']['toViewElement'](_0xf84672['item']);if(_0xf84672['item']['is']('element')&&_0xc26c50['model']['schema']['isBlock'](_0xf84672['item'])&&!_0x1319c6['getCustomProperty']('addHighlight')){_0x3fab72['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1319c6),_0x3fab72['writer']['setAttribute']('data-suggestion',_0x349e3c,_0x1319c6),_0x3fab72['writer']['setAttribute']('data-author-id',_0x22c5fb,_0x1319c6),_0x3fab72['mapper']['bindElementToMarker'](_0x1319c6,_0xf84672['markerName']),_0x268edc&&(this['activeMarkers']['includes'](_0xf84672['markerName'])?_0x3fab72['writer']['addClass']('ck-suggestion-marker--active',_0x1319c6):_0x3fab72['writer']['removeClass']('ck-suggestion-marker--active',_0x1319c6));for(const _0x1be813 of _0xc26c50['model']['createRangeIn'](_0xf84672['item'])['getItems']())_0x3fab72['consumable']['consume'](_0x1be813,_0x8b162d['name']);_0x3fab72['consumable']['consume'](_0xf84672['item'],_0x8b162d['name']);}};_0xc26c50['conversion']['for']('dataDowncast')['add'](_0x3ebb4a=>{_0x3ebb4a['on']('addMarker:suggestion:formatBlock',(_0x36bf4c,_0x51d77d,_0x2281e6)=>{_0x2281e6['options']['showSuggestionHighlights']&&_0x238f9e({'showActiveMarkers':!0x1})(_0x36bf4c,_0x51d77d,_0x2281e6);},{'priority':'highest'});}),_0xc26c50['conversion']['for']('dataDowncast')['add'](_0x15f4a7=>{_0x15f4a7['on']('addMarker:suggestion:attribute',(_0x4096f4,_0x33caa8,_0x51c125)=>{_0x51c125['options']['showSuggestionHighlights']&&_0x238f9e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4096f4,_0x33caa8,_0x51c125);},{'priority':'highest'});}),_0xc26c50['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x227f46,_0x30d7e6)=>_0x30d7e6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x227f46['substr'](0xb)}}),_0xc26c50['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x450a4b,{writer:_0x149c66})=>{let _0x2dcd1d='suggestion:'+_0x450a4b['getAttribute']('suggestion-type')+':'+_0x450a4b['getAttribute']('id');return _0x450a4b['getAttribute']('marker-count')&&(_0x2dcd1d+=':'+_0x450a4b['getAttribute']('marker-count')),_0x149c66['createElement']('$marker',{'data-name':_0x2dcd1d});}}),_0xc26c50['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xc26c50['conversion']['for']('editingDowncast')['add'](_0x13c4c7=>{_0x13c4c7['on']('addMarker:suggestion:formatBlock',_0x238f9e(),{'priority':'high'});}),_0xc26c50['conversion']['for']('editingDowncast')['add'](_0x9f94da=>{_0x9f94da['on']('addMarker:suggestion:attribute',_0x238f9e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xc26c50['conversion']['for']('editingDowncast')['add'](_0x584985=>{_0x584985['on']('removeMarker:suggestion:formatBlock',(_0xc6aff2,_0x35323b,_0x223041)=>{const _0x1b0f64=_0x223041['mapper']['markerNameToElements'](_0x35323b['markerName']);if(_0x1b0f64){for(const _0x452fc5 of _0x1b0f64)_0x452fc5['getCustomProperty']('addHighlight')||(_0x223041['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x452fc5),_0x223041['writer']['removeAttribute']('data-suggestion',_0x452fc5),_0x223041['writer']['removeAttribute']('data-author-id',_0x452fc5),_0x223041['mapper']['unbindElementFromMarkerName'](_0x452fc5,_0x35323b['markerName']));}},{'priority':'high'});}),_0xc26c50['conversion']['for']('editingDowncast')['add'](_0x2ca4e4=>{_0x2ca4e4['on']('removeMarker:suggestion:attribute',(_0x232b41,_0x4b6a45,_0x2e4fee)=>{const _0x432845=_0x2e4fee['mapper']['markerNameToElements'](_0x4b6a45['markerName']);if(!_0x432845)return;const {id:_0xe9df40}=this['_splitMarkerName'](_0x4b6a45['markerName']),_0x483459=this['_suggestions']['get'](_0xe9df40),_0xb0fd68=this['_getAttributeKey'](_0x483459);if(this['_isBlockAttribute'](_0xb0fd68)){for(const _0x48001f of _0x432845)_0x48001f['getCustomProperty']('addHighlight')||(_0x2e4fee['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x48001f),_0x2e4fee['writer']['removeAttribute']('data-suggestion',_0x48001f),_0x2e4fee['writer']['removeAttribute']('data-author-id',_0x48001f),_0x2e4fee['mapper']['unbindElementFromMarkerName'](_0x48001f,_0x4b6a45['markerName']));}},{'priority':'high'});}),_0xc26c50['model']['document']['registerPostFixer'](_0x2fb151=>{let _0x35ec50=!0x1;const _0x451314=Array['from'](_0xc26c50['model']['document']['differ']['getChangedMarkers']()),_0x932025=new Set();for(const {name:_0x1c80e8,data:_0x5bbdd0}of _0x451314){const {group:_0x3ce49e,type:_0x206913,subType:_0x3ec0ca,id:_0x1b9443}=this['_splitMarkerName'](_0x1c80e8);if('suggestion'!==_0x3ce49e)continue;const _0x20ca59=this['_suggestions']['get'](_0x1b9443);if(null!=_0x5bbdd0['newRange']){'formatInline'==_0x206913&&(_0x35ec50=_0x35ec50||Pt(_0x5bbdd0['newRange'],_0x1c80e8,_0x2fb151,_0xc26c50['model']['schema']));const _0xcd2842='attribute'==_0x206913&&this['_isBlockAttribute'](_0x3ec0ca['split']('|')[0x0]);if(_0x5bbdd0['newRange']['isCollapsed']||'$graveyard'==_0x5bbdd0['newRange']['root']['rootName']||'formatBlock'==_0x206913&&!Ft(_0x5bbdd0['newRange'])||_0xcd2842&&!Ft(_0x5bbdd0['newRange'])||'deletion'==_0x206913&&!(!Vt(_0x111da8=_0x5bbdd0['newRange'])&&!function(_0x2ac774){return _0x2ac774['start']['parent']==_0x2ac774['end']['nodeBefore']&&_0x2ac774['start']['isAtEnd'];}(_0x111da8)))_0x2fb151['removeMarker'](_0x1c80e8),_0x35ec50=!0x0;else{if(!_0x20ca59||!_0x20ca59['isInContent'])continue;if(_0x5bbdd0['newRange']&&_0x5bbdd0['oldRange']&&_0x5bbdd0['newRange']['isEqual'](_0x5bbdd0['oldRange']))continue;_0x932025['add'](_0x20ca59);}}}var _0x111da8;return _0x932025['size']>0x0&&(_0x35ec50=!!this['_joinWithAdjacentSuggestions'](_0x932025)||_0x35ec50),_0x35ec50;}),_0xc26c50['model']['document']['registerPostFixer'](_0xc06ea9=>{let _0x251a0d=!0x1;for(const _0x14fb4 of _0xc26c50['model']['document']['differ']['getChanges']())if('insert'==_0x14fb4['type'])for(const _0x1548fa of this['_suggestions']['values']()){if(_0x1548fa['isMultiRange']||!_0x1548fa['isInContent'])continue;const _0x55718b='formatBlock'==_0x1548fa['type'],_0x557b88=this['_getAttributeKey'](_0x1548fa),_0x2c3f28=_0x557b88&&this['_isBlockAttribute'](_0x557b88);if(!_0x55718b&&!_0x2c3f28)continue;const _0x4f8059=_0x1548fa['getFirstRange']();if(_0x4f8059['start']['parent']!=_0x4f8059['end']['parent']&&!_0x4f8059['end']['isAtEnd']){const _0xce6063=_0xc26c50['model']['createPositionAt'](_0x4f8059['start']['nodeAfter'],'end'),_0x5d9f3d=_0xc26c50['model']['createRange'](_0x4f8059['start'],_0xce6063);_0xc06ea9['updateMarker'](_0x1548fa['getFirstMarker'](),{'range':_0x5d9f3d}),_0x251a0d=!0x0;}}return _0x251a0d;}),_0xc26c50['model']['document']['registerPostFixer'](_0x1356f3=>this['_processAttributeChanges'](_0x1356f3)),_0xc26c50['model']['document']['registerPostFixer'](_0x4d3bc3=>!_0x4d3bc3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d3bc3)),_0xc26c50['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xc26c50['model']['document']['on']('change:data',(_0x60d9f,_0x3f7bdd)=>{if(!_0x3f7bdd['isLocal']||_0x3f7bdd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x123161=_0xc26c50['model']['document']['differ']['getChanges']();if(0x0==_0x123161['length'])return;const _0x34156c=[],_0x258d88=_0x123161['filter'](_0x394926=>'attribute'==_0x394926['type']),_0x115fea=_0x123161['filter'](_0x555904=>'insert'==_0x555904['type']&&'$text'!=_0x555904['name']);for(const _0x2ad435 of _0x258d88)this['_isRegisteredAttribute'](_0x2ad435['attributeKey'])&&_0x34156c['push']({'key':_0x2ad435['attributeKey'],'newValue':_0x2ad435['attributeNewValue'],'oldValue':_0x2ad435['attributeOldValue'],'range':Lt(_0x2ad435['range'],_0xc26c50['model'])});for(const _0x55394e of _0x115fea){if('rename'!=_0x55394e['action']&&'refresh'!=_0x55394e['action'])continue;const _0x37fae7=Jt(_0x55394e['position']['nodeAfter'],_0xc26c50['model']),_0x1b6dd4=_0x55394e['before'];'rename'==_0x55394e['action']&&_0x34156c['push']({'key':m,'newValue':_0x55394e['name'],'oldValue':_0x1b6dd4['name'],'range':_0x37fae7});for(const [_0x58d6e4,_0x41bb5f]of _0x1b6dd4['attributes']){if(!this['_isRegisteredAttribute'](_0x58d6e4))continue;const _0x5c3f14=_0x55394e['attributes']['get'](_0x58d6e4);_0x41bb5f!==_0x5c3f14&&_0x34156c['push']({'key':_0x58d6e4,'newValue':_0x5c3f14,'oldValue':_0x41bb5f,'range':_0x37fae7});}for(const [_0x534bb7,_0x2067a0]of _0x55394e['attributes'])this['_isRegisteredAttribute'](_0x534bb7)&&(_0x1b6dd4['attributes']['has'](_0x534bb7)||_0x34156c['push']({'key':_0x534bb7,'newValue':_0x2067a0,'oldValue':null,'range':_0x37fae7}));}0x0!=_0x34156c['length']&&_0xc26c50['model']['enqueueChange'](_0x3f7bdd,_0x18798c=>{const _0x5e34c2=_0x205078();for(const {range:_0x31e1d3,key:_0x1697b9,oldValue:_0xbbf9cb,newValue:_0x4625d7}of _0x34156c)this['markAttributeChange'](_0x31e1d3,_0x1697b9,_0xbbf9cb,_0x4625d7,{'groupId':_0x5e34c2});this['_reduceExistingSuggestions'](_0x18798c,_0x34156c);});},{'priority':'lowest'}),_0xc26c50['model']['markers']['on']('update:suggestion',(_0x1c89e3,_0x102e5a,_0x309618)=>{if(null==_0x309618){const {id:_0x538eab}=this['_splitMarkerName'](_0x102e5a['name']),_0x3a2908=this['_suggestions']['get'](_0x538eab);_0x3a2908&&_0x3a2908['addMarkerName'](_0x102e5a['name']);}}),_0xc26c50['model']['document']['on']('change:data',()=>{const _0x538a01=Array['from'](_0xc26c50['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd1e873=>'suggestion'===this['_splitMarkerName'](_0xd1e873['name'])['group']);if(0x0===_0x538a01['length'])return;_0x538a01['sort']((_0x3480eb,_0x194aad)=>{const _0x4e9872=_0x3480eb['data']['oldRange'],_0xf43652=_0x194aad['data']['oldRange'];return null===_0x4e9872&&null===_0xf43652?0x0:null===_0x4e9872&&null!==_0xf43652?-0x1:null!==_0x4e9872&&null===_0xf43652?0x1:_0x4e9872['start']['isBefore'](_0xf43652['start'])?-0x1:0x1;});const _0x456670=new Set(),_0x40293b=new Set();for(const {name:_0x4e75bf,data:_0x34861f}of _0x538a01){const {id:_0x354b24}=this['_splitMarkerName'](_0x4e75bf);if(null===_0x34861f['oldRange']){const _0x92e356=this['_handleNewSuggestionMarker'](_0x4e75bf);_0x40293b['add'](_0x92e356);}else{const _0x4705c4=this['_suggestions']['get'](_0x354b24);null!==_0x34861f['newRange']||_0x4705c4['isInContent']?(_0x456670['add'](_0x4705c4['head']),_0x40293b['add'](_0x4705c4)):this['_removeSuggestion'](_0x4705c4);}}_0x40293b['size']>0x0&&this['_refreshSuggestionsChain'](_0x40293b);for(const _0x3bbdba of _0x456670)this['fire']('suggestionChanged',_0x3bbdba);}),_0xc26c50['model']['on']('applyOperation',(_0x201465,_0x5249dc)=>{const _0x1a451b=_0x5249dc[0x0];if(!this['_suggestions']['size'])return;if(!_0x1a451b['isDocumentOperation'])return;if(_0x1a451b['batch']['isUndo']||!_0x1a451b['batch']['isLocal'])return;let _0x5b03f2,_0x5d36b8;switch(_0x1a451b['type']){case'insert':_0x5b03f2=_0xc26c50['model']['createPositionAt'](_0x1a451b['position']),_0x5d36b8=_0x5b03f2['getShiftedBy'](_0x1a451b['howMany']);break;case'split':_0x5b03f2=_0xc26c50['model']['createPositionAt'](_0x1a451b['splitPosition']),_0x5d36b8=_0xc26c50['model']['createPositionAt'](_0x1a451b['moveTargetPosition']);break;case'move':_0x5b03f2=_0xc26c50['model']['createPositionAt'](_0x1a451b['targetPosition']),_0x5d36b8=_0x5b03f2['getShiftedBy'](_0x1a451b['howMany']);break;default:return;}const _0x98ada2=_0xc26c50['model']['createRange'](_0x5b03f2,_0x5d36b8);_0xc26c50['model']['change'](()=>{for(const {suggestion:_0x1ba40f,meta:_0x4ce22c}of this['_findSuggestions'](_0x98ada2)){if(_0x1ba40f['isMultiRange'])continue;if('formatInline'==_0x1ba40f['type'])continue;const _0x574d67=this['_getAttributeKey'](_0x1ba40f);if(_0x574d67&&this['_isBlockAttribute'](_0x574d67)&&'split'!=_0x1a451b['type'])continue;const _0x124248=_0x1ba40f['data']&&_0x1ba40f['data']['multipleBlocks'];('formatBlock'!=_0x1ba40f['type']||'split'==_0x1a451b['type']&&!_0x124248)&&(_0x4ce22c['containsRangeInObject']||'insertion'==_0x1ba40f['type']&&_0x4ce22c['isOwn']||_0x1ba40f['getFirstRange']()['containsRange'](_0x98ada2)&&this['_breakSuggestionMarker'](_0x1ba40f,_0x5b03f2,_0x5d36b8));}});},{'priority':'lowest'}),_0xc26c50['model']['on']('deleteContent',(_0x35d17b,_0x25bc08)=>{const _0x285f23=_0x25bc08[0x0],_0x1207dc=_0x25bc08[0x1];if(_0x1207dc&&_0x1207dc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x285f23['isCollapsed'])return;const _0x269386=_0xc26c50['model']['schema'],{start:_0xf5267b,end:_0x450615}=_0x285f23['getFirstRange'](),_0x229d29=_0xf5267b['nodeAfter']&&_0x269386['isLimit'](_0xf5267b['nodeAfter'])?null:_0x269386['getNearestSelectionRange'](_0xf5267b,'forward'),_0x260946=_0x450615['nodeBefore']&&_0x269386['isLimit'](_0x450615['nodeBefore'])?null:_0x269386['getNearestSelectionRange'](_0x450615,'backward'),_0x2ca340=_0xc26c50['model']['createRange'](_0x229d29?_0x229d29['start']:_0xf5267b,_0x260946?_0x260946['end']:_0x450615);_0xc26c50['model']['change'](_0x4b893f=>{this['markDeletion'](_0x2ca340);const _0x2976e8=_0xc26c50['model']['schema']['getNearestSelectionRange'](_0x2ca340['start']);_0x285f23['is']('documentSelection')?_0x4b893f['setSelection'](_0x2976e8):_0x285f23['setTo'](_0x2976e8);}),_0x35d17b['stop']();},{'priority':_0x494c20['normal']+0xa}),_0xc26c50['model']['on']('insertContent',(_0x1d689c,_0x5ce900)=>{const _0x2ae88=_0x5ce900[_0x5ce900['length']-0x1];_0x2ae88&&_0x2ae88['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xc26c50['model']['change'](()=>{let _0x252547=_0xc26c50['model']['insertContent'](_0x5ce900[0x0],_0x5ce900[0x1],_0x5ce900[0x2],{'forceDefaultExecution':!0x0});if(!_0x252547)return;_0x1d689c['return']=_0x252547['clone']();const _0xc84a1f=_0x252547['end']['nodeBefore'],_0x39d2f2=_0xc26c50['model']['schema'];_0xc84a1f&&_0x39d2f2['isBlock'](_0xc84a1f)&&!_0x39d2f2['isObject'](_0xc84a1f)&&(_0x252547=_0xc26c50['model']['createRange'](_0x252547['start'],_0xc26c50['model']['createPositionAt'](_0xc84a1f,'end'))),this['markInsertion'](_0x252547);}),_0x1d689c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x53d4aa=new O(_0xc26c50,this['_suggestions']);_0xc26c50['commands']['add']('acceptSuggestion',_0x53d4aa),this['enableCommand']('acceptSuggestion');const _0x110cec=new R(_0xc26c50,this['_suggestions']);_0xc26c50['commands']['add']('discardSuggestion',_0x110cec),this['enableCommand']('discardSuggestion'),_0xc26c50['commands']['add']('acceptAllSuggestions',new x(_0xc26c50,_0x53d4aa,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xc26c50['commands']['add']('discardAllSuggestions',new x(_0xc26c50,_0x110cec,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xc26c50['commands']['add']('acceptSelectedSuggestions',new E(_0xc26c50,_0x53d4aa,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xc26c50['commands']['add']('discardSelectedSuggestions',new E(_0xc26c50,_0x110cec,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4bd04c=_0xc26c50['plugins']['get']('CommentsRepository');this['listenTo'](_0x4bd04c,'addComment',(_0x346a61,{threadId:_0x5a0cd7})=>{const _0x1ff33a=this['_suggestions']['get'](_0x5a0cd7);_0x1ff33a&&_0x1ff33a['commentThread']&&0x1===_0x1ff33a['commentThread']['length']&&this['_updateSuggestionData'](_0x5a0cd7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4bd04c,'removeComment',(_0x59a595,{threadId:_0x5499ef})=>{const _0x3e5d70=this['_suggestions']['get'](_0x5499ef);_0x3e5d70&&_0x3e5d70['commentThread']&&!_0x3e5d70['commentThread']['length']&&this['_updateSuggestionData'](_0x5499ef,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x59ab22){const _0x1475f2=_0x406341([0x52,0x73,0x30,0x64,0x4a,0x44,0x45,0x5a,0x61,0x53,0x62,0x63,0x6e,0x79,0x4c,0x7a,0x58,0x51,0x42,0x46,0x59,0x65,0x72,0x4b,0x39,0x57,0x78,0x77,0x6c,0x33,0x74,0x71,0x41,0x56,0x75,0x6d,0x31,0x32,0x37,0x35,0x43,0x48,0x67,0x4f,0x4d,0x6f,0x49,0x6a,0x55,0x36,0x4e,0x70,0x50,0x47,0x66,0x76,0x38,0x34,0x69,0x6b,0x54,0x68]),_0x4d0de8=0x3ff99fd2,_0x15b1b6=0x3ffec7c2^_0x4d0de8,_0x197c50=window[_0x406341([0x44,0x61,0x74,0x65])][_0x406341([0x6e,0x6f,0x77])](),_0x3c75ff=_0x59ab22[_0x406341([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30bc64=new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c906b=>{_0x3c75ff[_0x406341([0x6f,0x6e,0x63,0x65])](_0x406341([0x72,0x65,0x61,0x64,0x79]),_0x1c906b);}),_0x8b1715={[_0x406341([0x6b,0x74,0x79])]:_0x406341([0x45,0x43]),[_0x406341([0x75,0x73,0x65])]:_0x406341([0x73,0x69,0x67]),[_0x406341([0x63,0x72,0x76])]:_0x406341([0x50,0x2d,0x32,0x35,0x36]),[_0x406341([0x78])]:_0x406341([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x406341([0x79])]:_0x406341([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x406341([0x61,0x6c,0x67])]:_0x406341([0x45,0x53,0x32,0x35,0x36])},_0x2b6a20=_0x3c75ff[_0x406341([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x406341([0x67,0x65,0x74])](_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49bff6(){let _0x4c3f2d,_0x459efe=null,_0x1e2191=null;try{if(_0x2b6a20==_0x406341([0x47,0x50,0x4c]))return _0x406341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c3f2d=_0x3a15e3(),!_0x4c3f2d)return _0x406341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c3f2d[_0x406341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e2191=_0x5339ed(_0x4c3f2d[_0x406341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c3f2d[_0x406341([0x6a,0x74,0x69])])),await _0x624560()?_0xd05603()?_0x49fdff()?_0x406341([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x340d23()?(_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x406341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x459efe=_0x5a4f75(_0x406341([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x406341([0x74,0x72,0x69,0x61,0x6c])&&(_0x459efe=_0x5a4f75(_0x406341([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x406341([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x459efe=_0x5a4f75(_0x406341([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50dfc0()):_0x406341([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x406341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x406341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3d8c9d){return _0x406341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49fdff(){const _0x3e8e17=[_0x406341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x406341([0x74,0x72,0x69,0x61,0x6c])][_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x197c50/0x3e8:0xe10*_0x15b1b6;return _0x4c3f2d[_0x406341([0x65,0x78,0x70])]<_0x3e8e17;}function _0xd05603(){const _0x2ddec8=_0x4c3f2d[_0x406341([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ddec8&&(!!_0x2ddec8[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406341([0x2a]))||(!!_0x2ddec8[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406341([0x54,0x43]))||!(!_0x2ddec8[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406341([0x52,0x54,0x43]))||!_0x2688bb())));}function _0x340d23(){const _0x136b56=_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x136b56||0x0==_0x136b56[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x413bd6}=new URL(window[_0x406341([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x136b56[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413bd6))return!0x0;const _0x31dbb8=_0x413bd6[_0x406341([0x73,0x70,0x6c,0x69,0x74])](_0x406341([0x2e]));return _0x136b56[_0x406341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ffbcb=>_0x4ffbcb[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406341([0x2a])))[_0x406341([0x6d,0x61,0x70])](_0x10be6d=>_0x10be6d[_0x406341([0x73,0x70,0x6c,0x69,0x74])](_0x406341([0x2e])))[_0x406341([0x73,0x6f,0x6d,0x65])](_0x3ef570=>_0x31dbb8[_0x406341([0x65,0x76,0x65,0x72,0x79])]((_0x27765c,_0x122da9)=>_0x3ef570[_0x122da9]===_0x27765c||_0x3ef570[_0x122da9]===_0x406341([0x2a])));}function _0x50dfc0(){return _0x459efe&&_0x1e2191?new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5de49d,_0x2b486e)=>{_0x459efe[_0x406341([0x74,0x68,0x65,0x6e])](_0x5de49d,_0x2b486e),_0x1e2191[_0x406341([0x74,0x68,0x65,0x6e])](_0x1eaa1b=>{_0x1eaa1b!=_0x406341([0x56,0x61,0x6c,0x69,0x64])&&_0x5de49d(_0x1eaa1b);},_0x2b486e);}):_0x459efe||_0x1e2191||_0x406341([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5339ed(_0x302d98,_0x129b2c){return new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48906b=>{if(_0x535a93())return _0x48906b(_0x406341([0x56,0x61,0x6c,0x69,0x64]));_0x201d95(),_0x3c75ff[_0x406341([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x406341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d623e=!0x1;const _0x43dedf=_0x205078();function _0x55e0bd(_0x5a85ab){return!!_0x5a85ab&&(typeof _0x5a85ab===_0x406341([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a85ab===_0x406341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a85ab[_0x406341([0x74,0x68,0x65,0x6e])]===_0x406341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a85ab[_0x406341([0x63,0x61,0x74,0x63,0x68])]===_0x406341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51e414(_0x87eba5){_0xadcd8b(_0x87eba5)[_0x406341([0x74,0x68,0x65,0x6e])](_0x33adb5=>{if(!_0x33adb5||_0x33adb5[_0x406341([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x406341([0x6f,0x6b]))return _0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3af7b1(_0xfe6fbc(_0x43dedf+_0x129b2c))!=_0x33adb5[_0x406341([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x406341([0x56,0x61,0x6c,0x69,0x64]);})[_0x406341([0x74,0x68,0x65,0x6e])](_0xdf224e=>(_0x1e2245(),_0xdf224e),()=>{const _0x10d8ed=_0x1bf75b();return null==_0x10d8ed?(_0x1e2245(),_0x406341([0x56,0x61,0x6c,0x69,0x64])):_0x406341(_0x197c50-_0x10d8ed>(0x1bf51bd2^_0x4d0de8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x406341([0x74,0x68,0x65,0x6e])](_0x48906b)[_0x406341([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48906b(_0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb6f4b2=0x3fcf7152^_0x4d0de8;function _0x1e2245(){const _0x32f7c3=_0x406341([0x6c,0x6c,0x63,0x74,0x2d])+_0x3af7b1(_0xfe6fbc(_0x302d98)),_0x3c6129=_0x3148e7(_0x3af7b1(window[_0x406341([0x4d,0x61,0x74,0x68])][_0x406341([0x63,0x65,0x69,0x6c])](_0x197c50/_0xb6f4b2)));window[_0x406341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x406341([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32f7c3,_0x3c6129);}function _0x1bf75b(){const _0x55218f=_0x406341([0x6c,0x6c,0x63,0x74,0x2d])+_0x3af7b1(_0xfe6fbc(_0x302d98)),_0x497ddc=window[_0x406341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x406341([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55218f);return _0x497ddc?window[_0x406341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3148e7(_0x497ddc),0x10)*_0xb6f4b2:null;}function _0xadcd8b(_0x1bdc55){return new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31054c,_0x135b25)=>{_0x1bdc55[_0x406341([0x74,0x68,0x65,0x6e])](_0x31054c,_0x135b25),window[_0x406341([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x135b25,0x3ff84b12^_0x4d0de8);});}}_0x3c75ff[_0x406341([0x6f,0x6e])](_0x406341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x32fc95,_0x153481)=>{if(_0x153481[0x0]!=_0x302d98)return _0x48906b(_0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x153481[0x1]={..._0x153481[0x1],[_0x406341([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43dedf};},{[_0x406341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x406341([0x68,0x69,0x67,0x68])}),_0x3c75ff[_0x406341([0x6f,0x6e])](_0x406341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28d5a0=>{_0x55e0bd(_0x28d5a0[_0x406341([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d623e=!0x0,_0x51e414(_0x28d5a0[_0x406341([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x406341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x406341([0x6c,0x6f,0x77])}),_0x30bc64[_0x406341([0x74,0x68,0x65,0x6e])](()=>{_0x4d623e||_0x48906b(_0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x535a93(){return _0x3c75ff[_0x406341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x406341([0x76,0x69,0x65,0x77])][_0x406341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x406341([0x61,0x75,0x74,0x6f]);}function _0x201d95(){_0x3c75ff[_0x406341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x406341([0x76,0x69,0x65,0x77])][_0x406341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x406341([0x61,0x75,0x74,0x6f]);}}function _0x5a4f75(_0x1da2dc){const _0x5e1111=[new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1403af=>setTimeout(_0x1403af,0x3ff0a11e^_0x4d0de8)),_0x30bc64[_0x406341([0x74,0x68,0x65,0x6e])](()=>new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b1c95=>{let _0xd54537=0x0;_0x3c75ff[_0x406341([0x6d,0x6f,0x64,0x65,0x6c])][_0x406341([0x6f,0x6e])](_0x406341([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28f5ad,_0x4959c8)=>{_0x4959c8[0x0][_0x406341([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd54537++,_0xd54537==(0x3ff99e2a^_0x4d0de8)&&(_0x4b1c95(),_0x28f5ad[_0x406341([0x6f,0x66,0x66])]());});}))];return window[_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x406341([0x72,0x61,0x63,0x65])](_0x5e1111)[_0x406341([0x74,0x68,0x65,0x6e])](()=>_0x1da2dc);}async function _0x37723a(){await _0x30bc64,_0x3c75ff[_0x406341([0x6d,0x6f,0x64,0x65,0x6c])][_0x406341([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e894,_0x3c75ff[_0x406341([0x6d,0x6f,0x64,0x65,0x6c])][_0x406341([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e894,_0x3c75ff[_0x406341([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x406341([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2688bb(){return _0x1c69e2(_0x406341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2f6271(_0x406341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x406341([0x73,0x74,0x61,0x74,0x65])]==_0x406341([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf83e8e(_0x3512e9){const _0x59ac9d=_0xbf6691();_0x3c75ff[_0x59ac9d]=_0x406341([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3512e9,_0x3512e9!=_0x406341([0x56,0x61,0x6c,0x69,0x64])&&_0x37723a();}function _0xbf6691(){const _0x215fd8=window[_0x406341([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x406341([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x406341([0x6e,0x6f,0x77])]())[_0x406341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x406341([0x2e]),'');let _0x8290f0=_0x406341([0x52]);for(let _0x3faaf8=0x0;_0x3faaf8<_0x215fd8[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3faaf8+=0x2){let _0x4f0701=window[_0x406341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x215fd8[_0x406341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3faaf8,_0x3faaf8+0x2));_0x4f0701>=_0x1475f2[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f0701-=_0x1475f2[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8290f0+=_0x1475f2[_0x4f0701];}return _0x8290f0;}function _0x3a15e3(){const _0x529569=_0x2b6a20[_0x406341([0x73,0x70,0x6c,0x69,0x74])](_0x406341([0x2e]));if(0x3!=_0x529569[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x36258f(_0x529569[0x1]);function _0x36258f(_0x3b080e){const _0x3efa08=_0xabbf1d(_0x3b080e);return _0x3efa08&&_0x2b1583()?_0x3efa08:null;function _0x2b1583(){const _0x1f1fd7=_0x3efa08[_0x406341([0x6a,0x74,0x69])],_0x25c9f6=window[_0x406341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f1fd7[_0x406341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f1fd7[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21c4db={..._0x3efa08,[_0x406341([0x6a,0x74,0x69])]:_0x1f1fd7[_0x406341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f1fd7[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21c4db[_0x406341([0x76,0x63])],_0xfe6fbc(_0x21c4db)==_0x25c9f6;}}}async function _0x624560(){let _0x53dc7d=!0x0;try{const _0x303b7c=_0x2b6a20[_0x406341([0x73,0x70,0x6c,0x69,0x74])](_0x406341([0x2e])),[_0x491055,_0x39d39c,_0x4e8e47]=_0x303b7c;return _0x311df0(_0x491055),await _0x553b9d(_0x491055,_0x39d39c,_0x4e8e47),_0x53dc7d;}catch(_0x514cf8){return!0x1;}function _0x311df0(_0x4d13ee){const _0x5b3e40=_0xabbf1d(_0x4d13ee);_0x5b3e40&&_0x5b3e40[_0x406341([0x61,0x6c,0x67])]==_0x406341([0x45,0x53,0x32,0x35,0x36])||(_0x53dc7d=!0x1);}async function _0x553b9d(_0x14d075,_0x392db1,_0x5e5d96){const _0x2cf89f=window[_0x406341([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x406341([0x66,0x72,0x6f,0x6d])](_0x12a1a7(_0x5e5d96),_0x2e060c=>_0x2e060c[_0x406341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1388a9=new window[(_0x406341([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x406341([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14d075+_0x406341([0x2e])+_0x392db1),_0x318ed0=window[_0x406341([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x406341([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x318ed0)return;const _0x35e474=await _0x318ed0[_0x406341([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x406341([0x6a,0x77,0x6b]),_0x8b1715,{[_0x406341([0x6e,0x61,0x6d,0x65])]:_0x406341([0x45,0x43,0x44,0x53,0x41]),[_0x406341([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x406341([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x406341([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x318ed0[_0x406341([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x406341([0x6e,0x61,0x6d,0x65])]:_0x406341([0x45,0x43,0x44,0x53,0x41]),[_0x406341([0x68,0x61,0x73,0x68])]:{[_0x406341([0x6e,0x61,0x6d,0x65])]:_0x406341([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35e474,_0x2cf89f,_0x1388a9)||(_0x53dc7d=!0x1);}}function _0xabbf1d(_0x4175cb){return _0x4175cb[_0x406341([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x406341([0x65,0x79]))?JSON[_0x406341([0x70,0x61,0x72,0x73,0x65])](_0x12a1a7(_0x4175cb)):null;}function _0x12a1a7(_0x1da3d1){return window[_0x406341([0x61,0x74,0x6f,0x62])](_0x1da3d1[_0x406341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x406341([0x2b]))[_0x406341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x406341([0x2f])));}function _0xfe6fbc(_0x1c8c2a){let _0xd15f48=0x1505;function _0x15338c(_0x404a63){for(let _0xe9f540=0x0;_0xe9f540<_0x404a63[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe9f540++){const _0x3bf076=_0x404a63[_0x406341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe9f540);_0xd15f48=(_0xd15f48<<0x5)+_0xd15f48+_0x3bf076,_0xd15f48&=_0xd15f48;}}function _0x5a21bf(_0x266082){Array[_0x406341([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x266082)?_0x266082[_0x406341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a21bf):_0x266082&&typeof _0x266082==_0x406341([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x406341([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x266082)[_0x406341([0x73,0x6f,0x72,0x74])]()[_0x406341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3824fe,_0x4530fe])=>{_0x15338c(_0x3824fe),_0x5a21bf(_0x4530fe);}):_0x15338c(window[_0x406341([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x266082));}return _0x5a21bf(_0x1c8c2a),_0xd15f48>>>0x0;}function _0x3af7b1(_0x4ab6af){return _0x4ab6af[_0x406341([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x406341([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x406341([0x30]));}function _0x3148e7(_0x231b1d){return _0x231b1d[_0x406341([0x73,0x70,0x6c,0x69,0x74])]('')[_0x406341([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x406341([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c69e2(_0x152bc7){return _0x3c75ff[_0x406341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x406341([0x68,0x61,0x73])](_0x152bc7);}function _0x2f6271(_0x39ba2e){return _0x3c75ff[_0x406341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x406341([0x67,0x65,0x74])](_0x39ba2e);}function _0x5e894(){}function _0x406341(_0x126b06){return _0x126b06['map'](_0x559bab=>String['fromCharCode'](_0x559bab))['join']('');}_0xf83e8e(await _0x49bff6());}(this);}set['adapter'](_0x5f2720){if(this['_adapter'])throw new _0x562698('track-changes-adapter-already-set',this);this['_adapter']=_0x5f2720;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4d11d3=!0x1,toJSON:_0x57180b=!0x1}={}){const _0x108645=[];for(const _0xb86612 of this['_suggestions']['values']())_0x4d11d3&&!_0xb86612['isInContent']||_0x108645['push'](_0xb86612);return _0x57180b?_0x108645['map'](_0x3317f2=>_0x3317f2['toJSON']()):_0x108645;}['getSuggestion'](_0x3d0e00){const _0x1c358a=this['_suggestions']['get'](_0x3d0e00);if(!_0x1c358a)throw new _0x562698('track-changes-suggestion-not-found',this);return _0x1c358a;}['hasSuggestion'](_0x351d15){return this['_suggestions']['has'](_0x351d15);}['addSuggestionData'](_0x1b99cd){const {authorId:_0x497c5f,id:_0x5c75cf,attributes:_0x4969f0}=_0x1b99cd,[_0x357316,_0x226022]=_0x1b99cd['type']['split'](':'),_0x2650ee=this['_suggestions']['get'](_0x5c75cf)||this['_createSuggestion'](_0x357316,_0x226022,_0x5c75cf,_0x497c5f,_0x4969f0);if(this['_addThreadToSuggestion'](_0x2650ee),this['_checkSuggestionCorrectness'](_0x2650ee,_0x357316,_0x226022||null,_0x497c5f),_0x2650ee['createdAt']=_0x1b99cd['createdAt'],_0x2650ee['_isDataLoaded']=!0x0,_0x4969f0&&_0x4969f0['@external']){const _0x3df1ec=_0x4969f0['@external'],_0x2e11a0=this['_getExternalAuthor'](_0x3df1ec['authorName']);_0x2650ee['authoredAt']=_0x3df1ec['createdAt'],_0x2650ee['author']=_0x2e11a0,_0x2650ee['isExternal']=!0x0;}else _0x2650ee['authoredAt']=_0x1b99cd['createdAt'];switch(_0x1b99cd['data']&&(_0x2650ee['data']=_0x1b99cd['data']),_0x1b99cd['attributes']&&(_0x2650ee['attributes']=_0x1b99cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2650ee['_saved']=!0x0),this['_suggestionState']['get'](_0x2650ee)){case'notReady':this['_suggestionState']['set'](_0x2650ee,'dataReady');break;case'markerReady':_0x2650ee['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2650ee])),this['_refreshSuggestionsChain'](new Set([_0x2650ee])),this['_suggestionState']['set'](_0x2650ee,'ready'),this['fire']('suggestionLoaded',_0x2650ee)):this['_suggestionState']['set'](_0x2650ee,'removed');}return _0x2650ee;}['acceptSuggestion'](_0x316d16){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x131e98 of _0x316d16['getAllAdjacentSuggestions']())_0x131e98['accept']();});});}['discardSuggestion'](_0x569ace){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x245db9 of _0x569ace['getAllAdjacentSuggestions']())_0x245db9['discard']();});});}['enableCommand'](_0x464e7d,_0x233797){const _0x59424=this['editor']['commands']['get'](_0x464e7d);if(!_0x59424)throw new _0x562698('track-changes-command-not-found',this,{'commandName':_0x464e7d});if(this['_enabledCommands']['has'](_0x59424))throw new _0x562698('track-changes-enable-command-twice',this,{'commandName':_0x464e7d});this['_enabledCommands']['add'](_0x59424),_0x233797&&_0x59424['on']('execute',(_0x2e19ad,_0x1185b5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1185b5['length']>0x0&&_0x1185b5[_0x1185b5['length']-0x1]&&_0x1185b5[_0x1185b5['length']-0x1]['forceDefaultExecution']?_0x1185b5['pop']():(_0x2e19ad['return']=_0x233797((..._0x37403c)=>_0x59424['execute'](..._0x37403c,{'forceDefaultExecution':!0x0}),..._0x1185b5),_0x2e19ad['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x17d39e){let _0x3c3683,_0x55c331;const _0x2db726=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c3683=_0x17d39e();}catch(_0xcaf03f){_0x55c331=_0xcaf03f;}return _0x2db726||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x55c331&&_0x562698['rethrowUnexpectedError'](_0x55c331,this),_0x3c3683;}['markInsertion'](_0x43b77b,_0x4a3f9b=null,_0x341944={}){if(_0x43b77b['isCollapsed'])return null;const _0x66d08f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5710c7,meta:_0x48ce0b}of this['_findSuggestions'](_0x43b77b,'insertion'))if(_0x48ce0b['isOwn']){if(!_0x48ce0b['isNextTo']){if(_0x48ce0b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x5710c7,_0x341944))continue;return _0x5710c7;}if(zt(_0x5710c7,_0x341944))return _0x5710c7;this['_breakSuggestionMarker'](_0x5710c7,_0x43b77b['start'],_0x43b77b['end']);break;}if(_0x4a3f9b==_0x5710c7['subType']&&zt(_0x5710c7,_0x341944)){const _0x193269=_0x5710c7['getFirstRange']();return _0x193269['start']['isEqual'](_0x43b77b['end'])?this['_setSuggestionRange'](_0x5710c7,this['_model']['createRange'](_0x43b77b['start'],_0x193269['end'])):this['_setSuggestionRange'](_0x5710c7,this['_model']['createRange'](_0x193269['start'],_0x43b77b['end'])),_0x5710c7;}}const _0x15e700=_0x205078(),_0x1da3e2=_0x66d08f['id'],_0x1f81c4=_0x4a3f9b?'insertion:'+_0x4a3f9b:'insertion',_0x131658=this['_setSuggestionData']({'id':_0x15e700,'type':_0x1f81c4,'createdAt':new Date(),'authorId':_0x1da3e2,'attributes':_0x341944});return this['_addSuggestionMarker'](_0x1f81c4,_0x15e700,_0x1da3e2,_0x43b77b),_0x131658;}['markMultiRangeInsertion'](_0x481772,_0x42a26c='multi',_0x1d7155={}){const _0x582581=this['editor']['plugins']['get']('Users')['me'],_0x1d19fe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42a26c,'join');for(const _0x402132 of this['getSuggestions']())if(_0x402132['author']['id']==_0x582581['id']&&'insertion'==_0x402132['type']&&_0x402132['subType']==_0x42a26c&&zt(_0x402132,_0x1d7155)&&(_0x1d19fe(_0x402132['getRanges'](),_0x481772)||_0x1d19fe(_0x481772,_0x402132['getRanges']()))){for(const _0x4cf8ca of _0x481772)_0x402132['addRange'](_0x4cf8ca);return _0x402132;}for(const {suggestion:_0x445552,meta:_0x42b52b}of this['_findSuggestions'](_0x481772,'insertion')){if(!_0x42b52b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x42b52b['containsRangeInObject'])continue;if(!zt(_0x445552,_0x1d7155))continue;let _0x313003=!0x0;for(const _0x371530 of _0x445552['getRanges']())for(const _0x30664f of _0x481772)if(!_0x371530['containsRange'](_0x30664f)){_0x313003=!0x1;break;}if(_0x313003)return _0x445552;}const _0x1999da=_0x205078(),_0x19d9cb=_0x582581['id'],_0x4c1994='insertion:'+_0x42a26c,_0x2970c6=this['_setSuggestionData']({'id':_0x1999da,'type':_0x4c1994,'createdAt':new Date(),'authorId':_0x19d9cb,'attributes':_0x1d7155});for(const _0x3ee911 of _0x481772)this['_addSuggestionMarker'](_0x4c1994,_0x1999da,_0x19d9cb,_0x3ee911,u['getMultiRangeId']());return _0x2970c6;}['markInlineFormat'](_0x245934,_0x264d40,_0xa03441=null,_0x230b6a={}){if(_0xa03441=_0xa03441||Gt(_0x264d40),_0x245934['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5213ed=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa03441,'accept');return this['forceDefaultExecution'](()=>_0x5213ed([_0x245934],_0x264d40,_0x230b6a)),null;}const _0x501d7c=this['editor']['plugins']['get']('Users')['me'],_0x3baa5e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x91bcbb,meta:_0x5dab57}of this['_findSuggestions'](_0x245934,'insertion'))_0x5dab57['isOwn']&&!_0x5dab57['isInsideObject']&&_0x3baa5e['push'](..._0x91bcbb['getRanges']());}const _0x4aded0=function(_0x5363f6,_0x11e07c){const _0x173f7c=[];for(const _0x418ffa of _0x11e07c){const _0x2b8cdf=_0x5363f6['getIntersection'](_0x418ffa);_0x2b8cdf&&_0x173f7c['push'](_0x2b8cdf);}return _0x173f7c;}(_0x245934,_0x3baa5e),_0x197184=function(_0x57538d,_0x549a56){const _0xe38632=[_0x57538d];for(const _0x4ba235 of _0x549a56){let _0x24e6e6=0x0;for(;_0x24e6e6<_0xe38632['length'];){const _0x486820=_0xe38632[_0x24e6e6]['getDifference'](_0x4ba235);_0xe38632['splice'](_0x24e6e6,0x1,..._0x486820),_0x24e6e6+=_0x486820['length'];}}return _0xe38632;}(_0x245934,_0x3baa5e);_0x4aded0['length']&&this['_model']['change'](()=>{for(const _0xf6e485 of _0x4aded0){const _0x51e48e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa03441,'accept');this['forceDefaultExecution'](()=>_0x51e48e([_0xf6e485],_0x264d40,_0x230b6a));}});for(const _0x59bf4b of _0x197184){let _0x208e5e=null,_0x497145=_0x59bf4b['start'],_0x331059=_0x59bf4b['end'];for(const {suggestion:_0xc0e7bb,meta:_0x4b72db}of this['_findSuggestions'](_0x59bf4b,'formatInline')){if(!_0x4b72db['isOwn'])continue;if(_0xc0e7bb['subType']!=_0xa03441)continue;if(!zt(_0xc0e7bb,_0x230b6a))continue;const _0x35da11=_0xc0e7bb['getFirstRange']();if(_0x35da11['containsRange'](_0x59bf4b,!0x0))return null;_0x497145=_0x497145['isBefore'](_0x35da11['start'])?_0x497145:_0x35da11['start'],_0x331059=_0x331059['isAfter'](_0x35da11['end'])?_0x331059:_0x35da11['end'],_0x208e5e?_0x35da11['start']['isBefore'](_0x208e5e['getFirstRange']()['start'])?(_0x208e5e['removeMarkers'](),_0x208e5e=_0xc0e7bb):_0xc0e7bb['removeMarkers']():_0x208e5e=_0xc0e7bb;}const _0x3134c2=this['_model']['createRange'](_0x497145,_0x331059);if(_0x208e5e)this['_setSuggestionRange'](_0x208e5e,_0x3134c2);else{const _0x37ab28=_0x205078(),_0x4f0d4c=_0x501d7c['id'];this['_setSuggestionData']({'id':_0x37ab28,'type':'formatInline:'+_0xa03441,'data':_0x264d40,'createdAt':new Date(),'authorId':_0x4f0d4c,'attributes':_0x230b6a}),this['_addSuggestionMarker']('formatInline:'+_0xa03441,_0x37ab28,_0x4f0d4c,_0x3134c2);}}return null;}['markBlockFormat'](_0x2a407a,_0x26e552,_0x536831=[],_0x1d01bc=null,_0x5b4508={}){_0x26e552['formatGroupId']||(_0x26e552['formatGroupId']=_0x26e552['commandName']),_0x26e552['multipleBlocks']=_0x2a407a['is']('range'),_0x1d01bc=_0x1d01bc||Gt(_0x26e552);const _0x1af3ab=_0x536831['map'](_0xb8c8fc=>Jt(_0xb8c8fc,this['_model'])),_0x5e6608=_0x2a407a['is']('range')?_0x2a407a:Jt(_0x2a407a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x49c845=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d01bc,'accept');return this['forceDefaultExecution'](()=>_0x49c845([_0x5e6608],_0x26e552,_0x5b4508)),null;}_0x1af3ab['push'](_0x5e6608);let _0x31cec2=!0x0;for(const _0x1a61c5 of _0x1af3ab)if(!this['_rangeIsInLocalUserInsertion'](_0x1a61c5)){_0x31cec2=!0x1;break;}if(_0x31cec2&&'always'!==this['_trackFormatChanges']){const _0x27fc90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d01bc,'accept');return this['forceDefaultExecution'](()=>_0x27fc90([_0x5e6608],_0x26e552,_0x5b4508)),null;}let _0x153a1f=null,_0x49978e=_0x5e6608['start'],_0x216903=_0x5e6608['end'];for(const {suggestion:_0x597244,meta:_0x2474f9}of this['_findSuggestions'](_0x5e6608,'formatBlock')){if(!_0x2474f9['isOwn'])continue;if(_0x2474f9['isNextTo']||_0x2474f9['containsRangeInObject']||_0x2474f9['isInsideObject'])continue;if(_0x597244['data']['formatGroupId']!=_0x26e552['formatGroupId'])continue;if(!zt(_0x597244,_0x5b4508))continue;const _0x18f1f0=_0x597244['getFirstRange']();if(_0x597244['subType']==_0x1d01bc){if(_0x18f1f0['containsRange'](_0x5e6608,!0x0))return null;_0x49978e=_0x49978e['isBefore'](_0x18f1f0['start'])?_0x49978e:_0x18f1f0['start'],_0x216903=_0x216903['isAfter'](_0x18f1f0['end'])?_0x216903:_0x18f1f0['end'],_0x153a1f?_0x18f1f0['start']['isBefore'](_0x153a1f['getFirstRange']()['start'])?(_0x153a1f['removeMarkers'](),_0x153a1f=_0x597244):_0x597244['removeMarkers']():_0x153a1f=_0x597244;}else{const _0x49ba60=_0x5e6608['getIntersection'](_0x18f1f0);this['_cutOutSuggestionMarker'](_0x597244,_0x49ba60);}}const _0x5e97ae=this['editor']['plugins']['get']('Users')['me'],_0x42d203=_0x205078(),_0x405b44=_0x5e97ae['id'];if(_0x153a1f)return this['_setSuggestionRange'](_0x153a1f,this['_model']['createRange'](_0x49978e,_0x216903)),_0x153a1f;{const _0x7c1d8b=this['_setSuggestionData']({'id':_0x42d203,'type':'formatBlock:'+_0x1d01bc,'data':_0x26e552,'createdAt':new Date(),'authorId':_0x405b44,'attributes':_0x5b4508});return this['_addSuggestionMarker']('formatBlock:'+_0x1d01bc,_0x42d203,_0x405b44,this['_model']['createRange'](_0x49978e,_0x216903)),_0x7c1d8b;}}['markMultiRangeBlockFormat'](_0xed56c3,_0x30f637,_0x4f638c=[],_0x5c2779=null,_0x395ed1={}){_0x30f637['formatGroupId']||(_0x30f637['formatGroupId']=_0x30f637['commandName']);const _0x4ce11c=_0xed56c3[0x0];_0x30f637['multipleBlocks']=_0x4ce11c['is']('range'),_0x5c2779=_0x5c2779||Gt(_0x30f637);const _0x418409=_0x4f638c['map'](_0x59d4d9=>Jt(_0x59d4d9,this['_model'])),_0x2e076c=_0x4ce11c['is']('range')?_0xed56c3:_0xed56c3['map'](_0x2a3dc6=>Jt(_0x2a3dc6,this['_model']));if('never'===this['_trackFormatChanges']){const _0x25913f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c2779,'accept');return this['forceDefaultExecution'](()=>_0x25913f(_0x2e076c,_0x30f637,_0x395ed1)),null;}_0x418409['push'](..._0x2e076c);let _0x1a9f9c=!0x0;for(const _0x59892f of _0x418409)if(!this['_rangeIsInLocalUserInsertion'](_0x59892f)){_0x1a9f9c=!0x1;break;}if(_0x1a9f9c&&'always'!==this['_trackFormatChanges']){const _0x49ea23=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c2779,'accept');return this['forceDefaultExecution'](()=>_0x49ea23(_0x2e076c,_0x30f637,_0x395ed1)),null;}const _0x3b48d7=this['editor']['plugins']['get']('Users')['me'];for(const _0x1727ce of this['getSuggestions']()){if(_0x1727ce['author']['id']!=_0x3b48d7['id'])continue;if('formatBlock'!=_0x1727ce['type']||_0x1727ce['data']['formatGroupId']!=_0x30f637['formatGroupId'])continue;if(!zt(_0x1727ce,_0x395ed1))continue;const _0x3d0ea8=_0x1727ce['subType']==_0x5c2779;for(let _0x133124=0x0;_0x133124<_0x2e076c['length'];_0x133124++){const _0xe431b=_0x2e076c[_0x133124];for(const _0x5f5805 of _0x1727ce['getMarkers']()){const _0xd53b94=_0x5f5805['getRange']();if(_0xe431b['isEqual'](_0xd53b94)){_0x3d0ea8?(_0x2e076c['splice'](_0x133124,0x1),_0x133124--):_0x1727ce['removeMarker'](_0x5f5805['name']);break;}}}}if(0x0==_0x2e076c['length'])return null;const _0x144e37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c2779,'join');for(const _0x39e549 of this['getSuggestions']())if(_0x39e549['author']['id']==_0x3b48d7['id']&&'formatBlock'==_0x39e549['type']&&_0x39e549['data']['formatGroupId']==_0x30f637['formatGroupId']&&_0x39e549['subType']==_0x5c2779&&zt(_0x39e549,_0x395ed1)&&(_0x144e37(_0x39e549['getRanges'](),_0x2e076c)||_0x144e37(_0x2e076c,_0x39e549['getRanges']()))){for(const _0x4d8461 of _0x2e076c)_0x39e549['addRange'](_0x4d8461);return _0x39e549;}const _0x46c6b0=_0x205078(),_0xd339a3=_0x3b48d7['id'],_0x91f40f='formatBlock:'+_0x5c2779,_0x59d57e=this['_setSuggestionData']({'id':_0x46c6b0,'type':_0x91f40f,'data':_0x30f637,'createdAt':new Date(),'authorId':_0xd339a3,'attributes':_0x395ed1});for(const _0x48f574 of _0x2e076c)this['_addSuggestionMarker'](_0x91f40f,_0x46c6b0,_0xd339a3,_0x48f574,u['getMultiRangeId']());return _0x59d57e;}['markDeletion'](_0x28093a,_0xd642b1=null,_0x2df949={}){if(_0x28093a['isCollapsed'])return null;const _0x4350c4=this['editor']['plugins']['get']('Users')['me'],_0x485c53=new _0x4daf91(_0x28093a['start'],_0x28093a['end']);for(const {suggestion:_0x21de0f,meta:_0x444c16}of this['_findSuggestions'](_0x485c53,'insertion'))if(_0x444c16['isOwn']&&!_0x444c16['isNextTo']){if(_0x21de0f['isMultiRange']){const _0x2ec748=_0x21de0f['getRanges']()['filter'](_0x42dc8a=>'$graveyard'!=_0x42dc8a['root']['rootName']);_0x2ec748['every'](_0x5e5f6d=>_0x485c53['containsRange'](_0x5e5f6d,!0x0))&&_0x21de0f['discard']();if(_0x2ec748['some'](_0x5b014c=>_0x5b014c['containsRange'](_0x485c53,!0x0))){const _0x46f19d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd642b1,'accept');return this['forceDefaultExecution'](()=>_0x46f19d([_0x485c53],null,_0x2df949)),null;}}else{const _0xf1974e=_0x485c53['getIntersection'](_0x21de0f['getFirstRange']());null!==_0xf1974e&&_0x21de0f['_onDiscard']([_0xf1974e],null,_0x2df949);}}if(_0x485c53['detach'](),_0x485c53['isCollapsed']||'$graveyard'==_0x485c53['root']['rootName'])return null;let _0x946391=null,_0x1ca58f=_0x485c53['start'],_0x28908a=_0x485c53['end'];const _0x89b393=this['_findSuggestions'](_0x485c53,'deletion');for(const {suggestion:_0x3c7604,meta:_0x2294f9}of _0x89b393){const _0x1d7bfa=this['_model']['createRange'](_0x1ca58f,_0x28908a);if(_0x2294f9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2294f9['containsRangeInObject']&&!_0x2294f9['isInsideObject'])){if(_0x3c7604['isMultiRange']){if(!zt(_0x3c7604,_0x2df949))continue;let _0x48761c=!0x0;for(const _0x1c50e9 of _0x3c7604['getRanges']()){if(_0x1c50e9['containsRange'](_0x1d7bfa,!0x0))return _0x3c7604;_0x1d7bfa['containsRange'](_0x1c50e9)||(_0x48761c=!0x1);}_0x48761c&&_0x3c7604['discard']();}else{const _0x391d87=_0x3c7604['getFirstRange']();if(_0x391d87['containsRange'](_0x1d7bfa,!0x0))return _0x3c7604;if(!zt(_0x3c7604,_0x2df949)){_0x1d7bfa['containsRange'](_0x391d87)?_0x3c7604['removeMarkers']():_0x391d87['containsPosition'](_0x1ca58f)?_0x1ca58f=_0x391d87['end']:_0x391d87['containsPosition'](_0x28908a)&&(_0x28908a=_0x391d87['start']);continue;}_0x1ca58f=_0x1ca58f['isBefore'](_0x391d87['start'])?_0x1ca58f:_0x391d87['start'],_0x28908a=_0x28908a['isAfter'](_0x391d87['end'])?_0x28908a:_0x391d87['end'],_0x2df949=Object['assign']({},_0x3c7604['attributes']),_0x946391?_0x391d87['start']['isBefore'](_0x946391['getFirstRange']()['start'])?(_0x946391['removeMarkers'](),_0x946391=_0x3c7604):_0x3c7604['removeMarkers']():_0x946391=_0x3c7604;}}}if(_0x946391)return this['_setSuggestionRange'](_0x946391,this['_model']['createRange'](_0x1ca58f,_0x28908a)),_0x946391;{const _0x2d6a27=_0x205078(),_0x15b37c=this['_model']['createRange'](_0x1ca58f,_0x28908a),_0x4588e6=_0x4350c4['id'],_0x1fff1d=_0xd642b1?'deletion:'+_0xd642b1:'deletion',_0xee166b=this['_setSuggestionData']({'id':_0x2d6a27,'type':_0x1fff1d,'createdAt':new Date(),'authorId':_0x4588e6,'attributes':_0x2df949});return this['_addSuggestionMarker'](_0x1fff1d,_0x2d6a27,_0x4588e6,_0x15b37c),_0xee166b;}}['markMultiRangeDeletion'](_0x48db29,_0x5edfcb='multi',_0x14689f={}){const _0x280f23=this['editor']['plugins']['get']('Users')['me'],_0x2e0b73=_0x48db29['map'](_0x450ef4=>new _0x4daf91(_0x450ef4['start'],_0x450ef4['end'])),_0x3383b1=new Set();for(const {suggestion:_0x1f41c8,meta:_0x3b41e4}of this['_findSuggestions'](_0x2e0b73,'insertion'))_0x3b41e4['isOwn']&&!_0x3b41e4['isNextTo']&&_0x3383b1['add'](_0x1f41c8);for(const _0x1a391f of _0x3383b1)if(_0x1a391f['isMultiRange']){const _0x18d981=_0x1a391f['getRanges']();(!_0x1a391f['attributes']||!_0x1a391f['attributes']['skipNestingCheck'])&&(_0x18d981['every'](_0x4d8164=>_0x2e0b73['some'](_0x486932=>_0x486932['containsRange'](_0x4d8164,!0x0)))&&_0x1a391f['discard']());if(_0x2e0b73['every'](_0x40fac6=>_0x18d981['some'](_0xa1972b=>_0xa1972b['containsRange'](_0x40fac6,!0x0)))){const _0x10d44a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5edfcb,'accept');return this['forceDefaultExecution'](()=>_0x10d44a(_0x48db29,null,_0x14689f)),null;}}else{const _0x214f2d=_0x1a391f['getFirstRange']();_0x2e0b73['some'](_0x3e9f72=>_0x3e9f72['containsRange'](_0x214f2d,!0x0))&&_0x1a391f['discard']();if(_0x2e0b73['every'](_0xd9c047=>_0x214f2d['containsRange'](_0xd9c047,!0x0))){const _0x37a895=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5edfcb,'accept');return this['forceDefaultExecution'](()=>_0x37a895(_0x2e0b73,null,_0x14689f)),null;}}const _0x238ad1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5edfcb,'join');let _0x5e6ee5=null;for(const _0x5b7111 of this['getSuggestions']())if(_0x5b7111['author']['id']==_0x280f23['id']&&_0x5b7111['isInContent']&&'deletion'==_0x5b7111['type']&&_0x5b7111['subType']==_0x5edfcb&&zt(_0x5b7111,_0x14689f)&&(_0x238ad1(_0x5b7111['getRanges'](),_0x2e0b73)||_0x238ad1(_0x2e0b73,_0x5b7111['getRanges']()))){if(_0x5e6ee5){if(_0x5b7111['commentThread']&&_0x5b7111['commentThread']['length'])continue;for(const _0x1d8b64 of _0x5b7111['getRanges']())_0x5e6ee5['isIntersectingWithRange'](_0x1d8b64)||_0x5e6ee5['addRange'](_0x1d8b64);_0x5b7111['removeMarkers']();}else{_0x5e6ee5=_0x5b7111;for(const _0x1b5a23 of _0x2e0b73)_0x5b7111['isIntersectingWithRange'](_0x1b5a23)||_0x5b7111['addRange'](_0x1b5a23);}}if(_0x5e6ee5)return _0x5e6ee5;_0x3383b1['clear']();for(const {suggestion:_0x486994,meta:_0xf50877}of this['_findSuggestions'](_0x2e0b73,'deletion'))_0xf50877['isOwn']&&(this['_mergeNestedSuggestions']||!_0xf50877['containsRangeInObject']&&!_0xf50877['isInsideObject'])&&zt(_0x486994,_0x14689f)&&_0x3383b1['add'](_0x486994);for(const _0x4207dc of _0x3383b1){const _0x3379f4=_0x4207dc['getRanges']();if(!_0x14689f||!_0x14689f['skipNestingCheck']){if(_0x2e0b73['every'](_0x4034fc=>_0x3379f4['some'](_0x214ece=>_0x214ece['containsRange'](_0x4034fc,!0x0))))return _0x4207dc;}(!_0x4207dc['attributes']||!_0x4207dc['attributes']['skipNestingCheck'])&&(_0x3379f4['every'](_0x46bd3f=>_0x2e0b73['some'](_0x1d8f2a=>_0x1d8f2a['containsRange'](_0x46bd3f,!0x0)))&&_0x4207dc['discard']());}const _0x5c716d=_0x205078(),_0xb66f8b=_0x280f23['id'],_0x540763='deletion:'+_0x5edfcb,_0x1cb9cb=this['_setSuggestionData']({'id':_0x5c716d,'type':_0x540763,'createdAt':new Date(),'authorId':_0xb66f8b,'attributes':_0x14689f});for(const _0x74bab6 of _0x2e0b73)_0x74bab6['detach'](),_0x74bab6['isCollapsed']||'$graveyard'==_0x74bab6['root']['rootName']||this['_addSuggestionMarker'](_0x540763,_0x5c716d,_0xb66f8b,_0x74bab6,u['getMultiRangeId']());return _0x1cb9cb;}['markAttributeChange'](_0x3346b1,_0x27a5cb,_0x414c68,_0x151cfc,_0x18d569){if(_0x3346b1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3fbf57=this['editor']['plugins']['get']('Users')['me']['id'],_0x487d33=Array['from'](this['_suggestions']['values']())['filter'](_0x394c9a=>'attribute'==_0x394c9a['type']&&_0x394c9a['data']['key']==_0x27a5cb&&_0x394c9a['isIntersectingWithRange'](_0x3346b1));if('default'===this['_trackFormatChanges']){const _0x13b464=this['_findSuggestions'](_0x3346b1,'insertion')['filter'](({meta:_0x1fbee8})=>_0x1fbee8['isOwn']&&!_0x1fbee8['isInsideObject']&&!_0x1fbee8['isNextTo'])['map'](({suggestion:_0x376a6f})=>_0x376a6f);_0x487d33['unshift'](..._0x13b464);}const _0x322969=new Map([[_0x3346b1,_0x414c68]]);for(const _0x4e754e of _0x487d33){const _0x207e24='attribute'==_0x4e754e['type']?_0x4e754e['data']['oldValue']:void 0x0,_0x9ba63c=_0x4e754e['getFirstRange'](),_0x15e26d=Array['from'](_0x322969['keys']())['find'](_0x807ed1=>_0x807ed1['isIntersecting'](_0x9ba63c));if(!_0x15e26d)continue;const _0x3954a7=_0x15e26d['getDifference'](_0x9ba63c);this['_isBlockAttribute'](_0x27a5cb)&&'insertion'==_0x4e754e['type']&&0x0!=_0x3954a7['length']||(_0x322969['delete'](_0x15e26d),_0x3954a7['forEach'](_0x5af384=>{_0x322969['set'](_0x5af384,_0x414c68);}),'insertion'!=_0x4e754e['type']&&_0x207e24!=_0x151cfc&&_0x322969['set'](_0x15e26d['getIntersection'](_0x9ba63c),_0x207e24));}const _0x20b4f3=[];for(const [_0x56dc0f,_0x59f72c]of _0x322969){const _0x3499de=_0x205078(),_0x1a2949={'key':_0x27a5cb,'oldValue':_0x59f72c,'newValue':_0x151cfc};_0x27a5cb['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':_0x27a5cb});const _0x264962=('attribute:'+(_0x27a5cb+'|'+Gt({'newValue':_0x151cfc})))['substring'](0x0,0x3c),_0x1a5bed=this['_setSuggestionData']({'id':_0x3499de,'type':_0x264962,'data':_0x1a2949,'createdAt':new Date(),'authorId':_0x3fbf57,'attributes':_0x18d569});_0x20b4f3['push'](_0x1a5bed),this['_addSuggestionMarker'](_0x264962,_0x3499de,_0x3fbf57,_0x56dc0f);}return _0x20b4f3;}['enableDefaultAttributesIntegration'](_0x1c3ca9){this['enableCommand'](_0x1c3ca9,(_0x424e92,..._0x5899e0)=>{this['_recordAttributeChanges'](()=>{_0x424e92(..._0x5899e0);});});}['registerBlockAttribute'](_0xf9362b){this['_blockAttributeKeys']['add'](_0xf9362b);}['registerInlineAttribute'](_0xe61e05){this['_inlineAttributeKeys']['add'](_0xe61e05);}['_getAttributeKey'](_0x1e0df7){return'attribute'==_0x1e0df7['type']?_0x1e0df7['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x221b03,_0x14d821){const _0x1d71ef=_0x221b03['getFirstMarker']();this['_model']['change'](_0x1ef047=>{_0x1ef047['updateMarker'](_0x1d71ef,{'range':_0x14d821});});}['_addThreadToSuggestion'](_0x3e5837){const _0x37bf58=_0x3e5837['id'],_0x9115ea=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x37bf58)||this['_commentsRepository']['addCommentThread']({'channelId':_0x9115ea,'threadId':_0x37bf58,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f4c64=this['_commentsRepository']['getCommentThread'](_0x37bf58);_0x1f4c64['unbind']('isRemovable'),_0x1f4c64['isRemovable']=!0x1,_0x3e5837['commentThread']=_0x1f4c64;}['_checkSuggestionCorrectness'](_0x5680a8,_0x5091d5,_0x4ad954,_0x5503ab){if(_0x5680a8['type']!=_0x5091d5||_0x5680a8['subType']!=_0x4ad954||_0x5680a8['creator']['id']!=_0x5503ab)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x562698('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4cf2d0,_0x496381){const _0x11f133=_0x4cf2d0['getFirstRange']();if(_0x496381['isEqual'](_0x11f133))_0x4cf2d0['removeMarkers']();else{if(_0x11f133['containsRange'](_0x496381)){const _0x501934=this['_model']['createPositionAt'](_0x496381['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4cf2d0,this['_model']['createRange'](_0x11f133['start'],_0x501934));const _0x2d09fe=_0x205078(),_0x4a3cf2=_0x4cf2d0['creator']['id'],_0x3f8b64=_0x4cf2d0['type']+':'+_0x4cf2d0['subType'];this['_setSuggestionData']({'id':_0x2d09fe,'type':_0x3f8b64,'createdAt':new Date(),'authorId':_0x4a3cf2,'data':_0x4cf2d0['data'],'attributes':_0x4cf2d0['attributes']});const _0xd5ea88=this['_model']['createPositionAt'](_0x496381['end']['parent'],'after'),_0x6a4709=this['_model']['createRange'](_0xd5ea88,_0x11f133['end']);this['_addSuggestionMarker'](_0x3f8b64,_0x2d09fe,_0x4a3cf2,_0x6a4709);}else{if(_0x11f133['containsPosition'](_0x496381['start'])){const _0x53727f=this['_model']['createPositionAt'](_0x496381['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4cf2d0,this['_model']['createRange'](_0x11f133['start'],_0x53727f));}else{const _0x129324=this['_model']['createPositionAt'](_0x496381['end']['parent'],'after');this['_setSuggestionRange'](_0x4cf2d0,this['_model']['createRange'](_0x129324,_0x11f133['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xb07d2f){for(const {suggestion:_0x56d344,meta:_0x4bae91}of this['_findSuggestions'](_0xb07d2f,'insertion')){if(!_0x4bae91['isOwn'])continue;const _0x3c8f1c=_0x56d344['getRanges']();for(const _0x413a75 of _0x3c8f1c)if(!_0xb07d2f['getDifference'](_0x413a75)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xca3a90){const _0x50ec09=this['editor']['plugins']['get']('Users')['getUser'](_0xca3a90);if(!_0x50ec09)throw new _0x562698('track-changes-user-not-found',this);return _0x50ec09;}['_getExternalAuthor'](_0x545052){const _0x29218b=this['editor']['plugins']['get']('Users'),_0x2666ea=_0x1c304('external:'+_0x545052),_0x25afcf=_0x29218b['getUser'](_0x2666ea);return _0x25afcf||_0x29218b['addUser']({'id':_0x2666ea,'name':_0x545052});}['_createSuggestion'](_0x1a332f,_0x3180f9,_0x23ddb8,_0x25ed89,_0x5f3e94){const _0x5688ff=this['_getAuthorFromId'](_0x25ed89),_0x7d3f02=this['_suggestionFactory']['buildSuggestion'](_0x1a332f,_0x3180f9,_0x23ddb8,_0x5688ff,_0x5f3e94,_0x10ba5a=>{this['_updateSuggestionData'](_0x23ddb8,{'attributes':_0x10ba5a});const _0x43421f=this['getSuggestion'](_0x23ddb8);this['_joinWithAdjacentSuggestions'](new Set([_0x43421f])),this['_refreshSuggestionsChain'](new Set([_0x43421f]));});return this['listenTo'](_0x7d3f02,'accept',()=>{this['_updateSuggestionData'](_0x23ddb8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x7d3f02,'discard',()=>{this['_updateSuggestionData'](_0x23ddb8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x23ddb8,_0x7d3f02),this['_suggestionState']['set'](_0x7d3f02,'notReady'),_0x7d3f02;}['_splitMarkerName'](_0xa8ad2){const _0x24e6b7=_0xa8ad2['split'](':');return{'group':_0x24e6b7[0x0],'type':_0x24e6b7[0x1],'subType':_0x24e6b7['length']>=0x5?_0x24e6b7[0x2]:null,'id':_0x24e6b7['length']<0x5?_0x24e6b7[0x2]:_0x24e6b7[0x3],'authorId':_0x24e6b7['length']<0x5?_0x24e6b7[0x3]:_0x24e6b7[0x4],'markerCount':0x6==_0x24e6b7['length']?_0x24e6b7[0x5]:null};}['_breakSuggestionMarker'](_0x544767,_0x2922a6,_0x3a4ed6){const _0x2d6951=_0x544767['getFirstRange'](),_0x1fb4b5=_0x2d6951['start'],_0x3309a9=_0x2d6951['end'];this['_setSuggestionRange'](_0x544767,this['_model']['createRange'](_0x1fb4b5,_0x2922a6));const _0xd3f950=_0x205078(),_0x113c07=_0x544767['creator']['id'],_0x1e4b22=_0x544767['type']+(_0x544767['subType']?':'+_0x544767['subType']:'');this['_setSuggestionData']({'id':_0xd3f950,'type':_0x1e4b22,'createdAt':new Date(),'authorId':_0x113c07,'originalSuggestionId':_0x544767['id'],'attributes':_0x544767['attributes'],'data':_0x544767['data']});const _0x7ff53f=this['_getAttributeKey'](_0x544767);('formatBlock'==_0x544767['type']||_0x7ff53f&&this['_isBlockAttribute'](_0x7ff53f))&&(_0x3a4ed6=this['_model']['createPositionBefore'](_0x3a4ed6['parent'])),this['_addSuggestionMarker'](_0x1e4b22,_0xd3f950,_0x113c07,this['_model']['createRange'](_0x3a4ed6,_0x3309a9));}['_findSuggestions'](_0x58ede3,_0x561250=null){const _0x5a1127=[],_0x6434dc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x58ede3)||(_0x58ede3=[_0x58ede3]);for(const _0x21f4e8 of this['getSuggestions']()){if(!_0x21f4e8['isInContent'])continue;if(_0x561250&&_0x21f4e8['type']!=_0x561250)continue;let _0x35e4c4=!0x1;for(const _0x2a5fa1 of _0x21f4e8['getRanges']()){for(const _0x3a45e4 of _0x58ede3){const _0x14769a=_0x3a45e4['start']['isEqual'](_0x2a5fa1['end'])||_0x3a45e4['end']['isEqual'](_0x2a5fa1['start']);if(_0x14769a||_0x3a45e4['getIntersection'](_0x2a5fa1)){const _0x33e62e=_0x3a45e4['containsRange'](_0x2a5fa1)&&Ut(this['_model']['schema'],_0x2a5fa1['start'],_0x3a45e4),_0x5ecceb=_0x2a5fa1['containsRange'](_0x3a45e4)&&Ut(this['_model']['schema'],_0x3a45e4['start'],_0x2a5fa1);_0x5a1127['push']({'suggestion':_0x21f4e8,'meta':{'isOwn':_0x6434dc==_0x21f4e8['author'],'isNextTo':_0x14769a,'isInsideObject':_0x33e62e,'containsRangeInObject':_0x5ecceb}}),_0x35e4c4=!0x0;break;}}if(_0x35e4c4)break;}}return _0x5a1127;}['_addSuggestionMarker'](_0x3ccce8,_0x23096f,_0x743fc3,_0x29cff8,_0x3026c8){this['_model']['change'](_0x3cdf6d=>{let _0x525c83='suggestion:'+_0x3ccce8+':'+_0x23096f+':'+_0x743fc3;_0x3026c8&&(_0x525c83=_0x525c83+':'+_0x3026c8),_0x3cdf6d['addMarker'](_0x525c83,{'range':_0x29cff8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x466e05){const _0x2756b7=_0x466e05['previous'],_0x141027=_0x466e05['next'];_0x466e05['previous']=null,_0x466e05['next']=null,null!=_0x2756b7&&_0x2756b7['next']==_0x466e05&&(_0x2756b7['next']=_0x141027),null!=_0x141027&&_0x141027['previous']==_0x466e05&&(_0x141027['previous']=_0x2756b7),'ready'==this['_suggestionState']['get'](_0x466e05)&&(this['_suggestionState']['set'](_0x466e05,'removed'),this['fire']('suggestionUnloaded',_0x466e05,_0x2756b7,_0x141027));}['_setSuggestionData'](_0xd9422a){const _0x4513d5=_0xd9422a['id'],_0x3d8dca=this['addSuggestionData'](_0xd9422a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x23efae=this['editor']['plugins']['get']('PendingActions'),_0x554f5b=_0x3d8dca['hasComments'],_0x4cb50b=_0x3d8dca['subType']?_0x3d8dca['type']+':'+_0x3d8dca['subType']:_0x3d8dca['type'],_0x231d68=this['editor']['locale'],_0x2e6ec8=_0x23efae['add'](o(_0x231d68,'PENDING_ACTION_SUGGESTION')),_0xc71dcb={'id':_0x4513d5,'type':_0x4cb50b,'hasComments':_0x554f5b,'data':_0xd9422a['data']||null,'originalSuggestionId':_0xd9422a['originalSuggestionId']||null,'attributes':_0x3d8dca['attributes']};this['_adapter']['addSuggestion'](_0xc71dcb)['then'](_0xcf53a3=>{_0x3d8dca['_saved']=!0x0,_0x23efae['remove'](_0x2e6ec8),_0xcf53a3&&_0xcf53a3['createdAt']&&(this['_suggestions']['get'](_0x4513d5)['createdAt']=_0xcf53a3['createdAt']);})['catch'](_0x7058df=>{throw _0x14f29b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3d8dca['discard']();}),_0x3d8dca['stopListening'](),this['_suggestions']['delete'](_0x3d8dca['id']),this['_suggestionState']['delete'](_0x3d8dca),_0x7058df;});}return _0x3d8dca;}['_isBlockAttribute'](_0x321041){return this['_blockAttributeKeys']['has'](_0x321041);}['_updateSuggestionData'](_0x385733,_0x2a7f59){const _0xf344d9=this['editor']['plugins']['get']('PendingActions'),_0x2fb521=this['getSuggestion'](_0x385733);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2fb521['_saved']){const _0x3ac96c=_0xf344d9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x385733,_0x2a7f59)['then'](()=>{_0xf344d9['remove'](_0x3ac96c);});}else _0x2fb521['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x385733,_0x2a7f59);});}}['_getSuggestionData'](_0x1c22c5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x562698('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1c22c5);}['_handleNewSuggestionMarker'](_0x271f91){const {id:_0x3bf683,type:_0x5e46f1,subType:_0x48608e,authorId:_0x36a238}=this['_splitMarkerName'](_0x271f91),_0x33060b=this['_suggestions']['get'](_0x3bf683)||this['_createSuggestion'](_0x5e46f1,_0x48608e,_0x3bf683,_0x36a238,{});switch(this['_checkSuggestionCorrectness'](_0x33060b,_0x5e46f1,_0x48608e,_0x36a238),this['_suggestionState']['get'](_0x33060b)){case'notReady':this['_getSuggestionData'](_0x3bf683)['then'](_0x29e7d9=>{let _0x47e1ef=Promise['resolve']();_0x29e7d9['hasComments']&&(_0x47e1ef=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3bf683})),_0x47e1ef['then'](()=>{this['addSuggestionData'](_0x29e7d9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x33060b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3bf683,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x33060b,'ready'),this['fire']('suggestionLoaded',_0x33060b);break;case'ready':this['fire']('suggestionChanged',_0x33060b);}return _0x33060b['addMarkerName'](_0x271f91),_0x33060b;}['_refreshSuggestionsChain'](_0x678b07){const _0x26189b=Array['from'](_0x678b07),_0x49eac4=_0x26189b['filter'](_0x542d48=>'attribute'==_0x542d48['type']);this['_refreshAttributeSuggestionsChain'](_0x49eac4);const _0x2a229a=_0x26189b['filter'](_0x18c0ba=>!_0x18c0ba['isMultiRange']&&'attribute'!=_0x18c0ba['type']),_0x338bc5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27a6f9=>!_0x27a6f9['isMultiRange']&&'attribute'!=_0x27a6f9['type']),_0x56196c=_0x338bc5['filter'](_0x16ff9d=>!_0x678b07['has'](_0x16ff9d)),_0x426fa5=new Map(_0x338bc5['map'](_0x50951e=>[_0x50951e,this['_suggestionFactory']['getSuggestionCallback'](_0x50951e['type'],_0x50951e['subType'],'chain')])),_0x179724=new Map(_0x338bc5['map'](_0x3bdc6b=>[_0x3bdc6b,_0x3bdc6b['getFirstRange']()])),_0x3811a4=new Set(),_0x47cbd0=new Set();for(let _0x38b1a8=0x0;_0x38b1a8<_0x2a229a['length'];_0x38b1a8++)_0x1d1b5b(_0x2a229a[_0x38b1a8],_0x2a229a,_0x38b1a8+0x1);for(let _0x26becd=0x0;_0x26becd<_0x2a229a['length'];_0x26becd++)_0x1d1b5b(_0x2a229a[_0x26becd],_0x56196c,0x0);const _0xd7a28d=new Set();for(let _0x27a68e=0x0;_0x27a68e<_0x2a229a['length'];_0x27a68e++){const _0x4c0c64=_0x2a229a[_0x27a68e];!_0x47cbd0['has'](_0x4c0c64)&&_0x4c0c64['previous']&&(_0xd7a28d['add'](_0x4c0c64['previous']),_0x4c0c64['previous']['next']===_0x4c0c64&&(_0x4c0c64['previous']['next']=null),_0x4c0c64['previous']=null),!_0x3811a4['has'](_0x4c0c64)&&_0x4c0c64['next']&&(_0xd7a28d['add'](_0x4c0c64['next']),_0x4c0c64['next']['previous']===_0x4c0c64&&(_0x4c0c64['next']['previous']=null),_0x4c0c64['next']=null);}function _0x1d1b5b(_0x53ca81,_0x44c7ea,_0x413dc9){for(let _0x560994=_0x413dc9;_0x560994<_0x44c7ea['length'];_0x560994++){const _0x4ab723=_0x3500e1(_0x53ca81,_0x44c7ea[_0x560994]);_0x4ab723&&(_0x4ab723[0x0]['next']=_0x4ab723[0x1],_0x4ab723[0x1]['previous']=_0x4ab723[0x0],_0x3811a4['add'](_0x4ab723[0x0]),_0x47cbd0['add'](_0x4ab723[0x1]));}}function _0x3500e1(_0x57dcf2,_0x46da60){if(_0x57dcf2['author']['id']!==_0x46da60['author']['id'])return null;const _0x4ce94a=_0x426fa5['get'](_0x57dcf2)(_0x57dcf2,_0x46da60,_0x179724['get'](_0x57dcf2),_0x179724['get'](_0x46da60));if(!_0x4ce94a)return null;return _0x426fa5['get'](_0x46da60)(_0x57dcf2,_0x46da60,_0x179724['get'](_0x57dcf2),_0x179724['get'](_0x46da60))?_0x4ce94a[0x1]['commentThread']&&_0x4ce94a[0x1]['commentThread']['length']?null:_0x4ce94a:null;}_0xd7a28d['size']&&this['_refreshSuggestionsChain'](_0xd7a28d);}['_refreshAttributeSuggestionsChain'](_0x2ffea4){if(0x0==_0x2ffea4['length'])return;const _0x53250f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a2d36=>'attribute'==_0x4a2d36['type']&&_0x4a2d36['_isDataLoaded']),_0x4e2511=[],_0x5f4d88=new Map();for(const _0x40d044 of _0x53250f){const _0x2732e8=_0x1c304(_0x40d044['attributes']);_0x5f4d88['has'](_0x2732e8)||(_0x5f4d88['set'](_0x2732e8,_0x4e2511['length']),_0x4e2511['push']([]));const _0xbbb9a9=_0x5f4d88['get'](_0x2732e8);_0x4e2511[_0xbbb9a9]['push'](_0x40d044);}!(function(){_0x4e2511['sort']((_0x2d7990,_0x59f001)=>{const _0x54efae=_0x2d7990[0x0]['createdAt'],_0x3554fa=_0x59f001[0x0]['createdAt'];return _0x54efae==_0x3554fa?_0x2d7990[0x0]['attributes']['groupId']<_0x59f001[0x0]['attributes']['groupId']?-0x1:0x1:_0x54efae<_0x3554fa?-0x1:0x1;});for(const _0xbcdd04 of _0x4e2511)_0xbcdd04['sort']((_0x331bf1,_0x48c4c4)=>_0x331bf1['id']<_0x48c4c4['id']?-0x1:0x1);}());for(let _0x2c3c0e=0x0;_0x2c3c0e<_0x4e2511['length'];_0x2c3c0e++){if(0x0==_0x4e2511[_0x2c3c0e]['length'])continue;const _0x4c2cf3=[];for(let _0x337e8a=_0x2c3c0e+0x1;_0x337e8a<_0x4e2511['length'];_0x337e8a++)0x0!=_0x4e2511[_0x337e8a]['length']&&_0x29ae1f(_0x4e2511[_0x2c3c0e],_0x4e2511[_0x337e8a])&&_0x4c2cf3['push'](_0x337e8a);for(const _0x554fca of _0x4c2cf3)_0x4e2511[_0x2c3c0e]=_0x4e2511[_0x2c3c0e]['concat'](_0x4e2511[_0x554fca]),_0x4e2511[_0x554fca]=[];}for(const _0x341f71 of _0x4e2511)for(let _0x3396bd=0x0;_0x3396bd<_0x341f71['length'];_0x3396bd++){const _0x14ac89=_0x341f71[_0x3396bd+0x1]||null;_0x341f71[_0x3396bd]['next']!==_0x14ac89&&(_0x341f71[_0x3396bd]['next']=_0x14ac89);}for(const _0x1de719 of _0x4e2511)for(let _0x28c2f9=0x0;_0x28c2f9<_0x1de719['length'];_0x28c2f9++){const _0x38e893=_0x1de719[_0x28c2f9-0x1]||null;_0x1de719[_0x28c2f9]['previous']!==_0x38e893&&(_0x1de719[_0x28c2f9]['previous']=_0x38e893);}function _0x29ae1f(_0x4e5dd1,_0x2832ab){if(_0x4e5dd1[0x0]['attributes']['groupId']!==_0x2832ab[0x0]['attributes']['groupId']&&_0x4e5dd1[0x0]['author']!==_0x2832ab[0x0]['author'])return!0x1;if(!function(_0x7fc157,_0x46b460){if(!_0x7fc157['hasComments']&&!_0x46b460['hasComments'])return!0x0;if(_0x7fc157['hasComments']&&_0x46b460['hasComments'])return!0x1;if(_0x7fc157['hasComments']&&_0x46b460['createdAt']<_0x7fc157['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x46b460['hasComments']&&_0x7fc157['createdAt']<_0x46b460['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4e5dd1[0x0],_0x2832ab[0x0]))return!0x1;const _0xeb8899=xt(_0x4e5dd1[0x0]['attributes'],'groupId'),_0x473e09=xt(_0x2832ab[0x0]['attributes'],'groupId');if(!_0x1a4045(_0xeb8899,_0x473e09))return!0x1;return!!_0x4e5dd1['every'](_0x58afe1=>_0x2832ab['some'](_0x56ad35=>_0x58afe1['getFirstRange']()['isEqual'](_0x56ad35['getFirstRange']())))&&_0x2832ab['every'](_0x4e53e0=>_0x4e5dd1['some'](_0x12171c=>_0x4e53e0['getFirstRange']()['isEqual'](_0x12171c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3fd83c){const _0x4248b0=Array['from'](_0x3fd83c),_0x46d460=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2325f2=_0x46d460['filter'](_0x48f242=>!_0x3fd83c['has'](_0x48f242)),_0x13a42d=new Map(_0x4248b0['map'](_0x49fa40=>[_0x49fa40,this['_suggestionFactory']['getSuggestionCallback'](_0x49fa40['type'],_0x49fa40['subType'],'join')])),_0x5d7264=new Map(_0x46d460['map'](_0x482564=>[_0x482564,_0x482564['getRanges']()]));for(let _0x4f302d=0x0;_0x4f302d<_0x4248b0['length'];_0x4f302d++){if(_0x514948(this,_0x4248b0[_0x4f302d],_0x4248b0,_0x4f302d+0x1))return!0x0;}for(let _0x5ef3dc=0x0;_0x5ef3dc<_0x4248b0['length'];_0x5ef3dc++){if(_0x514948(this,_0x4248b0[_0x5ef3dc],_0x2325f2,0x0))return!0x0;}return!0x1;function _0x514948(_0x3258ec,_0x163ed3,_0x16c816,_0x512cde){for(let _0xb28673=_0x512cde;_0xb28673<_0x16c816['length'];_0xb28673++){const _0x218c01=_0x16c816[_0xb28673];if(_0x218c01['type']!==_0x163ed3['type']||_0x218c01['author']['id']!==_0x163ed3['author']['id']||_0x218c01['subType']!==_0x163ed3['subType'])continue;if(!qt(_0x163ed3,_0x218c01))continue;if('attribute'==_0x163ed3['type']&&_0x163ed3['data']['oldValue']!=_0x218c01['data']['oldValue'])continue;if('attribute'==_0x163ed3['type']&&_0x3258ec['_isBlockAttribute'](_0x163ed3['data']['key']))continue;if('formatBlock'==_0x163ed3['type']){const _0x5165d6=_0x3258ec['editor']['model'],_0x4977f2=_0x163ed3['getContainedElement']();if(_0x4977f2&&(_0x5165d6['schema']['isObject'](_0x4977f2)||_0x5165d6['schema']['isLimit'](_0x4977f2)))continue;}const _0x5ed50b=_0x13a42d['get'](_0x163ed3),_0x505bd8=_0x5d7264['get'](_0x163ed3),_0x2bdd6e=_0x5d7264['get'](_0x218c01),_0x382073=_0x163ed3['commentThread']&&_0x163ed3['commentThread']['length'],_0x119d5a=_0x218c01['commentThread']&&_0x218c01['commentThread']['length'];if(!_0x382073&&_0x5ed50b(_0x2bdd6e,_0x505bd8))return _0x3258ec['_joinSuggestions'](_0x218c01,_0x163ed3),_0x5d7264['delete'](_0x163ed3),!0x0;if(!_0x119d5a&&_0x5ed50b(_0x505bd8,_0x2bdd6e))return _0x3258ec['_joinSuggestions'](_0x163ed3,_0x218c01),_0x5d7264['delete'](_0x218c01),!0x0;}return!0x1;}}['_joinSuggestions'](_0x158e30,_0x4971ca){if(_0x158e30['isMultiRange']){for(const _0x59c708 of _0x4971ca['getRanges']())_0x158e30['addRange'](_0x59c708);}else{const _0x3f4c74=_0x4971ca['getFirstRange']()['end'];this['_setSuggestionRange'](_0x158e30,this['_model']['createRange'](_0x158e30['getFirstRange']()['start'],_0x3f4c74));}_0x4971ca['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c7a78,_0x2d6039,_0x5e89eb){const _0x499f31=_0x3c7a78['startsWith']('format')||_0x3c7a78['startsWith']('attribute')?'FORMATTING':_0x3c7a78['toUpperCase']();return o(this['editor']['locale'],_0x2d6039+'_'+_0x499f31+'_SUGGESTION_ANNOUNCEMENT',_0x5e89eb);}['_initAriaMarkerChangeAnnouncements'](){const _0x4a46d8=this['editor'];if(!_0x4a46d8['ui'])return;const {ariaLiveAnnouncer:_0x3e7d53}=_0x4a46d8['ui'];_0xbdba6c(this['_model'],({left:_0x50807d,entered:_0x1ac55c})=>{for(const _0x52e330 of _0x50807d){const {group:_0x35d2be,type:_0x43dd62}=this['_splitMarkerName'](_0x52e330['name']);if('suggestion'===_0x35d2be){_0x3e7d53['announce'](this['_getMarkerAnnouncementText'](_0x43dd62,'LEAVE'));break;}}for(const _0xf0c4e4 of _0x1ac55c){const {group:_0x2d6993,type:_0x233fb3}=this['_splitMarkerName'](_0xf0c4e4['name']);if('suggestion'===_0x2d6993){_0x3e7d53['announce'](this['_getMarkerAnnouncementText'](_0x233fb3,'ENTER',_0x46bc23(_0x2ea0eb)));break;}}});}['_processAttributeChanges'](_0x3357a7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5b1aca=this['editor'],_0x2bcc14=_0x5b1aca['model']['document']['differ']['getChanges']();if(0x0==_0x2bcc14['length'])return!0x1;const _0x31be5e=[],_0x576cec=_0x2bcc14['filter'](_0x1b0c26=>'attribute'==_0x1b0c26['type']),_0x4e49b7=_0x2bcc14['filter'](_0xe45b3f=>'insert'==_0xe45b3f['type']&&'$text'!=_0xe45b3f['name']),_0x3a6015=_0x2bcc14['filter'](_0x27ed10=>'remove'==_0x27ed10['type']&&'$text'!=_0x27ed10['name']);for(const _0x3556f0 of _0x576cec)_0x31be5e['push']({'key':_0x3556f0['attributeKey'],'newValue':_0x3556f0['attributeNewValue'],'oldValue':_0x3556f0['attributeOldValue'],'range':Lt(_0x3556f0['range'],_0x5b1aca['model'])});for(const _0x1c2a1f of _0x4e49b7){const _0x5c8554=_0x3a6015['find'](_0x9e7a0e=>_0x9e7a0e['position']['isEqual'](_0x1c2a1f['position']));_0x5c8554&&_0x31be5e['push']({'key':m,'newValue':_0x1c2a1f['name'],'oldValue':_0x5c8554['name'],'range':_0x5b1aca['model']['createRangeOn'](_0x1c2a1f['position']['nodeAfter'])});}return 0x0!=_0x31be5e['length']&&this['_reduceExistingSuggestions'](_0x3357a7,_0x31be5e);}['_processAttributeSuggestions'](_0x2bc3fc){let _0x2ce3ca=!0x1;const _0x308c69=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b49d4=>_0x5b49d4['data']['newRange']&&_0x5b49d4['name']['startsWith']('suggestion:attribute:'));for(const _0x21b5a1 of _0x308c69){const {subType:_0x56798a,id:_0x1c915d}=this['_splitMarkerName'](_0x21b5a1['name']),_0x3a3580=_0x56798a['split']('|')[0x0];for(const _0x4e7863 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4e7863['id']!=_0x1c915d&&'attribute'==_0x4e7863['type']&&_0x4e7863['data']&&_0x4e7863['data']['key']==_0x3a3580&&_0x4e7863['getFirstRange']()['isIntersecting'](_0x21b5a1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4e7863,_0x21b5a1['data']['newRange'],_0x2bc3fc),_0x2ce3ca=!0x0);}return _0x2ce3ca;}['_recordAttributeChanges'](_0x7fb3e4){this['_recordAttributeSuggestions']=!0x0,_0x7fb3e4();}['_isRegisteredAttribute'](_0x3ea79c){const _0x942062=this['_isBlockAttribute'](_0x3ea79c),_0x19ba8a=this['_inlineAttributeKeys']['has'](_0x3ea79c);return _0x942062||_0x19ba8a;}['_reduceExistingSuggestions'](_0x4d7df6,_0x2c6b20){if(0x0==_0x2c6b20['length'])return!0x1;let _0x4020f9=!0x1;for(const _0x4fa0db of _0x2c6b20){const _0x34b435=this['_findSuggestions'](_0x4fa0db['range'],'attribute')['filter'](_0x5aaffe=>!_0x5aaffe['meta']['isNextTo'])['map'](_0x59b5a7=>_0x59b5a7['suggestion']),_0x38976b=_0x1c304({'newValue':_0x4fa0db['newValue']});_0x34b435['filter'](_0x3a736f=>{const [_0x474cba,_0x357030]=_0x3a736f['subType']['split']('|');return _0x474cba==_0x4fa0db['key']&&_0x357030!=_0x38976b;})['forEach'](_0x926934=>{this['_reduceSuggestionAttributeRange'](_0x926934,_0x4fa0db['range'],_0x4d7df6),_0x4020f9=!0x0;});}return _0x4020f9;}['_reduceSuggestionAttributeRange'](_0x45070,_0x398190,_0x2c6681){const _0x201e58=_0x45070['getFirstRange']()['getDifference'](_0x398190);0x0!==_0x201e58['length']?0x1!==_0x201e58['length']?this['_breakSuggestionMarker'](_0x45070,_0x398190['start'],_0x398190['end']):this['_setSuggestionRange'](_0x45070,_0x201e58[0x0]):_0x2c6681['removeMarker'](_0x45070['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x48aea9){this['_editor']=_0x48aea9,this['_model']=_0x48aea9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1cfdd4,_0x515f65,_0x474d8c,_0x3d3da4,_0x43fde4,_0x2b53bb){return new u(this['_model'],{'type':_0x1cfdd4,'subType':_0x515f65,'id':_0x474d8c,'author':_0x3d3da4,'creator':_0x3d3da4,'attributes':_0x43fde4,'onAttributesChange':_0x2b53bb,'onAccept':(..._0x2492bb)=>this['getSuggestionCallback'](_0x1cfdd4,_0x515f65,'accept')(..._0x2492bb),'onDiscard':(..._0x41b306)=>this['getSuggestionCallback'](_0x1cfdd4,_0x515f65,'discard')(..._0x41b306)});}['registerCustomCallback'](_0x46cefb,_0x5bb6dd,_0x38f65e,_0x59a7b4){const _0x48743e=_0x46cefb+':'+_0x5bb6dd+':'+_0x38f65e;this['_customCallbacks']['set'](_0x48743e,_0x59a7b4);}['getSuggestionCallback'](_0x38d8a3,_0x404b0,_0x21ae67){const _0x3a830c=_0x38d8a3+':'+_0x404b0+':'+_0x21ae67;return this['_customCallbacks']['get'](_0x3a830c)||this['_defaultCallbacks']['get'](_0x38d8a3+':'+_0x21ae67);}['_registerDefaultCallbacks'](){const _0x38642e=()=>!0x1,_0x17b733=_0x47691e=>{_0x47691e['sort']((_0x23d372,_0x98d5c4)=>_0x23d372['start']['isBefore'](_0x98d5c4['start'])?0x1:-0x1),this['_model']['change'](_0x5b8b95=>{for(const _0x391a1 of _0x47691e){let _0x4137cb;_0x4137cb=_0x391a1['end']['isAtEnd']&&_0x391a1['end']['parent']==_0x391a1['start']['nodeAfter']?_0x5b8b95['createSelection'](_0x391a1['start']['nodeAfter'],'on'):_0x5b8b95['createSelection'](_0x391a1),this['_model']['deleteContent'](_0x4137cb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x542a2f=(_0x26705d,_0x1aa749)=>{_0x1aa749&&this['_model']['change'](_0x1cac48=>{const {commandName:_0x3a2182,commandParams:_0x2e6cac=[]}=_0x1aa749,_0x4e08b2=_0x26705d['map'](_0x3cdf9e=>(Vt(_0x3cdf9e)&&(_0x3cdf9e=this['_model']['createRange'](_0x3cdf9e['end'])),_0x3cdf9e))['filter'](_0x45fdd1=>'$graveyard'!==_0x45fdd1['root']['rootName']);if(_0x4e08b2['length']<0x1)return;const _0x3a9c60=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x579d39=>_0x4daf91['fromRange'](_0x579d39));_0x1cac48['setSelection'](_0x4e08b2);for(const _0x4b672e of this['_editor']['commands']['commands']())_0x4b672e['refresh']();_0x2e6cac['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3a2182,..._0x2e6cac);const _0x57a54d=_0x3a9c60['filter'](_0x4af006=>'$graveyard'!=_0x4af006['root']['rootName']);_0x57a54d['length']>0x0&&_0x1cac48['setSelection'](_0x57a54d);for(const _0x1922d1 of _0x3a9c60)_0x1922d1['detach']();});},_0x171ce3=(_0x36b786,_0x3a6900)=>0x1==_0x36b786['length']&&0x1==_0x3a6900['length']&&_0x36b786[0x0]['end']['isEqual'](_0x3a6900[0x0]['start']),_0x596b3f=(_0x54434e,_0x233a01,_0x2ff0ba,_0x1ae3ba)=>Ht(_0x54434e,_0x233a01,_0x2ff0ba,_0x1ae3ba)?[_0x54434e,_0x233a01]:Ht(_0x233a01,_0x54434e,_0x1ae3ba,_0x2ff0ba)?[_0x233a01,_0x54434e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x38642e),this['_defaultCallbacks']['set']('insertion:discard',_0x17b733),this['_defaultCallbacks']['set']('insertion:join',_0x171ce3),this['_defaultCallbacks']['set']('insertion:chain',_0x596b3f),this['_defaultCallbacks']['set']('deletion:accept',_0x17b733),this['_defaultCallbacks']['set']('deletion:discard',_0x38642e),this['_defaultCallbacks']['set']('deletion:join',_0x171ce3),this['_defaultCallbacks']['set']('deletion:chain',_0x596b3f),this['_defaultCallbacks']['set']('formatInline:accept',_0x542a2f),this['_defaultCallbacks']['set']('formatInline:discard',_0x38642e),this['_defaultCallbacks']['set']('formatInline:join',_0x171ce3),this['_defaultCallbacks']['set']('formatInline:chain',_0x38642e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x542a2f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x38642e),this['_defaultCallbacks']['set']('formatBlock:join',_0x171ce3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x38642e),this['_defaultCallbacks']['set']('attribute:accept',_0x38642e),this['_defaultCallbacks']['set']('attribute:discard',(_0x4115a1,_0x159487)=>{if(!_0x159487)return;const _0x489b64=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2e2d5b=>{if(_0x159487['key']==m)for(const _0x19c05c of _0x4115a1){const _0x45dabe=_0x19c05c['start']['nodeAfter'],_0xd334a4=_0x159487['oldValue'];_0x2e2d5b['rename'](_0x45dabe,_0xd334a4);}else{if(_0x489b64['_isBlockAttribute'](_0x159487['key'])){for(const _0x391cbc of _0x4115a1)void 0x0!==_0x159487['oldValue']?_0x2e2d5b['setAttribute'](_0x159487['key'],_0x159487['oldValue'],_0x391cbc['start']['nodeAfter']):_0x2e2d5b['removeAttribute'](_0x159487['key'],_0x391cbc['start']['nodeAfter']);}else{for(const _0x86d85b of _0x4115a1)_0x159487['oldValue']?_0x2e2d5b['setAttribute'](_0x159487['key'],_0x159487['oldValue'],_0x86d85b):_0x2e2d5b['removeAttribute'](_0x159487['key'],_0x86d85b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x171ce3);}}function Ut(_0x18d651,_0x15f842,_0x340360){for(const _0x2d6af1 of _0x15f842['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2d6af1['root']==_0x2d6af1)return!0x1;if(!_0x340360['containsItem'](_0x2d6af1))return!0x1;if(_0x18d651['isObject'](_0x2d6af1)||_0x18d651['isLimit'](_0x2d6af1))return!0x0;}return!0x1;}function Vt(_0x24be04){return _0x24be04['end']['parent']==_0x24be04['start']['nodeAfter']&&_0x24be04['end']['isAtStart'];}function Pt(_0x3735fd,_0x19af3d,_0xfefc5d,_0x2e3fae){const _0x28ce68=_0x3f8662=>!_0x3f8662['item']['is']('$textProxy')&&!_0x2e3fae['isObject'](_0x3f8662['item']),_0x355457=_0x3735fd['start']['getLastMatchingPosition'](_0x28ce68),_0x3a7106=_0x3735fd['end']['getLastMatchingPosition'](_0x28ce68,{'direction':'backward'});return(!_0x3735fd['start']['isEqual'](_0x355457)||!_0x3735fd['end']['isEqual'](_0x3a7106))&&(_0x355457['isBefore'](_0x3a7106)?_0xfefc5d['updateMarker'](_0x19af3d,{'range':_0xfefc5d['createRange'](_0x355457,_0x3a7106)}):_0xfefc5d['removeMarker'](_0x19af3d),!0x0);}function Gt(_0x5291a2){return _0x1c304(_0x5291a2);}function Ft(_0x3a4f0a){const _0x3c92f1=_0x3a4f0a['start']['nodeAfter'];return _0x3c92f1&&_0x3c92f1['is']('element');}function Lt(_0x12173c,_0x181fce){return null==_0x12173c['end']['nodeBefore']&&_0x12173c['end']['parent']==_0x12173c['start']['nodeAfter']?Jt(_0x12173c['start']['nodeAfter'],_0x181fce):_0x12173c;}function Jt(_0x49f58a,_0x45d1be){const _0x5770f5=_0x45d1be['schema']['isObject'](_0x49f58a)||_0x45d1be['schema']['isSelectable'](_0x49f58a);return _0x45d1be['createRange'](_0x45d1be['createPositionAt'](_0x49f58a,'before'),_0x5770f5?_0x45d1be['createPositionAfter'](_0x49f58a):_0x45d1be['createPositionAt'](_0x49f58a,'end'));}function Ht(_0x4b6686,_0x50e746,_0x4ac765,_0x584ff3){return!!qt(_0x4b6686,_0x50e746)&&_0x4ac765['end']['isEqual'](_0x584ff3['start']);}function qt(_0x59840f,_0x260157){if(!_0x59840f['_isDataLoaded']||!_0x260157['_isDataLoaded'])return!0x1;const _0x3177a5=new Set(Object['keys'](_0x59840f['attributes'])),_0x14ebfe=new Set(Object['keys'](_0x260157['attributes']));if(_0x3177a5['delete']('groupId'),_0x14ebfe['delete']('groupId'),0x0==_0x3177a5['size']&&0x0==_0x14ebfe['size'])return!0x0;if(_0x3177a5['size']!=_0x14ebfe['size'])return!0x1;const _0x461c52={..._0x59840f['attributes']},_0x1fb3ee={..._0x260157['attributes']};return delete _0x461c52['groupId'],delete _0x1fb3ee['groupId'],JSON['stringify'](_0x461c52)==JSON['stringify'](_0x1fb3ee);}function zt(_0x49c92d,_0x20e7f8){const _0x3fd23f=Kt(_0x49c92d['attributes']),_0x5530f0=Kt(_0x20e7f8);if(!_0x49c92d['_isDataLoaded'])return!0x1;for(const _0x573e22 of Object['keys'](_0x5530f0))if(!_0x1a4045(_0x3fd23f[_0x573e22],_0x5530f0[_0x573e22]))return!0x1;return!0x0;}function Kt(_0x2c257a){const _0x2b189a=Object['assign']({},_0x2c257a);return delete _0x2b189a['skipNestingCheck'],delete _0x2b189a['tablePasteChainId'],_0x2b189a;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x235e1f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2b7890,_0x58c1a1,_0x2d3552,_0x51e2c1){super(),this['model']=_0x58c1a1,this['view']=_0x2d3552,this['commentThreadController']=_0x51e2c1,this['_editor']=_0x2b7890,this['_acceptCommand']=_0x2b7890['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2b7890['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x27490b,_0x49e5e9)=>_0x27490b||_0x49e5e9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5b6434=>_0x5b6434&&this['_editor']['model']['canEditAt'](_0x58c1a1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3642f3=>_0x3642f3&&this['_editor']['model']['canEditAt'](_0x58c1a1['getRanges']())),this['_pendingAction']=null,_0x2d3552['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2d3552,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2d3552,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2d3552,'change:isDirty',()=>{_0x2d3552['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 _0x3226ed=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3226ed);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x4bd17a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x17e6da,_0x54ed5f,_0x5c1f74,_0x45f578){super(_0x17e6da),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x7503c5(_0x17e6da,o(_0x17e6da,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x54ed5f['authoredAt']),this['bind']('authoredAt')['to'](_0x54ed5f),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',_0x54ed5f,'authoredAt',this,'descriptionParts',(_0x44de1e,_0x13f257,_0x598bf8)=>{const _0x2c905c=_0x598bf8['map'](_0x552643=>ns(_0x552643['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x44de1e-0x1,_0x54ed5f['author']['name'],_0x13f257?_0x45f578['formatDateTime'](_0x13f257):'',new DOMParser()['parseFromString'](_0x2c905c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x32304b(),this['focusTracker']=new _0x24e33d(),this['keystrokes']=new _0x2c0aef(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4f00e6=>_0x4f00e6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x54ed5f,this['_localUser']=_0x5c1f74,this['_config']=_0x45f578,_0x45f578['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x51e096(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4baf43}=this['_config'];this['commentsListView']=new _0x4baf43(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',_0x34eb02=>_0x34eb02+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x32a422,_0x57477f)=>_0x32a422||!!_0x57477f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2d5245}=this['_config'],_0x3bd95e=new _0x2d5245(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x326534=_0x3bd95e['commentInputView'];return _0x3bd95e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x326534,'value',(_0x2f3e64,_0x48a9ea,_0x57685f)=>!!_0x57685f||_0x2f3e64&&!_0x48a9ea),_0x326534['on']('submit',(_0x3eed84,_0x4e60e5)=>{this['fire']('addComment',_0x4e60e5),_0x326534['editor']['setData']('');}),_0x326534['on']('cancel',()=>this['focus']()),_0x326534['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3bd95e;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x56a84d,_0x1ff8fc,_0x442365,_0xcdf394){super(_0x56a84d,_0x1ff8fc,_0x442365,_0xcdf394),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4af229=>_0x4af229&&_0x4af229[0x0]?_0x4af229[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe294c8,_0x3e4f7f)=>{let _0x18d202='';for(const _0x11b203 of _0xe294c8)_0x18d202+='<p>'+ns(_0x11b203['content'],_0x11b203['color'])+'</p>';return _0x3e4f7f?_0x18d202:ti(_0x18d202,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xcdf394['SuggestionView'](_0x56a84d,_0x1ff8fc,{'formatDateTime':_0xcdf394['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 _0x4b23eb=this['bindTemplate'],_0x35c2ae=[this['suggestionView']];return this['commentsListView']&&_0x35c2ae['push'](this['commentsListView']),this['commentThreadInputView']&&_0x35c2ae['push'](this['commentThreadInputView']),_0x35c2ae['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4b23eb['if']('isActive','ck-suggestion-wrapper--active'),_0x4b23eb['to']('type',_0x10d548=>'ck-suggestion-'+_0x10d548),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':_0x4b23eb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x35c2ae};}['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 ue extends _0x4bd17a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3691d3,_0x4549c5,_0x1f530e){super(_0x3691d3),this['_model']=_0x4549c5,this['_config']=_0x1f530e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4549c5),this['acceptButton']=this['_createButton'](o(_0x3691d3,'Accept\x20suggestion'),_0x2c4691['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3691d3,'Discard\x20suggestion'),_0x2c4691['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x403439(_0x3691d3,_0x4549c5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x32304b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x24e33d(),this['keystrokes']=new _0x2c0aef(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa3160c=>_0xa3160c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x13a071=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x13a071['innerHTML']=this['description'],this['on']('change:description',(_0x210853,_0x4ffb16,_0xdc54a3)=>{_0x13a071['innerHTML']=_0xdc54a3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1804fb=this['bindTemplate'],_0x87bed0=[{'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':_0x1804fb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1804fb['to']('authoredAt',_0x17ca9c=>this['_config']['formatDateTime'](_0x17ca9c))}]}]},{'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']&&_0x87bed0['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':_0x87bed0}]};}['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'](_0x160878,_0x354fe9,_0x33fb31,_0x2a59ce,_0x422757){const _0x141b4c=new _0x3253a5(this['locale']);return _0x141b4c['set']({'label':_0x160878,'icon':_0x354fe9,'tooltip':!0x0,'tooltipPosition':_0x422757}),_0x141b4c['extendTemplate']({'attributes':{'class':_0x33fb31}}),_0x141b4c['on']('execute',()=>{this['fire'](_0x2a59ce,this['_model']['id']);}),_0x141b4c;}['_setupKeyboardNavigation'](){const _0x5e231a=this['element'];this['keystrokes']['listenTo'](_0x5e231a);for(const _0x224e1b of this['focusables'])this['focusTracker']['add'](_0x224e1b['element']),this['keystrokes']['listenTo'](_0x224e1b['element']);this['keystrokes']['set']('enter',(_0x2d8f55,_0x2d87df)=>{_0x5e231a===_0x2d8f55['target']&&(this['focusCycler']['focusFirst'](),_0x2d87df());}),this['keystrokes']['set']('esc',(_0x582c48,_0x1a016a)=>{_0x5e231a!==_0x582c48['target']&&(this['focus'](),_0x1a016a());});}}var Ce='<!--\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 _0x4a8caa{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x117a29,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53c16f){super(_0x53c16f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f9871=this['editor']['config'];_0x1f9871['define']('trackChanges.SuggestionThreadView',de),_0x1f9871['define']('trackChanges.SuggestionView',ue),_0x1f9871['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f9871['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x47a744,_0x490fbe){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1c8a4f,_0x58c94b]of this['_handleControllerBuffer']){const _0x2e31ad=this['_suggestionToController']['has'](_0x1c8a4f);_0x2e31ad||_0x58c94b?_0x2e31ad&&_0x58c94b&&this['_destroyController'](_0x1c8a4f):this['_initializeController'](_0x1c8a4f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x47a744,_0x490fbe);}['init'](){const _0x134e4f=this['editor'],_0x518655=_0x134e4f['plugins']['get']('TrackChangesEditing'),_0x2645d8=_0x134e4f['plugins']['get']('Annotations'),_0x6d048f=_0x134e4f['plugins']['get']('EditorAnnotations'),_0xe2a72f=_0x134e4f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x6d048f['addSourceCollector'](()=>{const _0x3fa866=[];for(const [_0x4679c5,_0x5ec86f]of Array['from'](this['_suggestionToController'])){const _0x37a04e=_0x4679c5['getAllAdjacentSuggestions'](),_0x146a0b=[];for(const _0x8aea90 of _0x37a04e){if(!_0x8aea90['isInContent'])continue;if(_0x8aea90['isMultiRange']){_0x146a0b['push'](..._0x8aea90['getRanges']());continue;}const _0x26e87d=_0x8aea90['getFirstRange']();if(_0x146a0b['length']>0x0){const _0x2166ef=_0x146a0b[0x0]['getJoined'](_0x26e87d);if(_0x2166ef){_0x146a0b[0x0]=_0x2166ef;continue;}}_0x146a0b['push'](_0x26e87d);}_0x3fa866['push']([_0x5ec86f['view'],_0x146a0b]);}return _0x3fa866;}),this['listenTo'](_0x518655,'suggestionLoaded',(_0x5b3264,_0x45d22a)=>{this['listenTo'](_0x45d22a,'change:previous',(_0x5a85da,_0x17554b,_0x15b81a,_0x18013b)=>{_0x45d22a['isInContent']&&(null==_0x15b81a?(this['_updateController'](_0x18013b['head']),this['_handleSuggestionControllerDelayed'](_0x45d22a,!0x1)):(this['_updateController'](_0x15b81a['head']),null==_0x18013b&&this['_handleSuggestionControllerDelayed'](_0x45d22a,!0x0)));}),null!==_0x45d22a['previous']?this['_updateController'](_0x45d22a['head']):this['_handleSuggestionControllerDelayed'](_0x45d22a,!0x1);}),this['listenTo'](_0x518655,'suggestionUnloaded',(_0x522c89,_0x480158,_0xc64270)=>{this['stopListening'](_0x480158,'change:previous'),this['_handleControllerBuffer']['delete'](_0x480158),this['_suggestionToController']['has'](_0x480158)&&this['_destroyController'](_0x480158),_0xc64270&&this['_updateController'](_0xc64270['head']);}),this['listenTo'](_0x518655,'suggestionChanged',(_0x5503bd,_0x40e1ce)=>{this['_updateController'](_0x40e1ce);}),this['listenTo'](_0x2645d8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xe2a72f,'addComment',(_0x10ed6a,{threadId:_0x3118d5,isFromAdapter:_0x57de31})=>{if(_0x57de31||!_0x518655['hasSuggestion'](_0x3118d5))return;const _0x45e497=_0x518655['getSuggestion'](_0x3118d5);this['_suggestionToController']['get'](_0x45e497)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52644d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b9320;for(const _0x41189c in _0x52644d){const _0x10ada8=_0x41189c,_0x2f2194=_0x52644d[_0x10ada8];if('trackChangesLicenseKeyValid'==_0x2f2194||'trackChangesLicenseKeyInvalid'==_0x2f2194||'trackChangesLicenseKeyExpired'==_0x2f2194||'trackChangesLicenseKeyDomainLimit'==_0x2f2194||'trackChangesLicenseKeyNotAllowed'==_0x2f2194||'trackChangesLicenseKeyEvaluationLimit'==_0x2f2194||'trackChangesLicenseKeyTrialLimit'==_0x2f2194||'trackChangesLicenseKeyDevelopmentLimit'==_0x2f2194||'trackChangesLicenseKeyUsageLimit'==_0x2f2194){delete _0x52644d[_0x10ada8],_0x1b9320=_0x2f2194,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1b9320&&_0x52644d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1b9320&&_0x52644d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1b9320&&_0x52644d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x510bb7=this['editor']['plugins']['get']('Annotations'),_0x229926=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18e17e=Array['from'](_0x510bb7['activeAnnotations'],_0x4396dc=>_0x4396dc['innerView'])['filter'](_0x33832a=>this['_viewToController']['has'](_0x33832a)),_0x4fac4f=[];for(const _0x3030eb of _0x18e17e){const _0x1768d7=this['_viewToController']['get'](_0x3030eb)['model']['getAllAdjacentSuggestions']();_0x4fac4f['push'](..._0x1768d7['reduce']((_0x221e98,_0x1b1e5)=>[..._0x221e98,..._0x1b1e5['getMarkerNames']()],[]));}_0x229926['activeMarkers']=_0x4fac4f;}['_addUIComponentsToFactory'](){const _0x198f2d=this['editor'],_0x2e5124=_0x198f2d['locale'],_0x1f1668=o(_0x2e5124,'Track\x20changes'),_0xf8fd96=new _0x2afe4c([{'type':'switchbutton','model':new _0x136c8f({'withText':!0x0,'isToggleable':!0x0,'label':_0x1f1668,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x136c8f({'withText':!0x0,'label':o(_0x2e5124,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x136c8f({'withText':!0x0,'label':o(_0x2e5124,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x136c8f({'withText':!0x0,'label':o(_0x2e5124,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x136c8f({'withText':!0x0,'label':o(_0x2e5124,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x449ac5 of _0xf8fd96)if(pe(_0x449ac5)){const _0x6411a3=_0x198f2d['commands']['get'](_0x449ac5['model']['commandName']);_0x449ac5['model']['bind']('isOn','isEnabled')['to'](_0x6411a3,'value','isEnabled');}_0x198f2d['ui']['componentFactory']['add']('trackChanges',_0x49cfa3=>this['_createToolbarButton'](_0x49cfa3,_0xf8fd96,_0x1f1668)),_0x198f2d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x54174a=>this['_createMenuBarMenu'](_0x54174a,_0xf8fd96,_0x1f1668));}['_createToolbarButton'](_0x19583b,_0x23be80,_0x4915f8){const _0x2d7623=_0x168dba(_0x19583b,_0x336f15),_0x4ce603=this['editor']['commands']['get']('trackChanges');_0x2d7623['buttonView']['set']({'tooltip':_0x4915f8,'label':_0x4915f8,'icon':Ce}),_0x2d7623['buttonView']['bind']('isOn')['to'](_0x4ce603,'value'),_0x2d7623['buttonView']['on']('execute',()=>{_0x4ce603['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x2d7623,_0x23be80,{'role':'menu'});const _0x121958=[];for(const _0x2d4d89 of _0x23be80)pe(_0x2d4d89)&&_0x121958['push'](this['editor']['commands']['get'](_0x2d4d89['model']['commandName']));const _0x18e220=_0x2d7623['buttonView'];return _0x18e220['actionView']['unbind']('isEnabled'),_0x18e220['arrowView']['unbind']('isEnabled'),_0x18e220['actionView']['bind']('isEnabled')['to'](_0x4ce603,'isEnabled'),_0x18e220['arrowView']['bind']('isEnabled')['toMany'](_0x121958,'isEnabled',(..._0xa0f141)=>_0xa0f141['some'](_0x3c2908=>_0x3c2908)),_0x2d7623['on']('execute',_0x32fda8=>{this['editor']['execute'](_0x32fda8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d7623;}['_createMenuBarMenu'](_0x25c610,_0x53a978,_0x28260c){const _0x28bbb3=new _0x4b9f92(_0x25c610),_0x912b4e=this['editor']['commands']['get']('trackChanges');_0x28bbb3['buttonView']['set']({'label':_0x28260c,'icon':Ce});const _0xeba63b=new _0x1b30e5(_0x25c610);for(const _0x3eadeb of _0x53a978){if('separator'==_0x3eadeb['type']){_0xeba63b['items']['add'](new _0xf49527(_0x25c610));continue;}const _0x3811b9=new _0x1e06fb(_0x25c610,_0x28bbb3),_0x143cca=new _0x209c2c(_0x25c610),_0x45fef3=_0x3eadeb['model'];_0x143cca['bind'](...Object['keys'](_0x45fef3))['to'](_0x45fef3),_0x143cca['delegate']('execute')['to'](_0x28bbb3),_0x143cca['on']('execute',()=>{this['editor']['execute'](_0x45fef3['commandName']),this['editor']['editing']['view']['focus']();}),_0x3811b9['children']['add'](_0x143cca),_0xeba63b['items']['add'](_0x3811b9);}return _0x28bbb3['bind']('isEnabled')['to'](_0x912b4e,'isEnabled'),_0x28bbb3['panelView']['children']['add'](_0xeba63b),_0x28bbb3;}['_initializeController'](_0x5a6ab3){const _0x235d46=this['editor'],_0x2fd20f=_0x235d46['config'],_0x4b2d00=_0x235d46['plugins']['get']('Annotations'),_0x387e40=_0x235d46['plugins']['get']('CommentsRepository'),_0x5989ff=_0x235d46['plugins']['get']('EditorAnnotations'),_0x2dead6=_0x235d46['plugins']['get'](_0x117a29)['me'],_0x583e20=_0x2fd20f['get']('trackChanges')['SuggestionThreadView'],_0x3ec6ab=_0x2fd20f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1db002,CommentThreadInputView:_0x14ff2e}=_0x235d46['plugins']['get']('CommentsUI');let _0x4ae8cc,_0x5c7e2d,_0x14bf05;this['_annotationViews']['has'](_0x5a6ab3['id'])?(_0x5c7e2d=this['_annotationViews']['get'](_0x5a6ab3['id']),_0x4ae8cc=_0x5c7e2d['mainView']):(_0x4ae8cc=new _0x583e20(_0x235d46['locale'],_0x5a6ab3,_0x2dead6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2fd20f['get']('comments.editorConfig'),'licenseKey':_0x2fd20f['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2fd20f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2fd20f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2fd20f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4be061(_0x2fd20f['get']('locale')),'CommentView':_0x2fd20f['get']('comments')['CommentView'],'CommentsListView':_0x1db002,'CommentThreadInputView':_0x14ff2e,'SuggestionView':_0x3ec6ab}),_0x4ae8cc['suggestionView']['acceptButton']['on']('execute',()=>{_0x235d46['editing']['view']['focus']();}),_0x4ae8cc['suggestionView']['discardButton']['on']('execute',()=>{_0x235d46['editing']['view']['focus']();}),_0x5c7e2d=_0x4b2d00['createAnnotationView'](this['editor']['locale'],_0x4ae8cc),_0x5c7e2d['bind']('isDirty')['to'](_0x4ae8cc,'isDirty'),_0x5c7e2d['bind']('length')['to'](_0x4ae8cc),_0x5c7e2d['bind']('type')['to'](_0x4ae8cc,'type',_0xd1a0bf=>'suggestion-'+_0xd1a0bf),_0x4ae8cc['on']('escape',()=>{_0x14bf05['fire']('escape');}),this['_annotationViews']['set'](_0x5a6ab3['id'],_0x5c7e2d));const _0x5b3363=_0x387e40['createCommentThreadController'](_0x5a6ab3['commentThread'],_0x4ae8cc),_0x277c44=new ge(_0x235d46,_0x5a6ab3,_0x4ae8cc,_0x5b3363),_0x535d0d=_0x5a6ab3['getAllAdjacentSuggestions']()['filter'](_0xd51501=>_0xd51501['isInContent']);_0x4ae8cc['descriptionParts']=_0x235d46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x535d0d),this['_suggestionToController']['set'](_0x5a6ab3,_0x277c44),this['_viewToController']['set'](_0x4ae8cc,_0x277c44),_0x14bf05=_0x4b2d00['createAnnotation']({'view':_0x5c7e2d,'target':()=>{const _0x349b1e=[],_0x249505=_0x5a6ab3['getAllAdjacentSuggestions']()['filter'](_0x5cbce1=>_0x5cbce1['isInContent']);for(const _0xa054f6 of _0x249505)_0x349b1e['push'](..._0xa054f6['getMarkers']());return _0x4031ca(_0x235d46['editing'],_0x349b1e);},'type':()=>'suggestion-'+_0x277c44['view']['type']}),_0x387e40['_bindAnnotationToEditors'](_0x4ae8cc,_0x14bf05),_0x4b2d00['add'](_0x14bf05),_0x5989ff['registerAnnotation'](_0x14bf05);}['_destroyController'](_0x463a60){const _0x477181=this['editor']['plugins']['get']('CommentsRepository'),_0x482edd=this['editor']['plugins']['get']('Annotations'),_0xc3d0ce=this['_suggestionToController']['get'](_0x463a60),_0x2a65ea=_0xc3d0ce['view'],_0x5c472e=_0x482edd['getByInnerView'](_0x2a65ea);_0x477181['_unbindEditors'](_0x2a65ea),_0x5c472e&&_0x482edd['remove'](_0x5c472e),this['_suggestionToController']['delete'](_0x463a60),this['_viewToController']['delete'](_0x2a65ea),_0xc3d0ce['destroy']();}['_updateController'](_0x5ce84f){if(!_0x5ce84f['isInContent']||!this['_suggestionToController']['has'](_0x5ce84f))return;const _0xeca445=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33cf52=this['_suggestionToController']['get'](_0x5ce84f),_0x46cc7c=_0x5ce84f['getAllAdjacentSuggestions']();_0x33cf52['view']['descriptionParts']=_0xeca445['descriptionFactory']['getDescriptions'](_0x46cc7c);}['destroy'](){for(const _0x233690 of this['_suggestionToController']['keys']())this['_destroyController'](_0x233690);for(const _0x1de0b7 of this['_annotationViews']['values']())_0x1de0b7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x5f3da7){return'model'in _0x5f3da7;}class k extends _0x4a8caa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1320d5){this['editor']['plugins']['get'](p)['adapter']=_0x1320d5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5ec838){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5ec838);}['getSuggestions']({skipNotAttached:_0x30a5af=!0x1,toJSON:_0x2257b6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x30a5af,'toJSON':_0x2257b6});}['getSuggestion'](_0x240b8f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x240b8f);}}const w=['Pagination'];class T extends _0x4a8caa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x429926=this['editor'];if(_0x429926['config']['define']('trackChangesData.editorCreator',_0x5638cc=>{const _0x4be9d4=_0x429926['model']['document']['getRootNames']()['reduce']((_0x241416,_0x283907)=>(_0x241416[_0x283907]='',_0x241416),{});return _0x429926['constructor']['create'](_0x4be9d4,_0x5638cc);}),'function'!=typeof _0x429926['config']['get']('trackChangesData')['editorCreator'])throw new _0x562698('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x81241){return N(this['editor'],!0x0,_0x81241);}['getDataWithDiscardedSuggestions'](_0x1064e7){return N(this['editor'],!0x1,_0x1064e7);}}class D extends _0x4a8caa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfe45bd){function _0x58965e(_0x1bfd50){return _0x1bfd50['map'](_0x174749=>String['fromCharCode'](_0x174749))['join']('');}super(_0xfe45bd),this['result']='end',_0xfe45bd[_0x58965e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58965e([0x76,0x69,0x65,0x77])][_0x58965e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58965e([0x61,0x75,0x74,0x6f]),_0xfe45bd[_0x58965e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58965e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58965e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58965e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58965e([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x2bf95b){return void 0x0!==_0x2bf95b['getRootsAttributes'];}async function N(_0x586ac0,_0x5ce198,_0x5f489e){const _0x285a38=_0x151acd(_0x586ac0,w);_0x285a38['plugins']['push'](p,D),_0x285a38['rootsAttributes']=v(_0x586ac0)?_0x586ac0['getRootsAttributes']():void 0x0;const _0x115a2b=document['createDocumentFragment'](),_0x5554ce=_0x586ac0['config']['get']('trackChangesData')['editorCreator'],_0x5962ac=await _0x5554ce(_0x285a38,()=>function(_0x55f660){const _0x15eceb=document['createElement']('div');return _0x55f660['appendChild'](_0x15eceb),_0x15eceb;}(_0x115a2b));!function(_0x2b8f82,_0x32e069){const _0x567416=_0x2b8f82['model']['document']['getRootNames']()['reduce']((_0x70417e,_0x1f1bb8)=>(_0x70417e[_0x1f1bb8]=_0x2b8f82['data']['get']({'rootName':_0x1f1bb8}),_0x70417e),{}),_0x18a45e=_0x2b8f82['plugins']['get']('Users')['users']['map'](_0x4d7d75=>({'id':_0x4d7d75['id'],'name':_0x4d7d75['name']})),_0x4002ae=_0x2b8f82['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3feb0f=_0x2b8f82['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c8d7a=_0x32e069['plugins']['get']('Users'),_0xcd8542=_0x32e069['plugins']['get']('TrackChangesEditing'),_0x35f8f1=_0x32e069['plugins']['get']('CommentsRepository');for(const _0x50401e of _0x35f8f1['getCommentThreads']())_0x50401e['remove']();for(const _0x5d0d1b of _0x18a45e)_0x2c8d7a['getUser'](_0x5d0d1b['id'])||_0x2c8d7a['addUser'](_0x5d0d1b);_0x2c8d7a['me']||_0x2c8d7a['useAnonymousUser']();for(const _0x45f5ac of _0x3feb0f)_0x35f8f1['addCommentThread'](_0x45f5ac);for(const _0x3648fd of _0x4002ae)_0xcd8542['addSuggestionData'](_0x3648fd);_0x32e069['data']['set'](_0x567416);}(_0x586ac0,_0x5962ac),_0x5962ac['execute'](_0x5ce198?'acceptAllSuggestions':'discardAllSuggestions');const _0x4a11c2=v(_0x5962ac)?_0x5962ac['getFullData'](_0x5f489e):_0x5962ac['data']['get'](_0x5f489e);return await _0x5962ac['destroy'](),_0x4a11c2;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0x38bc3e,PendingActions as _0x7beb78,icons as _0x29ed75}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3fd1ad,ObservableMixin as _0x1512c7,uid as _0x62ed8e,insertToPriorityArray as _0xbce2ac,priorities as _0x2abc47,logWarning as _0x578e39,getEnvKeystrokeText as _0x2332d7,FocusTracker as _0x196954,KeystrokeHandler as _0x4eef77,Collection as _0x57703b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x27c281,View as _0xf4a6e,ViewCollection as _0x578ef1,FocusCycler as ts,ViewModel as _0x34f432,createDropdown as _0xb5ae69,SplitButtonView as _0x28e447,addListToDropdown as te,MenuBarMenuView as _0x328fab,MenuBarMenuListView as _0x11e872,ListSeparatorView as _0x554bf2,MenuBarMenuListItemView as _0x10b09e,MenuBarMenuListItemButtonView as _0x124573}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x59245a,hashObject as _0x12408f,surroundingMarkersDetector as _0x295f33,FOCUS_ANNOTATION_KEYSTROKE as _0x52d2a6,AriaDescriptionView as _0x2ccd81,setupThreadKeyboardNavigation as _0x15095d,trimHtml as ti,UserView as _0x52c594,LateFocusButtonView as _0x46d834,getDateTimeFormatter as _0x2d1d61,getAllMarkersDomElementsSorted as _0x5c85ce,sanitizeEditorConfig as _0x1791c5}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1467f5,LiveRange as _0x3f82e4,LivePosition as _0x358e3d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4c735a,toWidget as _0x3cff86}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1416aa,set as _0x742ec7,isEqual as _0x28f5c1,unset as _0x5ab3d9,omit as xt}from'lodash-es';import{Delete as _0x16e0a5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x32691c,ShiftEnter as _0x2216f1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x3add3c,_0x340e07){super(_0x3add3c),this['_enabledCommands']=_0x340e07,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 _0x45d8c3 of this['editor']['commands']['commands']())_0x45d8c3['affectsData']&&!this['_enabledCommands']['has'](_0x45d8c3)&&_0x45d8c3['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x33de1f of this['editor']['commands']['commands']())_0x33de1f['affectsData']&&!this['_enabledCommands']['has'](_0x33de1f)&&_0x33de1f['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x5180e8,_0x51fe5e){super(_0x5180e8),this['_suggestions']=_0x51fe5e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4646fb){const _0x5d1c85=this['_suggestions']['get'](_0x4646fb);if(!_0x5d1c85)throw new _0x3fd1ad('track-changes-accept-suggestion-not-found',this);const _0x76cfee=_0x5d1c85['getRanges']();this['editor']['model']['canEditAt'](_0x76cfee)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5d1c85);}}class R extends Qt{['_suggestions'];constructor(_0x4d2bda,_0x4d2f6a){super(_0x4d2bda),this['_suggestions']=_0x4d2f6a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e6cf9){const _0x166ea1=this['_suggestions']['get'](_0x4e6cf9);if(!_0x166ea1)throw new _0x3fd1ad('track-changes-discard-suggestion-not-found',this);const _0x4c3ede=_0x166ea1['getRanges']();this['editor']['model']['canEditAt'](_0x4c3ede)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x166ea1);}}function ns(_0x26b3a7,_0x2f4a68){let _0x107ff0='';return _0x107ff0+=_0x26b3a7['split']('*')['map']((_0x4a585c,_0x55f129)=>_0x55f129%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4a585c)+'</span>':nn(_0x4a585c))['join'](''),_0x2f4a68&&(_0x107ff0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2f4a68['value']+'\x22\x20title=\x22'+_0x2f4a68['title']+'\x22></span>'),_0x107ff0;}function nn(_0xcb098d){const _0x12a217=document['createElement']('span');return _0x12a217['innerText']=_0xcb098d,_0x12a217['innerHTML'];}function Wt(_0x2f9b55){return _0x2f9b55['sort']((_0xbfccbd,_0x263be3)=>'deletion'==_0xbfccbd['type']&&'deletion'!=_0x263be3['type']?-0x1:'deletion'!=_0xbfccbd['type']&&'deletion'==_0x263be3['type']?0x1:0x0);}function to(_0x2f6c1f,_0x15e83b){let _0x14e5d6,_0x4f3513=0x0;const _0x4e82d2=[],_0x214574=_0x15e83b['schema'];for(;_0x4f3513<_0x2f6c1f['length'];){const _0x5e017e=_0x2f6c1f[_0x4f3513],_0x44a688=_0x2f6c1f[_0x4f3513+0x1];_0x14e5d6||(_0x14e5d6=_0x15e83b['createPositionBefore'](_0x5e017e)),on(_0x15e83b,_0x5e017e,_0x44a688)||(_0x4e82d2['push'](_0x15e83b['createRange'](_0x14e5d6,_0x214574['isObject'](_0x5e017e)?_0x15e83b['createPositionAfter'](_0x5e017e):_0x15e83b['createPositionAt'](_0x5e017e,'end'))),_0x14e5d6=null),_0x4f3513++;}return _0x4e82d2;}function on(_0x251f52,_0x4816ae,_0x41b14f){if(!_0x41b14f)return!0x1;const _0x19c926=_0x251f52['createPositionAfter'](_0x4816ae),_0x5390e1=_0x251f52['createPositionBefore'](_0x41b14f);return _0x19c926['isTouching'](_0x5390e1);}function Xt(_0x2cea11,_0x8011f3,_0x43af6c){for(;_0x43af6c['length'];){const _0x3e353a=_0x43af6c['splice'](0x0,0x64);_0x2cea11['change'](()=>{for(const _0xcface2 of _0x3e353a)_0xcface2['isInContent']&&_0x8011f3['execute'](_0xcface2['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x36614c,_0x3babca,_0x3f0605){super(_0x36614c),this['_command']=_0x3babca,this['_suggestions']=_0x3f0605,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x370c6e=Array['from'](this['_suggestions']['values']())['some'](_0x1137db=>_0x1137db['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x370c6e;}['execute'](){const _0x51d98b=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x29bf5f of _0x51d98b){const _0x24b207=_0x29bf5f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x24b207))return;}Xt(this['editor']['model'],this['_command'],_0x51d98b);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x236777,_0x2274fa,_0xf0c702){super(_0x236777),this['_command']=_0x2274fa,this['_suggestions']=_0xf0c702,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x45e374=this['editor']['model']['document']['selection'],_0x166170=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x45f417,_0x37c050){const _0x4e08b9=Array['from'](_0x45f417['getRanges']()),_0x225799=new Set();for(const _0x537b59 of _0x37c050)if(_0x537b59['isInContent']){for(const _0x33a2e4 of _0x4e08b9)for(const _0x1fa77c of _0x537b59['getRanges']())(_0x33a2e4['isIntersecting'](_0x1fa77c)||_0x45f417['isCollapsed']&&!_0x537b59['isMultiRange']&&_0x537b59['next']&&_0x1fa77c['end']['isTouching'](_0x33a2e4['start']))&&_0x225799['add'](_0x537b59);}return _0x225799;}(_0x45e374,_0x166170),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1ac76c=Wt(Array['from'](this['_selectedSuggestions']));for(const _0xf5c123 of _0x1ac76c){const _0x5d58a5=_0xf5c123['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5d58a5))return;}Xt(this['editor']['model'],this['_command'],_0x1ac76c);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1512c7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x167f96,_0x280eef){super(),this['id']=_0x280eef['id'],this['type']=_0x280eef['type'],this['subType']=_0x280eef['subType']||null,this['author']=_0x280eef['author'],this['creator']=_0x280eef['creator']||_0x280eef['author'],this['isExternal']=Boolean(_0x280eef['attributes']&&_0x280eef['attributes']['@external']),this['data']=null,this['_model']=_0x167f96,this['_onAccept']=_0x280eef['onAccept'],this['_onDiscard']=_0x280eef['onDiscard'],this['_onAttributesChange']=_0x280eef['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x280eef['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 _0x1095fa=this;for(;_0x1095fa['previous'];)_0x1095fa=_0x1095fa['previous'];return _0x1095fa;}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'](_0x65af24){this['_markerNames']['add'](_0x65af24);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x115b8d=>this['_model']['markers']['get'](_0x115b8d))['filter'](_0x213d45=>_0x213d45);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b06f2=>{for(const _0x3f6baa of this['getMarkers']())_0x4b06f2['removeMarker'](_0x3f6baa);}),this['_markerNames']['clear']();}['removeMarker'](_0x8f9ec9){this['_model']['change'](_0x419e94=>{_0x419e94['removeMarker'](_0x8f9ec9);}),this['_markerNames']['delete'](_0x8f9ec9);}['addRange'](_0x4c1da4){const _0x2111e0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2111e0),this['_model']['change'](_0x120b37=>{_0x120b37['addMarker'](_0x2111e0,{'range':_0x4c1da4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x203731){for(const _0x263300 of this['getRanges']())if(_0x263300['isIntersecting'](_0x203731))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x16e312=>_0x16e312['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x192932,_0x19f506)=>[..._0x192932,..._0x19f506['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ab0a8=this['getRanges']();if(0x1!=_0x1ab0a8['length'])return null;const _0x52b86c=_0x1ab0a8[0x0],_0x51f5a5=_0x52b86c['start']['nodeAfter'],_0x3a6bf8=_0x52b86c['end']['nodeBefore'];return _0x51f5a5 instanceof _0x1467f5?_0x51f5a5!=_0x3a6bf8?null:_0x51f5a5: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 _0x842425=[];let _0x1a186a=this['head'];for(;_0x1a186a;)_0x842425['push'](_0x1a186a),_0x1a186a=_0x1a186a['next'];return _0x842425;}['setAttribute'](_0x4dcf53,_0x411640){const _0x2bbf40=_0x1416aa(this['attributes']);_0x742ec7(_0x2bbf40,_0x4dcf53,_0x411640),_0x28f5c1(_0x2bbf40,this['attributes'])||(this['attributes']=_0x2bbf40,this['_onAttributesChange'](_0x2bbf40));}['removeAttribute'](_0x2f7f10){const _0x5d07e0=_0x1416aa(this['attributes']);_0x5ab3d9(_0x5d07e0,_0x2f7f10),_0x28f5c1(_0x5d07e0,this['attributes'])||(this['attributes']=_0x5d07e0,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 _0x62ed8e()['substr'](0x1,0x5);}}function o(_0x187eed,_0x4dc072,_0x5193fc){const _0x493745=_0x187eed['t'],t=_0x187eed['t'];switch(_0x4dc072){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',_0x5193fc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5193fc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5193fc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5193fc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5193fc);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',_0x5193fc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5193fc);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',_0x5193fc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5193fc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5193fc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5193fc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5193fc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5193fc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5193fc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5193fc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5193fc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5193fc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5193fc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5193fc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5193fc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5193fc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5193fc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5193fc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5193fc);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'},_0x5193fc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5193fc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5193fc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5193fc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5193fc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5193fc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5193fc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5193fc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5193fc);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'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5193fc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5193fc);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 _0x493745({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5193fc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x493745({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5193fc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5193fc);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'},_0x5193fc);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'},_0x5193fc);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'},_0x5193fc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4dc072;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1a6170,_0x1de542){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1a6170,this['_locale']=_0x1de542;}['getDescriptions'](_0x2957f1){const _0x55f3a7=[],_0x542083=new Set(),_0x2d0c52=new Set();for(let _0xef7249=0x0;_0xef7249<_0x2957f1['length'];_0xef7249++){const _0x3f48bf=_0x2957f1[_0xef7249];if(!_0x3f48bf['isInContent'])continue;const _0x1173f6=this['_handleCustomCallbackDescription'](_0x3f48bf);if(_0x1173f6){if(null!=_0x3f48bf['subType']){if(_0x542083['has'](_0x3f48bf['subType']))continue;_0x542083['add'](_0x3f48bf['subType']);}_0x55f3a7['push'](_0x1173f6);}else{if('attribute'!=_0x3f48bf['type'])'insertion'!=_0x3f48bf['type']&&'deletion'!=_0x3f48bf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x55f3a7,_0x3f48bf,_0x2957f1[_0xef7249+0x1]);else{const _0x418bd9=_0x3f48bf['data']['key'];if(_0x2d0c52['has'](_0x418bd9))continue;_0x2d0c52['add'](_0x3f48bf['data']['key']),_0x418bd9==m?this['_handleRenameSuggestionDescription'](_0x55f3a7,_0x3f48bf):this['_handleAttributeSuggestionDescription'](_0x55f3a7,_0x3f48bf);}}}return this['_resolveDescriptionItems'](_0x55f3a7);}['registerDescriptionCallback'](_0x30a756){this['_customCallbacks']['push'](_0x30a756);}['registerElementLabel'](_0x366a39,_0x4ba1f6,_0x35ebfc=_0x2abc47['normal']){'function'==typeof _0x366a39?_0xbce2ac(this['_itemLabelsCallbacks'],{'matchingCallback':_0x366a39,'label':_0x4ba1f6,'priority':_0x35ebfc}):this['_itemLabels']['set'](_0x366a39,_0x4ba1f6);}['registerAttributeLabel'](_0x3fbca9,_0x580e7e){this['_attributeLabels']['set'](_0x3fbca9,_0x580e7e);}['getItemLabel'](_0x37b3ca,_0x12671b=0x1){let _0x453470;for(const _0x1bb106 of this['_itemLabelsCallbacks'])if(_0x1bb106['matchingCallback'](_0x37b3ca)){_0x453470=_0x1bb106['label'];break;}return _0x453470||(_0x453470=this['_itemLabels']['get'](_0x37b3ca['name'])),_0x453470?_0x453470(_0x12671b):0x1!==_0x12671b?_0x12671b+'\x20'+_0x37b3ca['name']+'s':''+_0x37b3ca['name'];}['_addDescriptionItems'](_0x40ec2b,_0x5dd86a){const _0x2edd2a=_0x5dd86a['getFirstRange']()['getWalker'](),_0x3e3999='insertion'==_0x5dd86a['type']?'add':'remove';for(const _0x29f4f8 of _0x2edd2a){const _0x51891c=_0x29f4f8['item'],_0x5ae154=_0x40ec2b[_0x40ec2b['length']-0x1];if(_0x51891c['is']('$textProxy'))_0x5ae154&&_0x5ae154['type']['indexOf']('Container')>-0x1&&_0x40ec2b['pop'](),_0x5ae154&&'text'==_0x5ae154['type']?_0x5ae154[_0x3e3999]+=_0x51891c['data']:_0x40ec2b['push']({'type':'text','add':'add'==_0x3e3999?_0x51891c['data']:'','remove':'remove'==_0x3e3999?_0x51891c['data']:''});else{if(this['_schema']['isObject'](_0x51891c)){const _0x2b8c87=_0x51891c;if(_0x5ae154&&_0x5ae154['type']['indexOf']('Container')>-0x1&&_0x40ec2b['pop'](),'elementEnd'==_0x29f4f8['type'])continue;_0x5ae154&&_0x5ae154['type']==_0x3e3999+'Object'&&_0x5ae154['element']['name']==_0x2b8c87['name']?_0x5ae154['quantity']++:_0x40ec2b['push']({'type':_0x3e3999+'Object','element':_0x2b8c87,'quantity':0x1}),_0x2edd2a['skip'](_0x589d45=>!('elementEnd'==_0x589d45['type']&&_0x589d45['item']==_0x51891c));}else{if(this['_schema']['checkChild'](_0x51891c,'$text')||_0x51891c['is']('element','softBreak')){const _0x1793c1=_0x51891c;if('add'==_0x3e3999&&'elementStart'==_0x29f4f8['type']||'remove'==_0x3e3999&&'elementEnd'==_0x29f4f8['type'])continue;if(_0x5ae154&&-0x1==_0x5ae154['type']['indexOf']('Container')){'text'==_0x5ae154['type']&&(_0x5ae154[_0x3e3999]+='\x0a');continue;}let _0x245013;if(_0x245013='add'==_0x3e3999?_0x1793c1['nextSibling']&&!this['_schema']['isObject'](_0x1793c1['nextSibling'])?_0x1793c1['nextSibling']:null:_0x1793c1['previousSibling']&&!this['_schema']['isObject'](_0x1793c1['previousSibling'])?_0x1793c1['previousSibling']:null,_0x1793c1['isEmpty']||_0x245013&&_0x245013['isEmpty']){const _0x288f3f=_0x245013&&_0x245013['isEmpty']?_0x245013:_0x1793c1;_0x5ae154&&_0x5ae154['type']==_0x3e3999+'EmptyContainer'&&_0x5ae154['element']['name']==_0x288f3f['name']?_0x5ae154['quantity']++:_0x40ec2b['push']({'type':_0x3e3999+'EmptyContainer','element':_0x288f3f,'quantity':0x1});}else _0x40ec2b['push']({'type':_0x3e3999+'Container','element':_0x1793c1});}}}}}['_resolveDescriptionItems'](_0x2028b9){const _0x55d78f=this['_locale'],_0xe1519d=[],_0x46451f=[],_0x1e8790=[];for(const _0x37b67b of _0x2028b9)switch(_0x37b67b['type']){case'text':if(_0x37b67b['add']=_0x37b67b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x37b67b['remove']=_0x37b67b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x37b67b['add']&&''!=_0x37b67b['remove']){_0xe1519d['push']({'type':'replace','content':o(_0x55d78f,'REPLACE_TEXT',['\x22'+_0x37b67b['remove']+'\x22','\x22'+_0x37b67b['add']+'\x22'])});continue;}if(null!=_0x37b67b['add']['match'](/^ +$/)){_0xe1519d['push']({'type':'insertion','content':o(_0x55d78f,'*Insert:*\x20%0',o(_0x55d78f,'ELEMENT_SPACE',_0x37b67b['add']['length']))});continue;}if(null!=_0x37b67b['remove']['match'](/^ +$/)){_0xe1519d['push']({'type':'deletion','content':o(_0x55d78f,'*Remove:*\x20%0',o(_0x55d78f,'ELEMENT_SPACE',_0x37b67b['remove']['length']))});continue;}if(''!=_0x37b67b['add']){_0xe1519d['push']({'type':'insertion','content':o(_0x55d78f,'*Insert:*\x20%0','\x22'+_0x37b67b['add']+'\x22')});continue;}_0xe1519d['push']({'type':'deletion','content':o(_0x55d78f,'*Remove:*\x20%0','\x22'+_0x37b67b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe1519d['push']({'type':'insertion','content':o(_0x55d78f,'*Insert:*\x20%0',this['getItemLabel'](_0x37b67b['element'],_0x37b67b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe1519d['push']({'type':'deletion','content':o(_0x55d78f,'*Remove:*\x20%0',this['getItemLabel'](_0x37b67b['element'],_0x37b67b['quantity']))});continue;case'addContainer':_0xe1519d['push']({'type':'insertion','content':o(_0x55d78f,'*Split:*\x20%0',this['getItemLabel'](_0x37b67b['element'],_0x37b67b['quantity']))});continue;case'removeContainer':_0xe1519d['push']({'type':'deletion','content':o(_0x55d78f,'*Merge:*\x20%0',this['getItemLabel'](_0x37b67b['element'],_0x37b67b['quantity']))});continue;case'addFormat':_0x46451f['push'](_0x37b67b['key']);continue;case'removeFormat':_0x1e8790['push'](_0x37b67b['key']);continue;default:_0xe1519d['push'](_0x37b67b);}if(_0x46451f['length']){const _0x125237=_0x46451f['map'](_0x3fb9b2=>this['_attributeLabels']['has'](_0x3fb9b2)?this['_attributeLabels']['get'](_0x3fb9b2):_0x3fb9b2)['join'](',\x20');_0xe1519d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x125237)});}if(_0x1e8790['length']){const _0x4e259a=_0x1e8790['map'](_0x435c90=>this['_attributeLabels']['has'](_0x435c90)?this['_attributeLabels']['get'](_0x435c90):_0x435c90)['join'](',\x20');_0xe1519d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e259a)});}return _0xe1519d;}['_handleCustomCallbackDescription'](_0x16e467){for(const _0x2cf5a5 of this['_customCallbacks']){const _0x11d610=_0x2cf5a5(_0x16e467);if(_0x11d610&&'type'in _0x11d610)return _0x11d610;}}['_handleAttributeSuggestionDescription'](_0x23cd6a,_0x435619){const _0x2d039e=_0x435619['data'],_0x455223=void 0x0===_0x2d039e['newValue']?'removeFormat':'addFormat';_0x23cd6a['push']({'type':_0x455223,'key':_0x2d039e['key']});}['_handleRenameSuggestionDescription'](_0x470d38,_0x5d79af){_0x470d38['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5d79af['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x473109,_0xf88917,_0x464de3){if(this['_addDescriptionItems'](_0x473109,_0xf88917),_0x464de3&&_0x464de3['getFirstRange']()&&!_0xf88917['getFirstRange']()['end']['isEqual'](_0x464de3['getFirstRange']()['start'])){const _0x1b94a4=_0x473109[_0x473109['length']-0x1],_0x13119c='insertion'==_0xf88917['type']?'add':'remove';_0x1b94a4&&'text'==_0x1b94a4['type']&&(_0x1b94a4[_0x13119c]+='\x0a');}}}class U extends _0x38bc3e{['afterInit'](){const _0x2cb1d6=this['editor'],_0x2382ab=_0x2cb1d6['plugins']['get']('TrackChangesEditing');_0x2cb1d6['commands']['get']('showAIAssistant')&&_0x2382ab['enableCommand']('showAIAssistant');}}class V extends _0x38bc3e{['afterInit'](){const _0x1647ec=this['editor'],_0x37af0a=_0x1647ec['locale'];if(!_0x1647ec['plugins']['has']('AlignmentEditing'))return;const _0x55fcdb=_0x1647ec['plugins']['get']('TrackChangesEditing');_0x55fcdb['enableDefaultAttributesIntegration']('alignment'),_0x55fcdb['registerBlockAttribute']('alignment'),_0x55fcdb['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x37af0a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b7056=this['editor'],_0x4315dd=_0x2b7056['locale'];_0x2b7056['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e682e=>{if('formatBlock'!=_0x3e682e['type'])return;const {data:_0x305050}=_0x3e682e;if(_0x305050&&'alignment'==_0x305050['commandName']){const _0x2e6cc4=_0x305050['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4315dd,'*Format:*\x20%0',function(_0x26c323){switch(_0x26c323){case'left':return o(_0x4315dd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4315dd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4315dd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4315dd,'FORMAT_JUSTIFY_TEXT');}}(_0x2e6cc4))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x38bc3e{['afterInit'](){const _0x58d7ee=this['editor'],_0x1aa07b=_0x58d7ee['plugins']['get']('TrackChangesEditing'),_0x802fa2=_0x58d7ee['locale'];for(const _0x2feb01 of Zt){if(!_0x58d7ee['plugins']['has'](_0x2feb01))continue;const _0x1c675a=_0x2feb01['slice'](0x0,-0x7)['toLowerCase'](),_0x1d4c92='FORMAT_'+_0x1c675a['toUpperCase']();_0x1aa07b['enableDefaultAttributesIntegration'](_0x1c675a),_0x1aa07b['registerInlineAttribute'](_0x1c675a),_0x1aa07b['descriptionFactory']['registerAttributeLabel'](_0x1c675a,o(_0x802fa2,_0x1d4c92));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd0b15f=this['editor'],_0x162758=_0xd0b15f['locale'],_0x1b1c6d=_0xd0b15f['plugins']['get']('TrackChangesEditing');function _0x6b0d66(_0x1170b4,_0x12e2fa){_0x1b1c6d['descriptionFactory']['registerDescriptionCallback'](_0x29b1e0=>{if('formatInline'!=_0x29b1e0['type'])return;const {data:_0x556eea}=_0x29b1e0;return _0x556eea&&_0x556eea['commandName']===_0x1170b4?_0x556eea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x162758,'*Format:*\x20%0',_0x12e2fa)}:{'type':'format','content':o(_0x162758,'*Remove\x20format:*\x20%0',_0x12e2fa)}:void 0x0;});}_0x6b0d66('bold',o(_0x162758,'FORMAT_BOLD')),_0x6b0d66('italic',o(_0x162758,'FORMAT_ITALIC')),_0x6b0d66('underline',o(_0x162758,'FORMAT_UNDERLINE')),_0x6b0d66('code',o(_0x162758,'FORMAT_CODE')),_0x6b0d66('strikethrough',o(_0x162758,'FORMAT_STRIKETHROUGH')),_0x6b0d66('subscript',o(_0x162758,'FORMAT_SUBSCRIPT')),_0x6b0d66('superscript',o(_0x162758,'FORMAT_SUPERSCRIPT'));}}class F extends _0x38bc3e{['afterInit'](){const _0x528870=this['editor'],_0x3bf237=_0x528870['locale'];if(!_0x528870['plugins']['has']('BlockQuoteEditing'))return;const _0x643c07=_0x528870['plugins']['get']('TrackChangesEditing'),_0x12b8b8=this['editor']['commands']['get']('blockQuote');_0x643c07['enableCommand']('blockQuote',(_0x285b91,_0xe0b0c3={})=>{const _0x35dc30=this['editor']['model']['document']['selection'],_0x459899=_0xe0b0c3&&void 0x0!==_0xe0b0c3['forceValue']?_0xe0b0c3['forceValue']:!_0x12b8b8['value'];let _0x497db6=[];if(_0x459899){const _0x3f7c55=Array['from'](_0x35dc30['getSelectedBlocks']())['filter'](_0x1c0c74=>oo(_0x1c0c74)||function(_0x490493,_0x43a516){const _0x118bfe=_0x43a516['checkChild'](_0x490493['parent'],'blockQuote'),_0x11fff5=_0x43a516['checkChild'](['$root','blockQuote'],_0x490493);return _0x118bfe&&_0x11fff5;}(_0x1c0c74,this['editor']['model']['schema']));_0x497db6=to(_0x3f7c55,_0x528870['model']);}else{const _0x18c54f=Array['from'](_0x35dc30['getSelectedBlocks']())['filter'](_0x3decf6=>oo(_0x3decf6));_0x497db6=to(_0x18c54f,_0x528870['model']);}_0x528870['model']['change'](()=>{for(const _0x3c5b43 of _0x497db6)_0x643c07['markBlockFormat'](_0x3c5b43,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x459899}]});});}),_0x643c07['descriptionFactory']['registerDescriptionCallback'](_0x1b230b=>{const {data:_0x1f206b}=_0x1b230b;if(_0x1f206b&&'blockQuote'==_0x1f206b['commandName']){const _0x42f133=o(_0x3bf237,'ELEMENT_BLOCK_QUOTE');return _0x1f206b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bf237,'*Set\x20format:*\x20%0',_0x42f133)}:{'type':'format','content':o(_0x3bf237,'*Remove\x20format:*\x20%0',_0x42f133)};}});}}function oo(_0x59c833){return'blockQuote'==_0x59c833['parent']['name'];}class L extends _0x38bc3e{['afterInit'](){const _0x3ceaf9=this['editor'],_0x493bb7=_0x3ceaf9['locale'],_0x541626=_0x3ceaf9['plugins']['get']('TrackChangesEditing');_0x3ceaf9['plugins']['has']('BookmarkEditing')&&(_0x541626['enableCommand']('insertBookmark'),_0x541626['enableDefaultAttributesIntegration']('updateBookmark'),_0x541626['registerBlockAttribute']('bookmarkId'),_0x541626['descriptionFactory']['registerDescriptionCallback'](_0x5693ff=>{if('insertion'!=_0x5693ff['type']&&'deletion'!=_0x5693ff['type']&&'attribute'!=_0x5693ff['type'])return;const _0x4f8c70=_0x5693ff['getContainedElement']();if(null==_0x4f8c70)return;if(!_0x4f8c70['is']('element','bookmark'))return;const _0x24ba41=_0x4f8c70['getAttribute']('bookmarkId');if('insertion'==_0x5693ff['type'])return{'type':'insertion','content':o(_0x493bb7,'*Insert:*\x20%0','\x22'+_0x24ba41+'\x22\x20'+o(_0x493bb7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5693ff['type'])return{'type':'deletion','content':o(_0x493bb7,'*Remove:*\x20%0','\x22'+_0x24ba41+'\x22\x20'+o(_0x493bb7,'ELEMENT_BOOKMARK'))};const {data:_0x4e96ef}=_0x5693ff;if(!_0x4e96ef||'bookmarkId'!=_0x4e96ef['key'])return;return{'type':'format','content':o(_0x493bb7,'*Set\x20bookmark:*\x20%0','\x22'+_0x4e96ef['newValue']+'\x22')};}));}}class J extends _0x38bc3e{['afterInit'](){const _0x57f6cf=this['editor'];_0x57f6cf['plugins']['has']('CaseChange')&&(_0x57f6cf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x57f6cf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x57f6cf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x38bc3e{['afterInit'](){const _0x3a7105=this['editor'];_0x3a7105['commands']['get']('ckbox')&&_0x3a7105['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x38bc3e{['afterInit'](){const _0x5addd9=this['editor'];if(!_0x5addd9['plugins']['has']('CodeBlock'))return;const _0x1e7635=_0x5addd9['plugins']['get']('TrackChangesEditing'),_0x37c91f=_0x5addd9['locale'],_0x46efd7=_0x5addd9['config']['get']('codeBlock')['languages'],_0x3840ae=_0x5addd9['commands']['get']('codeBlock');_0x1e7635['enableCommand']('indentCodeBlock'),_0x1e7635['enableCommand']('outdentCodeBlock'),_0x1e7635['enableCommand']('codeBlock',(_0xdc691a,_0x17f37a={})=>{const _0x308e04=_0x5addd9['model'],_0x1875b0=_0x5addd9['model']['document']['selection'],_0x1e35f4=_0x17f37a&&void 0x0!==_0x17f37a['forceValue']?_0x17f37a['forceValue']:!_0x3840ae['value'];let _0x415669;_0x17f37a['language']||(_0x17f37a['language']=_0x46efd7[0x0]['language']),_0x415669=_0x1e35f4?Array['from'](_0x1875b0['getSelectedBlocks']())['filter'](_0x12abe1=>eo(_0x12abe1)||function(_0x361634,_0x84fdc5){if(_0x361634['is']('rootElement')||_0x84fdc5['isLimit'](_0x361634))return!0x1;return _0x84fdc5['checkChild'](_0x361634['parent'],'codeBlock');}(_0x12abe1,_0x308e04['schema'])):Array['from'](_0x1875b0['getSelectedBlocks']())['filter'](_0xae68ba=>eo(_0xae68ba));const _0x3a9b2e=to(_0x415669,_0x308e04);_0x308e04['change'](()=>{for(const _0x3fdb09 of _0x3a9b2e)_0x1e7635['markBlockFormat'](_0x3fdb09,{'commandName':'codeBlock','commandParams':[{..._0x17f37a,'forceValue':_0x1e35f4}],'formatGroupId':'blockName'});});}),(_0x1e7635['descriptionFactory']['registerElementLabel']('codeBlock',_0x222026=>o(_0x37c91f,'ELEMENT_CODE_BLOCK',_0x222026)),_0x1e7635['descriptionFactory']['registerDescriptionCallback'](_0x8a9a13=>{if('formatBlock'!=_0x8a9a13['type'])return;const _0x4dd56f=_0x37c91f['t'],{data:_0x3f7cca}=_0x8a9a13;if(!_0x3f7cca||'codeBlock'!=_0x3f7cca['commandName'])return;const _0x1a3abd=_0x3f7cca['commandParams'][0x0]['language'],_0x5eac63=_0x4dd56f(_0x46efd7['find'](_0x2554b1=>_0x2554b1['language']===_0x1a3abd)['label'])['toLowerCase']();return _0x3f7cca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37c91f,'*Set\x20format:*\x20%0',o(_0x37c91f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5eac63+')')}:{'type':'format','content':o(_0x37c91f,'*Remove\x20format:*\x20%0',o(_0x37c91f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x434fe1){return'codeBlock'==_0x434fe1['name'];}class z extends _0x38bc3e{['afterInit'](){const _0x58e75a=this['editor'];if(!_0x58e75a['plugins']['has']('CommentsEditing'))return;_0x58e75a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xabea5f,_0xf201b5,_0x35b79b){const _0x538392=[];for(const _0x17e310 of _0xf201b5['getItems']())_0x17e310['hasAttribute'](_0xabea5f)&&_0x538392['push'](_0x35b79b['createRangeOn'](_0x17e310));return _0x538392;}function Ne(_0x35ab5c,_0x36df18,{showActiveMarker:_0x1b1baa=!0x0}={}){const _0x30fe75=_0x35ab5c['plugins']['get']('TrackChangesEditing');return(_0x3dacec,_0x25f0cd,_0x18a118)=>{if(!_0x18a118['consumable']['test'](_0x25f0cd['markerRange'],_0x3dacec['name']))return;const _0x3f7274=_0x25f0cd['markerRange']['getWalker'](),_0xf26bd3=_0x25f0cd['markerRange']['start'],_0x4cad43=_0x35ab5c['model']['schema'];let _0x73cc93=null,_0x3efa01=null,_0x4f089e=!0x1,_0x46394c=!0x1;for(const _0x404a00 of _0x3f7274){const _0x3ad959=_0x404a00['item'];_0x4f089e=_0x4f089e||_0x4cad43['isContent'](_0x3ad959);const _0x29483d=_0x18a118['mapper']['toViewElement'](_0x3ad959);if(_0x29483d&&_0x29483d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x404a00['type']&&(_0x4cad43['isBlock'](_0x3ad959)&&!_0x4cad43['isLimit'](_0x3ad959)&&(_0x3ad959['nextSibling']||_0xf26bd3['isAtEnd']?_0x73cc93&&_0x73cc93['parent']==_0x3ad959||(_0x73cc93=_0x3ad959,_0x205d37(_0x404a00['previousPosition']),_0x46394c=!0x0):_0x3efa01=_0x3efa01||_0x404a00['previousPosition']));}function _0x205d37(_0x1a060a){const {authorId:_0x577a85}=_0x30fe75['_splitMarkerName'](_0x25f0cd['markerName']),_0x5510f0=_0x18a118['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36df18,'data-author-id':_0x577a85}),_0x39c902=_0x18a118['mapper']['toViewPosition'](_0x1a060a);_0x1b1baa&&_0x30fe75['activeMarkers']['includes'](_0x25f0cd['markerName'])&&_0x18a118['writer']['addClass']('ck-suggestion-marker--active',_0x5510f0),_0x18a118['writer']['insert'](_0x39c902,_0x5510f0),_0x18a118['mapper']['bindElementToMarker'](_0x5510f0,_0x25f0cd['markerName']);}_0x4f089e||_0x46394c||!_0x3efa01||_0x205d37(_0x3efa01);};}class K extends _0x38bc3e{static get['requires'](){return[_0x16e0a5];}['init'](){const _0x49c2c5=this['editor'],_0x42417b=_0x49c2c5['plugins']['get']('TrackChangesEditing');_0x42417b['enableCommand']('delete');const _0x4508eb=_0x49c2c5['commands']['get']('deleteForward');_0x42417b['enableCommand']('deleteForward',(_0x39cc96,_0x177343={})=>{const _0x5b99f7=_0x49c2c5['model']['createSelection'](_0x49c2c5['model']['document']['selection']);_0x5b99f7['isCollapsed']&&_0x49c2c5['model']['modifySelection'](_0x5b99f7,{'direction':'forward','unit':_0x177343['unit']});const _0x2a6a1a=_0x5b99f7['getFirstRange'](),_0x5d8da2=_0x3f82e4['fromRange'](_0x2a6a1a);let _0x36872d;_0x39cc96(_0x177343),_0x36872d='$graveyard'==_0x5d8da2['root']['rootName']?_0x49c2c5['model']['createRange'](_0x2a6a1a['start']):_0x49c2c5['model']['createRange'](_0x5d8da2['start'],_0x5d8da2['end']),_0x5d8da2['detach'](),_0x49c2c5['model']['enqueueChange'](_0x4508eb['buffer']['batch'],_0x34a2f4=>{_0x4508eb['buffer']['lock'](),_0x34a2f4['setSelection'](_0x34a2f4['createRange'](_0x36872d['end'])),_0x4508eb['buffer']['unlock']();});}),_0x49c2c5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x49c2c5,'merge'),{'priority':'high'}),_0x49c2c5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38b6a8,_0x576a14,_0x152316)=>{_0x152316['options']['showSuggestionHighlights']&&Ne(_0x49c2c5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38b6a8,_0x576a14,_0x152316);},{'priority':'high'}),_0x49c2c5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1ead0d,_0x17e59b,_0xa00b41)=>{const _0x228a9f=_0xa00b41['mapper']['markerNameToElements'](_0x17e59b['markerName']);if(_0x228a9f){for(const _0x4ef316 of _0x228a9f)_0x4ef316['is']('uiElement')&&(_0xa00b41['mapper']['unbindElementFromMarkerName'](_0x4ef316,_0x17e59b['markerName']),_0xa00b41['writer']['remove'](_0x4ef316));}},{'priority':'high'});}}class W extends _0x38bc3e{['afterInit'](){const _0x1d33f3=this['editor'];if(!_0x1d33f3['plugins']['has']('ListEditing'))return;const _0x2e559e=_0x1d33f3['locale'],_0x4aff63=_0x1d33f3['plugins']['get']('TrackChangesEditing'),_0x50bf2f=_0x1d33f3['plugins']['has']('TodoListEditing'),_0x39a2c2=!!_0x1d33f3['config']['get']('list.multiBlock');function _0x34f425(_0x293cbb){return{'type':'format','content':''+o(_0x2e559e,'*Set\x20format:*\x20%0',_0x293cbb)};}function _0x3809df(_0xa8c1fd){return{'type':'format','content':''+o(_0x2e559e,'*Remove\x20format:*\x20%0',_0xa8c1fd)};}_0x4aff63['enableDefaultAttributesIntegration']('numberedList'),_0x4aff63['enableDefaultAttributesIntegration']('bulletedList'),_0x4aff63['enableDefaultAttributesIntegration']('customNumberedList'),_0x4aff63['enableDefaultAttributesIntegration']('customBulletedList'),_0x4aff63['enableDefaultAttributesIntegration']('indentList'),_0x4aff63['enableDefaultAttributesIntegration']('outdentList'),_0x4aff63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4aff63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4aff63['registerBlockAttribute']('listItemId'),_0x4aff63['registerBlockAttribute']('listType'),_0x4aff63['registerBlockAttribute']('listIndent'),_0x39a2c2&&(_0x4aff63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4aff63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x50bf2f&&(_0x4aff63['enableDefaultAttributesIntegration']('todoList'),_0x4aff63['enableDefaultAttributesIntegration']('checkTodoList'),_0x4aff63['registerBlockAttribute']('todoListChecked'),_0x4aff63['descriptionFactory']['registerDescriptionCallback'](_0xa90bd6=>{const {data:_0x339852}=_0xa90bd6;if(_0x339852&&'todoListChecked'==_0x339852['key'])return{'type':'format','content':_0x339852['newValue']?o(_0x2e559e,'*Check\x20item*'):o(_0x2e559e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3ba2a3=>{if(_0x3ba2a3['batch']['isUndo'])return!0x1;let _0x39bc01=!0x1;const _0x24564e=_0x4aff63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a2c00=>'todoListChecked'===_0x4aff63['_getAttributeKey'](_0x2a2c00));for(const _0x5e78ba of _0x24564e){'todo'!=_0x5e78ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4aff63['_findSuggestions'](_0x5e78ba['getFirstRange'](),'attribute')['find'](_0x883bee=>'listType'===_0x4aff63['_getAttributeKey'](_0x883bee['suggestion']))||(_0x3ba2a3['removeMarker'](_0x5e78ba['getFirstMarker']()),_0x39bc01=!0x0));}return _0x39bc01;})),_0x4aff63['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e559e,'FORMAT_INDENT'));const _0xfd856={'type':'format','content':''};_0x4aff63['descriptionFactory']['registerDescriptionCallback'](_0x34f7b7=>{const {data:_0x42cdcf}=_0x34f7b7;if(!_0x42cdcf||'listType'!=_0x42cdcf['key'])return;let _0x536e3e=_0x34f7b7['head'];for(;_0x536e3e;){if(_0x536e3e['data']&&(('listStyle'==_0x536e3e['data']['key']||'listMarkerStyle'==_0x536e3e['data']['key'])&&(_0x536e3e['data']['newValue']&&'default'!=_0x536e3e['data']['newValue']||'default'!=_0x536e3e['data']['oldValue']&&!_0x42cdcf['newValue'])||!_0x39a2c2&&_0x536e3e['data']['key']==m))return _0xfd856;_0x536e3e=_0x536e3e['next'];}if(null==_0x42cdcf['newValue'])switch(_0x42cdcf['oldValue']){case'bulleted':return _0x3809df(o(_0x2e559e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3809df(o(_0x2e559e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3809df(o(_0x2e559e,'ELEMENT_TODO_LIST'));}switch(_0x42cdcf['newValue']){case'bulleted':return _0x34f425(o(_0x2e559e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34f425(o(_0x2e559e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34f425(o(_0x2e559e,'ELEMENT_TODO_LIST'));}}),_0x4aff63['descriptionFactory']['registerDescriptionCallback'](_0x6901b=>{const {data:_0x4084db}=_0x6901b;if(_0x4084db&&'listIndent'==_0x4084db['key'])return null==_0x4084db['newValue']||null==_0x4084db['oldValue']&&0x0==_0x4084db['newValue']?_0xfd856:void 0x0;}),_0x4aff63['descriptionFactory']['registerDescriptionCallback'](_0x489405=>{if('attribute'!=_0x489405['type'])return;const {data:_0x185dcb}=_0x489405;if(!_0x185dcb||'listItemId'!=_0x185dcb['key'])return;const _0x4524aa=Te(_0x489405);return'newValue'==_0x4524aa?{'type':'format','content':o(_0x2e559e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4524aa?{'type':'format','content':o(_0x2e559e,'*Split:*\x20list\x20item')}:_0xfd856;}),_0x1d33f3['model']['document']['registerPostFixer'](_0x354317=>this['listItemIdFixer'](_0x354317)),_0x1d33f3['model']['document']['registerPostFixer'](_0x5774c8=>this['noTrackChangesFixer'](_0x5774c8)),_0x1d33f3['model']['document']['on']('change:data',(_0x52a63d,_0x55e045)=>{if(_0x55e045['isUndo']||!_0x55e045['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1fc3f7){if(_0x1fc3f7['batch']['isUndo']||!_0x1fc3f7['batch']['isLocal'])return!0x1;let _0x4fd2f8=!0x1;const _0x14e6dd=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32d8ff=>_0x32d8ff['data']&&'listItemId'==_0x32d8ff['data']['key'])['filter'](_0x5886e0=>_0x5886e0['data']['newValue']&&_0x5886e0['data']['oldValue']);for(const _0x3beb92 of _0x14e6dd)Te(_0x3beb92)||(_0x1fc3f7['removeMarker'](_0x3beb92['getFirstMarker']()),_0x4fd2f8=!0x0);return _0x4fd2f8;}['noTrackChangesFixer'](_0x39f4b8){if(_0x39f4b8['batch']['isUndo']||!_0x39f4b8['batch']['isLocal'])return!0x1;const _0x7b165a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x7b165a['trackChangesCommand']['value'])return!0x1;let _0xdce01e=!0x1;const _0x10515e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x469b22=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xda0387=>'attribute'==_0xda0387['type'])['filter'](_0x42d25f=>_0x10515e['includes'](_0x42d25f['attributeKey']));if(0x0==_0x469b22['length'])return _0xdce01e;for(const _0x41e2f1 of _0x469b22){const _0x1345df=_0x7b165a['_findSuggestions'](_0x41e2f1['range'],'attribute')['filter'](_0x3126b3=>!_0x3126b3['meta']['isNextTo'])['map'](_0xc5b5fb=>_0xc5b5fb['suggestion'])['filter'](_0x500185=>{const _0x1c8d6d=_0x7b165a['_getAttributeKey'](_0x500185);return _0x10515e['includes'](_0x1c8d6d);});if(_0x1345df['length']){for(const _0x33a2e2 of _0x1345df)_0x39f4b8['removeMarker'](_0x33a2e2['getFirstMarker']());_0xdce01e=!0x0;}}return _0xdce01e;}['assureChains'](){const _0xcd8b3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2abd9e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x153098;const _0x86a894=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4203fa=>{if(_0x4203fa['data']['oldRange']||!_0x4203fa['data']['newRange'])return null;if(!_0x4203fa['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3ec318}=_0xcd8b3a['_splitMarkerName'](_0x4203fa['name']);if(!_0xcd8b3a['hasSuggestion'](_0x3ec318))return null;const _0xd0a2e3=_0xcd8b3a['getSuggestion'](_0x3ec318);return _0x2abd9e['includes'](_0xd0a2e3['data']['key']);})['map'](_0x30e0e9=>{const {id:_0x20c2a8}=_0xcd8b3a['_splitMarkerName'](_0x30e0e9['name']),_0x56d647=_0xcd8b3a['getSuggestion'](_0x20c2a8);return _0x153098=_0x56d647['attributes']['groupId'],_0x56d647['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x86a894['size'])return;const _0x26a7a0=_0xcd8b3a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b9b89=>'attribute'==_0x5b9b89['type']&&_0x5b9b89['data']&&_0x2abd9e['includes'](_0x5b9b89['data']['key'])&&_0x5b9b89['attributes']['groupId']!=_0x153098)['map'](_0x35caec=>({'listItem':_0x35caec['getFirstRange']()['start']['nodeAfter'],'groupId':_0x35caec['attributes']['groupId']})),_0x3ca8c9=new Set();for(const {groupId:_0x2d8efa,listItem:_0x2c61df}of _0x26a7a0)_0x86a894['has'](_0x2c61df)&&_0x3ca8c9['add'](_0x2d8efa);for(const _0x4c62a0 of _0xcd8b3a['getSuggestions']())_0x3ca8c9['has'](_0x4c62a0['attributes']['groupId'])&&_0x4c62a0['setAttribute']('groupId',_0x153098);}['_supportLegacySuggestions'](){const _0x45aca7=this['editor'],_0x3b60d1=_0x45aca7['locale'],_0x533982=_0x45aca7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x533982['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x30909e,_0x21292a){const _0x3ed565=[];for(let _0x2ca72b of _0x30909e)_0x2ca72b['start']['nodeAfter']===_0x2ca72b['end']['parent']&&(_0x2ca72b=_0x45aca7['model']['createRange'](_0x45aca7['model']['createPositionAt'](_0x2ca72b['start']['nodeAfter'],0x0))),_0x3ed565['push'](_0x2ca72b);_0x45aca7['model']['change'](_0x3f7e47=>{const _0x454543=_0x45aca7['model']['document']['selection'],_0x1b1396=Array['from'](_0x454543['getRanges']())['map'](_0xe90a87=>_0x3f82e4['fromRange'](_0xe90a87));_0x3f7e47['setSelection'](_0x3ed565),_0x45aca7['commands']['get'](_0x21292a['commandName'])['refresh'](),_0x21292a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45aca7['execute'](_0x21292a['commandName'],..._0x21292a['commandParams']),_0x3f7e47['setSelection'](_0x1b1396);for(const _0xb36c63 of _0x1b1396)_0xb36c63['detach']();});}),_0x533982['descriptionFactory']['registerElementLabel'](function(_0x554767){const _0x269f7b=!_0x45aca7['model']['schema']['isObject'](_0x554767),_0x24c487=_0x554767['previousSibling'],_0x493cf3=_0x554767['nextSibling'],_0x43dfce=_0x554767['getAttribute']('listItemId'),_0x1c7c31=!_0x24c487||_0x24c487['getAttribute']('listItemId')!==_0x43dfce,_0xef0e33=!_0x493cf3||_0x493cf3['getAttribute']('listItemId')!==_0x43dfce;return _0x269f7b&&Boolean(_0x43dfce)&&_0x1c7c31&&_0xef0e33;},_0x333f6b=>o(_0x3b60d1,'ELEMENT_LIST_ITEM',_0x333f6b));}['_registerLegacyDescription'](){const _0x1ceed3=this['editor'],_0x52f5fc=_0x1ceed3['locale'];function _0xb109fe(_0x3d6f7e){const _0x3cdc8b=_0x1ceed3['commands']['get']('bulletedList')['value'],_0x30976f=_0x1ceed3['commands']['get']('numberedList')['value'];return'numberedList'===_0x3d6f7e?_0x3cdc8b:_0x30976f;}_0x1ceed3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3a1274){if('formatBlock'!=_0x3a1274['type'])return;const {data:_0x24156c}=_0x3a1274;if(!_0x24156c)return;let _0x6dba87,_0x2b7c75,_0x5d94b7,_0x113fca;switch(_0x24156c['commandName']){case'bulletedList':_0x5d94b7=_0x24156c['commandParams'][0x0]['forceValue'],_0x113fca=_0xb109fe(_0x24156c['commandName']),_0x6dba87=_0x5d94b7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x113fca&&_0x1ceed3['config']['get']('list.multiBlock')||(_0x6dba87='*Change\x20to:*\x20%0'),_0x2b7c75={'type':'format','content':o(_0x52f5fc,_0x6dba87,o(_0x52f5fc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d94b7=_0x24156c['commandParams'][0x0]['forceValue'],_0x113fca=_0xb109fe(_0x24156c['commandName']),_0x6dba87=_0x5d94b7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x113fca&&_0x1ceed3['config']['get']('list.multiBlock')||(_0x6dba87='*Change\x20to:*\x20%0'),_0x2b7c75={'type':'format','content':o(_0x52f5fc,_0x6dba87,o(_0x52f5fc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x6dba87='*Indent:*\x20%0',_0x2b7c75={'type':'format','content':o(_0x52f5fc,_0x6dba87,o(_0x52f5fc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x6dba87=function(_0x3a6d78){const _0x3c104a=_0x3a6d78['getFirstRange']();let _0xb8dff5=_0x3c104a['start']['nodeAfter'];for(;_0xb8dff5&&_0x3c104a['containsItem'](_0xb8dff5);){if(_0xb8dff5['getAttribute']('listIndent')>0x0)return!0x1;_0xb8dff5=_0xb8dff5['nextSibling'];}return!0x0;}(_0x3a1274)?o(_0x52f5fc,'*Format:*\x20remove\x20from\x20%0',o(_0x52f5fc,function(_0x5c8580){return'ELEMENT_'+_0x5c8580['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3a1274))):o(_0x52f5fc,'*Outdent:*\x20%0',o(_0x52f5fc,'ELEMENT_LIST_ITEM')),_0x2b7c75={'type':'format','content':_0x6dba87};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x24156c['multipleBlocks']&&(_0x6dba87='*Merge:*\x20%0',_0x2b7c75={'type':'deletion','content':o(_0x52f5fc,_0x6dba87,o(_0x52f5fc,'ELEMENT_LIST_ITEM'))});}return _0x2b7c75;});}}function Te(_0x2e3085){let _0x478c71=_0x2e3085['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x478c71;){const _0x50c320=_0x478c71['getAttribute']('listItemId');if(!_0x50c320)return!0x1;if(_0x50c320==_0x2e3085['data']['newValue'])return'newValue';if(_0x50c320==_0x2e3085['data']['oldValue'])return'oldValue';_0x478c71=_0x478c71['previousSibling'];}return!0x1;}class ye extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x40b749=this['editor']['config']['get']('list.properties'),_0x22616a=this['editor']['plugins']['get']('TrackChangesEditing');_0x40b749['styles']&&(_0x22616a['enableDefaultAttributesIntegration']('listStyle'),_0x22616a['registerBlockAttribute']('listStyle')),_0x40b749['reversed']&&(_0x22616a['enableDefaultAttributesIntegration']('listReversed'),_0x22616a['registerBlockAttribute']('listReversed')),_0x40b749['startIndex']&&(_0x22616a['enableDefaultAttributesIntegration']('listStart'),_0x22616a['registerBlockAttribute']('listStart'));const _0x5e5eb7={'type':'format','content':''};_0x22616a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5bc405=this['editor']['locale'];_0x22616a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5bc405,'FORMAT_LIST_REVERSED')),_0x22616a['descriptionFactory']['registerDescriptionCallback'](_0x4f5314=>{const {data:_0x4708b2}=_0x4f5314;if(_0x4708b2&&'listReversed'==_0x4708b2['key'])return null==_0x4708b2['newValue']||0x0==_0x4708b2['newValue']&&null==_0x4708b2['oldValue']?_0x5e5eb7:void 0x0;}),_0x22616a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5bc405,'FORMAT_LIST_START')),_0x22616a['descriptionFactory']['registerDescriptionCallback'](_0x495e1e=>{const {data:_0x115568}=_0x495e1e;if(_0x115568&&'listStart'==_0x115568['key'])return null==_0x115568['newValue']||0x1==_0x115568['newValue']&&null==_0x115568['oldValue']?_0x5e5eb7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xc67977=>{if(_0xc67977['batch']['isUndo'])return!0x1;let _0x4675b6=!0x1;const _0x19d6b1=_0x22616a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55dc28=>{const _0x241e90=_0x22616a['_getAttributeKey'](_0x55dc28);return'listStart'==_0x241e90||'listReversed'==_0x241e90;});for(const _0x1729ee of _0x19d6b1){const _0x13c452=_0x1729ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x13c452||'customNumbered'==_0x13c452)continue;_0x22616a['_findSuggestions'](_0x1729ee['getFirstRange'](),'attribute')['find'](_0x16b481=>'listType'==_0x22616a['_getAttributeKey'](_0x16b481['suggestion']))||(_0xc67977['removeMarker'](_0x1729ee['getFirstMarker']()),_0x4675b6=!0x0);}return _0x4675b6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x36f57d){const _0x4db4b3=this['editor']['locale'],{data:_0x314dd6}=_0x36f57d,_0x43637a={'type':'format','content':''};if(!_0x314dd6||'listStyle'!=_0x314dd6['key'])return;if(!_0x314dd6['oldValue'])return'default'==_0x314dd6['newValue']?_0x43637a:{'type':'format','content':''+o(_0x4db4b3,'*Set\x20format:*\x20%0',o(_0x4db4b3,this['_getTranslationKeyForListStyle'](_0x314dd6['newValue'])))};if(!_0x314dd6['newValue']){if('default'==_0x314dd6['oldValue'])return _0x43637a;let _0x2716fe=_0x36f57d['head'];for(;_0x2716fe;){if(_0x2716fe['data']&&'listType'==_0x2716fe['data']['key']&&_0x2716fe['data']['newValue'])return _0x43637a;_0x2716fe=_0x2716fe['next'];}return{'type':'format','content':''+o(_0x4db4b3,'*Remove\x20format:*\x20%0',o(_0x4db4b3,this['_getTranslationKeyForListStyle'](_0x314dd6['oldValue'])))};}if('default'!=_0x314dd6['newValue'])return{'type':'format','content':''+o(_0x4db4b3,'*Set\x20format:*\x20%0',o(_0x4db4b3,this['_getTranslationKeyForListStyle'](_0x314dd6['newValue'])))};let _0x4e8b59=_0x36f57d['head'];for(;_0x4e8b59;){if(_0x4e8b59['data']&&'listType'==_0x4e8b59['data']['key']&&_0x4e8b59['data']['newValue']&&_0x4e8b59['data']['oldValue'])return _0x43637a;_0x4e8b59=_0x4e8b59['next'];}return{'type':'format','content':o(_0x4db4b3,'*Set\x20format:*\x20%0',o(_0x4db4b3,'ELEMENT_'+_0x36f57d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x21c5b6=this['editor'],_0x19897a=_0x21c5b6['locale'];_0x21c5b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd52b=>{if('formatBlock'!=_0x1dd52b['type'])return;const {data:_0x455685}=_0x1dd52b;if(!_0x455685)return;let _0x1bc1f1,_0x2bfabb;switch(_0x455685['commandName']){case'listStyle':_0x1bc1f1='*Change\x20to:*\x20%0',_0x2bfabb={'type':'format','content':o(_0x19897a,_0x1bc1f1,o(_0x19897a,this['_getTranslationKeyForListStyle'](_0x455685['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bc1f1=_0x455685['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2bfabb={'type':'format','content':o(_0x19897a,_0x1bc1f1)};break;case'listStart':_0x1bc1f1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2bfabb={'type':'format','content':o(_0x19897a,_0x1bc1f1,_0x455685['commandParams'][0x0]['startIndex'])};}return _0x2bfabb;});}['_getTranslationKeyForListStyle'](_0x38b41a){return'ELEMENT_'+function(_0x2f7a63){if(Se['includes'](_0x2f7a63))return'bulleted';if(_e['includes'](_0x2f7a63))return'numbered';return null;}(_0x38b41a)['toUpperCase']()+'_LIST_'+_0x38b41a['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x38bc3e{static get['requires'](){return[_0x32691c];}['init'](){const _0x13b9a7=this['editor'],_0x1861e4=_0x13b9a7['plugins']['get']('TrackChangesEditing'),_0x382a12=_0x13b9a7['commands']['get']('enter');_0x1861e4['enableCommand']('enter',()=>{_0x13b9a7['model']['change'](_0x32f57e=>{const _0x138f39=_0x13b9a7['model']['document']['selection'],_0x20d186=_0x138f39['getFirstPosition'](),_0x45cff1=_0x3f82e4['fromRange'](_0x138f39['getFirstRange']());if(_0x382a12['enterBlock'](_0x32f57e)){const _0x12b5ac=_0x13b9a7['model']['createPositionAt'](_0x20d186['parent']['nextSibling'],0x0),_0x33e9da=_0x32f57e['createRange'](_0x20d186,_0x12b5ac);_0x1861e4['markInsertion'](_0x33e9da);}else _0x32f57e['setSelection'](_0x32f57e['createRange'](_0x45cff1['end']));_0x45cff1['detach'](),_0x382a12['fire']('afterExecute',{'writer':_0x32f57e});});}),_0x13b9a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x13b9a7,'split'),{'priority':'high'}),_0x13b9a7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1d37d7,_0x588563,_0x173669)=>{const _0x15807d=_0x173669['mapper']['markerNameToElements'](_0x588563['markerName']);if(_0x15807d){for(const _0x36d2c9 of _0x15807d)_0x36d2c9['hasClass']('ck-suggestion-marker-split')&&(_0x173669['mapper']['unbindElementFromMarkerName'](_0x36d2c9,_0x588563['markerName']),_0x173669['writer']['remove'](_0x36d2c9));}},{'priority':'high'}),_0x13b9a7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8af0fe,_0x1b61d6,_0x100864)=>{_0x100864['options']['showSuggestionHighlights']&&Ne(_0x13b9a7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x8af0fe,_0x1b61d6,_0x100864);},{'priority':'high'});}}class Y extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2712e7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2712e7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2712e7['enableCommand']('findNext'),_0x2712e7['enableCommand']('findPrevious'),_0x2712e7['enableCommand']('replace'),_0x2712e7['enableCommand']('replaceAll');}['handleFindCommand'](_0x3e30b7,_0x4ac20f,_0x124830={}){const _0x35915d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3e30b7(_0x1004a4=>{let _0xacd3f=('string'==typeof _0x4ac20f?_0x35915d['findByTextCallback'](_0x4ac20f,_0x124830):_0x4ac20f)(_0x1004a4);Array['isArray'](_0xacd3f)&&(_0xacd3f={'results':_0xacd3f,'searchText':'string'==typeof _0x4ac20f?_0x4ac20f:''});const _0x12d356=_0xacd3f['results']['filter'](_0x18944d=>!0x1===this['_isInDeletionRange'](_0x18944d,_0x1004a4['item']));return{..._0xacd3f,'results':_0x12d356};},_0x124830);}['_isInDeletionRange'](_0x8fb350,_0x57d57c){const _0x302e21=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57d57c,_0x8fb350['start']),this['editor']['model']['createPositionAt'](_0x57d57c,_0x8fb350['end']));for(const _0x2d2214 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x302e21['getIntersection'](_0x2d2214['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x38bc3e{['afterInit'](){const _0x4576da=this['editor']['locale'],_0x4776bd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xc3902d,commandName:_0x5ddca2}of ro)this['editor']['plugins']['has'](_0xc3902d)&&(_0x4776bd['enableDefaultAttributesIntegration'](_0x5ddca2),_0x4776bd['registerInlineAttribute'](_0x5ddca2));_0x4776bd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4576da,'FORMAT_FONT_SIZE')),_0x4776bd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4576da,'FORMAT_FONT_FAMILY')),_0x4776bd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4576da,'FORMAT_FONT_COLOR')),_0x4776bd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4576da,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x498e69=this['editor'],_0x4aa9f5=_0x498e69['locale'];_0x498e69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49444a=>{const _0x3971da=_0x4aa9f5['t'];if('formatInline'!=_0x49444a['type'])return;const {data:_0x1fd817}=_0x49444a;if(null!=_0x1fd817){if('fontSize'==_0x1fd817['commandName']){const _0x431c5e=_0x1fd817['commandParams'][0x0]['value'];if(_0x431c5e){const _0x199562=_0x3971da(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x322bac=>_0x322bac['model']==_0x431c5e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4aa9f5,'*Set\x20font\x20size:*\x20%0',_0x199562)};}return{'type':'format','content':o(_0x4aa9f5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1fd817['commandName']){const _0x9ea500=_0x1fd817['commandParams'][0x0]['value'];return _0x9ea500?{'type':'format','content':o(_0x4aa9f5,'*Set\x20font\x20family:*\x20%0',_0x9ea500)}:{'type':'format','content':o(_0x4aa9f5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1fd817['commandName']){const _0x4d9049=_0x1fd817['commandParams'][0x0]['value'];if(_0x4d9049){const _0x1c985c=_0x27c281(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5205b8=>_0x5205b8['model']==_0x4d9049);let _0xfff776=_0x4d9049,_0x5ba518='';return _0x1c985c&&(_0xfff776=_0x1c985c['label'],_0x5ba518=_0x3971da(_0xfff776)['toLowerCase']()),{'type':'format','content':o(_0x4aa9f5,'*Set\x20font\x20color:*\x20%0',_0x5ba518)['trim'](),'color':{'value':_0x4d9049,'title':_0x5ba518||_0xfff776}};}return{'type':'format','content':o(_0x4aa9f5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1fd817['commandName']){const _0x33b3f9=_0x1fd817['commandParams'][0x0]['value'];if(_0x33b3f9){const _0x133a04=_0x27c281(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1aa019=>_0x1aa019['model']==_0x33b3f9);let _0x43f3f9=_0x33b3f9,_0x64f9e0='';return _0x133a04&&(_0x43f3f9=_0x133a04['label'],_0x64f9e0=_0x3971da(_0x43f3f9)['toLowerCase']()),{'type':'format','content':o(_0x4aa9f5,'*Set\x20font\x20background\x20color:*\x20%0',_0x64f9e0)['trim'](),'color':{'value':_0x33b3f9,'title':_0x64f9e0||_0x43f3f9}};}return{'type':'format','content':o(_0x4aa9f5,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x38bc3e{['afterInit'](){const _0xac2611=this['editor'],_0x522aaa=_0xac2611['plugins']['get']('TrackChangesEditing'),_0x2a9fd2=_0xac2611['commands']['get']('copyFormat'),_0x2354b5=_0xac2611['commands']['get']('pasteFormat');_0x2a9fd2&&_0x2354b5&&(_0x522aaa['enableDefaultAttributesIntegration']('pasteFormat'),_0x522aaa['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d6c50=this['editor'],_0x2fc81f=_0x5d6c50['locale'];_0x5d6c50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19301d=>{if('formatBlock'!=_0x19301d['type']&&'formatInline'!=_0x19301d['type'])return;const {data:_0x2262be}=_0x19301d;if(_0x2262be&&'pasteFormat'===_0x2262be['commandName']){const _0x230523=[],_0x198520=_0x2262be['commandParams'][0x0];for(const [_0x180e26,_0x2d3deb]of Object['entries'](_0x198520))_0x230523['push'](so(_0x5d6c50,_0x180e26,_0x2d3deb));return _0x230523['length']?{'type':'format','content':o(_0x2fc81f,'*Set\x20format\x20to:*\x20%0',_0x230523['join'](',\x20'))}:{'type':'format','content':o(_0x2fc81f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x447cbf,_0x37d415,_0x2ed1f3){const _0x1a75ba=_0x447cbf['locale']['t'],_0x194dd7=_0x37d415['split'](/(?=[A-Z])/)['join']('\x20'),_0x393b05=_0x1a75ba(_0x194dd7['charAt'](0x0)['toUpperCase']()+_0x194dd7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2ed1f3)return _0x393b05;if('fontColor'===_0x37d415||'fontBackgroundColor'===_0x37d415){const _0x22f6fc=_0x27c281(_0x447cbf['config']['get']('fontColor.colors'))['find'](_0x2212c0=>_0x2212c0['model']==_0x2ed1f3);return _0x393b05+'\x20('+(_0x22f6fc?_0x1a75ba(_0x22f6fc['label'])['toLowerCase']():_0x2ed1f3)+')';}if('fontSize'===_0x37d415&&isNaN(parseFloat(_0x2ed1f3))){const _0x566215=_0x447cbf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x447cbf['config']['get']('fontSize.options'))['find'](_0x2db26e=>_0x2db26e['model']==_0x2ed1f3);return _0x393b05+'\x20('+(_0x566215?_0x1a75ba(_0x566215['title'])['toLowerCase']():_0x2ed1f3)+')';}return _0x393b05+'\x20('+_0x2ed1f3+')';}class nt extends _0x38bc3e{['_headingOptions'];['afterInit'](){const _0x432d88=this['editor'];if(!_0x432d88['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x432d88['config']['get']('heading.options');const _0x1df27c=_0x432d88['locale'],_0x3092b5=_0x432d88['plugins']['get']('TrackChangesEditing');_0x3092b5['enableDefaultAttributesIntegration']('heading');for(const _0x46bfbd of this['_headingOptions'])'paragraph'!=_0x46bfbd['model']&&_0x3092b5['descriptionFactory']['registerElementLabel'](_0x46bfbd['model'],_0x1b43c8=>{const _0x31df93=this['_getHeadingLevel'](_0x46bfbd['model']);return null!==_0x31df93?_0x24a0ba(_0x1b43c8,_0x31df93):_0x4402d2(_0x1b43c8,_0x46bfbd['title']);});function _0x24a0ba(_0x47e309,_0x391a6c){return o(_0x1df27c,'ELEMENT_HEADING',[_0x47e309,_0x391a6c]);}function _0x4402d2(_0x341934,_0x3edf56){return o(_0x1df27c,'ELEMENT_HEADING_CUSTOM',[_0x341934,_0x3edf56]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20d811=this['editor'],_0x4c8566=_0x20d811['locale'];function _0x26a653(_0x3cea49,_0x571839){return o(_0x4c8566,'ELEMENT_HEADING_CUSTOM',[_0x3cea49,_0x571839]);}_0x20d811['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6ae340=>{if('formatBlock'!=_0x6ae340['type'])return;const {data:_0x1f4570}=_0x6ae340;if(_0x1f4570&&'heading'==_0x1f4570['commandName']){const _0x28a189=_0x1f4570['commandParams'][0x0]['value'],_0x59d18a=this['_getHeadingLevel'](_0x28a189);if(null!==_0x59d18a)return{'type':'format','content':o(_0x4c8566,'*Change\x20to:*\x20%0',(_0x26367b=0x1,_0x56d1b7=_0x59d18a,o(_0x4c8566,'ELEMENT_HEADING',[_0x26367b,_0x56d1b7])))};const _0x10f5b6=this['_headingOptions']['find'](_0x131d3d=>_0x131d3d['model']===_0x28a189)['title'];return{'type':'format','content':o(_0x4c8566,'*Change\x20to:*\x20%0',_0x26a653(0x1,_0x10f5b6))};}var _0x26367b,_0x56d1b7;});}['_getHeadingLevel'](_0x8a342){const _0x4ec50c=_0x8a342['match'](/^heading(\d+)/);if(_0x4ec50c)return _0x4ec50c[0x1];const _0x4fbbee=this['_headingOptions']?.['find'](_0x59a1ae=>_0x59a1ae['model']==_0x8a342);if(_0x4fbbee&&_0x4fbbee['view']){const _0xd7fc1c=_0x4fbbee['view'],_0xfec001=(_0xd7fc1c['name']??_0xd7fc1c)['match'](/^h(\d+)/);if(_0xfec001)return _0xfec001[0x1];}return null;}}class it extends _0x38bc3e{['afterInit'](){const _0x15fc48=this['editor'];if(!_0x15fc48['plugins']['has']('HighlightEditing'))return;const _0x25a1f1=_0x15fc48['plugins']['get']('TrackChangesEditing'),_0x3f201b=_0x15fc48['locale'];_0x25a1f1['enableDefaultAttributesIntegration']('highlight'),_0x25a1f1['registerInlineAttribute']('highlight'),_0x25a1f1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3f201b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c1b53=this['editor'],_0x4e5496=_0x5c1b53['locale'];_0x5c1b53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f36b5=>{if('formatInline'!=_0x1f36b5['type'])return;const {data:_0xa68860}=_0x1f36b5;if(_0xa68860&&'highlight'==_0xa68860['commandName']){const _0x20a36d=_0x4e5496['t'],_0x12b919=_0xa68860['commandParams'][0x0]['value'];if(_0x12b919){const _0x4eaf53=_0x5c1b53['config']['get']('highlight.options')['find'](_0x54449d=>_0x54449d['model']==_0x12b919),_0x3173b8=_0x20a36d(_0x4eaf53['title'])['toLowerCase']();return{'type':'format','content':o(_0x4e5496,'*Set\x20highlight:*\x20%0',_0x3173b8),'color':{'value':_0x4eaf53['color'],'title':_0x4eaf53['title']}};}return{'type':'format','content':o(_0x4e5496,'*Remove\x20highlight*',o(_0x4e5496,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x38bc3e{['afterInit'](){const _0x572976=this['editor'];if(!_0x572976['plugins']['has']('HorizontalLineEditing'))return;_0x572976['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3d34f8=_0x572976['plugins']['get']('TrackChangesEditing'),_0xa7f191=_0x572976['locale'];_0x3d34f8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x44cb25=>o(_0xa7f191,'ELEMENT_HORIZONTAL_LINE',_0x44cb25)),_0x572976['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x341f15,{writer:_0x424750,options:_0x5bc648})=>{if(!_0x5bc648['showSuggestionHighlights'])return null;const _0x4326de=_0x424750['createContainerElement']('div'),_0x2c7d66=_0x424750['createEmptyElement']('hr');return _0x424750['addClass']('ck-horizontal-line',_0x4326de),_0x424750['insert'](_0x424750['createPositionAt'](_0x4326de,0x0),_0x2c7d66),_0x4326de;},'converterPriority':'high'});}}class st extends _0x38bc3e{['afterInit'](){const _0x471c66=this['editor'];if(!_0x471c66['plugins']['has']('HtmlEmbed'))return;const _0x96c0c7=_0x471c66['plugins']['get']('TrackChangesEditing'),_0x1d6aa5=_0x471c66['locale'];_0x96c0c7['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d8a6a=>o(_0x1d6aa5,'ELEMENT_HTML_EMBED',_0x4d8a6a)),_0x96c0c7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x96c0c7['registerBlockAttribute']('value'),_0x96c0c7['descriptionFactory']['registerDescriptionCallback'](_0x24bdef=>{if('attribute'!=_0x24bdef['type'])return;const {data:_0x232406}=_0x24bdef;if(_0x232406&&'value'==_0x232406['key']&&_0x24bdef['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x15b433=o(_0x1d6aa5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d6aa5,'*Change\x20%0\x20content*',_0x15b433)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14843f=this['editor'],_0x200a4a=_0x14843f['locale'];_0x14843f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42fe3c=>{if('formatBlock'!=_0x42fe3c['type'])return;const {data:_0x57eb4b}=_0x42fe3c;if(_0x57eb4b&&'htmlEmbed'==_0x57eb4b['commandName']){const _0x49b0a6=o(_0x200a4a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x200a4a,'*Change\x20%0\x20content*',_0x49b0a6)};}});}}class ot extends _0x38bc3e{['afterInit'](){const _0x333512=this['editor'];if(!_0x333512['plugins']['has']('ImageEditing'))return;const _0x95cb2e=_0x333512['plugins']['get']('TrackChangesEditing'),_0x7df470=_0x333512['plugins']['get']('ImageUtils'),_0x3a037a=_0x333512['locale'];_0x95cb2e['enableCommand']('insertImage'),_0x95cb2e['descriptionFactory']['registerElementLabel']('imageBlock',_0x57d765=>o(_0x3a037a,'ELEMENT_IMAGE',_0x57d765)),_0x95cb2e['descriptionFactory']['registerElementLabel']('imageInline',_0x4aafc2=>o(_0x3a037a,'ELEMENT_INLINE_IMAGE',_0x4aafc2)),_0x95cb2e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3a037a,'ELEMENT_CAPTION')),_0x333512['plugins']['has']('ImageUploadEditing')&&_0x95cb2e['enableCommand']('uploadImage'),_0x333512['plugins']['has']('ImageBlockEditing')&&_0x333512['plugins']['has']('ImageInlineEditing')&&(_0x95cb2e['enableCommand']('imageTypeInline',(_0x3954e9,_0x19efc1)=>{const _0x39d58a=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']);_0x333512['model']['change'](()=>{_0x95cb2e['markBlockFormat'](_0x39d58a,{'commandName':'imageTypeInline','commandParams':[_0x19efc1]},[],'convertBlockImageToInline');});}),_0x95cb2e['enableCommand']('imageTypeBlock',(_0x486587,_0x47ec35)=>{_0x333512['model']['change'](_0x341963=>{let _0x123237=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']),_0x332617=_0x341963['createRangeOn'](_0x123237);const _0x87c517=_0x358e3d['fromPosition'](_0x332617['start'],'toPrevious'),_0xaff1b9=_0x358e3d['fromPosition'](_0x332617['end'],'toNext');_0x95cb2e['forceDefaultExecution'](()=>_0x486587(_0x47ec35)),_0x123237=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']),_0x332617=_0x341963['createRangeOn'](_0x123237);const _0x55feca=_0x341963['createRange'](_0x87c517,_0xaff1b9);_0x87c517['detach'](),_0xaff1b9['detach'](),_0x95cb2e['markBlockFormat'](_0x123237,{'commandName':'imageTypeInline','commandParams':[_0x47ec35]},[],'convertInlineImageToBlock'),_0x55feca['start']['isBefore'](_0x332617['start'])&&_0x95cb2e['markInsertion'](_0x341963['createRange'](_0x55feca['start'],_0x332617['start']),'convertInlineImageToBlock'),_0x332617['end']['isBefore'](_0x55feca['end'])&&_0x95cb2e['markInsertion'](_0x341963['createRange'](_0x332617['end'],_0x55feca['end']),'convertInlineImageToBlock');});}),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x95cb2e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x36e1de])=>{const _0x4ebb96=_0x95cb2e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x18dbce=_0x36e1de['start'],_0x31b32d=_0x36e1de['end'];const _0x4017c4=_0x333512['model']['schema']['getNearestSelectionRange'](_0x18dbce,'backward'),_0x1a35c2=_0x333512['model']['schema']['getNearestSelectionRange'](_0x31b32d,'forward');_0x4017c4['isCollapsed']&&(_0x18dbce=_0x4017c4['start']),_0x1a35c2['isCollapsed']&&(_0x31b32d=_0x1a35c2['end']),_0x4ebb96([_0x333512['model']['createRange'](_0x18dbce,_0x31b32d)]);}),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x348db8),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x348db8)),_0x333512['plugins']['has']('ImageCaptionEditing')&&(_0x95cb2e['enableCommand']('toggleImageCaption',(_0x5871e4,_0x2c3b14)=>{const _0x4ffbb4=_0x333512['plugins']['get']('ImageCaptionUtils');let _0x1c9024=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']),_0x4481ef=_0x4ffbb4['getCaptionFromImageModelElement'](_0x1c9024);_0x333512['model']['change'](()=>{if(_0x4481ef)return void _0x95cb2e['markDeletion'](_0x333512['model']['createRangeOn'](_0x4481ef));const _0x4c0888=_0x7df470['isBlockImage'](_0x1c9024);_0x5871e4(_0x2c3b14),_0x1c9024=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']),_0x4481ef=_0x4ffbb4['getCaptionFromImageModelElement'](_0x1c9024),_0x95cb2e['markInsertion'](_0x333512['model']['createRangeOn'](_0x4481ef),_0x4c0888?null:'imageCaption');});}),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x348db8));const _0x2441ab=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4230e4(_0x2c34f8,_0x502eb6){const _0x3f4da9=_0x2441ab['findIndex'](({type:_0x14e96d,subType:_0x2e0a81})=>_0x2c34f8['type']==_0x14e96d&&_0x2c34f8['subType']==_0x2e0a81),_0x392df5=_0x2441ab['findIndex'](({type:_0x3abb48,subType:_0x3b0a61})=>_0x502eb6['type']==_0x3abb48&&_0x502eb6['subType']==_0x3b0a61);if(_0x3f4da9<0x0||_0x392df5<0x0)return!0x1;const _0x251bde=_0x2c34f8['getFirstRange'](),_0x2667ab=_0x502eb6['getFirstRange']();if((0x0==_0x3f4da9||0x1==_0x3f4da9)&&0x2==_0x392df5&&_0x251bde['isIntersecting'](_0x2667ab))return!0x0;if(0x2==_0x3f4da9&&0x3==_0x392df5){const _0x26be68=_0x95cb2e['_findSuggestions'](_0x251bde,'insertion')['filter'](({suggestion:_0x1a6d03,meta:_0x1f75c2})=>_0x1f75c2['isOwn']&&'convertInlineImageToBlock'==_0x1a6d03['subType']);if(_0x26be68['length']>0x1&&_0x2667ab['end']['isEqual'](_0x251bde['start']))return!0x0;if(0x1==_0x26be68['length']&&(_0x251bde['start']['isEqual'](_0x2667ab['end'])||_0x251bde['end']['isEqual'](_0x2667ab['start'])))return!0x0;}if(0x3==_0x3f4da9&&0x3==_0x392df5&&_0x251bde['start']['isBefore'](_0x2667ab['start'])){const _0x2b1cbe=_0x251bde['end']['nodeAfter'],_0x2a8ec9=_0x2667ab['start']['nodeBefore'];return _0x7df470['isBlockImage'](_0x2b1cbe)&&_0x2b1cbe===_0x2a8ec9;}return!0x1;}function _0x348db8(_0x106f4c,_0x3b5733){return _0x4230e4(_0x106f4c,_0x3b5733)?[_0x106f4c,_0x3b5733]:_0x4230e4(_0x3b5733,_0x106f4c)?[_0x3b5733,_0x106f4c]:null;}_0x333512['plugins']['has']('ImageResize')&&(_0x95cb2e['enableDefaultAttributesIntegration']('resizeImage'),_0x95cb2e['registerBlockAttribute']('resizedWidth'),_0x95cb2e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3a037a,'FORMAT_IMAGE_SIZE'))),_0x333512['plugins']['has']('ImageTextAlternativeEditing')&&(_0x95cb2e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x95cb2e['registerBlockAttribute']('alt')),_0x95cb2e['descriptionFactory']['registerDescriptionCallback'](_0x3fa3f7=>{if(!!_0x2441ab['find'](({type:_0x254179,subType:_0x12f502})=>_0x3fa3f7['type']==_0x254179&&_0x3fa3f7['subType']==_0x12f502))return _0x3fa3f7['previous']?{}:void 0x0;}),_0x95cb2e['descriptionFactory']['registerDescriptionCallback'](_0x248c1c=>{if('insertion'==_0x248c1c['type']||'deletion'==_0x248c1c['type']){const _0x49aa3c=_0x248c1c['getContainedElement']();if(_0x49aa3c&&_0x49aa3c['is']('element','caption'))return{'type':'insertion'==_0x248c1c['type']?'addObject':'removeObject','element':_0x49aa3c,'quantity':0x1};}}),_0x95cb2e['descriptionFactory']['registerDescriptionCallback'](_0x18308d=>'formatBlock'==_0x18308d['type']&&'convertInlineImageToBlock'==_0x18308d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18308d['type']&&'convertBlockImageToInline'==_0x18308d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x95cb2e['descriptionFactory']['registerDescriptionCallback'](_0x32b6f8=>{if('attribute'!=_0x32b6f8['type'])return;const {data:_0x351a53}=_0x32b6f8;if(!_0x351a53||'alt'!=_0x351a53['key'])return;const _0x48a910=_0x351a53['newValue'];return _0x48a910?{'type':'format','content':o(_0x3a037a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48a910+'\x22')}:{'type':'format','content':o(_0x3a037a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18f84b=this['editor'],_0x3de24d=_0x18f84b['locale'];_0x18f84b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x96cc63=>{if('formatBlock'!=_0x96cc63['type']&&'formatInline'!=_0x96cc63['type'])return;const {data:_0x44f167}=_0x96cc63;if(_0x44f167){if('imageTextAlternative'==_0x44f167['commandName']){const _0x3ea698=_0x44f167['commandParams'][0x0]['newValue'];return _0x3ea698?{'type':'format','content':o(_0x3de24d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ea698+'\x22')}:{'type':'format','content':o(_0x3de24d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x44f167['commandName']){const _0x4f64b8=_0x44f167['commandParams'][0x0]['width'];return _0x4f64b8?{'type':'format','content':o(_0x3de24d,'*Set\x20image\x20width:*\x20%0',_0x4f64b8)}:{'type':'format','content':o(_0x3de24d,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x495318=this['editor']['locale'],_0x1aab43=this['editor']['plugins']['get']('TrackChangesEditing');_0x1aab43['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1aab43['registerBlockAttribute']('src'),_0x1aab43['descriptionFactory']['registerDescriptionCallback'](_0x4742d6=>{if('attribute'!=_0x4742d6['type'])return;const {data:_0x4aaea3}=_0x4742d6;return _0x4aaea3&&'src'==_0x4aaea3['key']?_0x4aaea3['newValue']&&_0x4aaea3['oldValue']?{'type':'format','content':o(_0x495318,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x476500=this['editor']['plugins']['get']('TrackChangesEditing');_0x476500['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x476500['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x476500['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x476500['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9a5d26=this['editor'],_0x4bebc4=_0x9a5d26['locale'];_0x9a5d26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x296dd2=>{if('formatBlock'!=_0x296dd2['type']&&'formatInline'!=_0x296dd2['type'])return;const {data:_0x10a8d7}=_0x296dd2;if(!_0x10a8d7||'replaceImageSource'!=_0x10a8d7['commandName'])return;return{'type':'format','content':o(_0x4bebc4,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x38bc3e{['afterInit'](){const _0x3dec17=this['editor'];if(!_0x3dec17['plugins']['has']('ImageStyleEditing'))return;const _0x1d3fab=_0x3dec17['plugins']['get']('TrackChangesEditing'),_0x1e6e20=_0x3dec17['plugins']['get']('ImageUtils'),_0x40c1e1={};_0x1d3fab['enableCommand']('imageStyle',(_0xf4f009,_0x452bda)=>{const _0x2215d8=_0x3dec17['plugins']['get']('Users')['me'],_0x4b5e1a=_0x3dec17['commands']['get']('imageStyle');let _0x2d8a35=_0x1e6e20['getClosestSelectedImageElement'](_0x3dec17['model']['document']['selection']),_0x3f1cfc=_0x3dec17['model']['createRangeOn'](_0x2d8a35),_0x3c0237=_0x4b5e1a['value'];if(_0x3c0237==_0x452bda['value'])return;const _0x524ac5={'commandName':'imageStyle','commandParams':[_0x452bda],'formatGroupId':_0x62ed8e()};_0x3dec17['model']['change'](()=>{if(_0x1d3fab['getSuggestions']()['filter'](_0xf0b5f5=>_0xf0b5f5['isInContent']&&_0x2215d8==_0xf0b5f5['author']&&('formatBlock'==_0xf0b5f5['type']||'formatInline'==_0xf0b5f5['type'])&&('imageStylePreApply'==_0xf0b5f5['subType']||'imageStylePostApply'==_0xf0b5f5['subType'])&&_0xf0b5f5['getFirstRange']()['isEqual'](_0x3f1cfc))['forEach'](_0x3937bd=>_0x1d3fab['discardSuggestion'](_0x3937bd['head'])),_0x2d8a35=_0x1e6e20['getClosestSelectedImageElement'](_0x3dec17['model']['document']['selection']),_0x3f1cfc=_0x3dec17['model']['createRangeOn'](_0x2d8a35),_0x4b5e1a['refresh'](),_0x3dec17['commands']['get']('imageTypeInline')['refresh'](),_0x3dec17['commands']['get']('imageTypeBlock')['refresh'](),_0x3c0237=_0x4b5e1a['value'],_0x3c0237!=_0x452bda['value'])return _0x1e6e20['isInlineImage'](_0x2d8a35)&&_0x4b5e1a['shouldConvertImageType'](_0x452bda['value'],_0x2d8a35)?(_0xf4f009({..._0x452bda,'setImageSizes':!0x1}),_0x2d8a35=_0x1e6e20['getClosestSelectedImageElement'](_0x3dec17['model']['document']['selection']),void _0x1d3fab['markBlockFormat'](_0x2d8a35,{..._0x524ac5,'commandReversedParams':[{'value':_0x3c0237||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e6e20['isBlockImage'](_0x2d8a35)?_0x1d3fab['markBlockFormat'](_0x2d8a35,_0x524ac5,[],'imageStylePostApply'):_0x1d3fab['markInlineFormat'](_0x3f1cfc,_0x524ac5,'imageStylePostApply'));});});for(const _0x261d9c of _0x3dec17['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x40c1e1[_0x261d9c['name']]=_0x261d9c['title']['toLowerCase']();_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1b8757])=>{_0x1e6e20['setImageNaturalSizeAttributes'](_0x1b8757['getContainedElement']());}),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x513da2,_0x11f398)=>{_0x1d3fab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x513da2,{'commandName':_0x11f398['commandName'],'commandParams':_0x11f398['commandReversedParams']});}),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x447416,_0xc7067d){if(_0x407fef(_0x447416,_0xc7067d))return[_0x447416,_0xc7067d];if(_0x407fef(_0xc7067d,_0x447416))return[_0xc7067d,_0x447416];return null;});const _0x5e6df2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x407fef(_0xe39e97,_0x38e7d2){const _0x354d70=_0x5e6df2['findIndex'](({type:_0x3b890c,subType:_0x4e19b3})=>_0xe39e97['type']==_0x3b890c&&_0xe39e97['subType']==_0x4e19b3),_0x14a55b=_0x5e6df2['findIndex'](({type:_0x29becf,subType:_0x2f8b2a})=>_0x38e7d2['type']==_0x29becf&&_0x38e7d2['subType']==_0x2f8b2a);if(_0x354d70<0x0||_0x14a55b<0x0)return!0x1;const _0x45b28f=_0xe39e97['getFirstRange'](),_0x21cba4=_0x38e7d2['getFirstRange']();if((0x0==_0x354d70||0x1==_0x354d70)&&0x2==_0x14a55b&&_0x45b28f['isIntersecting'](_0x21cba4))return!0x0;if(0x2==_0x354d70&&0x3==_0x14a55b){const _0x5b5b53=_0x1d3fab['_findSuggestions'](_0x45b28f,'insertion')['filter'](({suggestion:_0x56bfcd,meta:_0x26353b})=>_0x26353b['isOwn']&&'convertInlineImageToBlock'==_0x56bfcd['subType']);if(_0x5b5b53['length']>0x1&&_0x21cba4['end']['isEqual'](_0x45b28f['start']))return!0x0;if(0x1==_0x5b5b53['length']&&(_0x45b28f['start']['isEqual'](_0x21cba4['end'])||_0x45b28f['end']['isEqual'](_0x21cba4['start'])))return!0x0;}if(0x3==_0x354d70&&0x3==_0x14a55b&&_0x45b28f['start']['isBefore'](_0x21cba4['start'])){const _0x93ef10=_0x45b28f['end']['nodeAfter'],_0x15a2ce=_0x21cba4['start']['nodeBefore'];return _0x1e6e20['isBlockImage'](_0x93ef10)&&_0x93ef10===_0x15a2ce;}return!0x1;}_0x3dec17['model']['document']['registerPostFixer'](()=>{let _0x4ba3dc=!0x1;const _0xbc90f7=Array['from'](_0x3dec17['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5277c2,data:_0x1766ba}of _0xbc90f7){const {group:_0x24e54b,type:_0x1ad25b,subType:_0x58f604,id:_0x5d8dc9}=_0x1d3fab['_splitMarkerName'](_0x5277c2);if('suggestion'==_0x24e54b&&_0x1d3fab['hasSuggestion'](_0x5d8dc9)){if('formatBlock'==_0x1ad25b&&('imageStylePreApply'==_0x58f604||'imageStylePostApply'==_0x58f604)){const _0x30aaf5=_0x1d3fab['getSuggestion'](_0x5d8dc9);if(_0x1766ba['newRange']){const _0x4fa890=_0x30aaf5['getFirstRange']()['getContainedElement']();if(_0x1e6e20['isBlockImage'](_0x4fa890))continue;_0x1d3fab['discardSuggestion'](_0x30aaf5),_0x4ba3dc=!0x0;}}if('insertion'==_0x1ad25b&&'imageCaption'==_0x58f604&&!_0x1766ba['newRange']){const _0xdbf5cc=_0x1d3fab['getSuggestion'](_0x5d8dc9);_0xdbf5cc['next']&&_0xdbf5cc['next']['isInContent']&&(_0x1d3fab['discardSuggestion'](_0xdbf5cc['next']),_0x4ba3dc=!0x0);}}}return _0x4ba3dc;}),this['_registerLegacyDescription'](_0x40c1e1);}['_registerLegacyDescription'](_0x4e3b32){const _0x1eb04f=this['editor'],_0x102225=_0x1eb04f['locale'];_0x1eb04f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x409b9e=>{if('formatBlock'!=_0x409b9e['type']&&'formatInline'!=_0x409b9e['type'])return;const {data:_0x22939e}=_0x409b9e;if(!_0x22939e||'imageStyle'!=_0x22939e['commandName'])return;const _0x4027a2=_0x22939e['commandParams'][0x0]['value'];return _0x5892db('side'===_0x4027a2?o(_0x102225,'FORMAT_SIDE_IMAGE'):_0x4e3b32[_0x4027a2]||_0x4027a2);function _0x5892db(_0xafd9ac){return{'type':'format','content':o(_0x102225,'*Format:*\x20%0',_0xafd9ac)};}});}}class ct extends _0x38bc3e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x12bde9){super(_0x12bde9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc0288f=this['editor'],_0x449b1e=_0xc0288f['commands']['get']('importWord'),_0x5c485e=_0xc0288f['commands']['get']('trackChanges');_0x449b1e&&(_0x449b1e['on']('execute',(_0x42c306,[,_0x2c3bf9])=>{this['_trackChangesValueDuringImport']=_0x5c485e['value'],_0x2c3bf9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x449b1e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x449b1e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5c485e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc0288f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2a2337,_0x38efb9){const {suggestions:_0x5ab74a}=_0x38efb9,_0x4b13d6=this['editor']['commands']['get']('trackChanges'),_0x5974b8=_0x4b13d6['value'];this['_trackChangesValueDuringImport']!==_0x5974b8&&(_0x4b13d6['execute'](),this['_trackChangesExecuted']=!0x0),_0x5ab74a&&_0x5ab74a['forEach'](({id:_0x5274e1,type:_0x170071,author:_0x4db1f1,created_at:_0x31f501})=>{const _0x307d2f={'id':_0x5274e1,'type':_0x170071,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4db1f1,'createdAt':_0x31f501?new Date(_0x31f501):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x307d2f);});}}class ut extends _0x38bc3e{['afterInit'](){const _0x8fbd1b=this['editor'],_0x3f52c6=_0x8fbd1b['plugins']['get']('TrackChangesEditing');if(_0x8fbd1b['plugins']['has']('IndentEditing')&&(_0x3f52c6['enableCommand']('indent'),_0x3f52c6['enableCommand']('outdent')),_0x8fbd1b['plugins']['has']('IndentBlock')){for(const _0x4b5ed8 of['indentBlock','outdentBlock'])_0x3f52c6['enableDefaultAttributesIntegration'](_0x4b5ed8);}const _0x2aff2b=_0x8fbd1b['locale'];_0x3f52c6['registerBlockAttribute']('blockIndent'),_0x3f52c6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2aff2b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e5cba=this['editor'],_0xe3c332=_0x1e5cba['locale'],_0x36606e=_0x1e5cba['plugins']['get']('TrackChangesEditing');_0x36606e['descriptionFactory']['registerDescriptionCallback'](_0xb95ae8=>{if('formatBlock'!=_0xb95ae8['type'])return;const {data:_0x2f6c59}=_0xb95ae8;if(!_0x2f6c59)return;if('indentBlock'!=_0x2f6c59['commandName']&&'outdentBlock'!=_0x2f6c59['commandName'])return;const _0x28490f=_0xb95ae8['getItems']()[0x0],_0x238bca=_0x36606e['descriptionFactory']['getItemLabel'](_0x28490f);return'indentBlock'==_0x2f6c59['commandName']?{'type':'format','content':o(_0xe3c332,'*Indent:*\x20%0',_0x238bca)}:'outdentBlock'==_0x2f6c59['commandName']?{'type':'format','content':o(_0xe3c332,'*Outdent:*\x20%0',_0x238bca)}:void 0x0;});}}class ft extends _0x38bc3e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x38bc3e{['afterInit'](){const _0x3437af=this['editor'];if(!_0x3437af['plugins']['has']('LinkEditing'))return;const _0x3bb594=_0x3437af['plugins']['get']('TrackChangesEditing'),_0x171dfb=_0x3437af['commands']['get']('link');_0x3bb594['enableDefaultAttributesIntegration']('link'),_0x3bb594['enableDefaultAttributesIntegration']('unlink'),_0x3bb594['registerInlineAttribute']('linkHref');for(const _0x854dec of _0x171dfb['manualDecorators'])_0x3bb594['registerInlineAttribute'](_0x854dec['id']),_0x3bb594['descriptionFactory']['registerAttributeLabel'](_0x854dec['id'],'link\x20('+_0x854dec['label']['toLowerCase']()+')');_0x3bb594['descriptionFactory']['registerDescriptionCallback'](_0x229b46=>{if('attribute'!=_0x229b46['type'])return;const {data:_0x5f4df9}=_0x229b46;if(!_0x5f4df9||'linkHref'!=_0x5f4df9['key'])return;const _0x3f4e6f=_0x5f4df9['newValue'],_0x22397e=_0x3437af['locale'];return{'type':'format','content':null==_0x3f4e6f?o(_0x22397e,'*Remove\x20link*'):o(_0x22397e,'*Set\x20link:*\x20%0','\x22'+_0x3f4e6f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x186dec=this['editor'],_0x21e4c9=_0x186dec['locale'];_0x186dec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x430bd6=>{if('formatInline'!=_0x430bd6['type'])return;const {data:_0x131983}=_0x430bd6;if(_0x131983){if('link'==_0x131983['commandName']){const _0x47a807=_0x131983['commandParams'][0x0];return{'type':'format','content':o(_0x21e4c9,'*Set\x20link:*\x20%0','\x22'+_0x47a807+'\x22')};}return'unlink'==_0x131983['commandName']?{'type':'format','content':o(_0x21e4c9,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x38bc3e{['afterInit'](){const _0x247b3b=this['editor'],_0x5a910e=_0x247b3b['locale'];if(!_0x247b3b['plugins']['has']('LegacyListEditing'))return;const _0x14c008=_0x247b3b['plugins']['get']('TrackChangesEditing'),_0x36b268=_0x247b3b['plugins']['has']('LegacyTodoListEditing');function _0x285916(_0x440881){return()=>{const _0x42fb4f=_0x247b3b['model']['document']['selection'],_0x53588e=_0x247b3b['commands']['get'](_0x440881);if(_0x53588e['value'])return void _0x247b3b['execute']('paragraph',{});const _0x29895a=_0x440881['slice'](0x0,-0x4),_0x4aecd7=function(_0xae44f8,_0x104c60,_0x4746a0){let _0x4fe733=Array['from'](_0xae44f8)['filter'](_0x384962=>function(_0x434f14,_0x27c35f){return _0x27c35f['checkChild'](_0x434f14['parent'],'listItem')&&!_0x27c35f['isObject'](_0x434f14);}(_0x384962,_0x4746a0));_0x4fe733=_0x4fe733['filter'](_0x589af0=>!_0x589af0['is']('element','listItem')||_0x589af0['getAttribute']('listType')!=_0x104c60);const _0x4c58f3=new Set();for(const _0x5ce033 of _0x4fe733)_0x5ce033['is']('element','listItem')?_0x4c58f3['add'](Le(_0x5ce033)):_0x4c58f3['add'](_0x5ce033);return Array['from'](_0x4c58f3);}(_0x42fb4f['getSelectedBlocks'](),_0x29895a,_0x247b3b['model']['schema']);_0x247b3b['model']['change'](()=>{for(const _0x488a24 of _0x4aecd7)_0x14c008['markBlockFormat'](_0x488a24,{'commandName':_0x440881,'commandParams':[{'forceValue':!_0x53588e['value']}],'formatGroupId':'blockName'},Ee(_0x488a24));});};}function _0x44976a(_0x318c9a){return()=>{const _0x527309=function(_0x3bce22){let _0x3b3017=Array['from'](_0x3bce22);const _0x350b1d=_0x3b3017['findIndex'](_0x59cb89=>'listItem'!=_0x59cb89['name']);return _0x350b1d>-0x1&&(_0x3b3017=_0x3b3017['slice'](0x0,_0x350b1d)),_0x3b3017;}(_0x247b3b['model']['document']['selection']['getSelectedBlocks']()),_0x177d26=_0x247b3b['model']['createRange'](_0x247b3b['model']['createPositionAt'](_0x527309[0x0],'before'),_0x247b3b['model']['createPositionAt'](_0x527309[_0x527309['length']-0x1],'end'));_0x247b3b['model']['change'](()=>{_0x14c008['markBlockFormat'](_0x177d26,{'commandName':_0x318c9a,'commandParams':[],'formatGroupId':'listIndent'},function(_0xff8808){const _0x5b5c0b=new Set();for(const _0x29b1e1 of _0xff8808){let _0x2b04da=_0x29b1e1['nextSibling'];for(;_0x2b04da&&_0x2b04da['getAttribute']('listIndent')>_0x29b1e1['getAttribute']('listIndent');)_0x5b5c0b['add'](_0x2b04da),_0x2b04da=_0x2b04da['nextSibling'];}return Array['from'](_0x5b5c0b);}(_0x527309));});};}_0x14c008['enableCommand']('numberedList',_0x285916('numberedList')),_0x14c008['enableCommand']('bulletedList',_0x285916('bulletedList')),_0x36b268&&_0x14c008['enableCommand']('todoList',_0x285916('todoList')),_0x14c008['enableCommand']('indentList',_0x44976a('indentList')),_0x14c008['enableCommand']('outdentList',_0x44976a('outdentList')),_0x36b268&&_0x14c008['enableCommand']('checkTodoList',()=>{const _0x384d69=_0x247b3b['commands']['get']('checkTodoList'),_0x2ced82=Array['from'](_0x384d69['_selectedElements']);_0x2ced82['filter'](_0x21c99e=>_0x21c99e['getAttribute']('todoListChecked')!=_0x384d69['value']),_0x247b3b['model']['change'](()=>{for(const _0x1568cd of _0x2ced82)_0x14c008['markBlockFormat'](_0x1568cd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x384d69['value']}]});});}),_0x14c008['descriptionFactory']['registerElementLabel']('listItem',_0xa20c01=>o(_0x5a910e,'ELEMENT_LIST_ITEM',_0xa20c01)),_0x14c008['descriptionFactory']['registerDescriptionCallback'](_0x44ff4b=>{if('formatBlock'!=_0x44ff4b['type']&&'formatInline'!=_0x44ff4b['type'])return;const {data:_0xc0b013}=_0x44ff4b;if(_0xc0b013){if('numberedList'==_0xc0b013['commandName']||'bulletedList'==_0xc0b013['commandName']||'todoList'==_0xc0b013['commandName'])switch(_0xc0b013['commandName']['replace']('List','')){case'bulleted':return _0x568549(o(_0x5a910e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x568549(o(_0x5a910e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x568549(o(_0x5a910e,'ELEMENT_TODO_LIST'));}if('indentList'==_0xc0b013['commandName'])return{'type':'format','content':o(_0x5a910e,'*Indent:*\x20%0',o(_0x5a910e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xc0b013['commandName'])return{'type':'format','content':o(_0x5a910e,'*Outdent:*\x20%0',o(_0x5a910e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xc0b013['commandName'])return _0xc0b013['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a910e,'*Check\x20item*')}:{'type':'format','content':o(_0x5a910e,'*Uncheck\x20item*')};}function _0x568549(_0x62b9b3){return{'type':'format','content':o(_0x5a910e,'*Change\x20to:*\x20%0',_0x62b9b3)};}});}}function Le(_0x5c8687){const _0x4a97aa=_0x5c8687['getAttribute']('listIndent');if(0x0==_0x4a97aa)return _0x5c8687;let _0x46e66c=_0x5c8687;for(;_0x5c8687['previousSibling']&&_0x5c8687['previousSibling']['is']('element','listItem');){const _0x50a952=_0x5c8687['previousSibling']['getAttribute']('listIndent');if(_0x50a952==_0x4a97aa)_0x46e66c=_0x5c8687['previousSibling'];else{if(_0x50a952<_0x4a97aa)break;}_0x5c8687=_0x5c8687['previousSibling'];}return _0x46e66c;}function Ee(_0x15553e){const _0x31c765=[];if(_0x15553e['is']('element','listItem')&&_0x15553e['getAttribute']('listIndent')>0x0){let _0x3d0fde=_0x15553e['nextSibling'];for(;_0x3d0fde&&'listItem'==_0x3d0fde['name']&&_0x3d0fde['getAttribute']('listIndent')==_0x15553e['getAttribute']('listIndent');)_0x31c765['push'](_0x3d0fde),_0x3d0fde=_0x3d0fde['nextSibling'];}return _0x31c765;}class Q extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3d5a1f=this['editor']['config']['get']('list.properties'),_0x4d214e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d5a1f['styles']&&_0x4d214e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3d5a1f['reversed']&&_0x4d214e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3d5a1f['startIndex']&&_0x4d214e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d214e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x403b35,_0x2d4341={}){const _0xc2996d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d49d7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xc2996d['markMultiRangeBlockFormat'](_0x3d49d7,{'commandName':'listStyle','commandParams':[{'type':_0x2d4341['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2546fe,_0x294187={}){const _0x50e88c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37db83=this['_getSuggestionBlocks'](_0x116df9=>_0x116df9['is']('element','listItem')&&'numbered'===_0x116df9['getAttribute']('listType'));if(_0x37db83['length']<0x1)return;const _0x3fde25=_0x37db83['map'](_0x3123a6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3123a6,'before'),this['editor']['model']['createPositionAt'](_0x3123a6,0x0)));this['editor']['model']['change'](()=>{_0x50e88c['markMultiRangeBlockFormat'](_0x3fde25,{'commandName':'listReversed','commandParams':[{'reversed':_0x294187['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x10d031,_0x44c8f8={}){const _0x25823d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e4f05=this['_getSuggestionBlocks'](_0x30a5f3=>_0x30a5f3['is']('element','listItem')&&'numbered'===_0x30a5f3['getAttribute']('listType'));if(_0x2e4f05['length']<0x1)return;const _0x5da5f0=_0x2e4f05['map'](_0x1c69ad=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c69ad,'before'),this['editor']['model']['createPositionAt'](_0x1c69ad,0x0)));this['editor']['model']['change'](()=>{_0x25823d['markMultiRangeBlockFormat'](_0x5da5f0,{'commandName':'listStart','commandParams':[{'startIndex':_0x44c8f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x27fbe5){if('formatBlock'!=_0x27fbe5['type']&&'formatInline'!=_0x27fbe5['type'])return;const _0x2a9161=this['editor']['locale'],{data:_0x4ead2f}=_0x27fbe5;if(!_0x4ead2f)return;let _0x1e273e,_0x3022a6;switch(_0x4ead2f['commandName']){case'listStyle':_0x1e273e='*Change\x20to:*\x20%0',_0x3022a6={'type':'format','content':o(_0x2a9161,_0x1e273e,o(_0x2a9161,this['_getTranslationKeyForListStyle'](_0x4ead2f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1e273e=_0x4ead2f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3022a6={'type':'format','content':o(_0x2a9161,_0x1e273e)};break;case'listStart':_0x1e273e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3022a6={'type':'format','content':o(_0x2a9161,_0x1e273e,_0x4ead2f['commandParams'][0x0]['startIndex'])};}return _0x3022a6;}['_getSuggestionBlocksForListStyle'](){const _0x129617=this['editor']['plugins']['get']('LegacyListUtils');let _0x361939=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x361939[0x0]?.['is']('element','listItem')&&_0x361939['unshift'](..._0x129617['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x361939[_0x361939['length']-0x1]?.['is']('element','listItem')&&_0x361939['push'](..._0x129617['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x361939=[...new Set(_0x361939)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x361939=_0x361939['filter'](_0x428f56=>_0x428f56['is']('element','listItem'))),_0x361939;}['_getSuggestionBlocks'](_0x4c2331){const _0x3c0602=this['editor']['plugins']['get']('LegacyListUtils');let _0x7038fe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c2331)['map'](_0x27f4dc=>{const _0x5e796b=this['editor']['model']['createPositionAt'](_0x27f4dc,0x0);return[..._0x3c0602['getSiblingNodes'](_0x5e796b,'backward'),..._0x3c0602['getSiblingNodes'](_0x5e796b,'forward')];})['flat']();return _0x7038fe=[...new Set(_0x7038fe)],_0x7038fe;}['_getTranslationKeyForListStyle'](_0x542714){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x542714)||'default')['toUpperCase']()+'_LIST_'+_0x542714['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x38bc3e{['afterInit'](){const _0x3f6139=this['editor'];if(!_0x3f6139['plugins']['has']('MediaEmbedEditing'))return;const _0xc957f9=_0x3f6139['plugins']['get']('TrackChangesEditing'),_0x54387f=_0x3f6139['locale'];_0xc957f9['enableCommand']('mediaEmbed'),_0xc957f9['descriptionFactory']['registerElementLabel']('media',_0x7c3b0b=>o(_0x54387f,'ELEMENT_MEDIA',_0x7c3b0b)),_0x3f6139['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3c678f,{writer:_0x4d7094,options:_0x3e9842})=>{if(_0x3e9842['showSuggestionHighlights'])return _0x4d7094['createEmptyElement']('div');},'converterPriority':'high'}),_0x3f6139['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1075ff,_0x5dc751,_0xbe3d75)=>{_0xbe3d75['options']['showSuggestionHighlights']&&_0x1075ff['stop']();},{'priority':'high'});}}class mt extends _0x38bc3e{['afterInit'](){const _0x5cf2c5=this['editor'];_0x5cf2c5['plugins']['has']('MentionEditing')&&_0x5cf2c5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x38bc3e{['afterInit'](){const _0x1b5537=this['editor'];if(!_0x1b5537['plugins']['has']('MergeFieldsEditing'))return;_0x1b5537['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1b5537['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x21a575=_0x1b5537['plugins']['get']('TrackChangesEditing'),_0x531d5e=_0x1b5537['locale'];_0x21a575['descriptionFactory']['registerElementLabel']('mergeField',_0x36dbf2=>o(_0x531d5e,'ELEMENT_MERGE_FIELD',_0x36dbf2)),_0x21a575['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x11a6ec=>o(_0x531d5e,'ELEMENT_MERGE_FIELD',_0x11a6ec)),_0x21a575['descriptionFactory']['registerDescriptionCallback'](_0x3ceca4=>{if('insertion'!=_0x3ceca4['type']&&'deletion'!=_0x3ceca4['type'])return;const _0xcac381=_0x3ceca4['getContainedElement']();if(null==_0xcac381)return;if(!_0xcac381['is']('element','mergeField')&&!_0xcac381['is']('element','mergeFieldBlock'))return;const _0x5d7e66=_0x1b5537['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xcac381['getAttribute']('id'));return'insertion'==_0x3ceca4['type']?{'type':'insertion','content':o(_0x531d5e,'*Insert:*\x20%0','\x22'+_0x5d7e66+'\x22\x20'+o(_0x531d5e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x531d5e,'*Remove:*\x20%0','\x22'+_0x5d7e66+'\x22\x20'+o(_0x531d5e,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x38bc3e{['afterInit'](){const _0x456b53=this['editor'],_0x5021a0=_0x456b53['plugins']['get']('TrackChangesEditing');_0x456b53['plugins']['has']('MultiLevelList')&&(_0x5021a0['enableDefaultAttributesIntegration']('multiLevelList'),_0x5021a0['registerBlockAttribute']('listMarkerStyle'),_0x5021a0['descriptionFactory']['registerDescriptionCallback'](_0xd16ec2=>this['handleDescriptions'](_0xd16ec2)));}['handleDescriptions'](_0x5103ca){const _0x3b3f0b=this['editor']['locale'],{data:_0x4f9f36}=_0x5103ca,_0x2cecd2={'type':'format','content':''};if(_0x4f9f36&&'listMarkerStyle'==_0x4f9f36['key']){if(!_0x4f9f36['oldValue'])return{'type':'format','content':o(_0x3b3f0b,'*Set\x20format:*\x20%0',o(_0x3b3f0b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f9f36['newValue']+')'};if(!_0x4f9f36['newValue']){let _0x2f371d=_0x5103ca['head'];for(;_0x2f371d;){if(_0x2f371d['data']&&'listType'==_0x2f371d['data']['key']&&_0x2f371d['data']['newValue'])return _0x2cecd2;_0x2f371d=_0x2f371d['next'];}return{'type':'format','content':o(_0x3b3f0b,'*Remove\x20format:*\x20%0',o(_0x3b3f0b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f9f36['oldValue']+')'};}}}}class kt extends _0x38bc3e{['afterInit'](){const _0x456620=this['editor'];if(!_0x456620['plugins']['has']('PageBreakEditing'))return;_0x456620['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x487e38=_0x456620['plugins']['get']('TrackChangesEditing'),_0x539906=_0x456620['locale'];_0x487e38['descriptionFactory']['registerElementLabel']('pageBreak',_0x4cf6cc=>o(_0x539906,'ELEMENT_PAGE_BREAK',_0x4cf6cc));}}class bt extends _0x38bc3e{['afterInit'](){const _0x16eaa0=this['editor'];if(!_0x16eaa0['plugins']['has']('Paragraph'))return;const _0x3de370=_0x16eaa0['locale'],_0x3a5b27=_0x16eaa0['plugins']['get']('TrackChangesEditing');_0x3a5b27['descriptionFactory']['registerElementLabel']('paragraph',_0xa43192=>o(_0x3de370,'ELEMENT_PARAGRAPH',_0xa43192)),_0x3a5b27['enableDefaultAttributesIntegration']('paragraph'),_0x3a5b27['enableCommand']('insertParagraph'),_0x16eaa0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16eaa0),{'priority':'highest'}),_0x16eaa0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40596,_0xa54fce,_0x4a526d)=>{_0x4a526d['options']['showSuggestionHighlights']&&nr(_0x16eaa0,{'showActiveMarker':!0x1})(_0x40596,_0xa54fce,_0x4a526d);},{'priority':'highest'});const _0x389c0b=_0x3a5b27['descriptionFactory'];_0x389c0b['registerDescriptionCallback'](_0x501333=>{if('insertion'!==_0x501333['type'])return;const {start:_0x523ef7,end:_0x5ed7d8}=_0x501333['getFirstRange']();if(!_0x523ef7['isTouching'](_0x5ed7d8)||!_0x523ef7['nodeAfter'])return;const _0x475164=_0x16eaa0['model']['schema'],_0x27a4fd=_0x523ef7['nodeAfter'];return _0x475164['isBlock'](_0x27a4fd)&&!_0x475164['isLimit'](_0x27a4fd)&&_0x475164['checkChild'](_0x27a4fd,'$text')?{'type':'insertion','content':o(_0x3de370,'*Insert:*\x20%0',_0x389c0b['getItemLabel'](_0x27a4fd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55efc7=this['editor'],_0x5765d5=_0x55efc7['locale'];_0x55efc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ccb06=>{if('formatBlock'!=_0x2ccb06['type'])return;const {data:_0x4360a8}=_0x2ccb06;return _0x4360a8&&'paragraph'==_0x4360a8['commandName']?{'type':'format','content':o(_0x5765d5,'*Change\x20to:*\x20%0',o(_0x5765d5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5de6f3,{showActiveMarker:_0x4cd88e=!0x0}={}){return(_0x58f950,_0x45b215,_0x3e2b89)=>{const _0xcbc38e=_0x5de6f3['plugins']['get']('TrackChangesEditing'),_0x5685f9=_0x45b215['markerRange']['start'],_0x24facd=_0x45b215['markerRange']['end'],_0x19710d=_0x5de6f3['model']['schema'];if(!_0x5685f9['isTouching'](_0x24facd)||!_0x5685f9['nodeAfter'])return;const _0x421574=_0x5685f9['nodeAfter'];if(_0x19710d['isBlock'](_0x421574)&&!_0x19710d['isLimit'](_0x421574)&&_0x19710d['checkChild'](_0x421574,'$text')){if(!_0x3e2b89['consumable']['consume'](_0x45b215['markerRange'],_0x58f950['name']))return;const {authorId:_0x4d4b6d}=_0xcbc38e['_splitMarkerName'](_0x45b215['markerName']),_0x8a57df=_0x3e2b89['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4d4b6d}),_0x5df962=_0x3e2b89['mapper']['toViewPosition'](_0x24facd);_0x4cd88e&&_0xcbc38e['activeMarkers']['includes'](_0x45b215['markerName'])&&_0x3e2b89['writer']['addClass']('ck-suggestion-marker--active',_0x8a57df),_0x3e2b89['writer']['insert'](_0x5df962,_0x8a57df),_0x3e2b89['mapper']['bindElementToMarker'](_0x8a57df,_0x45b215['markerName']);}};}class yt extends _0x38bc3e{['afterInit'](){const _0x56911c=this['editor'];if(!_0x56911c['plugins']['has']('RemoveFormatEditing'))return;_0x56911c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4163fc=this['editor'];_0x4163fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x111d2e=>{if('formatBlock'!=_0x111d2e['type']&&'formatInline'!=_0x111d2e['type'])return;const {data:_0x892cd7}=_0x111d2e;return _0x892cd7&&'removeFormat'==_0x892cd7['commandName']?{'type':'format','content':o(_0x4163fc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x38bc3e{['afterInit'](){const _0x36c8ad=this['editor'];if(!_0x36c8ad['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x14d124=_0x36c8ad['plugins']['get']('TrackChangesEditing');_0x14d124['enableCommand']('goToPreviousRestrictedEditingException'),_0x14d124['enableCommand']('goToNextRestrictedEditingException');const _0x4e010f=_0x36c8ad['plugins']['get']('RestrictedEditingModeEditing');_0x4e010f['enableCommand']('trackChanges'),_0x4e010f['enableCommand']('acceptSuggestion'),_0x4e010f['enableCommand']('discardSuggestion'),_0x4e010f['enableCommand']('acceptAllSuggestions'),_0x4e010f['enableCommand']('discardAllSuggestions'),_0x4e010f['enableCommand']('acceptSelectedSuggestions'),_0x4e010f['enableCommand']('discardSelectedSuggestions');}}class St extends _0x38bc3e{static get['requires'](){return[_0x2216f1];}['init'](){const _0x6be5cf=this['editor'],_0x236712=_0x6be5cf['plugins']['get']('TrackChangesEditing');_0x236712['enableCommand']('shiftEnter'),_0x6be5cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x6be5cf),{'priority':'high'}),_0x6be5cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x6be5cf),{'priority':'high'}),_0x6be5cf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x262c84,_0x280177,_0x4c795b)=>{_0x4c795b['options']['showSuggestionHighlights']&&ke(_0x6be5cf,{'showActiveMarker':!0x1})(_0x262c84,_0x280177,_0x4c795b);}),_0x236712['descriptionFactory']['registerElementLabel']('softBreak',_0x4a932b=>o(_0x6be5cf['locale'],'ELEMENT_LINE_BREAK',_0x4a932b));}}function ke(_0xbf0d7d,{showActiveMarker:_0x14ace0=!0x0}={}){return(_0x440624,_0x1d4a47,_0x527a19)=>{const _0xc02723=_0xbf0d7d['plugins']['get']('TrackChangesEditing');if(!_0x527a19['consumable']['test'](_0x1d4a47['markerRange'],_0x440624['name']))return;const _0x156ba0=_0xbf0d7d['model'];for(const _0x1359ea of _0x1d4a47['markerRange']['getItems']()){if(!_0x1359ea['is']('element','softBreak'))continue;const _0x519033='deletion'==_0x1d4a47['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x22c412}=_0xc02723['_splitMarkerName'](_0x1d4a47['markerName']),_0x2a1582=_0x527a19['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x519033,'data-author-id':_0x22c412}),_0x266944=_0x527a19['mapper']['toViewPosition'](_0x156ba0['createPositionBefore'](_0x1359ea));_0x14ace0&&_0xc02723['activeMarkers']['includes'](_0x1d4a47['markerName'])&&_0x527a19['writer']['addClass']('ck-suggestion-marker--active',_0x2a1582),_0x527a19['writer']['insert'](_0x266944,_0x2a1582),_0x527a19['mapper']['bindElementToMarker'](_0x2a1582,_0x1d4a47['markerName']);}};}class At extends _0x38bc3e{['afterInit'](){const _0x7573c3=this['editor'],_0x38a2f4=_0x7573c3['model'],_0x5e1738=_0x7573c3['locale'];if(!_0x7573c3['plugins']['has']('StandardEditingModeEditing'))return;const _0x1333f6=_0x7573c3['plugins']['get']('TrackChangesEditing'),_0x2d186e='restrictedEditingException',_0xcf192a=_0x7573c3['commands']['get'](_0x2d186e);_0x1333f6['enableCommand'](_0x2d186e,(_0x4e7341,_0x4fc1ed={})=>{const _0x5e82ea=_0x38a2f4['document']['selection'];if(_0x5e82ea['isCollapsed'])return void _0x4e7341(_0x4fc1ed);const _0x44dc09=void 0x0!==_0x4fc1ed['forceValue']?_0x4fc1ed['forceValue']:!_0xcf192a['value'];_0x38a2f4['change'](()=>{const _0x5b3f5b=Array['from'](_0x5e82ea['getRanges']());for(const _0x2530ef of _0x5b3f5b){const _0x1edbb8=_0x44dc09?[_0x2530ef]:io(_0x2d186e,_0x2530ef,_0x38a2f4);for(const _0x265c16 of _0x1edbb8)_0x1333f6['markInlineFormat'](_0x265c16,{'commandName':_0x2d186e,'commandParams':[{'forceValue':_0x44dc09}]});}});}),_0x1333f6['descriptionFactory']['registerDescriptionCallback'](_0x429260=>{if('formatBlock'!=_0x429260['type']&&'formatInline'!=_0x429260['type'])return;const {data:_0x2f4a19}=_0x429260;return _0x2f4a19&&_0x2f4a19['commandName']==_0x2d186e?_0x2f4a19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e1738,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5e1738,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x38bc3e{['afterInit'](){const _0x343a59=this['editor'];if(!_0x343a59['plugins']['has']('Style')||!_0x343a59['plugins']['has']('DataSchema'))return;const _0x41eb76=_0x343a59['plugins']['get']('TrackChangesEditing'),_0x52e693=_0x343a59['locale'],_0x50168c=_0x343a59['config']['get']('style')||{},_0x1de1dd=_0x343a59['plugins']['get']('GeneralHtmlSupport'),_0x4c5261=_0x343a59['plugins']['get']('StyleUtils')['normalizeConfig'](_0x343a59['plugins']['get']('DataSchema'),_0x50168c['definitions']);_0x41eb76['enableDefaultAttributesIntegration']('style');const _0x2534dd=new Set();for(const _0x4b29ff of _0x4c5261['block']){const _0x245116=_0x1de1dd['getGhsAttributeNameForElement'](_0x4b29ff['element']);_0x2534dd['add'](_0x245116);}const _0x14fc2e=new Set();for(const _0x4c8720 of _0x4c5261['inline']){const _0x10d4e8=_0x1de1dd['getGhsAttributeNameForElement'](_0x4c8720['element']);_0x14fc2e['add'](_0x10d4e8);for(const _0x33625f of _0x4c8720['ghsAttributes'])_0x14fc2e['add'](_0x33625f);}for(const _0x1c351b of _0x2534dd)_0x41eb76['registerBlockAttribute'](_0x1c351b),_0x41eb76['descriptionFactory']['registerAttributeLabel'](_0x1c351b,o(_0x52e693,'FORMAT_STYLE'));for(const _0x2eb51f of _0x14fc2e)_0x41eb76['registerInlineAttribute'](_0x2eb51f),_0x41eb76['descriptionFactory']['registerAttributeLabel'](_0x2eb51f,o(_0x52e693,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x462676=this['editor'],_0x140771=_0x462676['locale'];_0x462676['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0f60=>{if('formatBlock'!=_0x5b0f60['type']&&'formatInline'!=_0x5b0f60['type'])return;const {data:_0x43bf01}=_0x5b0f60;return _0x43bf01&&'style'===_0x43bf01['commandName']?_0x43bf01['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x140771,'*Set\x20format:*\x20%0',_0x43bf01['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x140771,'*Remove\x20format:*\x20%0',_0x43bf01['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x38bc3e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x542e28){super(_0x542e28),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e8950=this['editor'],_0x4c3c87=_0x5e8950['model']['document']['selection'];if(!_0x5e8950['plugins']['has']('TableEditing'))return;const _0x4c4e10=_0x5e8950['locale'],_0x58071e=_0x5e8950['plugins']['get']('TrackChangesEditing'),_0xef850f=_0x5e8950['plugins']['get']('TableUtils');_0x58071e['descriptionFactory']['registerElementLabel']('table',_0x4153bb=>o(_0x4c4e10,'ELEMENT_TABLE',_0x4153bb)),this['_setupColumnsRowsFixing'](),_0x58071e['enableCommand']('insertTable'),_0x58071e['enableCommand']('selectTableRow'),_0x58071e['enableCommand']('selectTableColumn');for(const _0x3e401e of['insertTableRowAbove','insertTableRowBelow']){const _0x32b0ab=_0x5e8950['commands']['get'](_0x3e401e);_0x58071e['enableCommand'](_0x3e401e,_0x492beb=>{_0x5e8950['model']['change'](_0x4004a1=>{_0x492beb();const _0x535ebf='above'===_0x32b0ab['order'],_0x31b008=_0xef850f['getSelectionAffectedTableCells'](_0x4c3c87),_0x5e204f=_0xef850f['getRowIndexes'](_0x31b008),_0x4992b7=_0x535ebf?_0x5e204f['first']-0x1:_0x5e204f['last']+0x1,_0x273807=_0x31b008[0x0]['findAncestor']('table'),_0x218290=_0xef850f['createTableWalker'](_0x273807,{'startRow':_0x4992b7,'endRow':_0x4992b7}),_0x2f65a4=Array['from'](_0x218290)['map'](_0x38dab5=>_0x4004a1['createRangeOn'](_0x38dab5['cell']));_0x58071e['markMultiRangeInsertion'](_0x2f65a4,'tableRow');});});}for(const _0x1e1131 of['insertTableColumnLeft','insertTableColumnRight']){const _0x24f408=_0x5e8950['commands']['get'](_0x1e1131);_0x58071e['enableCommand'](_0x1e1131,_0x40d90e=>{_0x5e8950['model']['change'](_0x4f8d9f=>{_0x40d90e();const _0x18e356='left'===_0x24f408['order'],_0x30d4ca=_0xef850f['getSelectionAffectedTableCells'](_0x4c3c87),_0x55581b=_0xef850f['getColumnIndexes'](_0x30d4ca),_0x89bc7c=_0x18e356?_0x55581b['first']-0x1:_0x55581b['last']+0x1,_0x1117af=_0x30d4ca[0x0]['findAncestor']('table'),_0x3aa291=_0xef850f['createTableWalker'](_0x1117af,{'startRow':0x0,'column':_0x89bc7c,'includeAllSlots':!0x1}),_0x54e8ff=Array['from'](_0x3aa291)['map'](_0x4872b7=>_0x4f8d9f['createRangeOn'](_0x4872b7['cell']));_0x58071e['markMultiRangeInsertion'](_0x54e8ff,'tableColumn');});});}for(const _0x22b4c3 of['removeTableRow','removeTableColumn']){const _0x568a5f=_0x22b4c3['substr'](0xb),_0x5b9e58=_0x568a5f['toLowerCase'](),_0x2e4ce5=_0x5b9e58['substr'](0x0,0x3)+'span',_0x407542='table'+_0x568a5f,_0x22f712='min'+_0x568a5f,_0x231837='max'+_0x568a5f;_0x58071e['enableCommand'](_0x22b4c3,()=>{_0x5e8950['model']['change'](_0x4075a2=>{const _0x25e049=_0xef850f['getSelectionAffectedTableCells'](_0x4c3c87),_0x52d438=_0x25e049[0x0]['findAncestor']('table');let _0x3aeb42;if('removeTableRow'==_0x22b4c3){const _0x5b953f=_0xef850f['getRowIndexes'](_0x25e049);_0x3aeb42={'startRow':_0x5b953f['first'],'endRow':_0x5b953f['last'],'includeAllSlots':!0x0};}else{const _0x4a6a49=_0xef850f['getColumnIndexes'](_0x25e049);_0x3aeb42={'startColumn':_0x4a6a49['first'],'endColumn':_0x4a6a49['last'],'includeAllSlots':!0x0};}const _0x340484=_0xef850f['createTableWalker'](_0x52d438,_0x3aeb42),_0x5c692a=Array['from'](_0x340484)['map'](({cell:_0x14a27d})=>_0x14a27d),_0x203dc7=Re(_0x5c692a['filter'](_0x952a62=>_0x952a62['hasAttribute'](_0x2e4ce5))),_0x482370=Re(_0x5c692a['filter'](_0x298eb4=>!_0x298eb4['hasAttribute'](_0x2e4ce5)))['map'](_0x2387eb=>_0x4075a2['createRangeOn'](_0x2387eb)),_0x4d90e3=_0x58071e['markMultiRangeDeletion'](_0x482370,_0x407542);if(_0x4d90e3&&('tableRow'==_0x4d90e3['subType']||'tableColumn'==_0x4d90e3['subType'])){const _0x4a8a3b=this['_getSuggestionCoords'](_0x4d90e3);for(const _0x23e1d1 of _0x203dc7){const _0x151a1e=_0x4075a2['createRangeOn'](_0x23e1d1),_0x8cf71f=_0xef850f['getCellLocation'](_0x23e1d1),_0x566a88=_0x23e1d1['getAttribute'](_0x2e4ce5)-0x1,_0x12ea0e=_0x4a8a3b[_0x22f712],_0x5c3428=_0x4a8a3b[_0x231837];_0x12ea0e<=_0x8cf71f[_0x5b9e58]&&_0x8cf71f[_0x5b9e58]+_0x566a88<=_0x5c3428&&_0x4d90e3['addRange'](_0x151a1e);}}});});}function _0x4c1965(_0x3be92f){const _0x3c3361=Array['from'](_0x4c3c87['getRanges']())['map'](_0x1e3c44=>_0x3f82e4['fromRange'](_0x1e3c44));_0x5e8950['model']['change'](_0x533787=>{const _0x10c283=_0x533787['batch'];_0x3be92f=_0x3be92f['filter'](_0x45f78f=>'$graveyard'!=_0x45f78f['root']['rootName']),_0x533787['setSelection'](_0x3be92f),_0x5e8950['commands']['get']('removeTableRow')['refresh'](),_0x5e8950['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e8950['model']['enqueueChange'](()=>{_0x5e8950['model']['enqueueChange'](_0x10c283,_0x2126df=>{const _0x1b9ced=_0x3c3361['filter'](_0x3b3d49=>'$graveyard'!=_0x3b3d49['root']['rootName']);_0x1b9ced['length']>0x0&&_0x2126df['setSelection'](_0x1b9ced);for(const _0x5816f5 of _0x3c3361)_0x5816f5['detach']();});});});}function _0x4d797d(_0x3983d2){_0x5e8950['model']['change'](_0x5f2e9c=>{const _0x2cc928=Array['from'](_0x4c3c87['getRanges']())['map'](_0x430cf7=>_0x3f82e4['fromRange'](_0x430cf7)),_0x5edb27=[];for(const _0x522e0d of _0x3983d2)for(const _0x5dc05b of _0x522e0d['getItems']({'shallow':!0x0}))_0x5edb27['push'](_0x5dc05b);for(const _0x386392 of _0x5edb27)'$graveyard'!=_0x386392['root']['rootName']&&(_0x5f2e9c['setSelection'](_0x5f2e9c['createPositionAt'](_0x386392,0x0)),_0x5e8950['commands']['get']('removeTableColumn')['refresh'](),_0x5e8950['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1119e6=_0x2cc928['filter'](_0x5b0390=>'$graveyard'!=_0x5b0390['root']['rootName']);_0x1119e6['length']>0x0&&_0x5f2e9c['setSelection'](_0x1119e6);for(const _0x5e6bde of _0x2cc928)_0x5e6bde['detach']();});}function _0x554ee4(_0x3efe48,_0x1c86f9){return _0x1c86f9['every'](_0x8352bc=>_0x3efe48['some'](_0x3e896e=>_0x3e896e['end']['isEqual'](_0x8352bc['start'])||_0x8352bc['end']['isEqual'](_0x3e896e['start'])));}function _0x366b0d(_0x3f978f,_0x436e99){return!_0x3f978f['some'](_0xe609f5=>_0x436e99['some'](_0x37d659=>_0xe609f5['isIntersecting'](_0x37d659)))&&_0x3f978f['some'](_0x26483e=>_0x436e99['some'](_0x1bcd55=>_0x26483e['end']['isTouching'](_0x1bcd55['start'])));}_0x5e8950['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2fe807,_0x21d944,_0x3a3089)=>{if(!_0x3a3089['options']['showSuggestionHighlights'])return;const _0x3676ee=_0x21d944['item'];if(!_0x3676ee)return;const _0x19ddef=_0x3a3089['mapper']['toViewElement'](_0x3676ee);function _0x22383d(_0x82ff94){return Array['isArray'](_0x82ff94)?_0x82ff94:[_0x82ff94];}_0x19ddef&&'tableCell'===_0x3676ee['name']&&_0x4c735a(_0x19ddef,_0x3a3089['writer'],(_0x2106e0,_0x33e245,_0x291986)=>_0x291986['addClass'](_0x22383d(_0x33e245['classes']),_0x2106e0),(_0x515317,_0x426c6c,_0x2543f7)=>_0x2543f7['removeClass'](_0x22383d(_0x426c6c['classes']),_0x515317));},{'priority':'highest'}),_0x58071e['descriptionFactory']['registerDescriptionCallback'](_0x363186=>{if('insertion'!=_0x363186['type']&&'deletion'!=_0x363186['type'])return;const _0x5780a1=_0x363186['getContainedElement']();if(null!=_0x5780a1&&_0x5780a1['is']('element','table')){if('insertion'==_0x363186['type']){const _0x31011c=_0x363186['getItems']()['filter'](_0x2f7799=>_0x2f7799['is']('$textProxy'))['map'](_0x290a8c=>_0x290a8c['data']);if(_0x31011c['length'])return{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31011c['join']('\x20')+'\x22'))};}if('deletion'==_0x363186['type']){const _0x419b7c=_0x363186['getItems']()['filter'](_0x25b54f=>_0x25b54f['is']('$textProxy'))['map'](_0x4543a5=>_0x4543a5['data']);if(_0x419b7c['length'])return{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x419b7c['join']('\x20')+'\x22'))};}}}),_0x58071e['descriptionFactory']['registerDescriptionCallback'](_0x317f02=>{if('tableRow'==_0x317f02['subType']){const _0x3734c0=_0x317f02['getItems']()['filter'](_0x484bcf=>_0x484bcf['is']('$textProxy'))['map'](_0x2c6ba5=>_0x2c6ba5['data']),_0x5c5dd6=this['_getSuggestionCoords'](_0x317f02),_0x4ee365=_0x5c5dd6['maxRow']-_0x5c5dd6['minRow']+0x1;if('insertion'==_0x317f02['type'])return _0x3734c0['length']?{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ee365,'\x22'+_0x3734c0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_ROW',_0x4ee365))};if('deletion'==_0x317f02['type'])return _0x3734c0['length']?{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ee365,'\x22'+_0x3734c0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_ROW',_0x4ee365))};}if('tableColumn'==_0x317f02['subType']){const _0xd6c701=_0x317f02['getItems']()['filter'](_0x4f5bdc=>_0x4f5bdc['is']('$textProxy'))['map'](_0x54b36f=>_0x54b36f['data']),_0x552713=this['_getSuggestionCoords'](_0x317f02),_0x3ffb48=_0x552713['maxColumn']-_0x552713['minColumn']+0x1;if('insertion'==_0x317f02['type'])return _0xd6c701['length']?{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffb48,'\x22'+_0xd6c701['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_COLUMN',_0x3ffb48))};if('deletion'==_0x317f02['type'])return _0xd6c701['length']?{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffb48,'\x22'+_0xd6c701['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_COLUMN',_0x3ffb48))};}}),_0x58071e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4c1965),_0x58071e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4c1965),_0x58071e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4d797d),_0x58071e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4d797d),_0x58071e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x554ee4),_0x58071e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x554ee4),_0x58071e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x366b0d),_0x58071e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x366b0d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x362be7=this['editor'],_0x5f5d1c=_0x362be7['model']['document']['selection'];return(_0x2d4210,_0x2fb527)=>{_0x362be7['model']['change'](_0x229226=>{const {commandName:_0x44e679,commandParams:_0x38abb3}=_0x2fb527;let _0x4b6952=_0x2d4210[0x0]['end']['nodeBefore'];_0x38abb3&&_0x38abb3[0x0]&&!0x1===_0x38abb3[0x0]['forceValue']&&(_0x4b6952=_0x2d4210[0x0]['start']['nodeAfter']);const _0x171202=_0x229226['createRangeIn'](_0x4b6952);if('$graveyard'==_0x171202['root']['rootName'])return;const _0x14a3f6=Array['from'](_0x5f5d1c['getRanges']())['map'](_0x176d26=>_0x3f82e4['fromRange'](_0x176d26));_0x229226['setSelection'](_0x171202),_0x362be7['commands']['get'](_0x44e679)['refresh'](),_0x38abb3['push']({'forceDefaultExecution':!0x0}),_0x362be7['execute'](_0x44e679,..._0x38abb3);const _0x2fcbac=_0x14a3f6['filter'](_0x3f945b=>'$graveyard'!=_0x3f945b['root']['rootName']);_0x2fcbac['length']>0x0&&_0x229226['setSelection'](_0x2fcbac);for(const _0x2ee22b of _0x14a3f6)_0x2ee22b['detach']();});};}['_getCoordsForCells'](_0x8bde6b){const _0x480d6d=this['editor']['plugins']['get']('TableUtils');let _0x4363a9=Number['MAX_SAFE_INTEGER'],_0x19502c=Number['MIN_SAFE_INTEGER'],_0x54f9b7=Number['MAX_SAFE_INTEGER'],_0x1285b2=Number['MIN_SAFE_INTEGER'];for(const _0x5b60dc of _0x8bde6b){if('$graveyard'==_0x5b60dc['root']['rootName'])continue;const {row:_0x5e15c4,column:_0xafafcd}=_0x480d6d['getCellLocation'](_0x5b60dc),_0x2a661d=_0x5b60dc['hasAttribute']('rowspan')?_0x5b60dc['getAttribute']('rowspan')-0x1:0x0,_0x175919=_0x5b60dc['hasAttribute']('colspan')?_0x5b60dc['getAttribute']('colspan')-0x1:0x0;_0x4363a9=_0x5e15c4<_0x4363a9?_0x5e15c4:_0x4363a9,_0x19502c=_0x5e15c4+_0x2a661d>_0x19502c?_0x5e15c4+_0x2a661d:_0x19502c,_0x54f9b7=_0xafafcd<_0x54f9b7?_0xafafcd:_0x54f9b7,_0x1285b2=_0xafafcd+_0x175919>_0x1285b2?_0xafafcd+_0x175919:_0x1285b2;}return{'minRow':_0x4363a9,'maxRow':_0x19502c,'minColumn':_0x54f9b7,'maxColumn':_0x1285b2};}['_setupColumnsRowsFixing'](){const _0x370ad2=this['editor'],_0x2b7b50=_0x370ad2['plugins']['get']('TrackChangesEditing'),_0xeaff78=_0x370ad2['plugins']['get']('TableUtils');_0x370ad2['model']['document']['on']('change:data',()=>{const _0x3d768f=Array['from'](_0x370ad2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x466bb1,data:_0x5a0b72}of _0x3d768f){const {group:_0x41dde7,id:_0x4457d5,subType:_0x544feb}=_0x2b7b50['_splitMarkerName'](_0x466bb1);if('suggestion'!=_0x41dde7)continue;if(null!=_0x5a0b72['oldRange'])continue;const _0x575ac5=_0x2b7b50['getSuggestion'](_0x4457d5);this['_tablePostFixingSubtypes']['includes'](_0x544feb)&&this['_tableSuggestions']['add'](_0x575ac5);}},{'priority':'low'});const _0xbe5885=(_0x4af6e8,_0xedeef2)=>{let _0x47590a=!0x1;const _0x4817b9=_0xedeef2['createRangeOn'](_0x4af6e8),_0xc978d3=_0x4af6e8['findAncestor']('table'),_0x428b01=_0xeaff78['getCellLocation'](_0x4af6e8);for(const _0x4ff951 of this['_tableSuggestions']){const _0x1e8023=_0x4ff951['subType'],_0x17a072=_0x1e8023['startsWith']('tablePaste'),_0x56043c=_0x1e8023['substr'](_0x17a072?0xa:0x5),_0x196528=_0x56043c['toLowerCase'](),_0x3fffa8=_0x196528['substr'](0x0,0x3)+'span',_0x7074f='min'+_0x56043c,_0x11311e='max'+_0x56043c;if(!_0x4ff951['isInContent'])continue;if(_0xc978d3!=_0x4ff951['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ff951['isIntersectingWithRange'](_0x4817b9))continue;const _0x30fa6b=_0x4af6e8['hasAttribute'](_0x3fffa8)?_0x4af6e8['getAttribute'](_0x3fffa8)-0x1:0x0,_0x546533=this['_getSuggestionCoords'](_0x4ff951),_0x2b5bca=_0x546533[_0x7074f],_0x611a43=_0x546533[_0x11311e];_0x2b5bca<=_0x428b01[_0x196528]&&_0x428b01[_0x196528]+_0x30fa6b<=_0x611a43&&(_0x4ff951['addRange'](_0x4817b9),_0x47590a=!0x0);}return _0x47590a;};_0x370ad2['model']['document']['registerPostFixer'](_0x19235a=>{let _0x2cd899=!0x1;for(const _0x48e2d0 of _0x370ad2['model']['document']['differ']['getChanges']())if('insert'==_0x48e2d0['type']){if('tableRow'==_0x48e2d0['name']){for(const _0x1a67e1 of _0x48e2d0['position']['nodeAfter']['getChildren']())_0x2cd899=_0x2cd899||_0xbe5885(_0x1a67e1,_0x19235a);}else'tableCell'==_0x48e2d0['name']&&(_0x2cd899=_0x2cd899||_0xbe5885(_0x48e2d0['position']['nodeAfter'],_0x19235a));}return _0x2cd899;});}['_getSuggestionCoords'](_0x978048){return this['_getCoordsForCells'](_0x978048['getRanges']()['map'](_0x5f1c3a=>_0x5f1c3a['start']['nodeAfter']));}}function Re(_0xb687c5){return Array['from'](new Set(_0xb687c5)['values']());}class _t extends _0x38bc3e{static get['requires'](){return[vt];}['afterInit'](){const _0x32704b=this['editor'],_0x2216a9=_0x32704b['model']['document']['selection'],_0x503982=_0x32704b['locale'];if(!_0x32704b['plugins']['has']('TableEditing'))return;const _0xd1b3a9=_0x32704b['plugins']['get']('TrackChangesEditing'),_0x15c346=_0x32704b['plugins']['get']('TableUtils'),_0x4f1a4e=_0x32704b['plugins']['get'](vt);_0x4f1a4e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xd1b3a9['enableCommand']('mergeTableCells',()=>{const _0x155c87=_0x15c346['getSelectionAffectedTableCells'](_0x32704b['model']['document']['selection']);_0x32704b['model']['change'](()=>{_0xd1b3a9['markMultiRangeBlockFormat'](_0x155c87,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x32704b['commands']['get']('mergeTableCells')['on']('execute',(_0x3f1dfe,_0x3d8af1)=>{_0x32704b['commands']['get']('trackChanges')['value']&&(_0x3d8af1['length']>0x0&&_0x3d8af1[_0x3d8af1['length']-0x1]&&_0x3d8af1[_0x3d8af1['length']-0x1]['forceDefaultExecution']||_0xd1b3a9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3f1dfe['stop']());},{'priority':'highest'});for(const _0x72d118 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x484a1e=_0x32704b['commands']['get'](_0x72d118);_0xd1b3a9['enableCommand'](_0x72d118,()=>{const _0x15b423=_0x32704b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x17b99b=>_0x17b99b['is']('element','tableCell')),_0x5e4b07=_0x484a1e['value'];_0x32704b['model']['change'](()=>{_0xd1b3a9['markMultiRangeBlockFormat']([_0x15b423,_0x5e4b07],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x454c35 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x50cd9a=_0x32704b['commands']['get'](_0x454c35);_0xd1b3a9['enableCommand'](_0x454c35,()=>{const _0x531221=_0x15c346['getSelectionAffectedTableCells'](_0x32704b['model']['document']['selection'])[0x0],_0x5502b3=_0x531221['findAncestor']('table'),{column:_0x215311,row:_0x45a7e1}=_0x15c346['getCellLocation'](_0x531221);let _0x5cd2f8=[];if('horizontally'==_0x50cd9a['direction']){const _0x562e67=_0x15c346['createTableWalker'](_0x5502b3,{'startRow':_0x45a7e1,'endRow':_0x45a7e1,'includeAllSlots':!0x0});_0x5cd2f8=Array['from'](_0x562e67)['map'](_0x269646=>_0x269646['cell']);}else{const _0x5da187=_0x15c346['createTableWalker'](_0x5502b3,{'column':_0x215311,'includeAllSlots':!0x0});_0x5cd2f8=Array['from'](_0x5da187)['map'](_0x1f8794=>_0x1f8794['cell']);}_0x32704b['model']['change'](_0x37b115=>{_0xd1b3a9['markBlockFormat'](_0x37b115['createRangeOn'](_0x531221),{'commandName':_0x454c35,'commandParams':[]},_0x5cd2f8,_0x454c35);});});}_0xd1b3a9['descriptionFactory']['registerDescriptionCallback'](_0x3d4d9e=>{if('formatBlock'!=_0x3d4d9e['type']&&'formatInline'!=_0x3d4d9e['type'])return;const {data:_0x3c2f35}=_0x3d4d9e;return _0x3c2f35&&'mergeTableCells'==_0x3c2f35['commandName']?{'type':'format','content':o(_0x503982,'*Merge\x20cells*')}:void 0x0;}),_0xd1b3a9['descriptionFactory']['registerDescriptionCallback'](_0x49cecf=>{if('formatBlock'!=_0x49cecf['type']&&'formatInline'!=_0x49cecf['type'])return;const {data:_0x53de2b}=_0x49cecf;return _0x53de2b?'splitTableCellVertically'==_0x53de2b['commandName']?{'type':'format','content':o(_0x503982,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x53de2b['commandName']?{'type':'format','content':o(_0x503982,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1e7aed=_0x4f1a4e['_acceptFormatSuggestionCallbackFactory']();for(const _0x327baf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xd1b3a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x327baf,'accept',_0x1e7aed);for(const _0x28137f of['splitTableCellVertically','splitTableCellHorizontally'])_0xd1b3a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28137f,'accept',_0x1e7aed);_0xd1b3a9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x405247=>{_0x32704b['model']['change'](_0x47ad64=>{const _0x1c7091=Array['from'](_0x2216a9['getRanges']())['map'](_0x14672e=>_0x3f82e4['fromRange'](_0x14672e));_0x47ad64['setSelection'](_0x405247),_0x32704b['commands']['get']('mergeTableCells')['refresh'](),_0x32704b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3fbdc3=_0x1c7091['filter'](_0x14d8e4=>'$graveyard'!=_0x14d8e4['root']['rootName']);_0x3fbdc3['length']>0x0&&_0x47ad64['setSelection'](_0x3fbdc3);for(const _0x4a62cd of _0x1c7091)_0x4a62cd['detach']();});});for(const _0x1b4e6d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x6f2f94=_0x32704b['commands']['get'](_0x1b4e6d);_0x6f2f94['on']('set:isEnabled',(_0x1995b6,_0x3113c0,_0x241317)=>{if(_0x241317){const _0x33d6d2=_0x32704b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4c0fd3=>_0x4c0fd3['is']('element','tableCell'));this['_areMergableCells'](_0x6f2f94['value'],_0x33d6d2)||(_0x1995b6['return']=!0x1,_0x1995b6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2bb02a=this['editor']['commands']['get']('mergeTableCells'),_0x1985df=this['editor']['plugins']['get']('TableUtils');if(!_0x2bb02a['isEnabled'])return!0x1;const _0x482194=_0x1985df['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2ea915 of _0x482194)for(const _0x240ca3 of _0x482194)if(_0x2ea915!=_0x240ca3&&!this['_areMergableCells'](_0x2ea915,_0x240ca3))return!0x1;return!0x0;}['_areMergableCells'](_0xe61cba,_0x219cca){const _0x38232c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fa0d1=this['editor']['model']['createRangeOn'](_0xe61cba),_0x5aed0f=this['editor']['model']['createRangeOn'](_0x219cca),_0x11a5a4=new Set(),_0x1b9553=new Set();for(const _0x3d2748 of _0x38232c['getSuggestions']())if(('insertion'==_0x3d2748['type']||'deletion'==_0x3d2748['type']||'mergeTableCells'==_0x3d2748['subType'])&&_0x3d2748['isInContent']){for(const _0x254a5c of _0x3d2748['getRanges']())_0x254a5c['containsRange'](_0x4fa0d1,!0x0)&&_0x11a5a4['add'](_0x3d2748['type']+':'+_0x3d2748['author']['id']),_0x254a5c['containsRange'](_0x5aed0f,!0x0)&&_0x1b9553['add'](_0x3d2748['type']+':'+_0x3d2748['author']['id']);}if(_0x11a5a4['size']!=_0x1b9553['size'])return!0x1;for(const _0x18478c of _0x11a5a4)if(!_0x1b9553['has'](_0x18478c))return!0x1;return!0x0;}}class Ct extends _0x38bc3e{static get['requires'](){return[vt];}['afterInit'](){const _0x597dbb=this['editor'];if(!_0x597dbb['plugins']['has']('TableEditing'))return;const _0x68183a=_0x597dbb['locale'],_0x27587b=_0x597dbb['plugins']['get']('TrackChangesEditing');_0x27587b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x27587b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x27587b['registerBlockAttribute']('headingRows'),_0x27587b['registerBlockAttribute']('headingColumns'),_0x27587b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x68183a,'FORMAT_HEADER_ROW')),_0x27587b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x68183a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5445de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x287ee3=this['editor']['plugins']['get']('TableUtils'),_0x90a7d1=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x478678({showActiveMarker:_0x2d779e=!0x0,setDataAttribute:_0x29a13c=!0x0}={}){return(_0x48b2de,_0x7edd37,_0x43b4bb)=>{const {type:_0x35a0c6,id:_0x470878}=_0x5445de['_splitMarkerName'](_0x7edd37['markerName']),_0x5f2bff=_0x5445de['getSuggestion'](_0x470878),_0x1c2736=_0x5f2bff['data'];if('formatBlock'!=_0x5f2bff['type']||!_0x1c2736||'setTableColumnHeader'!=_0x1c2736['commandName'])return;if(_0x7edd37['item'])return void _0x48b2de['stop']();if(!_0x43b4bb['consumable']['consume'](_0x7edd37['markerRange'],_0x48b2de['name']))return;const _0x55b7c8=_0x7edd37['markerRange']['start']['nodeAfter'],_0x2e6f48=_0x7edd37['markerRange']['end']['nodeBefore'],_0x568940=_0x55b7c8['parent']['parent'],{column:_0x437e7e}=_0x287ee3['getCellLocation'](_0x55b7c8),{column:_0x2908fb}=_0x287ee3['getCellLocation'](_0x2e6f48);for(let _0x53f203=_0x437e7e;_0x53f203<=_0x2908fb;_0x53f203++){const _0x1130b0=_0x287ee3['createTableWalker'](_0x568940,{'column':_0x53f203,'includeAllSlots':!0x1});for(const _0x578304 of _0x1130b0){const _0x3a634e=_0x578304['cell'],_0x12cc07=_0x43b4bb['mapper']['toViewElement'](_0x3a634e);_0x43b4bb['writer']['addClass']('ck-suggestion-marker-'+_0x35a0c6,_0x12cc07),_0x29a13c&&_0x43b4bb['writer']['setAttribute']('data-suggestion',_0x470878,_0x12cc07),_0x43b4bb['mapper']['bindElementToMarker'](_0x12cc07,_0x7edd37['markerName']),_0x2d779e&&(_0x5445de['activeMarkers']['includes'](_0x7edd37['markerName'])?_0x43b4bb['writer']['addClass']('ck-suggestion-marker--active',_0x12cc07):_0x43b4bb['writer']['removeClass']('ck-suggestion-marker--active',_0x12cc07));}}};}_0x5445de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x90a7d1),_0x5445de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x90a7d1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x478678(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ff971,_0x2e9c8f,_0x179240)=>{_0x179240['options']['showSuggestionHighlights']&&_0x478678({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3ff971,_0x2e9c8f,_0x179240);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x22f6f0,_0xfcb13,_0x5a0175)=>{const {type:_0x31b716,id:_0xa8de99}=_0x5445de['_splitMarkerName'](_0xfcb13['markerName']),_0x45822d=_0x5445de['getSuggestion'](_0xa8de99),_0x364ed2=_0x45822d['data'];if('formatBlock'!=_0x45822d['type']||!_0x364ed2||'setTableColumnHeader'!=_0x364ed2['commandName'])return;const _0xb36876=_0x5a0175['mapper']['markerNameToElements'](_0xfcb13['markerName']);if(_0xb36876){for(const _0x22b475 of _0xb36876)_0x5a0175['writer']['removeClass']('ck-suggestion-marker-'+_0x31b716,_0x22b475),_0x5a0175['writer']['removeClass']('ck-suggestion-marker--active',_0x22b475),_0x5a0175['writer']['removeAttribute']('data-suggestion',_0x22b475),_0x5a0175['mapper']['unbindElementFromMarkerName'](_0x22b475,_0xfcb13['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x139873=this['editor'],_0x23325f=_0x139873['locale'];function _0x26be81(_0xf8cf5){return{'type':'format','content':o(_0x23325f,'*Format:*\x20%0',_0xf8cf5)};}_0x139873['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590b49=>{if('formatBlock'!=_0x590b49['type'])return;const {data:_0x5b4da6}=_0x590b49;if(_0x5b4da6){if('setTableRowHeader'==_0x5b4da6['commandName']){const _0x482185=_0x5b4da6['commandParams'][0x0]['forceValue'];return _0x26be81(o(_0x23325f,_0x482185?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5b4da6['commandName']){const _0x4f3863=_0x5b4da6['commandParams'][0x0]['forceValue'];return _0x26be81(o(_0x23325f,_0x4f3863?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x5a9199=>[_0x5a9199,null]));class Nt extends _0x38bc3e{static get['requires'](){return[vt];}['afterInit'](){const _0x3519a9=this['editor'];if(!_0x3519a9['plugins']['has']('TableClipboard'))return;const _0x18af57=_0x3519a9['plugins']['get']('TrackChangesEditing'),_0x522a26=_0x3519a9['plugins']['get']('TableUtils'),_0x45689e=_0x3519a9['plugins']['get'](vt),_0x41cde2=_0x3519a9['plugins']['get']('TableClipboard');_0x45689e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3519a9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3519a9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50692f=null;_0x3519a9['model']['on']('insertContent',(_0x5490ed,_0x5d7523)=>{const [_0x4915ae,_0x2d66a1]=_0x5d7523,_0x13970c=_0x5d7523[_0x5d7523['length']-0x1];_0x13970c&&_0x13970c['forceDefaultExecution']||_0x18af57['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x52f75b,_0x40c97e,_0x13a4cb,_0x4ea599,_0x56acaa){if(_0x40c97e&&!_0x40c97e['is']('documentSelection'))return!0x1;const _0x562f1a=_0x56acaa['getTableIfOnlyTableInContent'](_0x52f75b,_0x13a4cb);if(!_0x562f1a||!Ae(_0x562f1a,void 0x0,_0x4ea599))return!0x1;const _0x29d98d=_0x4ea599['getSelectionAffectedTableCells'](_0x13a4cb['document']['selection']);if(!_0x29d98d['length'])return!0x1;const _0x45d9b8=_0x29d98d[0x0]['findAncestor']('table'),_0x135339=_0x4ea599['getRowIndexes'](_0x29d98d),_0x11fc6a=_0x4ea599['getColumnIndexes'](_0x29d98d),_0x5aff82={'startRow':_0x135339['first'],'endRow':_0x135339['last'],'startColumn':_0x11fc6a['first'],'endColumn':_0x11fc6a['last']};return 0x1==_0x29d98d['length']&&(_0x5aff82['endRow']+=_0x4ea599['getRows'](_0x562f1a)-0x1,_0x5aff82['endColumn']+=_0x4ea599['getColumns'](_0x562f1a)-0x1),Ae(_0x45d9b8,_0x5aff82,_0x4ea599);}(_0x4915ae,_0x2d66a1,_0x3519a9['model'],_0x522a26,_0x41cde2)&&(_0x5490ed['stop'](),_0x50692f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3519a9['model']['change'](()=>{_0x3519a9['model']['insertContent'](_0x5d7523[0x0],_0x5d7523[0x1],_0x5d7523[0x2],{'forceDefaultExecution':!0x0});const _0xb2eb89=_0x62ed8e(),{rowInsertionRanges:_0x535f0f,columnInsertionRanges:_0x4f2210,insertionRanges:_0x40b89a,deletionRanges:_0xb8785f,cells:_0x503a27}=_0x50692f;_0x535f0f['length']&&_0x18af57['markMultiRangeInsertion'](_0x535f0f,'tablePasteRow',{'tablePasteChainId':_0xb2eb89}),_0x4f2210['length']&&_0x18af57['markMultiRangeInsertion'](_0x4f2210,'tablePasteColumn',{'tablePasteChainId':_0xb2eb89}),_0x40b89a['length']&&(_0x18af57['markMultiRangeInsertion'](_0x40b89a,'tablePaste',{'tablePasteChainId':_0xb2eb89,'skipNestingCheck':!0x0}),_0x40b89a['forEach'](_0x48e9b2=>_0x48e9b2['detach']?.())),_0xb8785f['length']&&(_0x18af57['markMultiRangeDeletion'](_0xb8785f,'tablePaste',{'tablePasteChainId':_0xb2eb89,'skipNestingCheck':!0x0}),_0xb8785f['forEach'](_0x1ca690=>_0x1ca690['detach']?.()));const _0x18e18e=_0x18af57['markMultiRangeBlockFormat'](_0x503a27['map'](({element:_0x32ccf0})=>_0x32ccf0),{'formatGroupId':_0x62ed8e()},[],'tablePasteCell',{'tablePasteChainId':_0xb2eb89});if(_0x18e18e){const _0x4327ac=_0x18e18e['getMarkers'](),_0x4446be=[];for(const {element:_0x1971eb,attributes:_0x3ff5ee}of _0x503a27){if(!_0x3ff5ee)continue;const _0x29c549=_0x3519a9['model']['createRangeOn'](_0x1971eb),_0x4501d3=_0x4327ac['find'](_0x138971=>_0x138971['getRange']()['isEqual'](_0x29c549));_0x4501d3&&_0x4446be['push']([_0x4501d3['name'],_0x3ff5ee]);}_0x4446be['length']&&_0x18e18e['setAttribute']('markerAttributes',Object['fromEntries'](_0x4446be));}_0x50692f=null;}));},{'priority':_0x2abc47['high']+0xa}),_0x3519a9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x292213,_0xa46c70)=>{const [_0x2c2ec2,_0x59ed9e,,_0x1681e3]=_0xa46c70;if(!_0x50692f)return;_0x292213['stop']();const _0x30713a=_0x2c2ec2['cell'],_0x502a24=_0x59ed9e,_0x378a0c=je(_0x30713a),_0xd72a7e=je(_0x502a24);_0x292213['return']=_0x30713a;let _0x400c5e=null,_0x1bdce0=null;if(_0xd72a7e||_0x378a0c){if(_0x378a0c&&!_0xd72a7e){_0x1681e3['remove'](_0x30713a['getChild'](0x0));for(const _0x497224 of Array['from'](_0x502a24['getChildren']()))_0x1681e3['insert'](_0x497224,_0x30713a,'end');const _0x25668b=_0x50692f['rowInsertionIndexes']['includes'](_0x2c2ec2['row']),_0x4ff904=_0x50692f['columnInsertionIndexes']['includes'](_0x2c2ec2['column']);_0x25668b||_0x4ff904||(_0x400c5e=_0x3f82e4['fromRange'](_0x1681e3['createRangeIn'](_0x30713a)));}else _0xd72a7e&&!_0x378a0c&&(_0x1bdce0=_0x1681e3['createRangeIn'](_0x30713a));}else{const _0x3401b1=_0x1681e3['createElement']('tableCellSuggestion'),_0x1746a8=_0x1681e3['createElement']('tableCellSuggestion');_0x1681e3['wrap'](_0x1681e3['createRangeIn'](_0x30713a),_0x1746a8),_0x1681e3['insert'](_0x3401b1,_0x30713a,0x0);for(const _0x497b0e of Array['from'](_0x502a24['getChildren']()))_0x1681e3['insert'](_0x497b0e,_0x3401b1,'end');_0x400c5e=_0x3f82e4['fromRange'](_0x1681e3['createRangeOn'](_0x3401b1)),_0x1bdce0=_0x3f82e4['fromRange'](_0x1681e3['createRangeOn'](_0x1746a8));}const _0x21d7f8=Array['from'](_0x502a24['getAttributes']())['filter'](([_0x4b930f])=>we['includes'](_0x4b930f));_0x50692f['cells']['push']({'element':_0x30713a,'attributes':_0x21d7f8['length']?Object['fromEntries'](_0x21d7f8):null}),_0x400c5e&&_0x50692f['insertionRanges']['push'](_0x400c5e),_0x1bdce0&&_0x50692f['deletionRanges']['push'](_0x1bdce0);},{'priority':'high'}),_0x522a26['on']('insertColumns',(_0x103717,_0x43e0d4)=>{const [_0x11cc90,_0x589e9e={}]=_0x43e0d4;if(!_0x50692f)return;const _0x1dcd48=_0x589e9e['at']||0x0,_0x56c87e=_0x589e9e['columns']||0x1;_0x50692f['columnInsertionIndexes']=new Array(_0x56c87e)['fill'](_0x1dcd48)['map']((_0x34fdbf,_0x17598c)=>_0x34fdbf+_0x17598c);for(const {cell:_0x566c0b}of _0x522a26['createTableWalker'](_0x11cc90,{'startColumn':_0x1dcd48,'endColumn':_0x1dcd48+_0x56c87e-0x1}))_0x50692f['columnInsertionRanges']['push'](_0x3519a9['model']['createRangeOn'](_0x566c0b));},{'priority':'low'}),_0x522a26['on']('insertRows',(_0x364773,_0x2f48d8)=>{const [_0x105f90,_0x28cb53={}]=_0x2f48d8;if(!_0x50692f)return;const _0x2de184=_0x28cb53['at']||0x0,_0x5e844b=_0x28cb53['rows']||0x1;_0x50692f['rowInsertionIndexes']=new Array(_0x5e844b)['fill'](_0x2de184)['map']((_0x4e806c,_0x176844)=>_0x4e806c+_0x176844);for(const {cell:_0x559ddb}of _0x522a26['createTableWalker'](_0x105f90,{'startRow':_0x2de184,'endRow':_0x2de184+_0x5e844b-0x1}))_0x50692f['rowInsertionRanges']['push'](_0x3519a9['model']['createRangeOn'](_0x559ddb));},{'priority':'low'}),_0x18af57['descriptionFactory']['registerDescriptionCallback'](_0x3842a3=>{if(_0x3842a3['subType']&&_0x3842a3['subType']['startsWith']('tablePaste'))return _0x3842a3['previous']?{}:{'type':'insertion','content':o(_0x3519a9['locale'],'*Replace\x20table\x20cells*')};});const _0x1bf423=()=>!0x1;for(const _0x498865 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x18af57['_suggestionFactory']['registerCustomCallback']('insertion',_0x498865,'join',_0x1bf423),_0x18af57['_suggestionFactory']['registerCustomCallback']('deletion',_0x498865,'join',_0x1bf423),_0x18af57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x498865,'join',_0x1bf423);_0x18af57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1bf423),_0x18af57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c9c89,_0x38f5c9,_0x383b6e)=>{const _0x2b3e9a=_0x5c9c89['map'](_0xfd5b32=>_0xfd5b32['getContainedElement']())['filter'](_0x10981e=>_0x10981e),_0x3e01ea=new Map(_0x2b3e9a['map'](_0x319355=>[_0x319355,null]));if(_0x50692f){for(const {element:_0x3041fc,attributes:_0x39d7f3}of _0x50692f['cells'])_0x39d7f3&&_0x3e01ea['set'](_0x3041fc,_0x39d7f3);}else{if(_0x383b6e&&_0x383b6e['markerAttributes'])for(const [_0x5c6996,_0x3fdca5]of Object['entries'](_0x383b6e['markerAttributes'])){const _0x5ced5d=_0x3519a9['model']['markers']['get'](_0x5c6996),_0x3b505d=_0x5ced5d?_0x5ced5d['getRange']()['getContainedElement']():null;_0x3b505d&&_0x3e01ea['set'](_0x3b505d,_0x3fdca5);}}_0x3519a9['model']['change'](_0x3429b7=>{for(const [_0x49cdee,_0x21f4b0]of _0x3e01ea)_0x3429b7['setAttributes']({...ve,..._0x21f4b0},_0x49cdee);});});const _0x565fd8=(_0x56ecf3,_0x5a4d16)=>{_0x18af57['_suggestionFactory']['registerCustomCallback'](_0x56ecf3,'tablePaste',_0x5a4d16,(_0x535be0,_0x2134c2,_0x55dd67)=>{_0x3519a9['model']['change'](_0xdf4a2f=>{const _0x174d0c=[];for(const _0x437e61 of _0x535be0){const _0x47fde0=_0x437e61['start']['nodeAfter'];_0x47fde0['is']('element','tableCellSuggestion')&&_0x174d0c['push'](_0x47fde0);}_0x18af57['_suggestionFactory']['getSuggestionCallback'](_0x56ecf3,null,_0x5a4d16)(_0x535be0,_0x2134c2,_0x55dd67);for(const _0x1ef807 of _0x174d0c)'$graveyard'!=_0x1ef807['root']['rootName']&&_0xdf4a2f['unwrap'](_0x1ef807);});});};_0x565fd8('insertion','accept'),_0x565fd8('insertion','discard'),_0x565fd8('deletion','accept'),_0x565fd8('deletion','discard'),_0x18af57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5b446c=>{const _0x550b8f=_0x5b446c['map'](_0x40467e=>_0x40467e['getContainedElement']()),_0x4c8ae4=_0x550b8f[0x0]['findAncestor']('table'),{minRow:_0x251db0,maxRow:_0x1c17e8}=_0x45689e['_getCoordsForCells'](_0x550b8f);_0x522a26['removeRows'](_0x4c8ae4,{'at':_0x251db0,'rows':_0x1c17e8-_0x251db0+0x1});}),_0x18af57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x55d538=>{const _0x334fbe=_0x55d538['map'](_0x2079ce=>_0x2079ce['getContainedElement']()),_0x28cef2=_0x334fbe[0x0]['findAncestor']('table'),{minColumn:_0x2438e5,maxColumn:_0x12b03b}=_0x45689e['_getCoordsForCells'](_0x334fbe);_0x522a26['removeColumns'](_0x28cef2,{'at':_0x2438e5,'columns':_0x12b03b-_0x2438e5+0x1});});const _0x1ed1c3=(_0xeea2d1,_0x54add1)=>{if(!_0x54add1['subType']||!_0x54add1['subType']['startsWith']('tablePaste'))return;const _0x4f3d26=_0x54add1['attributes']['tablePasteChainId'],_0x2ad877=_0x18af57['getSuggestions']()['filter'](_0x482f90=>_0x482f90['isInContent']&&_0x482f90['attributes']&&_0x482f90['attributes']['tablePasteChainId']==_0x4f3d26);_0x2ad877['length']&&_0x54add1['getAllAdjacentSuggestions']()['length']!=_0x2ad877['length']&&_0x2ad877['reduce']((_0xdc27cb,_0x462e7b)=>(_0xdc27cb['next']=_0x462e7b,_0x462e7b['previous']=_0xdc27cb,_0x462e7b));};function _0x487448(_0x3ed368,_0x1064cd=!0x0){const {id:_0x4da42c,authorId:_0x35594b}=_0x18af57['_splitMarkerName'](_0x3ed368['markerName']),_0x8357be=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3e293c=_0x18af57['activeMarkers']['includes'](_0x3ed368['markerName']);return _0x3e293c&&_0x8357be['push']('ck-suggestion-marker--active'),{'classes':_0x8357be,'attributes':{'data-suggestion':_0x4da42c,'data-author-id':_0x35594b},'priority':_0x3e293c&&_0x1064cd?0xbc2:0xbb8};}_0x18af57['on']('suggestionLoaded',_0x1ed1c3,{'priority':'high'}),_0x18af57['on']('suggestionUnloaded',_0x1ed1c3,{'priority':'high'}),_0x3519a9['model']['document']['registerPostFixer'](()=>{let _0x8bace2=!0x1;const _0x37cb57=Array['from'](_0x3519a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x414102,data:_0x246d28}of _0x37cb57){const {group:_0x4cdf0a,type:_0x54d9e0,id:_0x32b67c}=_0x18af57['_splitMarkerName'](_0x414102);if('suggestion'!=_0x4cdf0a||'deletion'!=_0x54d9e0||_0x246d28['oldRange'])continue;if(!_0x18af57['hasSuggestion'](_0x32b67c))continue;const _0x58fa4f=_0x18af57['getSuggestion'](_0x32b67c)['getRanges'](),_0x44a30a=_0x3519a9['plugins']['get']('Users')['me'];for(const _0x4eaada of _0x18af57['getSuggestions']()){if(!_0x4eaada['isInContent']||_0x4eaada['author']!=_0x44a30a)continue;if('formatBlock'!=_0x4eaada['type']||'tablePasteCell'!=_0x4eaada['subType'])continue;if(_0x4eaada['getRanges']()['every'](_0x12d49a=>_0x58fa4f['some'](_0x40f4ee=>_0x40f4ee['containsRange'](_0x12d49a,!0x0)))){for(const _0x26f674 of _0x4eaada['getAllAdjacentSuggestions']())_0x26f674['isInContent']&&(_0x26f674['discard'](),_0x8bace2=!0x0);}}}return _0x8bace2;}),_0x3519a9['model']['document']['registerPostFixer'](_0x41dc0b=>{const _0x57d247=_0x3519a9['commands']['get']('redo');if(!_0x57d247||!_0x57d247['_createdBatches']['has'](_0x41dc0b['batch']))return!0x1;let _0x7b9e0a=!0x1;const _0x5b8818=_0x3519a9['plugins']['get']('Users')['me'],_0x1b2a51=_0x3519a9['model']['document']['differ']['getChanges'](),_0x5b1a3=Array['from'](_0x3519a9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x140500,data:_0x5aae7e})=>{const {group:_0x1670c4,subType:_0x44c2e0,authorId:_0x51ca69}=_0x18af57['_splitMarkerName'](_0x140500);return'suggestion'==_0x1670c4&&'tablePaste'==_0x44c2e0&&_0x51ca69==_0x5b8818['id']&&!_0x5aae7e['oldRange'];});for(const _0x3fcbf3 of _0x1b2a51){if('insert'!=_0x3fcbf3['type']||'tableCellSuggestion'!=_0x3fcbf3['name']||0x1!=_0x3fcbf3['length'])continue;const _0x5b4c81=_0x41dc0b['createRange'](_0x3fcbf3['position'],_0x3fcbf3['position']['getShiftedBy'](0x1));if(!_0x5b1a3['find'](({data:_0x28dfc1})=>_0x28dfc1['newRange']['isEqual'](_0x5b4c81))){for(const {name:_0x217096,data:_0x17f6c8}of _0x5b1a3)if(_0x5b4c81['containsRange'](_0x17f6c8['newRange'])){_0x41dc0b['updateMarker'](_0x217096,{'range':_0x5b4c81}),_0x7b9e0a=!0x0;break;}}}return _0x7b9e0a;}),_0x3519a9['model']['document']['registerPostFixer'](_0x16aff4=>{let _0x2a0733=!0x1;const _0x35836f=_0x3519a9['plugins']['get']('Users')['me'],_0xb2cba0=_0x18af57['getSuggestions']()['filter'](_0x4711de=>_0x4711de['isInContent']&&_0x4711de['author']==_0x35836f),_0x31b2c2=new Set(),_0x44af2a=new Set();for(const _0x5d3a14 of _0xb2cba0)if('tablePaste'==_0x5d3a14['subType'])for(const _0x4565dd of _0x5d3a14['getMarkers']()){const _0x32acc6=_0x4565dd['getRange']()['getContainedElement']();if(_0x32acc6){if(_0x32acc6['is']('element','tableCellSuggestion')&&je(_0x32acc6)){_0x5d3a14['removeMarker'](_0x4565dd['name']),_0x31b2c2['add'](_0x32acc6),_0x2a0733=!0x0;const _0x3e43f4=_0x32acc6['nextSibling'],_0x3b291b=_0x32acc6['previousSibling'],_0x140b15=_0x3e43f4&&_0x3e43f4['is']('element','tableCellSuggestion'),_0x49e6e2=_0x3b291b&&_0x3b291b['is']('element','tableCellSuggestion');_0x140b15&&!_0x31b2c2['has'](_0x3e43f4)&&_0x44af2a['add'](_0x3e43f4),_0x49e6e2&&!_0x31b2c2['has'](_0x3b291b)&&_0x44af2a['add'](_0x3b291b);}else _0x32acc6['is']('element','paragraph')&&_0x32acc6['isEmpty']&&(_0x5d3a14['removeMarker'](_0x4565dd['name']),_0x2a0733=!0x0);}}else{if('tablePasteCell'==_0x5d3a14['subType']){if(!_0x5d3a14['attributes']||!_0x5d3a14['attributes']['tablePasteChainId'])continue;const _0x159d37=_0x5d3a14['attributes']['markerAttributes'];if(_0x159d37&&Object['keys'](_0x159d37)['length'])continue;const _0x3199a3=_0x5d3a14['attributes']['tablePasteChainId'];let _0x3e1953=!0x0,_0x17060e=!0x0;for(const _0x4fc8f3 of _0xb2cba0)if(_0x4fc8f3['subType']&&_0x4fc8f3['subType']['startsWith']('tablePaste')){if(!_0x4fc8f3['attributes']['tablePasteChainId']){_0x17060e=!0x1;break;}if(_0x4fc8f3['id']!=_0x5d3a14['id']&&_0x4fc8f3['attributes']['tablePasteChainId']==_0x3199a3){_0x3e1953=!0x1;break;}}_0x17060e&&_0x3e1953&&(_0x5d3a14['removeMarkers'](),_0x2a0733=!0x0);}}for(const _0x3bf9cd of _0x31b2c2)_0x16aff4['remove'](_0x3bf9cd);for(const _0x596baf of _0x44af2a)_0x16aff4['unwrap'](_0x596baf);return _0x2a0733;}),_0x3519a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4e9c92=>_0x487448(_0x4e9c92),'converterPriority':'high'}),_0x3519a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x337af0,_0x2da542)=>_0x2da542['options']['showSuggestionHighlights']?_0x487448(_0x337af0,!0x1):null,'converterPriority':'high'});const _0x35c73e=_0x3519a9['editing']['view'];this['listenTo'](_0x35c73e['document'],'clipboardOutput',(_0x1eb2ef,_0x232651)=>{const _0x49e05b=[];for(const _0x67ec96 of _0x35c73e['createRangeIn'](_0x232651['content'])['getItems']())_0x67ec96['is']('element','suggestion-td')&&_0x49e05b['push'](_0x67ec96);_0x35c73e['change'](_0x167b87=>{for(const _0x5b5bd5 of _0x49e05b)_0x167b87['move'](_0x167b87['createRangeIn'](_0x5b5bd5),_0x167b87['createPositionBefore'](_0x5b5bd5)),_0x167b87['remove'](_0x5b5bd5);});});}}function je(_0x58d4b3){if(_0x58d4b3['isEmpty'])return!0x0;const _0x1963d3=_0x58d4b3['getChild'](0x0);return _0x1963d3['is']('element','paragraph')&&_0x1963d3['isEmpty'];}function Ae(_0x56fa29,_0x1c815a={},_0x38aeb3){for(const {isAnchor:_0x5314a6,cellHeight:_0x572459,cellWidth:_0x2c7b39}of _0x38aeb3['createTableWalker'](_0x56fa29,{'includeAllSlots':!0x0,..._0x1c815a}))if(!_0x5314a6||0x1!=_0x572459||0x1!=_0x2c7b39)return!0x1;return!0x0;}class Dt extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4182a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x4182a4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4182a4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4182a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4182a4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4182a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4182a4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f04ce,_0x4bf3c8){const _0x3a020a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ca545=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x24e165=_0x4bf3c8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f6011=_0x1ca545['getColumnGroupElement'](_0x24e165);let _0x49369b=_0x3f6011?_0x1ca545['getTableColumnsWidths'](_0x3f6011):null,_0x2b7785=_0x24e165['getAttribute']('tableWidth')||null;const _0x28f65d=_0x4bf3c8['tableWidth']||_0x2b7785,_0x53d67a=_0x4bf3c8['columnWidths']||_0x49369b,_0x75cbd4=this['editor']['plugins']['get']('Users')['me'];for(const _0x15df32 of _0x3a020a['getSuggestions']()){const _0x255466=_0x15df32['getContainedElement']();if('resizeTable'===_0x15df32['subType']&&_0x255466===_0x24e165){_0x15df32['author']!==_0x75cbd4&&_0x15df32['discard']();const _0x2f4200=_0x15df32['data']['commandParams'];_0x2b7785=_0x2f4200[0x0]['tableWidth'],_0x49369b=_0x2f4200[0x0]['columnWidths'];break;}}_0x3f04ce({'table':_0x24e165,'tableWidth':_0x28f65d,'columnWidths':_0x53d67a}),_0x3a020a['markBlockFormat'](_0x24e165,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2b7785,'columnWidths':_0x49369b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5a41d3){if('formatBlock'!=_0x5a41d3['type']&&'formatInline'!=_0x5a41d3['type'])return;const {data:_0x594a52}=_0x5a41d3;if(_0x594a52&&'resizeTable'===_0x594a52['formatGroupId']){const _0x5ef54b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5ef54b)};}}}class Mt extends _0x38bc3e{['afterInit'](){const _0x1e762f=this['editor'];_0x1e762f['plugins']['has']('Template')&&_0x1e762f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x38bc3e{['afterInit'](){const _0x143529=this['editor'];if(!_0x143529['commands']['get']('insertTableOfContents'))return;_0x143529['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x40487d=_0x143529['plugins']['get']('TrackChangesEditing'),_0x2fa7bc=_0x143529['locale'];_0x40487d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x16b964=>o(_0x2fa7bc,'ELEMENT_TABLE_OF_CONTENTS',_0x16b964));}}class Bt extends _0x38bc3e{['afterInit'](){const _0x53d72b=this['editor'];if(!_0x53d72b['plugins']['has']('Title'))return;const _0x19b9b7=_0x53d72b['plugins']['get']('TrackChangesEditing');_0x19b9b7['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x53d72b['locale'],'ELEMENT_TITLE')),_0x53d72b['model']['document']['registerPostFixer'](_0x4123c5=>{let _0x467e13=!0x1;const _0x53a17b=Array['from'](_0x53d72b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa36007,data:_0xaea466}of _0x53a17b){const {group:_0x165b1c}=_0x19b9b7['_splitMarkerName'](_0xa36007);if('suggestion'!==_0x165b1c||!_0xaea466['newRange'])continue;const _0x49e1ac=_0xaea466['newRange'],_0x2540d9=_0x49e1ac['end']['nodeBefore'];if(!_0x2540d9||!_0x2540d9['is']('element','title-content'))continue;if(!_0x49e1ac['start']['isTouching'](_0x49e1ac['end']))continue;const _0x4817c6=_0x53d72b['model']['schema']['getNearestSelectionRange'](_0x49e1ac['end'],'forward');if(_0x4817c6&&_0x4817c6['isCollapsed']){const _0x374df5=_0x4123c5['createRange'](_0x49e1ac['start'],_0x4817c6['start']);_0x374df5['isEqual'](_0x49e1ac)||(_0x4123c5['updateMarker'](_0xa36007,{'range':_0x374df5}),_0x467e13=!0x0);}_0x467e13||(_0x4123c5['removeMarker'](_0xa36007),_0x467e13=!0x0);}return _0x467e13;});}}class Ot extends _0x38bc3e{['afterInit'](){const _0xa32639=this['editor'],_0x4ba603=_0xa32639['plugins']['get']('TrackChangesEditing');_0xa32639['plugins']['has']('UndoEditing')&&(_0x4ba603['enableCommand']('undo'),_0x4ba603['enableCommand']('redo'));}}class Rt extends _0x38bc3e{static get['requires'](){return[vt];}['afterInit'](){const _0x32c3b8=this['editor'];if(!_0x32c3b8['plugins']['has']('TableCaptionEditing'))return;_0x32c3b8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x38bc3e{['tableProperties'];['tableCellProperties'];constructor(_0x16f750){super(_0x16f750),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 _0x8e84ca=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x53f51d of this['tableProperties'])_0x8e84ca['enableCommand'](_0x53f51d,(_0x1b1385,_0x3de684)=>{const _0x12b469=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x53f51d,[_0x12b469],this['tableProperties'],'tableProperties',_0x1b1385,_0x3de684);});_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x8e84ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4220f0,_0x14a7ac)=>this['handleDiscardAction'](this['tableProperties'],_0x4220f0,_0x14a7ac)),_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x287032 of this['tableCellProperties'])_0x8e84ca['enableCommand'](_0x287032,(_0x1b0ab3,_0x4c80a6)=>{const _0x22e1c3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x287032,_0x22e1c3,this['tableCellProperties'],'tableCellProperties',_0x1b0ab3,_0x4c80a6);});_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x8e84ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x56ec73,_0x3d3b7b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x56ec73,_0x3d3b7b)),_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x8e84ca['descriptionFactory']['registerDescriptionCallback'](_0x15e992=>this['handleSuggestionDescription'](_0x15e992));}['_handlePropertyChange'](_0x4c1185,_0x52b3d8,_0x4207f6,_0x47120e,_0x7c3ba3,_0xc7903f){const _0x369f59=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc7903f['batch'],()=>{for(const _0x597a4b of _0x52b3d8){if(this['_getSuggestion'](_0x597a4b,_0x47120e))_0x7c3ba3(_0xc7903f);else{const _0x302bf5={};for(const _0x3e6cc4 of _0x4207f6){const _0x4c2b6c=_0x597a4b['getAttribute'](_0x3e6cc4);void 0x0!==_0x4c2b6c&&(_0x302bf5[_0x3e6cc4]=_0x4c2b6c);}_0x7c3ba3(_0xc7903f),_0x369f59['markBlockFormat'](_0x597a4b,{'commandParams':[_0x302bf5]},[],_0x47120e);}}});}['handleDiscardAction'](_0x4524d2,_0x58becb,_0x39d6aa){const _0x70a82b=_0x58becb[0x0]['start']['nodeAfter'],_0x21d4af=_0x39d6aa['commandParams'][0x0];this['editor']['model']['change'](_0xb6d619=>{for(const _0x5c522c of _0x4524d2)void 0x0!==_0x21d4af[_0x5c522c]?_0xb6d619['setAttribute'](_0x5c522c,_0x21d4af[_0x5c522c],_0x70a82b):_0xb6d619['removeAttribute'](_0x5c522c,_0x70a82b);});}['handleSuggestionDescription'](_0x325295){if(_0x325295['data'])switch(_0x325295['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'](_0x2ff4c7,_0x3022b){const _0x6fb0b8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x842d7a of _0x6fb0b8['getSuggestions']({'skipNotAttached':!0x0})){const _0x2ad833=_0x842d7a['getContainedElement']();if(_0x842d7a['subType']===_0x3022b&&_0x2ad833===_0x2ff4c7)return _0x842d7a;}return null;}}const m='$elementName';class p extends _0x38bc3e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x59245a,_0x7beb78,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a0f63){super(_0x5a0f63),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c4be8,_0x140768,_0x3a921f,_0x4b961f)=>{this['_model']['change'](()=>{for(const _0xc3cb3a of[..._0x4b961f,..._0x3a921f])this['_model']['markers']['has'](_0xc3cb3a)&&_0x5a0f63['editing']['reconvertMarker'](_0xc3cb3a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5a0f63['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(),_0x5a0f63['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5a0f63['config']['get']('trackChanges.trackFormatChanges'),_0x5a0f63['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5a0f63['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5a0f63,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1ebcdd=this['editor'],_0x480c7b=(_0x5e7bfd,_0x3d013a)=>{if('attribute'!=_0x5e7bfd)return'ck-suggestion-marker-'+_0x5e7bfd;const _0x53fb1b=_0x3d013a['split']('|')[0x0];return this['_isBlockAttribute'](_0x53fb1b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1ebcdd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xc3f863=>{const {id:_0x1e7dcd,authorId:_0x131600,type:_0x5a6ef8,subType:_0x4a4700}=this['_splitMarkerName'](_0xc3f863['markerName']),_0x2b50a1=['ck-suggestion-marker',_0x480c7b(_0x5a6ef8,_0x4a4700)];let _0x19802f=0xbb8;return this['activeMarkers']['includes'](_0xc3f863['markerName'])&&(_0x2b50a1['push']('ck-suggestion-marker--active'),_0x19802f=0xbc2),'deletion'==_0x5a6ef8&&(_0x19802f+=0x5),{'classes':_0x2b50a1,'attributes':{'data-suggestion':_0x1e7dcd,'data-author-id':_0x131600},'priority':_0x19802f};}}),_0x1ebcdd['conversion']['for']('dataDowncast')['add'](_0x176a05=>{_0x176a05['on']('addMarker:suggestion',(_0x4b3bf9,_0x510019,_0x525071)=>{if(!_0x525071['options']['showSuggestionHighlights'])return;const _0x365340=_0x510019['item'];if(!_0x365340)return;const _0x46507a=_0x525071['mapper']['toViewElement'](_0x365340);_0x1ebcdd['model']['schema']['isObject'](_0x365340)&&_0x46507a&&!_0x46507a['getCustomProperty']('widget')&&_0x46507a['is']('containerElement')&&_0x3cff86(_0x46507a,_0x525071['writer']);},{'priority':'high'});}),_0x1ebcdd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x783cb6,_0x30f94)=>{if(!_0x30f94['options']['showSuggestionHighlights'])return null;const {type:_0x44f42c,subType:_0xad10c9}=this['_splitMarkerName'](_0x783cb6['markerName']);return{'classes':['ck-suggestion-marker',_0x480c7b(_0x44f42c,_0xad10c9)],'priority':0xbb8};}});const _0x5f3f41=({showActiveMarkers:_0x3c2c10=!0x0,isAttributeSuggestion:_0x53899e=!0x1}={})=>(_0xc1387a,_0x5f01d4,_0x5d2eaf)=>{if(!_0x5f01d4['item'])return;const {id:_0x4714aa,authorId:_0x27c692}=this['_splitMarkerName'](_0x5f01d4['markerName']);if(_0x53899e){const _0x4e86c4=this['_suggestions']['get'](_0x4714aa),_0x41c7c2=this['_getAttributeKey'](_0x4e86c4);if(!this['_isBlockAttribute'](_0x41c7c2))return;}if(_0x5f01d4['item']['is']('selection'))return void _0x5d2eaf['consumable']['consume'](_0x5f01d4['item'],_0xc1387a['name']);const _0xe56acb=_0x5d2eaf['mapper']['toViewElement'](_0x5f01d4['item']);if(_0x5f01d4['item']['is']('element')&&_0x1ebcdd['model']['schema']['isBlock'](_0x5f01d4['item'])&&!_0xe56acb['getCustomProperty']('addHighlight')){_0x5d2eaf['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xe56acb),_0x5d2eaf['writer']['setAttribute']('data-suggestion',_0x4714aa,_0xe56acb),_0x5d2eaf['writer']['setAttribute']('data-author-id',_0x27c692,_0xe56acb),_0x5d2eaf['mapper']['bindElementToMarker'](_0xe56acb,_0x5f01d4['markerName']),_0x3c2c10&&(this['activeMarkers']['includes'](_0x5f01d4['markerName'])?_0x5d2eaf['writer']['addClass']('ck-suggestion-marker--active',_0xe56acb):_0x5d2eaf['writer']['removeClass']('ck-suggestion-marker--active',_0xe56acb));for(const _0x476d67 of _0x1ebcdd['model']['createRangeIn'](_0x5f01d4['item'])['getItems']())_0x5d2eaf['consumable']['consume'](_0x476d67,_0xc1387a['name']);_0x5d2eaf['consumable']['consume'](_0x5f01d4['item'],_0xc1387a['name']);}};_0x1ebcdd['conversion']['for']('dataDowncast')['add'](_0x366cf9=>{_0x366cf9['on']('addMarker:suggestion:formatBlock',(_0x25e743,_0x9f5c4e,_0x5d9ed1)=>{_0x5d9ed1['options']['showSuggestionHighlights']&&_0x5f3f41({'showActiveMarkers':!0x1})(_0x25e743,_0x9f5c4e,_0x5d9ed1);},{'priority':'highest'});}),_0x1ebcdd['conversion']['for']('dataDowncast')['add'](_0x495eda=>{_0x495eda['on']('addMarker:suggestion:attribute',(_0x1de508,_0x42e7f5,_0x1e47c2)=>{_0x1e47c2['options']['showSuggestionHighlights']&&_0x5f3f41({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1de508,_0x42e7f5,_0x1e47c2);},{'priority':'highest'});}),_0x1ebcdd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1b8cc0,_0x170651)=>_0x170651['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1b8cc0['substr'](0xb)}}),_0x1ebcdd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x48e125,{writer:_0x5f4dd0})=>{let _0x173365='suggestion:'+_0x48e125['getAttribute']('suggestion-type')+':'+_0x48e125['getAttribute']('id');return _0x48e125['getAttribute']('marker-count')&&(_0x173365+=':'+_0x48e125['getAttribute']('marker-count')),_0x5f4dd0['createElement']('$marker',{'data-name':_0x173365});}}),_0x1ebcdd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1ebcdd['conversion']['for']('editingDowncast')['add'](_0x853e5e=>{_0x853e5e['on']('addMarker:suggestion:formatBlock',_0x5f3f41(),{'priority':'high'});}),_0x1ebcdd['conversion']['for']('editingDowncast')['add'](_0x59cf8b=>{_0x59cf8b['on']('addMarker:suggestion:attribute',_0x5f3f41({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1ebcdd['conversion']['for']('editingDowncast')['add'](_0x136fba=>{_0x136fba['on']('removeMarker:suggestion:formatBlock',(_0x3a1310,_0x3fb7a2,_0x42c4d2)=>{const _0x203b22=_0x42c4d2['mapper']['markerNameToElements'](_0x3fb7a2['markerName']);if(_0x203b22){for(const _0x1568ca of _0x203b22)_0x1568ca['getCustomProperty']('addHighlight')||(_0x42c4d2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1568ca),_0x42c4d2['writer']['removeAttribute']('data-suggestion',_0x1568ca),_0x42c4d2['writer']['removeAttribute']('data-author-id',_0x1568ca),_0x42c4d2['mapper']['unbindElementFromMarkerName'](_0x1568ca,_0x3fb7a2['markerName']));}},{'priority':'high'});}),_0x1ebcdd['conversion']['for']('editingDowncast')['add'](_0x3969e2=>{_0x3969e2['on']('removeMarker:suggestion:attribute',(_0x595d5d,_0x4cc395,_0x1f9b76)=>{const _0x14903d=_0x1f9b76['mapper']['markerNameToElements'](_0x4cc395['markerName']);if(!_0x14903d)return;const {id:_0x598c5b}=this['_splitMarkerName'](_0x4cc395['markerName']),_0x449802=this['_suggestions']['get'](_0x598c5b),_0x1cfa33=this['_getAttributeKey'](_0x449802);if(this['_isBlockAttribute'](_0x1cfa33)){for(const _0x1c5401 of _0x14903d)_0x1c5401['getCustomProperty']('addHighlight')||(_0x1f9b76['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c5401),_0x1f9b76['writer']['removeAttribute']('data-suggestion',_0x1c5401),_0x1f9b76['writer']['removeAttribute']('data-author-id',_0x1c5401),_0x1f9b76['mapper']['unbindElementFromMarkerName'](_0x1c5401,_0x4cc395['markerName']));}},{'priority':'high'});}),_0x1ebcdd['model']['document']['registerPostFixer'](_0x4fcf47=>{let _0x19d8e8=!0x1;const _0x5f3396=Array['from'](_0x1ebcdd['model']['document']['differ']['getChangedMarkers']()),_0x123295=new Set();for(const {name:_0x3661a7,data:_0x53293a}of _0x5f3396){const {group:_0x3e21de,type:_0x172d58,subType:_0x16e008,id:_0x521e07}=this['_splitMarkerName'](_0x3661a7);if('suggestion'!==_0x3e21de)continue;const _0x2d9e67=this['_suggestions']['get'](_0x521e07);if(null!=_0x53293a['newRange']){'formatInline'==_0x172d58&&(_0x19d8e8=_0x19d8e8||Pt(_0x53293a['newRange'],_0x3661a7,_0x4fcf47,_0x1ebcdd['model']['schema']));const _0xe5e5ed='attribute'==_0x172d58&&this['_isBlockAttribute'](_0x16e008['split']('|')[0x0]);if(_0x53293a['newRange']['isCollapsed']||'$graveyard'==_0x53293a['newRange']['root']['rootName']||'formatBlock'==_0x172d58&&!Ft(_0x53293a['newRange'])||_0xe5e5ed&&!Ft(_0x53293a['newRange'])||'deletion'==_0x172d58&&!(!Vt(_0x5a8e7b=_0x53293a['newRange'])&&!function(_0x3ebeed){return _0x3ebeed['start']['parent']==_0x3ebeed['end']['nodeBefore']&&_0x3ebeed['start']['isAtEnd'];}(_0x5a8e7b)))_0x4fcf47['removeMarker'](_0x3661a7),_0x19d8e8=!0x0;else{if(!_0x2d9e67||!_0x2d9e67['isInContent'])continue;if(_0x53293a['newRange']&&_0x53293a['oldRange']&&_0x53293a['newRange']['isEqual'](_0x53293a['oldRange']))continue;_0x123295['add'](_0x2d9e67);}}}var _0x5a8e7b;return _0x123295['size']>0x0&&(_0x19d8e8=!!this['_joinWithAdjacentSuggestions'](_0x123295)||_0x19d8e8),_0x19d8e8;}),_0x1ebcdd['model']['document']['registerPostFixer'](_0x148311=>{let _0x27d2c0=!0x1;for(const _0x167d09 of _0x1ebcdd['model']['document']['differ']['getChanges']())if('insert'==_0x167d09['type'])for(const _0x38663b of this['_suggestions']['values']()){if(_0x38663b['isMultiRange']||!_0x38663b['isInContent'])continue;const _0x4c6da5='formatBlock'==_0x38663b['type'],_0x4dee87=this['_getAttributeKey'](_0x38663b),_0x26d71f=_0x4dee87&&this['_isBlockAttribute'](_0x4dee87);if(!_0x4c6da5&&!_0x26d71f)continue;const _0x523382=_0x38663b['getFirstRange']();if(_0x523382['start']['parent']!=_0x523382['end']['parent']&&!_0x523382['end']['isAtEnd']){const _0x417b28=_0x1ebcdd['model']['createPositionAt'](_0x523382['start']['nodeAfter'],'end'),_0x117c9d=_0x1ebcdd['model']['createRange'](_0x523382['start'],_0x417b28);_0x148311['updateMarker'](_0x38663b['getFirstMarker'](),{'range':_0x117c9d}),_0x27d2c0=!0x0;}}return _0x27d2c0;}),_0x1ebcdd['model']['document']['registerPostFixer'](_0xef7fc4=>this['_processAttributeChanges'](_0xef7fc4)),_0x1ebcdd['model']['document']['registerPostFixer'](_0x3e5059=>!_0x3e5059['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3e5059)),_0x1ebcdd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1ebcdd['model']['document']['on']('change:data',(_0x4ea799,_0x4e26bb)=>{if(!_0x4e26bb['isLocal']||_0x4e26bb['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x412ad1=_0x1ebcdd['model']['document']['differ']['getChanges']();if(0x0==_0x412ad1['length'])return;const _0x311761=[],_0x4d8a71=_0x412ad1['filter'](_0x90cb56=>'attribute'==_0x90cb56['type']),_0x3e4cc5=_0x412ad1['filter'](_0x3826bd=>'insert'==_0x3826bd['type']&&'$text'!=_0x3826bd['name']);for(const _0x6bd075 of _0x4d8a71)this['_isRegisteredAttribute'](_0x6bd075['attributeKey'])&&_0x311761['push']({'key':_0x6bd075['attributeKey'],'newValue':_0x6bd075['attributeNewValue'],'oldValue':_0x6bd075['attributeOldValue'],'range':Lt(_0x6bd075['range'],_0x1ebcdd['model'])});for(const _0x5dfe74 of _0x3e4cc5){if('rename'!=_0x5dfe74['action']&&'refresh'!=_0x5dfe74['action'])continue;const _0xbbe68b=Jt(_0x5dfe74['position']['nodeAfter'],_0x1ebcdd['model']),_0x2e3ef7=_0x5dfe74['before'];'rename'==_0x5dfe74['action']&&_0x311761['push']({'key':m,'newValue':_0x5dfe74['name'],'oldValue':_0x2e3ef7['name'],'range':_0xbbe68b});for(const [_0x532fa6,_0x4cbcc8]of _0x2e3ef7['attributes']){if(!this['_isRegisteredAttribute'](_0x532fa6))continue;const _0x5b9eb7=_0x5dfe74['attributes']['get'](_0x532fa6);_0x4cbcc8!==_0x5b9eb7&&_0x311761['push']({'key':_0x532fa6,'newValue':_0x5b9eb7,'oldValue':_0x4cbcc8,'range':_0xbbe68b});}for(const [_0x20deac,_0x5d9bab]of _0x5dfe74['attributes'])this['_isRegisteredAttribute'](_0x20deac)&&(_0x2e3ef7['attributes']['has'](_0x20deac)||_0x311761['push']({'key':_0x20deac,'newValue':_0x5d9bab,'oldValue':null,'range':_0xbbe68b}));}0x0!=_0x311761['length']&&_0x1ebcdd['model']['enqueueChange'](_0x4e26bb,_0x300ba2=>{const _0x36c6f0=_0x62ed8e();for(const {range:_0x1a5db4,key:_0x1e79cc,oldValue:_0x5f31e3,newValue:_0x12b77a}of _0x311761)this['markAttributeChange'](_0x1a5db4,_0x1e79cc,_0x5f31e3,_0x12b77a,{'groupId':_0x36c6f0});this['_reduceExistingSuggestions'](_0x300ba2,_0x311761);});},{'priority':'lowest'}),_0x1ebcdd['model']['markers']['on']('update:suggestion',(_0x4ac911,_0x249056,_0x164aa5)=>{if(null==_0x164aa5){const {id:_0x5bf5cb}=this['_splitMarkerName'](_0x249056['name']),_0x506a2e=this['_suggestions']['get'](_0x5bf5cb);_0x506a2e&&_0x506a2e['addMarkerName'](_0x249056['name']);}}),_0x1ebcdd['model']['document']['on']('change:data',()=>{const _0x178fd3=Array['from'](_0x1ebcdd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x576af3=>'suggestion'===this['_splitMarkerName'](_0x576af3['name'])['group']);if(0x0===_0x178fd3['length'])return;_0x178fd3['sort']((_0x125310,_0x3eab5d)=>{const _0xe43ad=_0x125310['data']['oldRange'],_0x23f5d3=_0x3eab5d['data']['oldRange'];return null===_0xe43ad&&null===_0x23f5d3?0x0:null===_0xe43ad&&null!==_0x23f5d3?-0x1:null!==_0xe43ad&&null===_0x23f5d3?0x1:_0xe43ad['start']['isBefore'](_0x23f5d3['start'])?-0x1:0x1;});const _0x2491ab=new Set(),_0x1321ef=new Set();for(const {name:_0xb8af90,data:_0x3d3b3b}of _0x178fd3){const {id:_0x5ef39b}=this['_splitMarkerName'](_0xb8af90);if(null===_0x3d3b3b['oldRange']){const _0x284f16=this['_handleNewSuggestionMarker'](_0xb8af90);_0x1321ef['add'](_0x284f16);}else{const _0x167336=this['_suggestions']['get'](_0x5ef39b);null!==_0x3d3b3b['newRange']||_0x167336['isInContent']?(_0x2491ab['add'](_0x167336['head']),_0x1321ef['add'](_0x167336)):this['_removeSuggestion'](_0x167336);}}_0x1321ef['size']>0x0&&this['_refreshSuggestionsChain'](_0x1321ef);for(const _0x579a3c of _0x2491ab)this['fire']('suggestionChanged',_0x579a3c);}),_0x1ebcdd['model']['on']('applyOperation',(_0x4c67fd,_0x2df9fb)=>{const _0x1c109e=_0x2df9fb[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c109e['isDocumentOperation'])return;if(_0x1c109e['batch']['isUndo']||!_0x1c109e['batch']['isLocal'])return;let _0x5715ab,_0x36a065;switch(_0x1c109e['type']){case'insert':_0x5715ab=_0x1ebcdd['model']['createPositionAt'](_0x1c109e['position']),_0x36a065=_0x5715ab['getShiftedBy'](_0x1c109e['howMany']);break;case'split':_0x5715ab=_0x1ebcdd['model']['createPositionAt'](_0x1c109e['splitPosition']),_0x36a065=_0x1ebcdd['model']['createPositionAt'](_0x1c109e['moveTargetPosition']);break;case'move':_0x5715ab=_0x1ebcdd['model']['createPositionAt'](_0x1c109e['targetPosition']),_0x36a065=_0x5715ab['getShiftedBy'](_0x1c109e['howMany']);break;default:return;}const _0x473971=_0x1ebcdd['model']['createRange'](_0x5715ab,_0x36a065);_0x1ebcdd['model']['change'](()=>{for(const {suggestion:_0x32e92e,meta:_0x5d69f4}of this['_findSuggestions'](_0x473971)){if(_0x32e92e['isMultiRange'])continue;if('formatInline'==_0x32e92e['type'])continue;const _0x596c8f=this['_getAttributeKey'](_0x32e92e);if(_0x596c8f&&this['_isBlockAttribute'](_0x596c8f)&&'split'!=_0x1c109e['type'])continue;const _0x37e925=_0x32e92e['data']&&_0x32e92e['data']['multipleBlocks'];('formatBlock'!=_0x32e92e['type']||'split'==_0x1c109e['type']&&!_0x37e925)&&(_0x5d69f4['containsRangeInObject']||'insertion'==_0x32e92e['type']&&_0x5d69f4['isOwn']||_0x32e92e['getFirstRange']()['containsRange'](_0x473971)&&this['_breakSuggestionMarker'](_0x32e92e,_0x5715ab,_0x36a065));}});},{'priority':'lowest'}),_0x1ebcdd['model']['on']('deleteContent',(_0x699e44,_0xf2c224)=>{const _0x4977a9=_0xf2c224[0x0],_0x28f989=_0xf2c224[0x1];if(_0x28f989&&_0x28f989['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4977a9['isCollapsed'])return;const _0x53c0f8=_0x1ebcdd['model']['schema'],{start:_0x5c9723,end:_0xdf70bf}=_0x4977a9['getFirstRange'](),_0x1003ec=_0x5c9723['nodeAfter']&&_0x53c0f8['isLimit'](_0x5c9723['nodeAfter'])?null:_0x53c0f8['getNearestSelectionRange'](_0x5c9723,'forward'),_0x55071d=_0xdf70bf['nodeBefore']&&_0x53c0f8['isLimit'](_0xdf70bf['nodeBefore'])?null:_0x53c0f8['getNearestSelectionRange'](_0xdf70bf,'backward'),_0x4a1cc1=_0x1ebcdd['model']['createRange'](_0x1003ec?_0x1003ec['start']:_0x5c9723,_0x55071d?_0x55071d['end']:_0xdf70bf);_0x1ebcdd['model']['change'](_0x4acd8f=>{this['markDeletion'](_0x4a1cc1);const _0x855ef6=_0x1ebcdd['model']['schema']['getNearestSelectionRange'](_0x4a1cc1['start']);_0x4977a9['is']('documentSelection')?_0x4acd8f['setSelection'](_0x855ef6):_0x4977a9['setTo'](_0x855ef6);}),_0x699e44['stop']();},{'priority':_0x2abc47['normal']+0xa}),_0x1ebcdd['model']['on']('insertContent',(_0x519fe7,_0x1411ec)=>{const _0x18ec54=_0x1411ec[_0x1411ec['length']-0x1];_0x18ec54&&_0x18ec54['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1ebcdd['model']['change'](()=>{let _0x55c4f9=_0x1ebcdd['model']['insertContent'](_0x1411ec[0x0],_0x1411ec[0x1],_0x1411ec[0x2],{'forceDefaultExecution':!0x0});if(!_0x55c4f9)return;_0x519fe7['return']=_0x55c4f9['clone']();const _0x4ae956=_0x55c4f9['end']['nodeBefore'],_0x27aa57=_0x1ebcdd['model']['schema'];_0x4ae956&&_0x27aa57['isBlock'](_0x4ae956)&&!_0x27aa57['isObject'](_0x4ae956)&&(_0x55c4f9=_0x1ebcdd['model']['createRange'](_0x55c4f9['start'],_0x1ebcdd['model']['createPositionAt'](_0x4ae956,'end'))),this['markInsertion'](_0x55c4f9);}),_0x519fe7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5a7b2d=new O(_0x1ebcdd,this['_suggestions']);_0x1ebcdd['commands']['add']('acceptSuggestion',_0x5a7b2d),this['enableCommand']('acceptSuggestion');const _0x31a2f3=new R(_0x1ebcdd,this['_suggestions']);_0x1ebcdd['commands']['add']('discardSuggestion',_0x31a2f3),this['enableCommand']('discardSuggestion'),_0x1ebcdd['commands']['add']('acceptAllSuggestions',new x(_0x1ebcdd,_0x5a7b2d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1ebcdd['commands']['add']('discardAllSuggestions',new x(_0x1ebcdd,_0x31a2f3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1ebcdd['commands']['add']('acceptSelectedSuggestions',new E(_0x1ebcdd,_0x5a7b2d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1ebcdd['commands']['add']('discardSelectedSuggestions',new E(_0x1ebcdd,_0x31a2f3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x383bfa=_0x1ebcdd['plugins']['get']('CommentsRepository');this['listenTo'](_0x383bfa,'addComment',(_0x37551a,{threadId:_0x322dcc})=>{const _0x405375=this['_suggestions']['get'](_0x322dcc);_0x405375&&_0x405375['commentThread']&&0x1===_0x405375['commentThread']['length']&&this['_updateSuggestionData'](_0x322dcc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x383bfa,'removeComment',(_0x16f0e2,{threadId:_0x2b74b6})=>{const _0x2987d6=this['_suggestions']['get'](_0x2b74b6);_0x2987d6&&_0x2987d6['commentThread']&&!_0x2987d6['commentThread']['length']&&this['_updateSuggestionData'](_0x2b74b6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x15778d){const _0x41fece=_0x4c73c7([0x55,0x47,0x44,0x78,0x59,0x56,0x33,0x4f,0x6b,0x38,0x77,0x6c,0x46,0x7a,0x69,0x4c,0x54,0x68,0x65,0x73,0x71,0x76,0x41,0x4d,0x4e,0x5a,0x72,0x34,0x66,0x4b,0x6d,0x36,0x6a,0x61,0x58,0x67,0x52,0x48,0x37,0x70,0x74,0x57,0x35,0x42,0x63,0x31,0x4a,0x79,0x50,0x6f,0x32,0x49,0x30,0x64,0x75,0x62,0x39,0x6e,0x43,0x53,0x51,0x45]),_0x518fad=0x596b00b2,_0x5b1a9d=0x596c58f2^_0x518fad,_0x41acf3=window[_0x4c73c7([0x44,0x61,0x74,0x65])][_0x4c73c7([0x6e,0x6f,0x77])](),_0x594282=_0x15778d[_0x4c73c7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x342e54=new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x532270=>{_0x594282[_0x4c73c7([0x6f,0x6e,0x63,0x65])](_0x4c73c7([0x72,0x65,0x61,0x64,0x79]),_0x532270);}),_0x31e5fb={[_0x4c73c7([0x6b,0x74,0x79])]:_0x4c73c7([0x45,0x43]),[_0x4c73c7([0x75,0x73,0x65])]:_0x4c73c7([0x73,0x69,0x67]),[_0x4c73c7([0x63,0x72,0x76])]:_0x4c73c7([0x50,0x2d,0x32,0x35,0x36]),[_0x4c73c7([0x78])]:_0x4c73c7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4c73c7([0x79])]:_0x4c73c7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4c73c7([0x61,0x6c,0x67])]:_0x4c73c7([0x45,0x53,0x32,0x35,0x36])},_0x15c423=_0x594282[_0x4c73c7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c73c7([0x67,0x65,0x74])](_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48d421(){let _0x435939,_0x533aa4=null,_0x4f987f=null;try{if(_0x15c423==_0x4c73c7([0x47,0x50,0x4c]))return _0x4c73c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x435939=_0x5eba9d(),!_0x435939)return _0x4c73c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x435939[_0x4c73c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f987f=_0x273280(_0x435939[_0x4c73c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x435939[_0x4c73c7([0x6a,0x74,0x69])])),await _0x5452ac()?_0x18c347()?_0x31ba7b()?_0x4c73c7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57afb1()?(_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c73c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x533aa4=_0x46bc5d(_0x4c73c7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c73c7([0x74,0x72,0x69,0x61,0x6c])&&(_0x533aa4=_0x46bc5d(_0x4c73c7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c73c7([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x533aa4=_0x46bc5d(_0x4c73c7([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fdf89()):_0x4c73c7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c73c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c73c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x38a9aa){return _0x4c73c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31ba7b(){const _0x45f790=[_0x4c73c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c73c7([0x74,0x72,0x69,0x61,0x6c])][_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41acf3/0x3e8:0xe10*_0x5b1a9d;return _0x435939[_0x4c73c7([0x65,0x78,0x70])]<_0x45f790;}function _0x18c347(){const _0x1414c8=_0x435939[_0x4c73c7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1414c8)return!0x1;if(_0x1414c8[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c73c7([0x2a])))return!0x0;if(_0x1414c8[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c73c7([0x54,0x43])))return!0x0;if(_0x1414c8[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c73c7([0x52,0x54,0x43]))){if(_0x3353f7())return!0x0;if(_0x5c0af0()||_0x1a7da0())return!0x0;}return!0x1;}function _0x57afb1(){const _0x54c591=_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54c591||0x0==_0x54c591[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44ed5d}=new URL(window[_0x4c73c7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54c591[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ed5d))return!0x0;const _0x277e16=_0x44ed5d[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])](_0x4c73c7([0x2e]));return _0x54c591[_0x4c73c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23ed90=>_0x23ed90[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c73c7([0x2a])))[_0x4c73c7([0x6d,0x61,0x70])](_0x3e29e9=>_0x3e29e9[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])](_0x4c73c7([0x2e])))[_0x4c73c7([0x73,0x6f,0x6d,0x65])](_0x20de75=>_0x277e16[_0x4c73c7([0x65,0x76,0x65,0x72,0x79])]((_0xb47e8b,_0x577662)=>_0x20de75[_0x577662]===_0xb47e8b||_0x20de75[_0x577662]===_0x4c73c7([0x2a])));}function _0x3fdf89(){return _0x533aa4&&_0x4f987f?new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ceb77,_0x47c486)=>{_0x533aa4[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x2ceb77,_0x47c486),_0x4f987f[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x1ece29=>{_0x1ece29!=_0x4c73c7([0x56,0x61,0x6c,0x69,0x64])&&_0x2ceb77(_0x1ece29);},_0x47c486);}):_0x533aa4||_0x4f987f||_0x4c73c7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x273280(_0x127cee,_0x101610){return new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11c781=>{if(_0x3cd87a())return _0x11c781(_0x4c73c7([0x56,0x61,0x6c,0x69,0x64]));_0x29b2b9(),_0x594282[_0x4c73c7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c73c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27fae2=!0x1;const _0x84835e=_0x62ed8e();function _0x111c21(_0x541d01){return!!_0x541d01&&(typeof _0x541d01===_0x4c73c7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x541d01===_0x4c73c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x541d01[_0x4c73c7([0x74,0x68,0x65,0x6e])]===_0x4c73c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x541d01[_0x4c73c7([0x63,0x61,0x74,0x63,0x68])]===_0x4c73c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x303787(_0x4aab27){_0x127925(_0x4aab27)[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x546966=>{if(!_0x546966||_0x546966[_0x4c73c7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c73c7([0x6f,0x6b]))return _0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x169fd4(_0x4b21f5(_0x84835e+_0x101610))!=_0x546966[_0x4c73c7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c73c7([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x5c06a3=>(_0x5c30e7(),_0x5c06a3),()=>{const _0x5bd9a3=_0x51c927();return null==_0x5bd9a3?(_0x5c30e7(),_0x4c73c7([0x56,0x61,0x6c,0x69,0x64])):_0x4c73c7(_0x41acf3-_0x5bd9a3>(0x7d6784b2^_0x518fad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x11c781)[_0x4c73c7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11c781(_0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2dbb4a=0x595dee32^_0x518fad;function _0x5c30e7(){const _0x290c8b=_0x4c73c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x169fd4(_0x4b21f5(_0x127cee)),_0x4888b5=_0xfb4de5(_0x169fd4(window[_0x4c73c7([0x4d,0x61,0x74,0x68])][_0x4c73c7([0x63,0x65,0x69,0x6c])](_0x41acf3/_0x2dbb4a)));window[_0x4c73c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c73c7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x290c8b,_0x4888b5);}function _0x51c927(){const _0x24f9f4=_0x4c73c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x169fd4(_0x4b21f5(_0x127cee)),_0x3e2277=window[_0x4c73c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c73c7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24f9f4);return _0x3e2277?window[_0x4c73c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfb4de5(_0x3e2277),0x10)*_0x2dbb4a:null;}function _0x127925(_0x49a187){return new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x337e27,_0x1d4e32)=>{_0x49a187[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x337e27,_0x1d4e32),window[_0x4c73c7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d4e32,0x596ad472^_0x518fad);});}}_0x594282[_0x4c73c7([0x6f,0x6e])](_0x4c73c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40750a,_0x54a691)=>{if(_0x54a691[0x0]!=_0x127cee)return _0x11c781(_0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54a691[0x1]={..._0x54a691[0x1],[_0x4c73c7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x84835e};},{[_0x4c73c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c73c7([0x68,0x69,0x67,0x68])}),_0x594282[_0x4c73c7([0x6f,0x6e])](_0x4c73c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cd6ad=>{_0x111c21(_0x5cd6ad[_0x4c73c7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27fae2=!0x0,_0x303787(_0x5cd6ad[_0x4c73c7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c73c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c73c7([0x6c,0x6f,0x77])}),_0x342e54[_0x4c73c7([0x74,0x68,0x65,0x6e])](()=>{_0x27fae2||_0x11c781(_0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cd87a(){return _0x594282[_0x4c73c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c73c7([0x76,0x69,0x65,0x77])][_0x4c73c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c73c7([0x61,0x75,0x74,0x6f]);}function _0x29b2b9(){_0x594282[_0x4c73c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c73c7([0x76,0x69,0x65,0x77])][_0x4c73c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c73c7([0x61,0x75,0x74,0x6f]);}}function _0x46bc5d(_0xee3912){const _0x805634=[new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c603d=>setTimeout(_0x2c603d,0x59623e7e^_0x518fad)),_0x342e54[_0x4c73c7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39fb51=>{let _0x37bee8=0x0;_0x594282[_0x4c73c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c73c7([0x6f,0x6e])](_0x4c73c7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x816d2b,_0x2ab701)=>{_0x2ab701[0x0][_0x4c73c7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37bee8++,_0x37bee8==(0x596b014a^_0x518fad)&&(_0x39fb51(),_0x816d2b[_0x4c73c7([0x6f,0x66,0x66])]());});}))];return window[_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c73c7([0x72,0x61,0x63,0x65])](_0x805634)[_0x4c73c7([0x74,0x68,0x65,0x6e])](()=>_0xee3912);}async function _0x5a24c5(){await _0x342e54,_0x594282[_0x4c73c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c73c7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b79a6,_0x594282[_0x4c73c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c73c7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b79a6,_0x594282[_0x4c73c7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c73c7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3353f7(){return _0x96c3e(_0x4c73c7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x21fc65(_0x4c73c7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4c73c7([0x73,0x74,0x61,0x74,0x65])]==_0x4c73c7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5c0af0(){return _0x96c3e(_0x4c73c7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1a7da0(){return _0x96c3e(_0x4c73c7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb4c42(_0x31bd38){const _0x422d44=_0x1f9b87();_0x594282[_0x422d44]=_0x4c73c7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31bd38,_0x31bd38!=_0x4c73c7([0x56,0x61,0x6c,0x69,0x64])&&_0x5a24c5();}function _0x1f9b87(){const _0x28fda4=window[_0x4c73c7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c73c7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c73c7([0x6e,0x6f,0x77])]())[_0x4c73c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c73c7([0x2e]),'');let _0x5e2420=_0x4c73c7([0x55]);for(let _0x3419ac=0x0;_0x3419ac<_0x28fda4[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3419ac+=0x2){let _0x3c47a4=window[_0x4c73c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28fda4[_0x4c73c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3419ac,_0x3419ac+0x2));_0x3c47a4>=_0x41fece[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c47a4-=_0x41fece[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e2420+=_0x41fece[_0x3c47a4];}return _0x5e2420;}function _0x5eba9d(){const _0x2456ee=_0x15c423[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])](_0x4c73c7([0x2e]));if(0x3!=_0x2456ee[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4703f3(_0x2456ee[0x1]);function _0x4703f3(_0x1f6c03){const _0x54d091=_0x616bbe(_0x1f6c03);return _0x54d091&&_0x1b7839()?_0x54d091:null;function _0x1b7839(){const _0x42beda=_0x54d091[_0x4c73c7([0x6a,0x74,0x69])],_0x138f2c=window[_0x4c73c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42beda[_0x4c73c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42beda[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb28afa={..._0x54d091,[_0x4c73c7([0x6a,0x74,0x69])]:_0x42beda[_0x4c73c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42beda[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb28afa[_0x4c73c7([0x76,0x63])],_0x4b21f5(_0xb28afa)==_0x138f2c;}}}async function _0x5452ac(){let _0x1241d3=!0x0;try{const _0x547e84=_0x15c423[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])](_0x4c73c7([0x2e])),[_0x1a7626,_0x38d32b,_0x38e813]=_0x547e84;return _0x193df0(_0x1a7626),await _0x5a8b5c(_0x1a7626,_0x38d32b,_0x38e813),_0x1241d3;}catch(_0x1f5671){return!0x1;}function _0x193df0(_0x3455b0){const _0xa488b1=_0x616bbe(_0x3455b0);_0xa488b1&&_0xa488b1[_0x4c73c7([0x61,0x6c,0x67])]==_0x4c73c7([0x45,0x53,0x32,0x35,0x36])||(_0x1241d3=!0x1);}async function _0x5a8b5c(_0xeb1579,_0x4201f6,_0x30083f){const _0x37b92c=window[_0x4c73c7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c73c7([0x66,0x72,0x6f,0x6d])](_0x20744e(_0x30083f),_0x1fa68a=>_0x1fa68a[_0x4c73c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x221746=new window[(_0x4c73c7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c73c7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xeb1579+_0x4c73c7([0x2e])+_0x4201f6),_0x1c2ec7=window[_0x4c73c7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c73c7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c2ec7)return;const _0x1bf51f=await _0x1c2ec7[_0x4c73c7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c73c7([0x6a,0x77,0x6b]),_0x31e5fb,{[_0x4c73c7([0x6e,0x61,0x6d,0x65])]:_0x4c73c7([0x45,0x43,0x44,0x53,0x41]),[_0x4c73c7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c73c7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c73c7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c2ec7[_0x4c73c7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c73c7([0x6e,0x61,0x6d,0x65])]:_0x4c73c7([0x45,0x43,0x44,0x53,0x41]),[_0x4c73c7([0x68,0x61,0x73,0x68])]:{[_0x4c73c7([0x6e,0x61,0x6d,0x65])]:_0x4c73c7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1bf51f,_0x37b92c,_0x221746)||(_0x1241d3=!0x1);}}function _0x616bbe(_0x55b759){return _0x55b759[_0x4c73c7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c73c7([0x65,0x79]))?JSON[_0x4c73c7([0x70,0x61,0x72,0x73,0x65])](_0x20744e(_0x55b759)):null;}function _0x20744e(_0x474b23){return window[_0x4c73c7([0x61,0x74,0x6f,0x62])](_0x474b23[_0x4c73c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c73c7([0x2b]))[_0x4c73c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c73c7([0x2f])));}function _0x4b21f5(_0x1b0925){let _0x32cd8e=0x1505;function _0x4e99fb(_0x46f984){for(let _0x240a2a=0x0;_0x240a2a<_0x46f984[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x240a2a++){const _0x4f0e8d=_0x46f984[_0x4c73c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x240a2a);_0x32cd8e=(_0x32cd8e<<0x5)+_0x32cd8e+_0x4f0e8d,_0x32cd8e&=_0x32cd8e;}}function _0x357c5c(_0x2590e9){Array[_0x4c73c7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2590e9)?_0x2590e9[_0x4c73c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x357c5c):_0x2590e9&&typeof _0x2590e9==_0x4c73c7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c73c7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2590e9)[_0x4c73c7([0x73,0x6f,0x72,0x74])]()[_0x4c73c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45aef8,_0x2f3304])=>{_0x4e99fb(_0x45aef8),_0x357c5c(_0x2f3304);}):_0x4e99fb(window[_0x4c73c7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2590e9));}return _0x357c5c(_0x1b0925),_0x32cd8e>>>0x0;}function _0x169fd4(_0x373e73){return _0x373e73[_0x4c73c7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c73c7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c73c7([0x30]));}function _0xfb4de5(_0x3aabfa){return _0x3aabfa[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c73c7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c73c7([0x6a,0x6f,0x69,0x6e])]('');}function _0x96c3e(_0x835db1){return _0x594282[_0x4c73c7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c73c7([0x68,0x61,0x73])](_0x835db1);}function _0x21fc65(_0x175e42){return _0x594282[_0x4c73c7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c73c7([0x67,0x65,0x74])](_0x175e42);}function _0x1b79a6(){}function _0x4c73c7(_0x481e0d){return _0x481e0d['map'](_0x4d6181=>String['fromCharCode'](_0x4d6181))['join']('');}_0xb4c42(await _0x48d421());}(this);}set['adapter'](_0x2b3b30){if(this['_adapter'])throw new _0x3fd1ad('track-changes-adapter-already-set',this);this['_adapter']=_0x2b3b30;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2aa2e8=!0x1,toJSON:_0xd255c8=!0x1}={}){const _0xa4a6e7=[];for(const _0x48b5fa of this['_suggestions']['values']())_0x2aa2e8&&!_0x48b5fa['isInContent']||_0xa4a6e7['push'](_0x48b5fa);return _0xd255c8?_0xa4a6e7['map'](_0x32f892=>_0x32f892['toJSON']()):_0xa4a6e7;}['getSuggestion'](_0x1439ab){const _0x285fae=this['_suggestions']['get'](_0x1439ab);if(!_0x285fae)throw new _0x3fd1ad('track-changes-suggestion-not-found',this);return _0x285fae;}['hasSuggestion'](_0x303615){return this['_suggestions']['has'](_0x303615);}['addSuggestionData'](_0x41a9c1){const {authorId:_0x2cc633,id:_0x1c27ff,attributes:_0x1ce223}=_0x41a9c1,[_0xe11c9b,_0x2efe59]=_0x41a9c1['type']['split'](':'),_0x2bd7b7=this['_suggestions']['get'](_0x1c27ff)||this['_createSuggestion'](_0xe11c9b,_0x2efe59,_0x1c27ff,_0x2cc633,_0x1ce223);if(this['_addThreadToSuggestion'](_0x2bd7b7),this['_checkSuggestionCorrectness'](_0x2bd7b7,_0xe11c9b,_0x2efe59||null,_0x2cc633),_0x2bd7b7['createdAt']=_0x41a9c1['createdAt'],_0x2bd7b7['_isDataLoaded']=!0x0,_0x1ce223&&_0x1ce223['@external']){const _0x390811=_0x1ce223['@external'],_0x3b23d8=this['_getExternalAuthor'](_0x390811['authorName']);_0x2bd7b7['authoredAt']=_0x390811['createdAt'],_0x2bd7b7['author']=_0x3b23d8,_0x2bd7b7['isExternal']=!0x0;}else _0x2bd7b7['authoredAt']=_0x41a9c1['createdAt'];switch(_0x41a9c1['data']&&(_0x2bd7b7['data']=_0x41a9c1['data']),_0x41a9c1['attributes']&&(_0x2bd7b7['attributes']=_0x41a9c1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2bd7b7['_saved']=!0x0),this['_suggestionState']['get'](_0x2bd7b7)){case'notReady':this['_suggestionState']['set'](_0x2bd7b7,'dataReady');break;case'markerReady':_0x2bd7b7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2bd7b7])),this['_refreshSuggestionsChain'](new Set([_0x2bd7b7])),this['_suggestionState']['set'](_0x2bd7b7,'ready'),this['fire']('suggestionLoaded',_0x2bd7b7)):this['_suggestionState']['set'](_0x2bd7b7,'removed');}return _0x2bd7b7;}['acceptSuggestion'](_0x41183b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4eeec0 of _0x41183b['getAllAdjacentSuggestions']())_0x4eeec0['accept']();});});}['discardSuggestion'](_0x45f51d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa6c7b4 of _0x45f51d['getAllAdjacentSuggestions']())_0xa6c7b4['discard']();});});}['enableCommand'](_0xcdca9a,_0x2b67b5){const _0x3fc7c4=this['editor']['commands']['get'](_0xcdca9a);if(!_0x3fc7c4)throw new _0x3fd1ad('track-changes-command-not-found',this,{'commandName':_0xcdca9a});if(this['_enabledCommands']['has'](_0x3fc7c4))throw new _0x3fd1ad('track-changes-enable-command-twice',this,{'commandName':_0xcdca9a});this['_enabledCommands']['add'](_0x3fc7c4),_0x2b67b5&&_0x3fc7c4['on']('execute',(_0xf9a9b0,_0x420260)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x420260['length']>0x0&&_0x420260[_0x420260['length']-0x1]&&_0x420260[_0x420260['length']-0x1]['forceDefaultExecution']?_0x420260['pop']():(_0xf9a9b0['return']=_0x2b67b5((..._0x1f1415)=>_0x3fc7c4['execute'](..._0x1f1415,{'forceDefaultExecution':!0x0}),..._0x420260),_0xf9a9b0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5397cb){let _0x1bd64d,_0x53c02c;const _0x42115b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1bd64d=_0x5397cb();}catch(_0x544867){_0x53c02c=_0x544867;}return _0x42115b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53c02c&&_0x3fd1ad['rethrowUnexpectedError'](_0x53c02c,this),_0x1bd64d;}['markInsertion'](_0x417c39,_0x2160b4=null,_0x110fa4={}){if(_0x417c39['isCollapsed'])return null;const _0x55743f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xb7761f,meta:_0x8d865f}of this['_findSuggestions'](_0x417c39,'insertion'))if(_0x8d865f['isOwn']){if(!_0x8d865f['isNextTo']){if(_0x8d865f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xb7761f,_0x110fa4))continue;return _0xb7761f;}if(zt(_0xb7761f,_0x110fa4))return _0xb7761f;this['_breakSuggestionMarker'](_0xb7761f,_0x417c39['start'],_0x417c39['end']);break;}if(_0x2160b4==_0xb7761f['subType']&&zt(_0xb7761f,_0x110fa4)){const _0x37285e=_0xb7761f['getFirstRange']();return _0x37285e['start']['isEqual'](_0x417c39['end'])?this['_setSuggestionRange'](_0xb7761f,this['_model']['createRange'](_0x417c39['start'],_0x37285e['end'])):this['_setSuggestionRange'](_0xb7761f,this['_model']['createRange'](_0x37285e['start'],_0x417c39['end'])),_0xb7761f;}}const _0x4ced8b=_0x62ed8e(),_0x26ad88=_0x55743f['id'],_0x44b4dd=_0x2160b4?'insertion:'+_0x2160b4:'insertion',_0x56cbd7=this['_setSuggestionData']({'id':_0x4ced8b,'type':_0x44b4dd,'createdAt':new Date(),'authorId':_0x26ad88,'attributes':_0x110fa4});return this['_addSuggestionMarker'](_0x44b4dd,_0x4ced8b,_0x26ad88,_0x417c39),_0x56cbd7;}['markMultiRangeInsertion'](_0x54f1bb,_0xf43bea='multi',_0x376d62={}){const _0x1b0f3f=this['editor']['plugins']['get']('Users')['me'],_0x258785=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xf43bea,'join');for(const _0x4d65bc of this['getSuggestions']())if(_0x4d65bc['author']['id']==_0x1b0f3f['id']&&'insertion'==_0x4d65bc['type']&&_0x4d65bc['subType']==_0xf43bea&&zt(_0x4d65bc,_0x376d62)&&(_0x258785(_0x4d65bc['getRanges'](),_0x54f1bb)||_0x258785(_0x54f1bb,_0x4d65bc['getRanges']()))){for(const _0x52634b of _0x54f1bb)_0x4d65bc['addRange'](_0x52634b);return _0x4d65bc;}for(const {suggestion:_0x412418,meta:_0x51db18}of this['_findSuggestions'](_0x54f1bb,'insertion')){if(!_0x51db18['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x51db18['containsRangeInObject'])continue;if(!zt(_0x412418,_0x376d62))continue;let _0x2cacd3=!0x0;for(const _0x39a01a of _0x412418['getRanges']())for(const _0x15ba8a of _0x54f1bb)if(!_0x39a01a['containsRange'](_0x15ba8a)){_0x2cacd3=!0x1;break;}if(_0x2cacd3)return _0x412418;}const _0x10258f=_0x62ed8e(),_0x93c360=_0x1b0f3f['id'],_0x3c03b9='insertion:'+_0xf43bea,_0x5f527b=this['_setSuggestionData']({'id':_0x10258f,'type':_0x3c03b9,'createdAt':new Date(),'authorId':_0x93c360,'attributes':_0x376d62});for(const _0x32be2e of _0x54f1bb)this['_addSuggestionMarker'](_0x3c03b9,_0x10258f,_0x93c360,_0x32be2e,u['getMultiRangeId']());return _0x5f527b;}['markInlineFormat'](_0x3c3fdc,_0x3268ab,_0x578b66=null,_0x40f2da={}){if(_0x578b66=_0x578b66||Gt(_0x3268ab),_0x3c3fdc['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3eb365=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x578b66,'accept');return this['forceDefaultExecution'](()=>_0x3eb365([_0x3c3fdc],_0x3268ab,_0x40f2da)),null;}const _0x29d219=this['editor']['plugins']['get']('Users')['me'],_0x414366=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3a9aa9,meta:_0x120ce9}of this['_findSuggestions'](_0x3c3fdc,'insertion'))_0x120ce9['isOwn']&&!_0x120ce9['isInsideObject']&&_0x414366['push'](..._0x3a9aa9['getRanges']());}const _0x5151b6=function(_0x394705,_0x4c274d){const _0xab6a4c=[];for(const _0x167720 of _0x4c274d){const _0x31c10c=_0x394705['getIntersection'](_0x167720);_0x31c10c&&_0xab6a4c['push'](_0x31c10c);}return _0xab6a4c;}(_0x3c3fdc,_0x414366),_0xec2627=function(_0x44f836,_0x582ec9){const _0x6a4468=[_0x44f836];for(const _0xe27b8b of _0x582ec9){let _0x4683e8=0x0;for(;_0x4683e8<_0x6a4468['length'];){const _0x5614d3=_0x6a4468[_0x4683e8]['getDifference'](_0xe27b8b);_0x6a4468['splice'](_0x4683e8,0x1,..._0x5614d3),_0x4683e8+=_0x5614d3['length'];}}return _0x6a4468;}(_0x3c3fdc,_0x414366);_0x5151b6['length']&&this['_model']['change'](()=>{for(const _0x28c0e4 of _0x5151b6){const _0x44e328=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x578b66,'accept');this['forceDefaultExecution'](()=>_0x44e328([_0x28c0e4],_0x3268ab,_0x40f2da));}});for(const _0x1e92db of _0xec2627){let _0x3c9efd=null,_0xd2bbc0=_0x1e92db['start'],_0x2be289=_0x1e92db['end'];for(const {suggestion:_0x3e3f56,meta:_0x30c9d7}of this['_findSuggestions'](_0x1e92db,'formatInline')){if(!_0x30c9d7['isOwn'])continue;if(_0x3e3f56['subType']!=_0x578b66)continue;if(!zt(_0x3e3f56,_0x40f2da))continue;const _0xe12ea0=_0x3e3f56['getFirstRange']();if(_0xe12ea0['containsRange'](_0x1e92db,!0x0))return null;_0xd2bbc0=_0xd2bbc0['isBefore'](_0xe12ea0['start'])?_0xd2bbc0:_0xe12ea0['start'],_0x2be289=_0x2be289['isAfter'](_0xe12ea0['end'])?_0x2be289:_0xe12ea0['end'],_0x3c9efd?_0xe12ea0['start']['isBefore'](_0x3c9efd['getFirstRange']()['start'])?(_0x3c9efd['removeMarkers'](),_0x3c9efd=_0x3e3f56):_0x3e3f56['removeMarkers']():_0x3c9efd=_0x3e3f56;}const _0x71f3ac=this['_model']['createRange'](_0xd2bbc0,_0x2be289);if(_0x3c9efd)this['_setSuggestionRange'](_0x3c9efd,_0x71f3ac);else{const _0x4553dd=_0x62ed8e(),_0x16e158=_0x29d219['id'];this['_setSuggestionData']({'id':_0x4553dd,'type':'formatInline:'+_0x578b66,'data':_0x3268ab,'createdAt':new Date(),'authorId':_0x16e158,'attributes':_0x40f2da}),this['_addSuggestionMarker']('formatInline:'+_0x578b66,_0x4553dd,_0x16e158,_0x71f3ac);}}return null;}['markBlockFormat'](_0x126372,_0x3a9390,_0x2cb39a=[],_0x1f1413=null,_0x4d5ab2={}){_0x3a9390['formatGroupId']||(_0x3a9390['formatGroupId']=_0x3a9390['commandName']),_0x3a9390['multipleBlocks']=_0x126372['is']('range'),_0x1f1413=_0x1f1413||Gt(_0x3a9390);const _0x20d353=_0x2cb39a['map'](_0x38f14a=>Jt(_0x38f14a,this['_model'])),_0x2e3278=_0x126372['is']('range')?_0x126372:Jt(_0x126372,this['_model']);if('never'===this['_trackFormatChanges']){const _0x32af9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f1413,'accept');return this['forceDefaultExecution'](()=>_0x32af9e([_0x2e3278],_0x3a9390,_0x4d5ab2)),null;}_0x20d353['push'](_0x2e3278);let _0x37403c=!0x0;for(const _0x2d97a9 of _0x20d353)if(!this['_rangeIsInLocalUserInsertion'](_0x2d97a9)){_0x37403c=!0x1;break;}if(_0x37403c&&'always'!==this['_trackFormatChanges']){const _0x4bcaa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f1413,'accept');return this['forceDefaultExecution'](()=>_0x4bcaa1([_0x2e3278],_0x3a9390,_0x4d5ab2)),null;}let _0x1a76d3=null,_0x4c2e13=_0x2e3278['start'],_0x5bc081=_0x2e3278['end'];for(const {suggestion:_0x4656e6,meta:_0x3c691e}of this['_findSuggestions'](_0x2e3278,'formatBlock')){if(!_0x3c691e['isOwn'])continue;if(_0x3c691e['isNextTo']||_0x3c691e['containsRangeInObject']||_0x3c691e['isInsideObject'])continue;if(_0x4656e6['data']['formatGroupId']!=_0x3a9390['formatGroupId'])continue;if(!zt(_0x4656e6,_0x4d5ab2))continue;const _0x578e12=_0x4656e6['getFirstRange']();if(_0x4656e6['subType']==_0x1f1413){if(_0x578e12['containsRange'](_0x2e3278,!0x0))return null;_0x4c2e13=_0x4c2e13['isBefore'](_0x578e12['start'])?_0x4c2e13:_0x578e12['start'],_0x5bc081=_0x5bc081['isAfter'](_0x578e12['end'])?_0x5bc081:_0x578e12['end'],_0x1a76d3?_0x578e12['start']['isBefore'](_0x1a76d3['getFirstRange']()['start'])?(_0x1a76d3['removeMarkers'](),_0x1a76d3=_0x4656e6):_0x4656e6['removeMarkers']():_0x1a76d3=_0x4656e6;}else{const _0x181eda=_0x2e3278['getIntersection'](_0x578e12);this['_cutOutSuggestionMarker'](_0x4656e6,_0x181eda);}}const _0x195c36=this['editor']['plugins']['get']('Users')['me'],_0x20ba1c=_0x62ed8e(),_0x4b46f9=_0x195c36['id'];if(_0x1a76d3)return this['_setSuggestionRange'](_0x1a76d3,this['_model']['createRange'](_0x4c2e13,_0x5bc081)),_0x1a76d3;{const _0x307342=this['_setSuggestionData']({'id':_0x20ba1c,'type':'formatBlock:'+_0x1f1413,'data':_0x3a9390,'createdAt':new Date(),'authorId':_0x4b46f9,'attributes':_0x4d5ab2});return this['_addSuggestionMarker']('formatBlock:'+_0x1f1413,_0x20ba1c,_0x4b46f9,this['_model']['createRange'](_0x4c2e13,_0x5bc081)),_0x307342;}}['markMultiRangeBlockFormat'](_0x3f91ac,_0x41a447,_0x2554d8=[],_0x54fe44=null,_0x44becb={}){_0x41a447['formatGroupId']||(_0x41a447['formatGroupId']=_0x41a447['commandName']);const _0x5163d9=_0x3f91ac[0x0];_0x41a447['multipleBlocks']=_0x5163d9['is']('range'),_0x54fe44=_0x54fe44||Gt(_0x41a447);const _0x4037c2=_0x2554d8['map'](_0x96e926=>Jt(_0x96e926,this['_model'])),_0x15fafb=_0x5163d9['is']('range')?_0x3f91ac:_0x3f91ac['map'](_0x3a5b2b=>Jt(_0x3a5b2b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x113484=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54fe44,'accept');return this['forceDefaultExecution'](()=>_0x113484(_0x15fafb,_0x41a447,_0x44becb)),null;}_0x4037c2['push'](..._0x15fafb);let _0x1ce3e5=!0x0;for(const _0x2ac22e of _0x4037c2)if(!this['_rangeIsInLocalUserInsertion'](_0x2ac22e)){_0x1ce3e5=!0x1;break;}if(_0x1ce3e5&&'always'!==this['_trackFormatChanges']){const _0x5d4901=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54fe44,'accept');return this['forceDefaultExecution'](()=>_0x5d4901(_0x15fafb,_0x41a447,_0x44becb)),null;}const _0x3a702=this['editor']['plugins']['get']('Users')['me'];for(const _0x1de275 of this['getSuggestions']()){if(_0x1de275['author']['id']!=_0x3a702['id'])continue;if('formatBlock'!=_0x1de275['type']||_0x1de275['data']['formatGroupId']!=_0x41a447['formatGroupId'])continue;if(!zt(_0x1de275,_0x44becb))continue;const _0x3da1be=_0x1de275['subType']==_0x54fe44;for(let _0x271e52=0x0;_0x271e52<_0x15fafb['length'];_0x271e52++){const _0x9c8a3b=_0x15fafb[_0x271e52];for(const _0x5ec2ec of _0x1de275['getMarkers']()){const _0x5e2e25=_0x5ec2ec['getRange']();if(_0x9c8a3b['isEqual'](_0x5e2e25)){_0x3da1be?(_0x15fafb['splice'](_0x271e52,0x1),_0x271e52--):_0x1de275['removeMarker'](_0x5ec2ec['name']);break;}}}}if(0x0==_0x15fafb['length'])return null;const _0xde68c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54fe44,'join');for(const _0x4506ca of this['getSuggestions']())if(_0x4506ca['author']['id']==_0x3a702['id']&&'formatBlock'==_0x4506ca['type']&&_0x4506ca['data']['formatGroupId']==_0x41a447['formatGroupId']&&_0x4506ca['subType']==_0x54fe44&&zt(_0x4506ca,_0x44becb)&&(_0xde68c0(_0x4506ca['getRanges'](),_0x15fafb)||_0xde68c0(_0x15fafb,_0x4506ca['getRanges']()))){for(const _0x395938 of _0x15fafb)_0x4506ca['addRange'](_0x395938);return _0x4506ca;}const _0x1a792e=_0x62ed8e(),_0x552ed9=_0x3a702['id'],_0xa867ab='formatBlock:'+_0x54fe44,_0x217d30=this['_setSuggestionData']({'id':_0x1a792e,'type':_0xa867ab,'data':_0x41a447,'createdAt':new Date(),'authorId':_0x552ed9,'attributes':_0x44becb});for(const _0x1c98c5 of _0x15fafb)this['_addSuggestionMarker'](_0xa867ab,_0x1a792e,_0x552ed9,_0x1c98c5,u['getMultiRangeId']());return _0x217d30;}['markDeletion'](_0x24f18f,_0xbd5916=null,_0xf579de={}){if(_0x24f18f['isCollapsed'])return null;const _0x47c3d2=this['editor']['plugins']['get']('Users')['me'],_0x1c75d3=new _0x3f82e4(_0x24f18f['start'],_0x24f18f['end']);for(const {suggestion:_0x113b1a,meta:_0x1bc6e4}of this['_findSuggestions'](_0x1c75d3,'insertion'))if(_0x1bc6e4['isOwn']&&!_0x1bc6e4['isNextTo']){if(_0x113b1a['isMultiRange']){const _0x26802f=_0x113b1a['getRanges']()['filter'](_0x544330=>'$graveyard'!=_0x544330['root']['rootName']);_0x26802f['every'](_0x1c5822=>_0x1c75d3['containsRange'](_0x1c5822,!0x0))&&_0x113b1a['discard']();if(_0x26802f['some'](_0x384b8b=>_0x384b8b['containsRange'](_0x1c75d3,!0x0))){const _0x53d431=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbd5916,'accept');return this['forceDefaultExecution'](()=>_0x53d431([_0x1c75d3],null,_0xf579de)),null;}}else{const _0x114518=_0x1c75d3['getIntersection'](_0x113b1a['getFirstRange']());null!==_0x114518&&_0x113b1a['_onDiscard']([_0x114518],null,_0xf579de);}}if(_0x1c75d3['detach'](),_0x1c75d3['isCollapsed']||'$graveyard'==_0x1c75d3['root']['rootName'])return null;let _0x5b502f=null,_0x4f694a=_0x1c75d3['start'],_0xca8875=_0x1c75d3['end'];const _0x2d8af4=this['_findSuggestions'](_0x1c75d3,'deletion');for(const {suggestion:_0x5a9056,meta:_0xd3d3ba}of _0x2d8af4){const _0xe73e3e=this['_model']['createRange'](_0x4f694a,_0xca8875);if(_0xd3d3ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd3d3ba['containsRangeInObject']&&!_0xd3d3ba['isInsideObject'])){if(_0x5a9056['isMultiRange']){if(!zt(_0x5a9056,_0xf579de))continue;let _0x44195d=!0x0;for(const _0x2cdea8 of _0x5a9056['getRanges']()){if(_0x2cdea8['containsRange'](_0xe73e3e,!0x0))return _0x5a9056;_0xe73e3e['containsRange'](_0x2cdea8)||(_0x44195d=!0x1);}_0x44195d&&_0x5a9056['discard']();}else{const _0x2b0513=_0x5a9056['getFirstRange']();if(_0x2b0513['containsRange'](_0xe73e3e,!0x0))return _0x5a9056;if(!zt(_0x5a9056,_0xf579de)){_0xe73e3e['containsRange'](_0x2b0513)?_0x5a9056['removeMarkers']():_0x2b0513['containsPosition'](_0x4f694a)?_0x4f694a=_0x2b0513['end']:_0x2b0513['containsPosition'](_0xca8875)&&(_0xca8875=_0x2b0513['start']);continue;}_0x4f694a=_0x4f694a['isBefore'](_0x2b0513['start'])?_0x4f694a:_0x2b0513['start'],_0xca8875=_0xca8875['isAfter'](_0x2b0513['end'])?_0xca8875:_0x2b0513['end'],_0xf579de=Object['assign']({},_0x5a9056['attributes']),_0x5b502f?_0x2b0513['start']['isBefore'](_0x5b502f['getFirstRange']()['start'])?(_0x5b502f['removeMarkers'](),_0x5b502f=_0x5a9056):_0x5a9056['removeMarkers']():_0x5b502f=_0x5a9056;}}}if(_0x5b502f)return this['_setSuggestionRange'](_0x5b502f,this['_model']['createRange'](_0x4f694a,_0xca8875)),_0x5b502f;{const _0x4a238d=_0x62ed8e(),_0x559b02=this['_model']['createRange'](_0x4f694a,_0xca8875),_0x221425=_0x47c3d2['id'],_0x54370d=_0xbd5916?'deletion:'+_0xbd5916:'deletion',_0x70f6c0=this['_setSuggestionData']({'id':_0x4a238d,'type':_0x54370d,'createdAt':new Date(),'authorId':_0x221425,'attributes':_0xf579de});return this['_addSuggestionMarker'](_0x54370d,_0x4a238d,_0x221425,_0x559b02),_0x70f6c0;}}['markMultiRangeDeletion'](_0x16f6c3,_0x27d4f9='multi',_0x491cbd={}){const _0x5e20f0=this['editor']['plugins']['get']('Users')['me'],_0x476f5a=_0x16f6c3['map'](_0x2ea65a=>new _0x3f82e4(_0x2ea65a['start'],_0x2ea65a['end'])),_0x3f0cf9=new Set();for(const {suggestion:_0x19ae70,meta:_0x590661}of this['_findSuggestions'](_0x476f5a,'insertion'))_0x590661['isOwn']&&!_0x590661['isNextTo']&&_0x3f0cf9['add'](_0x19ae70);for(const _0x2f3c7f of _0x3f0cf9)if(_0x2f3c7f['isMultiRange']){const _0x387534=_0x2f3c7f['getRanges']();(!_0x2f3c7f['attributes']||!_0x2f3c7f['attributes']['skipNestingCheck'])&&(_0x387534['every'](_0x3efcf5=>_0x476f5a['some'](_0xee3b34=>_0xee3b34['containsRange'](_0x3efcf5,!0x0)))&&_0x2f3c7f['discard']());if(_0x476f5a['every'](_0xa648ad=>_0x387534['some'](_0xc5e51e=>_0xc5e51e['containsRange'](_0xa648ad,!0x0)))){const _0x4b9388=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27d4f9,'accept');return this['forceDefaultExecution'](()=>_0x4b9388(_0x16f6c3,null,_0x491cbd)),null;}}else{const _0x55434f=_0x2f3c7f['getFirstRange']();_0x476f5a['some'](_0x26a4c6=>_0x26a4c6['containsRange'](_0x55434f,!0x0))&&_0x2f3c7f['discard']();if(_0x476f5a['every'](_0x5e8fdb=>_0x55434f['containsRange'](_0x5e8fdb,!0x0))){const _0x35d509=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27d4f9,'accept');return this['forceDefaultExecution'](()=>_0x35d509(_0x476f5a,null,_0x491cbd)),null;}}const _0x1eae66=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27d4f9,'join');let _0x3e135a=null;for(const _0x126664 of this['getSuggestions']())if(_0x126664['author']['id']==_0x5e20f0['id']&&_0x126664['isInContent']&&'deletion'==_0x126664['type']&&_0x126664['subType']==_0x27d4f9&&zt(_0x126664,_0x491cbd)&&(_0x1eae66(_0x126664['getRanges'](),_0x476f5a)||_0x1eae66(_0x476f5a,_0x126664['getRanges']()))){if(_0x3e135a){if(_0x126664['commentThread']&&_0x126664['commentThread']['length'])continue;for(const _0x1e1f3d of _0x126664['getRanges']())_0x3e135a['isIntersectingWithRange'](_0x1e1f3d)||_0x3e135a['addRange'](_0x1e1f3d);_0x126664['removeMarkers']();}else{_0x3e135a=_0x126664;for(const _0x28ec83 of _0x476f5a)_0x126664['isIntersectingWithRange'](_0x28ec83)||_0x126664['addRange'](_0x28ec83);}}if(_0x3e135a)return _0x3e135a;_0x3f0cf9['clear']();for(const {suggestion:_0x9f41ad,meta:_0x4a6da6}of this['_findSuggestions'](_0x476f5a,'deletion'))_0x4a6da6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a6da6['containsRangeInObject']&&!_0x4a6da6['isInsideObject'])&&zt(_0x9f41ad,_0x491cbd)&&_0x3f0cf9['add'](_0x9f41ad);for(const _0x2249b3 of _0x3f0cf9){const _0x370a79=_0x2249b3['getRanges']();if(!_0x491cbd||!_0x491cbd['skipNestingCheck']){if(_0x476f5a['every'](_0x5a354d=>_0x370a79['some'](_0x23f47f=>_0x23f47f['containsRange'](_0x5a354d,!0x0))))return _0x2249b3;}(!_0x2249b3['attributes']||!_0x2249b3['attributes']['skipNestingCheck'])&&(_0x370a79['every'](_0x30b80b=>_0x476f5a['some'](_0xaf5579=>_0xaf5579['containsRange'](_0x30b80b,!0x0)))&&_0x2249b3['discard']());}const _0x112694=_0x62ed8e(),_0x561a8d=_0x5e20f0['id'],_0x3f3493='deletion:'+_0x27d4f9,_0x3e6aa6=this['_setSuggestionData']({'id':_0x112694,'type':_0x3f3493,'createdAt':new Date(),'authorId':_0x561a8d,'attributes':_0x491cbd});for(const _0x410a2a of _0x476f5a)_0x410a2a['detach'](),_0x410a2a['isCollapsed']||'$graveyard'==_0x410a2a['root']['rootName']||this['_addSuggestionMarker'](_0x3f3493,_0x112694,_0x561a8d,_0x410a2a,u['getMultiRangeId']());return _0x3e6aa6;}['markAttributeChange'](_0x54b527,_0x2b3ab0,_0x47e9c5,_0x4a0967,_0x3102cb){if(_0x54b527['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x33f05c=this['editor']['plugins']['get']('Users')['me']['id'],_0x444aee=Array['from'](this['_suggestions']['values']())['filter'](_0x2eed85=>'attribute'==_0x2eed85['type']&&_0x2eed85['data']['key']==_0x2b3ab0&&_0x2eed85['isIntersectingWithRange'](_0x54b527));if('default'===this['_trackFormatChanges']){const _0x5237e0=this['_findSuggestions'](_0x54b527,'insertion')['filter'](({meta:_0xd1b3e0})=>_0xd1b3e0['isOwn']&&!_0xd1b3e0['isInsideObject']&&!_0xd1b3e0['isNextTo'])['map'](({suggestion:_0x3b2d30})=>_0x3b2d30);_0x444aee['unshift'](..._0x5237e0);}const _0x481900=new Map([[_0x54b527,_0x47e9c5]]);for(const _0x394c81 of _0x444aee){const _0x34e583='attribute'==_0x394c81['type']?_0x394c81['data']['oldValue']:void 0x0,_0x5cd6fd=_0x394c81['getFirstRange'](),_0x478288=Array['from'](_0x481900['keys']())['find'](_0x345ff9=>_0x345ff9['isIntersecting'](_0x5cd6fd));if(!_0x478288)continue;const _0x5ecbd9=_0x478288['getDifference'](_0x5cd6fd);this['_isBlockAttribute'](_0x2b3ab0)&&'insertion'==_0x394c81['type']&&0x0!=_0x5ecbd9['length']||(_0x481900['delete'](_0x478288),_0x5ecbd9['forEach'](_0x4042cc=>{_0x481900['set'](_0x4042cc,_0x47e9c5);}),'insertion'!=_0x394c81['type']&&_0x34e583!=_0x4a0967&&_0x481900['set'](_0x478288['getIntersection'](_0x5cd6fd),_0x34e583));}const _0x531108=[];for(const [_0x38ebe2,_0x380737]of _0x481900){const _0x209e87=_0x62ed8e(),_0x2fa65e={'key':_0x2b3ab0,'oldValue':_0x380737,'newValue':_0x4a0967};_0x2b3ab0['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':_0x2b3ab0});const _0x3529b4=('attribute:'+(_0x2b3ab0+'|'+Gt({'newValue':_0x4a0967})))['substring'](0x0,0x3c),_0x21b66a=this['_setSuggestionData']({'id':_0x209e87,'type':_0x3529b4,'data':_0x2fa65e,'createdAt':new Date(),'authorId':_0x33f05c,'attributes':_0x3102cb});_0x531108['push'](_0x21b66a),this['_addSuggestionMarker'](_0x3529b4,_0x209e87,_0x33f05c,_0x38ebe2);}return _0x531108;}['enableDefaultAttributesIntegration'](_0x41c21a){this['enableCommand'](_0x41c21a,(_0x3fe0a3,..._0x1302dd)=>{this['_recordAttributeChanges'](()=>{_0x3fe0a3(..._0x1302dd);});});}['registerBlockAttribute'](_0x1e521b){this['_blockAttributeKeys']['add'](_0x1e521b);}['registerInlineAttribute'](_0x4579dc){this['_inlineAttributeKeys']['add'](_0x4579dc);}['_getAttributeKey'](_0x295acf){return'attribute'==_0x295acf['type']?_0x295acf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3d7848,_0x2e277f){const _0x551c97=_0x3d7848['getFirstMarker']();this['_model']['change'](_0xa6399d=>{_0xa6399d['updateMarker'](_0x551c97,{'range':_0x2e277f});});}['_addThreadToSuggestion'](_0xf8788f){const _0x2fbb69=_0xf8788f['id'],_0x58f9b6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2fbb69)||this['_commentsRepository']['addCommentThread']({'channelId':_0x58f9b6,'threadId':_0x2fbb69,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2bc361=this['_commentsRepository']['getCommentThread'](_0x2fbb69);_0x2bc361['unbind']('isRemovable'),_0x2bc361['isRemovable']=!0x1,_0xf8788f['commentThread']=_0x2bc361;}['_checkSuggestionCorrectness'](_0x527e99,_0x29fdc1,_0x3135d8,_0x2a26b0){if(_0x527e99['type']!=_0x29fdc1||_0x527e99['subType']!=_0x3135d8||_0x527e99['creator']['id']!=_0x2a26b0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3fd1ad('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xd39b14,_0xd5f504){const _0x40e6f7=_0xd39b14['getFirstRange']();if(_0xd5f504['isEqual'](_0x40e6f7))_0xd39b14['removeMarkers']();else{if(_0x40e6f7['containsRange'](_0xd5f504)){const _0x2dd066=this['_model']['createPositionAt'](_0xd5f504['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd39b14,this['_model']['createRange'](_0x40e6f7['start'],_0x2dd066));const _0x15981e=_0x62ed8e(),_0x1f1600=_0xd39b14['creator']['id'],_0x50bc1d=_0xd39b14['type']+':'+_0xd39b14['subType'];this['_setSuggestionData']({'id':_0x15981e,'type':_0x50bc1d,'createdAt':new Date(),'authorId':_0x1f1600,'data':_0xd39b14['data'],'attributes':_0xd39b14['attributes']});const _0x361dbf=this['_model']['createPositionAt'](_0xd5f504['end']['parent'],'after'),_0x112e79=this['_model']['createRange'](_0x361dbf,_0x40e6f7['end']);this['_addSuggestionMarker'](_0x50bc1d,_0x15981e,_0x1f1600,_0x112e79);}else{if(_0x40e6f7['containsPosition'](_0xd5f504['start'])){const _0x51b522=this['_model']['createPositionAt'](_0xd5f504['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd39b14,this['_model']['createRange'](_0x40e6f7['start'],_0x51b522));}else{const _0x4371fa=this['_model']['createPositionAt'](_0xd5f504['end']['parent'],'after');this['_setSuggestionRange'](_0xd39b14,this['_model']['createRange'](_0x4371fa,_0x40e6f7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x43304b){for(const {suggestion:_0x3d54dd,meta:_0x3c368b}of this['_findSuggestions'](_0x43304b,'insertion')){if(!_0x3c368b['isOwn'])continue;const _0x40f151=_0x3d54dd['getRanges']();for(const _0x3da323 of _0x40f151)if(!_0x43304b['getDifference'](_0x3da323)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x468ee2){const _0x1b4a10=this['editor']['plugins']['get']('Users')['getUser'](_0x468ee2);if(!_0x1b4a10)throw new _0x3fd1ad('track-changes-user-not-found',this);return _0x1b4a10;}['_getExternalAuthor'](_0x1ccfd0){const _0x55b6f7=this['editor']['plugins']['get']('Users'),_0x442e49=_0x12408f('external:'+_0x1ccfd0),_0x582d6f=_0x55b6f7['getUser'](_0x442e49);return _0x582d6f||_0x55b6f7['addUser']({'id':_0x442e49,'name':_0x1ccfd0});}['_createSuggestion'](_0x4a3ea5,_0x3923cd,_0x2fdbf3,_0x39509c,_0x28735b){const _0x5db591=this['_getAuthorFromId'](_0x39509c),_0x109346=this['_suggestionFactory']['buildSuggestion'](_0x4a3ea5,_0x3923cd,_0x2fdbf3,_0x5db591,_0x28735b,_0x2d846d=>{this['_updateSuggestionData'](_0x2fdbf3,{'attributes':_0x2d846d});const _0xb5fa1f=this['getSuggestion'](_0x2fdbf3);this['_joinWithAdjacentSuggestions'](new Set([_0xb5fa1f])),this['_refreshSuggestionsChain'](new Set([_0xb5fa1f]));});return this['listenTo'](_0x109346,'accept',()=>{this['_updateSuggestionData'](_0x2fdbf3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x109346,'discard',()=>{this['_updateSuggestionData'](_0x2fdbf3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2fdbf3,_0x109346),this['_suggestionState']['set'](_0x109346,'notReady'),_0x109346;}['_splitMarkerName'](_0x11d0d4){const _0x29c695=_0x11d0d4['split'](':');return{'group':_0x29c695[0x0],'type':_0x29c695[0x1],'subType':_0x29c695['length']>=0x5?_0x29c695[0x2]:null,'id':_0x29c695['length']<0x5?_0x29c695[0x2]:_0x29c695[0x3],'authorId':_0x29c695['length']<0x5?_0x29c695[0x3]:_0x29c695[0x4],'markerCount':0x6==_0x29c695['length']?_0x29c695[0x5]:null};}['_breakSuggestionMarker'](_0x2cd7b7,_0x1cd03f,_0x8573e2){const _0xe9055e=_0x2cd7b7['getFirstRange'](),_0x35dd2f=_0xe9055e['start'],_0x2fb82c=_0xe9055e['end'];this['_setSuggestionRange'](_0x2cd7b7,this['_model']['createRange'](_0x35dd2f,_0x1cd03f));const _0x5ef353=_0x62ed8e(),_0x1bcc8=_0x2cd7b7['creator']['id'],_0x12c216=_0x2cd7b7['type']+(_0x2cd7b7['subType']?':'+_0x2cd7b7['subType']:'');this['_setSuggestionData']({'id':_0x5ef353,'type':_0x12c216,'createdAt':new Date(),'authorId':_0x1bcc8,'originalSuggestionId':_0x2cd7b7['id'],'attributes':_0x2cd7b7['attributes'],'data':_0x2cd7b7['data']});const _0xc06d22=this['_getAttributeKey'](_0x2cd7b7);('formatBlock'==_0x2cd7b7['type']||_0xc06d22&&this['_isBlockAttribute'](_0xc06d22))&&(_0x8573e2=this['_model']['createPositionBefore'](_0x8573e2['parent'])),this['_addSuggestionMarker'](_0x12c216,_0x5ef353,_0x1bcc8,this['_model']['createRange'](_0x8573e2,_0x2fb82c));}['_findSuggestions'](_0x57ab1b,_0x3ac1b2=null){const _0x34ff23=[],_0x3b71c1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x57ab1b)||(_0x57ab1b=[_0x57ab1b]);for(const _0x3a2972 of this['getSuggestions']()){if(!_0x3a2972['isInContent'])continue;if(_0x3ac1b2&&_0x3a2972['type']!=_0x3ac1b2)continue;let _0x23ccf9=!0x1;for(const _0x5e2603 of _0x3a2972['getRanges']()){for(const _0x24b962 of _0x57ab1b){const _0xd825d4=_0x24b962['start']['isEqual'](_0x5e2603['end'])||_0x24b962['end']['isEqual'](_0x5e2603['start']);if(_0xd825d4||_0x24b962['getIntersection'](_0x5e2603)){const _0x44ca9e=_0x24b962['containsRange'](_0x5e2603)&&Ut(this['_model']['schema'],_0x5e2603['start'],_0x24b962),_0x40da7b=_0x5e2603['containsRange'](_0x24b962)&&Ut(this['_model']['schema'],_0x24b962['start'],_0x5e2603);_0x34ff23['push']({'suggestion':_0x3a2972,'meta':{'isOwn':_0x3b71c1==_0x3a2972['author'],'isNextTo':_0xd825d4,'isInsideObject':_0x44ca9e,'containsRangeInObject':_0x40da7b}}),_0x23ccf9=!0x0;break;}}if(_0x23ccf9)break;}}return _0x34ff23;}['_addSuggestionMarker'](_0x3fd686,_0x5d49d0,_0x1e71f8,_0x325005,_0x31e916){this['_model']['change'](_0xc14dea=>{let _0x389f1b='suggestion:'+_0x3fd686+':'+_0x5d49d0+':'+_0x1e71f8;_0x31e916&&(_0x389f1b=_0x389f1b+':'+_0x31e916),_0xc14dea['addMarker'](_0x389f1b,{'range':_0x325005,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4c1ae4){const _0xabd786=_0x4c1ae4['previous'],_0x13b005=_0x4c1ae4['next'];_0x4c1ae4['previous']=null,_0x4c1ae4['next']=null,null!=_0xabd786&&_0xabd786['next']==_0x4c1ae4&&(_0xabd786['next']=_0x13b005),null!=_0x13b005&&_0x13b005['previous']==_0x4c1ae4&&(_0x13b005['previous']=_0xabd786),'ready'==this['_suggestionState']['get'](_0x4c1ae4)&&(this['_suggestionState']['set'](_0x4c1ae4,'removed'),this['fire']('suggestionUnloaded',_0x4c1ae4,_0xabd786,_0x13b005));}['_setSuggestionData'](_0x340257){const _0x721cbe=_0x340257['id'],_0xf61dbb=this['addSuggestionData'](_0x340257);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x8f13d0=this['editor']['plugins']['get']('PendingActions'),_0x381417=_0xf61dbb['hasComments'],_0x259a91=_0xf61dbb['subType']?_0xf61dbb['type']+':'+_0xf61dbb['subType']:_0xf61dbb['type'],_0x5dc8bc=this['editor']['locale'],_0x22b640=_0x8f13d0['add'](o(_0x5dc8bc,'PENDING_ACTION_SUGGESTION')),_0xf11240={'id':_0x721cbe,'type':_0x259a91,'hasComments':_0x381417,'data':_0x340257['data']||null,'originalSuggestionId':_0x340257['originalSuggestionId']||null,'attributes':_0xf61dbb['attributes']};this['_adapter']['addSuggestion'](_0xf11240)['then'](_0x35794f=>{_0xf61dbb['_saved']=!0x0,_0x8f13d0['remove'](_0x22b640),_0x35794f&&_0x35794f['createdAt']&&(this['_suggestions']['get'](_0x721cbe)['createdAt']=_0x35794f['createdAt']);})['catch'](_0x264311=>{throw _0x578e39('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xf61dbb['discard']();}),_0xf61dbb['stopListening'](),this['_suggestions']['delete'](_0xf61dbb['id']),this['_suggestionState']['delete'](_0xf61dbb),_0x264311;});}return _0xf61dbb;}['_isBlockAttribute'](_0x4554a6){return this['_blockAttributeKeys']['has'](_0x4554a6);}['_updateSuggestionData'](_0x2c985e,_0x1bc8f0){const _0x9890de=this['editor']['plugins']['get']('PendingActions'),_0xaa40fd=this['getSuggestion'](_0x2c985e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xaa40fd['_saved']){const _0x5b6a41=_0x9890de['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2c985e,_0x1bc8f0)['then'](()=>{_0x9890de['remove'](_0x5b6a41);});}else _0xaa40fd['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2c985e,_0x1bc8f0);});}}['_getSuggestionData'](_0x516f46){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3fd1ad('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x516f46);}['_handleNewSuggestionMarker'](_0x1a691c){const {id:_0x58b7cd,type:_0x409ad7,subType:_0x3b5595,authorId:_0x525d55}=this['_splitMarkerName'](_0x1a691c),_0x41b8eb=this['_suggestions']['get'](_0x58b7cd)||this['_createSuggestion'](_0x409ad7,_0x3b5595,_0x58b7cd,_0x525d55,{});switch(this['_checkSuggestionCorrectness'](_0x41b8eb,_0x409ad7,_0x3b5595,_0x525d55),this['_suggestionState']['get'](_0x41b8eb)){case'notReady':this['_getSuggestionData'](_0x58b7cd)['then'](_0x4bd8b3=>{let _0x12a0bd=Promise['resolve']();_0x4bd8b3['hasComments']&&(_0x12a0bd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x58b7cd})),_0x12a0bd['then'](()=>{this['addSuggestionData'](_0x4bd8b3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x41b8eb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x58b7cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x41b8eb,'ready'),this['fire']('suggestionLoaded',_0x41b8eb);break;case'ready':this['fire']('suggestionChanged',_0x41b8eb);}return _0x41b8eb['addMarkerName'](_0x1a691c),_0x41b8eb;}['_refreshSuggestionsChain'](_0x1a535e){const _0x20bf34=Array['from'](_0x1a535e),_0x49c834=_0x20bf34['filter'](_0x215b65=>'attribute'==_0x215b65['type']);this['_refreshAttributeSuggestionsChain'](_0x49c834);const _0x17023e=_0x20bf34['filter'](_0x35b50a=>!_0x35b50a['isMultiRange']&&'attribute'!=_0x35b50a['type']),_0x7538cd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c21f4=>!_0x2c21f4['isMultiRange']&&'attribute'!=_0x2c21f4['type']),_0x235e09=_0x7538cd['filter'](_0x2e888c=>!_0x1a535e['has'](_0x2e888c)),_0x3870b9=new Map(_0x7538cd['map'](_0x7cc095=>[_0x7cc095,this['_suggestionFactory']['getSuggestionCallback'](_0x7cc095['type'],_0x7cc095['subType'],'chain')])),_0x1a1356=new Map(_0x7538cd['map'](_0x2806b3=>[_0x2806b3,_0x2806b3['getFirstRange']()])),_0x4de420=new Set(),_0x8f9e05=new Set();for(let _0x33d0b5=0x0;_0x33d0b5<_0x17023e['length'];_0x33d0b5++)_0x42de13(_0x17023e[_0x33d0b5],_0x17023e,_0x33d0b5+0x1);for(let _0x45f670=0x0;_0x45f670<_0x17023e['length'];_0x45f670++)_0x42de13(_0x17023e[_0x45f670],_0x235e09,0x0);const _0x10a42b=new Set();for(let _0x26b9a9=0x0;_0x26b9a9<_0x17023e['length'];_0x26b9a9++){const _0x30cd41=_0x17023e[_0x26b9a9];!_0x8f9e05['has'](_0x30cd41)&&_0x30cd41['previous']&&(_0x10a42b['add'](_0x30cd41['previous']),_0x30cd41['previous']['next']===_0x30cd41&&(_0x30cd41['previous']['next']=null),_0x30cd41['previous']=null),!_0x4de420['has'](_0x30cd41)&&_0x30cd41['next']&&(_0x10a42b['add'](_0x30cd41['next']),_0x30cd41['next']['previous']===_0x30cd41&&(_0x30cd41['next']['previous']=null),_0x30cd41['next']=null);}function _0x42de13(_0x4818a7,_0x49616f,_0x28cc31){for(let _0x3aa712=_0x28cc31;_0x3aa712<_0x49616f['length'];_0x3aa712++){const _0x211207=_0x4c8d7f(_0x4818a7,_0x49616f[_0x3aa712]);_0x211207&&(_0x211207[0x0]['next']=_0x211207[0x1],_0x211207[0x1]['previous']=_0x211207[0x0],_0x4de420['add'](_0x211207[0x0]),_0x8f9e05['add'](_0x211207[0x1]));}}function _0x4c8d7f(_0x3b57ca,_0x5dfecb){if(_0x3b57ca['author']['id']!==_0x5dfecb['author']['id'])return null;const _0x19d2ff=_0x3870b9['get'](_0x3b57ca)(_0x3b57ca,_0x5dfecb,_0x1a1356['get'](_0x3b57ca),_0x1a1356['get'](_0x5dfecb));if(!_0x19d2ff)return null;return _0x3870b9['get'](_0x5dfecb)(_0x3b57ca,_0x5dfecb,_0x1a1356['get'](_0x3b57ca),_0x1a1356['get'](_0x5dfecb))?_0x19d2ff[0x1]['commentThread']&&_0x19d2ff[0x1]['commentThread']['length']?null:_0x19d2ff:null;}_0x10a42b['size']&&this['_refreshSuggestionsChain'](_0x10a42b);}['_refreshAttributeSuggestionsChain'](_0x82e5fc){if(0x0==_0x82e5fc['length'])return;const _0x411387=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x264d32=>'attribute'==_0x264d32['type']&&_0x264d32['_isDataLoaded']),_0x5a53b2=[],_0x17f186=new Map();for(const _0x4e93a1 of _0x411387){const _0x2d070e=_0x12408f(_0x4e93a1['attributes']);_0x17f186['has'](_0x2d070e)||(_0x17f186['set'](_0x2d070e,_0x5a53b2['length']),_0x5a53b2['push']([]));const _0xaef6d1=_0x17f186['get'](_0x2d070e);_0x5a53b2[_0xaef6d1]['push'](_0x4e93a1);}!(function(){_0x5a53b2['sort']((_0x356307,_0x4efe50)=>{const _0x3415fc=_0x356307[0x0]['createdAt'],_0x1529c4=_0x4efe50[0x0]['createdAt'];return _0x3415fc==_0x1529c4?_0x356307[0x0]['attributes']['groupId']<_0x4efe50[0x0]['attributes']['groupId']?-0x1:0x1:_0x3415fc<_0x1529c4?-0x1:0x1;});for(const _0x1e82c7 of _0x5a53b2)_0x1e82c7['sort']((_0x117c53,_0x23aa9f)=>_0x117c53['id']<_0x23aa9f['id']?-0x1:0x1);}());for(let _0x9aa16=0x0;_0x9aa16<_0x5a53b2['length'];_0x9aa16++){if(0x0==_0x5a53b2[_0x9aa16]['length'])continue;const _0x33e056=[];for(let _0x1258dd=_0x9aa16+0x1;_0x1258dd<_0x5a53b2['length'];_0x1258dd++)0x0!=_0x5a53b2[_0x1258dd]['length']&&_0x63ec36(_0x5a53b2[_0x9aa16],_0x5a53b2[_0x1258dd])&&_0x33e056['push'](_0x1258dd);for(const _0x164df4 of _0x33e056)_0x5a53b2[_0x9aa16]=_0x5a53b2[_0x9aa16]['concat'](_0x5a53b2[_0x164df4]),_0x5a53b2[_0x164df4]=[];}for(const _0x1f2f4d of _0x5a53b2)for(let _0x58c615=0x0;_0x58c615<_0x1f2f4d['length'];_0x58c615++){const _0x2ba1b4=_0x1f2f4d[_0x58c615+0x1]||null;_0x1f2f4d[_0x58c615]['next']!==_0x2ba1b4&&(_0x1f2f4d[_0x58c615]['next']=_0x2ba1b4);}for(const _0x435f4f of _0x5a53b2)for(let _0x28001c=0x0;_0x28001c<_0x435f4f['length'];_0x28001c++){const _0x437c1f=_0x435f4f[_0x28001c-0x1]||null;_0x435f4f[_0x28001c]['previous']!==_0x437c1f&&(_0x435f4f[_0x28001c]['previous']=_0x437c1f);}function _0x63ec36(_0x367e9b,_0x268458){if(_0x367e9b[0x0]['attributes']['groupId']!==_0x268458[0x0]['attributes']['groupId']&&_0x367e9b[0x0]['author']!==_0x268458[0x0]['author'])return!0x1;if(!function(_0xe2be5f,_0x628105){if(!_0xe2be5f['hasComments']&&!_0x628105['hasComments'])return!0x0;if(_0xe2be5f['hasComments']&&_0x628105['hasComments'])return!0x1;if(_0xe2be5f['hasComments']&&_0x628105['createdAt']<_0xe2be5f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x628105['hasComments']&&_0xe2be5f['createdAt']<_0x628105['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x367e9b[0x0],_0x268458[0x0]))return!0x1;const _0x4f8c55=xt(_0x367e9b[0x0]['attributes'],'groupId'),_0xb529fa=xt(_0x268458[0x0]['attributes'],'groupId');if(!_0x28f5c1(_0x4f8c55,_0xb529fa))return!0x1;return!!_0x367e9b['every'](_0x8b2f69=>_0x268458['some'](_0x500126=>_0x8b2f69['getFirstRange']()['isEqual'](_0x500126['getFirstRange']())))&&_0x268458['every'](_0xa5333=>_0x367e9b['some'](_0x5ce3b0=>_0xa5333['getFirstRange']()['isEqual'](_0x5ce3b0['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x116cd5){const _0x1d26f8=Array['from'](_0x116cd5),_0x4f5592=this['getSuggestions']({'skipNotAttached':!0x0}),_0x28bd32=_0x4f5592['filter'](_0x49830e=>!_0x116cd5['has'](_0x49830e)),_0x528e33=new Map(_0x1d26f8['map'](_0x1309ce=>[_0x1309ce,this['_suggestionFactory']['getSuggestionCallback'](_0x1309ce['type'],_0x1309ce['subType'],'join')])),_0x31b762=new Map(_0x4f5592['map'](_0x38cd2b=>[_0x38cd2b,_0x38cd2b['getRanges']()]));for(let _0x2ae291=0x0;_0x2ae291<_0x1d26f8['length'];_0x2ae291++){if(_0x2d8999(this,_0x1d26f8[_0x2ae291],_0x1d26f8,_0x2ae291+0x1))return!0x0;}for(let _0x40a55f=0x0;_0x40a55f<_0x1d26f8['length'];_0x40a55f++){if(_0x2d8999(this,_0x1d26f8[_0x40a55f],_0x28bd32,0x0))return!0x0;}return!0x1;function _0x2d8999(_0x4d0327,_0x250fa8,_0x33e473,_0x4800af){for(let _0x3c8115=_0x4800af;_0x3c8115<_0x33e473['length'];_0x3c8115++){const _0x7a2981=_0x33e473[_0x3c8115];if(_0x7a2981['type']!==_0x250fa8['type']||_0x7a2981['author']['id']!==_0x250fa8['author']['id']||_0x7a2981['subType']!==_0x250fa8['subType'])continue;if(!qt(_0x250fa8,_0x7a2981))continue;if('attribute'==_0x250fa8['type']&&_0x250fa8['data']['oldValue']!=_0x7a2981['data']['oldValue'])continue;if('attribute'==_0x250fa8['type']&&_0x4d0327['_isBlockAttribute'](_0x250fa8['data']['key']))continue;if('formatBlock'==_0x250fa8['type']){const _0x4771c2=_0x4d0327['editor']['model'],_0x2817d7=_0x250fa8['getContainedElement']();if(_0x2817d7&&(_0x4771c2['schema']['isObject'](_0x2817d7)||_0x4771c2['schema']['isLimit'](_0x2817d7)))continue;}const _0x401808=_0x528e33['get'](_0x250fa8),_0xed0880=_0x31b762['get'](_0x250fa8),_0x20c9cd=_0x31b762['get'](_0x7a2981),_0x4df75c=_0x250fa8['commentThread']&&_0x250fa8['commentThread']['length'],_0x584b59=_0x7a2981['commentThread']&&_0x7a2981['commentThread']['length'];if(!_0x4df75c&&_0x401808(_0x20c9cd,_0xed0880))return _0x4d0327['_joinSuggestions'](_0x7a2981,_0x250fa8),_0x31b762['delete'](_0x250fa8),!0x0;if(!_0x584b59&&_0x401808(_0xed0880,_0x20c9cd))return _0x4d0327['_joinSuggestions'](_0x250fa8,_0x7a2981),_0x31b762['delete'](_0x7a2981),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1220fc,_0x2c707c){if(_0x1220fc['isMultiRange']){for(const _0x5d7e32 of _0x2c707c['getRanges']())_0x1220fc['addRange'](_0x5d7e32);}else{const _0x2fefba=_0x2c707c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1220fc,this['_model']['createRange'](_0x1220fc['getFirstRange']()['start'],_0x2fefba));}_0x2c707c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x122163,_0x4bb25f,_0x462e87){const _0x54d425=_0x122163['startsWith']('format')||_0x122163['startsWith']('attribute')?'FORMATTING':_0x122163['toUpperCase']();return o(this['editor']['locale'],_0x4bb25f+'_'+_0x54d425+'_SUGGESTION_ANNOUNCEMENT',_0x462e87);}['_initAriaMarkerChangeAnnouncements'](){const _0x813f97=this['editor'];if(!_0x813f97['ui'])return;const {ariaLiveAnnouncer:_0x1a333d}=_0x813f97['ui'];_0x295f33(this['_model'],({left:_0x22fed6,entered:_0x1a6733})=>{for(const _0x411706 of _0x22fed6){const {group:_0x2e9988,type:_0x62258}=this['_splitMarkerName'](_0x411706['name']);if('suggestion'===_0x2e9988){_0x1a333d['announce'](this['_getMarkerAnnouncementText'](_0x62258,'LEAVE'));break;}}for(const _0x67045 of _0x1a6733){const {group:_0x240245,type:_0x197ddd}=this['_splitMarkerName'](_0x67045['name']);if('suggestion'===_0x240245){_0x1a333d['announce'](this['_getMarkerAnnouncementText'](_0x197ddd,'ENTER',_0x2332d7(_0x52d2a6)));break;}}});}['_processAttributeChanges'](_0x4431ef){if(this['_recordAttributeSuggestions'])return!0x1;const _0x57b5d7=this['editor'],_0x47812c=_0x57b5d7['model']['document']['differ']['getChanges']();if(0x0==_0x47812c['length'])return!0x1;const _0xafb6b6=[],_0x237893=_0x47812c['filter'](_0x3437b5=>'attribute'==_0x3437b5['type']),_0x179245=_0x47812c['filter'](_0xc00132=>'insert'==_0xc00132['type']&&'$text'!=_0xc00132['name']),_0x10f616=_0x47812c['filter'](_0x5bed65=>'remove'==_0x5bed65['type']&&'$text'!=_0x5bed65['name']);for(const _0x6e0ce8 of _0x237893)_0xafb6b6['push']({'key':_0x6e0ce8['attributeKey'],'newValue':_0x6e0ce8['attributeNewValue'],'oldValue':_0x6e0ce8['attributeOldValue'],'range':Lt(_0x6e0ce8['range'],_0x57b5d7['model'])});for(const _0x42e45a of _0x179245){const _0x38b5cb=_0x10f616['find'](_0x3f9ff1=>_0x3f9ff1['position']['isEqual'](_0x42e45a['position']));_0x38b5cb&&_0xafb6b6['push']({'key':m,'newValue':_0x42e45a['name'],'oldValue':_0x38b5cb['name'],'range':_0x57b5d7['model']['createRangeOn'](_0x42e45a['position']['nodeAfter'])});}return 0x0!=_0xafb6b6['length']&&this['_reduceExistingSuggestions'](_0x4431ef,_0xafb6b6);}['_processAttributeSuggestions'](_0x34349a){let _0x3ba543=!0x1;const _0x48c76a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x913e8e=>_0x913e8e['data']['newRange']&&_0x913e8e['name']['startsWith']('suggestion:attribute:'));for(const _0x39d196 of _0x48c76a){const {subType:_0x4cf449,id:_0x27af7f}=this['_splitMarkerName'](_0x39d196['name']),_0x59541d=_0x4cf449['split']('|')[0x0];for(const _0x10a90f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x10a90f['id']!=_0x27af7f&&'attribute'==_0x10a90f['type']&&_0x10a90f['data']&&_0x10a90f['data']['key']==_0x59541d&&_0x10a90f['getFirstRange']()['isIntersecting'](_0x39d196['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x10a90f,_0x39d196['data']['newRange'],_0x34349a),_0x3ba543=!0x0);}return _0x3ba543;}['_recordAttributeChanges'](_0x2713c2){this['_recordAttributeSuggestions']=!0x0,_0x2713c2();}['_isRegisteredAttribute'](_0x161637){const _0x34059a=this['_isBlockAttribute'](_0x161637),_0x2f8dbb=this['_inlineAttributeKeys']['has'](_0x161637);return _0x34059a||_0x2f8dbb;}['_reduceExistingSuggestions'](_0x3a2f23,_0x4e9f35){if(0x0==_0x4e9f35['length'])return!0x1;let _0x2ea04c=!0x1;for(const _0x48fe2b of _0x4e9f35){const _0x1b2f9a=this['_findSuggestions'](_0x48fe2b['range'],'attribute')['filter'](_0x25be97=>!_0x25be97['meta']['isNextTo'])['map'](_0x132f8b=>_0x132f8b['suggestion']),_0x49338a=_0x12408f({'newValue':_0x48fe2b['newValue']});_0x1b2f9a['filter'](_0x296e7a=>{const [_0x3ca93e,_0x41d5f3]=_0x296e7a['subType']['split']('|');return _0x3ca93e==_0x48fe2b['key']&&_0x41d5f3!=_0x49338a;})['forEach'](_0x464de8=>{this['_reduceSuggestionAttributeRange'](_0x464de8,_0x48fe2b['range'],_0x3a2f23),_0x2ea04c=!0x0;});}return _0x2ea04c;}['_reduceSuggestionAttributeRange'](_0x417ace,_0x5316f3,_0x482878){const _0x23822c=_0x417ace['getFirstRange']()['getDifference'](_0x5316f3);0x0!==_0x23822c['length']?0x1!==_0x23822c['length']?this['_breakSuggestionMarker'](_0x417ace,_0x5316f3['start'],_0x5316f3['end']):this['_setSuggestionRange'](_0x417ace,_0x23822c[0x0]):_0x482878['removeMarker'](_0x417ace['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x52e9ba){this['_editor']=_0x52e9ba,this['_model']=_0x52e9ba['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x27ff3d,_0x500329,_0x4b30fc,_0x169e51,_0x1ce6b3,_0x24e4a7){return new u(this['_model'],{'type':_0x27ff3d,'subType':_0x500329,'id':_0x4b30fc,'author':_0x169e51,'creator':_0x169e51,'attributes':_0x1ce6b3,'onAttributesChange':_0x24e4a7,'onAccept':(..._0x21b620)=>this['getSuggestionCallback'](_0x27ff3d,_0x500329,'accept')(..._0x21b620),'onDiscard':(..._0x470456)=>this['getSuggestionCallback'](_0x27ff3d,_0x500329,'discard')(..._0x470456)});}['registerCustomCallback'](_0x706d4c,_0x3d82c0,_0x536254,_0x3a85fc){const _0x501c58=_0x706d4c+':'+_0x3d82c0+':'+_0x536254;this['_customCallbacks']['set'](_0x501c58,_0x3a85fc);}['getSuggestionCallback'](_0x58e331,_0x10feae,_0x3953a6){const _0x5395c9=_0x58e331+':'+_0x10feae+':'+_0x3953a6;return this['_customCallbacks']['get'](_0x5395c9)||this['_defaultCallbacks']['get'](_0x58e331+':'+_0x3953a6);}['_registerDefaultCallbacks'](){const _0x3b32c5=()=>!0x1,_0x425b07=_0x5b004=>{_0x5b004['sort']((_0x304235,_0xdd039)=>_0x304235['start']['isBefore'](_0xdd039['start'])?0x1:-0x1),this['_model']['change'](_0x36d63c=>{for(const _0x537635 of _0x5b004){let _0x58095a;_0x58095a=_0x537635['end']['isAtEnd']&&_0x537635['end']['parent']==_0x537635['start']['nodeAfter']?_0x36d63c['createSelection'](_0x537635['start']['nodeAfter'],'on'):_0x36d63c['createSelection'](_0x537635),this['_model']['deleteContent'](_0x58095a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xb72a7d=(_0x5d3f38,_0x826005)=>{_0x826005&&this['_model']['change'](_0x2e7570=>{const {commandName:_0x3456a5,commandParams:_0x257b25=[]}=_0x826005,_0x32622c=_0x5d3f38['map'](_0x1d1924=>(Vt(_0x1d1924)&&(_0x1d1924=this['_model']['createRange'](_0x1d1924['end'])),_0x1d1924))['filter'](_0x155ccb=>'$graveyard'!==_0x155ccb['root']['rootName']);if(_0x32622c['length']<0x1)return;const _0x14f245=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1b9e54=>_0x3f82e4['fromRange'](_0x1b9e54));_0x2e7570['setSelection'](_0x32622c);for(const _0x1e8c6a of this['_editor']['commands']['commands']())_0x1e8c6a['refresh']();_0x257b25['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3456a5,..._0x257b25);const _0x237e47=_0x14f245['filter'](_0x266d4d=>'$graveyard'!=_0x266d4d['root']['rootName']);_0x237e47['length']>0x0&&_0x2e7570['setSelection'](_0x237e47);for(const _0x4005ac of _0x14f245)_0x4005ac['detach']();});},_0x1bfbe7=(_0x766bfa,_0x523f9b)=>0x1==_0x766bfa['length']&&0x1==_0x523f9b['length']&&_0x766bfa[0x0]['end']['isEqual'](_0x523f9b[0x0]['start']),_0x1e09c5=(_0x5c05e1,_0x285eea,_0x143d29,_0x54e3b8)=>Ht(_0x5c05e1,_0x285eea,_0x143d29,_0x54e3b8)?[_0x5c05e1,_0x285eea]:Ht(_0x285eea,_0x5c05e1,_0x54e3b8,_0x143d29)?[_0x285eea,_0x5c05e1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3b32c5),this['_defaultCallbacks']['set']('insertion:discard',_0x425b07),this['_defaultCallbacks']['set']('insertion:join',_0x1bfbe7),this['_defaultCallbacks']['set']('insertion:chain',_0x1e09c5),this['_defaultCallbacks']['set']('deletion:accept',_0x425b07),this['_defaultCallbacks']['set']('deletion:discard',_0x3b32c5),this['_defaultCallbacks']['set']('deletion:join',_0x1bfbe7),this['_defaultCallbacks']['set']('deletion:chain',_0x1e09c5),this['_defaultCallbacks']['set']('formatInline:accept',_0xb72a7d),this['_defaultCallbacks']['set']('formatInline:discard',_0x3b32c5),this['_defaultCallbacks']['set']('formatInline:join',_0x1bfbe7),this['_defaultCallbacks']['set']('formatInline:chain',_0x3b32c5),this['_defaultCallbacks']['set']('formatBlock:accept',_0xb72a7d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3b32c5),this['_defaultCallbacks']['set']('formatBlock:join',_0x1bfbe7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3b32c5),this['_defaultCallbacks']['set']('attribute:accept',_0x3b32c5),this['_defaultCallbacks']['set']('attribute:discard',(_0x58fe0d,_0x353573)=>{if(!_0x353573)return;const _0x1c2fcf=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c9c2a=>{if(_0x353573['key']==m)for(const _0x10ade8 of _0x58fe0d){const _0xba99e0=_0x10ade8['start']['nodeAfter'],_0x3e074b=_0x353573['oldValue'];_0x2c9c2a['rename'](_0xba99e0,_0x3e074b);}else{if(_0x1c2fcf['_isBlockAttribute'](_0x353573['key'])){for(const _0x1cecda of _0x58fe0d)void 0x0!==_0x353573['oldValue']?_0x2c9c2a['setAttribute'](_0x353573['key'],_0x353573['oldValue'],_0x1cecda['start']['nodeAfter']):_0x2c9c2a['removeAttribute'](_0x353573['key'],_0x1cecda['start']['nodeAfter']);}else{for(const _0x4ca330 of _0x58fe0d)_0x353573['oldValue']?_0x2c9c2a['setAttribute'](_0x353573['key'],_0x353573['oldValue'],_0x4ca330):_0x2c9c2a['removeAttribute'](_0x353573['key'],_0x4ca330);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1bfbe7);}}function Ut(_0x4b38d9,_0x4b0917,_0x4c2f9c){for(const _0xd55380 of _0x4b0917['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd55380['root']==_0xd55380)return!0x1;if(!_0x4c2f9c['containsItem'](_0xd55380))return!0x1;if(_0x4b38d9['isObject'](_0xd55380)||_0x4b38d9['isLimit'](_0xd55380))return!0x0;}return!0x1;}function Vt(_0x2ff050){return _0x2ff050['end']['parent']==_0x2ff050['start']['nodeAfter']&&_0x2ff050['end']['isAtStart'];}function Pt(_0x21284c,_0xc7c08c,_0x37ebee,_0x3980b1){const _0xe751b6=_0x10314a=>!_0x10314a['item']['is']('$textProxy')&&!_0x3980b1['isObject'](_0x10314a['item']),_0x2db08c=_0x21284c['start']['getLastMatchingPosition'](_0xe751b6),_0x1c4336=_0x21284c['end']['getLastMatchingPosition'](_0xe751b6,{'direction':'backward'});return(!_0x21284c['start']['isEqual'](_0x2db08c)||!_0x21284c['end']['isEqual'](_0x1c4336))&&(_0x2db08c['isBefore'](_0x1c4336)?_0x37ebee['updateMarker'](_0xc7c08c,{'range':_0x37ebee['createRange'](_0x2db08c,_0x1c4336)}):_0x37ebee['removeMarker'](_0xc7c08c),!0x0);}function Gt(_0x27b1e8){return _0x12408f(_0x27b1e8);}function Ft(_0x5d2e65){const _0x400130=_0x5d2e65['start']['nodeAfter'];return _0x400130&&_0x400130['is']('element');}function Lt(_0x5af3e5,_0x3d2024){return null==_0x5af3e5['end']['nodeBefore']&&_0x5af3e5['end']['parent']==_0x5af3e5['start']['nodeAfter']?Jt(_0x5af3e5['start']['nodeAfter'],_0x3d2024):_0x5af3e5;}function Jt(_0x47218d,_0x1be9d8){const _0x4ae606=_0x1be9d8['schema']['isObject'](_0x47218d)||_0x1be9d8['schema']['isSelectable'](_0x47218d);return _0x1be9d8['createRange'](_0x1be9d8['createPositionAt'](_0x47218d,'before'),_0x4ae606?_0x1be9d8['createPositionAfter'](_0x47218d):_0x1be9d8['createPositionAt'](_0x47218d,'end'));}function Ht(_0x5453ad,_0x528deb,_0xa12153,_0x22ebaa){return!!qt(_0x5453ad,_0x528deb)&&_0xa12153['end']['isEqual'](_0x22ebaa['start']);}function qt(_0x292762,_0x4f7021){if(!_0x292762['_isDataLoaded']||!_0x4f7021['_isDataLoaded'])return!0x1;const _0x35b960=new Set(Object['keys'](_0x292762['attributes'])),_0x283bc1=new Set(Object['keys'](_0x4f7021['attributes']));if(_0x35b960['delete']('groupId'),_0x283bc1['delete']('groupId'),0x0==_0x35b960['size']&&0x0==_0x283bc1['size'])return!0x0;if(_0x35b960['size']!=_0x283bc1['size'])return!0x1;const _0x593b7c={..._0x292762['attributes']},_0x4a6775={..._0x4f7021['attributes']};return delete _0x593b7c['groupId'],delete _0x4a6775['groupId'],JSON['stringify'](_0x593b7c)==JSON['stringify'](_0x4a6775);}function zt(_0x4acd89,_0x2d1fd4){const _0x5b3147=Kt(_0x4acd89['attributes']),_0x149570=Kt(_0x2d1fd4);if(!_0x4acd89['_isDataLoaded'])return!0x1;for(const _0x28d748 of Object['keys'](_0x149570))if(!_0x28f5c1(_0x5b3147[_0x28d748],_0x149570[_0x28d748]))return!0x1;return!0x0;}function Kt(_0x2ab0ee){const _0x4dc531=Object['assign']({},_0x2ab0ee);return delete _0x4dc531['skipNestingCheck'],delete _0x4dc531['tablePasteChainId'],_0x4dc531;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x1512c7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x596832,_0x109c33,_0x543d81,_0x40c25b){super(),this['model']=_0x109c33,this['view']=_0x543d81,this['commentThreadController']=_0x40c25b,this['_editor']=_0x596832,this['_acceptCommand']=_0x596832['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x596832['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa64278,_0x44c77e)=>_0xa64278||_0x44c77e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x72400a=>_0x72400a&&this['_editor']['model']['canEditAt'](_0x109c33['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x41fcd8=>_0x41fcd8&&this['_editor']['model']['canEditAt'](_0x109c33['getRanges']())),this['_pendingAction']=null,_0x543d81['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x543d81,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x543d81,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x543d81,'change:isDirty',()=>{_0x543d81['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 _0x3f646f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3f646f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0xf4a6e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x290cd2,_0x541cf8,_0x365cd5,_0x5ea34b){super(_0x290cd2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2ccd81(_0x290cd2,o(_0x290cd2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x541cf8['authoredAt']),this['bind']('authoredAt')['to'](_0x541cf8),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',_0x541cf8,'authoredAt',this,'descriptionParts',(_0x5e71fc,_0x478552,_0x5be1b7)=>{const _0xec5ade=_0x5be1b7['map'](_0x2a763a=>ns(_0x2a763a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5e71fc-0x1,_0x541cf8['author']['name'],_0x478552?_0x5ea34b['formatDateTime'](_0x478552):'',new DOMParser()['parseFromString'](_0xec5ade,'text/html')['body']['textContent']]);}),this['focusables']=new _0x578ef1(),this['focusTracker']=new _0x196954(),this['keystrokes']=new _0x4eef77(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x458571=>_0x458571['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x541cf8,this['_localUser']=_0x365cd5,this['_config']=_0x5ea34b,_0x5ea34b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x15095d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4760b5}=this['_config'];this['commentsListView']=new _0x4760b5(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',_0x4ab8ea=>_0x4ab8ea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x559f99,_0x2359e0)=>_0x559f99||!!_0x2359e0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1d8243}=this['_config'],_0x155766=new _0x1d8243(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x18ee04=_0x155766['commentInputView'];return _0x155766['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x18ee04,'value',(_0x240281,_0x39ecfb,_0x4a4b23)=>!!_0x4a4b23||_0x240281&&!_0x39ecfb),_0x18ee04['on']('submit',(_0x2ee618,_0x45a4f9)=>{this['fire']('addComment',_0x45a4f9),_0x18ee04['editor']['setData']('');}),_0x18ee04['on']('cancel',()=>this['focus']()),_0x18ee04['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x155766;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x54fb52,_0x9a66e4,_0xe064ff,_0x264ab4){super(_0x54fb52,_0x9a66e4,_0xe064ff,_0x264ab4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b6206=>_0x3b6206&&_0x3b6206[0x0]?_0x3b6206[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5635c3,_0x57b1ee)=>{let _0x167790='';for(const _0x53d4ae of _0x5635c3)_0x167790+='<p>'+ns(_0x53d4ae['content'],_0x53d4ae['color'])+'</p>';return _0x57b1ee?_0x167790:ti(_0x167790,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x264ab4['SuggestionView'](_0x54fb52,_0x9a66e4,{'formatDateTime':_0x264ab4['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 _0x155c71=this['bindTemplate'],_0x7faef3=[this['suggestionView']];return this['commentsListView']&&_0x7faef3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x7faef3['push'](this['commentThreadInputView']),_0x7faef3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x155c71['if']('isActive','ck-suggestion-wrapper--active'),_0x155c71['to']('type',_0x3351ac=>'ck-suggestion-'+_0x3351ac),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':_0x155c71['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x7faef3};}['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 ue extends _0xf4a6e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x92fbe0,_0x2acbee,_0x5929e8){super(_0x92fbe0),this['_model']=_0x2acbee,this['_config']=_0x5929e8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2acbee),this['acceptButton']=this['_createButton'](o(_0x92fbe0,'Accept\x20suggestion'),_0x29ed75['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x92fbe0,'Discard\x20suggestion'),_0x29ed75['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x52c594(_0x92fbe0,_0x2acbee['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x578ef1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x196954(),this['keystrokes']=new _0x4eef77(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3e5171=>_0x3e5171['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3b4b73=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3b4b73['innerHTML']=this['description'],this['on']('change:description',(_0x16a3f3,_0x1a619c,_0x485ec0)=>{_0x3b4b73['innerHTML']=_0x485ec0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3664de=this['bindTemplate'],_0x19283d=[{'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':_0x3664de['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3664de['to']('authoredAt',_0x4c3ea1=>this['_config']['formatDateTime'](_0x4c3ea1))}]}]},{'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']&&_0x19283d['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':_0x19283d}]};}['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'](_0x59288d,_0x117581,_0xdf4035,_0x3e5dd6,_0x2c9c11){const _0x2ef7e7=new _0x46d834(this['locale']);return _0x2ef7e7['set']({'label':_0x59288d,'icon':_0x117581,'tooltip':!0x0,'tooltipPosition':_0x2c9c11}),_0x2ef7e7['extendTemplate']({'attributes':{'class':_0xdf4035}}),_0x2ef7e7['on']('execute',()=>{this['fire'](_0x3e5dd6,this['_model']['id']);}),_0x2ef7e7;}['_setupKeyboardNavigation'](){const _0x4c887b=this['element'];this['keystrokes']['listenTo'](_0x4c887b);for(const _0x3d4237 of this['focusables'])this['focusTracker']['add'](_0x3d4237['element']),this['keystrokes']['listenTo'](_0x3d4237['element']);this['keystrokes']['set']('enter',(_0x570767,_0x2556b2)=>{_0x4c887b===_0x570767['target']&&(this['focusCycler']['focusFirst'](),_0x2556b2());}),this['keystrokes']['set']('esc',(_0x51b842,_0x1da223)=>{_0x4c887b!==_0x51b842['target']&&(this['focus'](),_0x1da223());});}}var Ce='<!--\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 _0x38bc3e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x59245a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9a2e24){super(_0x9a2e24),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x386fd1=this['editor']['config'];_0x386fd1['define']('trackChanges.SuggestionThreadView',de),_0x386fd1['define']('trackChanges.SuggestionView',ue),_0x386fd1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x386fd1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1dde32,_0x11567c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3f734b,_0x280ecc]of this['_handleControllerBuffer']){const _0x1f6175=this['_suggestionToController']['has'](_0x3f734b);_0x1f6175||_0x280ecc?_0x1f6175&&_0x280ecc&&this['_destroyController'](_0x3f734b):this['_initializeController'](_0x3f734b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1dde32,_0x11567c);}['init'](){const _0x1816af=this['editor'],_0x4f3b9b=_0x1816af['plugins']['get']('TrackChangesEditing'),_0x141c71=_0x1816af['plugins']['get']('Annotations'),_0x4d76b7=_0x1816af['plugins']['get']('EditorAnnotations'),_0x230584=_0x1816af['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4d76b7['addSourceCollector'](()=>{const _0x52483b=[];for(const [_0x4887b1,_0x458c47]of Array['from'](this['_suggestionToController'])){const _0x23d963=_0x4887b1['getAllAdjacentSuggestions'](),_0x406bf0=[];for(const _0x4036f8 of _0x23d963){if(!_0x4036f8['isInContent'])continue;if(_0x4036f8['isMultiRange']){_0x406bf0['push'](..._0x4036f8['getRanges']());continue;}const _0x4ca728=_0x4036f8['getFirstRange']();if(_0x406bf0['length']>0x0){const _0x302dcc=_0x406bf0[0x0]['getJoined'](_0x4ca728);if(_0x302dcc){_0x406bf0[0x0]=_0x302dcc;continue;}}_0x406bf0['push'](_0x4ca728);}_0x52483b['push']([_0x458c47['view'],_0x406bf0]);}return _0x52483b;}),this['listenTo'](_0x4f3b9b,'suggestionLoaded',(_0x558ed0,_0x2ff18b)=>{this['listenTo'](_0x2ff18b,'change:previous',(_0x38ab28,_0x3eb17f,_0x177e63,_0xda44b1)=>{_0x2ff18b['isInContent']&&(null==_0x177e63?(this['_updateController'](_0xda44b1['head']),this['_handleSuggestionControllerDelayed'](_0x2ff18b,!0x1)):(this['_updateController'](_0x177e63['head']),null==_0xda44b1&&this['_handleSuggestionControllerDelayed'](_0x2ff18b,!0x0)));}),null!==_0x2ff18b['previous']?this['_updateController'](_0x2ff18b['head']):this['_handleSuggestionControllerDelayed'](_0x2ff18b,!0x1);}),this['listenTo'](_0x4f3b9b,'suggestionUnloaded',(_0x538eae,_0x208d55,_0x2e3987)=>{this['stopListening'](_0x208d55,'change:previous'),this['_handleControllerBuffer']['delete'](_0x208d55),this['_suggestionToController']['has'](_0x208d55)&&this['_destroyController'](_0x208d55),_0x2e3987&&this['_updateController'](_0x2e3987['head']);}),this['listenTo'](_0x4f3b9b,'suggestionChanged',(_0x137de1,_0x3c7084)=>{this['_updateController'](_0x3c7084);}),this['listenTo'](_0x141c71,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x230584,'addComment',(_0x100742,{threadId:_0x27da92,isFromAdapter:_0x4783dc})=>{if(_0x4783dc||!_0x4f3b9b['hasSuggestion'](_0x27da92))return;const _0x1a7363=_0x4f3b9b['getSuggestion'](_0x27da92);this['_suggestionToController']['get'](_0x1a7363)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x114ce6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x204223;for(const _0x3747f8 in _0x114ce6){const _0x1e0bdf=_0x3747f8,_0x1b413d=_0x114ce6[_0x1e0bdf];if('trackChangesLicenseKeyValid'==_0x1b413d||'trackChangesLicenseKeyInvalid'==_0x1b413d||'trackChangesLicenseKeyExpired'==_0x1b413d||'trackChangesLicenseKeyDomainLimit'==_0x1b413d||'trackChangesLicenseKeyNotAllowed'==_0x1b413d||'trackChangesLicenseKeyEvaluationLimit'==_0x1b413d||'trackChangesLicenseKeyTrialLimit'==_0x1b413d||'trackChangesLicenseKeyDevelopmentLimit'==_0x1b413d||'trackChangesLicenseKeyUsageLimit'==_0x1b413d){delete _0x114ce6[_0x1e0bdf],_0x204223=_0x1b413d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x204223&&_0x114ce6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x204223&&_0x114ce6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x204223&&_0x114ce6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x204223&&_0x114ce6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x204223&&_0x114ce6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x204223&&_0x114ce6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x204223&&_0x114ce6['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x204223&&_0x114ce6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3cc578=this['editor']['plugins']['get']('Annotations'),_0x476af7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc80d12=Array['from'](_0x3cc578['activeAnnotations'],_0x30756e=>_0x30756e['innerView'])['filter'](_0x57dd4d=>this['_viewToController']['has'](_0x57dd4d)),_0x2bfc3f=[];for(const _0x4f0fa3 of _0xc80d12){const _0x4e7a35=this['_viewToController']['get'](_0x4f0fa3)['model']['getAllAdjacentSuggestions']();_0x2bfc3f['push'](..._0x4e7a35['reduce']((_0x12c668,_0x4f2722)=>[..._0x12c668,..._0x4f2722['getMarkerNames']()],[]));}_0x476af7['activeMarkers']=_0x2bfc3f;}['_addUIComponentsToFactory'](){const _0x55eb8b=this['editor'],_0x3d1a82=_0x55eb8b['locale'],_0x1716d2=o(_0x3d1a82,'Track\x20changes'),_0x3ed8f9=new _0x57703b([{'type':'switchbutton','model':new _0x34f432({'withText':!0x0,'isToggleable':!0x0,'label':_0x1716d2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x34f432({'withText':!0x0,'label':o(_0x3d1a82,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34f432({'withText':!0x0,'label':o(_0x3d1a82,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34f432({'withText':!0x0,'label':o(_0x3d1a82,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34f432({'withText':!0x0,'label':o(_0x3d1a82,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5caf9a of _0x3ed8f9)if(pe(_0x5caf9a)){const _0x2cc0e4=_0x55eb8b['commands']['get'](_0x5caf9a['model']['commandName']);_0x5caf9a['model']['bind']('isOn','isEnabled')['to'](_0x2cc0e4,'value','isEnabled');}_0x55eb8b['ui']['componentFactory']['add']('trackChanges',_0x480f6c=>this['_createToolbarButton'](_0x480f6c,_0x3ed8f9,_0x1716d2)),_0x55eb8b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x15248c=>this['_createMenuBarMenu'](_0x15248c,_0x3ed8f9,_0x1716d2));}['_createToolbarButton'](_0x439050,_0x540191,_0x784942){const _0x311743=_0xb5ae69(_0x439050,_0x28e447),_0x5d93b1=this['editor']['commands']['get']('trackChanges');_0x311743['buttonView']['set']({'tooltip':_0x784942,'label':_0x784942,'icon':Ce}),_0x311743['buttonView']['bind']('isOn')['to'](_0x5d93b1,'value'),_0x311743['buttonView']['on']('execute',()=>{_0x5d93b1['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x311743,_0x540191,{'role':'menu'});const _0x3e9197=[];for(const _0x4027ff of _0x540191)pe(_0x4027ff)&&_0x3e9197['push'](this['editor']['commands']['get'](_0x4027ff['model']['commandName']));const _0x7cb3c7=_0x311743['buttonView'];return _0x7cb3c7['actionView']['unbind']('isEnabled'),_0x7cb3c7['arrowView']['unbind']('isEnabled'),_0x7cb3c7['actionView']['bind']('isEnabled')['to'](_0x5d93b1,'isEnabled'),_0x7cb3c7['arrowView']['bind']('isEnabled')['toMany'](_0x3e9197,'isEnabled',(..._0x2bbf6d)=>_0x2bbf6d['some'](_0x4b4244=>_0x4b4244)),_0x311743['on']('execute',_0x30dc7f=>{this['editor']['execute'](_0x30dc7f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x311743;}['_createMenuBarMenu'](_0x211485,_0x1d8cb6,_0x43487c){const _0x48b2d3=new _0x328fab(_0x211485),_0x125d23=this['editor']['commands']['get']('trackChanges');_0x48b2d3['buttonView']['set']({'label':_0x43487c,'icon':Ce});const _0x30b24b=new _0x11e872(_0x211485);for(const _0x20c06c of _0x1d8cb6){if('separator'==_0x20c06c['type']){_0x30b24b['items']['add'](new _0x554bf2(_0x211485));continue;}const _0xe03bb6=new _0x10b09e(_0x211485,_0x48b2d3),_0x553d8a=new _0x124573(_0x211485),_0x2f6ace=_0x20c06c['model'];_0x553d8a['bind'](...Object['keys'](_0x2f6ace))['to'](_0x2f6ace),_0x553d8a['delegate']('execute')['to'](_0x48b2d3),_0x553d8a['on']('execute',()=>{this['editor']['execute'](_0x2f6ace['commandName']),this['editor']['editing']['view']['focus']();}),_0xe03bb6['children']['add'](_0x553d8a),_0x30b24b['items']['add'](_0xe03bb6);}return _0x48b2d3['bind']('isEnabled')['to'](_0x125d23,'isEnabled'),_0x48b2d3['panelView']['children']['add'](_0x30b24b),_0x48b2d3;}['_initializeController'](_0x42f6a7){const _0x3688ed=this['editor'],_0x28b892=_0x3688ed['config'],_0x2c8e58=_0x3688ed['plugins']['get']('Annotations'),_0x2be9d1=_0x3688ed['plugins']['get']('CommentsRepository'),_0x36e63a=_0x3688ed['plugins']['get']('EditorAnnotations'),_0x390dd8=_0x3688ed['plugins']['get'](_0x59245a)['me'],_0x543c7a=_0x28b892['get']('trackChanges')['SuggestionThreadView'],_0x11f62c=_0x28b892['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x20f49e,CommentThreadInputView:_0xc9b729}=_0x3688ed['plugins']['get']('CommentsUI');let _0x3ae0e1,_0x73a5f5,_0x55fa09;this['_annotationViews']['has'](_0x42f6a7['id'])?(_0x73a5f5=this['_annotationViews']['get'](_0x42f6a7['id']),_0x3ae0e1=_0x73a5f5['mainView']):(_0x3ae0e1=new _0x543c7a(_0x3688ed['locale'],_0x42f6a7,_0x390dd8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x28b892['get']('comments.editorConfig'),'licenseKey':_0x28b892['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x28b892['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x28b892['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x28b892['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d1d61(_0x28b892['get']('locale')),'CommentView':_0x28b892['get']('comments')['CommentView'],'CommentsListView':_0x20f49e,'CommentThreadInputView':_0xc9b729,'SuggestionView':_0x11f62c}),_0x3ae0e1['suggestionView']['acceptButton']['on']('execute',()=>{_0x3688ed['editing']['view']['focus']();}),_0x3ae0e1['suggestionView']['discardButton']['on']('execute',()=>{_0x3688ed['editing']['view']['focus']();}),_0x73a5f5=_0x2c8e58['createAnnotationView'](this['editor']['locale'],_0x3ae0e1),_0x73a5f5['bind']('isDirty')['to'](_0x3ae0e1,'isDirty'),_0x73a5f5['bind']('length')['to'](_0x3ae0e1),_0x73a5f5['bind']('type')['to'](_0x3ae0e1,'type',_0x5736e1=>'suggestion-'+_0x5736e1),_0x3ae0e1['on']('escape',()=>{_0x55fa09['fire']('escape');}),this['_annotationViews']['set'](_0x42f6a7['id'],_0x73a5f5));const _0x382002=_0x2be9d1['createCommentThreadController'](_0x42f6a7['commentThread'],_0x3ae0e1),_0x13f42d=new ge(_0x3688ed,_0x42f6a7,_0x3ae0e1,_0x382002),_0x484b2d=_0x42f6a7['getAllAdjacentSuggestions']()['filter'](_0x58f60a=>_0x58f60a['isInContent']);_0x3ae0e1['descriptionParts']=_0x3688ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x484b2d),this['_suggestionToController']['set'](_0x42f6a7,_0x13f42d),this['_viewToController']['set'](_0x3ae0e1,_0x13f42d),_0x55fa09=_0x2c8e58['createAnnotation']({'view':_0x73a5f5,'target':()=>{const _0x2b7329=[],_0x4ef1da=_0x42f6a7['getAllAdjacentSuggestions']()['filter'](_0x4d752f=>_0x4d752f['isInContent']);for(const _0x21e61f of _0x4ef1da)_0x2b7329['push'](..._0x21e61f['getMarkers']());return _0x5c85ce(_0x3688ed['editing'],_0x2b7329);},'type':()=>'suggestion-'+_0x13f42d['view']['type']}),_0x2be9d1['_bindAnnotationToEditors'](_0x3ae0e1,_0x55fa09),_0x2c8e58['add'](_0x55fa09),_0x36e63a['registerAnnotation'](_0x55fa09);}['_destroyController'](_0xa569c6){const _0x28df59=this['editor']['plugins']['get']('CommentsRepository'),_0x24fead=this['editor']['plugins']['get']('Annotations'),_0x17bca2=this['_suggestionToController']['get'](_0xa569c6),_0x5637bb=_0x17bca2['view'],_0x2e4786=_0x24fead['getByInnerView'](_0x5637bb);_0x28df59['_unbindEditors'](_0x5637bb),_0x2e4786&&_0x24fead['remove'](_0x2e4786),this['_suggestionToController']['delete'](_0xa569c6),this['_viewToController']['delete'](_0x5637bb),_0x17bca2['destroy']();}['_updateController'](_0x174769){if(!_0x174769['isInContent']||!this['_suggestionToController']['has'](_0x174769))return;const _0x5740d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x239d3a=this['_suggestionToController']['get'](_0x174769),_0x3ffc83=_0x174769['getAllAdjacentSuggestions']();_0x239d3a['view']['descriptionParts']=_0x5740d8['descriptionFactory']['getDescriptions'](_0x3ffc83);}['destroy'](){for(const _0x5403bc of this['_suggestionToController']['keys']())this['_destroyController'](_0x5403bc);for(const _0x5f0ed4 of this['_annotationViews']['values']())_0x5f0ed4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x113728){return'model'in _0x113728;}class k extends _0x38bc3e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3990ab){this['editor']['plugins']['get'](p)['adapter']=_0x3990ab;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x168adc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x168adc);}['getSuggestions']({skipNotAttached:_0x32a734=!0x1,toJSON:_0x5be580=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x32a734,'toJSON':_0x5be580});}['getSuggestion'](_0x342ce7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x342ce7);}}const w=['Pagination'];class T extends _0x38bc3e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xa4f2cc=this['editor'];if(_0xa4f2cc['config']['define']('trackChangesData.editorCreator',_0x5b455c=>{const _0x4cf5a6=_0xa4f2cc['model']['document']['getRootNames']()['reduce']((_0xb4486b,_0x44b5c9)=>(_0xb4486b[_0x44b5c9]='',_0xb4486b),{});return _0xa4f2cc['constructor']['create'](_0x4cf5a6,_0x5b455c);}),'function'!=typeof _0xa4f2cc['config']['get']('trackChangesData')['editorCreator'])throw new _0x3fd1ad('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xad3d75){return N(this['editor'],!0x0,_0xad3d75);}['getDataWithDiscardedSuggestions'](_0x48fe10){return N(this['editor'],!0x1,_0x48fe10);}}class D extends _0x38bc3e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfe1f75){function _0x5e680b(_0x180e8e){return _0x180e8e['map'](_0x3f0945=>String['fromCharCode'](_0x3f0945))['join']('');}super(_0xfe1f75),this['result']='end',_0xfe1f75[_0x5e680b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e680b([0x76,0x69,0x65,0x77])][_0x5e680b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e680b([0x61,0x75,0x74,0x6f]),_0xfe1f75[_0x5e680b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5e680b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e680b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5e680b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5e680b([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x34ebf1){return void 0x0!==_0x34ebf1['getRootsAttributes'];}async function N(_0x1d5761,_0x35282b,_0x1685f0){const _0x354ef9=_0x1791c5(_0x1d5761,w);_0x354ef9['plugins']['push'](p,D),_0x354ef9['rootsAttributes']=v(_0x1d5761)?_0x1d5761['getRootsAttributes']():void 0x0;const _0x46482c=document['createDocumentFragment'](),_0x17e069=_0x1d5761['config']['get']('trackChangesData')['editorCreator'],_0x520f6f=await _0x17e069(_0x354ef9,()=>function(_0x5caecb){const _0x2fc7f8=document['createElement']('div');return _0x5caecb['appendChild'](_0x2fc7f8),_0x2fc7f8;}(_0x46482c));!function(_0x3fd019,_0x38b8b3){const _0x526448=_0x3fd019['model']['document']['getRootNames']()['reduce']((_0x2eaf53,_0x2c018d)=>(_0x2eaf53[_0x2c018d]=_0x3fd019['data']['get']({'rootName':_0x2c018d}),_0x2eaf53),{}),_0x2dd534=_0x3fd019['plugins']['get']('Users')['users']['map'](_0x2d14af=>({'id':_0x2d14af['id'],'name':_0x2d14af['name']})),_0x5752ac=_0x3fd019['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf61551=_0x3fd019['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x46b9fc=_0x38b8b3['plugins']['get']('Users'),_0x1a6078=_0x38b8b3['plugins']['get']('TrackChangesEditing'),_0x2db2b5=_0x38b8b3['plugins']['get']('CommentsRepository');for(const _0x54c1b7 of _0x2db2b5['getCommentThreads']())_0x54c1b7['remove']();for(const _0x5c78f5 of _0x2dd534)_0x46b9fc['getUser'](_0x5c78f5['id'])||_0x46b9fc['addUser'](_0x5c78f5);_0x46b9fc['me']||_0x46b9fc['useAnonymousUser']();for(const _0x199d8a of _0xf61551)_0x2db2b5['addCommentThread'](_0x199d8a);for(const _0x116136 of _0x5752ac)_0x1a6078['addSuggestionData'](_0x116136);_0x38b8b3['data']['set'](_0x526448);}(_0x1d5761,_0x520f6f),_0x520f6f['execute'](_0x35282b?'acceptAllSuggestions':'discardAllSuggestions');const _0x1cb5b7=v(_0x520f6f)?_0x520f6f['getFullData'](_0x1685f0):_0x520f6f['data']['get'](_0x1685f0);return await _0x520f6f['destroy'](),_0x1cb5b7;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};