@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250910.0 → 0.0.0-nightly-20250911.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1de005,Plugin as _0xc3381c,PendingActions as _0x43929c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x50c44a,ObservableMixin as _0x4e23fc,uid as _0x40bebf,priorities as _0x140f0d,insertToPriorityArray as _0x52ddac,toArray as _0x4d7f1e,logWarning as _0x15176d,getEnvKeystrokeText as _0x2ee597,FocusTracker as _0x3dc571,KeystrokeHandler as _0xf9590d,Collection as _0x364833}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x416caf,IconCancel as _0x34fbc3,IconTrackChanges as _0x3e8ec7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5609d7,View as _0x5f0f48,ViewCollection as _0x212aff,FocusCycler as _0x1b12e5,UIModel as _0x27d310,createDropdown as _0x2a1174,SplitButtonView as _0x182c12,addListToDropdown as _0xf9d567,MenuBarMenuView as _0x422518,MenuBarMenuListView as _0x393953,ListSeparatorView as _0x4d71e8,MenuBarMenuListItemView as _0xfff36b,MenuBarMenuListItemButtonView as _0x38b565,BodyCollection as _0x44ccff,Dialog as _0x3c6ffe}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x187485,hashObject as _0x421d24,surroundingMarkersDetector as _0x599458,FOCUS_ANNOTATION_KEYSTROKE as _0x4f2c95,AriaDescriptionView as _0x28eb53,setupThreadKeyboardNavigation as _0x359702,trimHtml as _0x4008f3,UserView as _0x19cd45,LateFocusButtonView as _0x56ba04,getDateTimeFormatter as _0x141e15,getAllMarkersDomElementsSorted as _0x5bcafd,sanitizeEditorConfig as _0x158091}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0xa9a677,ModelLiveRange as _0x51ea19,ModelLivePosition as _0x400bd9,ViewDowncastWriter as _0x42d2ec}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1b893a,toWidget as _0x52436a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5189f9,set as _0x3f1e1b,isEqual as _0x50425d,unset as _0x440118,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2c4166,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5e8dd4}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x14b56f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1de005{['_enabledCommands'];constructor(_0x3b48e6,_0x194f75){super(_0x3b48e6),this['_enabledCommands']=_0x194f75,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 _0x22dec5 of this['editor']['commands']['commands']())_0x22dec5['affectsData']&&!this['_enabledCommands']['has'](_0x22dec5)&&_0x22dec5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2251d2 of this['editor']['commands']['commands']())_0x2251d2['affectsData']&&!this['_enabledCommands']['has'](_0x2251d2)&&_0x2251d2['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1de005{['_suggestions'];constructor(_0x81e367,_0x30621b){super(_0x81e367),this['_suggestions']=_0x30621b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2c3e38){const _0x56f2d7=this['_suggestions']['get'](_0x2c3e38);if(!_0x56f2d7)throw new _0x50c44a('track-changes-accept-suggestion-not-found',this);const _0xdd686a=_0x56f2d7['getRanges']();this['editor']['model']['canEditAt'](_0xdd686a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x56f2d7);}}class $ extends _0x1de005{['_suggestions'];constructor(_0x3efd5e,_0x11a291){super(_0x3efd5e),this['_suggestions']=_0x11a291,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xdda8b6){const _0x444731=this['_suggestions']['get'](_0xdda8b6);if(!_0x444731)throw new _0x50c44a('track-changes-discard-suggestion-not-found',this);const _0x1ae8a9=_0x444731['getRanges']();this['editor']['model']['canEditAt'](_0x1ae8a9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x444731);}}function ls(_0x1b3f57,_0x5301bf){let _0x20d980='';return _0x20d980+=_0x1b3f57['split']('*')['map']((_0x4ba879,_0x4ba3fe)=>_0x4ba3fe%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x4ba879)+'</span>':Zt(_0x4ba879))['join'](''),_0x5301bf&&(_0x20d980+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5301bf['value']+'\x22\x20title=\x22'+_0x5301bf['title']+'\x22></span>'),_0x20d980;}function Zt(_0x2a7341){const _0x3332ed=document['createElement']('span');return _0x3332ed['innerText']=_0x2a7341,_0x3332ed['innerHTML'];}function ts(_0x51d37e){return _0x51d37e['sort']((_0x20f459,_0x3cc8f7)=>'attribute'===_0x20f459['type']&&'attribute'!==_0x3cc8f7['type']?-0x1:'attribute'!==_0x20f459['type']&&'attribute'===_0x3cc8f7['type']?0x1:'deletion'==_0x20f459['type']&&'deletion'!=_0x3cc8f7['type']?-0x1:'deletion'!=_0x20f459['type']&&'deletion'==_0x3cc8f7['type']?0x1:0x0);}function to(_0x2679b7,_0x255cb7){let _0xb0a3f2,_0x489c50=0x0;const _0x2dd838=[],_0x168c62=_0x255cb7['schema'];for(;_0x489c50<_0x2679b7['length'];){const _0x551a7b=_0x2679b7[_0x489c50],_0x258a83=_0x2679b7[_0x489c50+0x1];_0xb0a3f2||(_0xb0a3f2=_0x255cb7['createPositionBefore'](_0x551a7b)),tn(_0x255cb7,_0x551a7b,_0x258a83)||(_0x2dd838['push'](_0x255cb7['createRange'](_0xb0a3f2,_0x168c62['isObject'](_0x551a7b)?_0x255cb7['createPositionAfter'](_0x551a7b):_0x255cb7['createPositionAt'](_0x551a7b,'end'))),_0xb0a3f2=null),_0x489c50++;}return _0x2dd838;}function tn(_0x2287e5,_0x540419,_0x34db76){if(!_0x34db76)return!0x1;const _0x4f98a4=_0x2287e5['createPositionAfter'](_0x540419),_0x555aac=_0x2287e5['createPositionBefore'](_0x34db76);return _0x4f98a4['isTouching'](_0x555aac);}function rs(_0x1c5469,_0x46937d,_0x2080f5){for(;_0x2080f5['length'];){const _0x11684a=_0x2080f5['splice'](0x0,0x64);_0x1c5469['change'](()=>{for(const _0x43ed6c of _0x11684a)_0x43ed6c['isInContent']&&_0x46937d['execute'](_0x43ed6c['id']);});}}class M extends _0x1de005{['_command'];['_suggestions'];constructor(_0x5d91fe,_0x37d6b0,_0x31888e){super(_0x5d91fe),this['_command']=_0x37d6b0,this['_suggestions']=_0x31888e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5baed6=Array['from'](this['_suggestions']['values']())['some'](_0x252df0=>_0x252df0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5baed6;}['execute'](){const _0x544ecc=ts(Array['from'](this['_suggestions']['values']()));for(const _0x45aa39 of _0x544ecc){const _0x3f74f5=_0x45aa39['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f74f5))return;}rs(this['editor']['model'],this['_command'],_0x544ecc);}}class B extends _0x1de005{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3971fe,_0x1da39c,_0x4d1287){super(_0x3971fe),this['_command']=_0x1da39c,this['_suggestions']=_0x4d1287,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4b4147=this['editor']['model']['document']['selection'],_0x2e498f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3cf706,_0x40d23f){const _0x54d817=Array['from'](_0x3cf706['getRanges']()),_0x1a1a79=new Set();for(const _0x2a1577 of _0x40d23f)if(_0x2a1577['isInContent']){for(const _0x3bda18 of _0x54d817)for(const _0xdfb8b of _0x2a1577['getRanges']())(_0x3bda18['isIntersecting'](_0xdfb8b)||_0x3cf706['isCollapsed']&&!_0x2a1577['isMultiRange']&&_0x2a1577['next']&&_0xdfb8b['end']['isTouching'](_0x3bda18['start']))&&_0x1a1a79['add'](_0x2a1577);}return _0x1a1a79;}(_0x4b4147,_0x2e498f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3a7124=ts(Array['from'](this['_selectedSuggestions']));for(const _0x29f963 of _0x3a7124){const _0x60fc9e=_0x29f963['getRanges']();if(!this['editor']['model']['canEditAt'](_0x60fc9e))return;}rs(this['editor']['model'],this['_command'],_0x3a7124);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x4e23fc(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x56819a,_0x2fec2a){super(),this['id']=_0x2fec2a['id'],this['type']=_0x2fec2a['type'],this['subType']=_0x2fec2a['subType']||null,this['author']=_0x2fec2a['author'],this['creator']=_0x2fec2a['creator']||_0x2fec2a['author'],this['isExternal']=Boolean(_0x2fec2a['attributes']&&_0x2fec2a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2fec2a['originalSuggestionId']||null,this['_model']=_0x56819a,this['_onAccept']=_0x2fec2a['onAccept'],this['_onDiscard']=_0x2fec2a['onDiscard'],this['_onAttributesChange']=_0x2fec2a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2fec2a['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 _0x57874e=this;for(;_0x57874e['previous'];)_0x57874e=_0x57874e['previous'];return _0x57874e;}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'](_0x3ae8fb){this['_markerNames']['add'](_0x3ae8fb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3cb8f7=>this['_model']['markers']['get'](_0x3cb8f7))['filter'](_0x4ac66a=>_0x4ac66a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x79cfc3=>{for(const _0x52fd2d of this['getMarkers']())_0x79cfc3['removeMarker'](_0x52fd2d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1a9596){this['_model']['change'](_0x123dd4=>{_0x123dd4['removeMarker'](_0x1a9596);}),this['_markerNames']['delete'](_0x1a9596);}['addRange'](_0x7d47b4){const _0xf4b459='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0xf4b459),this['_model']['change'](_0x4ec6ce=>{_0x4ec6ce['addMarker'](_0xf4b459,{'range':_0x7d47b4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2c5d3e){for(const _0x3587b1 of this['getRanges']())if(_0x3587b1['isIntersecting'](_0x2c5d3e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x138c14=>_0x138c14['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a182a,_0x4d8549)=>[..._0x4a182a,..._0x4d8549['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x252b3d=this['getRanges']();if(0x1!=_0x252b3d['length'])return null;const _0x345e0d=_0x252b3d[0x0],_0x58a0d9=_0x345e0d['start']['nodeAfter'],_0x29703f=_0x345e0d['end']['nodeBefore'];return _0x58a0d9 instanceof _0xa9a677?_0x58a0d9!=_0x29703f?null:_0x58a0d9: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 _0x5ddf5c=[];let _0x53f964=this['head'];for(;_0x53f964;)_0x5ddf5c['push'](_0x53f964),_0x53f964=_0x53f964['next'];return _0x5ddf5c;}['setAttribute'](_0x3714d8,_0x3f8c03){const _0x2c4e96=_0x5189f9(this['attributes']);_0x3f1e1b(_0x2c4e96,_0x3714d8,_0x3f8c03),_0x50425d(_0x2c4e96,this['attributes'])||(this['attributes']=_0x2c4e96,this['_onAttributesChange'](_0x2c4e96));}['removeAttribute'](_0x10e9f7){const _0x3df774=_0x5189f9(this['attributes']);_0x440118(_0x3df774,_0x10e9f7),_0x50425d(_0x3df774,this['attributes'])||(this['attributes']=_0x3df774,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 _0x40bebf()['substr'](0x1,0x5);}}function o(_0x2cb3bc,_0x17428b,_0x37c720){const _0x216444=_0x2cb3bc['t'],t=_0x2cb3bc['t'];switch(_0x17428b){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x37c720);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x37c720);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x37c720);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x37c720);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x37c720);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',_0x37c720);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x37c720);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x37c720);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x37c720);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x37c720);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x37c720);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x37c720);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x37c720);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x37c720);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x37c720);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x37c720);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x37c720);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x37c720);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x37c720);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x37c720);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x37c720);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x37c720);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x37c720);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x37c720);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x37c720);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'},_0x37c720);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x37c720);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x37c720);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x37c720);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x37c720);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x37c720);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x37c720);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x37c720);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'},_0x37c720);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x37c720);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x37c720);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x37c720);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x37c720);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'},_0x37c720);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x37c720);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'},_0x37c720);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x37c720);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x37c720);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'},_0x37c720);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x37c720);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'},_0x37c720);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x37c720);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x37c720);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'},_0x37c720);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x37c720);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 _0x216444({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x37c720);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x216444({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x37c720);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x37c720);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'},_0x37c720);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'},_0x37c720);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'},_0x37c720);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x17428b;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x57ac50,_0x580cf5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x57ac50,this['_locale']=_0x580cf5;}['getDescriptions'](_0x502bc6){const _0x3cd2ea=[],_0x199759=new Set(),_0x5cc5f6=new Set();for(let _0x53abba=0x0;_0x53abba<_0x502bc6['length'];_0x53abba++){const _0x3abd40=_0x502bc6[_0x53abba];if(!_0x3abd40['isInContent'])continue;const _0x443e96=this['_handleCustomCallbackDescription'](_0x3abd40);if(_0x443e96){if(null!=_0x3abd40['subType']){if(_0x199759['has'](_0x3abd40['subType']))continue;_0x199759['add'](_0x3abd40['subType']);}_0x3cd2ea['push'](_0x443e96);}else{if('attribute'==_0x3abd40['type']){const _0x5182a4=_0x3abd40['data']['key'];if(_0x5cc5f6['has'](_0x5182a4))continue;_0x5cc5f6['add'](_0x3abd40['data']['key']),_0x5182a4==m?this['_handleRenameSuggestionDescription'](_0x3cd2ea,_0x3abd40):this['_handleAttributeSuggestionDescription'](_0x3cd2ea,_0x3abd40);continue;}'insertion'!=_0x3abd40['type']&&'deletion'!=_0x3abd40['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3cd2ea,_0x3abd40,_0x502bc6[_0x53abba+0x1]);}}return this['_resolveDescriptionItems'](_0x3cd2ea);}['registerDescriptionCallback'](_0x136ea5){this['_customCallbacks']['push'](_0x136ea5);}['registerElementLabel'](_0x232df3,_0x5f0110,_0x1310b0=_0x140f0d['normal']){'function'==typeof _0x232df3?_0x52ddac(this['_itemLabelsCallbacks'],{'matchingCallback':_0x232df3,'label':_0x5f0110,'priority':_0x1310b0}):this['_itemLabels']['set'](_0x232df3,_0x5f0110);}['registerAttributeLabel'](_0x2e9863,_0xa2923e){this['_attributeLabels']['set'](_0x2e9863,_0xa2923e);}['getItemLabel'](_0x25fe62,_0x5cd987=0x1){let _0x557e6c;for(const _0x1567dd of this['_itemLabelsCallbacks'])if(_0x1567dd['matchingCallback'](_0x25fe62)){_0x557e6c=_0x1567dd['label'];break;}return _0x557e6c||(_0x557e6c=this['_itemLabels']['get'](_0x25fe62['name'])),_0x557e6c?_0x557e6c(_0x5cd987):0x1!==_0x5cd987?_0x5cd987+'\x20'+_0x25fe62['name']+'s':''+_0x25fe62['name'];}['_addDescriptionItems'](_0x358216,_0x222e6e){const _0x105dbb=_0x222e6e['getFirstRange']()['getWalker'](),_0x5e8a1e='insertion'==_0x222e6e['type']?'add':'remove';for(const _0x2d0a3a of _0x105dbb){const _0x48c064=_0x2d0a3a['item'],_0x51b0e9=_0x358216[_0x358216['length']-0x1];if(_0x48c064['is']('$textProxy'))_0x51b0e9&&_0x51b0e9['type']['indexOf']('Container')>-0x1&&_0x358216['pop'](),_0x51b0e9&&'text'==_0x51b0e9['type']?_0x51b0e9[_0x5e8a1e]+=_0x48c064['data']:_0x358216['push']({'type':'text','add':'add'==_0x5e8a1e?_0x48c064['data']:'','remove':'remove'==_0x5e8a1e?_0x48c064['data']:''});else{if(this['_schema']['isObject'](_0x48c064)){const _0x479083=_0x48c064;if(_0x51b0e9&&_0x51b0e9['type']['indexOf']('Container')>-0x1&&_0x358216['pop'](),'elementEnd'==_0x2d0a3a['type'])continue;_0x51b0e9&&_0x51b0e9['type']==_0x5e8a1e+'Object'&&_0x51b0e9['element']['name']==_0x479083['name']?_0x51b0e9['quantity']++:_0x358216['push']({'type':_0x5e8a1e+'Object','element':_0x479083,'quantity':0x1}),_0x105dbb['skip'](_0x3e1d57=>!('elementEnd'==_0x3e1d57['type']&&_0x3e1d57['item']==_0x48c064));}else{if(this['_schema']['checkChild'](_0x48c064,'$text')||_0x48c064['is']('element','softBreak')){const _0xc97ce=_0x48c064;if('add'==_0x5e8a1e&&'elementStart'==_0x2d0a3a['type']||'remove'==_0x5e8a1e&&'elementEnd'==_0x2d0a3a['type'])continue;if(_0x51b0e9&&-0x1==_0x51b0e9['type']['indexOf']('Container')){'text'==_0x51b0e9['type']&&(_0x51b0e9[_0x5e8a1e]+='\x0a');continue;}let _0x17c7d5;if(_0x17c7d5='add'==_0x5e8a1e?_0xc97ce['nextSibling']&&!this['_schema']['isObject'](_0xc97ce['nextSibling'])?_0xc97ce['nextSibling']:null:_0xc97ce['previousSibling']&&!this['_schema']['isObject'](_0xc97ce['previousSibling'])?_0xc97ce['previousSibling']:null,_0xc97ce['isEmpty']||_0x17c7d5&&_0x17c7d5['isEmpty']){const _0x1345e1=_0x17c7d5&&_0x17c7d5['isEmpty']?_0x17c7d5:_0xc97ce;_0x51b0e9&&_0x51b0e9['type']==_0x5e8a1e+'EmptyContainer'&&_0x51b0e9['element']['name']==_0x1345e1['name']?_0x51b0e9['quantity']++:_0x358216['push']({'type':_0x5e8a1e+'EmptyContainer','element':_0x1345e1,'quantity':0x1});}else _0x358216['push']({'type':_0x5e8a1e+'Container','element':_0xc97ce});}}}}}['_resolveDescriptionItems'](_0x105da4){const _0x10e016=this['_locale'],_0x8e4e25=[],_0x20704d=[],_0x34df80=[];for(const _0x416a55 of _0x105da4)switch(_0x416a55['type']){case'text':if(_0x416a55['add']=_0x416a55['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x416a55['remove']=_0x416a55['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x416a55['add']&&''!=_0x416a55['remove']){_0x8e4e25['push']({'type':'replace','content':o(_0x10e016,'REPLACE_TEXT',['\x22'+_0x416a55['remove']+'\x22','\x22'+_0x416a55['add']+'\x22'])});continue;}if(null!=_0x416a55['add']['match'](/^ +$/)){_0x8e4e25['push']({'type':'insertion','content':o(_0x10e016,'*Insert:*\x20%0',o(_0x10e016,'ELEMENT_SPACE',_0x416a55['add']['length']))});continue;}if(null!=_0x416a55['remove']['match'](/^ +$/)){_0x8e4e25['push']({'type':'deletion','content':o(_0x10e016,'*Remove:*\x20%0',o(_0x10e016,'ELEMENT_SPACE',_0x416a55['remove']['length']))});continue;}if(''!=_0x416a55['add']){_0x8e4e25['push']({'type':'insertion','content':o(_0x10e016,'*Insert:*\x20%0','\x22'+_0x416a55['add']+'\x22')});continue;}_0x8e4e25['push']({'type':'deletion','content':o(_0x10e016,'*Remove:*\x20%0','\x22'+_0x416a55['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x8e4e25['push']({'type':'insertion','content':o(_0x10e016,'*Insert:*\x20%0',this['getItemLabel'](_0x416a55['element'],_0x416a55['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x8e4e25['push']({'type':'deletion','content':o(_0x10e016,'*Remove:*\x20%0',this['getItemLabel'](_0x416a55['element'],_0x416a55['quantity']))});continue;case'addContainer':_0x8e4e25['push']({'type':'insertion','content':o(_0x10e016,'*Split:*\x20%0',this['getItemLabel'](_0x416a55['element'],_0x416a55['quantity']))});continue;case'removeContainer':_0x8e4e25['push']({'type':'deletion','content':o(_0x10e016,'*Merge:*\x20%0',this['getItemLabel'](_0x416a55['element'],_0x416a55['quantity']))});continue;case'addFormat':_0x20704d['push'](_0x416a55['key']);continue;case'removeFormat':_0x34df80['push'](_0x416a55['key']);continue;default:_0x8e4e25['push'](_0x416a55);}if(_0x20704d['length']){const _0x17e139=_0x20704d['map'](_0x309b46=>this['_attributeLabels']['has'](_0x309b46)?this['_attributeLabels']['get'](_0x309b46):_0x309b46)['join'](',\x20');_0x8e4e25['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x17e139)});}if(_0x34df80['length']){const _0xe41ea3=_0x34df80['map'](_0xbb8cc8=>this['_attributeLabels']['has'](_0xbb8cc8)?this['_attributeLabels']['get'](_0xbb8cc8):_0xbb8cc8)['join'](',\x20');_0x8e4e25['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xe41ea3)});}return _0x8e4e25;}['_handleCustomCallbackDescription'](_0x4956eb){for(const _0x14e4fc of this['_customCallbacks']){const _0x407af8=_0x14e4fc(_0x4956eb);if(_0x407af8&&'type'in _0x407af8)return _0x407af8;}}['_handleAttributeSuggestionDescription'](_0x2924ed,_0xacbaae){const _0x5552ee=_0xacbaae['data'],_0x5c6082=void 0x0===_0x5552ee['newValue']?'removeFormat':'addFormat';_0x2924ed['push']({'type':_0x5c6082,'key':_0x5552ee['key']});}['_handleRenameSuggestionDescription'](_0x5b2737,_0x155afc){_0x5b2737['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x155afc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x35961d,_0xcf6a2b,_0x884bb2){if(this['_addDescriptionItems'](_0x35961d,_0xcf6a2b),_0x884bb2&&_0x884bb2['getFirstRange']()&&!_0xcf6a2b['getFirstRange']()['end']['isEqual'](_0x884bb2['getFirstRange']()['start'])){const _0x2e6db6=_0x35961d[_0x35961d['length']-0x1],_0x2bc1a6='insertion'==_0xcf6a2b['type']?'add':'remove';_0x2e6db6&&'text'==_0x2e6db6['type']&&(_0x2e6db6[_0x2bc1a6]+='\x0a');}}}class O extends _0xc3381c{['afterInit'](){const _0x4dbaa0=this['editor'],_0x4884a4=_0x4dbaa0['plugins']['get']('TrackChangesEditing');_0x4dbaa0['commands']['get']('showAIAssistant')&&_0x4884a4['enableCommand']('showAIAssistant');}}class E extends _0xc3381c{['afterInit'](){const _0xfefd1b=this['editor'],_0x40a308=_0xfefd1b['locale'];if(!_0xfefd1b['plugins']['has']('AlignmentEditing'))return;const _0x4b00cd=_0xfefd1b['plugins']['get']('TrackChangesEditing');_0x4b00cd['enableDefaultAttributesIntegration']('alignment'),_0x4b00cd['registerBlockAttribute']('alignment'),_0x4b00cd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x40a308,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xff2b79=this['editor'],_0x2413bf=_0xff2b79['locale'];_0xff2b79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c4d42=>{if('formatBlock'!=_0x1c4d42['type'])return;const {data:_0x2cd302}=_0x1c4d42;if(_0x2cd302&&'alignment'==_0x2cd302['commandName']){const _0x2cb21c=_0x2cd302['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2413bf,'*Format:*\x20%0',function(_0x53843d){switch(_0x53843d){case'left':return o(_0x2413bf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2413bf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2413bf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2413bf,'FORMAT_JUSTIFY_TEXT');}}(_0x2cb21c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xc3381c{['afterInit'](){const _0x508a58=this['editor'],_0x2ad294=_0x508a58['plugins']['get']('TrackChangesEditing'),_0x89f429=_0x508a58['locale'];for(const _0x581fa6 of ti){if(!_0x508a58['plugins']['has'](_0x581fa6))continue;const _0x32d247=_0x581fa6['slice'](0x0,-0x7)['toLowerCase'](),_0x11e591='FORMAT_'+_0x32d247['toUpperCase']();_0x2ad294['enableDefaultAttributesIntegration'](_0x32d247),_0x2ad294['registerInlineAttribute'](_0x32d247),_0x2ad294['descriptionFactory']['registerAttributeLabel'](_0x32d247,o(_0x89f429,_0x11e591));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x114ff7=this['editor'],_0x3be9c6=_0x114ff7['locale'],_0x431887=_0x114ff7['plugins']['get']('TrackChangesEditing');function _0xe59db2(_0x54ac74,_0x1d7930){_0x431887['descriptionFactory']['registerDescriptionCallback'](_0x221640=>{if('formatInline'!=_0x221640['type'])return;const {data:_0x3c06c0}=_0x221640;return _0x3c06c0&&_0x3c06c0['commandName']===_0x54ac74?_0x3c06c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3be9c6,'*Format:*\x20%0',_0x1d7930)}:{'type':'format','content':o(_0x3be9c6,'*Remove\x20format:*\x20%0',_0x1d7930)}:void 0x0;});}_0xe59db2('bold',o(_0x3be9c6,'FORMAT_BOLD')),_0xe59db2('italic',o(_0x3be9c6,'FORMAT_ITALIC')),_0xe59db2('underline',o(_0x3be9c6,'FORMAT_UNDERLINE')),_0xe59db2('code',o(_0x3be9c6,'FORMAT_CODE')),_0xe59db2('strikethrough',o(_0x3be9c6,'FORMAT_STRIKETHROUGH')),_0xe59db2('subscript',o(_0x3be9c6,'FORMAT_SUBSCRIPT')),_0xe59db2('superscript',o(_0x3be9c6,'FORMAT_SUPERSCRIPT'));}}class U extends _0xc3381c{['afterInit'](){const _0x479546=this['editor'],_0x6d96d7=_0x479546['locale'];if(!_0x479546['plugins']['has']('BlockQuoteEditing'))return;const _0x5f1a44=_0x479546['plugins']['get']('TrackChangesEditing'),_0x26877e=this['editor']['commands']['get']('blockQuote');_0x5f1a44['enableCommand']('blockQuote',(_0x174e2c,_0x529c70={})=>{const _0x3c7359=this['editor']['model']['document']['selection'],_0x579c45=_0x529c70&&void 0x0!==_0x529c70['forceValue']?_0x529c70['forceValue']:!_0x26877e['value'];let _0x41378f=[];if(_0x579c45){const _0x2334aa=Array['from'](_0x3c7359['getSelectedBlocks']())['filter'](_0x58cbfe=>oo(_0x58cbfe)||function(_0x56b7d3,_0x53f328){const _0x232bb8=_0x53f328['checkChild'](_0x56b7d3['parent'],'blockQuote'),_0x6efb89=_0x53f328['checkChild'](['$root','blockQuote'],_0x56b7d3);return _0x232bb8&&_0x6efb89;}(_0x58cbfe,this['editor']['model']['schema']));_0x41378f=to(_0x2334aa,_0x479546['model']);}else{const _0x42d395=Array['from'](_0x3c7359['getSelectedBlocks']())['filter'](_0x420e7e=>oo(_0x420e7e));_0x41378f=to(_0x42d395,_0x479546['model']);}_0x479546['model']['change'](()=>{for(const _0xc2e278 of _0x41378f)_0x5f1a44['markBlockFormat'](_0xc2e278,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x579c45}]});});}),_0x5f1a44['descriptionFactory']['registerDescriptionCallback'](_0x20cce2=>{const {data:_0x4e8d04}=_0x20cce2;if(_0x4e8d04&&'blockQuote'==_0x4e8d04['commandName']){const _0x4c24b6=o(_0x6d96d7,'ELEMENT_BLOCK_QUOTE');return _0x4e8d04['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6d96d7,'*Set\x20format:*\x20%0',_0x4c24b6)}:{'type':'format','content':o(_0x6d96d7,'*Remove\x20format:*\x20%0',_0x4c24b6)};}});}}function oo(_0x4370c6){return'blockQuote'==_0x4370c6['parent']['name'];}class V extends _0xc3381c{['afterInit'](){const _0x42dbe5=this['editor'],_0x506ad9=_0x42dbe5['locale'],_0x4a8dc4=_0x42dbe5['plugins']['get']('TrackChangesEditing');_0x42dbe5['plugins']['has']('BookmarkEditing')&&(_0x4a8dc4['enableCommand']('insertBookmark'),_0x4a8dc4['enableDefaultAttributesIntegration']('updateBookmark'),_0x4a8dc4['registerBlockAttribute']('bookmarkId'),_0x4a8dc4['descriptionFactory']['registerDescriptionCallback'](_0x1e7364=>{if('insertion'!=_0x1e7364['type']&&'deletion'!=_0x1e7364['type']&&'attribute'!=_0x1e7364['type'])return;const _0x3b03ba=_0x1e7364['getContainedElement']();if(null==_0x3b03ba)return;if(!_0x3b03ba['is']('element','bookmark'))return;const _0x275f51=_0x3b03ba['getAttribute']('bookmarkId');if('insertion'==_0x1e7364['type'])return{'type':'insertion','content':o(_0x506ad9,'*Insert:*\x20%0','\x22'+_0x275f51+'\x22\x20'+o(_0x506ad9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1e7364['type'])return{'type':'deletion','content':o(_0x506ad9,'*Remove:*\x20%0','\x22'+_0x275f51+'\x22\x20'+o(_0x506ad9,'ELEMENT_BOOKMARK'))};const {data:_0x46e30d}=_0x1e7364;if(!_0x46e30d||'bookmarkId'!=_0x46e30d['key'])return;return{'type':'format','content':o(_0x506ad9,'*Set\x20bookmark:*\x20%0','\x22'+_0x46e30d['newValue']+'\x22')};}));}}class F extends _0xc3381c{['afterInit'](){const _0x3aefd7=this['editor'];_0x3aefd7['plugins']['has']('CaseChange')&&(_0x3aefd7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3aefd7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3aefd7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xc3381c{['afterInit'](){const _0x55e682=this['editor'];_0x55e682['commands']['get']('ckbox')&&_0x55e682['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xc3381c{['afterInit'](){const _0x364901=this['editor'];if(!_0x364901['plugins']['has']('CodeBlock'))return;const _0x35b82d=_0x364901['plugins']['get']('TrackChangesEditing'),_0x5bfd28=_0x364901['locale'],_0x4df29b=_0x364901['config']['get']('codeBlock')['languages'],_0x5cc87f=_0x364901['commands']['get']('codeBlock');_0x35b82d['enableCommand']('indentCodeBlock'),_0x35b82d['enableCommand']('outdentCodeBlock'),_0x35b82d['enableCommand']('codeBlock',(_0x3f133e,_0x15f1a8={})=>{const _0x158d3a=_0x364901['model'],_0x106cd2=_0x364901['model']['document']['selection'],_0x5039d=_0x15f1a8&&void 0x0!==_0x15f1a8['forceValue']?_0x15f1a8['forceValue']:!_0x5cc87f['value'];let _0x4c676e;_0x15f1a8['language']||(_0x15f1a8['language']=_0x4df29b[0x0]['language']),_0x4c676e=_0x5039d?Array['from'](_0x106cd2['getSelectedBlocks']())['filter'](_0x170a75=>co(_0x170a75)||function(_0x5128a7,_0x5d5ef2){if(_0x5128a7['is']('rootElement')||_0x5d5ef2['isLimit'](_0x5128a7))return!0x1;return _0x5d5ef2['checkChild'](_0x5128a7['parent'],'codeBlock');}(_0x170a75,_0x158d3a['schema'])):Array['from'](_0x106cd2['getSelectedBlocks']())['filter'](_0x5c74db=>co(_0x5c74db));const _0x2a729d=to(_0x4c676e,_0x158d3a);_0x158d3a['change'](()=>{for(const _0x36b9f4 of _0x2a729d)_0x35b82d['markBlockFormat'](_0x36b9f4,{'commandName':'codeBlock','commandParams':[{..._0x15f1a8,'forceValue':_0x5039d}],'formatGroupId':'blockName'});});}),(_0x35b82d['descriptionFactory']['registerElementLabel']('codeBlock',_0x31f52c=>o(_0x5bfd28,'ELEMENT_CODE_BLOCK',_0x31f52c)),_0x35b82d['descriptionFactory']['registerDescriptionCallback'](_0x474f9a=>{if('formatBlock'!=_0x474f9a['type'])return;const _0x15374f=_0x5bfd28['t'],{data:_0xfc310b}=_0x474f9a;if(!_0xfc310b||'codeBlock'!=_0xfc310b['commandName'])return;const _0x206b72=_0xfc310b['commandParams'][0x0]['language'],_0x294d02=_0x15374f(_0x4df29b['find'](_0x550f36=>_0x550f36['language']===_0x206b72)['label'])['toLowerCase']();return _0xfc310b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5bfd28,'*Set\x20format:*\x20%0',o(_0x5bfd28,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x294d02+')')}:{'type':'format','content':o(_0x5bfd28,'*Remove\x20format:*\x20%0',o(_0x5bfd28,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xa8473){return'codeBlock'==_0xa8473['name'];}class J extends _0xc3381c{['afterInit'](){const _0x21ac70=this['editor'];if(!_0x21ac70['plugins']['has']('CommentsEditing'))return;_0x21ac70['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3fae37,_0x356807,_0x405f03){const _0x1f2ed2=[];for(const _0x4b1a5e of _0x356807['getItems']())_0x4b1a5e['hasAttribute'](_0x3fae37)&&_0x1f2ed2['push'](_0x405f03['createRangeOn'](_0x4b1a5e));return _0x1f2ed2;}function De(_0x5dd94d,_0x49344e,{showActiveMarker:_0x2c4e1f=!0x0}={}){const _0x10e58d=_0x5dd94d['plugins']['get']('TrackChangesEditing');return(_0x489f40,_0x2de1fc,_0xf052e0)=>{if(!_0xf052e0['consumable']['test'](_0x2de1fc['markerRange'],_0x489f40['name']))return;const _0x4e51ba=_0x2de1fc['markerRange']['getWalker'](),_0x3ae277=_0x2de1fc['markerRange']['start'],_0x3b06cc=_0x5dd94d['model']['schema'];let _0x5c724b=null,_0x26d6e0=null,_0x412167=!0x1,_0x586023=!0x1;for(const _0xbc41c8 of _0x4e51ba){const _0xb7b9c0=_0xbc41c8['item'];_0x412167=_0x412167||_0x3b06cc['isContent'](_0xb7b9c0);const _0x149dd0=_0xf052e0['mapper']['toViewElement'](_0xb7b9c0);if(_0x149dd0&&_0x149dd0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbc41c8['type']&&(_0x3b06cc['isBlock'](_0xb7b9c0)&&!_0x3b06cc['isLimit'](_0xb7b9c0)&&(_0xb7b9c0['nextSibling']||_0x3ae277['isAtEnd']?_0x5c724b&&_0x5c724b['parent']==_0xb7b9c0||(_0x5c724b=_0xb7b9c0,_0x45fc6a(_0xbc41c8['previousPosition']),_0x586023=!0x0):_0x26d6e0=_0x26d6e0||_0xbc41c8['previousPosition']));}function _0x45fc6a(_0x71972){const {id:_0x2eb256,authorId:_0x50e681}=_0x10e58d['_splitMarkerName'](_0x2de1fc['markerName']),_0x2254d1=_0xf052e0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x49344e,'data-suggestion':_0x2eb256,'data-author-id':_0x50e681}),_0x273ce1=_0xf052e0['mapper']['toViewPosition'](_0x71972);_0x2c4e1f&&_0x10e58d['activeMarkers']['includes'](_0x2de1fc['markerName'])&&_0xf052e0['writer']['addClass']('ck-suggestion-marker--active',_0x2254d1),_0xf052e0['writer']['insert'](_0x273ce1,_0x2254d1),_0xf052e0['mapper']['bindElementToMarker'](_0x2254d1,_0x2de1fc['markerName']);}_0x412167||_0x586023||!_0x26d6e0||_0x45fc6a(_0x26d6e0);};}class K extends _0xc3381c{static get['requires'](){return[_0x2c4166];}['init'](){const _0x187d55=this['editor'],_0x52189b=_0x187d55['plugins']['get']('TrackChangesEditing');_0x52189b['enableCommand']('delete');const _0x14ecac=_0x187d55['commands']['get']('deleteForward');_0x52189b['enableCommand']('deleteForward',(_0x2705ed,_0x1d93eb={})=>{const _0x1d4afd=_0x187d55['model']['createSelection'](_0x187d55['model']['document']['selection']);_0x1d4afd['isCollapsed']&&_0x187d55['model']['modifySelection'](_0x1d4afd,{'direction':'forward','unit':_0x1d93eb['unit']});const _0x19be0f=_0x1d4afd['getFirstRange'](),_0xaf5270=_0x51ea19['fromRange'](_0x19be0f);let _0x539895;_0x2705ed(_0x1d93eb),_0x539895='$graveyard'==_0xaf5270['root']['rootName']?_0x187d55['model']['createRange'](_0x19be0f['start']):_0x187d55['model']['createRange'](_0xaf5270['start'],_0xaf5270['end']),_0xaf5270['detach'](),_0x187d55['model']['enqueueChange'](_0x14ecac['buffer']['batch'],_0x2166ae=>{_0x14ecac['buffer']['lock'](),_0x2166ae['setSelection'](_0x2166ae['createRange'](_0x539895['end'])),_0x14ecac['buffer']['unlock']();});}),_0x187d55['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x187d55,'merge'),{'priority':'high'}),_0x187d55['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x56d138,_0x520892,_0x1e9d50)=>{_0x1e9d50['options']['showSuggestionHighlights']&&De(_0x187d55,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x56d138,_0x520892,_0x1e9d50);},{'priority':'high'}),_0x187d55['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1da239,_0x3422e2,_0x4cc91d)=>{const _0x1d35cd=_0x4cc91d['mapper']['markerNameToElements'](_0x3422e2['markerName']);if(_0x1d35cd){for(const _0x4da745 of _0x1d35cd)_0x4da745['is']('uiElement')&&(_0x4cc91d['mapper']['unbindElementFromMarkerName'](_0x4da745,_0x3422e2['markerName']),_0x4cc91d['writer']['remove'](_0x4da745));}},{'priority':'high'});}}class H extends _0xc3381c{['afterInit'](){const _0xc32fa4=this['editor'];if(!_0xc32fa4['plugins']['has']('ListEditing'))return;const _0x423e68=_0xc32fa4['locale'],_0x333135=_0xc32fa4['plugins']['get']('TrackChangesEditing'),_0x187201=_0xc32fa4['plugins']['has']('TodoListEditing'),_0x49e76d=!!_0xc32fa4['config']['get']('list.multiBlock');function _0xe690f3(_0x3930d7){return{'type':'format','content':''+o(_0x423e68,'*Set\x20format:*\x20%0',_0x3930d7)};}function _0x1b287c(_0x5adab5){return{'type':'format','content':''+o(_0x423e68,'*Remove\x20format:*\x20%0',_0x5adab5)};}_0x333135['enableDefaultAttributesIntegration']('numberedList'),_0x333135['enableDefaultAttributesIntegration']('bulletedList'),_0x333135['enableDefaultAttributesIntegration']('customNumberedList'),_0x333135['enableDefaultAttributesIntegration']('customBulletedList'),_0x333135['enableDefaultAttributesIntegration']('indentList'),_0x333135['enableDefaultAttributesIntegration']('outdentList'),_0x333135['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x333135['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x333135['registerBlockAttribute']('listItemId'),_0x333135['registerBlockAttribute']('listType'),_0x333135['registerBlockAttribute']('listIndent'),_0x49e76d&&(_0x333135['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x333135['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x187201&&(_0x333135['enableDefaultAttributesIntegration']('todoList'),_0x333135['enableDefaultAttributesIntegration']('checkTodoList'),_0x333135['registerBlockAttribute']('todoListChecked'),_0x333135['descriptionFactory']['registerDescriptionCallback'](_0x355934=>{const {data:_0x1d16de}=_0x355934;if(_0x1d16de&&'todoListChecked'==_0x1d16de['key'])return{'type':'format','content':_0x1d16de['newValue']?o(_0x423e68,'*Check\x20item*'):o(_0x423e68,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x48c007=>{if(_0x48c007['batch']['isUndo'])return!0x1;let _0x49303a=!0x1;const _0x458a6c=_0x333135['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45e5da=>'todoListChecked'===_0x333135['_getAttributeKey'](_0x45e5da));for(const _0x5515f0 of _0x458a6c){'todo'!=_0x5515f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x333135['_findSuggestions'](_0x5515f0['getFirstRange'](),'attribute')['find'](_0x40cc47=>'listType'===_0x333135['_getAttributeKey'](_0x40cc47['suggestion']))||(_0x48c007['removeMarker'](_0x5515f0['getFirstMarker']()),_0x49303a=!0x0));}return _0x49303a;})),_0x333135['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x423e68,'FORMAT_INDENT'));const _0x427525={'type':'format','content':''};_0x333135['descriptionFactory']['registerDescriptionCallback'](_0x54e272=>{const {data:_0x54f28c}=_0x54e272;if(!_0x54f28c||'listType'!=_0x54f28c['key'])return;let _0x4f2b27=_0x54e272['head'];for(;_0x4f2b27;){if(_0x4f2b27['data']&&(('listStyle'==_0x4f2b27['data']['key']||'listMarkerStyle'==_0x4f2b27['data']['key'])&&(_0x4f2b27['data']['newValue']&&'default'!=_0x4f2b27['data']['newValue']||'default'!=_0x4f2b27['data']['oldValue']&&!_0x54f28c['newValue'])||!_0x49e76d&&_0x4f2b27['data']['key']==m))return _0x427525;_0x4f2b27=_0x4f2b27['next'];}if(null==_0x54f28c['newValue'])switch(_0x54f28c['oldValue']){case'bulleted':return _0x1b287c(o(_0x423e68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b287c(o(_0x423e68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b287c(o(_0x423e68,'ELEMENT_TODO_LIST'));}switch(_0x54f28c['newValue']){case'bulleted':return _0xe690f3(o(_0x423e68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe690f3(o(_0x423e68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe690f3(o(_0x423e68,'ELEMENT_TODO_LIST'));}}),_0x333135['descriptionFactory']['registerDescriptionCallback'](_0x2c8c69=>{const {data:_0x3cb7bb}=_0x2c8c69;if(_0x3cb7bb&&'listIndent'==_0x3cb7bb['key'])return null==_0x3cb7bb['newValue']||null==_0x3cb7bb['oldValue']&&0x0==_0x3cb7bb['newValue']?_0x427525:void 0x0;}),_0x333135['descriptionFactory']['registerDescriptionCallback'](_0x5457cc=>{if('attribute'!=_0x5457cc['type'])return;const {data:_0x13c17b}=_0x5457cc;if(!_0x13c17b||'listItemId'!=_0x13c17b['key'])return;const _0x5da788=Te(_0x5457cc);return'newValue'==_0x5da788?{'type':'format','content':o(_0x423e68,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5da788?{'type':'format','content':o(_0x423e68,'*Split:*\x20list\x20item')}:_0x427525;}),_0xc32fa4['model']['document']['registerPostFixer'](_0x3a7f3d=>this['listItemIdFixer'](_0x3a7f3d)),_0xc32fa4['model']['document']['registerPostFixer'](_0x2df082=>this['noTrackChangesFixer'](_0x2df082)),_0xc32fa4['model']['document']['on']('change:data',(_0x45a7bb,_0x1892f1)=>{if(_0x1892f1['isUndo']||!_0x1892f1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5d5e35){if(_0x5d5e35['batch']['isUndo']||!_0x5d5e35['batch']['isLocal'])return!0x1;let _0x57a610=!0x1;const _0x102f90=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cc3c6=>_0x5cc3c6['data']&&'listItemId'==_0x5cc3c6['data']['key'])['filter'](_0x2f06db=>_0x2f06db['data']['newValue']&&_0x2f06db['data']['oldValue']);for(const _0x30cb2a of _0x102f90)Te(_0x30cb2a)||(_0x5d5e35['removeMarker'](_0x30cb2a['getFirstMarker']()),_0x57a610=!0x0);return _0x57a610;}['noTrackChangesFixer'](_0x12157e){if(_0x12157e['batch']['isUndo']||!_0x12157e['batch']['isLocal'])return!0x1;const _0x5289ff=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5289ff['trackChangesCommand']['value'])return!0x1;let _0x148585=!0x1;const _0x375a53=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x107086=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x55d8db=>'attribute'==_0x55d8db['type'])['filter'](_0x17f449=>_0x375a53['includes'](_0x17f449['attributeKey']));if(0x0==_0x107086['length'])return _0x148585;for(const _0x5a018e of _0x107086){const _0x5492cc=_0x5289ff['_findSuggestions'](_0x5a018e['range'],'attribute')['filter'](_0x1113ca=>!_0x1113ca['meta']['isNextTo'])['map'](_0x467676=>_0x467676['suggestion'])['filter'](_0x369896=>{const _0x295403=_0x5289ff['_getAttributeKey'](_0x369896);return _0x375a53['includes'](_0x295403);});if(_0x5492cc['length']){for(const _0x490d8c of _0x5492cc)_0x12157e['removeMarker'](_0x490d8c['getFirstMarker']());_0x148585=!0x0;}}return _0x148585;}['assureChains'](){const _0x1b7454=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57ce85=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f0a53;const _0x305774=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x170d02=>{if(_0x170d02['data']['oldRange']||!_0x170d02['data']['newRange'])return null;if(!_0x170d02['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x37b44e}=_0x1b7454['_splitMarkerName'](_0x170d02['name']);if(!_0x1b7454['hasSuggestion'](_0x37b44e))return null;const _0x2fe327=_0x1b7454['getSuggestion'](_0x37b44e);return _0x57ce85['includes'](_0x2fe327['data']['key']);})['map'](_0x6988f8=>{const {id:_0xb34554}=_0x1b7454['_splitMarkerName'](_0x6988f8['name']),_0x24526b=_0x1b7454['getSuggestion'](_0xb34554);return _0x3f0a53=_0x24526b['attributes']['groupId'],_0x24526b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x305774['size'])return;const _0x565e4b=_0x1b7454['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3de5b3=>'attribute'==_0x3de5b3['type']&&_0x3de5b3['data']&&_0x57ce85['includes'](_0x3de5b3['data']['key'])&&_0x3de5b3['attributes']['groupId']!=_0x3f0a53)['map'](_0x3743ec=>({'listItem':_0x3743ec['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3743ec['attributes']['groupId']})),_0x4d4b5c=new Set();for(const {groupId:_0x4dd1ee,listItem:_0x47c33b}of _0x565e4b)_0x305774['has'](_0x47c33b)&&_0x4d4b5c['add'](_0x4dd1ee);for(const _0x14aea1 of _0x1b7454['getSuggestions']())_0x4d4b5c['has'](_0x14aea1['attributes']['groupId'])&&_0x14aea1['setAttribute']('groupId',_0x3f0a53);}['_supportLegacySuggestions'](){const _0x2d300e=this['editor'],_0x395040=_0x2d300e['locale'],_0x510944=_0x2d300e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x510944['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4ee39b,_0x1617be){const _0x33677a=[];for(let _0x26d8d7 of _0x4ee39b)_0x26d8d7['start']['nodeAfter']===_0x26d8d7['end']['parent']&&(_0x26d8d7=_0x2d300e['model']['createRange'](_0x2d300e['model']['createPositionAt'](_0x26d8d7['start']['nodeAfter'],0x0))),_0x33677a['push'](_0x26d8d7);_0x2d300e['model']['change'](_0x5d86d6=>{const _0xa26d9a=_0x2d300e['model']['document']['selection'],_0x1c36c2=Array['from'](_0xa26d9a['getRanges']())['map'](_0x47a00d=>_0x51ea19['fromRange'](_0x47a00d));_0x5d86d6['setSelection'](_0x33677a),_0x2d300e['commands']['get'](_0x1617be['commandName'])['refresh'](),_0x1617be['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2d300e['execute'](_0x1617be['commandName'],..._0x1617be['commandParams']),_0x5d86d6['setSelection'](_0x1c36c2);for(const _0x32edb3 of _0x1c36c2)_0x32edb3['detach']();});}),_0x510944['descriptionFactory']['registerElementLabel'](function(_0x2199b2){const _0x5e18ea=!_0x2d300e['model']['schema']['isObject'](_0x2199b2),_0x1a7fce=_0x2199b2['previousSibling'],_0x2d78e7=_0x2199b2['nextSibling'],_0x2667c0=_0x2199b2['getAttribute']('listItemId'),_0x5d4a58=!_0x1a7fce||_0x1a7fce['getAttribute']('listItemId')!==_0x2667c0,_0x480a96=!_0x2d78e7||_0x2d78e7['getAttribute']('listItemId')!==_0x2667c0;return _0x5e18ea&&Boolean(_0x2667c0)&&_0x5d4a58&&_0x480a96;},_0x3db4e1=>o(_0x395040,'ELEMENT_LIST_ITEM',_0x3db4e1));}['_registerLegacyDescription'](){const _0x4cde78=this['editor'],_0x465168=_0x4cde78['locale'];function _0x1f413a(_0x469dae){const _0x33f324=_0x4cde78['commands']['get']('bulletedList')['value'],_0x329244=_0x4cde78['commands']['get']('numberedList')['value'];return'numberedList'===_0x469dae?_0x33f324:_0x329244;}_0x4cde78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x44e0f6){if('formatBlock'!=_0x44e0f6['type'])return;const {data:_0x1ba053}=_0x44e0f6;if(!_0x1ba053)return;let _0xcddae9,_0x2952dc,_0x1d3424,_0x823ce5;switch(_0x1ba053['commandName']){case'bulletedList':_0x1d3424=_0x1ba053['commandParams'][0x0]['forceValue'],_0x823ce5=_0x1f413a(_0x1ba053['commandName']),_0xcddae9=_0x1d3424?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x823ce5&&_0x4cde78['config']['get']('list.multiBlock')||(_0xcddae9='*Change\x20to:*\x20%0'),_0x2952dc={'type':'format','content':o(_0x465168,_0xcddae9,o(_0x465168,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d3424=_0x1ba053['commandParams'][0x0]['forceValue'],_0x823ce5=_0x1f413a(_0x1ba053['commandName']),_0xcddae9=_0x1d3424?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x823ce5&&_0x4cde78['config']['get']('list.multiBlock')||(_0xcddae9='*Change\x20to:*\x20%0'),_0x2952dc={'type':'format','content':o(_0x465168,_0xcddae9,o(_0x465168,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xcddae9='*Indent:*\x20%0',_0x2952dc={'type':'format','content':o(_0x465168,_0xcddae9,o(_0x465168,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xcddae9=function(_0x3d8a67){const _0x35076b=_0x3d8a67['getFirstRange']();let _0x4e975f=_0x35076b['start']['nodeAfter'];for(;_0x4e975f&&_0x35076b['containsItem'](_0x4e975f);){if(_0x4e975f['getAttribute']('listIndent')>0x0)return!0x1;_0x4e975f=_0x4e975f['nextSibling'];}return!0x0;}(_0x44e0f6)?o(_0x465168,'*Format:*\x20remove\x20from\x20%0',o(_0x465168,function(_0x254e66){return'ELEMENT_'+_0x254e66['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x44e0f6))):o(_0x465168,'*Outdent:*\x20%0',o(_0x465168,'ELEMENT_LIST_ITEM')),_0x2952dc={'type':'format','content':_0xcddae9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ba053['multipleBlocks']&&(_0xcddae9='*Merge:*\x20%0',_0x2952dc={'type':'deletion','content':o(_0x465168,_0xcddae9,o(_0x465168,'ELEMENT_LIST_ITEM'))});}return _0x2952dc;});}}function Te(_0x50c0bd){let _0x4cc3b3=_0x50c0bd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4cc3b3;){const _0x37e74d=_0x4cc3b3['getAttribute']('listItemId');if(!_0x37e74d)return!0x1;if(_0x37e74d==_0x50c0bd['data']['newValue'])return'newValue';if(_0x37e74d==_0x50c0bd['data']['oldValue'])return'oldValue';_0x4cc3b3=_0x4cc3b3['previousSibling'];}return!0x1;}class q extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bbce4=this['editor']['config']['get']('list.properties'),_0x1adca9=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bbce4['styles']&&(_0x1adca9['enableDefaultAttributesIntegration']('listStyle'),_0x1adca9['registerBlockAttribute']('listStyle')),_0x2bbce4['reversed']&&(_0x1adca9['enableDefaultAttributesIntegration']('listReversed'),_0x1adca9['registerBlockAttribute']('listReversed')),_0x2bbce4['startIndex']&&(_0x1adca9['enableDefaultAttributesIntegration']('listStart'),_0x1adca9['registerBlockAttribute']('listStart'));const _0x18dc24={'type':'format','content':''};_0x1adca9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x969a91=this['editor']['locale'];_0x1adca9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x969a91,'FORMAT_LIST_REVERSED')),_0x1adca9['descriptionFactory']['registerDescriptionCallback'](_0x3ae6e3=>{const {data:_0x23b477}=_0x3ae6e3;if(_0x23b477&&'listReversed'==_0x23b477['key'])return null==_0x23b477['newValue']||0x0==_0x23b477['newValue']&&null==_0x23b477['oldValue']?_0x18dc24:void 0x0;}),_0x1adca9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x969a91,'FORMAT_LIST_START')),_0x1adca9['descriptionFactory']['registerDescriptionCallback'](_0x59213e=>{const {data:_0x16eeff}=_0x59213e;if(_0x16eeff&&'listStart'==_0x16eeff['key'])return null==_0x16eeff['newValue']||0x1==_0x16eeff['newValue']&&null==_0x16eeff['oldValue']?_0x18dc24:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3fc84c=>{if(_0x3fc84c['batch']['isUndo'])return!0x1;let _0x2d50f3=!0x1;const _0x3e3e4e=_0x1adca9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5fefd2=>{const _0x521c9d=_0x1adca9['_getAttributeKey'](_0x5fefd2);return'listStart'==_0x521c9d||'listReversed'==_0x521c9d;});for(const _0x5eb361 of _0x3e3e4e){const _0x56593f=_0x5eb361['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56593f||'customNumbered'==_0x56593f)continue;_0x1adca9['_findSuggestions'](_0x5eb361['getFirstRange'](),'attribute')['find'](_0x1c33ff=>'listType'==_0x1adca9['_getAttributeKey'](_0x1c33ff['suggestion']))||(_0x3fc84c['removeMarker'](_0x5eb361['getFirstMarker']()),_0x2d50f3=!0x0);}return _0x2d50f3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2cae72){const _0x2b2799=this['editor']['locale'],{data:_0x34d938}=_0x2cae72,_0x54ebdd={'type':'format','content':''};if(!_0x34d938||'listStyle'!=_0x34d938['key'])return;if(!_0x34d938['oldValue'])return'default'==_0x34d938['newValue']?_0x54ebdd:{'type':'format','content':''+o(_0x2b2799,'*Set\x20format:*\x20%0',o(_0x2b2799,this['_getTranslationKeyForListStyle'](_0x34d938['newValue'])))};if(!_0x34d938['newValue']){if('default'==_0x34d938['oldValue'])return _0x54ebdd;let _0x52c328=_0x2cae72['head'];for(;_0x52c328;){if(_0x52c328['data']&&'listType'==_0x52c328['data']['key']&&_0x52c328['data']['newValue'])return _0x54ebdd;_0x52c328=_0x52c328['next'];}return{'type':'format','content':''+o(_0x2b2799,'*Remove\x20format:*\x20%0',o(_0x2b2799,this['_getTranslationKeyForListStyle'](_0x34d938['oldValue'])))};}if('default'!=_0x34d938['newValue'])return{'type':'format','content':''+o(_0x2b2799,'*Set\x20format:*\x20%0',o(_0x2b2799,this['_getTranslationKeyForListStyle'](_0x34d938['newValue'])))};let _0x167f3b=_0x2cae72['head'];for(;_0x167f3b;){if(_0x167f3b['data']&&'listType'==_0x167f3b['data']['key']&&_0x167f3b['data']['newValue']&&_0x167f3b['data']['oldValue'])return _0x54ebdd;_0x167f3b=_0x167f3b['next'];}return{'type':'format','content':o(_0x2b2799,'*Set\x20format:*\x20%0',o(_0x2b2799,'ELEMENT_'+_0x2cae72['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x190b7c=this['editor'],_0x51f01b=_0x190b7c['locale'];_0x190b7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221cff=>{if('formatBlock'!=_0x221cff['type'])return;const {data:_0x5620cf}=_0x221cff;if(!_0x5620cf)return;let _0xf9b109,_0x74c44a;switch(_0x5620cf['commandName']){case'listStyle':_0xf9b109='*Change\x20to:*\x20%0',_0x74c44a={'type':'format','content':o(_0x51f01b,_0xf9b109,o(_0x51f01b,this['_getTranslationKeyForListStyle'](_0x5620cf['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf9b109=_0x5620cf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x74c44a={'type':'format','content':o(_0x51f01b,_0xf9b109)};break;case'listStart':_0xf9b109='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x74c44a={'type':'format','content':o(_0x51f01b,_0xf9b109,_0x5620cf['commandParams'][0x0]['startIndex'])};}return _0x74c44a;});}['_getTranslationKeyForListStyle'](_0xb956d3){return'ELEMENT_'+function(_0x10bc79){if(Se['includes'](_0x10bc79))return'bulleted';if(_e['includes'](_0x10bc79))return'numbered';return null;}(_0xb956d3)['toUpperCase']()+'_LIST_'+_0xb956d3['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xc3381c{['afterInit'](){const _0x3193ba=this['editor'];_0x3193ba['commands']['get']('emoji')&&_0x3193ba['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xc3381c{static get['requires'](){return[_0x5e8dd4];}['init'](){const _0x2d3c6c=this['editor'],_0xa33f22=_0x2d3c6c['plugins']['get']('TrackChangesEditing'),_0x14b41d=_0x2d3c6c['commands']['get']('enter');_0xa33f22['enableCommand']('enter',()=>{_0x2d3c6c['model']['change'](_0x41e480=>{const _0x1af467=_0x2d3c6c['model']['document']['selection'],_0x42c274=_0x1af467['getFirstPosition'](),_0x4e7e31=_0x51ea19['fromRange'](_0x1af467['getFirstRange']());if(_0x14b41d['enterBlock'](_0x41e480)){const _0x17575c=_0x2d3c6c['model']['createPositionAt'](_0x42c274['parent']['nextSibling'],0x0),_0x2513aa=_0x41e480['createRange'](_0x42c274,_0x17575c);_0xa33f22['markInsertion'](_0x2513aa);}else _0x41e480['setSelection'](_0x41e480['createRange'](_0x4e7e31['end']));_0x4e7e31['detach'](),_0x14b41d['fire']('afterExecute',{'writer':_0x41e480});});}),_0x2d3c6c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2d3c6c,'split'),{'priority':'high'}),_0x2d3c6c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x48c032,_0x2526e4,_0x55e0df)=>{const _0x3ca324=_0x55e0df['mapper']['markerNameToElements'](_0x2526e4['markerName']);if(_0x3ca324){for(const _0x2334c0 of _0x3ca324)_0x2334c0['hasClass']('ck-suggestion-marker-split')&&(_0x55e0df['mapper']['unbindElementFromMarkerName'](_0x2334c0,_0x2526e4['markerName']),_0x55e0df['writer']['remove'](_0x2334c0));}},{'priority':'high'}),_0x2d3c6c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25c6ea,_0x33621c,_0x16d484)=>{_0x16d484['options']['showSuggestionHighlights']&&De(_0x2d3c6c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25c6ea,_0x33621c,_0x16d484);},{'priority':'high'});}}class Q extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3564bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x3564bb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3564bb['enableCommand']('findNext'),_0x3564bb['enableCommand']('findPrevious'),_0x3564bb['enableCommand']('replace'),_0x3564bb['enableCommand']('replaceAll');}['handleFindCommand'](_0x34b2c2,_0x2c2935,_0x596a07={}){const _0x3122dd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x34b2c2(_0x205fa1=>{let _0x49d643=('string'==typeof _0x2c2935?_0x3122dd['findByTextCallback'](_0x2c2935,_0x596a07):_0x2c2935)(_0x205fa1);Array['isArray'](_0x49d643)&&(_0x49d643={'results':_0x49d643,'searchText':'string'==typeof _0x2c2935?_0x2c2935:''});const _0x31e125=_0x49d643['results']['filter'](_0x37e79a=>!0x1===this['_isInDeletionRange'](_0x37e79a,_0x205fa1['item']));return{..._0x49d643,'results':_0x31e125};},_0x596a07);}['_isInDeletionRange'](_0x349250,_0x2ddd2f){const _0x26ed1b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ddd2f,_0x349250['start']),this['editor']['model']['createPositionAt'](_0x2ddd2f,_0x349250['end']));for(const _0x1448bd of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x26ed1b['getIntersection'](_0x1448bd['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xc3381c{['afterInit'](){const _0x56c721=this['editor']['locale'],_0x5b20c8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x38010d,commandName:_0x2792c3}of eo)this['editor']['plugins']['has'](_0x38010d)&&(_0x5b20c8['enableDefaultAttributesIntegration'](_0x2792c3),_0x5b20c8['registerInlineAttribute'](_0x2792c3));_0x5b20c8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x56c721,'FORMAT_FONT_SIZE')),_0x5b20c8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x56c721,'FORMAT_FONT_FAMILY')),_0x5b20c8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x56c721,'FORMAT_FONT_COLOR')),_0x5b20c8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x56c721,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52890e=this['editor'],_0x494992=_0x52890e['locale'];_0x52890e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55dfda=>{const _0xe35217=_0x494992['t'];if('formatInline'!=_0x55dfda['type'])return;const {data:_0x2aacbb}=_0x55dfda;if(null!=_0x2aacbb){if('fontSize'==_0x2aacbb['commandName']){const _0x5d00c0=_0x2aacbb['commandParams'][0x0]['value'];if(_0x5d00c0){const _0x11bd74=_0xe35217(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1b3c06=>_0x1b3c06['model']==_0x5d00c0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x494992,'*Set\x20font\x20size:*\x20%0',_0x11bd74)};}return{'type':'format','content':o(_0x494992,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2aacbb['commandName']){const _0x1644a8=_0x2aacbb['commandParams'][0x0]['value'];return _0x1644a8?{'type':'format','content':o(_0x494992,'*Set\x20font\x20family:*\x20%0',_0x1644a8)}:{'type':'format','content':o(_0x494992,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2aacbb['commandName']){const _0xf50e36=_0x2aacbb['commandParams'][0x0]['value'];if(_0xf50e36){const _0x259aa0=_0x5609d7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x360e2b=>_0x360e2b['model']==_0xf50e36);let _0x2f52bf=_0xf50e36,_0x24e5b9='';return _0x259aa0&&(_0x2f52bf=_0x259aa0['label'],_0x24e5b9=_0xe35217(_0x2f52bf)['toLowerCase']()),{'type':'format','content':o(_0x494992,'*Set\x20font\x20color:*\x20%0',_0x24e5b9)['trim'](),'color':{'value':_0xf50e36,'title':_0x24e5b9||_0x2f52bf}};}return{'type':'format','content':o(_0x494992,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2aacbb['commandName']){const _0x13ba13=_0x2aacbb['commandParams'][0x0]['value'];if(_0x13ba13){const _0x1aa994=_0x5609d7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x37475e=>_0x37475e['model']==_0x13ba13);let _0x192d74=_0x13ba13,_0x21728c='';return _0x1aa994&&(_0x192d74=_0x1aa994['label'],_0x21728c=_0xe35217(_0x192d74)['toLowerCase']()),{'type':'format','content':o(_0x494992,'*Set\x20font\x20background\x20color:*\x20%0',_0x21728c)['trim'](),'color':{'value':_0x13ba13,'title':_0x21728c||_0x192d74}};}return{'type':'format','content':o(_0x494992,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xc3381c{['afterInit'](){const _0x2e0bbb=this['editor'],_0x33086b=_0x2e0bbb['plugins']['get']('TrackChangesEditing'),_0x321888=_0x2e0bbb['commands']['get']('copyFormat'),_0x1e86aa=_0x2e0bbb['commands']['get']('pasteFormat');_0x321888&&_0x1e86aa&&(_0x33086b['enableDefaultAttributesIntegration']('pasteFormat'),_0x33086b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5552eb=this['editor'],_0x112817=_0x5552eb['locale'];_0x5552eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x442624=>{if('formatBlock'!=_0x442624['type']&&'formatInline'!=_0x442624['type'])return;const {data:_0x4f7d9d}=_0x442624;if(_0x4f7d9d&&'pasteFormat'===_0x4f7d9d['commandName']){const _0x53537b=[],_0x32e0f9=_0x4f7d9d['commandParams'][0x0];for(const [_0x4adbf8,_0x4f68ca]of Object['entries'](_0x32e0f9))_0x53537b['push'](ro(_0x5552eb,_0x4adbf8,_0x4f68ca));return _0x53537b['length']?{'type':'format','content':o(_0x112817,'*Set\x20format\x20to:*\x20%0',_0x53537b['join'](',\x20'))}:{'type':'format','content':o(_0x112817,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5e5c38,_0x368b1c,_0x4c99a1){const _0x4e6689=_0x5e5c38['locale']['t'],_0x1a5070=_0x368b1c['split'](/(?=[A-Z])/)['join']('\x20'),_0x4f2ee9=_0x4e6689(_0x1a5070['charAt'](0x0)['toUpperCase']()+_0x1a5070['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4c99a1)return _0x4f2ee9;if('fontColor'===_0x368b1c||'fontBackgroundColor'===_0x368b1c){const _0xc7afb8=_0x5609d7(_0x5e5c38['config']['get']('fontColor.colors'))['find'](_0x296356=>_0x296356['model']==_0x4c99a1);return _0x4f2ee9+'\x20('+(_0xc7afb8?_0x4e6689(_0xc7afb8['label'])['toLowerCase']():_0x4c99a1)+')';}if('fontSize'===_0x368b1c&&isNaN(parseFloat(_0x4c99a1))){const _0x7baeaa=_0x5e5c38['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e5c38['config']['get']('fontSize.options'))['find'](_0x483e40=>_0x483e40['model']==_0x4c99a1);return _0x4f2ee9+'\x20('+(_0x7baeaa?_0x4e6689(_0x7baeaa['title'])['toLowerCase']():_0x4c99a1)+')';}return _0x4f2ee9+'\x20('+_0x4c99a1+')';}class Z extends _0xc3381c{['_headingOptions'];['afterInit'](){const _0x118198=this['editor'];if(!_0x118198['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x118198['config']['get']('heading.options');const _0xe43cae=_0x118198['locale'],_0x239f86=_0x118198['plugins']['get']('TrackChangesEditing');_0x239f86['enableDefaultAttributesIntegration']('heading');for(const _0x325b8c of this['_headingOptions'])'paragraph'!=_0x325b8c['model']&&_0x239f86['descriptionFactory']['registerElementLabel'](_0x325b8c['model'],_0x36c7b7=>{const _0xef2b72=this['_getHeadingLevel'](_0x325b8c['model']);return null!==_0xef2b72?_0x3390ec(_0x36c7b7,_0xef2b72):_0x47d18d(_0x36c7b7,_0x325b8c['title']);});function _0x3390ec(_0x8baa76,_0x3f948c){return o(_0xe43cae,'ELEMENT_HEADING',[_0x8baa76,_0x3f948c]);}function _0x47d18d(_0x39c6a8,_0x3eb38d){return o(_0xe43cae,'ELEMENT_HEADING_CUSTOM',[_0x39c6a8,_0x3eb38d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ee912=this['editor'],_0x3be98e=_0x4ee912['locale'];function _0x3ab125(_0x35f278,_0x5eb1b7){return o(_0x3be98e,'ELEMENT_HEADING_CUSTOM',[_0x35f278,_0x5eb1b7]);}_0x4ee912['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35dde4=>{if('formatBlock'!=_0x35dde4['type'])return;const {data:_0x273a7a}=_0x35dde4;if(_0x273a7a&&'heading'==_0x273a7a['commandName']){const _0x2c41c5=_0x273a7a['commandParams'][0x0]['value'],_0x32a731=this['_getHeadingLevel'](_0x2c41c5);if(null!==_0x32a731)return{'type':'format','content':o(_0x3be98e,'*Change\x20to:*\x20%0',(_0x59eff4=0x1,_0x336bf3=_0x32a731,o(_0x3be98e,'ELEMENT_HEADING',[_0x59eff4,_0x336bf3])))};const _0x173b5b=this['_headingOptions']['find'](_0x348648=>_0x348648['model']===_0x2c41c5)['title'];return{'type':'format','content':o(_0x3be98e,'*Change\x20to:*\x20%0',_0x3ab125(0x1,_0x173b5b))};}var _0x59eff4,_0x336bf3;});}['_getHeadingLevel'](_0x27f241){const _0x41f4b5=_0x27f241['match'](/^heading(\d+)/);if(_0x41f4b5)return _0x41f4b5[0x1];const _0x344464=this['_headingOptions']?.['find'](_0x3f2671=>_0x3f2671['model']==_0x27f241);if(_0x344464&&_0x344464['view']){const _0xb6608=_0x344464['view'],_0x2a0e42=(_0xb6608['name']??_0xb6608)['match'](/^h(\d+)/);if(_0x2a0e42)return _0x2a0e42[0x1];}return null;}}class tt extends _0xc3381c{['afterInit'](){const _0x1f7589=this['editor'];if(!_0x1f7589['plugins']['has']('HighlightEditing'))return;const _0x129a5a=_0x1f7589['plugins']['get']('TrackChangesEditing'),_0x23478d=_0x1f7589['locale'];_0x129a5a['enableDefaultAttributesIntegration']('highlight'),_0x129a5a['registerInlineAttribute']('highlight'),_0x129a5a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x23478d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf3ecf=this['editor'],_0x1ef853=_0xcf3ecf['locale'];_0xcf3ecf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21fb45=>{if('formatInline'!=_0x21fb45['type'])return;const {data:_0x2ed467}=_0x21fb45;if(_0x2ed467&&'highlight'==_0x2ed467['commandName']){const _0x4b2a32=_0x1ef853['t'],_0x445923=_0x2ed467['commandParams'][0x0]['value'];if(_0x445923){const _0x36319c=_0xcf3ecf['config']['get']('highlight.options')['find'](_0x5da234=>_0x5da234['model']==_0x445923),_0x9f14d9=_0x4b2a32(_0x36319c['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ef853,'*Set\x20highlight:*\x20%0',_0x9f14d9),'color':{'value':_0x36319c['color'],'title':_0x36319c['title']}};}return{'type':'format','content':o(_0x1ef853,'*Remove\x20highlight*',o(_0x1ef853,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xc3381c{['afterInit'](){const _0x387ac4=this['editor'];if(!_0x387ac4['plugins']['has']('HorizontalLineEditing'))return;_0x387ac4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x469eb5=_0x387ac4['plugins']['get']('TrackChangesEditing'),_0x252e71=_0x387ac4['locale'];_0x469eb5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3925b0=>o(_0x252e71,'ELEMENT_HORIZONTAL_LINE',_0x3925b0)),_0x387ac4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x274f48,{writer:_0x123e4,options:_0x412f2c})=>{if(!_0x412f2c['showSuggestionHighlights'])return null;const _0xf7abde=_0x123e4['createContainerElement']('div'),_0x5d72f8=_0x123e4['createEmptyElement']('hr');return _0x123e4['addClass']('ck-horizontal-line',_0xf7abde),_0x123e4['insert'](_0x123e4['createPositionAt'](_0xf7abde,0x0),_0x5d72f8),_0xf7abde;},'converterPriority':'high'});}}class nt extends _0xc3381c{['afterInit'](){const _0x57aa88=this['editor'];if(!_0x57aa88['plugins']['has']('HtmlEmbed'))return;const _0x1f02c9=_0x57aa88['plugins']['get']('TrackChangesEditing'),_0x170817=_0x57aa88['locale'];_0x1f02c9['descriptionFactory']['registerElementLabel']('rawHtml',_0x59781d=>o(_0x170817,'ELEMENT_HTML_EMBED',_0x59781d)),_0x1f02c9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1f02c9['registerBlockAttribute']('value'),_0x1f02c9['descriptionFactory']['registerDescriptionCallback'](_0x2f4c63=>{if('attribute'!=_0x2f4c63['type'])return;const {data:_0x4a5bea}=_0x2f4c63;if(_0x4a5bea&&'value'==_0x4a5bea['key']&&_0x2f4c63['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x111d95=o(_0x170817,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x170817,'*Change\x20%0\x20content*',_0x111d95)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ab3aa=this['editor'],_0x8966b8=_0x5ab3aa['locale'];_0x5ab3aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308e48=>{if('formatBlock'!=_0x308e48['type'])return;const {data:_0x383043}=_0x308e48;if(_0x383043&&'htmlEmbed'==_0x383043['commandName']){const _0x23715d=o(_0x8966b8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8966b8,'*Change\x20%0\x20content*',_0x23715d)};}});}}class et extends _0xc3381c{['afterInit'](){const _0x160e15=this['editor'];if(!_0x160e15['plugins']['has']('ImageEditing'))return;const _0x3a9699=_0x160e15['plugins']['get']('TrackChangesEditing'),_0x429078=_0x160e15['plugins']['get']('ImageUtils'),_0xfd126e=_0x160e15['locale'];_0x3a9699['enableCommand']('insertImage'),_0x3a9699['descriptionFactory']['registerElementLabel']('imageBlock',_0x4b688f=>o(_0xfd126e,'ELEMENT_IMAGE',_0x4b688f)),_0x3a9699['descriptionFactory']['registerElementLabel']('imageInline',_0x5ee392=>o(_0xfd126e,'ELEMENT_INLINE_IMAGE',_0x5ee392)),_0x3a9699['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xfd126e,'ELEMENT_CAPTION')),_0x160e15['plugins']['has']('ImageUploadEditing')&&_0x3a9699['enableCommand']('uploadImage'),_0x160e15['plugins']['has']('ImageBlockEditing')&&_0x160e15['plugins']['has']('ImageInlineEditing')&&(_0x3a9699['enableCommand']('imageTypeInline',(_0x31587c,_0x5415fc)=>{const _0x586833=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']);_0x160e15['model']['change'](()=>{_0x3a9699['markBlockFormat'](_0x586833,{'commandName':'imageTypeInline','commandParams':[_0x5415fc]},[],'convertBlockImageToInline');});}),_0x3a9699['enableCommand']('imageTypeBlock',(_0x12e990,_0x5468b7)=>{_0x160e15['model']['change'](_0x4e02ef=>{let _0x122974=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']),_0x4737e6=_0x4e02ef['createRangeOn'](_0x122974);const _0x3a8308=_0x400bd9['fromPosition'](_0x4737e6['start'],'toPrevious'),_0xc2b816=_0x400bd9['fromPosition'](_0x4737e6['end'],'toNext');_0x3a9699['forceDefaultExecution'](()=>_0x12e990(_0x5468b7)),_0x122974=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']),_0x4737e6=_0x4e02ef['createRangeOn'](_0x122974);const _0x417516=_0x4e02ef['createRange'](_0x3a8308,_0xc2b816);_0x3a8308['detach'](),_0xc2b816['detach'](),_0x3a9699['markBlockFormat'](_0x122974,{'commandName':'imageTypeInline','commandParams':[_0x5468b7]},[],'convertInlineImageToBlock'),_0x417516['start']['isBefore'](_0x4737e6['start'])&&_0x3a9699['markInsertion'](_0x4e02ef['createRange'](_0x417516['start'],_0x4737e6['start']),'convertInlineImageToBlock'),_0x4737e6['end']['isBefore'](_0x417516['end'])&&_0x3a9699['markInsertion'](_0x4e02ef['createRange'](_0x4737e6['end'],_0x417516['end']),'convertInlineImageToBlock');});}),_0x3a9699['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3a9699['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3a9699['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3a9699['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3a9699['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3a9699['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x587a62])=>{const _0x52de9=_0x3a9699['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x259ce2=_0x587a62['start'],_0x20ad78=_0x587a62['end'];const _0x589565=_0x160e15['model']['schema']['getNearestSelectionRange'](_0x259ce2,'backward'),_0x5bc661=_0x160e15['model']['schema']['getNearestSelectionRange'](_0x20ad78,'forward');_0x589565['isCollapsed']&&(_0x259ce2=_0x589565['start']),_0x5bc661['isCollapsed']&&(_0x20ad78=_0x5bc661['end']),_0x52de9([_0x160e15['model']['createRange'](_0x259ce2,_0x20ad78)]);}),_0x3a9699['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x9e3534),_0x3a9699['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x9e3534)),_0x160e15['plugins']['has']('ImageCaptionEditing')&&(_0x3a9699['enableCommand']('toggleImageCaption',(_0x12854b,_0x1b5326)=>{const _0x94f143=_0x160e15['plugins']['get']('ImageCaptionUtils');let _0x286553=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']),_0x1f2003=_0x94f143['getCaptionFromImageModelElement'](_0x286553);_0x160e15['model']['change'](()=>{if(_0x1f2003)return void _0x3a9699['markDeletion'](_0x160e15['model']['createRangeOn'](_0x1f2003));const _0x3e44c9=_0x429078['isBlockImage'](_0x286553);_0x12854b(_0x1b5326),_0x286553=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']),_0x1f2003=_0x94f143['getCaptionFromImageModelElement'](_0x286553),_0x3a9699['markInsertion'](_0x160e15['model']['createRangeOn'](_0x1f2003),_0x3e44c9?null:'imageCaption');});}),_0x3a9699['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x9e3534));const _0x5129e4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a9417(_0x4ecfde,_0x3d3a69){const _0x43a57c=_0x5129e4['findIndex'](({type:_0x54ebd4,subType:_0x4b8be3})=>_0x4ecfde['type']==_0x54ebd4&&_0x4ecfde['subType']==_0x4b8be3),_0x159744=_0x5129e4['findIndex'](({type:_0x32f882,subType:_0x249b0c})=>_0x3d3a69['type']==_0x32f882&&_0x3d3a69['subType']==_0x249b0c);if(_0x43a57c<0x0||_0x159744<0x0)return!0x1;const _0x4bbbdc=_0x4ecfde['getFirstRange'](),_0x2fd697=_0x3d3a69['getFirstRange']();if((0x0==_0x43a57c||0x1==_0x43a57c)&&0x2==_0x159744&&_0x4bbbdc['isIntersecting'](_0x2fd697))return!0x0;if(0x2==_0x43a57c&&0x3==_0x159744){const _0x44d817=_0x3a9699['_findSuggestions'](_0x4bbbdc,'insertion')['filter'](({suggestion:_0x49d31b,meta:_0x4dfd0a})=>_0x4dfd0a['isOwn']&&'convertInlineImageToBlock'==_0x49d31b['subType']);if(_0x44d817['length']>0x1&&_0x2fd697['end']['isEqual'](_0x4bbbdc['start']))return!0x0;if(0x1==_0x44d817['length']&&(_0x4bbbdc['start']['isEqual'](_0x2fd697['end'])||_0x4bbbdc['end']['isEqual'](_0x2fd697['start'])))return!0x0;}if(0x3==_0x43a57c&&0x3==_0x159744&&_0x4bbbdc['start']['isBefore'](_0x2fd697['start'])){const _0xf0805=_0x4bbbdc['end']['nodeAfter'],_0x4097dc=_0x2fd697['start']['nodeBefore'];return _0x429078['isBlockImage'](_0xf0805)&&_0xf0805===_0x4097dc;}return!0x1;}function _0x9e3534(_0x1e3692,_0xe1425f){return _0x3a9417(_0x1e3692,_0xe1425f)?[_0x1e3692,_0xe1425f]:_0x3a9417(_0xe1425f,_0x1e3692)?[_0xe1425f,_0x1e3692]:null;}_0x160e15['plugins']['has']('ImageResize')&&(_0x3a9699['enableDefaultAttributesIntegration']('resizeImage'),_0x3a9699['registerBlockAttribute']('resizedWidth'),_0x3a9699['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xfd126e,'FORMAT_IMAGE_SIZE'))),_0x160e15['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3a9699['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3a9699['registerBlockAttribute']('alt')),_0x160e15['plugins']['has']('PictureEditing')&&(_0x3a9699['registerBlockAttribute']('sources'),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x538b2b=>{if('attribute'!=_0x538b2b['type'])return;const {data:_0x2b65f4}=_0x538b2b;return _0x2b65f4&&'sources'==_0x2b65f4['key']?{'type':'format','content':''}:void 0x0;})),_0x160e15['plugins']['has']('ImageSizeAttributes')&&(_0x3a9699['registerBlockAttribute']('width'),_0x3a9699['registerBlockAttribute']('height'),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x31f39d=>{if('attribute'!=_0x31f39d['type'])return;const {data:_0x1bf344}=_0x31f39d;return!_0x1bf344||'width'!=_0x1bf344['key']&&'height'!=_0x1bf344['key']?void 0x0:{'type':'format','content':''};})),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x4c66d7=>{if(!!_0x5129e4['find'](({type:_0x2f50eb,subType:_0x2e87f4})=>_0x4c66d7['type']==_0x2f50eb&&_0x4c66d7['subType']==_0x2e87f4))return _0x4c66d7['previous']?{}:void 0x0;}),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0xe09523=>{if('insertion'==_0xe09523['type']||'deletion'==_0xe09523['type']){const _0x3d8773=_0xe09523['getContainedElement']();if(_0x3d8773&&_0x3d8773['is']('element','caption'))return{'type':'insertion'==_0xe09523['type']?'addObject':'removeObject','element':_0x3d8773,'quantity':0x1};}}),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x38594e=>'formatBlock'==_0x38594e['type']&&'convertInlineImageToBlock'==_0x38594e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x38594e['type']&&'convertBlockImageToInline'==_0x38594e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x2a1a98=>{if('attribute'!=_0x2a1a98['type'])return;const {data:_0x1c4f86}=_0x2a1a98;if(!_0x1c4f86||'alt'!=_0x1c4f86['key'])return;const _0x594991=_0x1c4f86['newValue'];return _0x594991?{'type':'format','content':o(_0xfd126e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x594991+'\x22')}:{'type':'format','content':o(_0xfd126e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b5d2c=this['editor'],_0x31cce0=_0x2b5d2c['locale'];_0x2b5d2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x562cac=>{if('formatBlock'!=_0x562cac['type']&&'formatInline'!=_0x562cac['type'])return;const {data:_0x4dbbf5}=_0x562cac;if(_0x4dbbf5){if('imageTextAlternative'==_0x4dbbf5['commandName']){const _0x1ecea3=_0x4dbbf5['commandParams'][0x0]['newValue'];return _0x1ecea3?{'type':'format','content':o(_0x31cce0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ecea3+'\x22')}:{'type':'format','content':o(_0x31cce0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4dbbf5['commandName']){const _0x5a886e=_0x4dbbf5['commandParams'][0x0]['width'];return _0x5a886e?{'type':'format','content':o(_0x31cce0,'*Set\x20image\x20width:*\x20%0',_0x5a886e)}:{'type':'format','content':o(_0x31cce0,'*Reset\x20image\x20width*')};}}});}}class st extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5da3ba=this['editor']['locale'],_0x26052b=this['editor']['plugins']['get']('TrackChangesEditing');_0x26052b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x26052b['registerBlockAttribute']('src'),_0x26052b['descriptionFactory']['registerDescriptionCallback'](_0x237288=>{if('attribute'!=_0x237288['type'])return;const {data:_0x27d63b}=_0x237288;return _0x27d63b&&'src'==_0x27d63b['key']?_0x27d63b['newValue']&&_0x27d63b['oldValue']?{'type':'format','content':o(_0x5da3ba,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30fcb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x30fcb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x30fcb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30fcb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x30fcb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5de4=this['editor'],_0x2e76ef=_0x1c5de4['locale'];_0x1c5de4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x488a94=>{if('formatBlock'!=_0x488a94['type']&&'formatInline'!=_0x488a94['type'])return;const {data:_0x6fbc94}=_0x488a94;if(!_0x6fbc94||'replaceImageSource'!=_0x6fbc94['commandName'])return;return{'type':'format','content':o(_0x2e76ef,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xc3381c{['afterInit'](){const _0xb07ac=this['editor'];if(!_0xb07ac['plugins']['has']('ImageStyleEditing'))return;const _0x523232=_0xb07ac['plugins']['get']('TrackChangesEditing'),_0xa7d577=_0xb07ac['plugins']['get']('ImageUtils'),_0x8f4e98={};_0x523232['enableCommand']('imageStyle',(_0x59f6cc,_0x15fe92)=>{const _0x26330b=_0xb07ac['plugins']['get']('Users')['me'],_0x3ba779=_0xb07ac['commands']['get']('imageStyle');let _0x3b8f05=_0xa7d577['getClosestSelectedImageElement'](_0xb07ac['model']['document']['selection']),_0xba2bc7=_0xb07ac['model']['createRangeOn'](_0x3b8f05),_0x135624=_0x3ba779['value'];if(_0x135624==_0x15fe92['value'])return;const _0x337ba1={'commandName':'imageStyle','commandParams':[_0x15fe92],'formatGroupId':_0x40bebf()};_0xb07ac['model']['change'](()=>{if(_0x523232['getSuggestions']()['filter'](_0x1ba77e=>_0x1ba77e['isInContent']&&_0x26330b==_0x1ba77e['author']&&('formatBlock'==_0x1ba77e['type']||'formatInline'==_0x1ba77e['type'])&&('imageStylePreApply'==_0x1ba77e['subType']||'imageStylePostApply'==_0x1ba77e['subType'])&&_0x1ba77e['getFirstRange']()['isEqual'](_0xba2bc7))['forEach'](_0x49ba45=>_0x523232['discardSuggestion'](_0x49ba45['head'])),_0x3b8f05=_0xa7d577['getClosestSelectedImageElement'](_0xb07ac['model']['document']['selection']),_0xba2bc7=_0xb07ac['model']['createRangeOn'](_0x3b8f05),_0x3ba779['refresh'](),_0xb07ac['commands']['get']('imageTypeInline')['refresh'](),_0xb07ac['commands']['get']('imageTypeBlock')['refresh'](),_0x135624=_0x3ba779['value'],_0x135624!=_0x15fe92['value'])return _0xa7d577['isInlineImage'](_0x3b8f05)&&_0x3ba779['shouldConvertImageType'](_0x15fe92['value'],_0x3b8f05)?(_0x59f6cc({..._0x15fe92,'setImageSizes':!0x1}),_0x3b8f05=_0xa7d577['getClosestSelectedImageElement'](_0xb07ac['model']['document']['selection']),void _0x523232['markBlockFormat'](_0x3b8f05,{..._0x337ba1,'commandReversedParams':[{'value':_0x135624||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xa7d577['isBlockImage'](_0x3b8f05)?_0x523232['markBlockFormat'](_0x3b8f05,_0x337ba1,[],'imageStylePostApply'):_0x523232['markInlineFormat'](_0xba2bc7,_0x337ba1,'imageStylePostApply'));});});for(const _0x34cad2 of _0xb07ac['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x8f4e98[_0x34cad2['name']]=_0x34cad2['title']['toLowerCase']();_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x523232['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x306036])=>{_0xa7d577['setImageNaturalSizeAttributes'](_0x306036['getContainedElement']());}),_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5f28d2,_0x998f8a)=>{_0x523232['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5f28d2,{'commandName':_0x998f8a['commandName'],'commandParams':_0x998f8a['commandReversedParams']});}),_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1046a7,_0x55906d){if(_0x2e8102(_0x1046a7,_0x55906d))return[_0x1046a7,_0x55906d];if(_0x2e8102(_0x55906d,_0x1046a7))return[_0x55906d,_0x1046a7];return null;});const _0x5bf784=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e8102(_0x8da363,_0xf9de9b){const _0x4263ac=_0x5bf784['findIndex'](({type:_0x299273,subType:_0x2c1532})=>_0x8da363['type']==_0x299273&&_0x8da363['subType']==_0x2c1532),_0x3febc2=_0x5bf784['findIndex'](({type:_0x426e91,subType:_0x200bf5})=>_0xf9de9b['type']==_0x426e91&&_0xf9de9b['subType']==_0x200bf5);if(_0x4263ac<0x0||_0x3febc2<0x0)return!0x1;const _0x11a38d=_0x8da363['getFirstRange'](),_0x59f708=_0xf9de9b['getFirstRange']();if((0x0==_0x4263ac||0x1==_0x4263ac)&&0x2==_0x3febc2&&_0x11a38d['isIntersecting'](_0x59f708))return!0x0;if(0x2==_0x4263ac&&0x3==_0x3febc2){const _0x40fdb2=_0x523232['_findSuggestions'](_0x11a38d,'insertion')['filter'](({suggestion:_0x517d22,meta:_0x1e2002})=>_0x1e2002['isOwn']&&'convertInlineImageToBlock'==_0x517d22['subType']);if(_0x40fdb2['length']>0x1&&_0x59f708['end']['isEqual'](_0x11a38d['start']))return!0x0;if(0x1==_0x40fdb2['length']&&(_0x11a38d['start']['isEqual'](_0x59f708['end'])||_0x11a38d['end']['isEqual'](_0x59f708['start'])))return!0x0;}if(0x3==_0x4263ac&&0x3==_0x3febc2&&_0x11a38d['start']['isBefore'](_0x59f708['start'])){const _0x36377b=_0x11a38d['end']['nodeAfter'],_0x50ac60=_0x59f708['start']['nodeBefore'];return _0xa7d577['isBlockImage'](_0x36377b)&&_0x36377b===_0x50ac60;}return!0x1;}_0xb07ac['model']['document']['registerPostFixer'](()=>{let _0x47ac8b=!0x1;const _0x24841c=Array['from'](_0xb07ac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x341fb1,data:_0x1185ce}of _0x24841c){const {group:_0xa4d210,type:_0x266d0a,subType:_0x20de4a,id:_0xdc4e54}=_0x523232['_splitMarkerName'](_0x341fb1);if('suggestion'==_0xa4d210&&_0x523232['hasSuggestion'](_0xdc4e54)){if('formatBlock'==_0x266d0a&&('imageStylePreApply'==_0x20de4a||'imageStylePostApply'==_0x20de4a)){const _0xbd6358=_0x523232['getSuggestion'](_0xdc4e54);if(_0x1185ce['newRange']){const _0x1cc6c1=_0xbd6358['getFirstRange']()['getContainedElement']();if(_0xa7d577['isBlockImage'](_0x1cc6c1))continue;_0x523232['discardSuggestion'](_0xbd6358),_0x47ac8b=!0x0;}}if('insertion'==_0x266d0a&&'imageCaption'==_0x20de4a&&!_0x1185ce['newRange']){const _0x8a5a71=_0x523232['getSuggestion'](_0xdc4e54);_0x8a5a71['next']&&_0x8a5a71['next']['isInContent']&&(_0x523232['discardSuggestion'](_0x8a5a71['next']),_0x47ac8b=!0x0);}}}return _0x47ac8b;}),this['_registerLegacyDescription'](_0x8f4e98);}['_registerLegacyDescription'](_0x42d100){const _0x134138=this['editor'],_0x38043a=_0x134138['locale'];_0x134138['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d4d5a=>{if('formatBlock'!=_0x1d4d5a['type']&&'formatInline'!=_0x1d4d5a['type'])return;const {data:_0x3e1748}=_0x1d4d5a;if(!_0x3e1748||'imageStyle'!=_0x3e1748['commandName'])return;const _0x1e5af1=_0x3e1748['commandParams'][0x0]['value'];return _0x164b9f('side'===_0x1e5af1?o(_0x38043a,'FORMAT_SIDE_IMAGE'):_0x42d100[_0x1e5af1]||_0x1e5af1);function _0x164b9f(_0x2d45b7){return{'type':'format','content':o(_0x38043a,'*Format:*\x20%0',_0x2d45b7)};}});}}class rt extends _0xc3381c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x138229){super(_0x138229),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3a7ed0=this['editor'],_0x565c71=_0x3a7ed0['commands']['get']('importWord'),_0xbe82cb=_0x3a7ed0['commands']['get']('trackChanges');_0x565c71&&(_0x565c71['on']('execute',(_0x19ad6a,[,_0x5384f7])=>{this['_trackChangesValueDuringImport']=_0xbe82cb['value'],_0x5384f7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x565c71,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x565c71,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xbe82cb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3a7ed0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x808714,_0x1610b0){const {suggestions:_0x383366}=_0x1610b0,_0x1af260=this['editor']['commands']['get']('trackChanges'),_0x1ba44b=_0x1af260['value'];this['_trackChangesValueDuringImport']!==_0x1ba44b&&(_0x1af260['execute'](),this['_trackChangesExecuted']=!0x0),_0x383366&&_0x383366['forEach'](({id:_0x2468a6,type:_0x2cfcc0,author:_0x21e28e,created_at:_0x37df04})=>{const _0x7a6472={'id':_0x2468a6,'type':_0x2cfcc0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x21e28e,'createdAt':_0x37df04?new Date(_0x37df04):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x7a6472);});}}class at extends _0xc3381c{['afterInit'](){const _0x38474f=this['editor'],_0x51d00b=_0x38474f['plugins']['get']('TrackChangesEditing');if(_0x38474f['plugins']['has']('IndentEditing')&&(_0x51d00b['enableCommand']('indent'),_0x51d00b['enableCommand']('outdent')),_0x38474f['plugins']['has']('IndentBlock')){for(const _0x45cc69 of['indentBlock','outdentBlock'])_0x51d00b['enableDefaultAttributesIntegration'](_0x45cc69);}const _0x8364c3=_0x38474f['locale'];_0x51d00b['registerBlockAttribute']('blockIndent'),_0x51d00b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x8364c3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x352109=this['editor'],_0x415a80=_0x352109['locale'],_0x403ce7=_0x352109['plugins']['get']('TrackChangesEditing');_0x403ce7['descriptionFactory']['registerDescriptionCallback'](_0x1110bb=>{if('formatBlock'!=_0x1110bb['type'])return;const {data:_0x2a3cbe}=_0x1110bb;if(!_0x2a3cbe)return;if('indentBlock'!=_0x2a3cbe['commandName']&&'outdentBlock'!=_0x2a3cbe['commandName'])return;const _0x128793=_0x1110bb['getItems']()[0x0],_0x4c92cd=_0x403ce7['descriptionFactory']['getItemLabel'](_0x128793);return'indentBlock'==_0x2a3cbe['commandName']?{'type':'format','content':o(_0x415a80,'*Indent:*\x20%0',_0x4c92cd)}:'outdentBlock'==_0x2a3cbe['commandName']?{'type':'format','content':o(_0x415a80,'*Outdent:*\x20%0',_0x4c92cd)}:void 0x0;});}}class ct extends _0xc3381c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xc3381c{['afterInit'](){const _0x37b9fa=this['editor'];if(!_0x37b9fa['plugins']['has']('LinkEditing'))return;const _0x11dae6=_0x37b9fa['plugins']['get']('TrackChangesEditing'),_0x2f2972=_0x37b9fa['commands']['get']('link');_0x11dae6['enableDefaultAttributesIntegration']('link'),_0x11dae6['enableDefaultAttributesIntegration']('unlink'),_0x11dae6['registerInlineAttribute']('linkHref');for(const _0x1592ef of _0x2f2972['manualDecorators'])_0x11dae6['registerInlineAttribute'](_0x1592ef['id']),_0x11dae6['descriptionFactory']['registerAttributeLabel'](_0x1592ef['id'],'link\x20('+_0x1592ef['label']['toLowerCase']()+')');_0x11dae6['descriptionFactory']['registerDescriptionCallback'](_0x33ddb=>{if('attribute'!=_0x33ddb['type'])return;const {data:_0x1a29cf}=_0x33ddb;if(!_0x1a29cf||'linkHref'!=_0x1a29cf['key'])return;const _0x2abd7f=_0x1a29cf['newValue'],_0x4c7d47=_0x37b9fa['locale'];return{'type':'format','content':null==_0x2abd7f?o(_0x4c7d47,'*Remove\x20link*'):o(_0x4c7d47,'*Set\x20link:*\x20%0','\x22'+_0x2abd7f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2db665=this['editor'],_0x23a982=_0x2db665['locale'];_0x2db665['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43f1a7=>{if('formatInline'!=_0x43f1a7['type'])return;const {data:_0x764b1c}=_0x43f1a7;if(_0x764b1c){if('link'==_0x764b1c['commandName']){const _0x524fe0=_0x764b1c['commandParams'][0x0];return{'type':'format','content':o(_0x23a982,'*Set\x20link:*\x20%0','\x22'+_0x524fe0+'\x22')};}return'unlink'==_0x764b1c['commandName']?{'type':'format','content':o(_0x23a982,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xc3381c{['afterInit'](){const _0x2ed727=this['editor'],_0x2650c0=_0x2ed727['locale'];if(!_0x2ed727['plugins']['has']('LegacyListEditing'))return;const _0x5094d2=_0x2ed727['plugins']['get']('TrackChangesEditing'),_0x1020f6=_0x2ed727['plugins']['has']('LegacyTodoListEditing');function _0x5462c5(_0x518bcf){return()=>{const _0x3e69a6=_0x2ed727['model']['document']['selection'],_0x43d08b=_0x2ed727['commands']['get'](_0x518bcf);if(_0x43d08b['value'])return void _0x2ed727['execute']('paragraph',{});const _0x1a9166=_0x518bcf['slice'](0x0,-0x4),_0x386f73=function(_0x5cdae5,_0x4e3380,_0x47031d){let _0xf2ebb9=Array['from'](_0x5cdae5)['filter'](_0xd559ca=>function(_0x31ae43,_0x4fcd3b){return _0x4fcd3b['checkChild'](_0x31ae43['parent'],'listItem')&&!_0x4fcd3b['isObject'](_0x31ae43);}(_0xd559ca,_0x47031d));_0xf2ebb9=_0xf2ebb9['filter'](_0x382b54=>!_0x382b54['is']('element','listItem')||_0x382b54['getAttribute']('listType')!=_0x4e3380);const _0x1be687=new Set();for(const _0x47211f of _0xf2ebb9)_0x47211f['is']('element','listItem')?_0x1be687['add'](Le(_0x47211f)):_0x1be687['add'](_0x47211f);return Array['from'](_0x1be687);}(_0x3e69a6['getSelectedBlocks'](),_0x1a9166,_0x2ed727['model']['schema']);_0x2ed727['model']['change'](()=>{for(const _0x268abf of _0x386f73)_0x5094d2['markBlockFormat'](_0x268abf,{'commandName':_0x518bcf,'commandParams':[{'forceValue':!_0x43d08b['value']}],'formatGroupId':'blockName'},Ee(_0x268abf));});};}function _0x133a47(_0x1d5b28){return()=>{const _0x89bcb7=function(_0x12cedb){let _0x1ccdc5=Array['from'](_0x12cedb);const _0xee6a2a=_0x1ccdc5['findIndex'](_0x1618a5=>'listItem'!=_0x1618a5['name']);return _0xee6a2a>-0x1&&(_0x1ccdc5=_0x1ccdc5['slice'](0x0,_0xee6a2a)),_0x1ccdc5;}(_0x2ed727['model']['document']['selection']['getSelectedBlocks']()),_0x4f0853=_0x2ed727['model']['createRange'](_0x2ed727['model']['createPositionAt'](_0x89bcb7[0x0],'before'),_0x2ed727['model']['createPositionAt'](_0x89bcb7[_0x89bcb7['length']-0x1],'end'));_0x2ed727['model']['change'](()=>{_0x5094d2['markBlockFormat'](_0x4f0853,{'commandName':_0x1d5b28,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c4467){const _0x4d3137=new Set();for(const _0x71d614 of _0x3c4467){let _0x3cca00=_0x71d614['nextSibling'];for(;_0x3cca00&&_0x3cca00['getAttribute']('listIndent')>_0x71d614['getAttribute']('listIndent');)_0x4d3137['add'](_0x3cca00),_0x3cca00=_0x3cca00['nextSibling'];}return Array['from'](_0x4d3137);}(_0x89bcb7));});};}_0x5094d2['enableCommand']('numberedList',_0x5462c5('numberedList')),_0x5094d2['enableCommand']('bulletedList',_0x5462c5('bulletedList')),_0x1020f6&&_0x5094d2['enableCommand']('todoList',_0x5462c5('todoList')),_0x5094d2['enableCommand']('indentList',_0x133a47('indentList')),_0x5094d2['enableCommand']('outdentList',_0x133a47('outdentList')),_0x1020f6&&_0x5094d2['enableCommand']('checkTodoList',()=>{const _0x34edef=_0x2ed727['commands']['get']('checkTodoList'),_0x44ccde=Array['from'](_0x34edef['_selectedElements']);_0x44ccde['filter'](_0x3ab1f6=>_0x3ab1f6['getAttribute']('todoListChecked')!=_0x34edef['value']),_0x2ed727['model']['change'](()=>{for(const _0x4bb899 of _0x44ccde)_0x5094d2['markBlockFormat'](_0x4bb899,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x34edef['value']}]});});}),_0x5094d2['descriptionFactory']['registerElementLabel']('listItem',_0xdf6bf=>o(_0x2650c0,'ELEMENT_LIST_ITEM',_0xdf6bf)),_0x5094d2['descriptionFactory']['registerDescriptionCallback'](_0x507d49=>{if('formatBlock'!=_0x507d49['type']&&'formatInline'!=_0x507d49['type'])return;const {data:_0x44d082}=_0x507d49;if(_0x44d082){if('numberedList'==_0x44d082['commandName']||'bulletedList'==_0x44d082['commandName']||'todoList'==_0x44d082['commandName'])switch(_0x44d082['commandName']['replace']('List','')){case'bulleted':return _0x1686ec(o(_0x2650c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1686ec(o(_0x2650c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1686ec(o(_0x2650c0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x44d082['commandName'])return{'type':'format','content':o(_0x2650c0,'*Indent:*\x20%0',o(_0x2650c0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x44d082['commandName'])return{'type':'format','content':o(_0x2650c0,'*Outdent:*\x20%0',o(_0x2650c0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x44d082['commandName'])return _0x44d082['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2650c0,'*Check\x20item*')}:{'type':'format','content':o(_0x2650c0,'*Uncheck\x20item*')};}function _0x1686ec(_0x36ce46){return{'type':'format','content':o(_0x2650c0,'*Change\x20to:*\x20%0',_0x36ce46)};}});}}function Le(_0x3f63ca){const _0x2ed3f7=_0x3f63ca['getAttribute']('listIndent');if(0x0==_0x2ed3f7)return _0x3f63ca;let _0x4d5411=_0x3f63ca;for(;_0x3f63ca['previousSibling']&&_0x3f63ca['previousSibling']['is']('element','listItem');){const _0x50bc82=_0x3f63ca['previousSibling']['getAttribute']('listIndent');if(_0x50bc82==_0x2ed3f7)_0x4d5411=_0x3f63ca['previousSibling'];else{if(_0x50bc82<_0x2ed3f7)break;}_0x3f63ca=_0x3f63ca['previousSibling'];}return _0x4d5411;}function Ee(_0x6d5b4b){const _0x2b7fc7=[];if(_0x6d5b4b['is']('element','listItem')&&_0x6d5b4b['getAttribute']('listIndent')>0x0){let _0x500905=_0x6d5b4b['nextSibling'];for(;_0x500905&&'listItem'==_0x500905['name']&&_0x500905['getAttribute']('listIndent')==_0x6d5b4b['getAttribute']('listIndent');)_0x2b7fc7['push'](_0x500905),_0x500905=_0x500905['nextSibling'];}return _0x2b7fc7;}class ht extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3e606d=this['editor']['config']['get']('list.properties'),_0x131fd0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e606d['styles']&&_0x131fd0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3e606d['reversed']&&_0x131fd0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3e606d['startIndex']&&_0x131fd0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x131fd0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1c9333,_0x5af462={}){const _0xdf85d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x288ff9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xdf85d0['markMultiRangeBlockFormat'](_0x288ff9,{'commandName':'listStyle','commandParams':[{'type':_0x5af462['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x29b123,_0x566a6f={}){const _0x450e0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a084f=this['_getSuggestionBlocks'](_0x201799=>_0x201799['is']('element','listItem')&&'numbered'===_0x201799['getAttribute']('listType'));if(_0x4a084f['length']<0x1)return;const _0x4a3f57=_0x4a084f['map'](_0x275ac9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x275ac9,'before'),this['editor']['model']['createPositionAt'](_0x275ac9,0x0)));this['editor']['model']['change'](()=>{_0x450e0e['markMultiRangeBlockFormat'](_0x4a3f57,{'commandName':'listReversed','commandParams':[{'reversed':_0x566a6f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x52cb1b,_0x33d0e6={}){const _0x22a073=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fce1f=this['_getSuggestionBlocks'](_0x3e07bd=>_0x3e07bd['is']('element','listItem')&&'numbered'===_0x3e07bd['getAttribute']('listType'));if(_0x1fce1f['length']<0x1)return;const _0x581fe2=_0x1fce1f['map'](_0x25622c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25622c,'before'),this['editor']['model']['createPositionAt'](_0x25622c,0x0)));this['editor']['model']['change'](()=>{_0x22a073['markMultiRangeBlockFormat'](_0x581fe2,{'commandName':'listStart','commandParams':[{'startIndex':_0x33d0e6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x516e9e){if('formatBlock'!=_0x516e9e['type']&&'formatInline'!=_0x516e9e['type'])return;const _0x2173f2=this['editor']['locale'],{data:_0x3d02bb}=_0x516e9e;if(!_0x3d02bb)return;let _0x2d6845,_0x12b6ef;switch(_0x3d02bb['commandName']){case'listStyle':_0x2d6845='*Change\x20to:*\x20%0',_0x12b6ef={'type':'format','content':o(_0x2173f2,_0x2d6845,o(_0x2173f2,this['_getTranslationKeyForListStyle'](_0x3d02bb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2d6845=_0x3d02bb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x12b6ef={'type':'format','content':o(_0x2173f2,_0x2d6845)};break;case'listStart':_0x2d6845='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x12b6ef={'type':'format','content':o(_0x2173f2,_0x2d6845,_0x3d02bb['commandParams'][0x0]['startIndex'])};}return _0x12b6ef;}['_getSuggestionBlocksForListStyle'](){const _0x55dcf1=this['editor']['plugins']['get']('LegacyListUtils');let _0x260bfb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x260bfb[0x0]?.['is']('element','listItem')&&_0x260bfb['unshift'](..._0x55dcf1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x260bfb[_0x260bfb['length']-0x1]?.['is']('element','listItem')&&_0x260bfb['push'](..._0x55dcf1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x260bfb=[...new Set(_0x260bfb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x260bfb=_0x260bfb['filter'](_0xc83b51=>_0xc83b51['is']('element','listItem'))),_0x260bfb;}['_getSuggestionBlocks'](_0x1521ff){const _0x51fedb=this['editor']['plugins']['get']('LegacyListUtils');let _0x256f28=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1521ff)['map'](_0x3af7cf=>{const _0xd65e48=this['editor']['model']['createPositionAt'](_0x3af7cf,0x0);return[..._0x51fedb['getSiblingNodes'](_0xd65e48,'backward'),..._0x51fedb['getSiblingNodes'](_0xd65e48,'forward')];})['flat']();return _0x256f28=[...new Set(_0x256f28)],_0x256f28;}['_getTranslationKeyForListStyle'](_0x1aefa3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1aefa3)||'default')['toUpperCase']()+'_LIST_'+_0x1aefa3['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xc3381c{['afterInit'](){const _0x593793=this['editor'];if(!_0x593793['plugins']['has']('MediaEmbedEditing'))return;const _0x4e4262=_0x593793['plugins']['get']('TrackChangesEditing'),_0x348065=_0x593793['locale'];_0x4e4262['enableCommand']('mediaEmbed'),_0x4e4262['descriptionFactory']['registerElementLabel']('media',_0x3619ec=>o(_0x348065,'ELEMENT_MEDIA',_0x3619ec)),_0x593793['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x215922,{writer:_0x399851,options:_0x49487c})=>{if(_0x49487c['showSuggestionHighlights'])return _0x399851['createEmptyElement']('div');},'converterPriority':'high'}),_0x593793['data']['downcastDispatcher']['on']('attribute:url:media',(_0x541912,_0x5e1efe,_0x7b6b02)=>{_0x7b6b02['options']['showSuggestionHighlights']&&_0x541912['stop']();},{'priority':'high'});}}class lt extends _0xc3381c{['afterInit'](){const _0x187703=this['editor'];_0x187703['plugins']['has']('MentionEditing')&&_0x187703['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xc3381c{['afterInit'](){const _0x2c5546=this['editor'];if(!_0x2c5546['plugins']['has']('MergeFieldsEditing'))return;const _0x1c27dd=_0x2c5546['plugins']['get']('TrackChangesEditing'),_0x2241f5=_0x2c5546['locale'];_0x1c27dd['enableCommand']('insertMergeField'),_0x1c27dd['enableCommand']('insertMergeFieldBlock'),_0x1c27dd['enableCommand']('insertMergeFieldImage'),_0x1c27dd['descriptionFactory']['registerElementLabel']('mergeField',_0x5daa04=>o(_0x2241f5,'ELEMENT_MERGE_FIELD',_0x5daa04)),_0x1c27dd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15a969=>o(_0x2241f5,'ELEMENT_MERGE_FIELD',_0x15a969)),_0x1c27dd['descriptionFactory']['registerDescriptionCallback'](_0x417335=>{if('insertion'!=_0x417335['type']&&'deletion'!=_0x417335['type'])return;const _0x145467=_0x417335['getContainedElement']();if(null==_0x145467)return;const _0x3bfcdd=_0x2c5546['plugins']['get']('MergeFieldsEditing');let _0x432768;switch(_0x3bfcdd['getMergeFieldType'](_0x145467)){case null:return;case'image':{const _0x537cf0=_0x3bfcdd['unwrapAffixes'](_0x145467['getAttribute']('src'));_0x432768=_0x3bfcdd['getLabel'](_0x537cf0)||_0x537cf0;break;}default:{const _0x4aa143=_0x145467['getAttribute']('id');_0x432768=_0x3bfcdd['getLabel'](_0x4aa143)||_0x4aa143;break;}}return'insertion'==_0x417335['type']?{'type':'insertion','content':o(_0x2241f5,'*Insert:*\x20%0','\x22'+_0x432768+'\x22\x20'+o(_0x2241f5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2241f5,'*Remove:*\x20%0','\x22'+_0x432768+'\x22\x20'+o(_0x2241f5,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xc3381c{['afterInit'](){const _0x4b7ba2=this['editor'],_0x4ab373=_0x4b7ba2['plugins']['get']('TrackChangesEditing');_0x4b7ba2['plugins']['has']('MultiLevelList')&&(_0x4ab373['enableDefaultAttributesIntegration']('multiLevelList'),_0x4ab373['registerBlockAttribute']('listMarkerStyle'),_0x4ab373['descriptionFactory']['registerDescriptionCallback'](_0x5161f3=>this['handleDescriptions'](_0x5161f3)));}['handleDescriptions'](_0x2a636f){const _0x54a826=this['editor']['locale'],{data:_0x4ab0f6}=_0x2a636f,_0x444965={'type':'format','content':''};if(_0x4ab0f6&&'listMarkerStyle'==_0x4ab0f6['key']){if(!_0x4ab0f6['oldValue'])return{'type':'format','content':o(_0x54a826,'*Set\x20format:*\x20%0',o(_0x54a826,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4ab0f6['newValue']+')'};if(!_0x4ab0f6['newValue']){let _0x356478=_0x2a636f['head'];for(;_0x356478;){if(_0x356478['data']&&'listType'==_0x356478['data']['key']&&_0x356478['data']['newValue'])return _0x444965;_0x356478=_0x356478['next'];}return{'type':'format','content':o(_0x54a826,'*Remove\x20format:*\x20%0',o(_0x54a826,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4ab0f6['oldValue']+')'};}}}}class pt extends _0xc3381c{['afterInit'](){const _0x26bf53=this['editor'];if(!_0x26bf53['plugins']['has']('PageBreakEditing'))return;_0x26bf53['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1b0b96=_0x26bf53['plugins']['get']('TrackChangesEditing'),_0x4a458f=_0x26bf53['locale'];_0x1b0b96['descriptionFactory']['registerElementLabel']('pageBreak',_0x4cf52f=>o(_0x4a458f,'ELEMENT_PAGE_BREAK',_0x4cf52f));}}class kt extends _0xc3381c{['afterInit'](){const _0x473feb=this['editor'];if(!_0x473feb['plugins']['has']('Paragraph'))return;const _0x4a8267=_0x473feb['locale'],_0x3ce5af=_0x473feb['plugins']['get']('TrackChangesEditing');_0x3ce5af['descriptionFactory']['registerElementLabel']('paragraph',_0x6a212f=>o(_0x4a8267,'ELEMENT_PARAGRAPH',_0x6a212f)),_0x3ce5af['enableDefaultAttributesIntegration']('paragraph'),_0x3ce5af['enableCommand']('insertParagraph'),_0x473feb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x473feb),{'priority':'highest'}),_0x473feb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a8e87,_0xa6ac85,_0x520fa2)=>{_0x520fa2['options']['showSuggestionHighlights']&&nr(_0x473feb,{'showActiveMarker':!0x1})(_0x5a8e87,_0xa6ac85,_0x520fa2);},{'priority':'highest'});const _0x5a9bde=_0x3ce5af['descriptionFactory'];_0x5a9bde['registerDescriptionCallback'](_0x530df0=>{if('insertion'!==_0x530df0['type'])return;const {start:_0x2be2bc,end:_0x267ea2}=_0x530df0['getFirstRange']();if(!_0x2be2bc['isTouching'](_0x267ea2)||!_0x2be2bc['nodeAfter'])return;const _0x3dc471=_0x473feb['model']['schema'],_0x3dbd23=_0x2be2bc['nodeAfter'];return _0x3dc471['isBlock'](_0x3dbd23)&&!_0x3dc471['isLimit'](_0x3dbd23)&&_0x3dc471['checkChild'](_0x3dbd23,'$text')?{'type':'insertion','content':o(_0x4a8267,'*Insert:*\x20%0',_0x5a9bde['getItemLabel'](_0x3dbd23,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2366=this['editor'],_0x48344f=_0x3a2366['locale'];_0x3a2366['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2d5e=>{if('formatBlock'!=_0x1b2d5e['type'])return;const {data:_0x326fb2}=_0x1b2d5e;return _0x326fb2&&'paragraph'==_0x326fb2['commandName']?{'type':'format','content':o(_0x48344f,'*Change\x20to:*\x20%0',o(_0x48344f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x19eded,{showActiveMarker:_0x5eef34=!0x0}={}){return(_0x90751a,_0x43ad84,_0x5c0fb8)=>{const _0x5de62d=_0x19eded['plugins']['get']('TrackChangesEditing'),_0x41da02=_0x43ad84['markerRange']['start'],_0x4a68b4=_0x43ad84['markerRange']['end'],_0x3d311c=_0x19eded['model']['schema'];if(!_0x41da02['isTouching'](_0x4a68b4)||!_0x41da02['nodeAfter'])return;const _0xf0ed40=_0x41da02['nodeAfter'];if(_0x3d311c['isBlock'](_0xf0ed40)&&!_0x3d311c['isLimit'](_0xf0ed40)&&_0x3d311c['checkChild'](_0xf0ed40,'$text')){if(!_0x5c0fb8['consumable']['consume'](_0x43ad84['markerRange'],_0x90751a['name']))return;const {id:_0x39fa58,authorId:_0x2ff9b0}=_0x5de62d['_splitMarkerName'](_0x43ad84['markerName']),_0x1e5cb3=_0x5c0fb8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x39fa58,'data-author-id':_0x2ff9b0}),_0x157b6e=_0x5c0fb8['mapper']['toViewPosition'](_0x4a68b4);_0x5eef34&&_0x5de62d['activeMarkers']['includes'](_0x43ad84['markerName'])&&_0x5c0fb8['writer']['addClass']('ck-suggestion-marker--active',_0x1e5cb3),_0x5c0fb8['writer']['insert'](_0x157b6e,_0x1e5cb3),_0x5c0fb8['mapper']['bindElementToMarker'](_0x1e5cb3,_0x43ad84['markerName']);}};}class wt extends _0xc3381c{['afterInit'](){const _0x1dd092=this['editor'];_0x1dd092['commands']['get']('replaceSource')&&_0x1dd092['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xc3381c{['afterInit'](){const _0x26fe49=this['editor'];if(!_0x26fe49['plugins']['has']('RemoveFormatEditing'))return;_0x26fe49['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c0f23=this['editor'];_0x2c0f23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x270b0f=>{if('formatBlock'!=_0x270b0f['type']&&'formatInline'!=_0x270b0f['type'])return;const {data:_0xc0f36a}=_0x270b0f;return _0xc0f36a&&'removeFormat'==_0xc0f36a['commandName']?{'type':'format','content':o(_0x2c0f23['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xc3381c{['afterInit'](){const _0x565e00=this['editor'];if(!_0x565e00['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4e2797=_0x565e00['plugins']['get']('TrackChangesEditing');_0x4e2797['enableCommand']('goToPreviousRestrictedEditingException'),_0x4e2797['enableCommand']('goToNextRestrictedEditingException');const _0xb77404=_0x565e00['plugins']['get']('RestrictedEditingModeEditing');_0xb77404['enableCommand']('trackChanges'),_0xb77404['enableCommand']('acceptSuggestion'),_0xb77404['enableCommand']('discardSuggestion'),_0xb77404['enableCommand']('acceptAllSuggestions'),_0xb77404['enableCommand']('discardAllSuggestions'),_0xb77404['enableCommand']('acceptSelectedSuggestions'),_0xb77404['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xc3381c{['afterInit'](){const _0x5787df=this['editor'];if(!_0x5787df['plugins']['has']('ShiftEnter'))return;const _0x362677=_0x5787df['plugins']['get']('TrackChangesEditing');_0x362677['enableCommand']('shiftEnter'),_0x5787df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5787df),{'priority':'high'}),_0x5787df['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5787df),{'priority':'high'}),_0x5787df['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xee1c33,_0x357e32,_0x12722b)=>{_0x12722b['options']['showSuggestionHighlights']&&je(_0x5787df,{'showActiveMarker':!0x1})(_0xee1c33,_0x357e32,_0x12722b);}),_0x362677['descriptionFactory']['registerElementLabel']('softBreak',_0x517cbc=>o(_0x5787df['locale'],'ELEMENT_LINE_BREAK',_0x517cbc));}}function je(_0x4160f1,{showActiveMarker:_0x5b4436=!0x0}={}){return(_0x43fd3d,_0x270d05,_0x46d08c)=>{const _0x4300d8=_0x4160f1['plugins']['get']('TrackChangesEditing');if(!_0x46d08c['consumable']['test'](_0x270d05['markerRange'],_0x43fd3d['name']))return;const _0x5aa649=_0x4160f1['model'];for(const _0x2a22e8 of _0x270d05['markerRange']['getItems']()){if(!_0x2a22e8['is']('element','softBreak'))continue;const _0x1aa538='deletion'==_0x270d05['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5a0dd3,authorId:_0x437245}=_0x4300d8['_splitMarkerName'](_0x270d05['markerName']),_0x98ee00=_0x46d08c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1aa538,'data-suggestion':_0x5a0dd3,'data-author-id':_0x437245}),_0x17f1a5=_0x46d08c['mapper']['toViewPosition'](_0x5aa649['createPositionBefore'](_0x2a22e8));_0x5b4436&&_0x4300d8['activeMarkers']['includes'](_0x270d05['markerName'])&&_0x46d08c['writer']['addClass']('ck-suggestion-marker--active',_0x98ee00),_0x46d08c['writer']['insert'](_0x17f1a5,_0x98ee00),_0x46d08c['mapper']['bindElementToMarker'](_0x98ee00,_0x270d05['markerName']);}};}class St extends _0xc3381c{['afterInit'](){const _0x573a7e=this['editor'],_0x56c146=_0x573a7e['model'],_0x5a365d=_0x573a7e['locale'];if(!_0x573a7e['plugins']['has']('StandardEditingModeEditing'))return;const _0x3d7442=_0x573a7e['plugins']['get']('TrackChangesEditing'),_0x39e61d='restrictedEditingException',_0x3ae8ce=_0x573a7e['commands']['get'](_0x39e61d);_0x3d7442['enableCommand'](_0x39e61d,(_0x2fcf63,_0x1ce67b={})=>{const _0x2b5d12=_0x56c146['document']['selection'];if(_0x2b5d12['isCollapsed'])return void _0x2fcf63(_0x1ce67b);const _0x30bece=void 0x0!==_0x1ce67b['forceValue']?_0x1ce67b['forceValue']:!_0x3ae8ce['value'];_0x56c146['change'](()=>{const _0x389bfc=Array['from'](_0x2b5d12['getRanges']());for(const _0x2bca4e of _0x389bfc){const _0x1d35c0=_0x30bece?[_0x2bca4e]:io(_0x39e61d,_0x2bca4e,_0x56c146);for(const _0x4ce814 of _0x1d35c0)_0x3d7442['markInlineFormat'](_0x4ce814,{'commandName':_0x39e61d,'commandParams':[{'forceValue':_0x30bece}]});}});}),_0x3d7442['descriptionFactory']['registerDescriptionCallback'](_0x296bfb=>{if('formatBlock'!=_0x296bfb['type']&&'formatInline'!=_0x296bfb['type'])return;const {data:_0x255934}=_0x296bfb;return _0x255934&&_0x255934['commandName']==_0x39e61d?_0x255934['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a365d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5a365d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xc3381c{['afterInit'](){const _0xa04636=this['editor'];if(!_0xa04636['plugins']['has']('Style')||!_0xa04636['plugins']['has']('DataSchema'))return;const _0x55c4a9=_0xa04636['plugins']['get']('TrackChangesEditing'),_0x4833dd=_0xa04636['locale'],_0x5be53b=_0xa04636['config']['get']('style')||{},_0x2b346b=_0xa04636['plugins']['get']('GeneralHtmlSupport'),_0x10d1f0=_0xa04636['plugins']['get']('StyleUtils')['normalizeConfig'](_0xa04636['plugins']['get']('DataSchema'),_0x5be53b['definitions']);_0x55c4a9['enableDefaultAttributesIntegration']('style');const _0x3faeb6=new Set();for(const _0xe75794 of _0x10d1f0['block']){const _0x32145c=_0x2b346b['getGhsAttributeNameForElement'](_0xe75794['element']);_0x3faeb6['add'](_0x32145c);}const _0x4258c3=new Set();for(const _0x2face4 of _0x10d1f0['inline']){const _0x4f1a1f=_0x2b346b['getGhsAttributeNameForElement'](_0x2face4['element']);_0x4258c3['add'](_0x4f1a1f);for(const _0xbdf2cf of _0x2face4['ghsAttributes'])_0x4258c3['add'](_0xbdf2cf);}for(const _0x4663bb of _0x3faeb6)_0x55c4a9['registerBlockAttribute'](_0x4663bb),_0x55c4a9['descriptionFactory']['registerAttributeLabel'](_0x4663bb,o(_0x4833dd,'FORMAT_STYLE'));for(const _0x5aac61 of _0x4258c3)_0x55c4a9['registerInlineAttribute'](_0x5aac61),_0x55c4a9['descriptionFactory']['registerAttributeLabel'](_0x5aac61,o(_0x4833dd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25817b=this['editor'],_0x234cd7=_0x25817b['locale'];_0x25817b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cef0a=>{if('formatBlock'!=_0x2cef0a['type']&&'formatInline'!=_0x2cef0a['type'])return;const {data:_0x4e3f44}=_0x2cef0a;return _0x4e3f44&&'style'===_0x4e3f44['commandName']?_0x4e3f44['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x234cd7,'*Set\x20format:*\x20%0',_0x4e3f44['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x234cd7,'*Remove\x20format:*\x20%0',_0x4e3f44['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xc3381c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2d8460){super(_0x2d8460),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x44577c=this['editor'],_0x13a83d=_0x44577c['model']['document']['selection'];if(!_0x44577c['plugins']['has']('TableEditing'))return;const _0x3ebf4d=_0x44577c['locale'],_0x24bced=_0x44577c['plugins']['get']('TrackChangesEditing'),_0x25d81b=_0x44577c['plugins']['get']('TableUtils');_0x24bced['descriptionFactory']['registerElementLabel']('table',_0x419f84=>o(_0x3ebf4d,'ELEMENT_TABLE',_0x419f84)),this['_setupColumnsRowsFixing'](),_0x24bced['enableCommand']('insertTable'),_0x24bced['enableCommand']('selectTableRow'),_0x24bced['enableCommand']('selectTableColumn');for(const _0x62e7d of['insertTableRowAbove','insertTableRowBelow']){const _0x59a4ea=_0x44577c['commands']['get'](_0x62e7d);_0x24bced['enableCommand'](_0x62e7d,_0x10ebf6=>{_0x44577c['model']['change'](_0x546773=>{_0x10ebf6();const _0x15a66d='above'===_0x59a4ea['order'],_0x33632c=_0x25d81b['getSelectionAffectedTableCells'](_0x13a83d),_0x56738a=_0x25d81b['getRowIndexes'](_0x33632c),_0x4d6786=_0x15a66d?_0x56738a['first']-0x1:_0x56738a['last']+0x1,_0x5ce20e=_0x33632c[0x0]['findAncestor']('table'),_0x9efea=_0x25d81b['createTableWalker'](_0x5ce20e,{'startRow':_0x4d6786,'endRow':_0x4d6786}),_0x5372f2=Array['from'](_0x9efea)['map'](_0x3dc1be=>_0x546773['createRangeOn'](_0x3dc1be['cell']));_0x24bced['markMultiRangeInsertion'](_0x5372f2,'tableRow');});});}for(const _0x51086b of['insertTableColumnLeft','insertTableColumnRight']){const _0x4e1e19=_0x44577c['commands']['get'](_0x51086b);_0x24bced['enableCommand'](_0x51086b,_0x5b6647=>{_0x44577c['model']['change'](_0x54a3ca=>{_0x5b6647();const _0xb3d100='left'===_0x4e1e19['order'],_0xf6a159=_0x25d81b['getSelectionAffectedTableCells'](_0x13a83d),_0x5477a8=_0x25d81b['getColumnIndexes'](_0xf6a159),_0x546e8c=_0xb3d100?_0x5477a8['first']-0x1:_0x5477a8['last']+0x1,_0x2f5572=_0xf6a159[0x0]['findAncestor']('table'),_0x3bba8a=_0x25d81b['createTableWalker'](_0x2f5572,{'startRow':0x0,'column':_0x546e8c,'includeAllSlots':!0x1}),_0x2d66e6=Array['from'](_0x3bba8a)['map'](_0x12dc83=>_0x54a3ca['createRangeOn'](_0x12dc83['cell']));_0x24bced['markMultiRangeInsertion'](_0x2d66e6,'tableColumn');});});}for(const _0x1d7902 of['removeTableRow','removeTableColumn']){const _0x2d4749=_0x1d7902['substr'](0xb),_0x2f0637=_0x2d4749['toLowerCase'](),_0x15aba7=_0x2f0637['substr'](0x0,0x3)+'span',_0xdc07fd='table'+_0x2d4749,_0x196995='min'+_0x2d4749,_0x110dce='max'+_0x2d4749;_0x24bced['enableCommand'](_0x1d7902,()=>{_0x44577c['model']['change'](_0x569757=>{const _0x2fb437=_0x25d81b['getSelectionAffectedTableCells'](_0x13a83d),_0x49868e=_0x2fb437[0x0]['findAncestor']('table');let _0x44a60c;if('removeTableRow'==_0x1d7902){const _0x5a3f02=_0x25d81b['getRowIndexes'](_0x2fb437);_0x44a60c={'startRow':_0x5a3f02['first'],'endRow':_0x5a3f02['last'],'includeAllSlots':!0x0};}else{const _0x37f63b=_0x25d81b['getColumnIndexes'](_0x2fb437);_0x44a60c={'startColumn':_0x37f63b['first'],'endColumn':_0x37f63b['last'],'includeAllSlots':!0x0};}const _0x38512c=_0x25d81b['createTableWalker'](_0x49868e,_0x44a60c),_0x201c14=Array['from'](_0x38512c)['map'](({cell:_0x10cb45})=>_0x10cb45),_0x42b89d=Ne(_0x201c14['filter'](_0x1b9418=>_0x1b9418['hasAttribute'](_0x15aba7))),_0x50a616=Ne(_0x201c14['filter'](_0x21dda8=>!_0x21dda8['hasAttribute'](_0x15aba7)))['map'](_0x5383fe=>_0x569757['createRangeOn'](_0x5383fe)),_0x37c239=_0x24bced['markMultiRangeDeletion'](_0x50a616,_0xdc07fd);if(_0x37c239&&('tableRow'==_0x37c239['subType']||'tableColumn'==_0x37c239['subType'])){const _0x15deb6=this['_getSuggestionCoords'](_0x37c239);for(const _0x3caf9c of _0x42b89d){const _0x33c129=_0x569757['createRangeOn'](_0x3caf9c),_0x24b5ce=_0x25d81b['getCellLocation'](_0x3caf9c),_0x57c3e4=_0x3caf9c['getAttribute'](_0x15aba7)-0x1,_0x39990f=_0x15deb6[_0x196995],_0xd5a241=_0x15deb6[_0x110dce];_0x39990f<=_0x24b5ce[_0x2f0637]&&_0x24b5ce[_0x2f0637]+_0x57c3e4<=_0xd5a241&&_0x37c239['addRange'](_0x33c129);}}});});}function _0x1d26f6(_0x16e460){const _0x57444e=Array['from'](_0x13a83d['getRanges']())['map'](_0x3ee88d=>_0x51ea19['fromRange'](_0x3ee88d));_0x44577c['model']['change'](_0x3dad32=>{const _0x4355ee=_0x3dad32['batch'];_0x16e460=_0x16e460['filter'](_0x2a6088=>'$graveyard'!=_0x2a6088['root']['rootName']),_0x3dad32['setSelection'](_0x16e460),_0x44577c['commands']['get']('removeTableRow')['refresh'](),_0x44577c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x44577c['model']['enqueueChange'](()=>{_0x44577c['model']['enqueueChange'](_0x4355ee,_0x3c4c8a=>{const _0x1f6b67=_0x57444e['filter'](_0x58d775=>'$graveyard'!=_0x58d775['root']['rootName']);_0x1f6b67['length']>0x0&&_0x3c4c8a['setSelection'](_0x1f6b67);for(const _0x18e0f4 of _0x57444e)_0x18e0f4['detach']();});});});}function _0x23f6f4(_0x54f22d){_0x44577c['model']['change'](_0x1cc46e=>{const _0x3f32a2=Array['from'](_0x13a83d['getRanges']())['map'](_0xf6c48f=>_0x51ea19['fromRange'](_0xf6c48f)),_0x4f9f41=[];for(const _0x39472f of _0x54f22d)for(const _0x4624a5 of _0x39472f['getItems']({'shallow':!0x0}))_0x4f9f41['push'](_0x4624a5);for(const _0x234d96 of _0x4f9f41)'$graveyard'!=_0x234d96['root']['rootName']&&(_0x1cc46e['setSelection'](_0x1cc46e['createPositionAt'](_0x234d96,0x0)),_0x44577c['commands']['get']('removeTableColumn')['refresh'](),_0x44577c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x248dff=_0x3f32a2['filter'](_0x32081d=>'$graveyard'!=_0x32081d['root']['rootName']);_0x248dff['length']>0x0&&_0x1cc46e['setSelection'](_0x248dff);for(const _0x53b2ef of _0x3f32a2)_0x53b2ef['detach']();});}function _0x17031d(_0x1b880e,_0x3e469e){return _0x3e469e['every'](_0x33cab3=>_0x1b880e['some'](_0x378e05=>_0x378e05['end']['isEqual'](_0x33cab3['start'])||_0x33cab3['end']['isEqual'](_0x378e05['start'])));}function _0x51612a(_0x1241c3,_0x373010){return!_0x1241c3['some'](_0x586ec3=>_0x373010['some'](_0x229b5c=>_0x586ec3['isIntersecting'](_0x229b5c)))&&_0x1241c3['some'](_0x524248=>_0x373010['some'](_0x356bb1=>_0x524248['end']['isTouching'](_0x356bb1['start'])));}_0x44577c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51c37e,_0x501511,_0xded7c4)=>{if(!_0xded7c4['options']['showSuggestionHighlights'])return;const _0x14a76f=_0x501511['item'];if(!_0x14a76f||!_0x14a76f['is']('element','tableCell'))return;const _0xe9f941=_0xded7c4['mapper']['toViewElement'](_0x14a76f);if(_0xe9f941){const {id:_0x59916c,authorId:_0x2a2609}=_0x24bced['_splitMarkerName'](_0x501511['markerName']);_0x1b893a(_0xe9f941,_0xded7c4['writer'],(_0x28b6b5,_0x4bed73,_0x1d8c65)=>{_0x1d8c65['addClass'](_0x4d7f1e(_0x4bed73['classes']),_0x28b6b5),_0x1d8c65['setAttribute']('data-suggestion-id',_0x59916c,_0x28b6b5),_0x1d8c65['setAttribute']('data-author-id',_0x2a2609,_0x28b6b5);},(_0x535f22,_0x14fc3c,_0x4dfce0)=>{_0x4dfce0['removeClass'](_0x4d7f1e(_0x14fc3c['classes']),_0x535f22),_0x4dfce0['removeAttribute']('data-suggestion-id',_0x535f22),_0x4dfce0['removeAttribute']('data-author-id',_0x535f22);});}},{'priority':'highest'}),_0x24bced['descriptionFactory']['registerDescriptionCallback'](_0x45ec66=>{if('insertion'!=_0x45ec66['type']&&'deletion'!=_0x45ec66['type'])return;const _0x473ba7=_0x45ec66['getContainedElement']();if(null!=_0x473ba7&&_0x473ba7['is']('element','table')){if('insertion'==_0x45ec66['type']){const _0x2774af=_0x45ec66['getItems']()['filter'](_0x2747b9=>_0x2747b9['is']('$textProxy'))['map'](_0x584c66=>_0x584c66['data']);if(_0x2774af['length'])return{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2774af['join']('\x20')+'\x22'))};}if('deletion'==_0x45ec66['type']){const _0x78f400=_0x45ec66['getItems']()['filter'](_0x307b94=>_0x307b94['is']('$textProxy'))['map'](_0x10c4a0=>_0x10c4a0['data']);if(_0x78f400['length'])return{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x78f400['join']('\x20')+'\x22'))};}}}),_0x24bced['descriptionFactory']['registerDescriptionCallback'](_0x1e88a5=>{if('tableRow'==_0x1e88a5['subType']){const _0x2f8713=_0x1e88a5['getItems']()['filter'](_0x5673a2=>_0x5673a2['is']('$textProxy'))['map'](_0x237c82=>_0x237c82['data']),_0x163bc3=this['_getSuggestionCoords'](_0x1e88a5),_0x3f7feb=_0x163bc3['maxRow']-_0x163bc3['minRow']+0x1;if('insertion'==_0x1e88a5['type'])return _0x2f8713['length']?{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f7feb,'\x22'+_0x2f8713['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_ROW',_0x3f7feb))};if('deletion'==_0x1e88a5['type'])return _0x2f8713['length']?{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f7feb,'\x22'+_0x2f8713['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_ROW',_0x3f7feb))};}if('tableColumn'==_0x1e88a5['subType']){const _0x454b43=_0x1e88a5['getItems']()['filter'](_0x5ea1d1=>_0x5ea1d1['is']('$textProxy'))['map'](_0xb9a4c0=>_0xb9a4c0['data']),_0x23c0bf=this['_getSuggestionCoords'](_0x1e88a5),_0x58a970=_0x23c0bf['maxColumn']-_0x23c0bf['minColumn']+0x1;if('insertion'==_0x1e88a5['type'])return _0x454b43['length']?{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58a970,'\x22'+_0x454b43['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_COLUMN',_0x58a970))};if('deletion'==_0x1e88a5['type'])return _0x454b43['length']?{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58a970,'\x22'+_0x454b43['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_COLUMN',_0x58a970))};}}),_0x24bced['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1d26f6),_0x24bced['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1d26f6),_0x24bced['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x23f6f4),_0x24bced['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x23f6f4),_0x24bced['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x17031d),_0x24bced['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x17031d),_0x24bced['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x51612a),_0x24bced['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x51612a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x589640=this['editor'],_0xb18cde=_0x589640['model']['document']['selection'];return(_0x4fa68b,_0x331786)=>{_0x589640['model']['change'](_0x4a92da=>{const {commandName:_0x4d41d1,commandParams:_0x83fc3f}=_0x331786;let _0x4c08d7=_0x4fa68b[0x0]['end']['nodeBefore'];_0x83fc3f&&_0x83fc3f[0x0]&&!0x1===_0x83fc3f[0x0]['forceValue']&&(_0x4c08d7=_0x4fa68b[0x0]['start']['nodeAfter']);const _0x290bc2=_0x4a92da['createRangeIn'](_0x4c08d7);if('$graveyard'==_0x290bc2['root']['rootName'])return;const _0x2ada20=Array['from'](_0xb18cde['getRanges']())['map'](_0x5bbd85=>_0x51ea19['fromRange'](_0x5bbd85));_0x4a92da['setSelection'](_0x290bc2),_0x589640['commands']['get'](_0x4d41d1)['refresh'](),_0x83fc3f['push']({'forceDefaultExecution':!0x0}),_0x589640['execute'](_0x4d41d1,..._0x83fc3f);const _0x21726b=_0x2ada20['filter'](_0x16b596=>'$graveyard'!=_0x16b596['root']['rootName']);_0x21726b['length']>0x0&&_0x4a92da['setSelection'](_0x21726b);for(const _0x53d97f of _0x2ada20)_0x53d97f['detach']();});};}['_getCoordsForCells'](_0x2a4283){const _0x496373=this['editor']['plugins']['get']('TableUtils');let _0xf9608e=Number['MAX_SAFE_INTEGER'],_0x5729a7=Number['MIN_SAFE_INTEGER'],_0x16da77=Number['MAX_SAFE_INTEGER'],_0x51a709=Number['MIN_SAFE_INTEGER'];for(const _0xb1573f of _0x2a4283){if('$graveyard'==_0xb1573f['root']['rootName'])continue;const {row:_0x1cf6bd,column:_0x331cbc}=_0x496373['getCellLocation'](_0xb1573f),_0x45563d=_0xb1573f['hasAttribute']('rowspan')?_0xb1573f['getAttribute']('rowspan')-0x1:0x0,_0x5262b9=_0xb1573f['hasAttribute']('colspan')?_0xb1573f['getAttribute']('colspan')-0x1:0x0;_0xf9608e=_0x1cf6bd<_0xf9608e?_0x1cf6bd:_0xf9608e,_0x5729a7=_0x1cf6bd+_0x45563d>_0x5729a7?_0x1cf6bd+_0x45563d:_0x5729a7,_0x16da77=_0x331cbc<_0x16da77?_0x331cbc:_0x16da77,_0x51a709=_0x331cbc+_0x5262b9>_0x51a709?_0x331cbc+_0x5262b9:_0x51a709;}return{'minRow':_0xf9608e,'maxRow':_0x5729a7,'minColumn':_0x16da77,'maxColumn':_0x51a709};}['_setupColumnsRowsFixing'](){const _0x92a668=this['editor'],_0x21338e=_0x92a668['plugins']['get']('TrackChangesEditing'),_0x5323f1=_0x92a668['plugins']['get']('TableUtils');_0x92a668['model']['document']['on']('change:data',()=>{const _0x10ede9=Array['from'](_0x92a668['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25cea7,data:_0x5699a4}of _0x10ede9){const {group:_0x1d075a,id:_0x42f8a1,subType:_0x3e1c0a}=_0x21338e['_splitMarkerName'](_0x25cea7);if('suggestion'!=_0x1d075a)continue;if(null!=_0x5699a4['oldRange'])continue;const _0xa9182=_0x21338e['getSuggestion'](_0x42f8a1);this['_tablePostFixingSubtypes']['includes'](_0x3e1c0a)&&this['_tableSuggestions']['add'](_0xa9182);}},{'priority':'low'});const _0x2e15c3=(_0x130991,_0x3e3c1f)=>{let _0x4eff4e=!0x1;const _0x486c02=_0x3e3c1f['createRangeOn'](_0x130991),_0x33a951=_0x130991['findAncestor']('table'),_0x55cb03=_0x5323f1['getCellLocation'](_0x130991);for(const _0x45746d of this['_tableSuggestions']){const _0x4e6337=_0x45746d['subType'],_0x302b99=_0x4e6337['startsWith']('tablePaste'),_0x229b8f=_0x4e6337['substr'](_0x302b99?0xa:0x5),_0x43db30=_0x229b8f['toLowerCase'](),_0x35f24b=_0x43db30['substr'](0x0,0x3)+'span',_0x34788e='min'+_0x229b8f,_0x1ffeba='max'+_0x229b8f;if(!_0x45746d['isInContent'])continue;if(_0x33a951!=_0x45746d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x45746d['isIntersectingWithRange'](_0x486c02))continue;const _0x1c87ef=_0x130991['hasAttribute'](_0x35f24b)?_0x130991['getAttribute'](_0x35f24b)-0x1:0x0,_0x3f7fa7=this['_getSuggestionCoords'](_0x45746d),_0x3667f6=_0x3f7fa7[_0x34788e],_0x342b0a=_0x3f7fa7[_0x1ffeba];_0x3667f6<=_0x55cb03[_0x43db30]&&_0x55cb03[_0x43db30]+_0x1c87ef<=_0x342b0a&&(_0x45746d['addRange'](_0x486c02),_0x4eff4e=!0x0);}return _0x4eff4e;};_0x92a668['model']['document']['registerPostFixer'](_0x22adb1=>{let _0x494b2d=!0x1;for(const _0x1f0170 of _0x92a668['model']['document']['differ']['getChanges']())if('insert'==_0x1f0170['type']){if('tableRow'==_0x1f0170['name']){for(const _0x3af4a0 of _0x1f0170['position']['nodeAfter']['getChildren']())_0x494b2d=_0x494b2d||_0x2e15c3(_0x3af4a0,_0x22adb1);}else'tableCell'==_0x1f0170['name']&&(_0x494b2d=_0x494b2d||_0x2e15c3(_0x1f0170['position']['nodeAfter'],_0x22adb1));}return _0x494b2d;});}['_getSuggestionCoords'](_0xfac950){return this['_getCoordsForCells'](_0xfac950['getRanges']()['map'](_0x64a335=>_0x64a335['start']['nodeAfter']));}}function Ne(_0x5bed49){return Array['from'](new Set(_0x5bed49)['values']());}class _t extends _0xc3381c{static get['requires'](){return[At];}['afterInit'](){const _0x38a473=this['editor'],_0x44fc24=_0x38a473['model']['document']['selection'],_0x3d354f=_0x38a473['locale'];if(!_0x38a473['plugins']['has']('TableEditing'))return;const _0x32e4de=_0x38a473['plugins']['get']('TrackChangesEditing'),_0x21628f=_0x38a473['plugins']['get']('TableUtils'),_0x2a5c51=_0x38a473['plugins']['get'](At);_0x2a5c51['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x32e4de['enableCommand']('mergeTableCells',()=>{const _0x1c0aba=_0x21628f['getSelectionAffectedTableCells'](_0x38a473['model']['document']['selection']);_0x38a473['model']['change'](()=>{_0x32e4de['markMultiRangeBlockFormat'](_0x1c0aba,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x38a473['commands']['get']('mergeTableCells')['on']('execute',(_0x58b98b,_0x544290)=>{_0x38a473['commands']['get']('trackChanges')['value']&&(_0x544290['length']>0x0&&_0x544290[_0x544290['length']-0x1]&&_0x544290[_0x544290['length']-0x1]['forceDefaultExecution']||_0x32e4de['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x58b98b['stop']());},{'priority':'highest'});for(const _0x43f2d0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x24eed1=_0x38a473['commands']['get'](_0x43f2d0);_0x32e4de['enableCommand'](_0x43f2d0,()=>{const _0x3a2ac3=_0x38a473['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc80a0b=>_0xc80a0b['is']('element','tableCell')),_0x56b499=_0x24eed1['value'];_0x38a473['model']['change'](()=>{_0x32e4de['markMultiRangeBlockFormat']([_0x3a2ac3,_0x56b499],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x47f612 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x113eb0=_0x38a473['commands']['get'](_0x47f612);_0x32e4de['enableCommand'](_0x47f612,()=>{const _0x5985e4=_0x21628f['getSelectionAffectedTableCells'](_0x38a473['model']['document']['selection'])[0x0],_0x521f08=_0x5985e4['findAncestor']('table'),{column:_0x2b7fbe,row:_0x55a744}=_0x21628f['getCellLocation'](_0x5985e4);let _0x4b3f50=[];if('horizontally'==_0x113eb0['direction']){const _0x1d1898=_0x21628f['createTableWalker'](_0x521f08,{'startRow':_0x55a744,'endRow':_0x55a744,'includeAllSlots':!0x0});_0x4b3f50=Array['from'](_0x1d1898)['map'](_0x466d9e=>_0x466d9e['cell']);}else{const _0x39e5f7=_0x21628f['createTableWalker'](_0x521f08,{'column':_0x2b7fbe,'includeAllSlots':!0x0});_0x4b3f50=Array['from'](_0x39e5f7)['map'](_0x839892=>_0x839892['cell']);}_0x38a473['model']['change'](_0x1480c4=>{_0x32e4de['markBlockFormat'](_0x1480c4['createRangeOn'](_0x5985e4),{'commandName':_0x47f612,'commandParams':[]},_0x4b3f50,_0x47f612);});});}_0x32e4de['descriptionFactory']['registerDescriptionCallback'](_0x38a72f=>{if('formatBlock'!=_0x38a72f['type']&&'formatInline'!=_0x38a72f['type'])return;const {data:_0x3723da}=_0x38a72f;return _0x3723da&&'mergeTableCells'==_0x3723da['commandName']?{'type':'format','content':o(_0x3d354f,'*Merge\x20cells*')}:void 0x0;}),_0x32e4de['descriptionFactory']['registerDescriptionCallback'](_0x36abe0=>{if('formatBlock'!=_0x36abe0['type']&&'formatInline'!=_0x36abe0['type'])return;const {data:_0x3defef}=_0x36abe0;return _0x3defef?'splitTableCellVertically'==_0x3defef['commandName']?{'type':'format','content':o(_0x3d354f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3defef['commandName']?{'type':'format','content':o(_0x3d354f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xcbf4c1=_0x2a5c51['_acceptFormatSuggestionCallbackFactory']();for(const _0x4718e5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x32e4de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4718e5,'accept',_0xcbf4c1);for(const _0xe579e3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x32e4de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe579e3,'accept',_0xcbf4c1);_0x32e4de['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5047cd=>{_0x38a473['model']['change'](_0x4d35e5=>{const _0x497693=Array['from'](_0x44fc24['getRanges']())['map'](_0x1b2607=>_0x51ea19['fromRange'](_0x1b2607));_0x4d35e5['setSelection'](_0x5047cd),_0x38a473['commands']['get']('mergeTableCells')['refresh'](),_0x38a473['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4911e9=_0x497693['filter'](_0x5852f9=>'$graveyard'!=_0x5852f9['root']['rootName']);_0x4911e9['length']>0x0&&_0x4d35e5['setSelection'](_0x4911e9);for(const _0x3b2aca of _0x497693)_0x3b2aca['detach']();});});for(const _0x5032aa of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2c4ebd=_0x38a473['commands']['get'](_0x5032aa);_0x2c4ebd['on']('set:isEnabled',(_0x19966c,_0x3834a3,_0x476d3e)=>{if(_0x476d3e){const _0x1aa162=_0x38a473['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x47a18d=>_0x47a18d['is']('element','tableCell'));this['_areMergableCells'](_0x2c4ebd['value'],_0x1aa162)||(_0x19966c['return']=!0x1,_0x19966c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x39c683=this['editor']['commands']['get']('mergeTableCells'),_0x50579b=this['editor']['plugins']['get']('TableUtils');if(!_0x39c683['isEnabled'])return!0x1;const _0x14c12e=_0x50579b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d6fe4 of _0x14c12e)for(const _0x3158cf of _0x14c12e)if(_0x3d6fe4!=_0x3158cf&&!this['_areMergableCells'](_0x3d6fe4,_0x3158cf))return!0x1;return!0x0;}['_areMergableCells'](_0x48589c,_0x358ec9){const _0x30a336=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41e543=this['editor']['model']['createRangeOn'](_0x48589c),_0x5a810e=this['editor']['model']['createRangeOn'](_0x358ec9),_0x5648b4=new Set(),_0x57bf2c=new Set();for(const _0x4e94a9 of _0x30a336['getSuggestions']())if(('insertion'==_0x4e94a9['type']||'deletion'==_0x4e94a9['type']||'mergeTableCells'==_0x4e94a9['subType'])&&_0x4e94a9['isInContent']){for(const _0x510416 of _0x4e94a9['getRanges']())_0x510416['containsRange'](_0x41e543,!0x0)&&_0x5648b4['add'](_0x4e94a9['type']+':'+_0x4e94a9['author']['id']),_0x510416['containsRange'](_0x5a810e,!0x0)&&_0x57bf2c['add'](_0x4e94a9['type']+':'+_0x4e94a9['author']['id']);}if(_0x5648b4['size']!=_0x57bf2c['size'])return!0x1;for(const _0x488606 of _0x5648b4)if(!_0x57bf2c['has'](_0x488606))return!0x1;return!0x0;}}class Ct extends _0xc3381c{static get['requires'](){return[At];}['afterInit'](){const _0x594e53=this['editor'];if(!_0x594e53['plugins']['has']('TableEditing'))return;const _0x51e8f4=_0x594e53['locale'],_0x3bce32=_0x594e53['plugins']['get']('TrackChangesEditing');_0x3bce32['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3bce32['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3bce32['registerBlockAttribute']('headingRows'),_0x3bce32['registerBlockAttribute']('headingColumns'),_0x3bce32['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x51e8f4,'FORMAT_HEADER_ROW')),_0x3bce32['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x51e8f4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x224032=this['editor']['plugins']['get']('TrackChangesEditing'),_0x397466=this['editor']['plugins']['get']('TableUtils'),_0x5a9138=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x131f68({showActiveMarker:_0x2d2ccc=!0x0,setDataAttribute:_0x679076=!0x0}={}){return(_0x40a2bc,_0x1fd5fa,_0x11557e)=>{const {type:_0x3c68f0,id:_0x2305e4}=_0x224032['_splitMarkerName'](_0x1fd5fa['markerName']),_0xf001d6=_0x224032['getSuggestion'](_0x2305e4),_0x235782=_0xf001d6['data'];if('formatBlock'!=_0xf001d6['type']||!_0x235782||'setTableColumnHeader'!=_0x235782['commandName'])return;if(_0x1fd5fa['item'])return void _0x40a2bc['stop']();if(!_0x11557e['consumable']['consume'](_0x1fd5fa['markerRange'],_0x40a2bc['name']))return;const _0x1c8805=_0x1fd5fa['markerRange']['start']['nodeAfter'],_0xb9c4f8=_0x1fd5fa['markerRange']['end']['nodeBefore'],_0x3b0b2e=_0x1c8805['parent']['parent'],{column:_0xfc78d0}=_0x397466['getCellLocation'](_0x1c8805),{column:_0x571389}=_0x397466['getCellLocation'](_0xb9c4f8);for(let _0x44ca00=_0xfc78d0;_0x44ca00<=_0x571389;_0x44ca00++){const _0x2183ff=_0x397466['createTableWalker'](_0x3b0b2e,{'column':_0x44ca00,'includeAllSlots':!0x1});for(const _0x7402d2 of _0x2183ff){const _0x51db34=_0x7402d2['cell'],_0x111265=_0x11557e['mapper']['toViewElement'](_0x51db34);_0x11557e['writer']['addClass']('ck-suggestion-marker-'+_0x3c68f0,_0x111265),_0x679076&&_0x11557e['writer']['setAttribute']('data-suggestion',_0x2305e4,_0x111265),_0x11557e['mapper']['bindElementToMarker'](_0x111265,_0x1fd5fa['markerName']),_0x2d2ccc&&(_0x224032['activeMarkers']['includes'](_0x1fd5fa['markerName'])?_0x11557e['writer']['addClass']('ck-suggestion-marker--active',_0x111265):_0x11557e['writer']['removeClass']('ck-suggestion-marker--active',_0x111265));}}};}_0x224032['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5a9138),_0x224032['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5a9138),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x131f68(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd85b5,_0x3010d1,_0x272781)=>{_0x272781['options']['showSuggestionHighlights']&&_0x131f68({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd85b5,_0x3010d1,_0x272781);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x15f082,_0x1c26b9,_0x4d047f)=>{const {type:_0xd867cc,id:_0x1d3e41}=_0x224032['_splitMarkerName'](_0x1c26b9['markerName']),_0x4187d2=_0x224032['getSuggestion'](_0x1d3e41),_0x3dc74d=_0x4187d2['data'];if('formatBlock'!=_0x4187d2['type']||!_0x3dc74d||'setTableColumnHeader'!=_0x3dc74d['commandName'])return;const _0x287794=_0x4d047f['mapper']['markerNameToElements'](_0x1c26b9['markerName']);if(_0x287794){for(const _0x28c8cf of _0x287794)_0x4d047f['writer']['removeClass']('ck-suggestion-marker-'+_0xd867cc,_0x28c8cf),_0x4d047f['writer']['removeClass']('ck-suggestion-marker--active',_0x28c8cf),_0x4d047f['writer']['removeAttribute']('data-suggestion',_0x28c8cf),_0x4d047f['mapper']['unbindElementFromMarkerName'](_0x28c8cf,_0x1c26b9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d2fdc=this['editor'],_0x290224=_0x2d2fdc['locale'];function _0x4f8a67(_0x56143d){return{'type':'format','content':o(_0x290224,'*Format:*\x20%0',_0x56143d)};}_0x2d2fdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b1e7f=>{if('formatBlock'!=_0x1b1e7f['type'])return;const {data:_0x4fd497}=_0x1b1e7f;if(_0x4fd497){if('setTableRowHeader'==_0x4fd497['commandName']){const _0x7032ef=_0x4fd497['commandParams'][0x0]['forceValue'];return _0x4f8a67(o(_0x290224,_0x7032ef?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4fd497['commandName']){const _0x2bf45d=_0x4fd497['commandParams'][0x0]['forceValue'];return _0x4f8a67(o(_0x290224,_0x2bf45d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xc3381c{['afterInit'](){const _0x564b7b=this['editor'],_0x31ba6f=_0x564b7b['locale'],_0x3a2626=_0x564b7b['plugins']['get']('TrackChangesEditing');function _0xe4e438(_0x549892){return{'type':'format','content':''+o(_0x31ba6f,'*Set\x20table\x20type:*\x20%0',_0x549892)};}_0x564b7b['plugins']['has']('TableLayout')&&(_0x3a2626['enableCommand']('insertTableLayout'),_0x3a2626['enableDefaultAttributesIntegration']('tableType'),_0x3a2626['registerBlockAttribute']('tableType'),_0x3a2626['descriptionFactory']['registerElementLabel'](_0x5bc830=>_0x5bc830['is']('element','table')&&'layout'===_0x5bc830['getAttribute']('tableType'),_0x125c0d=>o(_0x31ba6f,'ELEMENT_LAYOUT_TABLE',_0x125c0d)),_0x3a2626['descriptionFactory']['registerDescriptionCallback'](_0x1b65e7=>{const {data:_0x4bf7e5}=_0x1b65e7;if(_0x4bf7e5&&'tableType'==_0x4bf7e5['key'])switch(_0x4bf7e5['newValue']){case'layout':return _0xe4e438(o(_0x31ba6f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xe4e438(o(_0x31ba6f,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x2b47ef=>[_0x2b47ef,null]));class Nt extends _0xc3381c{static get['requires'](){return[At];}['afterInit'](){const _0x180a97=this['editor'];if(!_0x180a97['plugins']['has']('TableClipboard'))return;const _0x5567a9=_0x180a97['plugins']['get']('TrackChangesEditing'),_0x1b8c5d=_0x180a97['plugins']['get']('TableUtils'),_0x4f33ed=_0x180a97['plugins']['get'](At),_0x818d90=_0x180a97['plugins']['get']('TableClipboard'),_0x1339d0=_0x180a97['plugins']['get']('TableSelection'),_0x3db9d8=_0x180a97['plugins']['get'](_0x14b56f);_0x4f33ed['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x180a97['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x180a97['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1919c9=null,_0x4f104b=!0x1;_0x3db9d8['on']('contentInsertion',(_0x2b06f0,_0xdb32f4)=>{_0x4f104b='paste'===_0xdb32f4['method'];}),_0x180a97['model']['on']('insertContent',(_0x470abd,_0x5587b2)=>{if(!_0x4f104b&&null===_0x1339d0['getSelectedTableCells']())return;const [_0x3162d6,_0x1b33b5]=_0x5587b2,_0x466be0=_0x5587b2[_0x5587b2['length']-0x1];_0x466be0&&_0x466be0['forceDefaultExecution']||_0x5567a9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3dff62,_0x22cf3f,_0x4634fa,_0x1b8dad,_0x3f4092){if(_0x22cf3f&&!_0x22cf3f['is']('documentSelection'))return!0x1;const _0x3f444e=_0x3f4092['getTableIfOnlyTableInContent'](_0x3dff62,_0x4634fa);if(!_0x3f444e||!Ue(_0x3f444e,void 0x0,_0x1b8dad))return!0x1;const _0x9681cc=_0x1b8dad['getSelectionAffectedTableCells'](_0x4634fa['document']['selection']);if(!_0x9681cc['length'])return!0x1;const _0x38aa3b=_0x9681cc[0x0]['findAncestor']('table'),_0x19c32b=_0x1b8dad['getRowIndexes'](_0x9681cc),_0x2f3ae3=_0x1b8dad['getColumnIndexes'](_0x9681cc),_0x5f28c9={'startRow':_0x19c32b['first'],'endRow':_0x19c32b['last'],'startColumn':_0x2f3ae3['first'],'endColumn':_0x2f3ae3['last']};return 0x1==_0x9681cc['length']&&(_0x5f28c9['endRow']+=_0x1b8dad['getRows'](_0x3f444e)-0x1,_0x5f28c9['endColumn']+=_0x1b8dad['getColumns'](_0x3f444e)-0x1),Ue(_0x38aa3b,_0x5f28c9,_0x1b8dad);}(_0x3162d6,_0x1b33b5,_0x180a97['model'],_0x1b8c5d,_0x818d90)&&(_0x470abd['stop'](),_0x1919c9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x180a97['model']['change'](()=>{_0x180a97['model']['insertContent'](_0x5587b2[0x0],_0x5587b2[0x1],_0x5587b2[0x2],{'forceDefaultExecution':!0x0});const _0x872b91=_0x40bebf(),{rowInsertionRanges:_0x7abb62,columnInsertionRanges:_0x2c0f20,insertionRanges:_0x53f71d,deletionRanges:_0x338ef4,cells:_0x5c8d57}=_0x1919c9;_0x7abb62['length']&&_0x5567a9['markMultiRangeInsertion'](_0x7abb62,'tablePasteRow',{'tablePasteChainId':_0x872b91}),_0x2c0f20['length']&&_0x5567a9['markMultiRangeInsertion'](_0x2c0f20,'tablePasteColumn',{'tablePasteChainId':_0x872b91}),_0x53f71d['length']&&(_0x5567a9['markMultiRangeInsertion'](_0x53f71d,'tablePaste',{'tablePasteChainId':_0x872b91,'skipNestingCheck':!0x0}),_0x53f71d['forEach'](_0x242ca3=>_0x242ca3['detach']?.())),_0x338ef4['length']&&(_0x5567a9['markMultiRangeDeletion'](_0x338ef4,'tablePaste',{'tablePasteChainId':_0x872b91,'skipNestingCheck':!0x0}),_0x338ef4['forEach'](_0x394b82=>_0x394b82['detach']?.()));const _0x4879ac=_0x5567a9['markMultiRangeBlockFormat'](_0x5c8d57['map'](({element:_0x327c96})=>_0x327c96),{'formatGroupId':_0x40bebf()},[],'tablePasteCell',{'tablePasteChainId':_0x872b91});if(_0x4879ac){const _0x44bb3b=_0x4879ac['getMarkers'](),_0x2bc01c=[];for(const {element:_0x3fd4ca,attributes:_0xf64b95}of _0x5c8d57){if(!_0xf64b95)continue;const _0x2395f0=_0x180a97['model']['createRangeOn'](_0x3fd4ca),_0x38cece=_0x44bb3b['find'](_0x4df964=>_0x4df964['getRange']()['isEqual'](_0x2395f0));_0x38cece&&_0x2bc01c['push']([_0x38cece['name'],_0xf64b95]);}_0x2bc01c['length']&&_0x4879ac['setAttribute']('markerAttributes',Object['fromEntries'](_0x2bc01c));}_0x1919c9=null;}));},{'priority':_0x140f0d['high']+0xa}),_0x3db9d8['on']('contentInsertion',()=>{_0x4f104b=!0x1;},{'priority':'lowest'}),_0x180a97['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1efad9,_0xad6438)=>{const [_0x441366,_0x5eccea,,_0x1ed5e6]=_0xad6438;if(!_0x1919c9)return;_0x1efad9['stop']();const _0x5c1e16=_0x441366['cell'],_0x1d5402=_0x5eccea,_0x1150fa=Oe(_0x5c1e16),_0x2aeb5c=Oe(_0x1d5402);_0x1efad9['return']=_0x5c1e16;let _0x25be54=null,_0x52100a=null;if(_0x2aeb5c||_0x1150fa){if(_0x1150fa&&!_0x2aeb5c){_0x1ed5e6['remove'](_0x5c1e16['getChild'](0x0));for(const _0x45a7ea of Array['from'](_0x1d5402['getChildren']()))_0x1ed5e6['insert'](_0x45a7ea,_0x5c1e16,'end');const _0x2882b3=_0x1919c9['rowInsertionIndexes']['includes'](_0x441366['row']),_0x244d2d=_0x1919c9['columnInsertionIndexes']['includes'](_0x441366['column']);_0x2882b3||_0x244d2d||(_0x25be54=_0x51ea19['fromRange'](_0x1ed5e6['createRangeIn'](_0x5c1e16)));}else _0x2aeb5c&&!_0x1150fa&&(_0x52100a=_0x1ed5e6['createRangeIn'](_0x5c1e16));}else{const _0x23e429=_0x1ed5e6['createElement']('tableCellSuggestion'),_0x163c1a=_0x1ed5e6['createElement']('tableCellSuggestion');_0x1ed5e6['wrap'](_0x1ed5e6['createRangeIn'](_0x5c1e16),_0x163c1a),_0x1ed5e6['insert'](_0x23e429,_0x5c1e16,0x0);for(const _0x3686fe of Array['from'](_0x1d5402['getChildren']()))_0x1ed5e6['insert'](_0x3686fe,_0x23e429,'end');_0x25be54=_0x51ea19['fromRange'](_0x1ed5e6['createRangeOn'](_0x23e429)),_0x52100a=_0x51ea19['fromRange'](_0x1ed5e6['createRangeOn'](_0x163c1a));}const _0x40a7c9=Array['from'](_0x1d5402['getAttributes']())['filter'](([_0x3ccd2b])=>Be['includes'](_0x3ccd2b));_0x1919c9['cells']['push']({'element':_0x5c1e16,'attributes':_0x40a7c9['length']?Object['fromEntries'](_0x40a7c9):null}),_0x25be54&&_0x1919c9['insertionRanges']['push'](_0x25be54),_0x52100a&&_0x1919c9['deletionRanges']['push'](_0x52100a);},{'priority':'high'}),_0x1b8c5d['on']('insertColumns',(_0x4f37f5,_0x543c61)=>{const [_0x144069,_0x51abef={}]=_0x543c61;if(!_0x1919c9)return;const _0x1eb7d7=_0x51abef['at']||0x0,_0x421d42=_0x51abef['columns']||0x1;_0x1919c9['columnInsertionIndexes']=new Array(_0x421d42)['fill'](_0x1eb7d7)['map']((_0x334ca9,_0x90c795)=>_0x334ca9+_0x90c795);for(const {cell:_0x3b5611}of _0x1b8c5d['createTableWalker'](_0x144069,{'startColumn':_0x1eb7d7,'endColumn':_0x1eb7d7+_0x421d42-0x1}))_0x1919c9['columnInsertionRanges']['push'](_0x180a97['model']['createRangeOn'](_0x3b5611));},{'priority':'low'}),_0x1b8c5d['on']('insertRows',(_0x34d932,_0x7c1083)=>{const [_0x2161a8,_0x2a1e48={}]=_0x7c1083;if(!_0x1919c9)return;const _0x56014d=_0x2a1e48['at']||0x0,_0x23adf6=_0x2a1e48['rows']||0x1;_0x1919c9['rowInsertionIndexes']=new Array(_0x23adf6)['fill'](_0x56014d)['map']((_0x29de03,_0x2db753)=>_0x29de03+_0x2db753);for(const {cell:_0x398042}of _0x1b8c5d['createTableWalker'](_0x2161a8,{'startRow':_0x56014d,'endRow':_0x56014d+_0x23adf6-0x1}))_0x1919c9['rowInsertionRanges']['push'](_0x180a97['model']['createRangeOn'](_0x398042));},{'priority':'low'}),_0x5567a9['descriptionFactory']['registerDescriptionCallback'](_0x393fb7=>{if(_0x393fb7['subType']&&_0x393fb7['subType']['startsWith']('tablePaste'))return _0x393fb7['previous']?{}:{'type':'insertion','content':o(_0x180a97['locale'],'*Replace\x20table\x20cells*')};});const _0x3870ec=()=>!0x1;for(const _0x332e01 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5567a9['_suggestionFactory']['registerCustomCallback']('insertion',_0x332e01,'join',_0x3870ec),_0x5567a9['_suggestionFactory']['registerCustomCallback']('deletion',_0x332e01,'join',_0x3870ec),_0x5567a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x332e01,'join',_0x3870ec);_0x5567a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3870ec),_0x5567a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a6b93,_0x78e498,_0x79968b)=>{const _0x1823d1=_0x4a6b93['map'](_0x2a07f4=>_0x2a07f4['getContainedElement']())['filter'](_0x3375e5=>_0x3375e5),_0x187e5e=new Map(_0x1823d1['map'](_0x3f61e3=>[_0x3f61e3,null]));if(_0x1919c9){for(const {element:_0x46cfc5,attributes:_0x47d669}of _0x1919c9['cells'])_0x47d669&&_0x187e5e['set'](_0x46cfc5,_0x47d669);}else{if(_0x79968b&&_0x79968b['markerAttributes'])for(const [_0x4461c1,_0x1d4695]of Object['entries'](_0x79968b['markerAttributes'])){const _0x2651db=_0x180a97['model']['markers']['get'](_0x4461c1),_0x2a1594=_0x2651db?_0x2651db['getRange']()['getContainedElement']():null;_0x2a1594&&_0x187e5e['set'](_0x2a1594,_0x1d4695);}}_0x180a97['model']['change'](_0x4fa2c6=>{for(const [_0x40e9f2,_0x7550c1]of _0x187e5e)_0x4fa2c6['setAttributes']({...xe,..._0x7550c1},_0x40e9f2);});});const _0x145c7f=(_0x216dba,_0x5e7392)=>{_0x5567a9['_suggestionFactory']['registerCustomCallback'](_0x216dba,'tablePaste',_0x5e7392,(_0x42169e,_0x45fab7,_0x283ded)=>{_0x180a97['model']['change'](_0x3a809f=>{const _0x5c283f=[];for(const _0x5530c2 of _0x42169e){const _0xf58a0b=_0x5530c2['start']['nodeAfter'];_0xf58a0b['is']('element','tableCellSuggestion')&&_0x5c283f['push'](_0xf58a0b);}_0x5567a9['_suggestionFactory']['getSuggestionCallback'](_0x216dba,null,_0x5e7392)(_0x42169e,_0x45fab7,_0x283ded);for(const _0xed31b5 of _0x5c283f)'$graveyard'!=_0xed31b5['root']['rootName']&&_0x3a809f['unwrap'](_0xed31b5);});});};_0x145c7f('insertion','accept'),_0x145c7f('insertion','discard'),_0x145c7f('deletion','accept'),_0x145c7f('deletion','discard'),_0x5567a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x253648=>{const _0x151a0c=_0x253648['map'](_0x525141=>_0x525141['getContainedElement']()),_0x59f422=_0x151a0c[0x0]['findAncestor']('table'),{minRow:_0x29b81b,maxRow:_0x1be567}=_0x4f33ed['_getCoordsForCells'](_0x151a0c);_0x1b8c5d['removeRows'](_0x59f422,{'at':_0x29b81b,'rows':_0x1be567-_0x29b81b+0x1});}),_0x5567a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x56c160=>{const _0x58677d=_0x56c160['map'](_0x37916f=>_0x37916f['getContainedElement']()),_0x2738c6=_0x58677d[0x0]['findAncestor']('table'),{minColumn:_0x286063,maxColumn:_0x4e32b9}=_0x4f33ed['_getCoordsForCells'](_0x58677d);_0x1b8c5d['removeColumns'](_0x2738c6,{'at':_0x286063,'columns':_0x4e32b9-_0x286063+0x1});});const _0x4908d6=(_0x497e63,_0x5abaca)=>{if(!_0x5abaca['subType']||!_0x5abaca['subType']['startsWith']('tablePaste'))return;const _0x3f329c=_0x5abaca['attributes']['tablePasteChainId'],_0x595917=_0x5567a9['getSuggestions']()['filter'](_0x28d3ad=>_0x28d3ad['isInContent']&&_0x28d3ad['attributes']&&_0x28d3ad['attributes']['tablePasteChainId']==_0x3f329c);_0x595917['length']&&_0x5abaca['getAllAdjacentSuggestions']()['length']!=_0x595917['length']&&_0x595917['reduce']((_0x4cc6c0,_0x26d115)=>(_0x4cc6c0['next']=_0x26d115,_0x26d115['previous']=_0x4cc6c0,_0x26d115));};function _0x2f2633(_0x34fa54,_0x2a9169=!0x0){const {id:_0x159e8d,authorId:_0x1e7ee9}=_0x5567a9['_splitMarkerName'](_0x34fa54['markerName']),_0x125bb5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2f87fc=_0x5567a9['activeMarkers']['includes'](_0x34fa54['markerName']);return _0x2f87fc&&_0x125bb5['push']('ck-suggestion-marker--active'),{'classes':_0x125bb5,'attributes':{'data-suggestion':_0x159e8d,'data-author-id':_0x1e7ee9},'priority':_0x2f87fc&&_0x2a9169?0xbc2:0xbb8};}_0x5567a9['on']('suggestionLoaded',_0x4908d6,{'priority':'high'}),_0x5567a9['on']('suggestionUnloaded',_0x4908d6,{'priority':'high'}),_0x180a97['model']['document']['registerPostFixer'](()=>{let _0x28985f=!0x1;const _0x77da91=Array['from'](_0x180a97['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c2e33,data:_0x40a9f6}of _0x77da91){const {group:_0x1143f6,type:_0x1621da,id:_0x14dd5c}=_0x5567a9['_splitMarkerName'](_0x5c2e33);if('suggestion'!=_0x1143f6||'deletion'!=_0x1621da||_0x40a9f6['oldRange'])continue;if(!_0x5567a9['hasSuggestion'](_0x14dd5c))continue;const _0x3d674a=_0x5567a9['getSuggestion'](_0x14dd5c)['getRanges'](),_0x39650e=_0x180a97['plugins']['get']('Users')['me'];for(const _0x57632c of _0x5567a9['getSuggestions']()){if(!_0x57632c['isInContent']||_0x57632c['author']!=_0x39650e)continue;if('formatBlock'!=_0x57632c['type']||'tablePasteCell'!=_0x57632c['subType'])continue;if(_0x57632c['getRanges']()['every'](_0x37ba7d=>_0x3d674a['some'](_0xdf3ced=>_0xdf3ced['containsRange'](_0x37ba7d,!0x0)))){for(const _0x2e32c5 of _0x57632c['getAllAdjacentSuggestions']())_0x2e32c5['isInContent']&&(_0x2e32c5['discard'](),_0x28985f=!0x0);}}}return _0x28985f;}),_0x180a97['model']['document']['registerPostFixer'](_0x3dcbc2=>{const _0x2ca164=_0x180a97['commands']['get']('redo');if(!_0x2ca164||!_0x2ca164['_createdBatches']['has'](_0x3dcbc2['batch']))return!0x1;let _0x20419a=!0x1;const _0xf14df7=_0x180a97['plugins']['get']('Users')['me'],_0x4a8fc9=_0x180a97['model']['document']['differ']['getChanges'](),_0x20e63d=Array['from'](_0x180a97['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x17e203,data:_0xa69c8b})=>{const {group:_0x9146a0,subType:_0x5f14cb,authorId:_0xd2e3dd}=_0x5567a9['_splitMarkerName'](_0x17e203);return'suggestion'==_0x9146a0&&'tablePaste'==_0x5f14cb&&_0xd2e3dd==_0xf14df7['id']&&!_0xa69c8b['oldRange'];});for(const _0x9932e9 of _0x4a8fc9){if('insert'!=_0x9932e9['type']||'tableCellSuggestion'!=_0x9932e9['name']||0x1!=_0x9932e9['length'])continue;const _0x7a3a49=_0x3dcbc2['createRange'](_0x9932e9['position'],_0x9932e9['position']['getShiftedBy'](0x1));if(!_0x20e63d['find'](({data:_0x21f870})=>_0x21f870['newRange']['isEqual'](_0x7a3a49))){for(const {name:_0x38f45a,data:_0x32edc9}of _0x20e63d)if(_0x7a3a49['containsRange'](_0x32edc9['newRange'])){_0x3dcbc2['updateMarker'](_0x38f45a,{'range':_0x7a3a49}),_0x20419a=!0x0;break;}}}return _0x20419a;}),_0x180a97['model']['document']['registerPostFixer'](_0x5008fe=>{let _0x277491=!0x1;const _0x2511c8=_0x180a97['plugins']['get']('Users')['me'],_0x5aaf8c=_0x5567a9['getSuggestions']()['filter'](_0x4c492a=>_0x4c492a['isInContent']&&_0x4c492a['author']==_0x2511c8),_0x3d29ce=new Set(),_0x2c6e9e=new Set();for(const _0x3d93e1 of _0x5aaf8c)if('tablePaste'==_0x3d93e1['subType'])for(const _0xa547f5 of _0x3d93e1['getMarkers']()){const _0x30278a=_0xa547f5['getRange']()['getContainedElement']();if(_0x30278a){if(_0x30278a['is']('element','tableCellSuggestion')&&Oe(_0x30278a)){_0x3d93e1['removeMarker'](_0xa547f5['name']),_0x3d29ce['add'](_0x30278a),_0x277491=!0x0;const _0x542149=_0x30278a['nextSibling'],_0x1b3c43=_0x30278a['previousSibling'],_0x528477=_0x542149&&_0x542149['is']('element','tableCellSuggestion'),_0x8fc6eb=_0x1b3c43&&_0x1b3c43['is']('element','tableCellSuggestion');_0x528477&&!_0x3d29ce['has'](_0x542149)&&_0x2c6e9e['add'](_0x542149),_0x8fc6eb&&!_0x3d29ce['has'](_0x1b3c43)&&_0x2c6e9e['add'](_0x1b3c43);}else _0x30278a['is']('element','paragraph')&&_0x30278a['isEmpty']&&(_0x3d93e1['removeMarker'](_0xa547f5['name']),_0x277491=!0x0);}}else{if('tablePasteCell'==_0x3d93e1['subType']){if(!_0x3d93e1['attributes']||!_0x3d93e1['attributes']['tablePasteChainId'])continue;const _0x219fa2=_0x3d93e1['attributes']['markerAttributes'];if(_0x219fa2&&Object['keys'](_0x219fa2)['length'])continue;const _0x1e9df0=_0x3d93e1['attributes']['tablePasteChainId'];let _0x4a4dfc=!0x0,_0x300500=!0x0;for(const _0x4fd4bb of _0x5aaf8c)if(_0x4fd4bb['subType']&&_0x4fd4bb['subType']['startsWith']('tablePaste')){if(!_0x4fd4bb['attributes']['tablePasteChainId']){_0x300500=!0x1;break;}if(_0x4fd4bb['id']!=_0x3d93e1['id']&&_0x4fd4bb['attributes']['tablePasteChainId']==_0x1e9df0){_0x4a4dfc=!0x1;break;}}_0x300500&&_0x4a4dfc&&(_0x3d93e1['removeMarkers'](),_0x277491=!0x0);}}for(const _0xa6f865 of _0x3d29ce)_0x5008fe['remove'](_0xa6f865);for(const _0x55d634 of _0x2c6e9e)_0x5008fe['unwrap'](_0x55d634);return _0x277491;}),_0x180a97['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5392d2=>_0x2f2633(_0x5392d2),'converterPriority':'high'}),_0x180a97['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x272562,_0x4d2029)=>_0x4d2029['options']['showSuggestionHighlights']?_0x2f2633(_0x272562,!0x1):null,'converterPriority':'high'});const _0x2475ac=_0x180a97['editing']['view'];this['listenTo'](_0x2475ac['document'],'clipboardOutput',(_0x21d811,_0x18dda7)=>{const _0x22587c=[];for(const _0x3ea580 of _0x2475ac['createRangeIn'](_0x18dda7['content'])['getItems']())_0x3ea580['is']('element','suggestion-td')&&_0x22587c['push'](_0x3ea580);_0x2475ac['change'](_0x2a024c=>{for(const _0x1ee1f6 of _0x22587c)_0x2a024c['move'](_0x2a024c['createRangeIn'](_0x1ee1f6),_0x2a024c['createPositionBefore'](_0x1ee1f6)),_0x2a024c['remove'](_0x1ee1f6);});});}}function Oe(_0x3856e2){if(_0x3856e2['isEmpty'])return!0x0;const _0x1dc1b3=_0x3856e2['getChild'](0x0);return _0x1dc1b3['is']('element','paragraph')&&_0x1dc1b3['isEmpty'];}function Ue(_0x448015,_0x340a2d={},_0x4738c4){for(const {isAnchor:_0x2da13b,cellHeight:_0x2bb44a,cellWidth:_0x4a67d3}of _0x4738c4['createTableWalker'](_0x448015,{'includeAllSlots':!0x0,..._0x340a2d}))if(!_0x2da13b||0x1!=_0x2bb44a||0x1!=_0x4a67d3)return!0x1;return!0x0;}class Dt extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x28b502=this['editor']['plugins']['get']('TrackChangesEditing');_0x28b502['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x28b502['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x28b502['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b502['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x28b502['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x28b502['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1f6f07,_0x459d91){const _0x5ed719=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cddcc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x39dad8=_0x459d91['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x12d3f4=_0x1cddcc['getColumnGroupElement'](_0x39dad8);let _0x38623e=_0x12d3f4?_0x1cddcc['getTableColumnsWidths'](_0x12d3f4):null,_0x14c4b3=_0x39dad8['getAttribute']('tableWidth')||null;const _0x4ac70c=_0x459d91['tableWidth']||_0x14c4b3,_0x442fce=_0x459d91['columnWidths']||_0x38623e,_0x150371=this['editor']['plugins']['get']('Users')['me'];for(const _0x465159 of _0x5ed719['getSuggestions']()){const _0x293914=_0x465159['getContainedElement']();if('resizeTable'===_0x465159['subType']&&_0x293914===_0x39dad8){_0x465159['author']!==_0x150371&&_0x465159['discard']();const _0x458c72=_0x465159['data']['commandParams'];_0x14c4b3=_0x458c72[0x0]['tableWidth'],_0x38623e=_0x458c72[0x0]['columnWidths'];break;}}_0x1f6f07({'table':_0x39dad8,'tableWidth':_0x4ac70c,'columnWidths':_0x442fce}),_0x5ed719['markBlockFormat'](_0x39dad8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x14c4b3,'columnWidths':_0x38623e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x51f4d2){if('formatBlock'!=_0x51f4d2['type']&&'formatInline'!=_0x51f4d2['type'])return;const {data:_0x45b84f}=_0x51f4d2;if(_0x45b84f&&'resizeTable'===_0x45b84f['formatGroupId']){const _0x52d653='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x52d653)};}}}class $t extends _0xc3381c{['afterInit'](){const _0x504391=this['editor'];_0x504391['plugins']['has']('Template')&&_0x504391['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xc3381c{['afterInit'](){const _0x12ac99=this['editor'];if(!_0x12ac99['commands']['get']('insertTableOfContents'))return;_0x12ac99['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1bb578=_0x12ac99['plugins']['get']('TrackChangesEditing'),_0x5ae154=_0x12ac99['locale'];_0x1bb578['descriptionFactory']['registerElementLabel']('tableOfContents',_0x98dc41=>o(_0x5ae154,'ELEMENT_TABLE_OF_CONTENTS',_0x98dc41));}}class Bt extends _0xc3381c{['afterInit'](){const _0x5c40f5=this['editor'];if(!_0x5c40f5['plugins']['has']('Title'))return;const _0x46d505=_0x5c40f5['plugins']['get']('TrackChangesEditing');_0x46d505['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5c40f5['locale'],'ELEMENT_TITLE')),_0x5c40f5['model']['document']['registerPostFixer'](_0x4b12aa=>{let _0x22d7a3=!0x1;const _0x331d1e=Array['from'](_0x5c40f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x148135,data:_0x8b1d6b}of _0x331d1e){const {group:_0x273365}=_0x46d505['_splitMarkerName'](_0x148135);if('suggestion'!==_0x273365||!_0x8b1d6b['newRange'])continue;const _0x26d400=_0x8b1d6b['newRange'],_0x1db10d=_0x26d400['end']['nodeBefore'];if(!_0x1db10d||!_0x1db10d['is']('element','title-content'))continue;if(!_0x26d400['start']['isTouching'](_0x26d400['end']))continue;const _0x4c7144=_0x5c40f5['model']['schema']['getNearestSelectionRange'](_0x26d400['end'],'forward');if(_0x4c7144&&_0x4c7144['isCollapsed']){const _0xae8150=_0x4b12aa['createRange'](_0x26d400['start'],_0x4c7144['start']);_0xae8150['isEqual'](_0x26d400)||(_0x4b12aa['updateMarker'](_0x148135,{'range':_0xae8150}),_0x22d7a3=!0x0);}_0x22d7a3||(_0x4b12aa['removeMarker'](_0x148135),_0x22d7a3=!0x0);}return _0x22d7a3;});}}class Tt extends _0xc3381c{['afterInit'](){const _0x533f34=this['editor'],_0x2b321c=_0x533f34['plugins']['get']('TrackChangesEditing');_0x533f34['plugins']['has']('Uploadcare')&&(_0x2b321c['enableCommand']('uploadcare'),_0x533f34['plugins']['has']('UploadcareImageEdit')&&(_0x2b321c['enableCommand']('uploadcareImageEdit'),_0x2b321c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2b321c['registerBlockAttribute']('uploadcareImageId'),_0x2b321c['descriptionFactory']['registerDescriptionCallback'](_0x53ad46=>{if('attribute'!=_0x53ad46['type'])return;const {data:_0x51a1f2}=_0x53ad46;return _0x51a1f2&&'uploadcareImageId'==_0x51a1f2['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xc3381c{['afterInit'](){const _0x119291=this['editor'],_0x405f4b=_0x119291['plugins']['get']('TrackChangesEditing');_0x119291['plugins']['has']('UndoEditing')&&(_0x405f4b['enableCommand']('undo'),_0x405f4b['enableCommand']('redo'));}}class Ot extends _0xc3381c{static get['requires'](){return[At];}['afterInit'](){const _0x2a86f5=this['editor'];if(!_0x2a86f5['plugins']['has']('TableCaptionEditing'))return;_0x2a86f5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xc3381c{['tableProperties'];['tableCellProperties'];constructor(_0x209d0a){super(_0x209d0a),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 _0x362f03=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x59bf46 of this['tableProperties'])_0x362f03['enableCommand'](_0x59bf46,(_0x3c683d,_0x5dadfa)=>{const _0x552116=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x59bf46,[_0x552116],this['tableProperties'],'tableProperties',_0x3c683d,_0x5dadfa);});_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x362f03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4f0485,_0x48fe4a)=>this['handleDiscardAction'](this['tableProperties'],_0x4f0485,_0x48fe4a)),_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xeabaac of this['tableCellProperties'])_0x362f03['enableCommand'](_0xeabaac,(_0x47b1ba,_0xaf36b2)=>{const _0xa7f353=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xeabaac,_0xa7f353,this['tableCellProperties'],'tableCellProperties',_0x47b1ba,_0xaf36b2);});_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x362f03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x291aa3,_0x2c6858)=>this['handleDiscardAction'](this['tableCellProperties'],_0x291aa3,_0x2c6858)),_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x362f03['descriptionFactory']['registerDescriptionCallback'](_0x16b7bd=>this['handleSuggestionDescription'](_0x16b7bd)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2ba333,_0x76c57d,_0x294b46,_0x1f74ae,_0x49dbbc,_0x1d8d96){const _0x1fd802=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1d8d96['batch'],()=>{for(const _0x4fa8a3 of _0x76c57d){if(this['_getSuggestion'](_0x4fa8a3,_0x1f74ae))_0x49dbbc(_0x1d8d96);else{const _0xa5851a={};for(const _0x1c5c25 of _0x294b46){const _0x592793=_0x4fa8a3['getAttribute'](_0x1c5c25);void 0x0!==_0x592793&&(_0xa5851a[_0x1c5c25]=_0x592793);}_0x49dbbc(_0x1d8d96),_0x1fd802['markBlockFormat'](_0x4fa8a3,{'commandParams':[_0xa5851a]},[],_0x1f74ae);}}});}['handleDiscardAction'](_0x2eeb60,_0x4c561f,_0x533ef4){const _0x45bcbd=_0x4c561f[0x0]['start']['nodeAfter'],_0x11ada3=_0x533ef4['commandParams'][0x0];this['editor']['model']['change'](_0x4d6723=>{for(const _0x317a85 of _0x2eeb60)void 0x0!==_0x11ada3[_0x317a85]?_0x4d6723['setAttribute'](_0x317a85,_0x11ada3[_0x317a85],_0x45bcbd):_0x4d6723['removeAttribute'](_0x317a85,_0x45bcbd);});}['handleSuggestionDescription'](_0x34b076){if(_0x34b076['data'])switch(_0x34b076['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'](_0x4c5378,_0x49f4f4){const _0xde9085=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x380d65 of _0xde9085['getSuggestions']({'skipNotAttached':!0x0})){const _0x3f3101=_0x380d65['getContainedElement']();if(_0x380d65['subType']===_0x49f4f4&&_0x3f3101===_0x4c5378)return _0x380d65;}return null;}['_registerTablePropertiesAttributes'](){const _0x2deb21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x381424=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1eb2e5 of _0x381424){const _0x3a48b8=_0x1eb2e5['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2deb21['registerBlockAttribute'](_0x1eb2e5),_0x2deb21['descriptionFactory']['registerAttributeLabel'](_0x1eb2e5,o(this['editor']['locale'],'FORMAT_'+_0x3a48b8));}}}class Rt extends _0xc3381c{['afterInit'](){const _0x2bb2fe=this['editor'];if(!_0x2bb2fe['plugins']['has']('LineHeight'))return;const _0xa2f7cf=_0x2bb2fe['plugins']['get']('TrackChangesEditing'),_0x3b6e27=_0x2bb2fe['locale'];_0xa2f7cf['enableDefaultAttributesIntegration']('lineHeight'),_0xa2f7cf['registerBlockAttribute']('lineHeight'),_0xa2f7cf['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3b6e27,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xc3381c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x187485,_0x43929c,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x517e72){super(_0x517e72),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5b59f4,_0x5305e2,_0x281cd4,_0x3995e9)=>{this['_model']['change'](()=>{for(const _0x212000 of[..._0x3995e9,..._0x281cd4])this['_model']['markers']['has'](_0x212000)&&_0x517e72['editing']['reconvertMarker'](_0x212000);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x517e72['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(),_0x517e72['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x517e72['config']['get']('trackChanges.trackFormatChanges'),_0x517e72['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x517e72['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x517e72,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x64ba5b=this['editor'],_0x402acc=(_0x41d55e,_0xb54ea6)=>{if('attribute'!=_0x41d55e)return'ck-suggestion-marker-'+_0x41d55e;const _0x43e6c5=_0xb54ea6['split']('|')[0x0];return this['_isBlockAttribute'](_0x43e6c5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x64ba5b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x50b6b6=>{const {id:_0x5a4077,authorId:_0x57b347,type:_0x113d17,subType:_0x482a7d}=this['_splitMarkerName'](_0x50b6b6['markerName']),_0x25adce=['ck-suggestion-marker',_0x402acc(_0x113d17,_0x482a7d)];let _0x3d9fdf=0xbb8;return this['activeMarkers']['includes'](_0x50b6b6['markerName'])&&(_0x25adce['push']('ck-suggestion-marker--active'),_0x3d9fdf=0xbc2),'deletion'==_0x113d17&&(_0x3d9fdf+=0x5),{'classes':_0x25adce,'attributes':{'data-suggestion':_0x5a4077,'data-author-id':_0x57b347},'priority':_0x3d9fdf};}}),_0x64ba5b['conversion']['for']('dataDowncast')['add'](_0x49e774=>{_0x49e774['on']('addMarker:suggestion',(_0x2be14a,_0x5da85c,_0x441e91)=>{if(!_0x441e91['options']['showSuggestionHighlights'])return;const _0xd1e29a=_0x5da85c['item'];if(!_0xd1e29a)return;const _0x1f101c=_0x441e91['mapper']['toViewElement'](_0xd1e29a);_0x64ba5b['model']['schema']['isObject'](_0xd1e29a)&&_0x1f101c&&!_0x1f101c['getCustomProperty']('widget')&&_0x1f101c['is']('containerElement')&&_0x52436a(_0x1f101c,_0x441e91['writer']);},{'priority':'high'});}),_0x64ba5b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3d91bf,_0x3c98a7)=>{if(!_0x3c98a7['options']['showSuggestionHighlights'])return null;const {id:_0x22cad9,authorId:_0x2d00ff,type:_0x5b5dfe,subType:_0x36e40c}=this['_splitMarkerName'](_0x3d91bf['markerName']);return{'classes':['ck-suggestion-marker',_0x402acc(_0x5b5dfe,_0x36e40c)],'priority':0xbb8,'attributes':{'data-suggestion':_0x22cad9,'data-author-id':_0x2d00ff}};}});const _0x433bbe=({showActiveMarkers:_0x4e96f2=!0x0,isAttributeSuggestion:_0x919a9a=!0x1}={})=>(_0x2b4057,_0x554a09,_0x19ba6b)=>{if(!_0x554a09['item'])return;const {id:_0x5995c2,authorId:_0x3e6f55}=this['_splitMarkerName'](_0x554a09['markerName']);if(_0x919a9a){const _0xf9a947=this['_suggestions']['get'](_0x5995c2),_0x36a1e3=this['_getAttributeKey'](_0xf9a947);if(!this['_isBlockAttribute'](_0x36a1e3))return;}if(_0x554a09['item']['is']('selection'))return void _0x19ba6b['consumable']['consume'](_0x554a09['item'],_0x2b4057['name']);const _0x2ad2aa=_0x19ba6b['mapper']['toViewElement'](_0x554a09['item']);if(_0x554a09['item']['is']('element')&&_0x64ba5b['model']['schema']['isBlock'](_0x554a09['item'])&&!_0x2ad2aa['getCustomProperty']('addHighlight')){_0x19ba6b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2ad2aa),_0x19ba6b['writer']['setAttribute']('data-suggestion',_0x5995c2,_0x2ad2aa),_0x19ba6b['writer']['setAttribute']('data-author-id',_0x3e6f55,_0x2ad2aa),_0x19ba6b['mapper']['bindElementToMarker'](_0x2ad2aa,_0x554a09['markerName']),_0x4e96f2&&(this['activeMarkers']['includes'](_0x554a09['markerName'])?_0x19ba6b['writer']['addClass']('ck-suggestion-marker--active',_0x2ad2aa):_0x19ba6b['writer']['removeClass']('ck-suggestion-marker--active',_0x2ad2aa));for(const _0x244d0f of _0x64ba5b['model']['createRangeIn'](_0x554a09['item'])['getItems']())_0x19ba6b['consumable']['consume'](_0x244d0f,_0x2b4057['name']);_0x19ba6b['consumable']['consume'](_0x554a09['item'],_0x2b4057['name']);}};_0x64ba5b['conversion']['for']('dataDowncast')['add'](_0x17ee7d=>{_0x17ee7d['on']('addMarker:suggestion:formatBlock',(_0x144af8,_0x167e47,_0x239d71)=>{_0x239d71['options']['showSuggestionHighlights']&&_0x433bbe({'showActiveMarkers':!0x1})(_0x144af8,_0x167e47,_0x239d71);},{'priority':'highest'});}),_0x64ba5b['conversion']['for']('dataDowncast')['add'](_0xce67e9=>{_0xce67e9['on']('addMarker:suggestion:attribute',(_0x26d6a0,_0x1d0e9c,_0x1931b0)=>{_0x1931b0['options']['showSuggestionHighlights']&&_0x433bbe({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x26d6a0,_0x1d0e9c,_0x1931b0);},{'priority':'highest'});}),_0x64ba5b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x316b57,_0x286a87)=>{if(_0x286a87['options']['showSuggestionHighlights']){const {id:_0x103f17,authorId:_0x29114b}=this['_splitMarkerName'](_0x316b57);return _0x316b57['includes'](':split')||_0x316b57['includes'](':merge')?{'group':'suggestion','name':_0x316b57['substr'](0xb),'attributes':{'data-suggestion':_0x103f17,'data-author-id':_0x29114b}}:null;}return{'group':'suggestion','name':_0x316b57['substr'](0xb)};}}),_0x64ba5b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x175627,{writer:_0xd6323d})=>{let _0x4b517d='suggestion:'+_0x175627['getAttribute']('suggestion-type')+':'+_0x175627['getAttribute']('id');return _0x175627['getAttribute']('marker-count')&&(_0x4b517d+=':'+_0x175627['getAttribute']('marker-count')),_0xd6323d['createElement']('$marker',{'data-name':_0x4b517d});}}),_0x64ba5b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x64ba5b['conversion']['for']('editingDowncast')['add'](_0x5e075b=>{_0x5e075b['on']('addMarker:suggestion:formatBlock',_0x433bbe(),{'priority':'high'});}),_0x64ba5b['conversion']['for']('editingDowncast')['add'](_0xd0d1ee=>{_0xd0d1ee['on']('addMarker:suggestion:attribute',_0x433bbe({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x64ba5b['conversion']['for']('editingDowncast')['add'](_0x202380=>{_0x202380['on']('removeMarker:suggestion:formatBlock',(_0x28148e,_0x242113,_0x2f9249)=>{const _0x5672a5=_0x2f9249['mapper']['markerNameToElements'](_0x242113['markerName']);if(_0x5672a5){for(const _0x3bb406 of _0x5672a5)_0x3bb406['getCustomProperty']('addHighlight')||(_0x2f9249['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3bb406),_0x2f9249['writer']['removeAttribute']('data-suggestion',_0x3bb406),_0x2f9249['writer']['removeAttribute']('data-author-id',_0x3bb406),_0x2f9249['mapper']['unbindElementFromMarkerName'](_0x3bb406,_0x242113['markerName']));}},{'priority':'high'});}),_0x64ba5b['conversion']['for']('editingDowncast')['add'](_0x14e32e=>{_0x14e32e['on']('removeMarker:suggestion:attribute',(_0x3e7123,_0x59ee09,_0xe174d5)=>{const _0xbe4ad4=_0xe174d5['mapper']['markerNameToElements'](_0x59ee09['markerName']);if(!_0xbe4ad4)return;const {id:_0x4c30be}=this['_splitMarkerName'](_0x59ee09['markerName']),_0x35db75=this['_suggestions']['get'](_0x4c30be),_0x21e915=this['_getAttributeKey'](_0x35db75);if(this['_isBlockAttribute'](_0x21e915)){for(const _0x1c4c3c of _0xbe4ad4)_0x1c4c3c['getCustomProperty']('addHighlight')||(_0xe174d5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c4c3c),_0xe174d5['writer']['removeAttribute']('data-suggestion',_0x1c4c3c),_0xe174d5['writer']['removeAttribute']('data-author-id',_0x1c4c3c),_0xe174d5['mapper']['unbindElementFromMarkerName'](_0x1c4c3c,_0x59ee09['markerName']));}},{'priority':'high'});}),_0x64ba5b['model']['document']['registerPostFixer'](_0x433ee7=>{let _0x19d91c=!0x1;const _0x332827=Array['from'](_0x64ba5b['model']['document']['differ']['getChangedMarkers']()),_0x5d0747=new Set();for(const {name:_0xac57cd,data:_0x26c12d}of _0x332827){const {group:_0x8883c7,type:_0x378dd3,subType:_0x53a8fa,id:_0xbb9ba}=this['_splitMarkerName'](_0xac57cd);if('suggestion'!==_0x8883c7)continue;const _0x4e837c=_0x53a8fa?'suggestion:'+_0x378dd3+':'+_0x53a8fa+':'+_0xbb9ba:'suggestion:'+_0x378dd3+':'+_0xbb9ba,_0x4ac36b=_0x64ba5b['model']['markers']['getMarkersGroup'](_0x4e837c),_0x3abfc4=_0x64ba5b['model']['markers']['get'](_0xac57cd),_0x57fc82=this['_suggestions']['get'](_0xbb9ba);if(null!=_0x26c12d['newRange']){'formatInline'==_0x378dd3&&(_0x19d91c=_0x19d91c||Gt(_0x26c12d['newRange'],_0xac57cd,_0x433ee7,_0x64ba5b['model']['schema']));const _0x15c9ad='attribute'==_0x378dd3&&this['_isBlockAttribute'](_0x53a8fa['split']('|')[0x0]),_0xad96ff='attribute'==_0x378dd3&&this['_isInlineAttribute'](_0x53a8fa['split']('|')[0x0]);if(_0x26c12d['newRange']['isCollapsed']||'$graveyard'==_0x26c12d['newRange']['root']['rootName']||'formatBlock'==_0x378dd3&&!Jt(_0x26c12d['newRange'])||_0x15c9ad&&!Jt(_0x26c12d['newRange'])||_0xad96ff&&Kt(_0x26c12d['newRange'])||'deletion'==_0x378dd3&&Kt(_0x26c12d['newRange'])||_0x3abfc4&&Ht(_0x3abfc4,_0x4ac36b))_0x433ee7['removeMarker'](_0xac57cd),_0x19d91c=!0x0;else{if(!_0x57fc82||!_0x57fc82['isInContent'])continue;if(_0x26c12d['newRange']&&_0x26c12d['oldRange']&&_0x26c12d['newRange']['isEqual'](_0x26c12d['oldRange']))continue;_0x5d0747['add'](_0x57fc82);}}}return _0x5d0747['size']>0x0&&(_0x19d91c=!!this['_joinWithAdjacentSuggestions'](_0x5d0747)||_0x19d91c),_0x19d91c;}),_0x64ba5b['model']['document']['registerPostFixer'](_0x5f73f3=>{let _0x1fc265=!0x1;for(const _0x398b45 of _0x64ba5b['model']['document']['differ']['getChanges']())if('insert'==_0x398b45['type'])for(const _0x460bd8 of this['_suggestions']['values']()){if(_0x460bd8['isMultiRange']||!_0x460bd8['isInContent'])continue;const _0xcd83a7='formatBlock'==_0x460bd8['type'],_0xb6bcd3=this['_getAttributeKey'](_0x460bd8),_0x51197e=_0xb6bcd3&&this['_isBlockAttribute'](_0xb6bcd3);if(!_0xcd83a7&&!_0x51197e)continue;const _0x10163d=_0x460bd8['getFirstRange']();if(_0x10163d['start']['parent']!=_0x10163d['end']['parent']&&!_0x10163d['end']['isAtEnd']){const _0x241eda=_0x64ba5b['model']['createPositionAt'](_0x10163d['start']['nodeAfter'],'end'),_0x6755e5=_0x64ba5b['model']['createRange'](_0x10163d['start'],_0x241eda);_0x5f73f3['updateMarker'](_0x460bd8['getFirstMarker'](),{'range':_0x6755e5}),_0x1fc265=!0x0;}}return _0x1fc265;}),_0x64ba5b['model']['document']['registerPostFixer'](_0x5b0035=>this['_processAttributeChanges'](_0x5b0035)),_0x64ba5b['model']['document']['registerPostFixer'](_0xe73697=>!_0xe73697['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xe73697)),_0x64ba5b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x64ba5b['model']['document']['on']('change:data',(_0x4f3ebe,_0xe5b6fe)=>{if(!_0xe5b6fe['isLocal']||_0xe5b6fe['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1ce6ee=_0x64ba5b['model']['document']['differ']['getChanges']();if(0x0==_0x1ce6ee['length'])return;const _0x43cee3=[],_0x47e030=_0x1ce6ee['filter'](_0x13bd50=>'attribute'==_0x13bd50['type']),_0x461692=_0x1ce6ee['filter'](_0x152b65=>'insert'==_0x152b65['type']&&'$text'!=_0x152b65['name']);for(const _0x2a6879 of _0x47e030)this['_isRegisteredAttribute'](_0x2a6879['attributeKey'])&&_0x43cee3['push']({'key':_0x2a6879['attributeKey'],'newValue':_0x2a6879['attributeNewValue'],'oldValue':_0x2a6879['attributeOldValue'],'range':qt(_0x2a6879['range'],_0x64ba5b['model'])});for(const _0x5ab417 of _0x461692){if('rename'!=_0x5ab417['action']&&'refresh'!=_0x5ab417['action'])continue;const _0x1aa862=zt(_0x5ab417['position']['nodeAfter'],_0x64ba5b['model']),_0x65bde3=_0x5ab417['before'];'rename'==_0x5ab417['action']&&_0x43cee3['push']({'key':m,'newValue':_0x5ab417['name'],'oldValue':_0x65bde3['name'],'range':_0x1aa862});for(const [_0x11898e,_0xbe36b5]of _0x65bde3['attributes']){if(!this['_isRegisteredAttribute'](_0x11898e))continue;const _0x3c3bb4=_0x5ab417['attributes']['get'](_0x11898e);_0xbe36b5!==_0x3c3bb4&&_0x43cee3['push']({'key':_0x11898e,'newValue':_0x3c3bb4,'oldValue':_0xbe36b5,'range':_0x1aa862});}for(const [_0x3964d0,_0x4f7c15]of _0x5ab417['attributes'])this['_isRegisteredAttribute'](_0x3964d0)&&(_0x65bde3['attributes']['has'](_0x3964d0)||_0x43cee3['push']({'key':_0x3964d0,'newValue':_0x4f7c15,'oldValue':null,'range':_0x1aa862}));}0x0!=_0x43cee3['length']&&_0x64ba5b['model']['enqueueChange'](_0xe5b6fe,_0x31b4d7=>{const _0x309ddf=_0x40bebf();for(const {range:_0x225551,key:_0x2f97aa,oldValue:_0x371aff,newValue:_0x11d73b}of _0x43cee3)this['markAttributeChange'](_0x225551,_0x2f97aa,_0x371aff,_0x11d73b,{'groupId':_0x309ddf});this['_reduceExistingSuggestions'](_0x31b4d7,_0x43cee3);});},{'priority':'lowest'}),_0x64ba5b['model']['markers']['on']('update:suggestion',(_0x3898dd,_0x1bdd97,_0x4e1590)=>{if(null==_0x4e1590){const {id:_0x388710}=this['_splitMarkerName'](_0x1bdd97['name']),_0x930aa=this['_suggestions']['get'](_0x388710);_0x930aa&&_0x930aa['addMarkerName'](_0x1bdd97['name']);}}),_0x64ba5b['model']['document']['on']('change:data',()=>{const _0x16dd83=Array['from'](_0x64ba5b['model']['document']['differ']['getChangedMarkers']())['filter'](_0xde5162=>'suggestion'===this['_splitMarkerName'](_0xde5162['name'])['group']);if(0x0===_0x16dd83['length'])return;_0x16dd83['sort']((_0x468a4c,_0x1673e7)=>{const _0x37b19d=_0x468a4c['data']['oldRange'],_0xd6450e=_0x1673e7['data']['oldRange'];return null===_0x37b19d&&null===_0xd6450e?0x0:null===_0x37b19d&&null!==_0xd6450e?-0x1:null!==_0x37b19d&&null===_0xd6450e?0x1:_0x37b19d['start']['isBefore'](_0xd6450e['start'])?-0x1:0x1;});const _0x3b3e91=new Set(),_0x2bd258=new Set();for(const {name:_0x7cf219,data:_0x12469e}of _0x16dd83){const {id:_0xf27e6c}=this['_splitMarkerName'](_0x7cf219);if(null===_0x12469e['oldRange']){const _0x2947fa=this['_handleNewSuggestionMarker'](_0x7cf219);_0x2bd258['add'](_0x2947fa);}else{const _0x5cc520=this['_suggestions']['get'](_0xf27e6c);null!==_0x12469e['newRange']||_0x5cc520['isInContent']?(_0x3b3e91['add'](_0x5cc520['head']),_0x2bd258['add'](_0x5cc520)):this['_removeSuggestion'](_0x5cc520);}}_0x2bd258['size']>0x0&&this['_refreshSuggestionsChain'](_0x2bd258);for(const _0x17615e of _0x3b3e91)this['fire']('suggestionChanged',_0x17615e);}),_0x64ba5b['model']['on']('applyOperation',(_0x7aa8d,_0x5423da)=>{const _0x135aaa=_0x5423da[0x0];if(!this['_suggestions']['size'])return;if(!_0x135aaa['isDocumentOperation'])return;if(_0x135aaa['batch']['isUndo']||!_0x135aaa['batch']['isLocal'])return;let _0x536272,_0x545add;switch(_0x135aaa['type']){case'insert':_0x536272=_0x64ba5b['model']['createPositionAt'](_0x135aaa['position']),_0x545add=_0x536272['getShiftedBy'](_0x135aaa['howMany']);break;case'split':_0x536272=_0x64ba5b['model']['createPositionAt'](_0x135aaa['splitPosition']),_0x545add=_0x64ba5b['model']['createPositionAt'](_0x135aaa['moveTargetPosition']);break;case'move':_0x536272=_0x64ba5b['model']['createPositionAt'](_0x135aaa['targetPosition']),_0x545add=_0x536272['getShiftedBy'](_0x135aaa['howMany']);break;default:return;}const _0x1b8af2=_0x64ba5b['model']['createRange'](_0x536272,_0x545add);_0x64ba5b['model']['change'](()=>{for(const {suggestion:_0xc978ac,meta:_0x4beecd}of this['_findSuggestions'](_0x1b8af2)){if(_0xc978ac['isMultiRange'])continue;if('formatInline'==_0xc978ac['type'])continue;const _0x3b524d=this['_getAttributeKey'](_0xc978ac);if(_0x3b524d&&this['_isBlockAttribute'](_0x3b524d)&&'split'!=_0x135aaa['type'])continue;const _0xaf2497=_0xc978ac['data']&&_0xc978ac['data']['multipleBlocks'];('formatBlock'!=_0xc978ac['type']||'split'==_0x135aaa['type']&&!_0xaf2497)&&(_0x4beecd['containsRangeInObject']||'insertion'==_0xc978ac['type']&&_0x4beecd['isOwn']||_0xc978ac['getFirstRange']()['containsRange'](_0x1b8af2)&&this['_breakSuggestionMarker'](_0xc978ac,_0x536272,_0x545add));}});},{'priority':'lowest'}),_0x64ba5b['model']['on']('deleteContent',(_0x56e6f0,_0x26b2ea)=>{const _0x3a6687=_0x26b2ea[0x0],_0x1b6471=_0x26b2ea[0x1];if(_0x1b6471&&_0x1b6471['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3a6687['isCollapsed'])return;const _0x52681d=_0x64ba5b['model']['schema'],{start:_0x31b309,end:_0x2d671e}=_0x3a6687['getFirstRange'](),_0x5b2d28=_0x31b309['nodeAfter']&&_0x52681d['isLimit'](_0x31b309['nodeAfter'])?null:_0x52681d['getNearestSelectionRange'](_0x31b309,'forward'),_0x5a9c9e=_0x2d671e['nodeBefore']&&_0x52681d['isLimit'](_0x2d671e['nodeBefore'])?null:_0x52681d['getNearestSelectionRange'](_0x2d671e,'backward'),_0x5a037a=_0x64ba5b['model']['createRange'](_0x5b2d28?_0x5b2d28['start']:_0x31b309,_0x5a9c9e?_0x5a9c9e['end']:_0x2d671e);_0x64ba5b['model']['change'](_0x4496d9=>{this['markDeletion'](_0x5a037a);const _0x41462d=_0x64ba5b['model']['schema']['getNearestSelectionRange'](_0x5a037a['start']);_0x3a6687['is']('documentSelection')?_0x4496d9['setSelection'](_0x41462d):_0x3a6687['setTo'](_0x41462d);}),_0x56e6f0['stop']();},{'priority':_0x140f0d['normal']+0xa}),_0x64ba5b['model']['on']('insertContent',(_0x58cf87,_0x310bc9)=>{const _0x560126=_0x310bc9[_0x310bc9['length']-0x1];_0x560126&&_0x560126['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x64ba5b['model']['change'](()=>{let _0x3ae238=_0x64ba5b['model']['insertContent'](_0x310bc9[0x0],_0x310bc9[0x1],_0x310bc9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3ae238)return;_0x58cf87['return']=_0x3ae238['clone']();const _0x36e432=_0x3ae238['end']['nodeBefore'],_0x40e615=_0x64ba5b['model']['schema'];_0x36e432&&_0x40e615['isBlock'](_0x36e432)&&!_0x40e615['isObject'](_0x36e432)&&(_0x3ae238=_0x64ba5b['model']['createRange'](_0x3ae238['start'],_0x64ba5b['model']['createPositionAt'](_0x36e432,'end'))),this['markInsertion'](_0x3ae238);}),_0x58cf87['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2b82f3=new D(_0x64ba5b,this['_suggestions']);_0x64ba5b['commands']['add']('acceptSuggestion',_0x2b82f3),this['enableCommand']('acceptSuggestion');const _0x1c9664=new $(_0x64ba5b,this['_suggestions']);_0x64ba5b['commands']['add']('discardSuggestion',_0x1c9664),this['enableCommand']('discardSuggestion'),_0x64ba5b['commands']['add']('acceptAllSuggestions',new M(_0x64ba5b,_0x2b82f3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x64ba5b['commands']['add']('discardAllSuggestions',new M(_0x64ba5b,_0x1c9664,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x64ba5b['commands']['add']('acceptSelectedSuggestions',new B(_0x64ba5b,_0x2b82f3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x64ba5b['commands']['add']('discardSelectedSuggestions',new B(_0x64ba5b,_0x1c9664,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4ebab4=_0x64ba5b['plugins']['get']('CommentsRepository');this['listenTo'](_0x4ebab4,'addComment',(_0x398bfc,{threadId:_0x522e6e})=>{const _0x3e187a=this['_suggestions']['get'](_0x522e6e);_0x3e187a&&_0x3e187a['commentThread']&&0x1===_0x3e187a['commentThread']['length']&&this['_updateSuggestionData'](_0x522e6e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4ebab4,'removeComment',(_0x2a8358,{threadId:_0xe7826c})=>{const _0x23fdbb=this['_suggestions']['get'](_0xe7826c);_0x23fdbb&&_0x23fdbb['commentThread']&&!_0x23fdbb['commentThread']['length']&&this['_updateSuggestionData'](_0xe7826c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2cee42){const _0x539e40=_0x9b1d3a([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x234934=0x6b0f5e6f,_0x36e757=0x6b082c97^_0x234934,_0x30cf94=window[_0x9b1d3a([0x44,0x61,0x74,0x65])][_0x9b1d3a([0x6e,0x6f,0x77])](),_0x41f13b=_0x2cee42[_0x9b1d3a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd62c1d=new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47667b=>{_0x41f13b[_0x9b1d3a([0x6f,0x6e,0x63,0x65])](_0x9b1d3a([0x72,0x65,0x61,0x64,0x79]),_0x47667b);}),_0x12f598={[_0x9b1d3a([0x6b,0x74,0x79])]:_0x9b1d3a([0x45,0x43]),[_0x9b1d3a([0x75,0x73,0x65])]:_0x9b1d3a([0x73,0x69,0x67]),[_0x9b1d3a([0x63,0x72,0x76])]:_0x9b1d3a([0x50,0x2d,0x32,0x35,0x36]),[_0x9b1d3a([0x78])]:_0x9b1d3a([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]),[_0x9b1d3a([0x79])]:_0x9b1d3a([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]),[_0x9b1d3a([0x61,0x6c,0x67])]:_0x9b1d3a([0x45,0x53,0x32,0x35,0x36])},_0x49c9a4=_0x41f13b[_0x9b1d3a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9b1d3a([0x67,0x65,0x74])](_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x571ba7(){let _0x14ac77,_0x50025e=null,_0x580bea=null;try{if(_0x49c9a4==_0x9b1d3a([0x47,0x50,0x4c]))return _0x9b1d3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14ac77=_0x22e181(),!_0x14ac77)return _0x9b1d3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14ac77[_0x9b1d3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x580bea=_0x5ac75d(_0x14ac77[_0x9b1d3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14ac77[_0x9b1d3a([0x6a,0x74,0x69])])),await _0x4effb2()?_0x881003()?_0x3773dc()?_0x9b1d3a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40e798()?(_0x14ac77[_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b1d3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50025e=_0x5324f0(_0x9b1d3a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14ac77[_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b1d3a([0x74,0x72,0x69,0x61,0x6c])&&(_0x50025e=_0x5324f0(_0x9b1d3a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e2f24()):_0x9b1d3a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9b1d3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9b1d3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9b1d3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3773dc(){const _0xf4cf14=[_0x9b1d3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9b1d3a([0x74,0x72,0x69,0x61,0x6c])][_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14ac77[_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30cf94/0x3e8:0xe10*_0x36e757;return _0x14ac77[_0x9b1d3a([0x65,0x78,0x70])]<_0xf4cf14;}function _0x881003(){const _0x1c11c7=_0x14ac77[_0x9b1d3a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1c11c7)return!0x1;if(_0x1c11c7[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b1d3a([0x2a])))return!0x0;if(_0x1c11c7[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b1d3a([0x54,0x43])))return!0x0;if(_0x1c11c7[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b1d3a([0x52,0x54,0x43]))){if(_0x3bc677())return!0x0;if(_0x47f511()||_0x29addd())return!0x0;}return!0x1;}function _0x40e798(){const _0xf666a0=_0x14ac77[_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf666a0||0x0==_0xf666a0[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b1e48}=new URL(window[_0x9b1d3a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf666a0[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b1e48))return!0x0;const _0x288b33=_0x4b1e48[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])](_0x9b1d3a([0x2e]));return _0xf666a0[_0x9b1d3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x431d65=>_0x431d65[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b1d3a([0x2a])))[_0x9b1d3a([0x6d,0x61,0x70])](_0x10a1a6=>_0x10a1a6[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])](_0x9b1d3a([0x2e])))[_0x9b1d3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b4ddf=>_0x2b4ddf[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x288b33[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b1d3a([0x6d,0x61,0x70])](_0x17be55=>Array(_0x288b33[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17be55[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b1d3a([0x66,0x69,0x6c,0x6c])](_0x17be55[0x0]===_0x9b1d3a([0x2a])?_0x9b1d3a([0x2a]):'')[_0x9b1d3a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17be55))[_0x9b1d3a([0x73,0x6f,0x6d,0x65])](_0x48d971=>_0x288b33[_0x9b1d3a([0x65,0x76,0x65,0x72,0x79])]((_0x56f720,_0x1d73e3)=>_0x48d971[_0x1d73e3]===_0x56f720||_0x48d971[_0x1d73e3]===_0x9b1d3a([0x2a])));}function _0x4e2f24(){return _0x50025e&&_0x580bea?new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x454090,_0x58715e)=>{_0x50025e[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x454090,_0x58715e),_0x580bea[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x2940eb=>{_0x2940eb!=_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64])&&_0x454090(_0x2940eb);},_0x58715e);}):_0x50025e||_0x580bea||_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ac75d(_0x2bf789,_0xa1e632){return new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fd0b5=>{if(_0x1b8348())return _0x4fd0b5(_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64]));_0xab2962(),_0x41f13b[_0x9b1d3a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9b1d3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ed97e=!0x1;const _0x473f30=_0x40bebf();function _0x18d8bf(_0x231cdb){return!!_0x231cdb&&(typeof _0x231cdb===_0x9b1d3a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x231cdb===_0x9b1d3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x231cdb[_0x9b1d3a([0x74,0x68,0x65,0x6e])]===_0x9b1d3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x231cdb[_0x9b1d3a([0x63,0x61,0x74,0x63,0x68])]===_0x9b1d3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45e79a(_0xb7ace0){_0x2a25b6(_0xb7ace0)[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x2ecee0=>{if(!_0x2ecee0||_0x2ecee0[_0x9b1d3a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9b1d3a([0x6f,0x6b]))return _0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38d3b2(_0x4aac3b(_0x473f30+_0xa1e632))!=_0x2ecee0[_0x9b1d3a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64]);})[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0xd1efa4=>(_0x358aee(),_0xd1efa4),()=>{const _0x579ad9=_0x40c147();return null==_0x579ad9?(_0x358aee(),_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64])):_0x9b1d3a(_0x30cf94-_0x579ad9>(0x4f03da6f^_0x234934)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x4fd0b5)[_0x9b1d3a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fd0b5(_0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4af43e=0x6b39b0ef^_0x234934;function _0x358aee(){const _0x50e5ca=_0x9b1d3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x38d3b2(_0x4aac3b(_0x2bf789)),_0x31d4c0=_0x1ac1e9(_0x38d3b2(window[_0x9b1d3a([0x4d,0x61,0x74,0x68])][_0x9b1d3a([0x63,0x65,0x69,0x6c])](_0x30cf94/_0x4af43e)));window[_0x9b1d3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b1d3a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50e5ca,_0x31d4c0);}function _0x40c147(){const _0xe7f8a4=_0x9b1d3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x38d3b2(_0x4aac3b(_0x2bf789)),_0x394a5b=window[_0x9b1d3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b1d3a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7f8a4);return _0x394a5b?window[_0x9b1d3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ac1e9(_0x394a5b),0x10)*_0x4af43e:null;}function _0x2a25b6(_0x57b7f8){return new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37e3f0,_0x132ed3)=>{_0x57b7f8[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x37e3f0,_0x132ed3),window[_0x9b1d3a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x132ed3,0x6b0e8aaf^_0x234934);});}}_0x41f13b[_0x9b1d3a([0x6f,0x6e])](_0x9b1d3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57e549,_0x55ddce)=>{if(_0x55ddce[0x0]!=_0x2bf789)return _0x4fd0b5(_0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55ddce[0x1]={..._0x55ddce[0x1],[_0x9b1d3a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x473f30};},{[_0x9b1d3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b1d3a([0x68,0x69,0x67,0x68])}),_0x41f13b[_0x9b1d3a([0x6f,0x6e])](_0x9b1d3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f227b=>{_0x18d8bf(_0x4f227b[_0x9b1d3a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ed97e=!0x0,_0x45e79a(_0x4f227b[_0x9b1d3a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9b1d3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b1d3a([0x6c,0x6f,0x77])}),_0xd62c1d[_0x9b1d3a([0x74,0x68,0x65,0x6e])](()=>{_0x2ed97e||_0x4fd0b5(_0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b8348(){return _0x41f13b[_0x9b1d3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b1d3a([0x76,0x69,0x65,0x77])][_0x9b1d3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9b1d3a([0x61,0x75,0x74,0x6f]);}function _0xab2962(){_0x41f13b[_0x9b1d3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b1d3a([0x76,0x69,0x65,0x77])][_0x9b1d3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9b1d3a([0x61,0x75,0x74,0x6f]);}}function _0x5324f0(_0x1b8d11){const _0xadfd0a=[new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4e0c=>setTimeout(_0x2f4e0c,0x6b0660a3^_0x234934)),_0xd62c1d[_0x9b1d3a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ed212=>{let _0x4a1a64=0x0;_0x41f13b[_0x9b1d3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b1d3a([0x6f,0x6e])](_0x9b1d3a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e2bfa,_0x5426e0)=>{_0x5426e0[0x0][_0x9b1d3a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a1a64++,_0x4a1a64==(0x6b0f5f97^_0x234934)&&(_0x2ed212(),_0x3e2bfa[_0x9b1d3a([0x6f,0x66,0x66])]());});}))];return window[_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9b1d3a([0x72,0x61,0x63,0x65])](_0xadfd0a)[_0x9b1d3a([0x74,0x68,0x65,0x6e])](()=>_0x1b8d11);}async function _0x6c5174(){await _0xd62c1d,_0x41f13b[_0x9b1d3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b1d3a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d33b6,_0x41f13b[_0x9b1d3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b1d3a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d33b6,_0x41f13b[_0x9b1d3a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9b1d3a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bc677(){return _0x512547(_0x9b1d3a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x25b3e8(_0x9b1d3a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x9b1d3a([0x73,0x74,0x61,0x74,0x65])]==_0x9b1d3a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x47f511(){return _0x512547(_0x9b1d3a([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 _0x29addd(){return _0x512547(_0x9b1d3a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1b3ac0(_0x2a25b1){const _0x4c56c2=_0x53403f();_0x41f13b[_0x4c56c2]=_0x9b1d3a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a25b1,_0x2a25b1!=_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64])&&_0x6c5174();}function _0x53403f(){const _0x24e251=window[_0x9b1d3a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9b1d3a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9b1d3a([0x6e,0x6f,0x77])]())[_0x9b1d3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9b1d3a([0x2e]),'');let _0x42b30b=_0x9b1d3a([0x67]);for(let _0x2ac4a3=0x0;_0x2ac4a3<_0x24e251[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ac4a3+=0x2){let _0x111a5d=window[_0x9b1d3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24e251[_0x9b1d3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ac4a3,_0x2ac4a3+0x2));_0x111a5d>=_0x539e40[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x111a5d-=_0x539e40[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42b30b+=_0x539e40[_0x111a5d];}return _0x42b30b;}function _0x22e181(){const _0x170d32=_0x49c9a4[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])](_0x9b1d3a([0x2e]));if(0x3!=_0x170d32[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x221176(_0x170d32[0x1]);function _0x221176(_0x2c699b){const _0x45fe54=_0x23c82e(_0x2c699b);return _0x45fe54&&_0x2d0e69()?_0x45fe54:null;function _0x2d0e69(){const _0xa273f6=_0x45fe54[_0x9b1d3a([0x6a,0x74,0x69])],_0x1869cc=window[_0x9b1d3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa273f6[_0x9b1d3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa273f6[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55c6b4={..._0x45fe54,[_0x9b1d3a([0x6a,0x74,0x69])]:_0xa273f6[_0x9b1d3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa273f6[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55c6b4[_0x9b1d3a([0x76,0x63])],_0x4aac3b(_0x55c6b4)==_0x1869cc;}}}async function _0x4effb2(){let _0x33e9d2=!0x0;try{const _0x1a3ac2=_0x49c9a4[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])](_0x9b1d3a([0x2e])),[_0x1b88c1,_0x11cd1b,_0x41a0f9]=_0x1a3ac2;return _0x4fafe5(_0x1b88c1),await _0xee80d7(_0x1b88c1,_0x11cd1b,_0x41a0f9),_0x33e9d2;}catch{return!0x1;}function _0x4fafe5(_0x38b550){const _0x45a477=_0x23c82e(_0x38b550);_0x45a477&&_0x45a477[_0x9b1d3a([0x61,0x6c,0x67])]==_0x9b1d3a([0x45,0x53,0x32,0x35,0x36])||(_0x33e9d2=!0x1);}async function _0xee80d7(_0x11f01a,_0x24bcc5,_0x301975){const _0x376147=window[_0x9b1d3a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9b1d3a([0x66,0x72,0x6f,0x6d])](_0x3432b3(_0x301975),_0x3b3924=>_0x3b3924[_0x9b1d3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29fb50=new window[(_0x9b1d3a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9b1d3a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11f01a+_0x9b1d3a([0x2e])+_0x24bcc5),_0x47a8f5=window[_0x9b1d3a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9b1d3a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47a8f5)return;const _0x1ea403=await _0x47a8f5[_0x9b1d3a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9b1d3a([0x6a,0x77,0x6b]),_0x12f598,{[_0x9b1d3a([0x6e,0x61,0x6d,0x65])]:_0x9b1d3a([0x45,0x43,0x44,0x53,0x41]),[_0x9b1d3a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9b1d3a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9b1d3a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47a8f5[_0x9b1d3a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9b1d3a([0x6e,0x61,0x6d,0x65])]:_0x9b1d3a([0x45,0x43,0x44,0x53,0x41]),[_0x9b1d3a([0x68,0x61,0x73,0x68])]:{[_0x9b1d3a([0x6e,0x61,0x6d,0x65])]:_0x9b1d3a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ea403,_0x376147,_0x29fb50)||(_0x33e9d2=!0x1);}}function _0x23c82e(_0x3a6377){return _0x3a6377[_0x9b1d3a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9b1d3a([0x65,0x79]))?JSON[_0x9b1d3a([0x70,0x61,0x72,0x73,0x65])](_0x3432b3(_0x3a6377)):null;}function _0x3432b3(_0xea6a9f){return window[_0x9b1d3a([0x61,0x74,0x6f,0x62])](_0xea6a9f[_0x9b1d3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9b1d3a([0x2b]))[_0x9b1d3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9b1d3a([0x2f])));}function _0x4aac3b(_0x57552a){let _0x380a83=0x1505;function _0x4905ae(_0x2c39c6){for(let _0x36f13a=0x0;_0x36f13a<_0x2c39c6[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36f13a++){const _0x1ad208=_0x2c39c6[_0x9b1d3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36f13a);_0x380a83=(_0x380a83<<0x5)+_0x380a83+_0x1ad208,_0x380a83&=_0x380a83;}}function _0x252af6(_0x322e2f){Array[_0x9b1d3a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x322e2f)?_0x322e2f[_0x9b1d3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x252af6):_0x322e2f&&typeof _0x322e2f==_0x9b1d3a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9b1d3a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x322e2f)[_0x9b1d3a([0x73,0x6f,0x72,0x74])]()[_0x9b1d3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x507409,_0xb2456b])=>{_0x4905ae(_0x507409),_0x252af6(_0xb2456b);}):_0x4905ae(window[_0x9b1d3a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x322e2f));}return _0x252af6(_0x57552a),_0x380a83>>>0x0;}function _0x38d3b2(_0x1c4a26){return _0x1c4a26[_0x9b1d3a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9b1d3a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9b1d3a([0x30]));}function _0x1ac1e9(_0x422d14){return _0x422d14[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9b1d3a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9b1d3a([0x6a,0x6f,0x69,0x6e])]('');}function _0x512547(_0xf72991){return _0x41f13b[_0x9b1d3a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9b1d3a([0x68,0x61,0x73])](_0xf72991);}function _0x25b3e8(_0x28a224){return _0x41f13b[_0x9b1d3a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9b1d3a([0x67,0x65,0x74])](_0x28a224);}function _0x3d33b6(){}function _0x9b1d3a(_0x2356ee){return _0x2356ee['map'](_0x44abac=>String['fromCharCode'](_0x44abac))['join']('');}_0x1b3ac0(await _0x571ba7());}(this);}set['adapter'](_0xb36a4c){if(this['_adapter'])throw new _0x50c44a('track-changes-adapter-already-set',this);this['_adapter']=_0xb36a4c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x313150=!0x1,toJSON:_0x1c1047=!0x1}={}){const _0x15684b=[];for(const _0x3c29de of this['_suggestions']['values']())_0x313150&&!_0x3c29de['isInContent']||_0x15684b['push'](_0x3c29de);return _0x1c1047?_0x15684b['map'](_0x502db3=>_0x502db3['toJSON']()):_0x15684b;}['getSuggestion'](_0x5c20b7){const _0x5ba8cc=this['_suggestions']['get'](_0x5c20b7);if(!_0x5ba8cc)throw new _0x50c44a('track-changes-suggestion-not-found',this);return _0x5ba8cc;}['hasSuggestion'](_0x32de36){return this['_suggestions']['has'](_0x32de36);}['addSuggestionData'](_0x5c4d8e){const {authorId:_0x301ff5,id:_0x6e4207,originalSuggestionId:_0xa8e67c,attributes:_0x3f3cbc}=_0x5c4d8e,[_0x3084d0,_0x2d676c]=_0x5c4d8e['type']['split'](':'),_0x581221=this['_suggestions']['get'](_0x6e4207)||this['_createSuggestion'](_0x3084d0,_0x2d676c,_0x6e4207,_0x301ff5,_0x3f3cbc,_0xa8e67c);if(this['_addThreadToSuggestion'](_0x581221),this['_checkSuggestionCorrectness'](_0x581221,_0x3084d0,_0x2d676c||null,_0x301ff5),_0x581221['createdAt']=_0x5c4d8e['createdAt'],_0x581221['_isDataLoaded']=!0x0,_0x3f3cbc&&_0x3f3cbc['@external']){const _0x32228b=_0x3f3cbc['@external'],_0x31fc1b=this['_getExternalAuthor'](_0x32228b['authorName']);_0x581221['authoredAt']=_0x32228b['createdAt'],_0x581221['author']=_0x31fc1b,_0x581221['isExternal']=!0x0;}else _0x581221['authoredAt']=_0x5c4d8e['createdAt'];switch(_0x5c4d8e['data']&&(_0x581221['data']=_0x5c4d8e['data']),_0x5c4d8e['attributes']&&(_0x581221['attributes']=_0x5c4d8e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x581221['_saved']=!0x0),this['_suggestionState']['get'](_0x581221)){case'notReady':this['_suggestionState']['set'](_0x581221,'dataReady');break;case'markerReady':_0x581221['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x581221])),this['_refreshSuggestionsChain'](new Set([_0x581221])),this['_suggestionState']['set'](_0x581221,'ready'),this['fire']('suggestionLoaded',_0x581221)):this['_suggestionState']['set'](_0x581221,'removed');}return _0x581221;}['acceptSuggestion'](_0x56e2bc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53a26d of _0x56e2bc['getAllAdjacentSuggestions']())_0x53a26d['accept']();});});}['discardSuggestion'](_0x4b5cff){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42fcab of _0x4b5cff['getAllAdjacentSuggestions']())_0x42fcab['discard']();});});}['enableCommand'](_0x3c41e0,_0x1d9c59){const _0x1df402=this['editor']['commands']['get'](_0x3c41e0);if(!_0x1df402)throw new _0x50c44a('track-changes-command-not-found',this,{'commandName':_0x3c41e0});if(this['_enabledCommands']['has'](_0x1df402))throw new _0x50c44a('track-changes-enable-command-twice',this,{'commandName':_0x3c41e0});this['_enabledCommands']['add'](_0x1df402),_0x1d9c59&&_0x1df402['on']('execute',(_0x26da59,_0x3de4de)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3de4de['length']>0x0&&_0x3de4de[_0x3de4de['length']-0x1]&&_0x3de4de[_0x3de4de['length']-0x1]['forceDefaultExecution']?_0x3de4de['pop']():(_0x26da59['return']=_0x1d9c59((..._0x4eae84)=>_0x1df402['execute'](..._0x4eae84,{'forceDefaultExecution':!0x0}),..._0x3de4de),_0x26da59['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x344453){let _0x3b3566,_0xcbcdc9;const _0x3cf000=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3b3566=_0x344453();}catch(_0x3aa83d){_0xcbcdc9=_0x3aa83d;}return _0x3cf000||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xcbcdc9&&_0x50c44a['rethrowUnexpectedError'](_0xcbcdc9,this),_0x3b3566;}['markInsertion'](_0x26882f,_0x227537=null,_0x133adf={}){if(_0x26882f['isCollapsed'])return null;const _0x1f1937=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x133adf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22da5a,meta:_0x3f0c80}of this['_findSuggestions'](_0x26882f,'insertion'))if(_0x3f0c80['isOwn']){if(!_0x3f0c80['isNextTo']){if(_0x3f0c80['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x22da5a,_0x133adf))continue;return _0x22da5a;}if(Xt(_0x22da5a,_0x133adf))return _0x22da5a;this['_breakSuggestionMarker'](_0x22da5a,_0x26882f['start'],_0x26882f['end']);break;}if(_0x227537==_0x22da5a['subType']&&Xt(_0x22da5a,_0x133adf)){const _0x4420e8=_0x22da5a['getFirstRange']();return _0x4420e8['start']['isEqual'](_0x26882f['end'])?this['_setSuggestionRange'](_0x22da5a,this['_model']['createRange'](_0x26882f['start'],_0x4420e8['end'])):this['_setSuggestionRange'](_0x22da5a,this['_model']['createRange'](_0x4420e8['start'],_0x26882f['end'])),_0x22da5a;}}const _0x5c9452=_0x40bebf(),_0x2ab51c=_0x1f1937['id'],_0x4d357d=_0x227537?'insertion:'+_0x227537:'insertion',_0x35b928=this['_setSuggestionData']({'id':_0x5c9452,'type':_0x4d357d,'createdAt':new Date(),'authorId':_0x2ab51c,'attributes':_0x133adf});return this['_addSuggestionMarker'](_0x4d357d,_0x5c9452,_0x2ab51c,_0x26882f),_0x35b928;}['markMultiRangeInsertion'](_0x33ad12,_0x9f989d='multi',_0x3f6448={}){const _0x2047a1=this['editor']['plugins']['get']('Users')['me'],_0x577b42=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x9f989d,'join');this['_trackingSessionId']&&(_0x3f6448['trackingSessionId']=this['_trackingSessionId']);for(const _0x4be2d1 of this['getSuggestions']())if(_0x4be2d1['author']['id']==_0x2047a1['id']&&'insertion'==_0x4be2d1['type']&&_0x4be2d1['subType']==_0x9f989d&&Xt(_0x4be2d1,_0x3f6448)&&(_0x577b42(_0x4be2d1['getRanges'](),_0x33ad12)||_0x577b42(_0x33ad12,_0x4be2d1['getRanges']()))){for(const _0x131bb2 of _0x33ad12)_0x4be2d1['addRange'](_0x131bb2);return _0x4be2d1;}for(const {suggestion:_0x3db18f,meta:_0x52da2d}of this['_findSuggestions'](_0x33ad12,'insertion')){if(!_0x52da2d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52da2d['containsRangeInObject'])continue;if(!Xt(_0x3db18f,_0x3f6448))continue;let _0x836a24=!0x0;for(const _0x1cba71 of _0x3db18f['getRanges']())for(const _0x13ffa4 of _0x33ad12)if(!_0x1cba71['containsRange'](_0x13ffa4)){_0x836a24=!0x1;break;}if(_0x836a24)return _0x3db18f;}const _0x2ffb39=_0x40bebf(),_0x8ed87=_0x2047a1['id'],_0xc815dd='insertion:'+_0x9f989d,_0x3b155f=this['_setSuggestionData']({'id':_0x2ffb39,'type':_0xc815dd,'createdAt':new Date(),'authorId':_0x8ed87,'attributes':_0x3f6448});for(const _0x338fbc of _0x33ad12)this['_addSuggestionMarker'](_0xc815dd,_0x2ffb39,_0x8ed87,_0x338fbc,T['getMultiRangeId']());return _0x3b155f;}['markInlineFormat'](_0x418277,_0x56cec1,_0x3f5845=null,_0x95f4be={}){if(_0x3f5845=_0x3f5845||Lt(_0x56cec1),_0x418277['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x95f4be['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d3f60=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f5845,'accept');return this['forceDefaultExecution'](()=>_0x3d3f60([_0x418277],_0x56cec1,_0x95f4be)),null;}const _0x18f6df=this['editor']['plugins']['get']('Users')['me'],_0x1da33f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a493b,meta:_0x19873b}of this['_findSuggestions'](_0x418277,'insertion'))_0x19873b['isOwn']&&!_0x19873b['isInsideObject']&&_0x1da33f['push'](..._0x2a493b['getRanges']());}const _0x20cc87=function(_0x49b59a,_0x29d2a3){const _0x5babe0=[];for(const _0x3049ea of _0x29d2a3){const _0x14e252=_0x49b59a['getIntersection'](_0x3049ea);_0x14e252&&_0x5babe0['push'](_0x14e252);}return _0x5babe0;}(_0x418277,_0x1da33f),_0x469587=function(_0x1414e3,_0x413869){const _0xc3b812=[_0x1414e3];for(const _0x1fda9f of _0x413869){let _0x211844=0x0;for(;_0x211844<_0xc3b812['length'];){const _0x12bf77=_0xc3b812[_0x211844]['getDifference'](_0x1fda9f);_0xc3b812['splice'](_0x211844,0x1,..._0x12bf77),_0x211844+=_0x12bf77['length'];}}return _0xc3b812;}(_0x418277,_0x1da33f);_0x20cc87['length']&&this['_model']['change'](()=>{for(const _0x5130c7 of _0x20cc87){const _0x42bd78=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f5845,'accept');this['forceDefaultExecution'](()=>_0x42bd78([_0x5130c7],_0x56cec1,_0x95f4be));}});for(const _0x292069 of _0x469587){let _0x1d1e56=null,_0x177805=_0x292069['start'],_0xcdeaa0=_0x292069['end'];for(const {suggestion:_0x1bce52,meta:_0x197ef6}of this['_findSuggestions'](_0x292069,'formatInline')){if(!_0x197ef6['isOwn'])continue;if(_0x1bce52['subType']!=_0x3f5845)continue;if(!Xt(_0x1bce52,_0x95f4be))continue;const _0x41a1bc=_0x1bce52['getFirstRange']();if(_0x41a1bc['containsRange'](_0x292069,!0x0))return null;_0x177805=_0x177805['isBefore'](_0x41a1bc['start'])?_0x177805:_0x41a1bc['start'],_0xcdeaa0=_0xcdeaa0['isAfter'](_0x41a1bc['end'])?_0xcdeaa0:_0x41a1bc['end'],_0x1d1e56?_0x41a1bc['start']['isBefore'](_0x1d1e56['getFirstRange']()['start'])?(_0x1d1e56['removeMarkers'](),_0x1d1e56=_0x1bce52):_0x1bce52['removeMarkers']():_0x1d1e56=_0x1bce52;}const _0x7ffca9=this['_model']['createRange'](_0x177805,_0xcdeaa0);if(_0x1d1e56)this['_setSuggestionRange'](_0x1d1e56,_0x7ffca9);else{const _0x314756=_0x40bebf(),_0x91df1c=_0x18f6df['id'];this['_setSuggestionData']({'id':_0x314756,'type':'formatInline:'+_0x3f5845,'data':_0x56cec1,'createdAt':new Date(),'authorId':_0x91df1c,'attributes':_0x95f4be}),this['_addSuggestionMarker']('formatInline:'+_0x3f5845,_0x314756,_0x91df1c,_0x7ffca9);}}return null;}['markBlockFormat'](_0x118b18,_0x4b0f58,_0x579fdb=[],_0x11161f=null,_0x3a61dd={}){_0x4b0f58['formatGroupId']||(_0x4b0f58['formatGroupId']=_0x4b0f58['commandName']),_0x4b0f58['multipleBlocks']=_0x118b18['is']('range'),_0x11161f=_0x11161f||Lt(_0x4b0f58);const _0x235d50=_0x579fdb['map'](_0x497fdd=>zt(_0x497fdd,this['_model'])),_0x50bed4=_0x118b18['is']('range')?_0x118b18:zt(_0x118b18,this['_model']);if(this['_trackingSessionId']&&(_0x3a61dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x47d1b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11161f,'accept');return this['forceDefaultExecution'](()=>_0x47d1b0([_0x50bed4],_0x4b0f58,_0x3a61dd)),null;}_0x235d50['push'](_0x50bed4);let _0xd5263c=!0x0;for(const _0x4db43d of _0x235d50)if(!this['_rangeIsInLocalUserInsertion'](_0x4db43d)){_0xd5263c=!0x1;break;}if(_0xd5263c&&'always'!==this['_trackFormatChanges']){const _0xfd49c3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11161f,'accept');return this['forceDefaultExecution'](()=>_0xfd49c3([_0x50bed4],_0x4b0f58,_0x3a61dd)),null;}let _0x17286=null,_0x5af41a=_0x50bed4['start'],_0x37582a=_0x50bed4['end'];for(const {suggestion:_0x1e909a,meta:_0x3ecb9e}of this['_findSuggestions'](_0x50bed4,'formatBlock')){if(!_0x3ecb9e['isOwn'])continue;if(_0x3ecb9e['isNextTo']||_0x3ecb9e['containsRangeInObject']||_0x3ecb9e['isInsideObject'])continue;if(_0x1e909a['data']['formatGroupId']!=_0x4b0f58['formatGroupId'])continue;if(!Xt(_0x1e909a,_0x3a61dd))continue;const _0x4bb5fc=_0x1e909a['getFirstRange']();if(_0x1e909a['subType']==_0x11161f){if(_0x4bb5fc['containsRange'](_0x50bed4,!0x0))return null;_0x5af41a=_0x5af41a['isBefore'](_0x4bb5fc['start'])?_0x5af41a:_0x4bb5fc['start'],_0x37582a=_0x37582a['isAfter'](_0x4bb5fc['end'])?_0x37582a:_0x4bb5fc['end'],_0x17286?_0x4bb5fc['start']['isBefore'](_0x17286['getFirstRange']()['start'])?(_0x17286['removeMarkers'](),_0x17286=_0x1e909a):_0x1e909a['removeMarkers']():_0x17286=_0x1e909a;}else{const _0x1ce4a6=_0x50bed4['getIntersection'](_0x4bb5fc);this['_cutOutSuggestionMarker'](_0x1e909a,_0x1ce4a6);}}const _0x5f0d0e=this['editor']['plugins']['get']('Users')['me'],_0x2ff3d4=_0x40bebf(),_0x5aab66=_0x5f0d0e['id'];if(_0x17286)return this['_setSuggestionRange'](_0x17286,this['_model']['createRange'](_0x5af41a,_0x37582a)),_0x17286;{const _0x2acce7=this['_setSuggestionData']({'id':_0x2ff3d4,'type':'formatBlock:'+_0x11161f,'data':_0x4b0f58,'createdAt':new Date(),'authorId':_0x5aab66,'attributes':_0x3a61dd});return this['_addSuggestionMarker']('formatBlock:'+_0x11161f,_0x2ff3d4,_0x5aab66,this['_model']['createRange'](_0x5af41a,_0x37582a)),_0x2acce7;}}['markMultiRangeBlockFormat'](_0x5bd474,_0x344e45,_0x51fc08=[],_0x1abf4c=null,_0x3b4c8a={}){_0x344e45['formatGroupId']||(_0x344e45['formatGroupId']=_0x344e45['commandName']);const _0x30aa0b=_0x5bd474[0x0];_0x344e45['multipleBlocks']=_0x30aa0b['is']('range'),_0x1abf4c=_0x1abf4c||Lt(_0x344e45);const _0x2ce3be=_0x51fc08['map'](_0x4d8871=>zt(_0x4d8871,this['_model'])),_0x19b049=_0x30aa0b['is']('range')?_0x5bd474:_0x5bd474['map'](_0x29d519=>zt(_0x29d519,this['_model']));if(this['_trackingSessionId']&&(_0x3b4c8a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5dc9cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1abf4c,'accept');return this['forceDefaultExecution'](()=>_0x5dc9cd(_0x19b049,_0x344e45,_0x3b4c8a)),null;}_0x2ce3be['push'](..._0x19b049);let _0x32ad29=!0x0;for(const _0x37d1fd of _0x2ce3be)if(!this['_rangeIsInLocalUserInsertion'](_0x37d1fd)){_0x32ad29=!0x1;break;}if(_0x32ad29&&'always'!==this['_trackFormatChanges']){const _0x4fbc5d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1abf4c,'accept');return this['forceDefaultExecution'](()=>_0x4fbc5d(_0x19b049,_0x344e45,_0x3b4c8a)),null;}const _0x2a6c05=this['editor']['plugins']['get']('Users')['me'];for(const _0x422cdd of this['getSuggestions']()){const _0x45d00f=_0x422cdd['data'];if(_0x422cdd['author']['id']!=_0x2a6c05['id'])continue;if('formatBlock'!=_0x422cdd['type']||_0x45d00f['formatGroupId']!=_0x344e45['formatGroupId'])continue;if(!Xt(_0x422cdd,_0x3b4c8a))continue;const _0x747067=_0x422cdd['subType']==_0x1abf4c;for(let _0x22f60b=0x0;_0x22f60b<_0x19b049['length'];_0x22f60b++){const _0x3c9d4c=_0x19b049[_0x22f60b];for(const _0x592753 of _0x422cdd['getMarkers']()){const _0xd29b00=_0x592753['getRange']();if(_0x3c9d4c['isEqual'](_0xd29b00)){_0x747067?(_0x19b049['splice'](_0x22f60b,0x1),_0x22f60b--):_0x422cdd['removeMarker'](_0x592753['name']);break;}}}}if(0x0==_0x19b049['length'])return null;const _0x460e80=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1abf4c,'join');for(const _0x2316db of this['getSuggestions']()){const _0x4c291d=_0x2316db['data'];if(_0x2316db['author']['id']==_0x2a6c05['id']&&('formatBlock'==_0x2316db['type']&&_0x4c291d['formatGroupId']==_0x344e45['formatGroupId']&&_0x2316db['subType']==_0x1abf4c&&Xt(_0x2316db,_0x3b4c8a)&&(_0x460e80(_0x2316db['getRanges'](),_0x19b049)||_0x460e80(_0x19b049,_0x2316db['getRanges']())))){for(const _0x374d3a of _0x19b049)_0x2316db['addRange'](_0x374d3a);return _0x2316db;}}const _0x1882f3=_0x40bebf(),_0x4c8735=_0x2a6c05['id'],_0x326c64='formatBlock:'+_0x1abf4c,_0x426d87=this['_setSuggestionData']({'id':_0x1882f3,'type':_0x326c64,'data':_0x344e45,'createdAt':new Date(),'authorId':_0x4c8735,'attributes':_0x3b4c8a});for(const _0x51a25b of _0x19b049)this['_addSuggestionMarker'](_0x326c64,_0x1882f3,_0x4c8735,_0x51a25b,T['getMultiRangeId']());return _0x426d87;}['markDeletion'](_0x541aba,_0x253a46=null,_0x15bc5f={}){if(_0x541aba['isCollapsed'])return null;const _0x1602d2=this['editor']['plugins']['get']('Users')['me'],_0x1886bd=new _0x51ea19(_0x541aba['start'],_0x541aba['end']);this['_trackingSessionId']&&(_0x15bc5f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5999fc,meta:_0x3464ce}of this['_findSuggestions'](_0x1886bd,'insertion'))if(_0x3464ce['isOwn']&&!_0x3464ce['isNextTo']){if(_0x5999fc['isMultiRange']){const _0x277b64=_0x5999fc['getRanges']()['filter'](_0x50b6f4=>'$graveyard'!=_0x50b6f4['root']['rootName']);_0x277b64['every'](_0x4fbfa9=>_0x1886bd['containsRange'](_0x4fbfa9,!0x0))&&_0x5999fc['discard']();if(_0x277b64['some'](_0x1d44c6=>_0x1d44c6['containsRange'](_0x1886bd,!0x0))){const _0x4ea972=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x253a46,'accept');return this['forceDefaultExecution'](()=>_0x4ea972([_0x1886bd],null,_0x15bc5f)),null;}}else{const _0x123a3f=_0x1886bd['getIntersection'](_0x5999fc['getFirstRange']());null!==_0x123a3f&&_0x5999fc['_onDiscard']([_0x123a3f],null,_0x15bc5f);}}if(_0x1886bd['detach'](),_0x1886bd['isCollapsed']||'$graveyard'==_0x1886bd['root']['rootName'])return null;let _0x413fb1=null,_0x8fcbb=_0x1886bd['start'],_0xff1106=_0x1886bd['end'];const _0x447dd8=this['_findSuggestions'](_0x1886bd,'deletion');for(const {suggestion:_0x12432b,meta:_0x5b99ce}of _0x447dd8){const _0x2713c9=this['_model']['createRange'](_0x8fcbb,_0xff1106);if(_0x5b99ce['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b99ce['containsRangeInObject']&&!_0x5b99ce['isInsideObject'])){if(_0x12432b['isMultiRange']){if(!Xt(_0x12432b,_0x15bc5f))continue;let _0x52683c=!0x0;for(const _0x1c4f95 of _0x12432b['getRanges']()){if(_0x1c4f95['containsRange'](_0x2713c9,!0x0))return _0x12432b;_0x2713c9['containsRange'](_0x1c4f95)||(_0x52683c=!0x1);}_0x52683c&&_0x12432b['discard']();}else{const _0x21c833=_0x12432b['getFirstRange']();if(_0x21c833['containsRange'](_0x2713c9,!0x0))return _0x12432b;if(!Xt(_0x12432b,_0x15bc5f)){_0x2713c9['containsRange'](_0x21c833)?_0x12432b['removeMarkers']():_0x21c833['containsPosition'](_0x8fcbb)?_0x8fcbb=_0x21c833['end']:_0x21c833['containsPosition'](_0xff1106)&&(_0xff1106=_0x21c833['start']);continue;}_0x8fcbb=_0x8fcbb['isBefore'](_0x21c833['start'])?_0x8fcbb:_0x21c833['start'],_0xff1106=_0xff1106['isAfter'](_0x21c833['end'])?_0xff1106:_0x21c833['end'],_0x15bc5f=Object['assign']({},_0x12432b['attributes']),_0x413fb1?_0x21c833['start']['isBefore'](_0x413fb1['getFirstRange']()['start'])?(_0x413fb1['removeMarkers'](),_0x413fb1=_0x12432b):_0x12432b['removeMarkers']():_0x413fb1=_0x12432b;}}}if(_0x413fb1)return this['_setSuggestionRange'](_0x413fb1,this['_model']['createRange'](_0x8fcbb,_0xff1106)),_0x413fb1;{const _0x1f53b4=_0x40bebf(),_0x2ac62a=this['_model']['createRange'](_0x8fcbb,_0xff1106),_0x52cc8b=_0x1602d2['id'],_0x5608c9=_0x253a46?'deletion:'+_0x253a46:'deletion',_0x525a10=this['_setSuggestionData']({'id':_0x1f53b4,'type':_0x5608c9,'createdAt':new Date(),'authorId':_0x52cc8b,'attributes':_0x15bc5f});return this['_addSuggestionMarker'](_0x5608c9,_0x1f53b4,_0x52cc8b,_0x2ac62a),_0x525a10;}}['markMultiRangeDeletion'](_0x37a505,_0x1a63fc='multi',_0x2f8816={}){const _0x4a3fa5=this['editor']['plugins']['get']('Users')['me'],_0x20bd49=_0x37a505['map'](_0x360f57=>new _0x51ea19(_0x360f57['start'],_0x360f57['end'])),_0x9fa929=new Set();this['_trackingSessionId']&&(_0x2f8816['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1bb8e8,meta:_0x57a621}of this['_findSuggestions'](_0x20bd49,'insertion'))_0x57a621['isOwn']&&!_0x57a621['isNextTo']&&_0x9fa929['add'](_0x1bb8e8);for(const _0x38ebdc of _0x9fa929)if(_0x38ebdc['isMultiRange']){const _0x27ae3f=_0x38ebdc['getRanges']();(!_0x38ebdc['attributes']||!_0x38ebdc['attributes']['skipNestingCheck'])&&(_0x27ae3f['every'](_0x4f5531=>_0x20bd49['some'](_0x227974=>_0x227974['containsRange'](_0x4f5531,!0x0)))&&_0x38ebdc['discard']());if(_0x20bd49['every'](_0x420cd8=>_0x27ae3f['some'](_0x41500d=>_0x41500d['containsRange'](_0x420cd8,!0x0)))){const _0x12f104=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a63fc,'accept');return this['forceDefaultExecution'](()=>_0x12f104(_0x37a505,null,_0x2f8816)),null;}}else{const _0x5dac8e=_0x38ebdc['getFirstRange']();_0x20bd49['some'](_0x307de0=>_0x307de0['containsRange'](_0x5dac8e,!0x0))&&_0x38ebdc['discard']();if(_0x20bd49['every'](_0xb845cf=>_0x5dac8e['containsRange'](_0xb845cf,!0x0))){const _0x258989=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a63fc,'accept');return this['forceDefaultExecution'](()=>_0x258989(_0x20bd49,null,_0x2f8816)),null;}}const _0x339c0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a63fc,'join');let _0x50ca14=null;for(const _0x431294 of this['getSuggestions']())if(_0x431294['author']['id']==_0x4a3fa5['id']&&_0x431294['isInContent']&&'deletion'==_0x431294['type']&&_0x431294['subType']==_0x1a63fc&&Xt(_0x431294,_0x2f8816)&&(_0x339c0c(_0x431294['getRanges'](),_0x20bd49)||_0x339c0c(_0x20bd49,_0x431294['getRanges']()))){if(_0x50ca14){if(_0x431294['commentThread']&&_0x431294['commentThread']['length'])continue;for(const _0x3d8e8a of _0x431294['getRanges']())_0x50ca14['isIntersectingWithRange'](_0x3d8e8a)||_0x50ca14['addRange'](_0x3d8e8a);_0x431294['removeMarkers']();}else{_0x50ca14=_0x431294;for(const _0x54ed32 of _0x20bd49)_0x431294['isIntersectingWithRange'](_0x54ed32)||_0x431294['addRange'](_0x54ed32);}}if(_0x50ca14)return _0x50ca14;_0x9fa929['clear']();for(const {suggestion:_0x3fdf11,meta:_0x2a5bdc}of this['_findSuggestions'](_0x20bd49,'deletion'))_0x2a5bdc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a5bdc['containsRangeInObject']&&!_0x2a5bdc['isInsideObject'])&&Xt(_0x3fdf11,_0x2f8816)&&_0x9fa929['add'](_0x3fdf11);for(const _0x1c9ff5 of _0x9fa929){const _0x10e0f7=_0x1c9ff5['getRanges']();if(!_0x2f8816||!_0x2f8816['skipNestingCheck']){if(_0x20bd49['every'](_0x7a90cc=>_0x10e0f7['some'](_0x3af186=>_0x3af186['containsRange'](_0x7a90cc,!0x0))))return _0x1c9ff5;}(!_0x1c9ff5['attributes']||!_0x1c9ff5['attributes']['skipNestingCheck'])&&(_0x10e0f7['every'](_0x172305=>_0x20bd49['some'](_0x526a90=>_0x526a90['containsRange'](_0x172305,!0x0)))&&_0x1c9ff5['discard']());}const _0x4c672c=_0x40bebf(),_0x13cdab=_0x4a3fa5['id'],_0x3a6d68='deletion:'+_0x1a63fc,_0xf7746b=this['_setSuggestionData']({'id':_0x4c672c,'type':_0x3a6d68,'createdAt':new Date(),'authorId':_0x13cdab,'attributes':_0x2f8816});for(const _0x1dafa7 of _0x20bd49)_0x1dafa7['detach'](),_0x1dafa7['isCollapsed']||'$graveyard'==_0x1dafa7['root']['rootName']||this['_addSuggestionMarker'](_0x3a6d68,_0x4c672c,_0x13cdab,_0x1dafa7,T['getMultiRangeId']());return _0xf7746b;}['markAttributeChange'](_0x22994f,_0x14dc5b,_0x361c15,_0x57f31f,_0x1b07a9){if(_0x22994f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1759c2=this['editor']['plugins']['get']('Users')['me']['id'],_0x603521=Array['from'](this['_suggestions']['values']())['filter'](_0x1e657b=>'attribute'==_0x1e657b['type']&&_0x1e657b['data']['key']==_0x14dc5b&&_0x1e657b['isIntersectingWithRange'](_0x22994f));if(this['_trackingSessionId']&&(_0x1b07a9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x347e0c=this['_findSuggestions'](_0x22994f,'insertion')['filter'](({meta:_0x27418f})=>_0x27418f['isOwn']&&!_0x27418f['isInsideObject']&&!_0x27418f['isNextTo'])['map'](({suggestion:_0x367471})=>_0x367471);_0x603521['unshift'](..._0x347e0c);}const _0x4b8940=new Map([[_0x22994f,_0x361c15]]);for(const _0x421e95 of _0x603521){const _0x164c60='attribute'==_0x421e95['type']?_0x421e95['data']['oldValue']:void 0x0,_0x172331=_0x421e95['getFirstRange'](),_0x377af0=Array['from'](_0x4b8940['keys']())['find'](_0x33032e=>_0x33032e['isIntersecting'](_0x172331));if(!_0x377af0)continue;const _0xd982cb=_0x377af0['getDifference'](_0x172331);this['_isBlockAttribute'](_0x14dc5b)&&'insertion'==_0x421e95['type']&&0x0!=_0xd982cb['length']||(_0x4b8940['delete'](_0x377af0),_0xd982cb['forEach'](_0x5c1354=>{_0x4b8940['set'](_0x5c1354,_0x361c15);}),'insertion'!=_0x421e95['type']&&_0x164c60!=_0x57f31f&&_0x4b8940['set'](_0x377af0['getIntersection'](_0x172331),_0x164c60));}const _0x109573=[];for(const [_0x665235,_0x373405]of _0x4b8940){const _0x2732da=_0x40bebf(),_0x4b061e={'key':_0x14dc5b,'oldValue':_0x373405,'newValue':_0x57f31f};_0x14dc5b['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':_0x14dc5b});const _0x46e10b=('attribute:'+(_0x14dc5b+'|'+Lt({'newValue':_0x57f31f})))['substring'](0x0,0x3c),_0x15454a=this['_setSuggestionData']({'id':_0x2732da,'type':_0x46e10b,'data':_0x4b061e,'createdAt':new Date(),'authorId':_0x1759c2,'attributes':_0x1b07a9});_0x109573['push'](_0x15454a),this['_addSuggestionMarker'](_0x46e10b,_0x2732da,_0x1759c2,_0x665235);}return _0x109573;}['enableDefaultAttributesIntegration'](_0x3a39d5){this['enableCommand'](_0x3a39d5,(_0x45b566,..._0x1ca786)=>{this['recordAttributeChanges'](()=>{_0x45b566(..._0x1ca786);});});}['registerBlockAttribute'](_0x231dfd){this['_blockAttributeKeys']['add'](_0x231dfd);}['registerInlineAttribute'](_0x4e00ac){this['_inlineAttributeKeys']['add'](_0x4e00ac);}['startTrackingSession'](_0x2222c6){return this['_trackingSessionId']=void 0x0!==_0x2222c6?_0x2222c6:_0x40bebf(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2d9dac){return'attribute'==_0x2d9dac['type']?_0x2d9dac['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xc79f71,_0x581f72){const _0x12055b=_0xc79f71['getFirstMarker']();this['_model']['change'](_0x21f103=>{_0x21f103['updateMarker'](_0x12055b,{'range':_0x581f72});});}['_addThreadToSuggestion'](_0x1d9556){const _0x3c1aba=_0x1d9556['id'],_0x665d0c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c1aba)||this['_commentsRepository']['addCommentThread']({'channelId':_0x665d0c,'threadId':_0x3c1aba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1be698=this['_commentsRepository']['getCommentThread'](_0x3c1aba);_0x1be698['unbind']('isRemovable'),_0x1be698['isRemovable']=!0x1,_0x1d9556['commentThread']=_0x1be698;}['_checkSuggestionCorrectness'](_0x3b5016,_0x3762a9,_0xce873b,_0x1cc434){if(_0x3b5016['type']!=_0x3762a9||_0x3b5016['subType']!=_0xce873b||_0x3b5016['creator']['id']!=_0x1cc434)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x50c44a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x34b950,_0x52450b){const _0x314965=_0x34b950['getFirstRange']();if(_0x52450b['isEqual'](_0x314965))_0x34b950['removeMarkers']();else{if(_0x314965['containsRange'](_0x52450b)){const _0xd79177=this['_model']['createPositionAt'](_0x52450b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34b950,this['_model']['createRange'](_0x314965['start'],_0xd79177));const _0x11cda2=_0x40bebf(),_0x41ef3f=_0x34b950['creator']['id'],_0xbdcc2c=_0x34b950['type']+':'+_0x34b950['subType'];this['_setSuggestionData']({'id':_0x11cda2,'type':_0xbdcc2c,'createdAt':new Date(),'authorId':_0x41ef3f,'data':_0x34b950['data'],'attributes':_0x34b950['attributes']});const _0x28c8b6=this['_model']['createPositionAt'](_0x52450b['end']['parent'],'after'),_0x3d2e91=this['_model']['createRange'](_0x28c8b6,_0x314965['end']);this['_addSuggestionMarker'](_0xbdcc2c,_0x11cda2,_0x41ef3f,_0x3d2e91);}else{if(_0x314965['containsPosition'](_0x52450b['start'])){const _0x4d13af=this['_model']['createPositionAt'](_0x52450b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34b950,this['_model']['createRange'](_0x314965['start'],_0x4d13af));}else{const _0xea4515=this['_model']['createPositionAt'](_0x52450b['end']['parent'],'after');this['_setSuggestionRange'](_0x34b950,this['_model']['createRange'](_0xea4515,_0x314965['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3b0e8b){for(const {suggestion:_0x26df08,meta:_0x4f0ec8}of this['_findSuggestions'](_0x3b0e8b,'insertion')){if(!_0x4f0ec8['isOwn'])continue;const _0x23c2f8=_0x26df08['getRanges']();for(const _0x337f11 of _0x23c2f8)if(!_0x3b0e8b['getDifference'](_0x337f11)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x26ebc6){return this['editor']['plugins']['get']('Users')['getUser'](_0x26ebc6);}['_getExternalAuthor'](_0x534045){const _0x567833=this['editor']['plugins']['get']('Users'),_0x4e3460=_0x421d24('external:'+_0x534045),_0x4f1919=_0x567833['getUser'](_0x4e3460);return _0x4f1919||_0x567833['addUser']({'id':_0x4e3460,'name':_0x534045});}['_createSuggestion'](_0x21a924,_0x245381,_0xdcb623,_0x55c879,_0x326cbc,_0x2a3f94){const _0x182808=this['_getAuthorFromId'](_0x55c879);if(!_0x182808)throw new _0x50c44a('track-changes-user-not-found',this,{'authorId':_0x55c879,'suggestionId':_0xdcb623});const _0xf6afce=this['_suggestionFactory']['buildSuggestion'](_0x21a924,_0x245381,_0xdcb623,_0x182808,_0x326cbc,_0x432fe2=>{this['_updateSuggestionData'](_0xdcb623,{'attributes':_0x432fe2});const _0x27de3f=this['getSuggestion'](_0xdcb623);this['_joinWithAdjacentSuggestions'](new Set([_0x27de3f])),this['_refreshSuggestionsChain'](new Set([_0x27de3f]));},_0x2a3f94);return this['listenTo'](_0xf6afce,'accept',()=>{this['_updateSuggestionData'](_0xdcb623,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xf6afce,'discard',()=>{this['_updateSuggestionData'](_0xdcb623,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xdcb623,_0xf6afce),this['_suggestionState']['set'](_0xf6afce,'notReady'),_0xf6afce;}['_splitMarkerName'](_0x25a749){const _0x4c6fec=_0x25a749['split'](':');return{'group':_0x4c6fec[0x0],'type':_0x4c6fec[0x1],'subType':_0x4c6fec['length']>=0x5?_0x4c6fec[0x2]:null,'id':_0x4c6fec['length']<0x5?_0x4c6fec[0x2]:_0x4c6fec[0x3],'authorId':_0x4c6fec['length']<0x5?_0x4c6fec[0x3]:_0x4c6fec[0x4],'markerCount':0x6==_0x4c6fec['length']?_0x4c6fec[0x5]:null};}['_breakSuggestionMarker'](_0x402b77,_0xae783e,_0x5d7e34){const _0x2cb2d6=_0x402b77['getFirstRange'](),_0x1bfb99=_0x2cb2d6['start'],_0x240606=_0x2cb2d6['end'];this['_setSuggestionRange'](_0x402b77,this['_model']['createRange'](_0x1bfb99,_0xae783e));const _0x540439=_0x40bebf(),_0x5943de=_0x402b77['creator']['id'],_0x108e1c=_0x402b77['type']+(_0x402b77['subType']?':'+_0x402b77['subType']:'');this['_setSuggestionData']({'id':_0x540439,'type':_0x108e1c,'createdAt':new Date(),'authorId':_0x5943de,'originalSuggestionId':_0x402b77['_originalSuggestionId']||_0x402b77['id'],'attributes':_0x402b77['attributes'],'data':_0x402b77['data']});const _0x226667=this['_getAttributeKey'](_0x402b77);('formatBlock'==_0x402b77['type']||_0x226667&&this['_isBlockAttribute'](_0x226667))&&(_0x5d7e34=this['_model']['createPositionBefore'](_0x5d7e34['parent'])),this['_addSuggestionMarker'](_0x108e1c,_0x540439,_0x5943de,this['_model']['createRange'](_0x5d7e34,_0x240606));}['_findSuggestions'](_0x5a8cd1,_0x2dcdbb=null){const _0x53c163=[],_0x47e480=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a8cd1)||(_0x5a8cd1=[_0x5a8cd1]);for(const _0x4b8e28 of this['getSuggestions']()){if(!_0x4b8e28['isInContent'])continue;if(_0x2dcdbb&&_0x4b8e28['type']!=_0x2dcdbb)continue;let _0x36aa7c=!0x1;for(const _0x2c9283 of _0x4b8e28['getRanges']()){for(const _0x2f4558 of _0x5a8cd1){const _0x23cd1e=_0x2f4558['start']['isEqual'](_0x2c9283['end'])||_0x2f4558['end']['isEqual'](_0x2c9283['start']);if(_0x23cd1e||_0x2f4558['getIntersection'](_0x2c9283)){const _0x2e41af=_0x2f4558['containsRange'](_0x2c9283)&&Ft(this['_model']['schema'],_0x2c9283['start'],_0x2f4558),_0x255643=_0x2c9283['containsRange'](_0x2f4558)&&Ft(this['_model']['schema'],_0x2f4558['start'],_0x2c9283);_0x53c163['push']({'suggestion':_0x4b8e28,'meta':{'isOwn':_0x47e480==_0x4b8e28['author'],'isNextTo':_0x23cd1e,'isInsideObject':_0x2e41af,'containsRangeInObject':_0x255643}}),_0x36aa7c=!0x0;break;}}if(_0x36aa7c)break;}}return _0x53c163;}['_addSuggestionMarker'](_0xdb5f12,_0x29579a,_0x5d65cf,_0x13e675,_0x14b208){this['_model']['change'](_0x3d04ad=>{let _0x5ecfc2='suggestion:'+_0xdb5f12+':'+_0x29579a+':'+_0x5d65cf;_0x14b208&&(_0x5ecfc2=_0x5ecfc2+':'+_0x14b208),_0x3d04ad['addMarker'](_0x5ecfc2,{'range':_0x13e675,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ae19a){const _0x2c09d9=_0x3ae19a['previous'],_0x42203c=_0x3ae19a['next'];_0x3ae19a['previous']=null,_0x3ae19a['next']=null,null!=_0x2c09d9&&_0x2c09d9['next']==_0x3ae19a&&(_0x2c09d9['next']=_0x42203c),null!=_0x42203c&&_0x42203c['previous']==_0x3ae19a&&(_0x42203c['previous']=_0x2c09d9),'ready'==this['_suggestionState']['get'](_0x3ae19a)&&(this['_suggestionState']['set'](_0x3ae19a,'removed'),this['fire']('suggestionUnloaded',_0x3ae19a,_0x2c09d9,_0x42203c));}['_setSuggestionData'](_0x2cc55c){const _0x23c326=_0x2cc55c['id'],_0x32ef5e=this['addSuggestionData'](_0x2cc55c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x123d40=this['editor']['plugins']['get']('PendingActions'),_0x49397b=_0x32ef5e['hasComments'],_0x2292f6=_0x32ef5e['subType']?_0x32ef5e['type']+':'+_0x32ef5e['subType']:_0x32ef5e['type'],_0x117734=this['editor']['locale'],_0x2f2206=_0x123d40['add'](o(_0x117734,'PENDING_ACTION_SUGGESTION')),_0x505c6d={'id':_0x23c326,'type':_0x2292f6,'hasComments':_0x49397b,'data':_0x2cc55c['data']||null,'originalSuggestionId':_0x2cc55c['originalSuggestionId']||null,'attributes':_0x32ef5e['attributes']};this['_adapter']['addSuggestion'](_0x505c6d)['then'](_0x2b9d12=>{_0x32ef5e['_saved']=!0x0,_0x123d40['remove'](_0x2f2206),_0x2b9d12&&_0x2b9d12['createdAt']&&(this['_suggestions']['get'](_0x23c326)['createdAt']=_0x2b9d12['createdAt']);})['catch'](_0x20a178=>{throw _0x15176d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x32ef5e['discard']();}),_0x32ef5e['stopListening'](),this['_suggestions']['delete'](_0x32ef5e['id']),this['_suggestionState']['delete'](_0x32ef5e),_0x20a178;});}return _0x32ef5e;}['_isBlockAttribute'](_0x44ee32){return this['_blockAttributeKeys']['has'](_0x44ee32);}['_isInlineAttribute'](_0x3288d7){return this['_inlineAttributeKeys']['has'](_0x3288d7);}['_updateSuggestionData'](_0x2bb8d2,_0x464be7){const _0x2687c7=this['editor']['plugins']['get']('PendingActions'),_0x4a53f6=this['getSuggestion'](_0x2bb8d2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a53f6['_saved']){const _0x4dcf7a=_0x2687c7['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2bb8d2,_0x464be7)['then'](()=>{_0x2687c7['remove'](_0x4dcf7a);});}else _0x4a53f6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2bb8d2,_0x464be7);});}}['_getSuggestionData'](_0x4a5049){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x50c44a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4a5049);}['_handleNewSuggestionMarker'](_0x56aec1){const {id:_0x58a175,type:_0x3577d6,subType:_0x5129ab,authorId:_0x3eeaf9}=this['_splitMarkerName'](_0x56aec1),_0x3e3eaf=this['_suggestions']['get'](_0x58a175)||this['_createSuggestion'](_0x3577d6,_0x5129ab,_0x58a175,_0x3eeaf9,{});switch(this['_checkSuggestionCorrectness'](_0x3e3eaf,_0x3577d6,_0x5129ab,_0x3eeaf9),this['_suggestionState']['get'](_0x3e3eaf)){case'notReady':this['_getSuggestionData'](_0x58a175)['then'](_0x3f3458=>{let _0x5e7bad=Promise['resolve']();_0x3f3458['hasComments']&&(_0x5e7bad=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x58a175})),_0x5e7bad['then'](()=>{this['addSuggestionData'](_0x3f3458)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e3eaf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x58a175,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e3eaf,'ready'),this['fire']('suggestionLoaded',_0x3e3eaf);break;case'ready':this['fire']('suggestionChanged',_0x3e3eaf);}return _0x3e3eaf['addMarkerName'](_0x56aec1),_0x3e3eaf;}['_refreshSuggestionsChain'](_0x4e10b2){const _0x9f13eb=Array['from'](_0x4e10b2),_0x5a1e0a=_0x9f13eb['filter'](_0x2c73c=>'attribute'==_0x2c73c['type']);this['_refreshAttributeSuggestionsChain'](_0x5a1e0a);const _0x388535=_0x9f13eb['filter'](_0x4f751a=>!_0x4f751a['isMultiRange']&&'attribute'!=_0x4f751a['type']),_0x585b2b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49381f=>!_0x49381f['isMultiRange']&&'attribute'!=_0x49381f['type']),_0x170328=_0x585b2b['filter'](_0xbb69d7=>!_0x4e10b2['has'](_0xbb69d7)),_0x48ce69=new Map(_0x585b2b['map'](_0x1a5cfd=>[_0x1a5cfd,this['_suggestionFactory']['getSuggestionCallback'](_0x1a5cfd['type'],_0x1a5cfd['subType'],'chain')])),_0x3901cb=new Map(_0x585b2b['map'](_0x42568c=>[_0x42568c,_0x42568c['getFirstRange']()])),_0x48081d=new Set(),_0x5069a8=new Set();for(let _0x2cdd89=0x0;_0x2cdd89<_0x388535['length'];_0x2cdd89++)_0x1bd56c(_0x388535[_0x2cdd89],_0x388535,_0x2cdd89+0x1);for(let _0xd9cd2e=0x0;_0xd9cd2e<_0x388535['length'];_0xd9cd2e++)_0x1bd56c(_0x388535[_0xd9cd2e],_0x170328,0x0);const _0x509aff=new Set();for(let _0x4a9d14=0x0;_0x4a9d14<_0x388535['length'];_0x4a9d14++){const _0x4aef5d=_0x388535[_0x4a9d14];!_0x5069a8['has'](_0x4aef5d)&&_0x4aef5d['previous']&&(_0x509aff['add'](_0x4aef5d['previous']),_0x4aef5d['previous']['next']===_0x4aef5d&&(_0x4aef5d['previous']['next']=null),_0x4aef5d['previous']=null),!_0x48081d['has'](_0x4aef5d)&&_0x4aef5d['next']&&(_0x509aff['add'](_0x4aef5d['next']),_0x4aef5d['next']['previous']===_0x4aef5d&&(_0x4aef5d['next']['previous']=null),_0x4aef5d['next']=null);}function _0x1bd56c(_0x20b40c,_0x5c60b0,_0x3c6035){for(let _0x19e560=_0x3c6035;_0x19e560<_0x5c60b0['length'];_0x19e560++){const _0x2d00d0=_0x454b20(_0x20b40c,_0x5c60b0[_0x19e560]);_0x2d00d0&&(_0x2d00d0[0x0]['next']=_0x2d00d0[0x1],_0x2d00d0[0x1]['previous']=_0x2d00d0[0x0],_0x48081d['add'](_0x2d00d0[0x0]),_0x5069a8['add'](_0x2d00d0[0x1]));}}function _0x454b20(_0x36862a,_0x5d190c){if(_0x36862a['author']['id']!==_0x5d190c['author']['id'])return null;const _0x5b253f=_0x48ce69['get'](_0x36862a)(_0x36862a,_0x5d190c,_0x3901cb['get'](_0x36862a),_0x3901cb['get'](_0x5d190c));if(!_0x5b253f)return null;return _0x48ce69['get'](_0x5d190c)(_0x36862a,_0x5d190c,_0x3901cb['get'](_0x36862a),_0x3901cb['get'](_0x5d190c))?_0x5b253f[0x1]['commentThread']&&_0x5b253f[0x1]['commentThread']['length']?null:_0x5b253f:null;}_0x509aff['size']&&this['_refreshSuggestionsChain'](_0x509aff);}['_refreshAttributeSuggestionsChain'](_0x18b0ae){if(0x0==_0x18b0ae['length'])return;const _0x10d073=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2bef0a=>'attribute'==_0x2bef0a['type']&&_0x2bef0a['_isDataLoaded']),_0x2470cd=[],_0x41ce57=new Map();for(const _0x50c068 of _0x10d073){const _0x37d9a0=_0x421d24(_0x50c068['attributes']);_0x41ce57['has'](_0x37d9a0)||(_0x41ce57['set'](_0x37d9a0,_0x2470cd['length']),_0x2470cd['push']([]));const _0x15e5ff=_0x41ce57['get'](_0x37d9a0);_0x2470cd[_0x15e5ff]['push'](_0x50c068);}!(function(){_0x2470cd['sort']((_0xea745c,_0x256dd1)=>{const _0x2910ea=_0xea745c[0x0]['createdAt'],_0x405b55=_0x256dd1[0x0]['createdAt'];return _0x2910ea==_0x405b55?_0xea745c[0x0]['attributes']['groupId']<_0x256dd1[0x0]['attributes']['groupId']?-0x1:0x1:_0x2910ea<_0x405b55?-0x1:0x1;});for(const _0x28c80f of _0x2470cd)_0x28c80f['sort']((_0x5ea407,_0x3f408c)=>_0x5ea407['id']<_0x3f408c['id']?-0x1:0x1);}());for(let _0x57be19=0x0;_0x57be19<_0x2470cd['length'];_0x57be19++){if(0x0==_0x2470cd[_0x57be19]['length'])continue;const _0x1ce351=[];for(let _0x22cb67=_0x57be19+0x1;_0x22cb67<_0x2470cd['length'];_0x22cb67++)0x0!=_0x2470cd[_0x22cb67]['length']&&_0x2bf694(_0x2470cd[_0x57be19],_0x2470cd[_0x22cb67])&&_0x1ce351['push'](_0x22cb67);for(const _0x25f091 of _0x1ce351)_0x2470cd[_0x57be19]=_0x2470cd[_0x57be19]['concat'](_0x2470cd[_0x25f091]),_0x2470cd[_0x25f091]=[];}for(const _0x935e11 of _0x2470cd)for(let _0x4a8206=0x0;_0x4a8206<_0x935e11['length'];_0x4a8206++){const _0x2475de=_0x935e11[_0x4a8206+0x1]||null;_0x935e11[_0x4a8206]['next']!==_0x2475de&&(_0x935e11[_0x4a8206]['next']=_0x2475de);}for(const _0x22bc54 of _0x2470cd)for(let _0x165b66=0x0;_0x165b66<_0x22bc54['length'];_0x165b66++){const _0x896ca1=_0x22bc54[_0x165b66-0x1]||null;_0x22bc54[_0x165b66]['previous']!==_0x896ca1&&(_0x22bc54[_0x165b66]['previous']=_0x896ca1);}function _0x2bf694(_0x1f8504,_0x40be7b){if(_0x1f8504[0x0]['attributes']['groupId']!==_0x40be7b[0x0]['attributes']['groupId']&&_0x1f8504[0x0]['author']!==_0x40be7b[0x0]['author'])return!0x1;if(!function(_0x3200d2,_0x50e2e7){if(!_0x3200d2['hasComments']&&!_0x50e2e7['hasComments'])return!0x0;if(_0x3200d2['hasComments']&&_0x50e2e7['hasComments'])return!0x1;if(_0x3200d2['hasComments']&&_0x50e2e7['createdAt']<_0x3200d2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x50e2e7['hasComments']&&_0x3200d2['createdAt']<_0x50e2e7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1f8504[0x0],_0x40be7b[0x0]))return!0x1;const _0x4c73cd=Ut(_0x1f8504[0x0]['attributes'],['groupId','trackingSessionId']),_0x82a3e2=Ut(_0x40be7b[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x50425d(_0x4c73cd,_0x82a3e2))return!0x1;if(_0x1f8504[0x0]['attributes']['groupId']==_0x40be7b[0x0]['attributes']['groupId'])return!0x0;if(_0x1f8504[0x0]['attributes']['trackingSessionId']!==_0x40be7b[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1f8504['every'](_0x42c1ab=>_0x40be7b['some'](_0x5dd48f=>_0x42c1ab['getFirstRange']()['isEqual'](_0x5dd48f['getFirstRange']())))&&_0x40be7b['every'](_0x414bea=>_0x1f8504['some'](_0x496779=>_0x414bea['getFirstRange']()['isEqual'](_0x496779['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x228329){const _0x228253=Array['from'](_0x228329),_0xcb7e17=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4e1066=_0xcb7e17['filter'](_0x434f83=>!_0x228329['has'](_0x434f83)),_0x146690=new Map(_0x228253['map'](_0x1e5ce5=>[_0x1e5ce5,this['_suggestionFactory']['getSuggestionCallback'](_0x1e5ce5['type'],_0x1e5ce5['subType'],'join')])),_0x4e9a02=new Map(_0xcb7e17['map'](_0x4ccdf8=>[_0x4ccdf8,_0x4ccdf8['getRanges']()]));for(let _0x24702d=0x0;_0x24702d<_0x228253['length'];_0x24702d++){if(_0x2ecf16(this,_0x228253[_0x24702d],_0x228253,_0x24702d+0x1))return!0x0;}for(let _0xacbab9=0x0;_0xacbab9<_0x228253['length'];_0xacbab9++){if(_0x2ecf16(this,_0x228253[_0xacbab9],_0x4e1066,0x0))return!0x0;}return!0x1;function _0x2ecf16(_0x2d6ebb,_0x17de68,_0x208f14,_0x1db3fe){for(let _0x27856a=_0x1db3fe;_0x27856a<_0x208f14['length'];_0x27856a++){const _0x1680aa=_0x208f14[_0x27856a];if(_0x1680aa['type']!==_0x17de68['type']||_0x1680aa['author']['id']!==_0x17de68['author']['id']||_0x1680aa['subType']!==_0x17de68['subType'])continue;if(!Qt(_0x17de68,_0x1680aa))continue;if('attribute'==_0x17de68['type']&&_0x17de68['data']['oldValue']!=_0x1680aa['data']['oldValue'])continue;if('attribute'==_0x17de68['type']&&_0x2d6ebb['_isBlockAttribute'](_0x17de68['data']['key']))continue;if('formatBlock'==_0x17de68['type']){const _0x4a72bb=_0x2d6ebb['editor']['model'],_0x12c737=_0x17de68['getContainedElement']();if(_0x12c737&&(_0x4a72bb['schema']['isObject'](_0x12c737)||_0x4a72bb['schema']['isLimit'](_0x12c737)))continue;}const _0x1f7ba0=_0x146690['get'](_0x17de68),_0xcdd51a=_0x4e9a02['get'](_0x17de68),_0x28530c=_0x4e9a02['get'](_0x1680aa),_0x475799=_0x17de68['commentThread']&&_0x17de68['commentThread']['length'],_0x3dd960=_0x1680aa['commentThread']&&_0x1680aa['commentThread']['length'];if(!_0x475799&&_0x1f7ba0(_0x28530c,_0xcdd51a))return _0x2d6ebb['_joinSuggestions'](_0x1680aa,_0x17de68),_0x4e9a02['delete'](_0x17de68),!0x0;if(!_0x3dd960&&_0x1f7ba0(_0xcdd51a,_0x28530c))return _0x2d6ebb['_joinSuggestions'](_0x17de68,_0x1680aa),_0x4e9a02['delete'](_0x1680aa),!0x0;}return!0x1;}}['_joinSuggestions'](_0x385540,_0x1d38af){if(_0x385540['isMultiRange']){for(const _0x344996 of _0x1d38af['getRanges']())_0x385540['addRange'](_0x344996);}else{const _0xcb28c4=_0x1d38af['getFirstRange']()['end'];this['_setSuggestionRange'](_0x385540,this['_model']['createRange'](_0x385540['getFirstRange']()['start'],_0xcb28c4));}_0x1d38af['removeMarkers']();}['_getMarkerAnnouncementText'](_0x289518,_0x50e140,_0xb49cd7){const _0xe702eb=_0x289518['startsWith']('format')||_0x289518['startsWith']('attribute')?'FORMATTING':_0x289518['toUpperCase']();return o(this['editor']['locale'],_0x50e140+'_'+_0xe702eb+'_SUGGESTION_ANNOUNCEMENT',_0xb49cd7);}['_initAriaMarkerChangeAnnouncements'](){const _0x3bc31e=this['editor'];if(!_0x3bc31e['ui'])return;const {ariaLiveAnnouncer:_0x40becd}=_0x3bc31e['ui'];_0x599458(this['_model'],({left:_0x199f04,entered:_0x109925})=>{for(const _0x3b5019 of _0x199f04){const {group:_0x17b3ca,type:_0x4e517a}=this['_splitMarkerName'](_0x3b5019['name']);if('suggestion'===_0x17b3ca){_0x40becd['announce'](this['_getMarkerAnnouncementText'](_0x4e517a,'LEAVE'));break;}}for(const _0xcbf164 of _0x109925){const {group:_0x133170,type:_0x3867ba}=this['_splitMarkerName'](_0xcbf164['name']);if('suggestion'===_0x133170){_0x40becd['announce'](this['_getMarkerAnnouncementText'](_0x3867ba,'ENTER',_0x2ee597(_0x4f2c95)));break;}}});}['_processAttributeChanges'](_0x4288bf){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a84b0=this['editor'],_0x382fae=_0x2a84b0['model']['document']['differ']['getChanges']();if(0x0==_0x382fae['length'])return!0x1;const _0x1654a5=[],_0x21075d=_0x382fae['filter'](_0x5e410b=>'attribute'==_0x5e410b['type']),_0x5778fb=_0x382fae['filter'](_0x1e04d1=>'insert'==_0x1e04d1['type']&&'$text'!=_0x1e04d1['name']),_0x2e8dee=_0x382fae['filter'](_0x4a8b29=>'remove'==_0x4a8b29['type']&&'$text'!=_0x4a8b29['name']);for(const _0x418667 of _0x21075d)_0x1654a5['push']({'key':_0x418667['attributeKey'],'newValue':_0x418667['attributeNewValue'],'oldValue':_0x418667['attributeOldValue'],'range':qt(_0x418667['range'],_0x2a84b0['model'])});for(const _0x38d4cc of _0x5778fb){const _0x3b17be=_0x2e8dee['find'](_0x2e885a=>_0x2e885a['position']['isEqual'](_0x38d4cc['position']));_0x3b17be&&_0x1654a5['push']({'key':m,'newValue':_0x38d4cc['name'],'oldValue':_0x3b17be['name'],'range':_0x2a84b0['model']['createRangeOn'](_0x38d4cc['position']['nodeAfter'])});}return 0x0!=_0x1654a5['length']&&this['_reduceExistingSuggestions'](_0x4288bf,_0x1654a5);}['_processAttributeSuggestions'](_0x1b6bbc){let _0x40c90d=!0x1;const _0x53224e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x205594=>_0x205594['data']['newRange']&&_0x205594['name']['startsWith']('suggestion:attribute:'));for(const _0x35900e of _0x53224e){const {subType:_0x688ad6,id:_0x403a44}=this['_splitMarkerName'](_0x35900e['name']),_0x562b21=_0x688ad6['split']('|')[0x0];for(const _0x58697c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x58697c['id']!=_0x403a44&&'attribute'==_0x58697c['type']&&_0x58697c['data']&&_0x58697c['data']['key']==_0x562b21&&_0x58697c['getFirstRange']()['isIntersecting'](_0x35900e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x58697c,_0x35900e['data']['newRange'],_0x1b6bbc),_0x40c90d=!0x0);}return _0x40c90d;}['recordAttributeChanges'](_0x9b2574){this['_recordAttributeSuggestions']=!0x0,_0x9b2574();}['_isRegisteredAttribute'](_0x3d251f){const _0x395e12=this['_isBlockAttribute'](_0x3d251f),_0x305660=this['_isInlineAttribute'](_0x3d251f);return _0x395e12||_0x305660;}['_reduceExistingSuggestions'](_0x38d50a,_0x3afa78){if(0x0==_0x3afa78['length'])return!0x1;let _0x4a605c=!0x1;for(const _0x4b6e43 of _0x3afa78){const _0xe5e3af=this['_findSuggestions'](_0x4b6e43['range'],'attribute')['filter'](_0x5620ce=>!_0x5620ce['meta']['isNextTo'])['map'](_0x1f2d36=>_0x1f2d36['suggestion']),_0x170034=_0x421d24({'newValue':_0x4b6e43['newValue']});_0xe5e3af['filter'](_0x5c2a9=>{const [_0x3e62ad,_0x32cb0b]=_0x5c2a9['subType']['split']('|');return _0x3e62ad==_0x4b6e43['key']&&_0x32cb0b!=_0x170034;})['forEach'](_0x5e7446=>{this['_reduceSuggestionAttributeRange'](_0x5e7446,_0x4b6e43['range'],_0x38d50a),_0x4a605c=!0x0;});}return _0x4a605c;}['_reduceSuggestionAttributeRange'](_0x48016b,_0x595b8b,_0x1003df){const _0x5db0e6=_0x48016b['getFirstRange']()['getDifference'](_0x595b8b);0x0!==_0x5db0e6['length']?0x1!==_0x5db0e6['length']?this['_breakSuggestionMarker'](_0x48016b,_0x595b8b['start'],_0x595b8b['end']):this['_setSuggestionRange'](_0x48016b,_0x5db0e6[0x0]):_0x1003df['removeMarker'](_0x48016b['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b656f){this['_editor']=_0x5b656f,this['_model']=_0x5b656f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4d1612,_0x3b6edb,_0x506e14,_0x2c06f1,_0x3248fe,_0x428b1c,_0x20e961){return new T(this['_model'],{'type':_0x4d1612,'subType':_0x3b6edb,'id':_0x506e14,'originalSuggestionId':_0x20e961,'author':_0x2c06f1,'creator':_0x2c06f1,'attributes':_0x3248fe,'onAttributesChange':_0x428b1c,'onAccept':(..._0x4be0a5)=>this['getSuggestionCallback'](_0x4d1612,_0x3b6edb,'accept')(..._0x4be0a5),'onDiscard':(..._0x4469f6)=>this['getSuggestionCallback'](_0x4d1612,_0x3b6edb,'discard')(..._0x4469f6)});}['registerCustomCallback'](_0x3f6ef6,_0x49b165,_0x10e93b,_0x1df354){const _0x510c39=_0x3f6ef6+':'+_0x49b165+':'+_0x10e93b;this['_customCallbacks']['set'](_0x510c39,_0x1df354);}['getSuggestionCallback'](_0x4eca86,_0x544d9e,_0x1e8f1f){const _0x32c959=_0x4eca86+':'+_0x544d9e+':'+_0x1e8f1f;return this['_customCallbacks']['get'](_0x32c959)||this['_defaultCallbacks']['get'](_0x4eca86+':'+_0x1e8f1f);}['_registerDefaultCallbacks'](){const _0x198386=()=>!0x1,_0x3ef31e=_0x36a2de=>{_0x36a2de['sort']((_0x62374,_0x28aa23)=>_0x62374['start']['isBefore'](_0x28aa23['start'])?0x1:-0x1),this['_model']['change'](_0x49f0bd=>{for(const _0x376e96 of _0x36a2de){let _0x198147;_0x198147=_0x376e96['end']['isAtEnd']&&_0x376e96['end']['parent']==_0x376e96['start']['nodeAfter']?_0x49f0bd['createSelection'](_0x376e96['start']['nodeAfter'],'on'):_0x49f0bd['createSelection'](_0x376e96),this['_model']['deleteContent'](_0x198147,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x83d963=(_0x43072a,_0x3a2b0c)=>{_0x3a2b0c&&this['_model']['change'](_0x2e2d8f=>{const {commandName:_0x2d3eab,commandParams:_0x542459=[]}=_0x3a2b0c,_0x339f04=_0x43072a['map'](_0x386a51=>(Pt(_0x386a51)&&(_0x386a51=this['_model']['createRange'](_0x386a51['end'])),_0x386a51))['filter'](_0x229f41=>'$graveyard'!==_0x229f41['root']['rootName']);if(_0x339f04['length']<0x1)return;const _0x57010e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x192c90=>_0x51ea19['fromRange'](_0x192c90));_0x2e2d8f['setSelection'](_0x339f04);for(const _0x499162 of this['_editor']['commands']['commands']())_0x499162['refresh']();_0x542459['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2d3eab,..._0x542459);const _0x53dd8b=_0x57010e['filter'](_0x560928=>'$graveyard'!=_0x560928['root']['rootName']);_0x53dd8b['length']>0x0&&_0x2e2d8f['setSelection'](_0x53dd8b);for(const _0x2a6b21 of _0x57010e)_0x2a6b21['detach']();});},_0x1beef7=(_0x51e6ee,_0x442631)=>0x1==_0x51e6ee['length']&&0x1==_0x442631['length']&&_0x51e6ee[0x0]['end']['isEqual'](_0x442631[0x0]['start']),_0x50f74e=(_0x3adad8,_0xde50c0,_0x467d26,_0x23a5ed)=>Wt(_0x3adad8,_0xde50c0,_0x467d26,_0x23a5ed)?[_0x3adad8,_0xde50c0]:Wt(_0xde50c0,_0x3adad8,_0x23a5ed,_0x467d26)?[_0xde50c0,_0x3adad8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x198386),this['_defaultCallbacks']['set']('insertion:discard',_0x3ef31e),this['_defaultCallbacks']['set']('insertion:join',_0x1beef7),this['_defaultCallbacks']['set']('insertion:chain',_0x50f74e),this['_defaultCallbacks']['set']('deletion:accept',_0x3ef31e),this['_defaultCallbacks']['set']('deletion:discard',_0x198386),this['_defaultCallbacks']['set']('deletion:join',_0x1beef7),this['_defaultCallbacks']['set']('deletion:chain',_0x50f74e),this['_defaultCallbacks']['set']('formatInline:accept',_0x83d963),this['_defaultCallbacks']['set']('formatInline:discard',_0x198386),this['_defaultCallbacks']['set']('formatInline:join',_0x1beef7),this['_defaultCallbacks']['set']('formatInline:chain',_0x198386),this['_defaultCallbacks']['set']('formatBlock:accept',_0x83d963),this['_defaultCallbacks']['set']('formatBlock:discard',_0x198386),this['_defaultCallbacks']['set']('formatBlock:join',_0x1beef7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x198386),this['_defaultCallbacks']['set']('attribute:accept',_0x198386),this['_defaultCallbacks']['set']('attribute:discard',(_0x22cd61,_0x49f816)=>{if(!_0x49f816)return;const _0x257bc6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x34714f=>{if(_0x49f816['key']==m)for(const _0x4395cf of _0x22cd61){const _0x18df09=_0x4395cf['start']['nodeAfter'],_0x2e3436=_0x49f816['oldValue'];_0x34714f['rename'](_0x18df09,_0x2e3436);}else{if(_0x257bc6['_isBlockAttribute'](_0x49f816['key'])){for(const _0x2af420 of _0x22cd61)void 0x0!==_0x49f816['oldValue']?_0x34714f['setAttribute'](_0x49f816['key'],_0x49f816['oldValue'],_0x2af420['start']['nodeAfter']):_0x34714f['removeAttribute'](_0x49f816['key'],_0x2af420['start']['nodeAfter']);}else{for(const _0x4be4c5 of _0x22cd61)_0x49f816['oldValue']?_0x34714f['setAttribute'](_0x49f816['key'],_0x49f816['oldValue'],_0x4be4c5):_0x34714f['removeAttribute'](_0x49f816['key'],_0x4be4c5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1beef7);}}function Ft(_0x36da23,_0x33f5c5,_0x9b8933){for(const _0x379eeb of _0x33f5c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x379eeb['root']==_0x379eeb)return!0x1;if(!_0x9b8933['containsItem'](_0x379eeb))return!0x1;if(_0x36da23['isObject'](_0x379eeb)||_0x36da23['isLimit'](_0x379eeb))return!0x0;}return!0x1;}function Pt(_0x3385dc){return _0x3385dc['end']['parent']==_0x3385dc['start']['nodeAfter']&&_0x3385dc['end']['isAtStart'];}function Gt(_0x2fe36a,_0x57e427,_0x526d2,_0x2ac650){const _0x43f56d=_0x24f7d5=>!_0x24f7d5['item']['is']('$textProxy')&&!_0x2ac650['isObject'](_0x24f7d5['item']),_0xb7caeb=_0x2fe36a['start']['getLastMatchingPosition'](_0x43f56d),_0x4934c1=_0x2fe36a['end']['getLastMatchingPosition'](_0x43f56d,{'direction':'backward'});return(!_0x2fe36a['start']['isEqual'](_0xb7caeb)||!_0x2fe36a['end']['isEqual'](_0x4934c1))&&(_0xb7caeb['isBefore'](_0x4934c1)?_0x526d2['updateMarker'](_0x57e427,{'range':_0x526d2['createRange'](_0xb7caeb,_0x4934c1)}):_0x526d2['removeMarker'](_0x57e427),!0x0);}function Lt(_0x55c9be){return _0x421d24(_0x55c9be);}function Jt(_0x45228a){const _0x39d485=_0x45228a['start']['nodeAfter'];return _0x39d485&&_0x39d485['is']('element');}function Kt(_0x27e0f8){return Pt(_0x27e0f8)||function(_0x219785){return _0x219785['start']['parent']==_0x219785['end']['nodeBefore']&&_0x219785['start']['isAtEnd'];}(_0x27e0f8);}function Ht(_0x382f14,_0x31ac2b){try{const _0x429af0=_0x382f14['getRange']();for(const _0x2223bd of _0x31ac2b)if(_0x382f14!==_0x2223bd&&_0x429af0&&_0x429af0['isIntersecting'](_0x2223bd['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x8635c4,_0x4a4cdd){return null==_0x8635c4['end']['nodeBefore']&&_0x8635c4['end']['parent']==_0x8635c4['start']['nodeAfter']?zt(_0x8635c4['start']['nodeAfter'],_0x4a4cdd):_0x8635c4;}function zt(_0x3e6dec,_0x334052){const _0x23fb65=_0x334052['schema']['isObject'](_0x3e6dec)||_0x334052['schema']['isSelectable'](_0x3e6dec);return _0x334052['createRange'](_0x334052['createPositionAt'](_0x3e6dec,'before'),_0x23fb65?_0x334052['createPositionAfter'](_0x3e6dec):_0x334052['createPositionAt'](_0x3e6dec,'end'));}function Wt(_0x328747,_0x23c2de,_0x3d6c84,_0x4de01c){return!!Qt(_0x328747,_0x23c2de)&&_0x3d6c84['end']['isEqual'](_0x4de01c['start']);}function Qt(_0x3f262e,_0x3fc791){if(!_0x3f262e['_isDataLoaded']||!_0x3fc791['_isDataLoaded'])return!0x1;const _0x2aef7d=new Set(Object['keys'](_0x3f262e['attributes'])),_0x60dd3f=new Set(Object['keys'](_0x3fc791['attributes']));if(_0x2aef7d['delete']('groupId'),_0x60dd3f['delete']('groupId'),0x0==_0x2aef7d['size']&&0x0==_0x60dd3f['size'])return!0x0;if(_0x2aef7d['size']!=_0x60dd3f['size'])return!0x1;const _0x1639f9={..._0x3f262e['attributes']},_0x232d9a={..._0x3fc791['attributes']};return delete _0x1639f9['groupId'],delete _0x232d9a['groupId'],JSON['stringify'](_0x1639f9)==JSON['stringify'](_0x232d9a);}function Xt(_0x165f57,_0x4cd16b){const _0x4b9d3c=Yt(_0x165f57['attributes']),_0x507ffa=Yt(_0x4cd16b);if(!_0x165f57['_isDataLoaded'])return!0x1;for(const _0xfa9878 of Object['keys'](_0x507ffa))if(!_0x50425d(_0x4b9d3c[_0xfa9878],_0x507ffa[_0xfa9878]))return!0x1;return!0x0;}function Yt(_0x5cb9f0){const _0x4074c0=Object['assign']({},_0x5cb9f0);return delete _0x4074c0['skipNestingCheck'],delete _0x4074c0['tablePasteChainId'],_0x4074c0;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x4e23fc(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3b6088,_0x1d8377,_0x32eca2,_0x4fad5e){super(),this['model']=_0x1d8377,this['view']=_0x32eca2,this['commentThreadController']=_0x4fad5e,this['_editor']=_0x3b6088,this['_acceptCommand']=_0x3b6088['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3b6088['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40b204,_0x5a4102)=>_0x40b204||_0x5a4102),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x43d69e=>_0x43d69e&&this['_editor']['model']['canEditAt'](_0x1d8377['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5db80b=>_0x5db80b&&this['_editor']['model']['canEditAt'](_0x1d8377['getRanges']())),this['_pendingAction']=null,_0x32eca2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x32eca2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x32eca2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x32eca2,'change:isDirty',()=>{_0x32eca2['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 _0x1406bd=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1406bd);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x5f0f48{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d39ca,_0x32c1a0,_0xf5d436,_0x2d7afb){super(_0x4d39ca),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x28eb53(_0x4d39ca,o(_0x4d39ca,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x32c1a0['authoredAt']),this['bind']('authoredAt')['to'](_0x32c1a0),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',_0x32c1a0,'authoredAt',this,'descriptionParts',(_0x13c5ae,_0x4869c0,_0x822b2b)=>{const _0x3b5eb4=_0x822b2b['map'](_0x458817=>ls(_0x458817['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x13c5ae-0x1,_0x32c1a0['author']['name'],_0x4869c0?_0x2d7afb['formatDateTime'](_0x4869c0):'',new DOMParser()['parseFromString'](_0x3b5eb4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x212aff(),this['focusTracker']=new _0x3dc571(),this['keystrokes']=new _0xf9590d(),this['focusCycler']=new _0x1b12e5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x76080e=>_0x76080e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x32c1a0,this['_localUser']=_0xf5d436,this['_config']=_0x2d7afb,_0x2d7afb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x359702(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x545cb3}=this['_config'];this['commentsListView']=new _0x545cb3(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',_0x1531a0=>_0x1531a0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3250f7,_0x1651e8)=>_0x3250f7||!!_0x1651e8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x391ad5}=this['_config'],_0xcf307a=new _0x391ad5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4deb6d=_0xcf307a['commentInputView'];return _0xcf307a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4deb6d,'value',(_0x9e4655,_0x3a2394,_0x14ddea)=>!!_0x14ddea||_0x9e4655&&!_0x3a2394),_0x4deb6d['on']('submit',(_0x5d9cd9,_0x32bf7a)=>{this['fire']('addComment',_0x32bf7a),_0x4deb6d['editor']['setData']('');}),_0x4deb6d['on']('cancel',()=>this['focus']()),_0x4deb6d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xcf307a;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3f0f67,_0x39759b,_0x403e75,_0x3f0024){super(_0x3f0f67,_0x39759b,_0x403e75,_0x3f0024),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12ff99=>_0x12ff99&&_0x12ff99[0x0]?_0x12ff99[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x255697,_0x463809)=>{let _0x138a16='';for(const _0x20a9d0 of _0x255697)_0x138a16+='<p>'+ls(_0x20a9d0['content'],_0x20a9d0['color'])+'</p>';return _0x463809?_0x138a16:_0x4008f3(_0x138a16,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3f0024['SuggestionView'](_0x3f0f67,_0x39759b,{'formatDateTime':_0x3f0024['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 _0x47ac9a=this['bindTemplate'],_0x596cf4=[this['suggestionView']];return this['commentsListView']&&_0x596cf4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x596cf4['push'](this['commentThreadInputView']),_0x596cf4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x47ac9a['if']('isActive','ck-suggestion-wrapper--active'),_0x47ac9a['to']('type',_0x2e2ba5=>'ck-suggestion-'+_0x2e2ba5),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':_0x47ac9a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x596cf4};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x5f0f48{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x15a91d,_0x509cee,_0x5ae09f){super(_0x15a91d),this['_model']=_0x509cee,this['_config']=_0x5ae09f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x509cee),this['acceptButton']=this['_createButton'](o(_0x15a91d,'Accept\x20suggestion'),_0x416caf,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x15a91d,'Discard\x20suggestion'),_0x34fbc3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x19cd45(_0x15a91d,_0x509cee['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x212aff([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3dc571(),this['keystrokes']=new _0xf9590d(),this['focusCycler']=new _0x1b12e5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5a76b5=>_0x5a76b5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1e7f00=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1e7f00['innerHTML']=this['description'],this['on']('change:description',(_0x1a1a9c,_0x4adc66,_0x390af5)=>{_0x1e7f00['innerHTML']=_0x390af5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2031f3=this['bindTemplate'],_0x4c1dfd=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2031f3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2031f3['to']('authoredAt',_0x4c3b80=>this['_config']['formatDateTime'](_0x4c3b80))}]}]},{'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']&&_0x4c1dfd['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':_0x4c1dfd}]};}['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'](_0x3068d8,_0x490768,_0x5b128a,_0x4a5571,_0x3703e9){const _0x35ad19=new _0x56ba04(this['locale']);return _0x35ad19['set']({'label':_0x3068d8,'icon':_0x490768,'tooltip':!0x0,'tooltipPosition':_0x3703e9}),_0x35ad19['extendTemplate']({'attributes':{'class':_0x5b128a}}),_0x35ad19['on']('execute',()=>{this['fire'](_0x4a5571,this['_model']['id']);}),_0x35ad19;}['_setupKeyboardNavigation'](){const _0x2f3fb0=this['element'];this['keystrokes']['listenTo'](_0x2f3fb0);for(const _0x514cf6 of this['focusables'])this['focusTracker']['add'](_0x514cf6['element']),this['keystrokes']['listenTo'](_0x514cf6['element']);this['keystrokes']['set']('enter',(_0x3f6bd7,_0xcd973d)=>{_0x2f3fb0===_0x3f6bd7['target']&&(this['focusCycler']['focusFirst'](),_0xcd973d());}),this['keystrokes']['set']('esc',(_0xdf8f92,_0x1d98dd)=>{_0x2f3fb0!==_0xdf8f92['target']&&(this['focus'](),_0x1d98dd());});}}class u extends _0xc3381c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x187485,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x464edd){super(_0x464edd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3d2d04=this['editor']['config'];_0x3d2d04['define']('trackChanges.SuggestionThreadView',fe),_0x3d2d04['define']('trackChanges.SuggestionView',we),_0x3d2d04['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3d2d04['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x40a001,_0x1d9cee){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d9fbc,_0x5a3c83]of this['_handleControllerBuffer']){const _0x16f21e=this['_suggestionToController']['has'](_0x5d9fbc);_0x16f21e||_0x5a3c83?_0x16f21e&&_0x5a3c83&&this['_destroyController'](_0x5d9fbc):this['_initializeController'](_0x5d9fbc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x40a001,_0x1d9cee);}['init'](){const _0x12399=this['editor'],_0x56ae7c=_0x12399['plugins']['get']('TrackChangesEditing'),_0x1fd35e=_0x12399['plugins']['get']('Annotations'),_0x10ea21=_0x12399['plugins']['get']('EditorAnnotations'),_0x3e293b=_0x12399['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x10ea21['addSourceCollector'](()=>{const _0x47303c=[];for(const [_0x44c4b1,_0x36fbfd]of Array['from'](this['_suggestionToController'])){const _0x5aca50=_0x44c4b1['getAllAdjacentSuggestions'](),_0x44a7f5=[];for(const _0x5def7f of _0x5aca50){if(!_0x5def7f['isInContent'])continue;if(_0x5def7f['isMultiRange']){_0x44a7f5['push'](..._0x5def7f['getRanges']());continue;}const _0x4862fc=_0x5def7f['getFirstRange']();if(_0x44a7f5['length']>0x0){const _0x5b1e1c=_0x44a7f5[0x0]['getJoined'](_0x4862fc);if(_0x5b1e1c){_0x44a7f5[0x0]=_0x5b1e1c;continue;}}_0x44a7f5['push'](_0x4862fc);}_0x47303c['push']([_0x36fbfd['view'],_0x44a7f5]);}return _0x47303c;}),this['listenTo'](_0x56ae7c,'suggestionLoaded',(_0x2d7ad5,_0x535cbf)=>{this['listenTo'](_0x535cbf,'change:previous',(_0x4dc8ee,_0x537782,_0x34b453,_0x27aea5)=>{_0x535cbf['isInContent']&&(null==_0x34b453?(this['_updateController'](_0x27aea5['head']),this['_handleSuggestionControllerDelayed'](_0x535cbf,!0x1)):(this['_updateController'](_0x34b453['head']),null==_0x27aea5&&this['_handleSuggestionControllerDelayed'](_0x535cbf,!0x0)));}),null!==_0x535cbf['previous']?this['_updateController'](_0x535cbf['head']):this['_handleSuggestionControllerDelayed'](_0x535cbf,!0x1);}),this['listenTo'](_0x56ae7c,'suggestionUnloaded',(_0x4a129c,_0x161d69,_0x3b8ed4)=>{this['stopListening'](_0x161d69,'change:previous'),this['_handleControllerBuffer']['delete'](_0x161d69),this['_suggestionToController']['has'](_0x161d69)&&this['_destroyController'](_0x161d69),_0x3b8ed4&&this['_updateController'](_0x3b8ed4['head']);}),this['listenTo'](_0x56ae7c,'suggestionChanged',(_0xbf5a85,_0x13f32e)=>{this['_updateController'](_0x13f32e);}),this['listenTo'](_0x1fd35e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e293b,'addComment',(_0x5f5d3e,{threadId:_0x4c6b3e,isFromAdapter:_0x19d1bb})=>{if(_0x19d1bb||!_0x56ae7c['hasSuggestion'](_0x4c6b3e))return;const _0xb0fb48=_0x56ae7c['getSuggestion'](_0x4c6b3e);this['_suggestionToController']['get'](_0xb0fb48)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x146512=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x206d4d;for(const _0x4ee499 in _0x146512){const _0x1a94b9=_0x4ee499,_0x1ce436=_0x146512[_0x1a94b9];if('trackChangesLicenseKeyValid'==_0x1ce436||'trackChangesLicenseKeyInvalid'==_0x1ce436||'trackChangesLicenseKeyExpired'==_0x1ce436||'trackChangesLicenseKeyDomainLimit'==_0x1ce436||'trackChangesLicenseKeyNotAllowed'==_0x1ce436||'trackChangesLicenseKeyEvaluationLimit'==_0x1ce436||'trackChangesLicenseKeyTrialLimit'==_0x1ce436||'trackChangesLicenseKeyUsageLimit'==_0x1ce436){delete _0x146512[_0x1a94b9],_0x206d4d=_0x1ce436,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x206d4d&&_0x146512['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x206d4d&&_0x146512['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x206d4d&&_0x146512['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x206d4d&&_0x146512['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x206d4d&&_0x146512['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x206d4d&&_0x146512['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x206d4d&&_0x146512['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3b5633){const _0x27197a=this['_suggestionToController']['get'](_0x3b5633);if(!_0x27197a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x27197a['view'])||null;}['getSuggestionForAnnotation'](_0x2f6a41){const _0x34f511=this['_viewToController']['get'](_0x2f6a41['innerView']);return _0x34f511?_0x34f511['model']:null;}['_refreshActiveMarkers'](){const _0x393de6=this['editor']['plugins']['get']('Annotations'),_0x17a254=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22a43b=Array['from'](_0x393de6['activeAnnotations'],_0x1c531e=>_0x1c531e['innerView'])['filter'](_0x45655e=>this['_viewToController']['has'](_0x45655e)),_0xb5db24=[];for(const _0x57d167 of _0x22a43b){const _0x1ce5c0=this['_viewToController']['get'](_0x57d167)['model']['getAllAdjacentSuggestions']();_0xb5db24['push'](..._0x1ce5c0['reduce']((_0x4a85bb,_0xa88f63)=>[..._0x4a85bb,..._0xa88f63['getMarkerNames']()],[]));}_0x17a254['activeMarkers']=_0xb5db24;}['_addUIComponentsToFactory'](){const _0x467cbf=this['editor'],_0xaa9a09=_0x467cbf['locale'],_0x14bc88=o(_0xaa9a09,'Track\x20changes'),_0x2e3531=new _0x364833([{'type':'switchbutton','model':new _0x27d310({'withText':!0x0,'isToggleable':!0x0,'label':_0x14bc88,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x467cbf['plugins']['has']('TrackChangesPreview')&&_0x2e3531['addMany']([{'type':'separator'},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x181a72 of _0x2e3531)if(ke(_0x181a72)){const _0x3585fb=_0x467cbf['commands']['get'](_0x181a72['model']['commandName']);_0x181a72['model']['bind']('isOn','isEnabled')['to'](_0x3585fb,'value','isEnabled');}_0x467cbf['ui']['componentFactory']['add']('trackChanges',_0x2e0a55=>this['_createToolbarButton'](_0x2e0a55,_0x2e3531,_0x14bc88)),_0x467cbf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5a0676=>this['_createMenuBarMenu'](_0x5a0676,_0x2e3531,_0x14bc88));}['_createToolbarButton'](_0x5a3500,_0x5bc159,_0x403e2e){const _0x280932=_0x2a1174(_0x5a3500,_0x182c12),_0x15dfcc=this['editor']['commands']['get']('trackChanges');_0x280932['buttonView']['set']({'tooltip':_0x403e2e,'label':_0x403e2e,'icon':_0x3e8ec7}),_0x280932['buttonView']['bind']('isOn')['to'](_0x15dfcc,'value'),_0x280932['buttonView']['on']('execute',()=>{_0x15dfcc['execute'](),this['editor']['editing']['view']['focus']();}),_0xf9d567(_0x280932,_0x5bc159,{'role':'menu'});const _0x2ac0c3=[];for(const _0x5ec7a2 of _0x5bc159)ke(_0x5ec7a2)&&_0x2ac0c3['push'](this['editor']['commands']['get'](_0x5ec7a2['model']['commandName']));const _0x5052a7=_0x280932['buttonView'];return _0x5052a7['actionView']['unbind']('isEnabled'),_0x5052a7['arrowView']['unbind']('isEnabled'),_0x5052a7['actionView']['bind']('isEnabled')['to'](_0x15dfcc,'isEnabled'),_0x5052a7['arrowView']['bind']('isEnabled')['toMany'](_0x2ac0c3,'isEnabled',(..._0x3292af)=>_0x3292af['some'](_0xeda63b=>_0xeda63b)),_0x280932['on']('execute',_0x2986f4=>{this['editor']['execute'](_0x2986f4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x280932;}['_createMenuBarMenu'](_0xf4c768,_0x15c492,_0x78bc7){const _0x4ca1e0=new _0x422518(_0xf4c768),_0x4dffed=this['editor']['commands']['get']('trackChanges');_0x4ca1e0['buttonView']['set']({'label':_0x78bc7,'icon':_0x3e8ec7});const _0x1d521b=new _0x393953(_0xf4c768);for(const _0x2a3da9 of _0x15c492){if('separator'==_0x2a3da9['type']){_0x1d521b['items']['add'](new _0x4d71e8(_0xf4c768));continue;}const _0x4f3177=new _0xfff36b(_0xf4c768,_0x4ca1e0),_0x493a4a=new _0x38b565(_0xf4c768),_0x320404=_0x2a3da9['model'];_0x493a4a['bind'](...Object['keys'](_0x320404))['to'](_0x320404),_0x493a4a['delegate']('execute')['to'](_0x4ca1e0),_0x493a4a['on']('execute',()=>{this['editor']['execute'](_0x320404['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f3177['children']['add'](_0x493a4a),_0x1d521b['items']['add'](_0x4f3177);}return _0x4ca1e0['bind']('isEnabled')['to'](_0x4dffed,'isEnabled'),_0x4ca1e0['panelView']['children']['add'](_0x1d521b),_0x4ca1e0;}['_initializeController'](_0x1746f1){const _0x3454d7=this['editor'],_0x2de12d=_0x3454d7['config'],_0x5f5578=_0x3454d7['plugins']['get']('Annotations'),_0x40b932=_0x3454d7['plugins']['get']('CommentsRepository'),_0x459dec=_0x3454d7['plugins']['get']('EditorAnnotations'),_0x50cee3=_0x3454d7['plugins']['get'](_0x187485)['me'],_0x5ac05e=_0x2de12d['get']('trackChanges')['SuggestionThreadView'],_0x273c05=_0x2de12d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1554a8,CommentThreadInputView:_0x359b6d}=_0x3454d7['plugins']['get']('CommentsUI');let _0x2210e3,_0xf335e5,_0x50b1c7;this['_annotationViews']['has'](_0x1746f1['id'])?(_0xf335e5=this['_annotationViews']['get'](_0x1746f1['id']),_0x2210e3=_0xf335e5['mainView']):(_0x2210e3=new _0x5ac05e(_0x3454d7['locale'],_0x1746f1,_0x50cee3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2de12d['get']('comments.editorConfig'),'licenseKey':_0x2de12d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2de12d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2de12d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2de12d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x141e15(_0x2de12d['get']('locale'),_0x3454d7['locale']),'CommentView':_0x2de12d['get']('comments')['CommentView'],'CommentsListView':_0x1554a8,'CommentThreadInputView':_0x359b6d,'SuggestionView':_0x273c05}),_0x2210e3['suggestionView']['acceptButton']['on']('execute',()=>{_0x3454d7['editing']['view']['focus']();}),_0x2210e3['suggestionView']['discardButton']['on']('execute',()=>{_0x3454d7['editing']['view']['focus']();}),_0xf335e5=_0x5f5578['createAnnotationView'](this['editor']['locale'],_0x2210e3),_0xf335e5['bind']('isDirty')['to'](_0x2210e3,'isDirty'),_0xf335e5['bind']('length')['to'](_0x2210e3),_0xf335e5['bind']('type')['to'](_0x2210e3,'type',_0x213daa=>'suggestion-'+_0x213daa),_0x2210e3['on']('escape',()=>{_0x50b1c7['fire']('escape');}),this['_annotationViews']['set'](_0x1746f1['id'],_0xf335e5));const _0x28872f=_0x40b932['createCommentThreadController'](_0x1746f1['commentThread'],_0x2210e3),_0x3592e1=new pe(_0x3454d7,_0x1746f1,_0x2210e3,_0x28872f),_0x162182=_0x1746f1['getAllAdjacentSuggestions']()['filter'](_0x33ff2d=>_0x33ff2d['isInContent']);_0x2210e3['descriptionParts']=_0x3454d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x162182),this['_suggestionToController']['set'](_0x1746f1,_0x3592e1),this['_viewToController']['set'](_0x2210e3,_0x3592e1);const _0x224a3f=()=>{const _0x1ad62f=[],_0x6118f6=_0x1746f1['getAllAdjacentSuggestions']()['filter'](_0x3cc13c=>_0x3cc13c['isInContent']);for(const _0x159175 of _0x6118f6)_0x1ad62f['push'](..._0x159175['getMarkers']());return _0x5bcafd(_0x3454d7['editing'],_0x1ad62f);};_0x50b1c7=_0x5f5578['createAnnotation']({'view':_0xf335e5,'target':_0x224a3f,'type':()=>'suggestion-'+_0x3592e1['view']['type'],'isVisible':!!_0x224a3f()}),_0x40b932['_bindAnnotationToEditors'](_0x2210e3,_0x50b1c7),_0x5f5578['add'](_0x50b1c7),_0x459dec['registerAnnotation'](_0x50b1c7);}['_destroyController'](_0x30c95f){const _0x351a09=this['editor']['plugins']['get']('CommentsRepository'),_0x154f78=this['editor']['plugins']['get']('Annotations'),_0x5746ac=this['_suggestionToController']['get'](_0x30c95f),_0x1eda88=_0x5746ac['view'],_0x82cc09=_0x154f78['getByInnerView'](_0x1eda88);_0x351a09['_unbindEditors'](_0x1eda88),_0x82cc09&&_0x154f78['remove'](_0x82cc09),this['_suggestionToController']['delete'](_0x30c95f),this['_viewToController']['delete'](_0x1eda88),_0x5746ac['destroy']();}['_updateController'](_0x5624de){if(!_0x5624de['isInContent']||!this['_suggestionToController']['has'](_0x5624de))return;const _0x5b7be9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f159d=this['_suggestionToController']['get'](_0x5624de),_0x1e6c97=_0x5624de['getAllAdjacentSuggestions']();_0x3f159d['view']['descriptionParts']=_0x5b7be9['descriptionFactory']['getDescriptions'](_0x1e6c97);}['destroy'](){for(const _0x43746d of this['_suggestionToController']['keys']())this['_destroyController'](_0x43746d);for(const _0x213dcb of this['_annotationViews']['values']())_0x213dcb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2787d7){return'model'in _0x2787d7;}class Fe extends _0xc3381c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x375f9f){this['editor']['plugins']['get'](d)['adapter']=_0x375f9f;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1004e6){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1004e6);}['getSuggestions']({skipNotAttached:_0x32941b=!0x1,toJSON:_0x42a314=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x32941b,'toJSON':_0x42a314});}['getSuggestion'](_0x3a97f0){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3a97f0);}}const p=['Pagination'];class re extends _0xc3381c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x37ba82=this['editor'];if(_0x37ba82['config']['define']('trackChangesData.editorCreator',_0x2fc8fb=>{const _0x49e4ea=_0x37ba82['model']['document']['getRootNames']()['reduce']((_0x3f0625,_0x57882d)=>(_0x3f0625[_0x57882d]='',_0x3f0625),{});return _0x37ba82['constructor']['create'](_0x49e4ea,_0x2fc8fb);}),'function'!=typeof _0x37ba82['config']['get']('trackChangesData')['editorCreator'])throw new _0x50c44a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5a11a7){return P(this['editor'],!0x0,_0x5a11a7);}['getDataWithDiscardedSuggestions'](_0x530061){return P(this['editor'],!0x1,_0x530061);}}class Ge extends _0xc3381c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xaaece){function _0x493d0f(_0x23da58){return _0x23da58['map'](_0x3e52fa=>String['fromCharCode'](_0x3e52fa))['join']('');}super(_0xaaece),this['result']='end',_0xaaece[_0x493d0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x493d0f([0x76,0x69,0x65,0x77])][_0x493d0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x493d0f([0x61,0x75,0x74,0x6f]),_0xaaece[_0x493d0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x493d0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x493d0f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x493d0f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x493d0f([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 He(_0x19312e){return void 0x0!==_0x19312e['getRootsAttributes'];}async function P(_0x49dba2,_0x540765,_0x1a725c){const _0xe41802=_0x158091(_0x49dba2,p);_0xe41802['plugins']['push'](d,Ge),_0xe41802['rootsAttributes']=He(_0x49dba2)?_0x49dba2['getRootsAttributes']():void 0x0;const _0x4ca12f=document['createDocumentFragment'](),_0x4794fa=_0x49dba2['config']['get']('trackChangesData')['editorCreator'],_0x3bbdff=await _0x4794fa(_0xe41802,()=>function(_0x54dcb3){const _0x3a4dc8=document['createElement']('div');return _0x54dcb3['appendChild'](_0x3a4dc8),_0x3a4dc8;}(_0x4ca12f));!function(_0x42d1d7,_0x394473){const _0x18e472=_0x42d1d7['model']['document']['getRootNames']()['reduce']((_0x28dc3f,_0x21629a)=>(_0x28dc3f[_0x21629a]=_0x42d1d7['data']['get']({'rootName':_0x21629a}),_0x28dc3f),{}),_0x527340=_0x42d1d7['plugins']['get']('Users')['users']['map'](_0x2a754b=>({'id':_0x2a754b['id'],'name':_0x2a754b['name']})),_0x113c72=_0x42d1d7['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ec4bb=_0x42d1d7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xb3037c=_0x394473['plugins']['get']('Users'),_0x1673b4=_0x394473['plugins']['get']('TrackChangesEditing'),_0x1b21d4=_0x394473['plugins']['get']('CommentsRepository');for(const _0x23731a of _0x1b21d4['getCommentThreads']())_0x23731a['remove']();for(const _0x17a8c7 of _0x527340)_0xb3037c['getUser'](_0x17a8c7['id'])||_0xb3037c['addUser'](_0x17a8c7);_0xb3037c['me']||_0xb3037c['useAnonymousUser']();for(const _0x58189a of _0x4ec4bb)_0x1b21d4['addCommentThread'](_0x58189a);for(const _0x4ab767 of _0x113c72)_0x1673b4['addSuggestionData'](_0x4ab767);_0x394473['data']['set'](_0x18e472);}(_0x49dba2,_0x3bbdff),_0x3bbdff['execute'](_0x540765?'acceptAllSuggestions':'discardAllSuggestions');const _0x540c38=He(_0x3bbdff)?_0x3bbdff['getFullData'](_0x1a725c):_0x3bbdff['data']['get'](_0x1a725c);return await _0x3bbdff['destroy'](),_0x540c38;}class Me extends _0x5f0f48{['options'];constructor(_0x1921bc,_0xd17ada){super(_0x1921bc),this['options']=_0xd17ada,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x2b82de,_0x4a473b){if(!this['element'])return;const _0x542776=[];for(const [_0x46910f,_0x5cd69e]of _0x2b82de){const _0x30d74c=document['createElement']('div');_0x30d74c['setAttribute']('data-ck-root-name',_0x46910f),_0x30d74c['className']=_0x5cd69e['classes']+'\x20ck-track-changes-preview__root-container',_0x30d74c['innerHTML']=_0x5cd69e['content'],_0x542776['push'](_0x30d74c);}_0x4a473b(this['element'],_0x542776),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1de005{constructor(_0x63af6b){super(_0x63af6b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x113c03=this['editor'],_0x11d775=_0x113c03['locale'],_0x4887e1=_0x113c03['plugins']['get']('Dialog');let _0x406fb7;const _0x33af2c=function(_0x371c9b){const _0x5302bc={};if('editables'in _0x371c9b['ui']['view']){for(const [_0x9c8620,_0x54eeff]of Object['entries'](_0x371c9b['ui']['view']['editables']))_0x5302bc[_0x9c8620]=_0x54eeff['element'];}else _0x5302bc[_0x371c9b['model']['document']['getRootNames']()[0x0]]=_0x371c9b['ui']['view']['editable']['element'];return _0x5302bc;}(_0x113c03),_0x33e9b3=function(_0x4d2cbb){let _0x198cdb=0x0;for(const _0x57d58a of Object['values'](_0x4d2cbb))_0x198cdb=Math['max'](_0x198cdb,_0x57d58a['getBoundingClientRect']()['width']);let _0x344f6c=0x0;for(const _0x1a683f of Object['values'](_0x4d2cbb))_0x344f6c+=_0x1a683f['getBoundingClientRect']()['height'];const _0xc9ae57=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x40cf76=Math['min'](_0x344f6c,_0xc9ae57);return{'width':_0x198cdb,'height':_0x40cf76};}(_0x33af2c);_0x4887e1['show']({'id':'finalContentPreview','title':o(_0x11d775,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x11d775,{'dialogRects':_0x33e9b3}),'onHide':()=>{_0x406fb7['detachFromDom']();},'onShow':()=>{_0x113c03['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x556614=>{const _0x2f08e2=this['_standarizeRootsData'](_0x556614,_0x113c03,_0x33af2c);_0x4887e1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f08e2,_0x113c03['config']['get']('trackChanges.preview.renderFunction'));}),_0x406fb7=new _0x44ccff(_0x11d775,[_0x4887e1['view']]),_0x406fb7['attachToDom'](),_0x406fb7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x113c03['once']('destroy',()=>{_0x406fb7['detachFromDom']();});const _0x2af744=_0x4887e1['view']['headerView']['class'];_0x4887e1['view']['headerView']['class']=_0x2af744?_0x2af744+'\x20ck-reset_all':'ck-reset_all',_0x4887e1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4887e1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4597d7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x592b56=_0x4597d7['previewMode'],_0x38b355={};if('$labels'===_0x592b56){for(const _0x557414 of _0x4597d7['getMergeFieldsIds']())_0x38b355[_0x557414]=_0x4597d7['getLabel'](_0x557414)||_0x557414;}else{const _0x468022='$defaultValues'===_0x592b56?_0x4597d7['getDefaultValues']():_0x4597d7['getDataSetValues'](_0x592b56,!0x0);for(const _0x24aec8 of Object['entries'](_0x468022)){const [_0x1f1ba7,_0x2048be]=_0x24aec8;_0x38b355[_0x1f1ba7]=null!==_0x2048be?_0x2048be:_0x4597d7['getLabel'](_0x1f1ba7)||_0x1f1ba7;}}return{'mergeFieldsData':_0x38b355};}['_standarizeRootsData'](_0x25266b,_0x240585,_0x43ad8b){let _0x34a6fc;if('string'==typeof _0x25266b){const _0x24492d=_0x240585['model']['document']['getRootNames']()[0x0];_0x34a6fc={[_0x24492d]:_0x25266b};}else _0x34a6fc=_0x25266b;const _0x592596=this['_fixMediaEmbeds'](_0x34a6fc,_0x240585),_0x105746=function(_0x580a91,_0x58d7e4){for(const [_0x1b628e,_0x2d45f5]of _0x580a91)_0x2d45f5['classes']=_0x58d7e4[_0x1b628e]['classList']['value']['replace']('ck-focused','');return _0x580a91;}(this['_sortRoots'](_0x240585)['reduce']((_0x47834f,_0x3da519)=>(_0x47834f['push']([_0x3da519,{'content':_0x592596[_0x3da519],'classes':''}]),_0x47834f),[]),_0x43ad8b);return _0x105746;}['_fixMediaEmbeds'](_0x3d9969,_0x5cb4cb){if(!_0x5cb4cb['plugins']['has']('MediaEmbedEditing'))return _0x3d9969;const _0x30d627=_0x5cb4cb['plugins']['get']('MediaEmbedEditing');for(const [_0x20be1a,_0x3c7714]of Object['entries'](_0x3d9969)){const _0x21998e=document['createElement']('div');_0x21998e['innerHTML']=_0x3c7714,(_0x21998e['querySelectorAll']('figure.media')['forEach'](_0x31e969=>{const _0x298175=_0x31e969['querySelector']('oembed');if(_0x298175){const _0x4a2ebe=_0x298175['getAttribute']('url');if(_0x4a2ebe){const _0x8919ac=_0x30d627['registry']['getMediaViewElement'](new _0x42d2ec(_0x5cb4cb['editing']['view']['document']),_0x4a2ebe,{'elementName':'','renderForEditingView':!0x0}),_0xc5dec2=document['createElement']('div');_0xc5dec2['classList']['add']('ck-media__wrapper'),_0x8919ac['render'](_0xc5dec2,_0x5cb4cb['editing']['view']['domConverter']),_0x298175['replaceWith'](_0xc5dec2);}}}),_0x3d9969[_0x20be1a]=_0x21998e['innerHTML']);}return _0x3d9969;}['_sortRoots'](_0x2767c4){if(!function(_0x396b9c){return void 0x0!==_0x396b9c['getRootsAttributes'];}(_0x2767c4))return _0x2767c4['model']['document']['getRootNames']();const _0x38d2ee=[],_0x4341f4=new Map();for(const _0x47958f of _0x2767c4['model']['document']['getRootNames']()){const _0x46bdfc=_0x2767c4['editing']['view']['getDomRoot'](_0x47958f)['getClientRects']()['item'](0x0);_0x38d2ee['push'](_0x47958f),_0x4341f4['set'](_0x47958f,_0x46bdfc);}return _0x38d2ee['sort']((_0x30f9b9,_0xf2c74e)=>{const _0x434735=_0x4341f4['get'](_0x30f9b9),_0xae87f1=_0x4341f4['get'](_0xf2c74e);return _0x434735['y']-_0xae87f1['y']||_0x434735['x']-_0xae87f1['x'];}),_0x38d2ee;}}class $e extends _0xc3381c{static get['requires'](){return[re,_0x3c6ffe];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ff4b1){super(_0x4ff4b1),_0x4ff4b1['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4ff4b1['config']['define']('trackChanges.preview.renderFunction',(_0x527725,_0x5aa378)=>{for(const _0x30ecdf of _0x5aa378)_0x527725['appendChild'](_0x30ecdf);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x2eca95,Plugin as _0x6410a9,PendingActions as _0x37cb5a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5bd908,ObservableMixin as _0x4cf6df,uid as _0x31afce,priorities as _0x5b2f57,insertToPriorityArray as _0x38925b,toArray as _0x46f9e3,logWarning as _0x2e753c,getEnvKeystrokeText as _0x49428f,FocusTracker as _0x46abc4,KeystrokeHandler as _0x5257ab,Collection as _0x190c66}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x511cd1,IconCancel as _0x1a7a3e,IconTrackChanges as _0x47257d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x40063d,View as _0x101a27,ViewCollection as _0x6d6ac6,FocusCycler as _0x5f5825,UIModel as _0x1f6a86,createDropdown as _0x5508f7,SplitButtonView as _0x598cc8,addListToDropdown as _0x27d0d3,MenuBarMenuView as _0x40b406,MenuBarMenuListView as _0x24f4be,ListSeparatorView as _0x58dfca,MenuBarMenuListItemView as _0x1336b2,MenuBarMenuListItemButtonView as _0x59d546,BodyCollection as _0x1156d7,Dialog as _0x59cdaa}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x352761,hashObject as _0xb60271,surroundingMarkersDetector as _0x4ed188,FOCUS_ANNOTATION_KEYSTROKE as _0xd7c23c,AriaDescriptionView as _0x288db4,setupThreadKeyboardNavigation as _0x4db9df,trimHtml as _0xd5a90c,UserView as _0x515c0b,LateFocusButtonView as _0x501d37,getDateTimeFormatter as _0x23c54e,getAllMarkersDomElementsSorted as _0x49d567,sanitizeEditorConfig as _0x486144}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x397e8d,ModelLiveRange as _0x19bc7a,ModelLivePosition as _0x4ef712,ViewDowncastWriter as _0x2a9d0e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1fde47,toWidget as _0x2f4ee2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5dce55,set as _0x1a2d72,isEqual as _0x5d1773,unset as _0x164f38,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2cf332,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4a2084}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1dd4a9}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x2eca95{['_enabledCommands'];constructor(_0x5911fe,_0x791a2a){super(_0x5911fe),this['_enabledCommands']=_0x791a2a,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 _0x444518 of this['editor']['commands']['commands']())_0x444518['affectsData']&&!this['_enabledCommands']['has'](_0x444518)&&_0x444518['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xbf712e of this['editor']['commands']['commands']())_0xbf712e['affectsData']&&!this['_enabledCommands']['has'](_0xbf712e)&&_0xbf712e['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x2eca95{['_suggestions'];constructor(_0x4a2504,_0x27ee21){super(_0x4a2504),this['_suggestions']=_0x27ee21,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x57b094){const _0x177733=this['_suggestions']['get'](_0x57b094);if(!_0x177733)throw new _0x5bd908('track-changes-accept-suggestion-not-found',this);const _0x591b96=_0x177733['getRanges']();this['editor']['model']['canEditAt'](_0x591b96)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x177733);}}class $ extends _0x2eca95{['_suggestions'];constructor(_0x44b6ac,_0xe31123){super(_0x44b6ac),this['_suggestions']=_0xe31123,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3087f0){const _0x1c66c9=this['_suggestions']['get'](_0x3087f0);if(!_0x1c66c9)throw new _0x5bd908('track-changes-discard-suggestion-not-found',this);const _0x21d913=_0x1c66c9['getRanges']();this['editor']['model']['canEditAt'](_0x21d913)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1c66c9);}}function ls(_0x38caaf,_0x3bd610){let _0x784e92='';return _0x784e92+=_0x38caaf['split']('*')['map']((_0x58257c,_0x36d0b9)=>_0x36d0b9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x58257c)+'</span>':Zt(_0x58257c))['join'](''),_0x3bd610&&(_0x784e92+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3bd610['value']+'\x22\x20title=\x22'+_0x3bd610['title']+'\x22></span>'),_0x784e92;}function Zt(_0x5557d9){const _0x1a7348=document['createElement']('span');return _0x1a7348['innerText']=_0x5557d9,_0x1a7348['innerHTML'];}function ts(_0x52fad6){return _0x52fad6['sort']((_0x29c3f7,_0x12c4f3)=>'attribute'===_0x29c3f7['type']&&'attribute'!==_0x12c4f3['type']?-0x1:'attribute'!==_0x29c3f7['type']&&'attribute'===_0x12c4f3['type']?0x1:'deletion'==_0x29c3f7['type']&&'deletion'!=_0x12c4f3['type']?-0x1:'deletion'!=_0x29c3f7['type']&&'deletion'==_0x12c4f3['type']?0x1:0x0);}function to(_0x2296b9,_0x5f1031){let _0x56fbb4,_0x2c1c47=0x0;const _0x161da2=[],_0xdabc0e=_0x5f1031['schema'];for(;_0x2c1c47<_0x2296b9['length'];){const _0x15f698=_0x2296b9[_0x2c1c47],_0x3b578f=_0x2296b9[_0x2c1c47+0x1];_0x56fbb4||(_0x56fbb4=_0x5f1031['createPositionBefore'](_0x15f698)),tn(_0x5f1031,_0x15f698,_0x3b578f)||(_0x161da2['push'](_0x5f1031['createRange'](_0x56fbb4,_0xdabc0e['isObject'](_0x15f698)?_0x5f1031['createPositionAfter'](_0x15f698):_0x5f1031['createPositionAt'](_0x15f698,'end'))),_0x56fbb4=null),_0x2c1c47++;}return _0x161da2;}function tn(_0x3d72d5,_0x434cb0,_0x151147){if(!_0x151147)return!0x1;const _0x1fd02d=_0x3d72d5['createPositionAfter'](_0x434cb0),_0xe8ee48=_0x3d72d5['createPositionBefore'](_0x151147);return _0x1fd02d['isTouching'](_0xe8ee48);}function rs(_0x2901a2,_0x816cfe,_0x23e770){for(;_0x23e770['length'];){const _0x3bcd9c=_0x23e770['splice'](0x0,0x64);_0x2901a2['change'](()=>{for(const _0x82607b of _0x3bcd9c)_0x82607b['isInContent']&&_0x816cfe['execute'](_0x82607b['id']);});}}class M extends _0x2eca95{['_command'];['_suggestions'];constructor(_0x271196,_0x2f566c,_0x31477f){super(_0x271196),this['_command']=_0x2f566c,this['_suggestions']=_0x31477f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf48e5c=Array['from'](this['_suggestions']['values']())['some'](_0x35ceee=>_0x35ceee['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xf48e5c;}['execute'](){const _0x3dfe8a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x31367b of _0x3dfe8a){const _0x308cac=_0x31367b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x308cac))return;}rs(this['editor']['model'],this['_command'],_0x3dfe8a);}}class B extends _0x2eca95{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x40e0f6,_0x5df6e8,_0x11ea6d){super(_0x40e0f6),this['_command']=_0x5df6e8,this['_suggestions']=_0x11ea6d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x6df76c=this['editor']['model']['document']['selection'],_0x369a24=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xc683e2,_0x2c96eb){const _0x2480f6=Array['from'](_0xc683e2['getRanges']()),_0xbccbe9=new Set();for(const _0x4f1a94 of _0x2c96eb)if(_0x4f1a94['isInContent']){for(const _0x422ef7 of _0x2480f6)for(const _0x253f72 of _0x4f1a94['getRanges']())(_0x422ef7['isIntersecting'](_0x253f72)||_0xc683e2['isCollapsed']&&!_0x4f1a94['isMultiRange']&&_0x4f1a94['next']&&_0x253f72['end']['isTouching'](_0x422ef7['start']))&&_0xbccbe9['add'](_0x4f1a94);}return _0xbccbe9;}(_0x6df76c,_0x369a24),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x350901=ts(Array['from'](this['_selectedSuggestions']));for(const _0x24979f of _0x350901){const _0xeb27a8=_0x24979f['getRanges']();if(!this['editor']['model']['canEditAt'](_0xeb27a8))return;}rs(this['editor']['model'],this['_command'],_0x350901);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x4cf6df(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x56ef7b,_0x1288a7){super(),this['id']=_0x1288a7['id'],this['type']=_0x1288a7['type'],this['subType']=_0x1288a7['subType']||null,this['author']=_0x1288a7['author'],this['creator']=_0x1288a7['creator']||_0x1288a7['author'],this['isExternal']=Boolean(_0x1288a7['attributes']&&_0x1288a7['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1288a7['originalSuggestionId']||null,this['_model']=_0x56ef7b,this['_onAccept']=_0x1288a7['onAccept'],this['_onDiscard']=_0x1288a7['onDiscard'],this['_onAttributesChange']=_0x1288a7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1288a7['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 _0x329712=this;for(;_0x329712['previous'];)_0x329712=_0x329712['previous'];return _0x329712;}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'](_0x3a96ef){this['_markerNames']['add'](_0x3a96ef);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x228e37=>this['_model']['markers']['get'](_0x228e37))['filter'](_0x500ef1=>_0x500ef1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c42ac=>{for(const _0x569f66 of this['getMarkers']())_0x2c42ac['removeMarker'](_0x569f66);}),this['_markerNames']['clear']();}['removeMarker'](_0x10dff8){this['_model']['change'](_0x366b82=>{_0x366b82['removeMarker'](_0x10dff8);}),this['_markerNames']['delete'](_0x10dff8);}['addRange'](_0x1bece8){const _0x18a4bd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x18a4bd),this['_model']['change'](_0x19f2f5=>{_0x19f2f5['addMarker'](_0x18a4bd,{'range':_0x1bece8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5af28f){for(const _0x10f376 of this['getRanges']())if(_0x10f376['isIntersecting'](_0x5af28f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5cda6f=>_0x5cda6f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x38bfe0,_0x55fb0f)=>[..._0x38bfe0,..._0x55fb0f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4ae294=this['getRanges']();if(0x1!=_0x4ae294['length'])return null;const _0x551361=_0x4ae294[0x0],_0x4e7d79=_0x551361['start']['nodeAfter'],_0x3dfcc4=_0x551361['end']['nodeBefore'];return _0x4e7d79 instanceof _0x397e8d?_0x4e7d79!=_0x3dfcc4?null:_0x4e7d79: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 _0x3cee36=[];let _0x76fdf3=this['head'];for(;_0x76fdf3;)_0x3cee36['push'](_0x76fdf3),_0x76fdf3=_0x76fdf3['next'];return _0x3cee36;}['setAttribute'](_0x24f21d,_0x424bd4){const _0x8606fb=_0x5dce55(this['attributes']);_0x1a2d72(_0x8606fb,_0x24f21d,_0x424bd4),_0x5d1773(_0x8606fb,this['attributes'])||(this['attributes']=_0x8606fb,this['_onAttributesChange'](_0x8606fb));}['removeAttribute'](_0x215494){const _0x3a5f65=_0x5dce55(this['attributes']);_0x164f38(_0x3a5f65,_0x215494),_0x5d1773(_0x3a5f65,this['attributes'])||(this['attributes']=_0x3a5f65,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 _0x31afce()['substr'](0x1,0x5);}}function o(_0x46a2e4,_0x1d007e,_0x239367){const _0x18586c=_0x46a2e4['t'],t=_0x46a2e4['t'];switch(_0x1d007e){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x239367);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x239367);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x239367);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x239367);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x239367);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',_0x239367);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x239367);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x239367);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x239367);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x239367);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x239367);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x239367);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x239367);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x239367);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x239367);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x239367);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x239367);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x239367);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x239367);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x239367);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x239367);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x239367);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x239367);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x239367);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x239367);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'},_0x239367);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x239367);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x239367);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x239367);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x239367);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x239367);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x239367);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x239367);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'},_0x239367);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x239367);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x239367);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x239367);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x239367);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'},_0x239367);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x239367);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'},_0x239367);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x239367);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x239367);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'},_0x239367);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x239367);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'},_0x239367);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x239367);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x239367);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'},_0x239367);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x239367);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 _0x18586c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x239367);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x18586c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x239367);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x239367);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'},_0x239367);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'},_0x239367);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'},_0x239367);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d007e;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x9ba4f2,_0x30c042){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x9ba4f2,this['_locale']=_0x30c042;}['getDescriptions'](_0x5f0806){const _0x25c01a=[],_0x579dbe=new Set(),_0x2ccd50=new Set();for(let _0x2f5dc9=0x0;_0x2f5dc9<_0x5f0806['length'];_0x2f5dc9++){const _0x1d0a27=_0x5f0806[_0x2f5dc9];if(!_0x1d0a27['isInContent'])continue;const _0x1620a8=this['_handleCustomCallbackDescription'](_0x1d0a27);if(_0x1620a8){if(null!=_0x1d0a27['subType']){if(_0x579dbe['has'](_0x1d0a27['subType']))continue;_0x579dbe['add'](_0x1d0a27['subType']);}_0x25c01a['push'](_0x1620a8);}else{if('attribute'==_0x1d0a27['type']){const _0x3c8493=_0x1d0a27['data']['key'];if(_0x2ccd50['has'](_0x3c8493))continue;_0x2ccd50['add'](_0x1d0a27['data']['key']),_0x3c8493==m?this['_handleRenameSuggestionDescription'](_0x25c01a,_0x1d0a27):this['_handleAttributeSuggestionDescription'](_0x25c01a,_0x1d0a27);continue;}'insertion'!=_0x1d0a27['type']&&'deletion'!=_0x1d0a27['type']||this['_handleInsertRemoveSuggestionDescription'](_0x25c01a,_0x1d0a27,_0x5f0806[_0x2f5dc9+0x1]);}}return this['_resolveDescriptionItems'](_0x25c01a);}['registerDescriptionCallback'](_0x164f39){this['_customCallbacks']['push'](_0x164f39);}['registerElementLabel'](_0x2f18d5,_0xcc4d0,_0x536ed0=_0x5b2f57['normal']){'function'==typeof _0x2f18d5?_0x38925b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2f18d5,'label':_0xcc4d0,'priority':_0x536ed0}):this['_itemLabels']['set'](_0x2f18d5,_0xcc4d0);}['registerAttributeLabel'](_0x32d5cc,_0x38745b){this['_attributeLabels']['set'](_0x32d5cc,_0x38745b);}['getItemLabel'](_0x45241e,_0x3a659d=0x1){let _0x35bcc0;for(const _0x50ab54 of this['_itemLabelsCallbacks'])if(_0x50ab54['matchingCallback'](_0x45241e)){_0x35bcc0=_0x50ab54['label'];break;}return _0x35bcc0||(_0x35bcc0=this['_itemLabels']['get'](_0x45241e['name'])),_0x35bcc0?_0x35bcc0(_0x3a659d):0x1!==_0x3a659d?_0x3a659d+'\x20'+_0x45241e['name']+'s':''+_0x45241e['name'];}['_addDescriptionItems'](_0x55aedc,_0x2cf2d4){const _0x69c12a=_0x2cf2d4['getFirstRange']()['getWalker'](),_0x5cbd8b='insertion'==_0x2cf2d4['type']?'add':'remove';for(const _0xa07be8 of _0x69c12a){const _0x548205=_0xa07be8['item'],_0x45ec4c=_0x55aedc[_0x55aedc['length']-0x1];if(_0x548205['is']('$textProxy'))_0x45ec4c&&_0x45ec4c['type']['indexOf']('Container')>-0x1&&_0x55aedc['pop'](),_0x45ec4c&&'text'==_0x45ec4c['type']?_0x45ec4c[_0x5cbd8b]+=_0x548205['data']:_0x55aedc['push']({'type':'text','add':'add'==_0x5cbd8b?_0x548205['data']:'','remove':'remove'==_0x5cbd8b?_0x548205['data']:''});else{if(this['_schema']['isObject'](_0x548205)){const _0xdaceb6=_0x548205;if(_0x45ec4c&&_0x45ec4c['type']['indexOf']('Container')>-0x1&&_0x55aedc['pop'](),'elementEnd'==_0xa07be8['type'])continue;_0x45ec4c&&_0x45ec4c['type']==_0x5cbd8b+'Object'&&_0x45ec4c['element']['name']==_0xdaceb6['name']?_0x45ec4c['quantity']++:_0x55aedc['push']({'type':_0x5cbd8b+'Object','element':_0xdaceb6,'quantity':0x1}),_0x69c12a['skip'](_0x49a9e9=>!('elementEnd'==_0x49a9e9['type']&&_0x49a9e9['item']==_0x548205));}else{if(this['_schema']['checkChild'](_0x548205,'$text')||_0x548205['is']('element','softBreak')){const _0x102ab2=_0x548205;if('add'==_0x5cbd8b&&'elementStart'==_0xa07be8['type']||'remove'==_0x5cbd8b&&'elementEnd'==_0xa07be8['type'])continue;if(_0x45ec4c&&-0x1==_0x45ec4c['type']['indexOf']('Container')){'text'==_0x45ec4c['type']&&(_0x45ec4c[_0x5cbd8b]+='\x0a');continue;}let _0x557122;if(_0x557122='add'==_0x5cbd8b?_0x102ab2['nextSibling']&&!this['_schema']['isObject'](_0x102ab2['nextSibling'])?_0x102ab2['nextSibling']:null:_0x102ab2['previousSibling']&&!this['_schema']['isObject'](_0x102ab2['previousSibling'])?_0x102ab2['previousSibling']:null,_0x102ab2['isEmpty']||_0x557122&&_0x557122['isEmpty']){const _0x1995ea=_0x557122&&_0x557122['isEmpty']?_0x557122:_0x102ab2;_0x45ec4c&&_0x45ec4c['type']==_0x5cbd8b+'EmptyContainer'&&_0x45ec4c['element']['name']==_0x1995ea['name']?_0x45ec4c['quantity']++:_0x55aedc['push']({'type':_0x5cbd8b+'EmptyContainer','element':_0x1995ea,'quantity':0x1});}else _0x55aedc['push']({'type':_0x5cbd8b+'Container','element':_0x102ab2});}}}}}['_resolveDescriptionItems'](_0x578cd2){const _0x48cf5c=this['_locale'],_0x49b5d7=[],_0x4b3c56=[],_0x29b3bd=[];for(const _0x2b7b3b of _0x578cd2)switch(_0x2b7b3b['type']){case'text':if(_0x2b7b3b['add']=_0x2b7b3b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2b7b3b['remove']=_0x2b7b3b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2b7b3b['add']&&''!=_0x2b7b3b['remove']){_0x49b5d7['push']({'type':'replace','content':o(_0x48cf5c,'REPLACE_TEXT',['\x22'+_0x2b7b3b['remove']+'\x22','\x22'+_0x2b7b3b['add']+'\x22'])});continue;}if(null!=_0x2b7b3b['add']['match'](/^ +$/)){_0x49b5d7['push']({'type':'insertion','content':o(_0x48cf5c,'*Insert:*\x20%0',o(_0x48cf5c,'ELEMENT_SPACE',_0x2b7b3b['add']['length']))});continue;}if(null!=_0x2b7b3b['remove']['match'](/^ +$/)){_0x49b5d7['push']({'type':'deletion','content':o(_0x48cf5c,'*Remove:*\x20%0',o(_0x48cf5c,'ELEMENT_SPACE',_0x2b7b3b['remove']['length']))});continue;}if(''!=_0x2b7b3b['add']){_0x49b5d7['push']({'type':'insertion','content':o(_0x48cf5c,'*Insert:*\x20%0','\x22'+_0x2b7b3b['add']+'\x22')});continue;}_0x49b5d7['push']({'type':'deletion','content':o(_0x48cf5c,'*Remove:*\x20%0','\x22'+_0x2b7b3b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x49b5d7['push']({'type':'insertion','content':o(_0x48cf5c,'*Insert:*\x20%0',this['getItemLabel'](_0x2b7b3b['element'],_0x2b7b3b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x49b5d7['push']({'type':'deletion','content':o(_0x48cf5c,'*Remove:*\x20%0',this['getItemLabel'](_0x2b7b3b['element'],_0x2b7b3b['quantity']))});continue;case'addContainer':_0x49b5d7['push']({'type':'insertion','content':o(_0x48cf5c,'*Split:*\x20%0',this['getItemLabel'](_0x2b7b3b['element'],_0x2b7b3b['quantity']))});continue;case'removeContainer':_0x49b5d7['push']({'type':'deletion','content':o(_0x48cf5c,'*Merge:*\x20%0',this['getItemLabel'](_0x2b7b3b['element'],_0x2b7b3b['quantity']))});continue;case'addFormat':_0x4b3c56['push'](_0x2b7b3b['key']);continue;case'removeFormat':_0x29b3bd['push'](_0x2b7b3b['key']);continue;default:_0x49b5d7['push'](_0x2b7b3b);}if(_0x4b3c56['length']){const _0x4fdfb8=_0x4b3c56['map'](_0x207ea1=>this['_attributeLabels']['has'](_0x207ea1)?this['_attributeLabels']['get'](_0x207ea1):_0x207ea1)['join'](',\x20');_0x49b5d7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4fdfb8)});}if(_0x29b3bd['length']){const _0xfdf575=_0x29b3bd['map'](_0x1a19f5=>this['_attributeLabels']['has'](_0x1a19f5)?this['_attributeLabels']['get'](_0x1a19f5):_0x1a19f5)['join'](',\x20');_0x49b5d7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xfdf575)});}return _0x49b5d7;}['_handleCustomCallbackDescription'](_0x16f2d8){for(const _0x341d79 of this['_customCallbacks']){const _0x4502b7=_0x341d79(_0x16f2d8);if(_0x4502b7&&'type'in _0x4502b7)return _0x4502b7;}}['_handleAttributeSuggestionDescription'](_0x112c6b,_0x357a49){const _0x5e387e=_0x357a49['data'],_0x222e37=void 0x0===_0x5e387e['newValue']?'removeFormat':'addFormat';_0x112c6b['push']({'type':_0x222e37,'key':_0x5e387e['key']});}['_handleRenameSuggestionDescription'](_0x153915,_0x2f2cd2){_0x153915['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2f2cd2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3c1bf4,_0x46e8d4,_0x3cdcb1){if(this['_addDescriptionItems'](_0x3c1bf4,_0x46e8d4),_0x3cdcb1&&_0x3cdcb1['getFirstRange']()&&!_0x46e8d4['getFirstRange']()['end']['isEqual'](_0x3cdcb1['getFirstRange']()['start'])){const _0x5cd5a1=_0x3c1bf4[_0x3c1bf4['length']-0x1],_0x2066b4='insertion'==_0x46e8d4['type']?'add':'remove';_0x5cd5a1&&'text'==_0x5cd5a1['type']&&(_0x5cd5a1[_0x2066b4]+='\x0a');}}}class O extends _0x6410a9{['afterInit'](){const _0x228b17=this['editor'],_0xfbf39a=_0x228b17['plugins']['get']('TrackChangesEditing');_0x228b17['commands']['get']('showAIAssistant')&&_0xfbf39a['enableCommand']('showAIAssistant');}}class E extends _0x6410a9{['afterInit'](){const _0x4223f1=this['editor'],_0x6be86=_0x4223f1['locale'];if(!_0x4223f1['plugins']['has']('AlignmentEditing'))return;const _0x91bd08=_0x4223f1['plugins']['get']('TrackChangesEditing');_0x91bd08['enableDefaultAttributesIntegration']('alignment'),_0x91bd08['registerBlockAttribute']('alignment'),_0x91bd08['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x6be86,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13218f=this['editor'],_0x44bace=_0x13218f['locale'];_0x13218f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49ff29=>{if('formatBlock'!=_0x49ff29['type'])return;const {data:_0x2107ff}=_0x49ff29;if(_0x2107ff&&'alignment'==_0x2107ff['commandName']){const _0x33645b=_0x2107ff['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x44bace,'*Format:*\x20%0',function(_0x2428ef){switch(_0x2428ef){case'left':return o(_0x44bace,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x44bace,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x44bace,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x44bace,'FORMAT_JUSTIFY_TEXT');}}(_0x33645b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x6410a9{['afterInit'](){const _0x8fc4b=this['editor'],_0xc78074=_0x8fc4b['plugins']['get']('TrackChangesEditing'),_0x43a63e=_0x8fc4b['locale'];for(const _0x4bf292 of ti){if(!_0x8fc4b['plugins']['has'](_0x4bf292))continue;const _0x589bed=_0x4bf292['slice'](0x0,-0x7)['toLowerCase'](),_0x45ce7e='FORMAT_'+_0x589bed['toUpperCase']();_0xc78074['enableDefaultAttributesIntegration'](_0x589bed),_0xc78074['registerInlineAttribute'](_0x589bed),_0xc78074['descriptionFactory']['registerAttributeLabel'](_0x589bed,o(_0x43a63e,_0x45ce7e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfc189b=this['editor'],_0x1a0789=_0xfc189b['locale'],_0x2cd346=_0xfc189b['plugins']['get']('TrackChangesEditing');function _0x25645a(_0x2011ad,_0x5a61f5){_0x2cd346['descriptionFactory']['registerDescriptionCallback'](_0xc54b0e=>{if('formatInline'!=_0xc54b0e['type'])return;const {data:_0x38f65d}=_0xc54b0e;return _0x38f65d&&_0x38f65d['commandName']===_0x2011ad?_0x38f65d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a0789,'*Format:*\x20%0',_0x5a61f5)}:{'type':'format','content':o(_0x1a0789,'*Remove\x20format:*\x20%0',_0x5a61f5)}:void 0x0;});}_0x25645a('bold',o(_0x1a0789,'FORMAT_BOLD')),_0x25645a('italic',o(_0x1a0789,'FORMAT_ITALIC')),_0x25645a('underline',o(_0x1a0789,'FORMAT_UNDERLINE')),_0x25645a('code',o(_0x1a0789,'FORMAT_CODE')),_0x25645a('strikethrough',o(_0x1a0789,'FORMAT_STRIKETHROUGH')),_0x25645a('subscript',o(_0x1a0789,'FORMAT_SUBSCRIPT')),_0x25645a('superscript',o(_0x1a0789,'FORMAT_SUPERSCRIPT'));}}class U extends _0x6410a9{['afterInit'](){const _0x19ce41=this['editor'],_0x225ce6=_0x19ce41['locale'];if(!_0x19ce41['plugins']['has']('BlockQuoteEditing'))return;const _0x34f034=_0x19ce41['plugins']['get']('TrackChangesEditing'),_0x14b426=this['editor']['commands']['get']('blockQuote');_0x34f034['enableCommand']('blockQuote',(_0x3430eb,_0x39056b={})=>{const _0x149ac6=this['editor']['model']['document']['selection'],_0x112be0=_0x39056b&&void 0x0!==_0x39056b['forceValue']?_0x39056b['forceValue']:!_0x14b426['value'];let _0x5e1186=[];if(_0x112be0){const _0x3aa01e=Array['from'](_0x149ac6['getSelectedBlocks']())['filter'](_0x557132=>oo(_0x557132)||function(_0x492dba,_0x6401da){const _0x4bfb6a=_0x6401da['checkChild'](_0x492dba['parent'],'blockQuote'),_0x100bac=_0x6401da['checkChild'](['$root','blockQuote'],_0x492dba);return _0x4bfb6a&&_0x100bac;}(_0x557132,this['editor']['model']['schema']));_0x5e1186=to(_0x3aa01e,_0x19ce41['model']);}else{const _0x38c0a2=Array['from'](_0x149ac6['getSelectedBlocks']())['filter'](_0x58b88a=>oo(_0x58b88a));_0x5e1186=to(_0x38c0a2,_0x19ce41['model']);}_0x19ce41['model']['change'](()=>{for(const _0x100b42 of _0x5e1186)_0x34f034['markBlockFormat'](_0x100b42,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x112be0}]});});}),_0x34f034['descriptionFactory']['registerDescriptionCallback'](_0x2dd8b4=>{const {data:_0x4821ed}=_0x2dd8b4;if(_0x4821ed&&'blockQuote'==_0x4821ed['commandName']){const _0x303ba8=o(_0x225ce6,'ELEMENT_BLOCK_QUOTE');return _0x4821ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x225ce6,'*Set\x20format:*\x20%0',_0x303ba8)}:{'type':'format','content':o(_0x225ce6,'*Remove\x20format:*\x20%0',_0x303ba8)};}});}}function oo(_0x29a551){return'blockQuote'==_0x29a551['parent']['name'];}class V extends _0x6410a9{['afterInit'](){const _0x94e8ae=this['editor'],_0x4d39b7=_0x94e8ae['locale'],_0x4b803e=_0x94e8ae['plugins']['get']('TrackChangesEditing');_0x94e8ae['plugins']['has']('BookmarkEditing')&&(_0x4b803e['enableCommand']('insertBookmark'),_0x4b803e['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b803e['registerBlockAttribute']('bookmarkId'),_0x4b803e['descriptionFactory']['registerDescriptionCallback'](_0x47d977=>{if('insertion'!=_0x47d977['type']&&'deletion'!=_0x47d977['type']&&'attribute'!=_0x47d977['type'])return;const _0x9aba31=_0x47d977['getContainedElement']();if(null==_0x9aba31)return;if(!_0x9aba31['is']('element','bookmark'))return;const _0x2fcc57=_0x9aba31['getAttribute']('bookmarkId');if('insertion'==_0x47d977['type'])return{'type':'insertion','content':o(_0x4d39b7,'*Insert:*\x20%0','\x22'+_0x2fcc57+'\x22\x20'+o(_0x4d39b7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x47d977['type'])return{'type':'deletion','content':o(_0x4d39b7,'*Remove:*\x20%0','\x22'+_0x2fcc57+'\x22\x20'+o(_0x4d39b7,'ELEMENT_BOOKMARK'))};const {data:_0x45bd57}=_0x47d977;if(!_0x45bd57||'bookmarkId'!=_0x45bd57['key'])return;return{'type':'format','content':o(_0x4d39b7,'*Set\x20bookmark:*\x20%0','\x22'+_0x45bd57['newValue']+'\x22')};}));}}class F extends _0x6410a9{['afterInit'](){const _0x1bb58f=this['editor'];_0x1bb58f['plugins']['has']('CaseChange')&&(_0x1bb58f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1bb58f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1bb58f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x6410a9{['afterInit'](){const _0x1491bd=this['editor'];_0x1491bd['commands']['get']('ckbox')&&_0x1491bd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x6410a9{['afterInit'](){const _0xf6882d=this['editor'];if(!_0xf6882d['plugins']['has']('CodeBlock'))return;const _0x29c62e=_0xf6882d['plugins']['get']('TrackChangesEditing'),_0x30f07f=_0xf6882d['locale'],_0x3ce715=_0xf6882d['config']['get']('codeBlock')['languages'],_0xfff88c=_0xf6882d['commands']['get']('codeBlock');_0x29c62e['enableCommand']('indentCodeBlock'),_0x29c62e['enableCommand']('outdentCodeBlock'),_0x29c62e['enableCommand']('codeBlock',(_0x4896a9,_0x4173fa={})=>{const _0x51661e=_0xf6882d['model'],_0x49a7ed=_0xf6882d['model']['document']['selection'],_0x1640cb=_0x4173fa&&void 0x0!==_0x4173fa['forceValue']?_0x4173fa['forceValue']:!_0xfff88c['value'];let _0x3b812c;_0x4173fa['language']||(_0x4173fa['language']=_0x3ce715[0x0]['language']),_0x3b812c=_0x1640cb?Array['from'](_0x49a7ed['getSelectedBlocks']())['filter'](_0x5033aa=>co(_0x5033aa)||function(_0x41d560,_0x3bebd3){if(_0x41d560['is']('rootElement')||_0x3bebd3['isLimit'](_0x41d560))return!0x1;return _0x3bebd3['checkChild'](_0x41d560['parent'],'codeBlock');}(_0x5033aa,_0x51661e['schema'])):Array['from'](_0x49a7ed['getSelectedBlocks']())['filter'](_0x3c0cb6=>co(_0x3c0cb6));const _0x4549fb=to(_0x3b812c,_0x51661e);_0x51661e['change'](()=>{for(const _0x58ee5d of _0x4549fb)_0x29c62e['markBlockFormat'](_0x58ee5d,{'commandName':'codeBlock','commandParams':[{..._0x4173fa,'forceValue':_0x1640cb}],'formatGroupId':'blockName'});});}),(_0x29c62e['descriptionFactory']['registerElementLabel']('codeBlock',_0x23c0b4=>o(_0x30f07f,'ELEMENT_CODE_BLOCK',_0x23c0b4)),_0x29c62e['descriptionFactory']['registerDescriptionCallback'](_0x5a821b=>{if('formatBlock'!=_0x5a821b['type'])return;const _0x50f2f8=_0x30f07f['t'],{data:_0x26440f}=_0x5a821b;if(!_0x26440f||'codeBlock'!=_0x26440f['commandName'])return;const _0x2a5887=_0x26440f['commandParams'][0x0]['language'],_0x106ac2=_0x50f2f8(_0x3ce715['find'](_0x4f6211=>_0x4f6211['language']===_0x2a5887)['label'])['toLowerCase']();return _0x26440f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30f07f,'*Set\x20format:*\x20%0',o(_0x30f07f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x106ac2+')')}:{'type':'format','content':o(_0x30f07f,'*Remove\x20format:*\x20%0',o(_0x30f07f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1844c3){return'codeBlock'==_0x1844c3['name'];}class J extends _0x6410a9{['afterInit'](){const _0x4f1daf=this['editor'];if(!_0x4f1daf['plugins']['has']('CommentsEditing'))return;_0x4f1daf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xd3560b,_0x4b1c59,_0x378734){const _0x564e59=[];for(const _0x49536b of _0x4b1c59['getItems']())_0x49536b['hasAttribute'](_0xd3560b)&&_0x564e59['push'](_0x378734['createRangeOn'](_0x49536b));return _0x564e59;}function De(_0x28da79,_0x314d99,{showActiveMarker:_0x2806a0=!0x0}={}){const _0x57752b=_0x28da79['plugins']['get']('TrackChangesEditing');return(_0x382352,_0x44ed9f,_0x14d4d7)=>{if(!_0x14d4d7['consumable']['test'](_0x44ed9f['markerRange'],_0x382352['name']))return;const _0x274b22=_0x44ed9f['markerRange']['getWalker'](),_0x50b54e=_0x44ed9f['markerRange']['start'],_0x62cc4b=_0x28da79['model']['schema'];let _0x1fad9d=null,_0x487328=null,_0x4e4ff4=!0x1,_0xf415bb=!0x1;for(const _0x432886 of _0x274b22){const _0x58628e=_0x432886['item'];_0x4e4ff4=_0x4e4ff4||_0x62cc4b['isContent'](_0x58628e);const _0x54c298=_0x14d4d7['mapper']['toViewElement'](_0x58628e);if(_0x54c298&&_0x54c298['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x432886['type']&&(_0x62cc4b['isBlock'](_0x58628e)&&!_0x62cc4b['isLimit'](_0x58628e)&&(_0x58628e['nextSibling']||_0x50b54e['isAtEnd']?_0x1fad9d&&_0x1fad9d['parent']==_0x58628e||(_0x1fad9d=_0x58628e,_0x5278bc(_0x432886['previousPosition']),_0xf415bb=!0x0):_0x487328=_0x487328||_0x432886['previousPosition']));}function _0x5278bc(_0x30a892){const {id:_0x47d5a8,authorId:_0x345971}=_0x57752b['_splitMarkerName'](_0x44ed9f['markerName']),_0xf52524=_0x14d4d7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x314d99,'data-suggestion':_0x47d5a8,'data-author-id':_0x345971}),_0x327304=_0x14d4d7['mapper']['toViewPosition'](_0x30a892);_0x2806a0&&_0x57752b['activeMarkers']['includes'](_0x44ed9f['markerName'])&&_0x14d4d7['writer']['addClass']('ck-suggestion-marker--active',_0xf52524),_0x14d4d7['writer']['insert'](_0x327304,_0xf52524),_0x14d4d7['mapper']['bindElementToMarker'](_0xf52524,_0x44ed9f['markerName']);}_0x4e4ff4||_0xf415bb||!_0x487328||_0x5278bc(_0x487328);};}class K extends _0x6410a9{static get['requires'](){return[_0x2cf332];}['init'](){const _0x4cdee3=this['editor'],_0x15a2d8=_0x4cdee3['plugins']['get']('TrackChangesEditing');_0x15a2d8['enableCommand']('delete');const _0xbf0df4=_0x4cdee3['commands']['get']('deleteForward');_0x15a2d8['enableCommand']('deleteForward',(_0x26c256,_0x19277e={})=>{const _0x2f09ca=_0x4cdee3['model']['createSelection'](_0x4cdee3['model']['document']['selection']);_0x2f09ca['isCollapsed']&&_0x4cdee3['model']['modifySelection'](_0x2f09ca,{'direction':'forward','unit':_0x19277e['unit']});const _0x35c7f4=_0x2f09ca['getFirstRange'](),_0x529004=_0x19bc7a['fromRange'](_0x35c7f4);let _0x24b55b;_0x26c256(_0x19277e),_0x24b55b='$graveyard'==_0x529004['root']['rootName']?_0x4cdee3['model']['createRange'](_0x35c7f4['start']):_0x4cdee3['model']['createRange'](_0x529004['start'],_0x529004['end']),_0x529004['detach'](),_0x4cdee3['model']['enqueueChange'](_0xbf0df4['buffer']['batch'],_0x1c45cf=>{_0xbf0df4['buffer']['lock'](),_0x1c45cf['setSelection'](_0x1c45cf['createRange'](_0x24b55b['end'])),_0xbf0df4['buffer']['unlock']();});}),_0x4cdee3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4cdee3,'merge'),{'priority':'high'}),_0x4cdee3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x85cb5e,_0x3e9a37,_0x59e536)=>{_0x59e536['options']['showSuggestionHighlights']&&De(_0x4cdee3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x85cb5e,_0x3e9a37,_0x59e536);},{'priority':'high'}),_0x4cdee3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3d9337,_0xbc3fbb,_0x30b497)=>{const _0x444d64=_0x30b497['mapper']['markerNameToElements'](_0xbc3fbb['markerName']);if(_0x444d64){for(const _0x4df78d of _0x444d64)_0x4df78d['is']('uiElement')&&(_0x30b497['mapper']['unbindElementFromMarkerName'](_0x4df78d,_0xbc3fbb['markerName']),_0x30b497['writer']['remove'](_0x4df78d));}},{'priority':'high'});}}class H extends _0x6410a9{['afterInit'](){const _0x23b475=this['editor'];if(!_0x23b475['plugins']['has']('ListEditing'))return;const _0x3f1877=_0x23b475['locale'],_0x3df0bd=_0x23b475['plugins']['get']('TrackChangesEditing'),_0x331384=_0x23b475['plugins']['has']('TodoListEditing'),_0x401974=!!_0x23b475['config']['get']('list.multiBlock');function _0x5d46c1(_0x2adb5f){return{'type':'format','content':''+o(_0x3f1877,'*Set\x20format:*\x20%0',_0x2adb5f)};}function _0x5751f0(_0x23c6d2){return{'type':'format','content':''+o(_0x3f1877,'*Remove\x20format:*\x20%0',_0x23c6d2)};}_0x3df0bd['enableDefaultAttributesIntegration']('numberedList'),_0x3df0bd['enableDefaultAttributesIntegration']('bulletedList'),_0x3df0bd['enableDefaultAttributesIntegration']('customNumberedList'),_0x3df0bd['enableDefaultAttributesIntegration']('customBulletedList'),_0x3df0bd['enableDefaultAttributesIntegration']('indentList'),_0x3df0bd['enableDefaultAttributesIntegration']('outdentList'),_0x3df0bd['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3df0bd['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3df0bd['registerBlockAttribute']('listItemId'),_0x3df0bd['registerBlockAttribute']('listType'),_0x3df0bd['registerBlockAttribute']('listIndent'),_0x401974&&(_0x3df0bd['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3df0bd['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x331384&&(_0x3df0bd['enableDefaultAttributesIntegration']('todoList'),_0x3df0bd['enableDefaultAttributesIntegration']('checkTodoList'),_0x3df0bd['registerBlockAttribute']('todoListChecked'),_0x3df0bd['descriptionFactory']['registerDescriptionCallback'](_0x55e7fa=>{const {data:_0x5b97c0}=_0x55e7fa;if(_0x5b97c0&&'todoListChecked'==_0x5b97c0['key'])return{'type':'format','content':_0x5b97c0['newValue']?o(_0x3f1877,'*Check\x20item*'):o(_0x3f1877,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x38d131=>{if(_0x38d131['batch']['isUndo'])return!0x1;let _0x10c59b=!0x1;const _0x30d062=_0x3df0bd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d9b24=>'todoListChecked'===_0x3df0bd['_getAttributeKey'](_0x3d9b24));for(const _0x49910a of _0x30d062){'todo'!=_0x49910a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3df0bd['_findSuggestions'](_0x49910a['getFirstRange'](),'attribute')['find'](_0x817db6=>'listType'===_0x3df0bd['_getAttributeKey'](_0x817db6['suggestion']))||(_0x38d131['removeMarker'](_0x49910a['getFirstMarker']()),_0x10c59b=!0x0));}return _0x10c59b;})),_0x3df0bd['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3f1877,'FORMAT_INDENT'));const _0x2309f1={'type':'format','content':''};_0x3df0bd['descriptionFactory']['registerDescriptionCallback'](_0x3554f0=>{const {data:_0x42bfbc}=_0x3554f0;if(!_0x42bfbc||'listType'!=_0x42bfbc['key'])return;let _0x3cd037=_0x3554f0['head'];for(;_0x3cd037;){if(_0x3cd037['data']&&(('listStyle'==_0x3cd037['data']['key']||'listMarkerStyle'==_0x3cd037['data']['key'])&&(_0x3cd037['data']['newValue']&&'default'!=_0x3cd037['data']['newValue']||'default'!=_0x3cd037['data']['oldValue']&&!_0x42bfbc['newValue'])||!_0x401974&&_0x3cd037['data']['key']==m))return _0x2309f1;_0x3cd037=_0x3cd037['next'];}if(null==_0x42bfbc['newValue'])switch(_0x42bfbc['oldValue']){case'bulleted':return _0x5751f0(o(_0x3f1877,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5751f0(o(_0x3f1877,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5751f0(o(_0x3f1877,'ELEMENT_TODO_LIST'));}switch(_0x42bfbc['newValue']){case'bulleted':return _0x5d46c1(o(_0x3f1877,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d46c1(o(_0x3f1877,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d46c1(o(_0x3f1877,'ELEMENT_TODO_LIST'));}}),_0x3df0bd['descriptionFactory']['registerDescriptionCallback'](_0x1eee14=>{const {data:_0x481fb9}=_0x1eee14;if(_0x481fb9&&'listIndent'==_0x481fb9['key'])return null==_0x481fb9['newValue']||null==_0x481fb9['oldValue']&&0x0==_0x481fb9['newValue']?_0x2309f1:void 0x0;}),_0x3df0bd['descriptionFactory']['registerDescriptionCallback'](_0x379e46=>{if('attribute'!=_0x379e46['type'])return;const {data:_0xe905d6}=_0x379e46;if(!_0xe905d6||'listItemId'!=_0xe905d6['key'])return;const _0x1636a4=Te(_0x379e46);return'newValue'==_0x1636a4?{'type':'format','content':o(_0x3f1877,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1636a4?{'type':'format','content':o(_0x3f1877,'*Split:*\x20list\x20item')}:_0x2309f1;}),_0x23b475['model']['document']['registerPostFixer'](_0x2dbc4a=>this['listItemIdFixer'](_0x2dbc4a)),_0x23b475['model']['document']['registerPostFixer'](_0x2b61a1=>this['noTrackChangesFixer'](_0x2b61a1)),_0x23b475['model']['document']['on']('change:data',(_0x37b016,_0x234132)=>{if(_0x234132['isUndo']||!_0x234132['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x582fcf){if(_0x582fcf['batch']['isUndo']||!_0x582fcf['batch']['isLocal'])return!0x1;let _0x12415e=!0x1;const _0x1e3fa6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x117afc=>_0x117afc['data']&&'listItemId'==_0x117afc['data']['key'])['filter'](_0x44c056=>_0x44c056['data']['newValue']&&_0x44c056['data']['oldValue']);for(const _0x915061 of _0x1e3fa6)Te(_0x915061)||(_0x582fcf['removeMarker'](_0x915061['getFirstMarker']()),_0x12415e=!0x0);return _0x12415e;}['noTrackChangesFixer'](_0x5e257c){if(_0x5e257c['batch']['isUndo']||!_0x5e257c['batch']['isLocal'])return!0x1;const _0x3da3cf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3da3cf['trackChangesCommand']['value'])return!0x1;let _0x661d4=!0x1;const _0x134e33=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2fbe71=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5de368=>'attribute'==_0x5de368['type'])['filter'](_0x55cf81=>_0x134e33['includes'](_0x55cf81['attributeKey']));if(0x0==_0x2fbe71['length'])return _0x661d4;for(const _0x58755d of _0x2fbe71){const _0x365fa0=_0x3da3cf['_findSuggestions'](_0x58755d['range'],'attribute')['filter'](_0x97fd09=>!_0x97fd09['meta']['isNextTo'])['map'](_0x12c7e0=>_0x12c7e0['suggestion'])['filter'](_0x5b511a=>{const _0x38df7d=_0x3da3cf['_getAttributeKey'](_0x5b511a);return _0x134e33['includes'](_0x38df7d);});if(_0x365fa0['length']){for(const _0x28622d of _0x365fa0)_0x5e257c['removeMarker'](_0x28622d['getFirstMarker']());_0x661d4=!0x0;}}return _0x661d4;}['assureChains'](){const _0x572687=this['editor']['plugins']['get']('TrackChangesEditing'),_0x236892=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x502af6;const _0x238116=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e8fd2=>{if(_0x3e8fd2['data']['oldRange']||!_0x3e8fd2['data']['newRange'])return null;if(!_0x3e8fd2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5decb5}=_0x572687['_splitMarkerName'](_0x3e8fd2['name']);if(!_0x572687['hasSuggestion'](_0x5decb5))return null;const _0x3596bc=_0x572687['getSuggestion'](_0x5decb5);return _0x236892['includes'](_0x3596bc['data']['key']);})['map'](_0xa709b7=>{const {id:_0x30d40b}=_0x572687['_splitMarkerName'](_0xa709b7['name']),_0x5c9916=_0x572687['getSuggestion'](_0x30d40b);return _0x502af6=_0x5c9916['attributes']['groupId'],_0x5c9916['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x238116['size'])return;const _0x1c77ac=_0x572687['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5396d3=>'attribute'==_0x5396d3['type']&&_0x5396d3['data']&&_0x236892['includes'](_0x5396d3['data']['key'])&&_0x5396d3['attributes']['groupId']!=_0x502af6)['map'](_0x50d156=>({'listItem':_0x50d156['getFirstRange']()['start']['nodeAfter'],'groupId':_0x50d156['attributes']['groupId']})),_0x3d45cd=new Set();for(const {groupId:_0x14a1e8,listItem:_0x5b723d}of _0x1c77ac)_0x238116['has'](_0x5b723d)&&_0x3d45cd['add'](_0x14a1e8);for(const _0x48bdb6 of _0x572687['getSuggestions']())_0x3d45cd['has'](_0x48bdb6['attributes']['groupId'])&&_0x48bdb6['setAttribute']('groupId',_0x502af6);}['_supportLegacySuggestions'](){const _0x1da903=this['editor'],_0x3b1748=_0x1da903['locale'],_0x51eedb=_0x1da903['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x51eedb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3fbe38,_0x2eddd8){const _0x562728=[];for(let _0xf1d4f8 of _0x3fbe38)_0xf1d4f8['start']['nodeAfter']===_0xf1d4f8['end']['parent']&&(_0xf1d4f8=_0x1da903['model']['createRange'](_0x1da903['model']['createPositionAt'](_0xf1d4f8['start']['nodeAfter'],0x0))),_0x562728['push'](_0xf1d4f8);_0x1da903['model']['change'](_0x3b5dd6=>{const _0x1af1aa=_0x1da903['model']['document']['selection'],_0x26808b=Array['from'](_0x1af1aa['getRanges']())['map'](_0x1fc467=>_0x19bc7a['fromRange'](_0x1fc467));_0x3b5dd6['setSelection'](_0x562728),_0x1da903['commands']['get'](_0x2eddd8['commandName'])['refresh'](),_0x2eddd8['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1da903['execute'](_0x2eddd8['commandName'],..._0x2eddd8['commandParams']),_0x3b5dd6['setSelection'](_0x26808b);for(const _0x9b28a9 of _0x26808b)_0x9b28a9['detach']();});}),_0x51eedb['descriptionFactory']['registerElementLabel'](function(_0x40b03e){const _0x3af834=!_0x1da903['model']['schema']['isObject'](_0x40b03e),_0x4a34e8=_0x40b03e['previousSibling'],_0xa0c3b0=_0x40b03e['nextSibling'],_0x43aea5=_0x40b03e['getAttribute']('listItemId'),_0x2b5e04=!_0x4a34e8||_0x4a34e8['getAttribute']('listItemId')!==_0x43aea5,_0x4eb3c6=!_0xa0c3b0||_0xa0c3b0['getAttribute']('listItemId')!==_0x43aea5;return _0x3af834&&Boolean(_0x43aea5)&&_0x2b5e04&&_0x4eb3c6;},_0x4035a4=>o(_0x3b1748,'ELEMENT_LIST_ITEM',_0x4035a4));}['_registerLegacyDescription'](){const _0x4c5c0d=this['editor'],_0x4f80ba=_0x4c5c0d['locale'];function _0x3b24c0(_0x45ef07){const _0x257cbb=_0x4c5c0d['commands']['get']('bulletedList')['value'],_0xe45822=_0x4c5c0d['commands']['get']('numberedList')['value'];return'numberedList'===_0x45ef07?_0x257cbb:_0xe45822;}_0x4c5c0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x570e98){if('formatBlock'!=_0x570e98['type'])return;const {data:_0x2f9a1e}=_0x570e98;if(!_0x2f9a1e)return;let _0x236f66,_0x3b7d4f,_0xb46fe1,_0xb44272;switch(_0x2f9a1e['commandName']){case'bulletedList':_0xb46fe1=_0x2f9a1e['commandParams'][0x0]['forceValue'],_0xb44272=_0x3b24c0(_0x2f9a1e['commandName']),_0x236f66=_0xb46fe1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb44272&&_0x4c5c0d['config']['get']('list.multiBlock')||(_0x236f66='*Change\x20to:*\x20%0'),_0x3b7d4f={'type':'format','content':o(_0x4f80ba,_0x236f66,o(_0x4f80ba,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xb46fe1=_0x2f9a1e['commandParams'][0x0]['forceValue'],_0xb44272=_0x3b24c0(_0x2f9a1e['commandName']),_0x236f66=_0xb46fe1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb44272&&_0x4c5c0d['config']['get']('list.multiBlock')||(_0x236f66='*Change\x20to:*\x20%0'),_0x3b7d4f={'type':'format','content':o(_0x4f80ba,_0x236f66,o(_0x4f80ba,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x236f66='*Indent:*\x20%0',_0x3b7d4f={'type':'format','content':o(_0x4f80ba,_0x236f66,o(_0x4f80ba,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x236f66=function(_0x2b5abd){const _0xb080b3=_0x2b5abd['getFirstRange']();let _0x35e596=_0xb080b3['start']['nodeAfter'];for(;_0x35e596&&_0xb080b3['containsItem'](_0x35e596);){if(_0x35e596['getAttribute']('listIndent')>0x0)return!0x1;_0x35e596=_0x35e596['nextSibling'];}return!0x0;}(_0x570e98)?o(_0x4f80ba,'*Format:*\x20remove\x20from\x20%0',o(_0x4f80ba,function(_0x96fe76){return'ELEMENT_'+_0x96fe76['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x570e98))):o(_0x4f80ba,'*Outdent:*\x20%0',o(_0x4f80ba,'ELEMENT_LIST_ITEM')),_0x3b7d4f={'type':'format','content':_0x236f66};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2f9a1e['multipleBlocks']&&(_0x236f66='*Merge:*\x20%0',_0x3b7d4f={'type':'deletion','content':o(_0x4f80ba,_0x236f66,o(_0x4f80ba,'ELEMENT_LIST_ITEM'))});}return _0x3b7d4f;});}}function Te(_0x53538d){let _0x2176fd=_0x53538d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2176fd;){const _0x219151=_0x2176fd['getAttribute']('listItemId');if(!_0x219151)return!0x1;if(_0x219151==_0x53538d['data']['newValue'])return'newValue';if(_0x219151==_0x53538d['data']['oldValue'])return'oldValue';_0x2176fd=_0x2176fd['previousSibling'];}return!0x1;}class q extends _0x6410a9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2101e8=this['editor']['config']['get']('list.properties'),_0x3a1cd0=this['editor']['plugins']['get']('TrackChangesEditing');_0x2101e8['styles']&&(_0x3a1cd0['enableDefaultAttributesIntegration']('listStyle'),_0x3a1cd0['registerBlockAttribute']('listStyle')),_0x2101e8['reversed']&&(_0x3a1cd0['enableDefaultAttributesIntegration']('listReversed'),_0x3a1cd0['registerBlockAttribute']('listReversed')),_0x2101e8['startIndex']&&(_0x3a1cd0['enableDefaultAttributesIntegration']('listStart'),_0x3a1cd0['registerBlockAttribute']('listStart'));const _0x4ebc62={'type':'format','content':''};_0x3a1cd0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x561ec8=this['editor']['locale'];_0x3a1cd0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x561ec8,'FORMAT_LIST_REVERSED')),_0x3a1cd0['descriptionFactory']['registerDescriptionCallback'](_0x2b098a=>{const {data:_0x415bbb}=_0x2b098a;if(_0x415bbb&&'listReversed'==_0x415bbb['key'])return null==_0x415bbb['newValue']||0x0==_0x415bbb['newValue']&&null==_0x415bbb['oldValue']?_0x4ebc62:void 0x0;}),_0x3a1cd0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x561ec8,'FORMAT_LIST_START')),_0x3a1cd0['descriptionFactory']['registerDescriptionCallback'](_0x2eaee1=>{const {data:_0x102900}=_0x2eaee1;if(_0x102900&&'listStart'==_0x102900['key'])return null==_0x102900['newValue']||0x1==_0x102900['newValue']&&null==_0x102900['oldValue']?_0x4ebc62:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xfc4b47=>{if(_0xfc4b47['batch']['isUndo'])return!0x1;let _0x3f5d6f=!0x1;const _0xc8fb73=_0x3a1cd0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57e7fd=>{const _0x4a4180=_0x3a1cd0['_getAttributeKey'](_0x57e7fd);return'listStart'==_0x4a4180||'listReversed'==_0x4a4180;});for(const _0x384800 of _0xc8fb73){const _0x4df906=_0x384800['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4df906||'customNumbered'==_0x4df906)continue;_0x3a1cd0['_findSuggestions'](_0x384800['getFirstRange'](),'attribute')['find'](_0x243180=>'listType'==_0x3a1cd0['_getAttributeKey'](_0x243180['suggestion']))||(_0xfc4b47['removeMarker'](_0x384800['getFirstMarker']()),_0x3f5d6f=!0x0);}return _0x3f5d6f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x18d3fc){const _0x1e4941=this['editor']['locale'],{data:_0x2802f4}=_0x18d3fc,_0x25ee5e={'type':'format','content':''};if(!_0x2802f4||'listStyle'!=_0x2802f4['key'])return;if(!_0x2802f4['oldValue'])return'default'==_0x2802f4['newValue']?_0x25ee5e:{'type':'format','content':''+o(_0x1e4941,'*Set\x20format:*\x20%0',o(_0x1e4941,this['_getTranslationKeyForListStyle'](_0x2802f4['newValue'])))};if(!_0x2802f4['newValue']){if('default'==_0x2802f4['oldValue'])return _0x25ee5e;let _0x40d4f9=_0x18d3fc['head'];for(;_0x40d4f9;){if(_0x40d4f9['data']&&'listType'==_0x40d4f9['data']['key']&&_0x40d4f9['data']['newValue'])return _0x25ee5e;_0x40d4f9=_0x40d4f9['next'];}return{'type':'format','content':''+o(_0x1e4941,'*Remove\x20format:*\x20%0',o(_0x1e4941,this['_getTranslationKeyForListStyle'](_0x2802f4['oldValue'])))};}if('default'!=_0x2802f4['newValue'])return{'type':'format','content':''+o(_0x1e4941,'*Set\x20format:*\x20%0',o(_0x1e4941,this['_getTranslationKeyForListStyle'](_0x2802f4['newValue'])))};let _0x185fbd=_0x18d3fc['head'];for(;_0x185fbd;){if(_0x185fbd['data']&&'listType'==_0x185fbd['data']['key']&&_0x185fbd['data']['newValue']&&_0x185fbd['data']['oldValue'])return _0x25ee5e;_0x185fbd=_0x185fbd['next'];}return{'type':'format','content':o(_0x1e4941,'*Set\x20format:*\x20%0',o(_0x1e4941,'ELEMENT_'+_0x18d3fc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xfcc67=this['editor'],_0x3fa47e=_0xfcc67['locale'];_0xfcc67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f1056=>{if('formatBlock'!=_0x5f1056['type'])return;const {data:_0x490f8e}=_0x5f1056;if(!_0x490f8e)return;let _0x725400,_0x1fd408;switch(_0x490f8e['commandName']){case'listStyle':_0x725400='*Change\x20to:*\x20%0',_0x1fd408={'type':'format','content':o(_0x3fa47e,_0x725400,o(_0x3fa47e,this['_getTranslationKeyForListStyle'](_0x490f8e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x725400=_0x490f8e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1fd408={'type':'format','content':o(_0x3fa47e,_0x725400)};break;case'listStart':_0x725400='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1fd408={'type':'format','content':o(_0x3fa47e,_0x725400,_0x490f8e['commandParams'][0x0]['startIndex'])};}return _0x1fd408;});}['_getTranslationKeyForListStyle'](_0x3db788){return'ELEMENT_'+function(_0x165317){if(Se['includes'](_0x165317))return'bulleted';if(_e['includes'](_0x165317))return'numbered';return null;}(_0x3db788)['toUpperCase']()+'_LIST_'+_0x3db788['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x6410a9{['afterInit'](){const _0x42d683=this['editor'];_0x42d683['commands']['get']('emoji')&&_0x42d683['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x6410a9{static get['requires'](){return[_0x4a2084];}['init'](){const _0x429ffa=this['editor'],_0x38cd1d=_0x429ffa['plugins']['get']('TrackChangesEditing'),_0x3286da=_0x429ffa['commands']['get']('enter');_0x38cd1d['enableCommand']('enter',()=>{_0x429ffa['model']['change'](_0x6e3c25=>{const _0x3bcc9d=_0x429ffa['model']['document']['selection'],_0x4cb9cd=_0x3bcc9d['getFirstPosition'](),_0x34cffc=_0x19bc7a['fromRange'](_0x3bcc9d['getFirstRange']());if(_0x3286da['enterBlock'](_0x6e3c25)){const _0x42ffb6=_0x429ffa['model']['createPositionAt'](_0x4cb9cd['parent']['nextSibling'],0x0),_0x1ed378=_0x6e3c25['createRange'](_0x4cb9cd,_0x42ffb6);_0x38cd1d['markInsertion'](_0x1ed378);}else _0x6e3c25['setSelection'](_0x6e3c25['createRange'](_0x34cffc['end']));_0x34cffc['detach'](),_0x3286da['fire']('afterExecute',{'writer':_0x6e3c25});});}),_0x429ffa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x429ffa,'split'),{'priority':'high'}),_0x429ffa['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1b9b6b,_0x6828b7,_0x4e6022)=>{const _0x22ebc2=_0x4e6022['mapper']['markerNameToElements'](_0x6828b7['markerName']);if(_0x22ebc2){for(const _0xe3586d of _0x22ebc2)_0xe3586d['hasClass']('ck-suggestion-marker-split')&&(_0x4e6022['mapper']['unbindElementFromMarkerName'](_0xe3586d,_0x6828b7['markerName']),_0x4e6022['writer']['remove'](_0xe3586d));}},{'priority':'high'}),_0x429ffa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b93a6,_0x211062,_0x21f919)=>{_0x21f919['options']['showSuggestionHighlights']&&De(_0x429ffa,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b93a6,_0x211062,_0x21f919);},{'priority':'high'});}}class Q extends _0x6410a9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x30bc28=this['editor']['plugins']['get']('TrackChangesEditing');_0x30bc28['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x30bc28['enableCommand']('findNext'),_0x30bc28['enableCommand']('findPrevious'),_0x30bc28['enableCommand']('replace'),_0x30bc28['enableCommand']('replaceAll');}['handleFindCommand'](_0x14e84a,_0x112b6d,_0x492913={}){const _0x41f08e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x14e84a(_0x126e93=>{let _0x28568b=('string'==typeof _0x112b6d?_0x41f08e['findByTextCallback'](_0x112b6d,_0x492913):_0x112b6d)(_0x126e93);Array['isArray'](_0x28568b)&&(_0x28568b={'results':_0x28568b,'searchText':'string'==typeof _0x112b6d?_0x112b6d:''});const _0x5445f1=_0x28568b['results']['filter'](_0x3ec5d5=>!0x1===this['_isInDeletionRange'](_0x3ec5d5,_0x126e93['item']));return{..._0x28568b,'results':_0x5445f1};},_0x492913);}['_isInDeletionRange'](_0x289428,_0x35cffa){const _0x2efdab=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35cffa,_0x289428['start']),this['editor']['model']['createPositionAt'](_0x35cffa,_0x289428['end']));for(const _0xb1b8a5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2efdab['getIntersection'](_0xb1b8a5['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x6410a9{['afterInit'](){const _0x63a1fc=this['editor']['locale'],_0x2d3ffc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2c4e6d,commandName:_0x195669}of eo)this['editor']['plugins']['has'](_0x2c4e6d)&&(_0x2d3ffc['enableDefaultAttributesIntegration'](_0x195669),_0x2d3ffc['registerInlineAttribute'](_0x195669));_0x2d3ffc['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x63a1fc,'FORMAT_FONT_SIZE')),_0x2d3ffc['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x63a1fc,'FORMAT_FONT_FAMILY')),_0x2d3ffc['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x63a1fc,'FORMAT_FONT_COLOR')),_0x2d3ffc['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x63a1fc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3def07=this['editor'],_0x5cdef8=_0x3def07['locale'];_0x3def07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba5db9=>{const _0x175319=_0x5cdef8['t'];if('formatInline'!=_0xba5db9['type'])return;const {data:_0x220622}=_0xba5db9;if(null!=_0x220622){if('fontSize'==_0x220622['commandName']){const _0x23c326=_0x220622['commandParams'][0x0]['value'];if(_0x23c326){const _0x59d129=_0x175319(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5ea947=>_0x5ea947['model']==_0x23c326)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5cdef8,'*Set\x20font\x20size:*\x20%0',_0x59d129)};}return{'type':'format','content':o(_0x5cdef8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x220622['commandName']){const _0x3ad7d6=_0x220622['commandParams'][0x0]['value'];return _0x3ad7d6?{'type':'format','content':o(_0x5cdef8,'*Set\x20font\x20family:*\x20%0',_0x3ad7d6)}:{'type':'format','content':o(_0x5cdef8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x220622['commandName']){const _0x4d9889=_0x220622['commandParams'][0x0]['value'];if(_0x4d9889){const _0x26821f=_0x40063d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x355b8d=>_0x355b8d['model']==_0x4d9889);let _0x5d9852=_0x4d9889,_0x1c49a6='';return _0x26821f&&(_0x5d9852=_0x26821f['label'],_0x1c49a6=_0x175319(_0x5d9852)['toLowerCase']()),{'type':'format','content':o(_0x5cdef8,'*Set\x20font\x20color:*\x20%0',_0x1c49a6)['trim'](),'color':{'value':_0x4d9889,'title':_0x1c49a6||_0x5d9852}};}return{'type':'format','content':o(_0x5cdef8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x220622['commandName']){const _0x4d86e4=_0x220622['commandParams'][0x0]['value'];if(_0x4d86e4){const _0x236567=_0x40063d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2bb124=>_0x2bb124['model']==_0x4d86e4);let _0x5ed83d=_0x4d86e4,_0x3775a0='';return _0x236567&&(_0x5ed83d=_0x236567['label'],_0x3775a0=_0x175319(_0x5ed83d)['toLowerCase']()),{'type':'format','content':o(_0x5cdef8,'*Set\x20font\x20background\x20color:*\x20%0',_0x3775a0)['trim'](),'color':{'value':_0x4d86e4,'title':_0x3775a0||_0x5ed83d}};}return{'type':'format','content':o(_0x5cdef8,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x6410a9{['afterInit'](){const _0x291ebf=this['editor'],_0x32eeb0=_0x291ebf['plugins']['get']('TrackChangesEditing'),_0x8d06b2=_0x291ebf['commands']['get']('copyFormat'),_0x5b6748=_0x291ebf['commands']['get']('pasteFormat');_0x8d06b2&&_0x5b6748&&(_0x32eeb0['enableDefaultAttributesIntegration']('pasteFormat'),_0x32eeb0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x12ed11=this['editor'],_0x42b4bd=_0x12ed11['locale'];_0x12ed11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bf1c4=>{if('formatBlock'!=_0x2bf1c4['type']&&'formatInline'!=_0x2bf1c4['type'])return;const {data:_0x534b43}=_0x2bf1c4;if(_0x534b43&&'pasteFormat'===_0x534b43['commandName']){const _0x44e44d=[],_0x4969a5=_0x534b43['commandParams'][0x0];for(const [_0x1a04f1,_0x58444b]of Object['entries'](_0x4969a5))_0x44e44d['push'](ro(_0x12ed11,_0x1a04f1,_0x58444b));return _0x44e44d['length']?{'type':'format','content':o(_0x42b4bd,'*Set\x20format\x20to:*\x20%0',_0x44e44d['join'](',\x20'))}:{'type':'format','content':o(_0x42b4bd,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x486605,_0x20e961,_0x4015aa){const _0x1fe42d=_0x486605['locale']['t'],_0x420add=_0x20e961['split'](/(?=[A-Z])/)['join']('\x20'),_0x54d64d=_0x1fe42d(_0x420add['charAt'](0x0)['toUpperCase']()+_0x420add['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4015aa)return _0x54d64d;if('fontColor'===_0x20e961||'fontBackgroundColor'===_0x20e961){const _0x266d49=_0x40063d(_0x486605['config']['get']('fontColor.colors'))['find'](_0x5e8322=>_0x5e8322['model']==_0x4015aa);return _0x54d64d+'\x20('+(_0x266d49?_0x1fe42d(_0x266d49['label'])['toLowerCase']():_0x4015aa)+')';}if('fontSize'===_0x20e961&&isNaN(parseFloat(_0x4015aa))){const _0x121949=_0x486605['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x486605['config']['get']('fontSize.options'))['find'](_0xb0959c=>_0xb0959c['model']==_0x4015aa);return _0x54d64d+'\x20('+(_0x121949?_0x1fe42d(_0x121949['title'])['toLowerCase']():_0x4015aa)+')';}return _0x54d64d+'\x20('+_0x4015aa+')';}class Z extends _0x6410a9{['_headingOptions'];['afterInit'](){const _0x50a2f0=this['editor'];if(!_0x50a2f0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x50a2f0['config']['get']('heading.options');const _0x74374e=_0x50a2f0['locale'],_0x3406a3=_0x50a2f0['plugins']['get']('TrackChangesEditing');_0x3406a3['enableDefaultAttributesIntegration']('heading');for(const _0x4890e5 of this['_headingOptions'])'paragraph'!=_0x4890e5['model']&&_0x3406a3['descriptionFactory']['registerElementLabel'](_0x4890e5['model'],_0x1d4964=>{const _0x3e12f6=this['_getHeadingLevel'](_0x4890e5['model']);return null!==_0x3e12f6?_0x5f36ee(_0x1d4964,_0x3e12f6):_0x416703(_0x1d4964,_0x4890e5['title']);});function _0x5f36ee(_0x3c1a1f,_0x8caab4){return o(_0x74374e,'ELEMENT_HEADING',[_0x3c1a1f,_0x8caab4]);}function _0x416703(_0x23dcfe,_0x5b6283){return o(_0x74374e,'ELEMENT_HEADING_CUSTOM',[_0x23dcfe,_0x5b6283]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x307252=this['editor'],_0x1716df=_0x307252['locale'];function _0x1154be(_0x16b397,_0x4dbd5b){return o(_0x1716df,'ELEMENT_HEADING_CUSTOM',[_0x16b397,_0x4dbd5b]);}_0x307252['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1475ad=>{if('formatBlock'!=_0x1475ad['type'])return;const {data:_0x46ffa7}=_0x1475ad;if(_0x46ffa7&&'heading'==_0x46ffa7['commandName']){const _0x4085c8=_0x46ffa7['commandParams'][0x0]['value'],_0x3ca546=this['_getHeadingLevel'](_0x4085c8);if(null!==_0x3ca546)return{'type':'format','content':o(_0x1716df,'*Change\x20to:*\x20%0',(_0x40e97e=0x1,_0x40588b=_0x3ca546,o(_0x1716df,'ELEMENT_HEADING',[_0x40e97e,_0x40588b])))};const _0x1a563c=this['_headingOptions']['find'](_0x5e4b20=>_0x5e4b20['model']===_0x4085c8)['title'];return{'type':'format','content':o(_0x1716df,'*Change\x20to:*\x20%0',_0x1154be(0x1,_0x1a563c))};}var _0x40e97e,_0x40588b;});}['_getHeadingLevel'](_0x591ff2){const _0x36dbe5=_0x591ff2['match'](/^heading(\d+)/);if(_0x36dbe5)return _0x36dbe5[0x1];const _0x40f40b=this['_headingOptions']?.['find'](_0x4dc96a=>_0x4dc96a['model']==_0x591ff2);if(_0x40f40b&&_0x40f40b['view']){const _0x2c53ed=_0x40f40b['view'],_0x5a4828=(_0x2c53ed['name']??_0x2c53ed)['match'](/^h(\d+)/);if(_0x5a4828)return _0x5a4828[0x1];}return null;}}class tt extends _0x6410a9{['afterInit'](){const _0x39bd06=this['editor'];if(!_0x39bd06['plugins']['has']('HighlightEditing'))return;const _0x3323e2=_0x39bd06['plugins']['get']('TrackChangesEditing'),_0x69f57a=_0x39bd06['locale'];_0x3323e2['enableDefaultAttributesIntegration']('highlight'),_0x3323e2['registerInlineAttribute']('highlight'),_0x3323e2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x69f57a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0ff1=this['editor'],_0x5602a6=_0x3e0ff1['locale'];_0x3e0ff1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314c5b=>{if('formatInline'!=_0x314c5b['type'])return;const {data:_0x1aef46}=_0x314c5b;if(_0x1aef46&&'highlight'==_0x1aef46['commandName']){const _0x2ff46d=_0x5602a6['t'],_0x4b8207=_0x1aef46['commandParams'][0x0]['value'];if(_0x4b8207){const _0x4e80f3=_0x3e0ff1['config']['get']('highlight.options')['find'](_0x2e3d69=>_0x2e3d69['model']==_0x4b8207),_0x4da13f=_0x2ff46d(_0x4e80f3['title'])['toLowerCase']();return{'type':'format','content':o(_0x5602a6,'*Set\x20highlight:*\x20%0',_0x4da13f),'color':{'value':_0x4e80f3['color'],'title':_0x4e80f3['title']}};}return{'type':'format','content':o(_0x5602a6,'*Remove\x20highlight*',o(_0x5602a6,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x6410a9{['afterInit'](){const _0x151301=this['editor'];if(!_0x151301['plugins']['has']('HorizontalLineEditing'))return;_0x151301['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ac1ac=_0x151301['plugins']['get']('TrackChangesEditing'),_0x3e28b9=_0x151301['locale'];_0x5ac1ac['descriptionFactory']['registerElementLabel']('horizontalLine',_0x40d64e=>o(_0x3e28b9,'ELEMENT_HORIZONTAL_LINE',_0x40d64e)),_0x151301['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x103f07,{writer:_0x20a8fc,options:_0x246c8e})=>{if(!_0x246c8e['showSuggestionHighlights'])return null;const _0x2e3c9e=_0x20a8fc['createContainerElement']('div'),_0x2cc81f=_0x20a8fc['createEmptyElement']('hr');return _0x20a8fc['addClass']('ck-horizontal-line',_0x2e3c9e),_0x20a8fc['insert'](_0x20a8fc['createPositionAt'](_0x2e3c9e,0x0),_0x2cc81f),_0x2e3c9e;},'converterPriority':'high'});}}class nt extends _0x6410a9{['afterInit'](){const _0x20f67a=this['editor'];if(!_0x20f67a['plugins']['has']('HtmlEmbed'))return;const _0x564224=_0x20f67a['plugins']['get']('TrackChangesEditing'),_0x5ba40e=_0x20f67a['locale'];_0x564224['descriptionFactory']['registerElementLabel']('rawHtml',_0x2dfd1e=>o(_0x5ba40e,'ELEMENT_HTML_EMBED',_0x2dfd1e)),_0x564224['enableDefaultAttributesIntegration']('htmlEmbed'),_0x564224['registerBlockAttribute']('value'),_0x564224['descriptionFactory']['registerDescriptionCallback'](_0x1f310d=>{if('attribute'!=_0x1f310d['type'])return;const {data:_0x477f18}=_0x1f310d;if(_0x477f18&&'value'==_0x477f18['key']&&_0x1f310d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4a4287=o(_0x5ba40e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5ba40e,'*Change\x20%0\x20content*',_0x4a4287)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2522=this['editor'],_0x36bdc8=_0x1f2522['locale'];_0x1f2522['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd58435=>{if('formatBlock'!=_0xd58435['type'])return;const {data:_0x17fbfa}=_0xd58435;if(_0x17fbfa&&'htmlEmbed'==_0x17fbfa['commandName']){const _0x5eae2b=o(_0x36bdc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x36bdc8,'*Change\x20%0\x20content*',_0x5eae2b)};}});}}class et extends _0x6410a9{['afterInit'](){const _0x3b7ad8=this['editor'];if(!_0x3b7ad8['plugins']['has']('ImageEditing'))return;const _0xa8a2c1=_0x3b7ad8['plugins']['get']('TrackChangesEditing'),_0x18f415=_0x3b7ad8['plugins']['get']('ImageUtils'),_0x576f9b=_0x3b7ad8['locale'];_0xa8a2c1['enableCommand']('insertImage'),_0xa8a2c1['descriptionFactory']['registerElementLabel']('imageBlock',_0x269796=>o(_0x576f9b,'ELEMENT_IMAGE',_0x269796)),_0xa8a2c1['descriptionFactory']['registerElementLabel']('imageInline',_0xb42827=>o(_0x576f9b,'ELEMENT_INLINE_IMAGE',_0xb42827)),_0xa8a2c1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x576f9b,'ELEMENT_CAPTION')),_0x3b7ad8['plugins']['has']('ImageUploadEditing')&&_0xa8a2c1['enableCommand']('uploadImage'),_0x3b7ad8['plugins']['has']('ImageBlockEditing')&&_0x3b7ad8['plugins']['has']('ImageInlineEditing')&&(_0xa8a2c1['enableCommand']('imageTypeInline',(_0x582fbc,_0x7d3b34)=>{const _0x56485b=_0x18f415['getClosestSelectedImageElement'](_0x3b7ad8['model']['document']['selection']);_0x3b7ad8['model']['change'](()=>{_0xa8a2c1['markBlockFormat'](_0x56485b,{'commandName':'imageTypeInline','commandParams':[_0x7d3b34]},[],'convertBlockImageToInline');});}),_0xa8a2c1['enableCommand']('imageTypeBlock',(_0x2fd0c2,_0x339c1b)=>{_0x3b7ad8['model']['change'](_0x38e564=>{let _0x4e7408=_0x18f415['getClosestSelectedImageElement'](_0x3b7ad8['model']['document']['selection']),_0x5b2a47=_0x38e564['createRangeOn'](_0x4e7408);const _0x466235=_0x4ef712['fromPosition'](_0x5b2a47['start'],'toPrevious'),_0x5e1ef6=_0x4ef712['fromPosition'](_0x5b2a47['end'],'toNext');_0xa8a2c1['forceDefaultExecution'](()=>_0x2fd0c2(_0x339c1b)),_0x4e7408=_0x18f415['getClosestSelectedImageElement'](_0x3b7ad8['model']['document']['selection']),_0x5b2a47=_0x38e564['createRangeOn'](_0x4e7408);const _0x4b52cb=_0x38e564['createRange'](_0x466235,_0x5e1ef6);_0x466235['detach'](),_0x5e1ef6['detach'](),_0xa8a2c1['markBlockFormat'](_0x4e7408,{'commandName':'imageTypeInline','commandParams':[_0x339c1b]},[],'convertInlineImageToBlock'),_0x4b52cb['start']['isBefore'](_0x5b2a47['start'])&&_0xa8a2c1['markInsertion'](_0x38e564['createRange'](_0x4b52cb['start'],_0x5b2a47['start']),'convertInlineImageToBlock'),_0x5b2a47['end']['isBefore'](_0x4b52cb['end'])&&_0xa8a2c1['markInsertion'](_0x38e564['createRange'](_0x5b2a47['end'],_0x4b52cb['end']),'convertInlineImageToBlock');});}),_0xa8a2c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xa8a2c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xa8a2c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xa8a2c1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xa8a2c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xa8a2c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3a8938])=>{const _0x2216a9=_0xa8a2c1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x74a9ec=_0x3a8938['start'],_0x13f83=_0x3a8938['end'];const _0x42e8db=_0x3b7ad8['model']['schema']['getNearestSelectionRange'](_0x74a9ec,'backward'),_0x4f4996=_0x3b7ad8['model']['schema']['getNearestSelectionRange'](_0x13f83,'forward');_0x42e8db['isCollapsed']&&(_0x74a9ec=_0x42e8db['start']),_0x4f4996['isCollapsed']&&(_0x13f83=_0x4f4996['end']),_0x2216a9([_0x3b7ad8['model']['createRange'](_0x74a9ec,_0x13f83)]);}),_0xa8a2c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x27c17b),_0xa8a2c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x27c17b)),_0x3b7ad8['plugins']['has']('ImageCaptionEditing')&&(_0xa8a2c1['enableCommand']('toggleImageCaption',(_0x15bfa9,_0x44906e)=>{const _0x3c2484=_0x3b7ad8['plugins']['get']('ImageCaptionUtils');let _0x50a424=_0x18f415['getClosestSelectedImageElement'](_0x3b7ad8['model']['document']['selection']),_0x3a2fde=_0x3c2484['getCaptionFromImageModelElement'](_0x50a424);_0x3b7ad8['model']['change'](()=>{if(_0x3a2fde)return void _0xa8a2c1['markDeletion'](_0x3b7ad8['model']['createRangeOn'](_0x3a2fde));const _0x43599f=_0x18f415['isBlockImage'](_0x50a424);_0x15bfa9(_0x44906e),_0x50a424=_0x18f415['getClosestSelectedImageElement'](_0x3b7ad8['model']['document']['selection']),_0x3a2fde=_0x3c2484['getCaptionFromImageModelElement'](_0x50a424),_0xa8a2c1['markInsertion'](_0x3b7ad8['model']['createRangeOn'](_0x3a2fde),_0x43599f?null:'imageCaption');});}),_0xa8a2c1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x27c17b));const _0x13e731=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x15d615(_0x230684,_0x2542bf){const _0x128fe0=_0x13e731['findIndex'](({type:_0x4274a5,subType:_0x61cb59})=>_0x230684['type']==_0x4274a5&&_0x230684['subType']==_0x61cb59),_0x1cf2a2=_0x13e731['findIndex'](({type:_0x44a1a2,subType:_0x201287})=>_0x2542bf['type']==_0x44a1a2&&_0x2542bf['subType']==_0x201287);if(_0x128fe0<0x0||_0x1cf2a2<0x0)return!0x1;const _0x5ee1ce=_0x230684['getFirstRange'](),_0x4b1664=_0x2542bf['getFirstRange']();if((0x0==_0x128fe0||0x1==_0x128fe0)&&0x2==_0x1cf2a2&&_0x5ee1ce['isIntersecting'](_0x4b1664))return!0x0;if(0x2==_0x128fe0&&0x3==_0x1cf2a2){const _0x4c4484=_0xa8a2c1['_findSuggestions'](_0x5ee1ce,'insertion')['filter'](({suggestion:_0xab07cf,meta:_0x2e318a})=>_0x2e318a['isOwn']&&'convertInlineImageToBlock'==_0xab07cf['subType']);if(_0x4c4484['length']>0x1&&_0x4b1664['end']['isEqual'](_0x5ee1ce['start']))return!0x0;if(0x1==_0x4c4484['length']&&(_0x5ee1ce['start']['isEqual'](_0x4b1664['end'])||_0x5ee1ce['end']['isEqual'](_0x4b1664['start'])))return!0x0;}if(0x3==_0x128fe0&&0x3==_0x1cf2a2&&_0x5ee1ce['start']['isBefore'](_0x4b1664['start'])){const _0x52fbbf=_0x5ee1ce['end']['nodeAfter'],_0x2cac93=_0x4b1664['start']['nodeBefore'];return _0x18f415['isBlockImage'](_0x52fbbf)&&_0x52fbbf===_0x2cac93;}return!0x1;}function _0x27c17b(_0x3c8515,_0x1b451c){return _0x15d615(_0x3c8515,_0x1b451c)?[_0x3c8515,_0x1b451c]:_0x15d615(_0x1b451c,_0x3c8515)?[_0x1b451c,_0x3c8515]:null;}_0x3b7ad8['plugins']['has']('ImageResize')&&(_0xa8a2c1['enableDefaultAttributesIntegration']('resizeImage'),_0xa8a2c1['registerBlockAttribute']('resizedWidth'),_0xa8a2c1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x576f9b,'FORMAT_IMAGE_SIZE'))),_0x3b7ad8['plugins']['has']('ImageTextAlternativeEditing')&&(_0xa8a2c1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xa8a2c1['registerBlockAttribute']('alt')),_0x3b7ad8['plugins']['has']('PictureEditing')&&(_0xa8a2c1['registerBlockAttribute']('sources'),_0xa8a2c1['descriptionFactory']['registerDescriptionCallback'](_0x4774af=>{if('attribute'!=_0x4774af['type'])return;const {data:_0x41dd08}=_0x4774af;return _0x41dd08&&'sources'==_0x41dd08['key']?{'type':'format','content':''}:void 0x0;})),_0x3b7ad8['plugins']['has']('ImageSizeAttributes')&&(_0xa8a2c1['registerBlockAttribute']('width'),_0xa8a2c1['registerBlockAttribute']('height'),_0xa8a2c1['descriptionFactory']['registerDescriptionCallback'](_0x241736=>{if('attribute'!=_0x241736['type'])return;const {data:_0x5daf29}=_0x241736;return!_0x5daf29||'width'!=_0x5daf29['key']&&'height'!=_0x5daf29['key']?void 0x0:{'type':'format','content':''};})),_0xa8a2c1['descriptionFactory']['registerDescriptionCallback'](_0x23c4d4=>{if(!!_0x13e731['find'](({type:_0x6dd97d,subType:_0x9546f9})=>_0x23c4d4['type']==_0x6dd97d&&_0x23c4d4['subType']==_0x9546f9))return _0x23c4d4['previous']?{}:void 0x0;}),_0xa8a2c1['descriptionFactory']['registerDescriptionCallback'](_0x5eb5af=>{if('insertion'==_0x5eb5af['type']||'deletion'==_0x5eb5af['type']){const _0x17f098=_0x5eb5af['getContainedElement']();if(_0x17f098&&_0x17f098['is']('element','caption'))return{'type':'insertion'==_0x5eb5af['type']?'addObject':'removeObject','element':_0x17f098,'quantity':0x1};}}),_0xa8a2c1['descriptionFactory']['registerDescriptionCallback'](_0x3eeba3=>'formatBlock'==_0x3eeba3['type']&&'convertInlineImageToBlock'==_0x3eeba3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3eeba3['type']&&'convertBlockImageToInline'==_0x3eeba3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xa8a2c1['descriptionFactory']['registerDescriptionCallback'](_0x3e505f=>{if('attribute'!=_0x3e505f['type'])return;const {data:_0x1ed5f9}=_0x3e505f;if(!_0x1ed5f9||'alt'!=_0x1ed5f9['key'])return;const _0xffc0f0=_0x1ed5f9['newValue'];return _0xffc0f0?{'type':'format','content':o(_0x576f9b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xffc0f0+'\x22')}:{'type':'format','content':o(_0x576f9b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x356063=this['editor'],_0x52c5f9=_0x356063['locale'];_0x356063['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51159c=>{if('formatBlock'!=_0x51159c['type']&&'formatInline'!=_0x51159c['type'])return;const {data:_0x3996de}=_0x51159c;if(_0x3996de){if('imageTextAlternative'==_0x3996de['commandName']){const _0x1a7069=_0x3996de['commandParams'][0x0]['newValue'];return _0x1a7069?{'type':'format','content':o(_0x52c5f9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a7069+'\x22')}:{'type':'format','content':o(_0x52c5f9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3996de['commandName']){const _0x23dc7a=_0x3996de['commandParams'][0x0]['width'];return _0x23dc7a?{'type':'format','content':o(_0x52c5f9,'*Set\x20image\x20width:*\x20%0',_0x23dc7a)}:{'type':'format','content':o(_0x52c5f9,'*Reset\x20image\x20width*')};}}});}}class st extends _0x6410a9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x57e1b0=this['editor']['locale'],_0x2283cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x2283cc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2283cc['registerBlockAttribute']('src'),_0x2283cc['descriptionFactory']['registerDescriptionCallback'](_0x230edc=>{if('attribute'!=_0x230edc['type'])return;const {data:_0x530f9d}=_0x230edc;return _0x530f9d&&'src'==_0x530f9d['key']?_0x530f9d['newValue']&&_0x530f9d['oldValue']?{'type':'format','content':o(_0x57e1b0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x402a97=this['editor']['plugins']['get']('TrackChangesEditing');_0x402a97['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x402a97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x402a97['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x402a97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a0d13=this['editor'],_0x3cbe11=_0x3a0d13['locale'];_0x3a0d13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x319f05=>{if('formatBlock'!=_0x319f05['type']&&'formatInline'!=_0x319f05['type'])return;const {data:_0x4f80b2}=_0x319f05;if(!_0x4f80b2||'replaceImageSource'!=_0x4f80b2['commandName'])return;return{'type':'format','content':o(_0x3cbe11,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x6410a9{['afterInit'](){const _0x477c08=this['editor'];if(!_0x477c08['plugins']['has']('ImageStyleEditing'))return;const _0x33f5fb=_0x477c08['plugins']['get']('TrackChangesEditing'),_0x132391=_0x477c08['plugins']['get']('ImageUtils'),_0x28527f={};_0x33f5fb['enableCommand']('imageStyle',(_0x273eb4,_0x125489)=>{const _0xc35d11=_0x477c08['plugins']['get']('Users')['me'],_0x530c23=_0x477c08['commands']['get']('imageStyle');let _0x5dd1af=_0x132391['getClosestSelectedImageElement'](_0x477c08['model']['document']['selection']),_0x27cd65=_0x477c08['model']['createRangeOn'](_0x5dd1af),_0x496197=_0x530c23['value'];if(_0x496197==_0x125489['value'])return;const _0x5286b5={'commandName':'imageStyle','commandParams':[_0x125489],'formatGroupId':_0x31afce()};_0x477c08['model']['change'](()=>{if(_0x33f5fb['getSuggestions']()['filter'](_0x801783=>_0x801783['isInContent']&&_0xc35d11==_0x801783['author']&&('formatBlock'==_0x801783['type']||'formatInline'==_0x801783['type'])&&('imageStylePreApply'==_0x801783['subType']||'imageStylePostApply'==_0x801783['subType'])&&_0x801783['getFirstRange']()['isEqual'](_0x27cd65))['forEach'](_0x40d47e=>_0x33f5fb['discardSuggestion'](_0x40d47e['head'])),_0x5dd1af=_0x132391['getClosestSelectedImageElement'](_0x477c08['model']['document']['selection']),_0x27cd65=_0x477c08['model']['createRangeOn'](_0x5dd1af),_0x530c23['refresh'](),_0x477c08['commands']['get']('imageTypeInline')['refresh'](),_0x477c08['commands']['get']('imageTypeBlock')['refresh'](),_0x496197=_0x530c23['value'],_0x496197!=_0x125489['value'])return _0x132391['isInlineImage'](_0x5dd1af)&&_0x530c23['shouldConvertImageType'](_0x125489['value'],_0x5dd1af)?(_0x273eb4({..._0x125489,'setImageSizes':!0x1}),_0x5dd1af=_0x132391['getClosestSelectedImageElement'](_0x477c08['model']['document']['selection']),void _0x33f5fb['markBlockFormat'](_0x5dd1af,{..._0x5286b5,'commandReversedParams':[{'value':_0x496197||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x132391['isBlockImage'](_0x5dd1af)?_0x33f5fb['markBlockFormat'](_0x5dd1af,_0x5286b5,[],'imageStylePostApply'):_0x33f5fb['markInlineFormat'](_0x27cd65,_0x5286b5,'imageStylePostApply'));});});for(const _0x4f8545 of _0x477c08['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28527f[_0x4f8545['name']]=_0x4f8545['title']['toLowerCase']();_0x33f5fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x33f5fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x33f5fb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x33f5fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x301979])=>{_0x132391['setImageNaturalSizeAttributes'](_0x301979['getContainedElement']());}),_0x33f5fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x15f0ec,_0x456213)=>{_0x33f5fb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x15f0ec,{'commandName':_0x456213['commandName'],'commandParams':_0x456213['commandReversedParams']});}),_0x33f5fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1c84b8,_0x308d97){if(_0xb41a74(_0x1c84b8,_0x308d97))return[_0x1c84b8,_0x308d97];if(_0xb41a74(_0x308d97,_0x1c84b8))return[_0x308d97,_0x1c84b8];return null;});const _0x5d0f55=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb41a74(_0x4a94d9,_0x28003a){const _0x47f1d1=_0x5d0f55['findIndex'](({type:_0x1e0bbf,subType:_0x3e2d91})=>_0x4a94d9['type']==_0x1e0bbf&&_0x4a94d9['subType']==_0x3e2d91),_0x50fc19=_0x5d0f55['findIndex'](({type:_0x1da2c1,subType:_0x120967})=>_0x28003a['type']==_0x1da2c1&&_0x28003a['subType']==_0x120967);if(_0x47f1d1<0x0||_0x50fc19<0x0)return!0x1;const _0x5e4ac3=_0x4a94d9['getFirstRange'](),_0x1896e6=_0x28003a['getFirstRange']();if((0x0==_0x47f1d1||0x1==_0x47f1d1)&&0x2==_0x50fc19&&_0x5e4ac3['isIntersecting'](_0x1896e6))return!0x0;if(0x2==_0x47f1d1&&0x3==_0x50fc19){const _0x854160=_0x33f5fb['_findSuggestions'](_0x5e4ac3,'insertion')['filter'](({suggestion:_0x3de1c5,meta:_0x52a8a3})=>_0x52a8a3['isOwn']&&'convertInlineImageToBlock'==_0x3de1c5['subType']);if(_0x854160['length']>0x1&&_0x1896e6['end']['isEqual'](_0x5e4ac3['start']))return!0x0;if(0x1==_0x854160['length']&&(_0x5e4ac3['start']['isEqual'](_0x1896e6['end'])||_0x5e4ac3['end']['isEqual'](_0x1896e6['start'])))return!0x0;}if(0x3==_0x47f1d1&&0x3==_0x50fc19&&_0x5e4ac3['start']['isBefore'](_0x1896e6['start'])){const _0x167b12=_0x5e4ac3['end']['nodeAfter'],_0x5dcb65=_0x1896e6['start']['nodeBefore'];return _0x132391['isBlockImage'](_0x167b12)&&_0x167b12===_0x5dcb65;}return!0x1;}_0x477c08['model']['document']['registerPostFixer'](()=>{let _0x494141=!0x1;const _0x19a3be=Array['from'](_0x477c08['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xfdb83e,data:_0x3fe6a4}of _0x19a3be){const {group:_0x5f50e8,type:_0xed030c,subType:_0x5937c6,id:_0x47ba6e}=_0x33f5fb['_splitMarkerName'](_0xfdb83e);if('suggestion'==_0x5f50e8&&_0x33f5fb['hasSuggestion'](_0x47ba6e)){if('formatBlock'==_0xed030c&&('imageStylePreApply'==_0x5937c6||'imageStylePostApply'==_0x5937c6)){const _0x15bf6f=_0x33f5fb['getSuggestion'](_0x47ba6e);if(_0x3fe6a4['newRange']){const _0x4dee81=_0x15bf6f['getFirstRange']()['getContainedElement']();if(_0x132391['isBlockImage'](_0x4dee81))continue;_0x33f5fb['discardSuggestion'](_0x15bf6f),_0x494141=!0x0;}}if('insertion'==_0xed030c&&'imageCaption'==_0x5937c6&&!_0x3fe6a4['newRange']){const _0x2699a3=_0x33f5fb['getSuggestion'](_0x47ba6e);_0x2699a3['next']&&_0x2699a3['next']['isInContent']&&(_0x33f5fb['discardSuggestion'](_0x2699a3['next']),_0x494141=!0x0);}}}return _0x494141;}),this['_registerLegacyDescription'](_0x28527f);}['_registerLegacyDescription'](_0x41d044){const _0x3e4416=this['editor'],_0x27d966=_0x3e4416['locale'];_0x3e4416['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb4bcb9=>{if('formatBlock'!=_0xb4bcb9['type']&&'formatInline'!=_0xb4bcb9['type'])return;const {data:_0x2fde6e}=_0xb4bcb9;if(!_0x2fde6e||'imageStyle'!=_0x2fde6e['commandName'])return;const _0x2ab793=_0x2fde6e['commandParams'][0x0]['value'];return _0x17aa22('side'===_0x2ab793?o(_0x27d966,'FORMAT_SIDE_IMAGE'):_0x41d044[_0x2ab793]||_0x2ab793);function _0x17aa22(_0x394ce7){return{'type':'format','content':o(_0x27d966,'*Format:*\x20%0',_0x394ce7)};}});}}class rt extends _0x6410a9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x38befd){super(_0x38befd),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x220904=this['editor'],_0x2f177a=_0x220904['commands']['get']('importWord'),_0x3960f3=_0x220904['commands']['get']('trackChanges');_0x2f177a&&(_0x2f177a['on']('execute',(_0x1e4f43,[,_0x12b53e])=>{this['_trackChangesValueDuringImport']=_0x3960f3['value'],_0x12b53e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2f177a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2f177a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3960f3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x220904['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1aec49,_0x1da7ea){const {suggestions:_0x4e5551}=_0x1da7ea,_0x4ec2f3=this['editor']['commands']['get']('trackChanges'),_0x296ef8=_0x4ec2f3['value'];this['_trackChangesValueDuringImport']!==_0x296ef8&&(_0x4ec2f3['execute'](),this['_trackChangesExecuted']=!0x0),_0x4e5551&&_0x4e5551['forEach'](({id:_0x3ef24b,type:_0x5d9c89,author:_0x20e179,created_at:_0x11a05a})=>{const _0x4c3789={'id':_0x3ef24b,'type':_0x5d9c89,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x20e179,'createdAt':_0x11a05a?new Date(_0x11a05a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c3789);});}}class at extends _0x6410a9{['afterInit'](){const _0x44c7c8=this['editor'],_0xd3990c=_0x44c7c8['plugins']['get']('TrackChangesEditing');if(_0x44c7c8['plugins']['has']('IndentEditing')&&(_0xd3990c['enableCommand']('indent'),_0xd3990c['enableCommand']('outdent')),_0x44c7c8['plugins']['has']('IndentBlock')){for(const _0x41c610 of['indentBlock','outdentBlock'])_0xd3990c['enableDefaultAttributesIntegration'](_0x41c610);}const _0x43436d=_0x44c7c8['locale'];_0xd3990c['registerBlockAttribute']('blockIndent'),_0xd3990c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x43436d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcca3=this['editor'],_0x4de2c5=_0x1fcca3['locale'],_0x1950aa=_0x1fcca3['plugins']['get']('TrackChangesEditing');_0x1950aa['descriptionFactory']['registerDescriptionCallback'](_0x986ed1=>{if('formatBlock'!=_0x986ed1['type'])return;const {data:_0x12c23b}=_0x986ed1;if(!_0x12c23b)return;if('indentBlock'!=_0x12c23b['commandName']&&'outdentBlock'!=_0x12c23b['commandName'])return;const _0x110cfb=_0x986ed1['getItems']()[0x0],_0x23679a=_0x1950aa['descriptionFactory']['getItemLabel'](_0x110cfb);return'indentBlock'==_0x12c23b['commandName']?{'type':'format','content':o(_0x4de2c5,'*Indent:*\x20%0',_0x23679a)}:'outdentBlock'==_0x12c23b['commandName']?{'type':'format','content':o(_0x4de2c5,'*Outdent:*\x20%0',_0x23679a)}:void 0x0;});}}class ct extends _0x6410a9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x6410a9{['afterInit'](){const _0x1b43a4=this['editor'];if(!_0x1b43a4['plugins']['has']('LinkEditing'))return;const _0x4306c3=_0x1b43a4['plugins']['get']('TrackChangesEditing'),_0x4bd835=_0x1b43a4['commands']['get']('link');_0x4306c3['enableDefaultAttributesIntegration']('link'),_0x4306c3['enableDefaultAttributesIntegration']('unlink'),_0x4306c3['registerInlineAttribute']('linkHref');for(const _0x4dc813 of _0x4bd835['manualDecorators'])_0x4306c3['registerInlineAttribute'](_0x4dc813['id']),_0x4306c3['descriptionFactory']['registerAttributeLabel'](_0x4dc813['id'],'link\x20('+_0x4dc813['label']['toLowerCase']()+')');_0x4306c3['descriptionFactory']['registerDescriptionCallback'](_0x3cdd49=>{if('attribute'!=_0x3cdd49['type'])return;const {data:_0x29d7d0}=_0x3cdd49;if(!_0x29d7d0||'linkHref'!=_0x29d7d0['key'])return;const _0x493673=_0x29d7d0['newValue'],_0x12d8b5=_0x1b43a4['locale'];return{'type':'format','content':null==_0x493673?o(_0x12d8b5,'*Remove\x20link*'):o(_0x12d8b5,'*Set\x20link:*\x20%0','\x22'+_0x493673+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ade7c=this['editor'],_0x43e2c9=_0x5ade7c['locale'];_0x5ade7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37cd0e=>{if('formatInline'!=_0x37cd0e['type'])return;const {data:_0x5d1190}=_0x37cd0e;if(_0x5d1190){if('link'==_0x5d1190['commandName']){const _0x2386cb=_0x5d1190['commandParams'][0x0];return{'type':'format','content':o(_0x43e2c9,'*Set\x20link:*\x20%0','\x22'+_0x2386cb+'\x22')};}return'unlink'==_0x5d1190['commandName']?{'type':'format','content':o(_0x43e2c9,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x6410a9{['afterInit'](){const _0x3e0f8c=this['editor'],_0x3b0589=_0x3e0f8c['locale'];if(!_0x3e0f8c['plugins']['has']('LegacyListEditing'))return;const _0x1ca5a3=_0x3e0f8c['plugins']['get']('TrackChangesEditing'),_0x55d295=_0x3e0f8c['plugins']['has']('LegacyTodoListEditing');function _0xd3f2fb(_0x1f9080){return()=>{const _0x4d22fd=_0x3e0f8c['model']['document']['selection'],_0x50741b=_0x3e0f8c['commands']['get'](_0x1f9080);if(_0x50741b['value'])return void _0x3e0f8c['execute']('paragraph',{});const _0x3e74d9=_0x1f9080['slice'](0x0,-0x4),_0x3aad58=function(_0xdc77a9,_0x23bcb5,_0x33a8e5){let _0x5e8606=Array['from'](_0xdc77a9)['filter'](_0x29a543=>function(_0x21f823,_0x110659){return _0x110659['checkChild'](_0x21f823['parent'],'listItem')&&!_0x110659['isObject'](_0x21f823);}(_0x29a543,_0x33a8e5));_0x5e8606=_0x5e8606['filter'](_0x597259=>!_0x597259['is']('element','listItem')||_0x597259['getAttribute']('listType')!=_0x23bcb5);const _0x14bf39=new Set();for(const _0x58a138 of _0x5e8606)_0x58a138['is']('element','listItem')?_0x14bf39['add'](Le(_0x58a138)):_0x14bf39['add'](_0x58a138);return Array['from'](_0x14bf39);}(_0x4d22fd['getSelectedBlocks'](),_0x3e74d9,_0x3e0f8c['model']['schema']);_0x3e0f8c['model']['change'](()=>{for(const _0x252830 of _0x3aad58)_0x1ca5a3['markBlockFormat'](_0x252830,{'commandName':_0x1f9080,'commandParams':[{'forceValue':!_0x50741b['value']}],'formatGroupId':'blockName'},Ee(_0x252830));});};}function _0x346f34(_0x5f0590){return()=>{const _0x3740c8=function(_0x5b9513){let _0x2e4607=Array['from'](_0x5b9513);const _0x5a9bce=_0x2e4607['findIndex'](_0xa11c5a=>'listItem'!=_0xa11c5a['name']);return _0x5a9bce>-0x1&&(_0x2e4607=_0x2e4607['slice'](0x0,_0x5a9bce)),_0x2e4607;}(_0x3e0f8c['model']['document']['selection']['getSelectedBlocks']()),_0x57bbf0=_0x3e0f8c['model']['createRange'](_0x3e0f8c['model']['createPositionAt'](_0x3740c8[0x0],'before'),_0x3e0f8c['model']['createPositionAt'](_0x3740c8[_0x3740c8['length']-0x1],'end'));_0x3e0f8c['model']['change'](()=>{_0x1ca5a3['markBlockFormat'](_0x57bbf0,{'commandName':_0x5f0590,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4fd062){const _0x581ed9=new Set();for(const _0x3e5d57 of _0x4fd062){let _0x135cfd=_0x3e5d57['nextSibling'];for(;_0x135cfd&&_0x135cfd['getAttribute']('listIndent')>_0x3e5d57['getAttribute']('listIndent');)_0x581ed9['add'](_0x135cfd),_0x135cfd=_0x135cfd['nextSibling'];}return Array['from'](_0x581ed9);}(_0x3740c8));});};}_0x1ca5a3['enableCommand']('numberedList',_0xd3f2fb('numberedList')),_0x1ca5a3['enableCommand']('bulletedList',_0xd3f2fb('bulletedList')),_0x55d295&&_0x1ca5a3['enableCommand']('todoList',_0xd3f2fb('todoList')),_0x1ca5a3['enableCommand']('indentList',_0x346f34('indentList')),_0x1ca5a3['enableCommand']('outdentList',_0x346f34('outdentList')),_0x55d295&&_0x1ca5a3['enableCommand']('checkTodoList',()=>{const _0x2b28d8=_0x3e0f8c['commands']['get']('checkTodoList'),_0x484f27=Array['from'](_0x2b28d8['_selectedElements']);_0x484f27['filter'](_0x20007c=>_0x20007c['getAttribute']('todoListChecked')!=_0x2b28d8['value']),_0x3e0f8c['model']['change'](()=>{for(const _0x1e8927 of _0x484f27)_0x1ca5a3['markBlockFormat'](_0x1e8927,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b28d8['value']}]});});}),_0x1ca5a3['descriptionFactory']['registerElementLabel']('listItem',_0x30fa9f=>o(_0x3b0589,'ELEMENT_LIST_ITEM',_0x30fa9f)),_0x1ca5a3['descriptionFactory']['registerDescriptionCallback'](_0x43c1d6=>{if('formatBlock'!=_0x43c1d6['type']&&'formatInline'!=_0x43c1d6['type'])return;const {data:_0x7ded18}=_0x43c1d6;if(_0x7ded18){if('numberedList'==_0x7ded18['commandName']||'bulletedList'==_0x7ded18['commandName']||'todoList'==_0x7ded18['commandName'])switch(_0x7ded18['commandName']['replace']('List','')){case'bulleted':return _0x2fba1e(o(_0x3b0589,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2fba1e(o(_0x3b0589,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2fba1e(o(_0x3b0589,'ELEMENT_TODO_LIST'));}if('indentList'==_0x7ded18['commandName'])return{'type':'format','content':o(_0x3b0589,'*Indent:*\x20%0',o(_0x3b0589,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x7ded18['commandName'])return{'type':'format','content':o(_0x3b0589,'*Outdent:*\x20%0',o(_0x3b0589,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x7ded18['commandName'])return _0x7ded18['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b0589,'*Check\x20item*')}:{'type':'format','content':o(_0x3b0589,'*Uncheck\x20item*')};}function _0x2fba1e(_0xd653da){return{'type':'format','content':o(_0x3b0589,'*Change\x20to:*\x20%0',_0xd653da)};}});}}function Le(_0x2a4019){const _0x1fc0af=_0x2a4019['getAttribute']('listIndent');if(0x0==_0x1fc0af)return _0x2a4019;let _0x587d59=_0x2a4019;for(;_0x2a4019['previousSibling']&&_0x2a4019['previousSibling']['is']('element','listItem');){const _0x400084=_0x2a4019['previousSibling']['getAttribute']('listIndent');if(_0x400084==_0x1fc0af)_0x587d59=_0x2a4019['previousSibling'];else{if(_0x400084<_0x1fc0af)break;}_0x2a4019=_0x2a4019['previousSibling'];}return _0x587d59;}function Ee(_0x3708bc){const _0x255848=[];if(_0x3708bc['is']('element','listItem')&&_0x3708bc['getAttribute']('listIndent')>0x0){let _0x4fc829=_0x3708bc['nextSibling'];for(;_0x4fc829&&'listItem'==_0x4fc829['name']&&_0x4fc829['getAttribute']('listIndent')==_0x3708bc['getAttribute']('listIndent');)_0x255848['push'](_0x4fc829),_0x4fc829=_0x4fc829['nextSibling'];}return _0x255848;}class ht extends _0x6410a9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x348ccc=this['editor']['config']['get']('list.properties'),_0x350ac8=this['editor']['plugins']['get']('TrackChangesEditing');_0x348ccc['styles']&&_0x350ac8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x348ccc['reversed']&&_0x350ac8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x348ccc['startIndex']&&_0x350ac8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x350ac8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x7c9118,_0x2e31cc={}){const _0x13c2da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d0115=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x13c2da['markMultiRangeBlockFormat'](_0x5d0115,{'commandName':'listStyle','commandParams':[{'type':_0x2e31cc['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4ec873,_0x4f1066={}){const _0x1abe6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25b9d9=this['_getSuggestionBlocks'](_0x52c22e=>_0x52c22e['is']('element','listItem')&&'numbered'===_0x52c22e['getAttribute']('listType'));if(_0x25b9d9['length']<0x1)return;const _0x4a7b5b=_0x25b9d9['map'](_0x3073e0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3073e0,'before'),this['editor']['model']['createPositionAt'](_0x3073e0,0x0)));this['editor']['model']['change'](()=>{_0x1abe6b['markMultiRangeBlockFormat'](_0x4a7b5b,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f1066['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x594a7d,_0x1eff11={}){const _0x6dd9c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ae8c8=this['_getSuggestionBlocks'](_0x474194=>_0x474194['is']('element','listItem')&&'numbered'===_0x474194['getAttribute']('listType'));if(_0x5ae8c8['length']<0x1)return;const _0x26680c=_0x5ae8c8['map'](_0x3236b2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3236b2,'before'),this['editor']['model']['createPositionAt'](_0x3236b2,0x0)));this['editor']['model']['change'](()=>{_0x6dd9c4['markMultiRangeBlockFormat'](_0x26680c,{'commandName':'listStart','commandParams':[{'startIndex':_0x1eff11['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x393a4f){if('formatBlock'!=_0x393a4f['type']&&'formatInline'!=_0x393a4f['type'])return;const _0x373002=this['editor']['locale'],{data:_0x3f226d}=_0x393a4f;if(!_0x3f226d)return;let _0x6b2084,_0x3d0771;switch(_0x3f226d['commandName']){case'listStyle':_0x6b2084='*Change\x20to:*\x20%0',_0x3d0771={'type':'format','content':o(_0x373002,_0x6b2084,o(_0x373002,this['_getTranslationKeyForListStyle'](_0x3f226d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6b2084=_0x3f226d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3d0771={'type':'format','content':o(_0x373002,_0x6b2084)};break;case'listStart':_0x6b2084='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3d0771={'type':'format','content':o(_0x373002,_0x6b2084,_0x3f226d['commandParams'][0x0]['startIndex'])};}return _0x3d0771;}['_getSuggestionBlocksForListStyle'](){const _0x3ffa16=this['editor']['plugins']['get']('LegacyListUtils');let _0x59b450=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x59b450[0x0]?.['is']('element','listItem')&&_0x59b450['unshift'](..._0x3ffa16['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x59b450[_0x59b450['length']-0x1]?.['is']('element','listItem')&&_0x59b450['push'](..._0x3ffa16['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x59b450=[...new Set(_0x59b450)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x59b450=_0x59b450['filter'](_0x2358a2=>_0x2358a2['is']('element','listItem'))),_0x59b450;}['_getSuggestionBlocks'](_0x2d361f){const _0x1f6cfc=this['editor']['plugins']['get']('LegacyListUtils');let _0x129782=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2d361f)['map'](_0x17ef15=>{const _0x1714c2=this['editor']['model']['createPositionAt'](_0x17ef15,0x0);return[..._0x1f6cfc['getSiblingNodes'](_0x1714c2,'backward'),..._0x1f6cfc['getSiblingNodes'](_0x1714c2,'forward')];})['flat']();return _0x129782=[...new Set(_0x129782)],_0x129782;}['_getTranslationKeyForListStyle'](_0x399422){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x399422)||'default')['toUpperCase']()+'_LIST_'+_0x399422['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x6410a9{['afterInit'](){const _0x36c22a=this['editor'];if(!_0x36c22a['plugins']['has']('MediaEmbedEditing'))return;const _0x332c34=_0x36c22a['plugins']['get']('TrackChangesEditing'),_0x3fafe5=_0x36c22a['locale'];_0x332c34['enableCommand']('mediaEmbed'),_0x332c34['descriptionFactory']['registerElementLabel']('media',_0x445a1a=>o(_0x3fafe5,'ELEMENT_MEDIA',_0x445a1a)),_0x36c22a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x37a05f,{writer:_0x15fa56,options:_0x5b7cd9})=>{if(_0x5b7cd9['showSuggestionHighlights'])return _0x15fa56['createEmptyElement']('div');},'converterPriority':'high'}),_0x36c22a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1eb059,_0x2204d1,_0x2814eb)=>{_0x2814eb['options']['showSuggestionHighlights']&&_0x1eb059['stop']();},{'priority':'high'});}}class lt extends _0x6410a9{['afterInit'](){const _0x5e9e69=this['editor'];_0x5e9e69['plugins']['has']('MentionEditing')&&_0x5e9e69['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x6410a9{['afterInit'](){const _0x3ad5d3=this['editor'];if(!_0x3ad5d3['plugins']['has']('MergeFieldsEditing'))return;const _0x1f8364=_0x3ad5d3['plugins']['get']('TrackChangesEditing'),_0x847e1e=_0x3ad5d3['locale'];_0x1f8364['enableCommand']('insertMergeField'),_0x1f8364['enableCommand']('insertMergeFieldBlock'),_0x1f8364['enableCommand']('insertMergeFieldImage'),_0x1f8364['descriptionFactory']['registerElementLabel']('mergeField',_0x2e662f=>o(_0x847e1e,'ELEMENT_MERGE_FIELD',_0x2e662f)),_0x1f8364['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x31dfff=>o(_0x847e1e,'ELEMENT_MERGE_FIELD',_0x31dfff)),_0x1f8364['descriptionFactory']['registerDescriptionCallback'](_0x274ba2=>{if('insertion'!=_0x274ba2['type']&&'deletion'!=_0x274ba2['type'])return;const _0x65e1fc=_0x274ba2['getContainedElement']();if(null==_0x65e1fc)return;const _0x2de107=_0x3ad5d3['plugins']['get']('MergeFieldsEditing');let _0x1945c7;switch(_0x2de107['getMergeFieldType'](_0x65e1fc)){case null:return;case'image':{const _0x35fb12=_0x2de107['unwrapAffixes'](_0x65e1fc['getAttribute']('src'));_0x1945c7=_0x2de107['getLabel'](_0x35fb12)||_0x35fb12;break;}default:{const _0x1c5718=_0x65e1fc['getAttribute']('id');_0x1945c7=_0x2de107['getLabel'](_0x1c5718)||_0x1c5718;break;}}return'insertion'==_0x274ba2['type']?{'type':'insertion','content':o(_0x847e1e,'*Insert:*\x20%0','\x22'+_0x1945c7+'\x22\x20'+o(_0x847e1e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x847e1e,'*Remove:*\x20%0','\x22'+_0x1945c7+'\x22\x20'+o(_0x847e1e,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x6410a9{['afterInit'](){const _0x509bad=this['editor'],_0x4759ed=_0x509bad['plugins']['get']('TrackChangesEditing');_0x509bad['plugins']['has']('MultiLevelList')&&(_0x4759ed['enableDefaultAttributesIntegration']('multiLevelList'),_0x4759ed['registerBlockAttribute']('listMarkerStyle'),_0x4759ed['descriptionFactory']['registerDescriptionCallback'](_0x588b69=>this['handleDescriptions'](_0x588b69)));}['handleDescriptions'](_0x272563){const _0x1fac0d=this['editor']['locale'],{data:_0x369f45}=_0x272563,_0x5e7a98={'type':'format','content':''};if(_0x369f45&&'listMarkerStyle'==_0x369f45['key']){if(!_0x369f45['oldValue'])return{'type':'format','content':o(_0x1fac0d,'*Set\x20format:*\x20%0',o(_0x1fac0d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x369f45['newValue']+')'};if(!_0x369f45['newValue']){let _0x385927=_0x272563['head'];for(;_0x385927;){if(_0x385927['data']&&'listType'==_0x385927['data']['key']&&_0x385927['data']['newValue'])return _0x5e7a98;_0x385927=_0x385927['next'];}return{'type':'format','content':o(_0x1fac0d,'*Remove\x20format:*\x20%0',o(_0x1fac0d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x369f45['oldValue']+')'};}}}}class pt extends _0x6410a9{['afterInit'](){const _0x35e342=this['editor'];if(!_0x35e342['plugins']['has']('PageBreakEditing'))return;_0x35e342['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x260ceb=_0x35e342['plugins']['get']('TrackChangesEditing'),_0x4988ce=_0x35e342['locale'];_0x260ceb['descriptionFactory']['registerElementLabel']('pageBreak',_0x4c53df=>o(_0x4988ce,'ELEMENT_PAGE_BREAK',_0x4c53df));}}class kt extends _0x6410a9{['afterInit'](){const _0x419acc=this['editor'];if(!_0x419acc['plugins']['has']('Paragraph'))return;const _0x4c9900=_0x419acc['locale'],_0x5a5220=_0x419acc['plugins']['get']('TrackChangesEditing');_0x5a5220['descriptionFactory']['registerElementLabel']('paragraph',_0x1aaf21=>o(_0x4c9900,'ELEMENT_PARAGRAPH',_0x1aaf21)),_0x5a5220['enableDefaultAttributesIntegration']('paragraph'),_0x5a5220['enableCommand']('insertParagraph'),_0x419acc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x419acc),{'priority':'highest'}),_0x419acc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e300a,_0x372ac3,_0x2486cc)=>{_0x2486cc['options']['showSuggestionHighlights']&&nr(_0x419acc,{'showActiveMarker':!0x1})(_0x2e300a,_0x372ac3,_0x2486cc);},{'priority':'highest'});const _0x3dae8a=_0x5a5220['descriptionFactory'];_0x3dae8a['registerDescriptionCallback'](_0x4c6e1c=>{if('insertion'!==_0x4c6e1c['type'])return;const {start:_0x4abcae,end:_0x185ff1}=_0x4c6e1c['getFirstRange']();if(!_0x4abcae['isTouching'](_0x185ff1)||!_0x4abcae['nodeAfter'])return;const _0x3b0fe0=_0x419acc['model']['schema'],_0x240531=_0x4abcae['nodeAfter'];return _0x3b0fe0['isBlock'](_0x240531)&&!_0x3b0fe0['isLimit'](_0x240531)&&_0x3b0fe0['checkChild'](_0x240531,'$text')?{'type':'insertion','content':o(_0x4c9900,'*Insert:*\x20%0',_0x3dae8a['getItemLabel'](_0x240531,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x590bf0=this['editor'],_0x2f2f38=_0x590bf0['locale'];_0x590bf0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x370f8e=>{if('formatBlock'!=_0x370f8e['type'])return;const {data:_0x221bad}=_0x370f8e;return _0x221bad&&'paragraph'==_0x221bad['commandName']?{'type':'format','content':o(_0x2f2f38,'*Change\x20to:*\x20%0',o(_0x2f2f38,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1f5cd1,{showActiveMarker:_0x22be72=!0x0}={}){return(_0x19645c,_0xf99bd0,_0x2602a9)=>{const _0x319f4d=_0x1f5cd1['plugins']['get']('TrackChangesEditing'),_0x481f9d=_0xf99bd0['markerRange']['start'],_0x2db828=_0xf99bd0['markerRange']['end'],_0x5ee01=_0x1f5cd1['model']['schema'];if(!_0x481f9d['isTouching'](_0x2db828)||!_0x481f9d['nodeAfter'])return;const _0x1d4556=_0x481f9d['nodeAfter'];if(_0x5ee01['isBlock'](_0x1d4556)&&!_0x5ee01['isLimit'](_0x1d4556)&&_0x5ee01['checkChild'](_0x1d4556,'$text')){if(!_0x2602a9['consumable']['consume'](_0xf99bd0['markerRange'],_0x19645c['name']))return;const {id:_0x7c03e0,authorId:_0x598a3b}=_0x319f4d['_splitMarkerName'](_0xf99bd0['markerName']),_0x51d2d1=_0x2602a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x7c03e0,'data-author-id':_0x598a3b}),_0x157cbc=_0x2602a9['mapper']['toViewPosition'](_0x2db828);_0x22be72&&_0x319f4d['activeMarkers']['includes'](_0xf99bd0['markerName'])&&_0x2602a9['writer']['addClass']('ck-suggestion-marker--active',_0x51d2d1),_0x2602a9['writer']['insert'](_0x157cbc,_0x51d2d1),_0x2602a9['mapper']['bindElementToMarker'](_0x51d2d1,_0xf99bd0['markerName']);}};}class wt extends _0x6410a9{['afterInit'](){const _0x2b8d82=this['editor'];_0x2b8d82['commands']['get']('replaceSource')&&_0x2b8d82['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x6410a9{['afterInit'](){const _0x502963=this['editor'];if(!_0x502963['plugins']['has']('RemoveFormatEditing'))return;_0x502963['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x356bfd=this['editor'];_0x356bfd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b6302=>{if('formatBlock'!=_0x4b6302['type']&&'formatInline'!=_0x4b6302['type'])return;const {data:_0x221a30}=_0x4b6302;return _0x221a30&&'removeFormat'==_0x221a30['commandName']?{'type':'format','content':o(_0x356bfd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x6410a9{['afterInit'](){const _0x45a8df=this['editor'];if(!_0x45a8df['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x47e968=_0x45a8df['plugins']['get']('TrackChangesEditing');_0x47e968['enableCommand']('goToPreviousRestrictedEditingException'),_0x47e968['enableCommand']('goToNextRestrictedEditingException');const _0x2a7f0f=_0x45a8df['plugins']['get']('RestrictedEditingModeEditing');_0x2a7f0f['enableCommand']('trackChanges'),_0x2a7f0f['enableCommand']('acceptSuggestion'),_0x2a7f0f['enableCommand']('discardSuggestion'),_0x2a7f0f['enableCommand']('acceptAllSuggestions'),_0x2a7f0f['enableCommand']('discardAllSuggestions'),_0x2a7f0f['enableCommand']('acceptSelectedSuggestions'),_0x2a7f0f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x6410a9{['afterInit'](){const _0x483aa1=this['editor'];if(!_0x483aa1['plugins']['has']('ShiftEnter'))return;const _0x521385=_0x483aa1['plugins']['get']('TrackChangesEditing');_0x521385['enableCommand']('shiftEnter'),_0x483aa1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x483aa1),{'priority':'high'}),_0x483aa1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x483aa1),{'priority':'high'}),_0x483aa1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4638c6,_0x370bd8,_0x5b4e8f)=>{_0x5b4e8f['options']['showSuggestionHighlights']&&je(_0x483aa1,{'showActiveMarker':!0x1})(_0x4638c6,_0x370bd8,_0x5b4e8f);}),_0x521385['descriptionFactory']['registerElementLabel']('softBreak',_0x294f6d=>o(_0x483aa1['locale'],'ELEMENT_LINE_BREAK',_0x294f6d));}}function je(_0x9a8d82,{showActiveMarker:_0x1216a8=!0x0}={}){return(_0xad3fdd,_0x2587c2,_0x3fac00)=>{const _0x148e7b=_0x9a8d82['plugins']['get']('TrackChangesEditing');if(!_0x3fac00['consumable']['test'](_0x2587c2['markerRange'],_0xad3fdd['name']))return;const _0x56b10a=_0x9a8d82['model'];for(const _0x3d28dc of _0x2587c2['markerRange']['getItems']()){if(!_0x3d28dc['is']('element','softBreak'))continue;const _0x3d76ca='deletion'==_0x2587c2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4eceb0,authorId:_0x5ed669}=_0x148e7b['_splitMarkerName'](_0x2587c2['markerName']),_0x39d722=_0x3fac00['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d76ca,'data-suggestion':_0x4eceb0,'data-author-id':_0x5ed669}),_0x16ec0d=_0x3fac00['mapper']['toViewPosition'](_0x56b10a['createPositionBefore'](_0x3d28dc));_0x1216a8&&_0x148e7b['activeMarkers']['includes'](_0x2587c2['markerName'])&&_0x3fac00['writer']['addClass']('ck-suggestion-marker--active',_0x39d722),_0x3fac00['writer']['insert'](_0x16ec0d,_0x39d722),_0x3fac00['mapper']['bindElementToMarker'](_0x39d722,_0x2587c2['markerName']);}};}class St extends _0x6410a9{['afterInit'](){const _0x4dd7ea=this['editor'],_0x42d135=_0x4dd7ea['model'],_0x2745aa=_0x4dd7ea['locale'];if(!_0x4dd7ea['plugins']['has']('StandardEditingModeEditing'))return;const _0x4b9019=_0x4dd7ea['plugins']['get']('TrackChangesEditing'),_0x299e1c='restrictedEditingException',_0xdf3c57=_0x4dd7ea['commands']['get'](_0x299e1c);_0x4b9019['enableCommand'](_0x299e1c,(_0x18a1ed,_0x49da6e={})=>{const _0x55e675=_0x42d135['document']['selection'];if(_0x55e675['isCollapsed'])return void _0x18a1ed(_0x49da6e);const _0x425b60=void 0x0!==_0x49da6e['forceValue']?_0x49da6e['forceValue']:!_0xdf3c57['value'];_0x42d135['change'](()=>{const _0x62dba6=Array['from'](_0x55e675['getRanges']());for(const _0x3ab004 of _0x62dba6){const _0x34cfd1=_0x425b60?[_0x3ab004]:io(_0x299e1c,_0x3ab004,_0x42d135);for(const _0x36be8b of _0x34cfd1)_0x4b9019['markInlineFormat'](_0x36be8b,{'commandName':_0x299e1c,'commandParams':[{'forceValue':_0x425b60}]});}});}),_0x4b9019['descriptionFactory']['registerDescriptionCallback'](_0x345469=>{if('formatBlock'!=_0x345469['type']&&'formatInline'!=_0x345469['type'])return;const {data:_0x2dc16e}=_0x345469;return _0x2dc16e&&_0x2dc16e['commandName']==_0x299e1c?_0x2dc16e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2745aa,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2745aa,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x6410a9{['afterInit'](){const _0x36d9bb=this['editor'];if(!_0x36d9bb['plugins']['has']('Style')||!_0x36d9bb['plugins']['has']('DataSchema'))return;const _0x7e700a=_0x36d9bb['plugins']['get']('TrackChangesEditing'),_0x266e9e=_0x36d9bb['locale'],_0x593f17=_0x36d9bb['config']['get']('style')||{},_0x577580=_0x36d9bb['plugins']['get']('GeneralHtmlSupport'),_0x5dc333=_0x36d9bb['plugins']['get']('StyleUtils')['normalizeConfig'](_0x36d9bb['plugins']['get']('DataSchema'),_0x593f17['definitions']);_0x7e700a['enableDefaultAttributesIntegration']('style');const _0x1ecca1=new Set();for(const _0x44514e of _0x5dc333['block']){const _0x7f41e=_0x577580['getGhsAttributeNameForElement'](_0x44514e['element']);_0x1ecca1['add'](_0x7f41e);}const _0x450560=new Set();for(const _0x412fad of _0x5dc333['inline']){const _0x1eaf37=_0x577580['getGhsAttributeNameForElement'](_0x412fad['element']);_0x450560['add'](_0x1eaf37);for(const _0x4fb423 of _0x412fad['ghsAttributes'])_0x450560['add'](_0x4fb423);}for(const _0x3ef5cd of _0x1ecca1)_0x7e700a['registerBlockAttribute'](_0x3ef5cd),_0x7e700a['descriptionFactory']['registerAttributeLabel'](_0x3ef5cd,o(_0x266e9e,'FORMAT_STYLE'));for(const _0x19ad9c of _0x450560)_0x7e700a['registerInlineAttribute'](_0x19ad9c),_0x7e700a['descriptionFactory']['registerAttributeLabel'](_0x19ad9c,o(_0x266e9e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x351322=this['editor'],_0x54e5c3=_0x351322['locale'];_0x351322['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51f0b8=>{if('formatBlock'!=_0x51f0b8['type']&&'formatInline'!=_0x51f0b8['type'])return;const {data:_0x5584f4}=_0x51f0b8;return _0x5584f4&&'style'===_0x5584f4['commandName']?_0x5584f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54e5c3,'*Set\x20format:*\x20%0',_0x5584f4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x54e5c3,'*Remove\x20format:*\x20%0',_0x5584f4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x6410a9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x33367b){super(_0x33367b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3642fb=this['editor'],_0xa13c83=_0x3642fb['model']['document']['selection'];if(!_0x3642fb['plugins']['has']('TableEditing'))return;const _0x3d0d6a=_0x3642fb['locale'],_0x3a50d8=_0x3642fb['plugins']['get']('TrackChangesEditing'),_0x4db9af=_0x3642fb['plugins']['get']('TableUtils');_0x3a50d8['descriptionFactory']['registerElementLabel']('table',_0x4676db=>o(_0x3d0d6a,'ELEMENT_TABLE',_0x4676db)),this['_setupColumnsRowsFixing'](),_0x3a50d8['enableCommand']('insertTable'),_0x3a50d8['enableCommand']('selectTableRow'),_0x3a50d8['enableCommand']('selectTableColumn');for(const _0x6094e9 of['insertTableRowAbove','insertTableRowBelow']){const _0x6dddec=_0x3642fb['commands']['get'](_0x6094e9);_0x3a50d8['enableCommand'](_0x6094e9,_0x4bbc12=>{_0x3642fb['model']['change'](_0x38524b=>{_0x4bbc12();const _0x232a10='above'===_0x6dddec['order'],_0x24896a=_0x4db9af['getSelectionAffectedTableCells'](_0xa13c83),_0x4e481c=_0x4db9af['getRowIndexes'](_0x24896a),_0x471b44=_0x232a10?_0x4e481c['first']-0x1:_0x4e481c['last']+0x1,_0x53c475=_0x24896a[0x0]['findAncestor']('table'),_0x438aa1=_0x4db9af['createTableWalker'](_0x53c475,{'startRow':_0x471b44,'endRow':_0x471b44}),_0x59c402=Array['from'](_0x438aa1)['map'](_0x4b89f5=>_0x38524b['createRangeOn'](_0x4b89f5['cell']));_0x3a50d8['markMultiRangeInsertion'](_0x59c402,'tableRow');});});}for(const _0x4ac467 of['insertTableColumnLeft','insertTableColumnRight']){const _0xc8ba58=_0x3642fb['commands']['get'](_0x4ac467);_0x3a50d8['enableCommand'](_0x4ac467,_0x3053b0=>{_0x3642fb['model']['change'](_0x2d2d9f=>{_0x3053b0();const _0x5ebd83='left'===_0xc8ba58['order'],_0x7c69af=_0x4db9af['getSelectionAffectedTableCells'](_0xa13c83),_0x4e9fcb=_0x4db9af['getColumnIndexes'](_0x7c69af),_0xefe2d8=_0x5ebd83?_0x4e9fcb['first']-0x1:_0x4e9fcb['last']+0x1,_0x2f8998=_0x7c69af[0x0]['findAncestor']('table'),_0x4972ee=_0x4db9af['createTableWalker'](_0x2f8998,{'startRow':0x0,'column':_0xefe2d8,'includeAllSlots':!0x1}),_0x1ff88c=Array['from'](_0x4972ee)['map'](_0x5a9680=>_0x2d2d9f['createRangeOn'](_0x5a9680['cell']));_0x3a50d8['markMultiRangeInsertion'](_0x1ff88c,'tableColumn');});});}for(const _0x16b854 of['removeTableRow','removeTableColumn']){const _0x3a6963=_0x16b854['substr'](0xb),_0xedb5e3=_0x3a6963['toLowerCase'](),_0x42b444=_0xedb5e3['substr'](0x0,0x3)+'span',_0x327c6f='table'+_0x3a6963,_0x2b6069='min'+_0x3a6963,_0x5c8aab='max'+_0x3a6963;_0x3a50d8['enableCommand'](_0x16b854,()=>{_0x3642fb['model']['change'](_0x3b875c=>{const _0x98a79d=_0x4db9af['getSelectionAffectedTableCells'](_0xa13c83),_0x23094d=_0x98a79d[0x0]['findAncestor']('table');let _0x2cc4c6;if('removeTableRow'==_0x16b854){const _0xb13f82=_0x4db9af['getRowIndexes'](_0x98a79d);_0x2cc4c6={'startRow':_0xb13f82['first'],'endRow':_0xb13f82['last'],'includeAllSlots':!0x0};}else{const _0x2de714=_0x4db9af['getColumnIndexes'](_0x98a79d);_0x2cc4c6={'startColumn':_0x2de714['first'],'endColumn':_0x2de714['last'],'includeAllSlots':!0x0};}const _0x359b22=_0x4db9af['createTableWalker'](_0x23094d,_0x2cc4c6),_0x250b30=Array['from'](_0x359b22)['map'](({cell:_0x1021f7})=>_0x1021f7),_0x557119=Ne(_0x250b30['filter'](_0x306a52=>_0x306a52['hasAttribute'](_0x42b444))),_0x52860f=Ne(_0x250b30['filter'](_0x115b2a=>!_0x115b2a['hasAttribute'](_0x42b444)))['map'](_0x12d632=>_0x3b875c['createRangeOn'](_0x12d632)),_0x10dc3e=_0x3a50d8['markMultiRangeDeletion'](_0x52860f,_0x327c6f);if(_0x10dc3e&&('tableRow'==_0x10dc3e['subType']||'tableColumn'==_0x10dc3e['subType'])){const _0x153ba6=this['_getSuggestionCoords'](_0x10dc3e);for(const _0x1ac1a0 of _0x557119){const _0x45a7c4=_0x3b875c['createRangeOn'](_0x1ac1a0),_0x24ceee=_0x4db9af['getCellLocation'](_0x1ac1a0),_0x259cc4=_0x1ac1a0['getAttribute'](_0x42b444)-0x1,_0x20ad4f=_0x153ba6[_0x2b6069],_0x2572d0=_0x153ba6[_0x5c8aab];_0x20ad4f<=_0x24ceee[_0xedb5e3]&&_0x24ceee[_0xedb5e3]+_0x259cc4<=_0x2572d0&&_0x10dc3e['addRange'](_0x45a7c4);}}});});}function _0x5c417a(_0x3e3352){const _0x18437e=Array['from'](_0xa13c83['getRanges']())['map'](_0x374ca2=>_0x19bc7a['fromRange'](_0x374ca2));_0x3642fb['model']['change'](_0x146811=>{const _0x3beb1a=_0x146811['batch'];_0x3e3352=_0x3e3352['filter'](_0x1f4559=>'$graveyard'!=_0x1f4559['root']['rootName']),_0x146811['setSelection'](_0x3e3352),_0x3642fb['commands']['get']('removeTableRow')['refresh'](),_0x3642fb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3642fb['model']['enqueueChange'](()=>{_0x3642fb['model']['enqueueChange'](_0x3beb1a,_0xf88ce9=>{const _0x2d8f75=_0x18437e['filter'](_0x4b4f1c=>'$graveyard'!=_0x4b4f1c['root']['rootName']);_0x2d8f75['length']>0x0&&_0xf88ce9['setSelection'](_0x2d8f75);for(const _0x5c2456 of _0x18437e)_0x5c2456['detach']();});});});}function _0x33994c(_0x521b87){_0x3642fb['model']['change'](_0x1b92c0=>{const _0x5ad633=Array['from'](_0xa13c83['getRanges']())['map'](_0x37ab09=>_0x19bc7a['fromRange'](_0x37ab09)),_0x8e746c=[];for(const _0x2fb929 of _0x521b87)for(const _0x3e3562 of _0x2fb929['getItems']({'shallow':!0x0}))_0x8e746c['push'](_0x3e3562);for(const _0x4ccaa0 of _0x8e746c)'$graveyard'!=_0x4ccaa0['root']['rootName']&&(_0x1b92c0['setSelection'](_0x1b92c0['createPositionAt'](_0x4ccaa0,0x0)),_0x3642fb['commands']['get']('removeTableColumn')['refresh'](),_0x3642fb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x24ef65=_0x5ad633['filter'](_0x3e33ed=>'$graveyard'!=_0x3e33ed['root']['rootName']);_0x24ef65['length']>0x0&&_0x1b92c0['setSelection'](_0x24ef65);for(const _0x559456 of _0x5ad633)_0x559456['detach']();});}function _0xa66027(_0x1a8c46,_0x5033be){return _0x5033be['every'](_0x4a13b9=>_0x1a8c46['some'](_0x4903c7=>_0x4903c7['end']['isEqual'](_0x4a13b9['start'])||_0x4a13b9['end']['isEqual'](_0x4903c7['start'])));}function _0x25c2bb(_0xb42d96,_0x55f056){return!_0xb42d96['some'](_0x3eb876=>_0x55f056['some'](_0x3932d8=>_0x3eb876['isIntersecting'](_0x3932d8)))&&_0xb42d96['some'](_0x40f956=>_0x55f056['some'](_0x15aa66=>_0x40f956['end']['isTouching'](_0x15aa66['start'])));}_0x3642fb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x124762,_0x1b658f,_0x41a949)=>{if(!_0x41a949['options']['showSuggestionHighlights'])return;const _0x3089ec=_0x1b658f['item'];if(!_0x3089ec||!_0x3089ec['is']('element','tableCell'))return;const _0x1b0950=_0x41a949['mapper']['toViewElement'](_0x3089ec);if(_0x1b0950){const {id:_0x188c9d,authorId:_0x10917d}=_0x3a50d8['_splitMarkerName'](_0x1b658f['markerName']);_0x1fde47(_0x1b0950,_0x41a949['writer'],(_0x3e2738,_0x5b5952,_0x17fa97)=>{_0x17fa97['addClass'](_0x46f9e3(_0x5b5952['classes']),_0x3e2738),_0x17fa97['setAttribute']('data-suggestion-id',_0x188c9d,_0x3e2738),_0x17fa97['setAttribute']('data-author-id',_0x10917d,_0x3e2738);},(_0xa7738f,_0x418804,_0x5609e2)=>{_0x5609e2['removeClass'](_0x46f9e3(_0x418804['classes']),_0xa7738f),_0x5609e2['removeAttribute']('data-suggestion-id',_0xa7738f),_0x5609e2['removeAttribute']('data-author-id',_0xa7738f);});}},{'priority':'highest'}),_0x3a50d8['descriptionFactory']['registerDescriptionCallback'](_0x490b52=>{if('insertion'!=_0x490b52['type']&&'deletion'!=_0x490b52['type'])return;const _0x1339c3=_0x490b52['getContainedElement']();if(null!=_0x1339c3&&_0x1339c3['is']('element','table')){if('insertion'==_0x490b52['type']){const _0x3de151=_0x490b52['getItems']()['filter'](_0x62a23a=>_0x62a23a['is']('$textProxy'))['map'](_0x53f0ce=>_0x53f0ce['data']);if(_0x3de151['length'])return{'type':'insertion','content':o(_0x3d0d6a,'*Insert:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3de151['join']('\x20')+'\x22'))};}if('deletion'==_0x490b52['type']){const _0x57aeef=_0x490b52['getItems']()['filter'](_0x27e1ac=>_0x27e1ac['is']('$textProxy'))['map'](_0x4be820=>_0x4be820['data']);if(_0x57aeef['length'])return{'type':'deletion','content':o(_0x3d0d6a,'*Remove:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57aeef['join']('\x20')+'\x22'))};}}}),_0x3a50d8['descriptionFactory']['registerDescriptionCallback'](_0x3ecd29=>{if('tableRow'==_0x3ecd29['subType']){const _0x534c49=_0x3ecd29['getItems']()['filter'](_0xa7bc9e=>_0xa7bc9e['is']('$textProxy'))['map'](_0x5d1c72=>_0x5d1c72['data']),_0x54b7c0=this['_getSuggestionCoords'](_0x3ecd29),_0x31523f=_0x54b7c0['maxRow']-_0x54b7c0['minRow']+0x1;if('insertion'==_0x3ecd29['type'])return _0x534c49['length']?{'type':'insertion','content':o(_0x3d0d6a,'*Insert:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31523f,'\x22'+_0x534c49['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d0d6a,'*Insert:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_ROW',_0x31523f))};if('deletion'==_0x3ecd29['type'])return _0x534c49['length']?{'type':'deletion','content':o(_0x3d0d6a,'*Remove:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31523f,'\x22'+_0x534c49['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d0d6a,'*Remove:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_ROW',_0x31523f))};}if('tableColumn'==_0x3ecd29['subType']){const _0x10436f=_0x3ecd29['getItems']()['filter'](_0x447ae9=>_0x447ae9['is']('$textProxy'))['map'](_0x24700d=>_0x24700d['data']),_0x1beda5=this['_getSuggestionCoords'](_0x3ecd29),_0x96fde=_0x1beda5['maxColumn']-_0x1beda5['minColumn']+0x1;if('insertion'==_0x3ecd29['type'])return _0x10436f['length']?{'type':'insertion','content':o(_0x3d0d6a,'*Insert:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x96fde,'\x22'+_0x10436f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d0d6a,'*Insert:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_COLUMN',_0x96fde))};if('deletion'==_0x3ecd29['type'])return _0x10436f['length']?{'type':'deletion','content':o(_0x3d0d6a,'*Remove:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x96fde,'\x22'+_0x10436f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d0d6a,'*Remove:*\x20%0',o(_0x3d0d6a,'ELEMENT_TABLE_COLUMN',_0x96fde))};}}),_0x3a50d8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5c417a),_0x3a50d8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5c417a),_0x3a50d8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x33994c),_0x3a50d8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x33994c),_0x3a50d8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xa66027),_0x3a50d8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xa66027),_0x3a50d8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x25c2bb),_0x3a50d8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x25c2bb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x50fbdf=this['editor'],_0x39505b=_0x50fbdf['model']['document']['selection'];return(_0x45a51d,_0x4a99be)=>{_0x50fbdf['model']['change'](_0x2eb106=>{const {commandName:_0x31fb4f,commandParams:_0x4e83a0}=_0x4a99be;let _0x254ecd=_0x45a51d[0x0]['end']['nodeBefore'];_0x4e83a0&&_0x4e83a0[0x0]&&!0x1===_0x4e83a0[0x0]['forceValue']&&(_0x254ecd=_0x45a51d[0x0]['start']['nodeAfter']);const _0x3d7206=_0x2eb106['createRangeIn'](_0x254ecd);if('$graveyard'==_0x3d7206['root']['rootName'])return;const _0x2ed72e=Array['from'](_0x39505b['getRanges']())['map'](_0x26d8a8=>_0x19bc7a['fromRange'](_0x26d8a8));_0x2eb106['setSelection'](_0x3d7206),_0x50fbdf['commands']['get'](_0x31fb4f)['refresh'](),_0x4e83a0['push']({'forceDefaultExecution':!0x0}),_0x50fbdf['execute'](_0x31fb4f,..._0x4e83a0);const _0x42d39a=_0x2ed72e['filter'](_0x17fca8=>'$graveyard'!=_0x17fca8['root']['rootName']);_0x42d39a['length']>0x0&&_0x2eb106['setSelection'](_0x42d39a);for(const _0x21f78f of _0x2ed72e)_0x21f78f['detach']();});};}['_getCoordsForCells'](_0x1097a6){const _0x48f652=this['editor']['plugins']['get']('TableUtils');let _0x2cbec5=Number['MAX_SAFE_INTEGER'],_0x9e286d=Number['MIN_SAFE_INTEGER'],_0x284695=Number['MAX_SAFE_INTEGER'],_0x262dd2=Number['MIN_SAFE_INTEGER'];for(const _0x3bebc6 of _0x1097a6){if('$graveyard'==_0x3bebc6['root']['rootName'])continue;const {row:_0x2c1ebf,column:_0x38d098}=_0x48f652['getCellLocation'](_0x3bebc6),_0x36b19f=_0x3bebc6['hasAttribute']('rowspan')?_0x3bebc6['getAttribute']('rowspan')-0x1:0x0,_0x3645cb=_0x3bebc6['hasAttribute']('colspan')?_0x3bebc6['getAttribute']('colspan')-0x1:0x0;_0x2cbec5=_0x2c1ebf<_0x2cbec5?_0x2c1ebf:_0x2cbec5,_0x9e286d=_0x2c1ebf+_0x36b19f>_0x9e286d?_0x2c1ebf+_0x36b19f:_0x9e286d,_0x284695=_0x38d098<_0x284695?_0x38d098:_0x284695,_0x262dd2=_0x38d098+_0x3645cb>_0x262dd2?_0x38d098+_0x3645cb:_0x262dd2;}return{'minRow':_0x2cbec5,'maxRow':_0x9e286d,'minColumn':_0x284695,'maxColumn':_0x262dd2};}['_setupColumnsRowsFixing'](){const _0x53679c=this['editor'],_0x35b34c=_0x53679c['plugins']['get']('TrackChangesEditing'),_0x985024=_0x53679c['plugins']['get']('TableUtils');_0x53679c['model']['document']['on']('change:data',()=>{const _0x1b49d2=Array['from'](_0x53679c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9b7ed1,data:_0x1e7f9f}of _0x1b49d2){const {group:_0x15e411,id:_0x1f1199,subType:_0x5b6a34}=_0x35b34c['_splitMarkerName'](_0x9b7ed1);if('suggestion'!=_0x15e411)continue;if(null!=_0x1e7f9f['oldRange'])continue;const _0x138f3b=_0x35b34c['getSuggestion'](_0x1f1199);this['_tablePostFixingSubtypes']['includes'](_0x5b6a34)&&this['_tableSuggestions']['add'](_0x138f3b);}},{'priority':'low'});const _0x4ec94e=(_0x3256d7,_0x10d84a)=>{let _0x28cb56=!0x1;const _0x5060b0=_0x10d84a['createRangeOn'](_0x3256d7),_0x2d586c=_0x3256d7['findAncestor']('table'),_0x37e27b=_0x985024['getCellLocation'](_0x3256d7);for(const _0x4f7492 of this['_tableSuggestions']){const _0x7e1af7=_0x4f7492['subType'],_0x899902=_0x7e1af7['startsWith']('tablePaste'),_0x1d6ac0=_0x7e1af7['substr'](_0x899902?0xa:0x5),_0x1525d3=_0x1d6ac0['toLowerCase'](),_0x1c931b=_0x1525d3['substr'](0x0,0x3)+'span',_0x3a2036='min'+_0x1d6ac0,_0x1dfab2='max'+_0x1d6ac0;if(!_0x4f7492['isInContent'])continue;if(_0x2d586c!=_0x4f7492['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4f7492['isIntersectingWithRange'](_0x5060b0))continue;const _0x2177a1=_0x3256d7['hasAttribute'](_0x1c931b)?_0x3256d7['getAttribute'](_0x1c931b)-0x1:0x0,_0x470784=this['_getSuggestionCoords'](_0x4f7492),_0x179e1b=_0x470784[_0x3a2036],_0x23df52=_0x470784[_0x1dfab2];_0x179e1b<=_0x37e27b[_0x1525d3]&&_0x37e27b[_0x1525d3]+_0x2177a1<=_0x23df52&&(_0x4f7492['addRange'](_0x5060b0),_0x28cb56=!0x0);}return _0x28cb56;};_0x53679c['model']['document']['registerPostFixer'](_0x4b342a=>{let _0x2189fc=!0x1;for(const _0x36d921 of _0x53679c['model']['document']['differ']['getChanges']())if('insert'==_0x36d921['type']){if('tableRow'==_0x36d921['name']){for(const _0x373d51 of _0x36d921['position']['nodeAfter']['getChildren']())_0x2189fc=_0x2189fc||_0x4ec94e(_0x373d51,_0x4b342a);}else'tableCell'==_0x36d921['name']&&(_0x2189fc=_0x2189fc||_0x4ec94e(_0x36d921['position']['nodeAfter'],_0x4b342a));}return _0x2189fc;});}['_getSuggestionCoords'](_0x3a82be){return this['_getCoordsForCells'](_0x3a82be['getRanges']()['map'](_0x4829eb=>_0x4829eb['start']['nodeAfter']));}}function Ne(_0xfeef1d){return Array['from'](new Set(_0xfeef1d)['values']());}class _t extends _0x6410a9{static get['requires'](){return[At];}['afterInit'](){const _0x112f77=this['editor'],_0x3bfb8d=_0x112f77['model']['document']['selection'],_0x45f5f8=_0x112f77['locale'];if(!_0x112f77['plugins']['has']('TableEditing'))return;const _0x1b3d93=_0x112f77['plugins']['get']('TrackChangesEditing'),_0x5b90af=_0x112f77['plugins']['get']('TableUtils'),_0xfea825=_0x112f77['plugins']['get'](At);_0xfea825['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1b3d93['enableCommand']('mergeTableCells',()=>{const _0x502d7b=_0x5b90af['getSelectionAffectedTableCells'](_0x112f77['model']['document']['selection']);_0x112f77['model']['change'](()=>{_0x1b3d93['markMultiRangeBlockFormat'](_0x502d7b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x112f77['commands']['get']('mergeTableCells')['on']('execute',(_0x3e83af,_0x2ee512)=>{_0x112f77['commands']['get']('trackChanges')['value']&&(_0x2ee512['length']>0x0&&_0x2ee512[_0x2ee512['length']-0x1]&&_0x2ee512[_0x2ee512['length']-0x1]['forceDefaultExecution']||_0x1b3d93['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3e83af['stop']());},{'priority':'highest'});for(const _0x114239 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4e3657=_0x112f77['commands']['get'](_0x114239);_0x1b3d93['enableCommand'](_0x114239,()=>{const _0xe828ac=_0x112f77['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x243dc2=>_0x243dc2['is']('element','tableCell')),_0x4b1ddc=_0x4e3657['value'];_0x112f77['model']['change'](()=>{_0x1b3d93['markMultiRangeBlockFormat']([_0xe828ac,_0x4b1ddc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x11cc24 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x36fca0=_0x112f77['commands']['get'](_0x11cc24);_0x1b3d93['enableCommand'](_0x11cc24,()=>{const _0x3e7583=_0x5b90af['getSelectionAffectedTableCells'](_0x112f77['model']['document']['selection'])[0x0],_0x2ac9a3=_0x3e7583['findAncestor']('table'),{column:_0x4ef8a,row:_0x1d7e89}=_0x5b90af['getCellLocation'](_0x3e7583);let _0x325d7e=[];if('horizontally'==_0x36fca0['direction']){const _0x18b089=_0x5b90af['createTableWalker'](_0x2ac9a3,{'startRow':_0x1d7e89,'endRow':_0x1d7e89,'includeAllSlots':!0x0});_0x325d7e=Array['from'](_0x18b089)['map'](_0x5af547=>_0x5af547['cell']);}else{const _0x8b7d48=_0x5b90af['createTableWalker'](_0x2ac9a3,{'column':_0x4ef8a,'includeAllSlots':!0x0});_0x325d7e=Array['from'](_0x8b7d48)['map'](_0x4ae40f=>_0x4ae40f['cell']);}_0x112f77['model']['change'](_0x33a213=>{_0x1b3d93['markBlockFormat'](_0x33a213['createRangeOn'](_0x3e7583),{'commandName':_0x11cc24,'commandParams':[]},_0x325d7e,_0x11cc24);});});}_0x1b3d93['descriptionFactory']['registerDescriptionCallback'](_0x43aff7=>{if('formatBlock'!=_0x43aff7['type']&&'formatInline'!=_0x43aff7['type'])return;const {data:_0x4364cc}=_0x43aff7;return _0x4364cc&&'mergeTableCells'==_0x4364cc['commandName']?{'type':'format','content':o(_0x45f5f8,'*Merge\x20cells*')}:void 0x0;}),_0x1b3d93['descriptionFactory']['registerDescriptionCallback'](_0x3ded45=>{if('formatBlock'!=_0x3ded45['type']&&'formatInline'!=_0x3ded45['type'])return;const {data:_0x9b3364}=_0x3ded45;return _0x9b3364?'splitTableCellVertically'==_0x9b3364['commandName']?{'type':'format','content':o(_0x45f5f8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x9b3364['commandName']?{'type':'format','content':o(_0x45f5f8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2b0077=_0xfea825['_acceptFormatSuggestionCallbackFactory']();for(const _0xe6f2bf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1b3d93['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe6f2bf,'accept',_0x2b0077);for(const _0x5c96a9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1b3d93['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c96a9,'accept',_0x2b0077);_0x1b3d93['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b145c=>{_0x112f77['model']['change'](_0x419c1d=>{const _0x40be2f=Array['from'](_0x3bfb8d['getRanges']())['map'](_0x130f85=>_0x19bc7a['fromRange'](_0x130f85));_0x419c1d['setSelection'](_0x1b145c),_0x112f77['commands']['get']('mergeTableCells')['refresh'](),_0x112f77['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3208a8=_0x40be2f['filter'](_0xb637b8=>'$graveyard'!=_0xb637b8['root']['rootName']);_0x3208a8['length']>0x0&&_0x419c1d['setSelection'](_0x3208a8);for(const _0xcda2a0 of _0x40be2f)_0xcda2a0['detach']();});});for(const _0xb666e5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x15ed34=_0x112f77['commands']['get'](_0xb666e5);_0x15ed34['on']('set:isEnabled',(_0x16fcf6,_0x4ce971,_0xe65076)=>{if(_0xe65076){const _0x47691e=_0x112f77['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5e2fe6=>_0x5e2fe6['is']('element','tableCell'));this['_areMergableCells'](_0x15ed34['value'],_0x47691e)||(_0x16fcf6['return']=!0x1,_0x16fcf6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3c41bc=this['editor']['commands']['get']('mergeTableCells'),_0x42df6d=this['editor']['plugins']['get']('TableUtils');if(!_0x3c41bc['isEnabled'])return!0x1;const _0x3884fe=_0x42df6d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4dec50 of _0x3884fe)for(const _0x490f7d of _0x3884fe)if(_0x4dec50!=_0x490f7d&&!this['_areMergableCells'](_0x4dec50,_0x490f7d))return!0x1;return!0x0;}['_areMergableCells'](_0x3cb981,_0x404b62){const _0x5235b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d88de=this['editor']['model']['createRangeOn'](_0x3cb981),_0x1063fa=this['editor']['model']['createRangeOn'](_0x404b62),_0x493ca4=new Set(),_0x5bca09=new Set();for(const _0x11d960 of _0x5235b5['getSuggestions']())if(('insertion'==_0x11d960['type']||'deletion'==_0x11d960['type']||'mergeTableCells'==_0x11d960['subType'])&&_0x11d960['isInContent']){for(const _0x1635d0 of _0x11d960['getRanges']())_0x1635d0['containsRange'](_0x4d88de,!0x0)&&_0x493ca4['add'](_0x11d960['type']+':'+_0x11d960['author']['id']),_0x1635d0['containsRange'](_0x1063fa,!0x0)&&_0x5bca09['add'](_0x11d960['type']+':'+_0x11d960['author']['id']);}if(_0x493ca4['size']!=_0x5bca09['size'])return!0x1;for(const _0x3204b5 of _0x493ca4)if(!_0x5bca09['has'](_0x3204b5))return!0x1;return!0x0;}}class Ct extends _0x6410a9{static get['requires'](){return[At];}['afterInit'](){const _0x4426dc=this['editor'];if(!_0x4426dc['plugins']['has']('TableEditing'))return;const _0xfabfa5=_0x4426dc['locale'],_0x5bfe6e=_0x4426dc['plugins']['get']('TrackChangesEditing');_0x5bfe6e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5bfe6e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5bfe6e['registerBlockAttribute']('headingRows'),_0x5bfe6e['registerBlockAttribute']('headingColumns'),_0x5bfe6e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xfabfa5,'FORMAT_HEADER_ROW')),_0x5bfe6e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xfabfa5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c6500=this['editor']['plugins']['get']('TrackChangesEditing'),_0x186310=this['editor']['plugins']['get']('TableUtils'),_0x26e042=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x188364({showActiveMarker:_0x566ffc=!0x0,setDataAttribute:_0x159586=!0x0}={}){return(_0x583a50,_0x28fcb5,_0x53e4a9)=>{const {type:_0x12126b,id:_0x413871}=_0x5c6500['_splitMarkerName'](_0x28fcb5['markerName']),_0xc74f45=_0x5c6500['getSuggestion'](_0x413871),_0x54a1a6=_0xc74f45['data'];if('formatBlock'!=_0xc74f45['type']||!_0x54a1a6||'setTableColumnHeader'!=_0x54a1a6['commandName'])return;if(_0x28fcb5['item'])return void _0x583a50['stop']();if(!_0x53e4a9['consumable']['consume'](_0x28fcb5['markerRange'],_0x583a50['name']))return;const _0x49e9b9=_0x28fcb5['markerRange']['start']['nodeAfter'],_0xdad200=_0x28fcb5['markerRange']['end']['nodeBefore'],_0xeb718c=_0x49e9b9['parent']['parent'],{column:_0x4f73b2}=_0x186310['getCellLocation'](_0x49e9b9),{column:_0x31ad95}=_0x186310['getCellLocation'](_0xdad200);for(let _0x2e55de=_0x4f73b2;_0x2e55de<=_0x31ad95;_0x2e55de++){const _0x25e21d=_0x186310['createTableWalker'](_0xeb718c,{'column':_0x2e55de,'includeAllSlots':!0x1});for(const _0x57e7be of _0x25e21d){const _0x3c64c6=_0x57e7be['cell'],_0x5beba1=_0x53e4a9['mapper']['toViewElement'](_0x3c64c6);_0x53e4a9['writer']['addClass']('ck-suggestion-marker-'+_0x12126b,_0x5beba1),_0x159586&&_0x53e4a9['writer']['setAttribute']('data-suggestion',_0x413871,_0x5beba1),_0x53e4a9['mapper']['bindElementToMarker'](_0x5beba1,_0x28fcb5['markerName']),_0x566ffc&&(_0x5c6500['activeMarkers']['includes'](_0x28fcb5['markerName'])?_0x53e4a9['writer']['addClass']('ck-suggestion-marker--active',_0x5beba1):_0x53e4a9['writer']['removeClass']('ck-suggestion-marker--active',_0x5beba1));}}};}_0x5c6500['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x26e042),_0x5c6500['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x26e042),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x188364(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x573e40,_0x1a1608,_0x297bfc)=>{_0x297bfc['options']['showSuggestionHighlights']&&_0x188364({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x573e40,_0x1a1608,_0x297bfc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c36cd,_0x5ed40b,_0x1d402f)=>{const {type:_0x363275,id:_0x16e615}=_0x5c6500['_splitMarkerName'](_0x5ed40b['markerName']),_0x2adf2e=_0x5c6500['getSuggestion'](_0x16e615),_0x349fd7=_0x2adf2e['data'];if('formatBlock'!=_0x2adf2e['type']||!_0x349fd7||'setTableColumnHeader'!=_0x349fd7['commandName'])return;const _0x2959a8=_0x1d402f['mapper']['markerNameToElements'](_0x5ed40b['markerName']);if(_0x2959a8){for(const _0x160022 of _0x2959a8)_0x1d402f['writer']['removeClass']('ck-suggestion-marker-'+_0x363275,_0x160022),_0x1d402f['writer']['removeClass']('ck-suggestion-marker--active',_0x160022),_0x1d402f['writer']['removeAttribute']('data-suggestion',_0x160022),_0x1d402f['mapper']['unbindElementFromMarkerName'](_0x160022,_0x5ed40b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x288384=this['editor'],_0x5f3fb4=_0x288384['locale'];function _0x197758(_0x4a1b45){return{'type':'format','content':o(_0x5f3fb4,'*Format:*\x20%0',_0x4a1b45)};}_0x288384['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6ae601=>{if('formatBlock'!=_0x6ae601['type'])return;const {data:_0x33d9e9}=_0x6ae601;if(_0x33d9e9){if('setTableRowHeader'==_0x33d9e9['commandName']){const _0x1cefbb=_0x33d9e9['commandParams'][0x0]['forceValue'];return _0x197758(o(_0x5f3fb4,_0x1cefbb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x33d9e9['commandName']){const _0x2e79a3=_0x33d9e9['commandParams'][0x0]['forceValue'];return _0x197758(o(_0x5f3fb4,_0x2e79a3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x6410a9{['afterInit'](){const _0x20c646=this['editor'],_0x226de7=_0x20c646['locale'],_0x1463fe=_0x20c646['plugins']['get']('TrackChangesEditing');function _0x3a7a22(_0x350c44){return{'type':'format','content':''+o(_0x226de7,'*Set\x20table\x20type:*\x20%0',_0x350c44)};}_0x20c646['plugins']['has']('TableLayout')&&(_0x1463fe['enableCommand']('insertTableLayout'),_0x1463fe['enableDefaultAttributesIntegration']('tableType'),_0x1463fe['registerBlockAttribute']('tableType'),_0x1463fe['descriptionFactory']['registerElementLabel'](_0x96c6e8=>_0x96c6e8['is']('element','table')&&'layout'===_0x96c6e8['getAttribute']('tableType'),_0x470d47=>o(_0x226de7,'ELEMENT_LAYOUT_TABLE',_0x470d47)),_0x1463fe['descriptionFactory']['registerDescriptionCallback'](_0x380602=>{const {data:_0x11998b}=_0x380602;if(_0x11998b&&'tableType'==_0x11998b['key'])switch(_0x11998b['newValue']){case'layout':return _0x3a7a22(o(_0x226de7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3a7a22(o(_0x226de7,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x2ffc4c=>[_0x2ffc4c,null]));class Nt extends _0x6410a9{static get['requires'](){return[At];}['afterInit'](){const _0x593902=this['editor'];if(!_0x593902['plugins']['has']('TableClipboard'))return;const _0x221462=_0x593902['plugins']['get']('TrackChangesEditing'),_0x5d0f12=_0x593902['plugins']['get']('TableUtils'),_0x339112=_0x593902['plugins']['get'](At),_0x2a1b19=_0x593902['plugins']['get']('TableClipboard'),_0x172dfd=_0x593902['plugins']['get']('TableSelection'),_0x6aaa93=_0x593902['plugins']['get'](_0x1dd4a9);_0x339112['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x593902['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x593902['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1949c6=null,_0x1ac44d=!0x1;_0x6aaa93['on']('contentInsertion',(_0x2d082f,_0x2865e2)=>{_0x1ac44d='paste'===_0x2865e2['method'];}),_0x593902['model']['on']('insertContent',(_0x409a4b,_0x37d277)=>{if(!_0x1ac44d&&null===_0x172dfd['getSelectedTableCells']())return;const [_0x47bd57,_0x4c1e79]=_0x37d277,_0x31ce39=_0x37d277[_0x37d277['length']-0x1];_0x31ce39&&_0x31ce39['forceDefaultExecution']||_0x221462['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x498902,_0x42c0d7,_0x24537d,_0x3661e5,_0x1288fd){if(_0x42c0d7&&!_0x42c0d7['is']('documentSelection'))return!0x1;const _0x105ba9=_0x1288fd['getTableIfOnlyTableInContent'](_0x498902,_0x24537d);if(!_0x105ba9||!Ue(_0x105ba9,void 0x0,_0x3661e5))return!0x1;const _0x51d638=_0x3661e5['getSelectionAffectedTableCells'](_0x24537d['document']['selection']);if(!_0x51d638['length'])return!0x1;const _0x4590fc=_0x51d638[0x0]['findAncestor']('table'),_0x37ebcd=_0x3661e5['getRowIndexes'](_0x51d638),_0x195494=_0x3661e5['getColumnIndexes'](_0x51d638),_0x138fcb={'startRow':_0x37ebcd['first'],'endRow':_0x37ebcd['last'],'startColumn':_0x195494['first'],'endColumn':_0x195494['last']};return 0x1==_0x51d638['length']&&(_0x138fcb['endRow']+=_0x3661e5['getRows'](_0x105ba9)-0x1,_0x138fcb['endColumn']+=_0x3661e5['getColumns'](_0x105ba9)-0x1),Ue(_0x4590fc,_0x138fcb,_0x3661e5);}(_0x47bd57,_0x4c1e79,_0x593902['model'],_0x5d0f12,_0x2a1b19)&&(_0x409a4b['stop'](),_0x1949c6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x593902['model']['change'](()=>{_0x593902['model']['insertContent'](_0x37d277[0x0],_0x37d277[0x1],_0x37d277[0x2],{'forceDefaultExecution':!0x0});const _0x40cbed=_0x31afce(),{rowInsertionRanges:_0x13f958,columnInsertionRanges:_0x3c809b,insertionRanges:_0x587930,deletionRanges:_0x4f6dca,cells:_0x44648c}=_0x1949c6;_0x13f958['length']&&_0x221462['markMultiRangeInsertion'](_0x13f958,'tablePasteRow',{'tablePasteChainId':_0x40cbed}),_0x3c809b['length']&&_0x221462['markMultiRangeInsertion'](_0x3c809b,'tablePasteColumn',{'tablePasteChainId':_0x40cbed}),_0x587930['length']&&(_0x221462['markMultiRangeInsertion'](_0x587930,'tablePaste',{'tablePasteChainId':_0x40cbed,'skipNestingCheck':!0x0}),_0x587930['forEach'](_0x56e70d=>_0x56e70d['detach']?.())),_0x4f6dca['length']&&(_0x221462['markMultiRangeDeletion'](_0x4f6dca,'tablePaste',{'tablePasteChainId':_0x40cbed,'skipNestingCheck':!0x0}),_0x4f6dca['forEach'](_0x1e6a7b=>_0x1e6a7b['detach']?.()));const _0x329565=_0x221462['markMultiRangeBlockFormat'](_0x44648c['map'](({element:_0x234136})=>_0x234136),{'formatGroupId':_0x31afce()},[],'tablePasteCell',{'tablePasteChainId':_0x40cbed});if(_0x329565){const _0x48b7e1=_0x329565['getMarkers'](),_0x352125=[];for(const {element:_0x529463,attributes:_0x148b80}of _0x44648c){if(!_0x148b80)continue;const _0x10330b=_0x593902['model']['createRangeOn'](_0x529463),_0x59efac=_0x48b7e1['find'](_0x22b1fa=>_0x22b1fa['getRange']()['isEqual'](_0x10330b));_0x59efac&&_0x352125['push']([_0x59efac['name'],_0x148b80]);}_0x352125['length']&&_0x329565['setAttribute']('markerAttributes',Object['fromEntries'](_0x352125));}_0x1949c6=null;}));},{'priority':_0x5b2f57['high']+0xa}),_0x6aaa93['on']('contentInsertion',()=>{_0x1ac44d=!0x1;},{'priority':'lowest'}),_0x593902['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x55037c,_0xd0e4b2)=>{const [_0x4b60ab,_0x3db467,,_0x4dcaa2]=_0xd0e4b2;if(!_0x1949c6)return;_0x55037c['stop']();const _0x1d4735=_0x4b60ab['cell'],_0x369a49=_0x3db467,_0x25a44b=Oe(_0x1d4735),_0x38d15f=Oe(_0x369a49);_0x55037c['return']=_0x1d4735;let _0x9de491=null,_0x1025f0=null;if(_0x38d15f||_0x25a44b){if(_0x25a44b&&!_0x38d15f){_0x4dcaa2['remove'](_0x1d4735['getChild'](0x0));for(const _0x52cb77 of Array['from'](_0x369a49['getChildren']()))_0x4dcaa2['insert'](_0x52cb77,_0x1d4735,'end');const _0x2e258f=_0x1949c6['rowInsertionIndexes']['includes'](_0x4b60ab['row']),_0x477f99=_0x1949c6['columnInsertionIndexes']['includes'](_0x4b60ab['column']);_0x2e258f||_0x477f99||(_0x9de491=_0x19bc7a['fromRange'](_0x4dcaa2['createRangeIn'](_0x1d4735)));}else _0x38d15f&&!_0x25a44b&&(_0x1025f0=_0x4dcaa2['createRangeIn'](_0x1d4735));}else{const _0x4a72e4=_0x4dcaa2['createElement']('tableCellSuggestion'),_0x49ae69=_0x4dcaa2['createElement']('tableCellSuggestion');_0x4dcaa2['wrap'](_0x4dcaa2['createRangeIn'](_0x1d4735),_0x49ae69),_0x4dcaa2['insert'](_0x4a72e4,_0x1d4735,0x0);for(const _0x28e48b of Array['from'](_0x369a49['getChildren']()))_0x4dcaa2['insert'](_0x28e48b,_0x4a72e4,'end');_0x9de491=_0x19bc7a['fromRange'](_0x4dcaa2['createRangeOn'](_0x4a72e4)),_0x1025f0=_0x19bc7a['fromRange'](_0x4dcaa2['createRangeOn'](_0x49ae69));}const _0x40799b=Array['from'](_0x369a49['getAttributes']())['filter'](([_0x18a94d])=>Be['includes'](_0x18a94d));_0x1949c6['cells']['push']({'element':_0x1d4735,'attributes':_0x40799b['length']?Object['fromEntries'](_0x40799b):null}),_0x9de491&&_0x1949c6['insertionRanges']['push'](_0x9de491),_0x1025f0&&_0x1949c6['deletionRanges']['push'](_0x1025f0);},{'priority':'high'}),_0x5d0f12['on']('insertColumns',(_0x1b948f,_0x238658)=>{const [_0x53b615,_0x58189d={}]=_0x238658;if(!_0x1949c6)return;const _0x103e2a=_0x58189d['at']||0x0,_0x21b42d=_0x58189d['columns']||0x1;_0x1949c6['columnInsertionIndexes']=new Array(_0x21b42d)['fill'](_0x103e2a)['map']((_0x27dbf1,_0x3bd9a6)=>_0x27dbf1+_0x3bd9a6);for(const {cell:_0x4f9baf}of _0x5d0f12['createTableWalker'](_0x53b615,{'startColumn':_0x103e2a,'endColumn':_0x103e2a+_0x21b42d-0x1}))_0x1949c6['columnInsertionRanges']['push'](_0x593902['model']['createRangeOn'](_0x4f9baf));},{'priority':'low'}),_0x5d0f12['on']('insertRows',(_0x3178ad,_0x40710f)=>{const [_0x297eb8,_0x239b2e={}]=_0x40710f;if(!_0x1949c6)return;const _0x4b1fdd=_0x239b2e['at']||0x0,_0x4b5b5b=_0x239b2e['rows']||0x1;_0x1949c6['rowInsertionIndexes']=new Array(_0x4b5b5b)['fill'](_0x4b1fdd)['map']((_0x3b3454,_0x1386e9)=>_0x3b3454+_0x1386e9);for(const {cell:_0x5d751e}of _0x5d0f12['createTableWalker'](_0x297eb8,{'startRow':_0x4b1fdd,'endRow':_0x4b1fdd+_0x4b5b5b-0x1}))_0x1949c6['rowInsertionRanges']['push'](_0x593902['model']['createRangeOn'](_0x5d751e));},{'priority':'low'}),_0x221462['descriptionFactory']['registerDescriptionCallback'](_0x123938=>{if(_0x123938['subType']&&_0x123938['subType']['startsWith']('tablePaste'))return _0x123938['previous']?{}:{'type':'insertion','content':o(_0x593902['locale'],'*Replace\x20table\x20cells*')};});const _0x1e2659=()=>!0x1;for(const _0x286fa6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x221462['_suggestionFactory']['registerCustomCallback']('insertion',_0x286fa6,'join',_0x1e2659),_0x221462['_suggestionFactory']['registerCustomCallback']('deletion',_0x286fa6,'join',_0x1e2659),_0x221462['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x286fa6,'join',_0x1e2659);_0x221462['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1e2659),_0x221462['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13b4c1,_0x10ce7d,_0x422898)=>{const _0x324eaf=_0x13b4c1['map'](_0x21ef29=>_0x21ef29['getContainedElement']())['filter'](_0x29ee42=>_0x29ee42),_0x4e734d=new Map(_0x324eaf['map'](_0x5a33c6=>[_0x5a33c6,null]));if(_0x1949c6){for(const {element:_0x5c128a,attributes:_0x54e8bf}of _0x1949c6['cells'])_0x54e8bf&&_0x4e734d['set'](_0x5c128a,_0x54e8bf);}else{if(_0x422898&&_0x422898['markerAttributes'])for(const [_0x22060c,_0x10bc85]of Object['entries'](_0x422898['markerAttributes'])){const _0x36e952=_0x593902['model']['markers']['get'](_0x22060c),_0x38604e=_0x36e952?_0x36e952['getRange']()['getContainedElement']():null;_0x38604e&&_0x4e734d['set'](_0x38604e,_0x10bc85);}}_0x593902['model']['change'](_0x272a53=>{for(const [_0x365528,_0x588514]of _0x4e734d)_0x272a53['setAttributes']({...xe,..._0x588514},_0x365528);});});const _0x3332ae=(_0x487cd7,_0x41c93a)=>{_0x221462['_suggestionFactory']['registerCustomCallback'](_0x487cd7,'tablePaste',_0x41c93a,(_0x2f1833,_0x4405aa,_0x51b42e)=>{_0x593902['model']['change'](_0x1dcf2d=>{const _0x4f9cb4=[];for(const _0x4b2eb6 of _0x2f1833){const _0x21165e=_0x4b2eb6['start']['nodeAfter'];_0x21165e['is']('element','tableCellSuggestion')&&_0x4f9cb4['push'](_0x21165e);}_0x221462['_suggestionFactory']['getSuggestionCallback'](_0x487cd7,null,_0x41c93a)(_0x2f1833,_0x4405aa,_0x51b42e);for(const _0x1b7fa7 of _0x4f9cb4)'$graveyard'!=_0x1b7fa7['root']['rootName']&&_0x1dcf2d['unwrap'](_0x1b7fa7);});});};_0x3332ae('insertion','accept'),_0x3332ae('insertion','discard'),_0x3332ae('deletion','accept'),_0x3332ae('deletion','discard'),_0x221462['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x29f265=>{const _0x3dea66=_0x29f265['map'](_0x1bc760=>_0x1bc760['getContainedElement']()),_0x1c46ac=_0x3dea66[0x0]['findAncestor']('table'),{minRow:_0x1c406e,maxRow:_0xf9a887}=_0x339112['_getCoordsForCells'](_0x3dea66);_0x5d0f12['removeRows'](_0x1c46ac,{'at':_0x1c406e,'rows':_0xf9a887-_0x1c406e+0x1});}),_0x221462['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2a671c=>{const _0x8214a5=_0x2a671c['map'](_0x23c84b=>_0x23c84b['getContainedElement']()),_0x518be9=_0x8214a5[0x0]['findAncestor']('table'),{minColumn:_0x35d18a,maxColumn:_0x4c1f1d}=_0x339112['_getCoordsForCells'](_0x8214a5);_0x5d0f12['removeColumns'](_0x518be9,{'at':_0x35d18a,'columns':_0x4c1f1d-_0x35d18a+0x1});});const _0x26537b=(_0x5683d3,_0x328b27)=>{if(!_0x328b27['subType']||!_0x328b27['subType']['startsWith']('tablePaste'))return;const _0x188b0a=_0x328b27['attributes']['tablePasteChainId'],_0x55a9cf=_0x221462['getSuggestions']()['filter'](_0x27c480=>_0x27c480['isInContent']&&_0x27c480['attributes']&&_0x27c480['attributes']['tablePasteChainId']==_0x188b0a);_0x55a9cf['length']&&_0x328b27['getAllAdjacentSuggestions']()['length']!=_0x55a9cf['length']&&_0x55a9cf['reduce']((_0x5cd035,_0x27b9ec)=>(_0x5cd035['next']=_0x27b9ec,_0x27b9ec['previous']=_0x5cd035,_0x27b9ec));};function _0x564193(_0x40c2f9,_0x9dbd6c=!0x0){const {id:_0x3ceb09,authorId:_0x75ec3e}=_0x221462['_splitMarkerName'](_0x40c2f9['markerName']),_0x5ed240=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1f50f6=_0x221462['activeMarkers']['includes'](_0x40c2f9['markerName']);return _0x1f50f6&&_0x5ed240['push']('ck-suggestion-marker--active'),{'classes':_0x5ed240,'attributes':{'data-suggestion':_0x3ceb09,'data-author-id':_0x75ec3e},'priority':_0x1f50f6&&_0x9dbd6c?0xbc2:0xbb8};}_0x221462['on']('suggestionLoaded',_0x26537b,{'priority':'high'}),_0x221462['on']('suggestionUnloaded',_0x26537b,{'priority':'high'}),_0x593902['model']['document']['registerPostFixer'](()=>{let _0x3f38c8=!0x1;const _0xcb0f26=Array['from'](_0x593902['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x293fd8,data:_0x4d5c68}of _0xcb0f26){const {group:_0x46bcb6,type:_0x19249d,id:_0x21800e}=_0x221462['_splitMarkerName'](_0x293fd8);if('suggestion'!=_0x46bcb6||'deletion'!=_0x19249d||_0x4d5c68['oldRange'])continue;if(!_0x221462['hasSuggestion'](_0x21800e))continue;const _0x4afa17=_0x221462['getSuggestion'](_0x21800e)['getRanges'](),_0x14412b=_0x593902['plugins']['get']('Users')['me'];for(const _0x498392 of _0x221462['getSuggestions']()){if(!_0x498392['isInContent']||_0x498392['author']!=_0x14412b)continue;if('formatBlock'!=_0x498392['type']||'tablePasteCell'!=_0x498392['subType'])continue;if(_0x498392['getRanges']()['every'](_0x4ca23f=>_0x4afa17['some'](_0x12211a=>_0x12211a['containsRange'](_0x4ca23f,!0x0)))){for(const _0x14417f of _0x498392['getAllAdjacentSuggestions']())_0x14417f['isInContent']&&(_0x14417f['discard'](),_0x3f38c8=!0x0);}}}return _0x3f38c8;}),_0x593902['model']['document']['registerPostFixer'](_0x47fc86=>{const _0x1ca918=_0x593902['commands']['get']('redo');if(!_0x1ca918||!_0x1ca918['_createdBatches']['has'](_0x47fc86['batch']))return!0x1;let _0x2d4bf8=!0x1;const _0x553e18=_0x593902['plugins']['get']('Users')['me'],_0x3950a3=_0x593902['model']['document']['differ']['getChanges'](),_0x2eb280=Array['from'](_0x593902['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x134142,data:_0x52ed23})=>{const {group:_0x4a354b,subType:_0x4a5cf7,authorId:_0x4542dc}=_0x221462['_splitMarkerName'](_0x134142);return'suggestion'==_0x4a354b&&'tablePaste'==_0x4a5cf7&&_0x4542dc==_0x553e18['id']&&!_0x52ed23['oldRange'];});for(const _0x311434 of _0x3950a3){if('insert'!=_0x311434['type']||'tableCellSuggestion'!=_0x311434['name']||0x1!=_0x311434['length'])continue;const _0x3255a7=_0x47fc86['createRange'](_0x311434['position'],_0x311434['position']['getShiftedBy'](0x1));if(!_0x2eb280['find'](({data:_0x3782f7})=>_0x3782f7['newRange']['isEqual'](_0x3255a7))){for(const {name:_0x4b479f,data:_0x3ba785}of _0x2eb280)if(_0x3255a7['containsRange'](_0x3ba785['newRange'])){_0x47fc86['updateMarker'](_0x4b479f,{'range':_0x3255a7}),_0x2d4bf8=!0x0;break;}}}return _0x2d4bf8;}),_0x593902['model']['document']['registerPostFixer'](_0x45a9b2=>{let _0x11b6a4=!0x1;const _0x6e3f67=_0x593902['plugins']['get']('Users')['me'],_0x270d23=_0x221462['getSuggestions']()['filter'](_0x8770ef=>_0x8770ef['isInContent']&&_0x8770ef['author']==_0x6e3f67),_0x3a2388=new Set(),_0x319ec9=new Set();for(const _0x7f8268 of _0x270d23)if('tablePaste'==_0x7f8268['subType'])for(const _0x5419e3 of _0x7f8268['getMarkers']()){const _0x5d3565=_0x5419e3['getRange']()['getContainedElement']();if(_0x5d3565){if(_0x5d3565['is']('element','tableCellSuggestion')&&Oe(_0x5d3565)){_0x7f8268['removeMarker'](_0x5419e3['name']),_0x3a2388['add'](_0x5d3565),_0x11b6a4=!0x0;const _0x2a1c64=_0x5d3565['nextSibling'],_0x36d83b=_0x5d3565['previousSibling'],_0x27c454=_0x2a1c64&&_0x2a1c64['is']('element','tableCellSuggestion'),_0x955182=_0x36d83b&&_0x36d83b['is']('element','tableCellSuggestion');_0x27c454&&!_0x3a2388['has'](_0x2a1c64)&&_0x319ec9['add'](_0x2a1c64),_0x955182&&!_0x3a2388['has'](_0x36d83b)&&_0x319ec9['add'](_0x36d83b);}else _0x5d3565['is']('element','paragraph')&&_0x5d3565['isEmpty']&&(_0x7f8268['removeMarker'](_0x5419e3['name']),_0x11b6a4=!0x0);}}else{if('tablePasteCell'==_0x7f8268['subType']){if(!_0x7f8268['attributes']||!_0x7f8268['attributes']['tablePasteChainId'])continue;const _0x5a6cf3=_0x7f8268['attributes']['markerAttributes'];if(_0x5a6cf3&&Object['keys'](_0x5a6cf3)['length'])continue;const _0x72f5d4=_0x7f8268['attributes']['tablePasteChainId'];let _0x520c87=!0x0,_0x2e859c=!0x0;for(const _0x42b6cc of _0x270d23)if(_0x42b6cc['subType']&&_0x42b6cc['subType']['startsWith']('tablePaste')){if(!_0x42b6cc['attributes']['tablePasteChainId']){_0x2e859c=!0x1;break;}if(_0x42b6cc['id']!=_0x7f8268['id']&&_0x42b6cc['attributes']['tablePasteChainId']==_0x72f5d4){_0x520c87=!0x1;break;}}_0x2e859c&&_0x520c87&&(_0x7f8268['removeMarkers'](),_0x11b6a4=!0x0);}}for(const _0x5793a3 of _0x3a2388)_0x45a9b2['remove'](_0x5793a3);for(const _0x59c5b4 of _0x319ec9)_0x45a9b2['unwrap'](_0x59c5b4);return _0x11b6a4;}),_0x593902['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3fae47=>_0x564193(_0x3fae47),'converterPriority':'high'}),_0x593902['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x23f088,_0x2c3166)=>_0x2c3166['options']['showSuggestionHighlights']?_0x564193(_0x23f088,!0x1):null,'converterPriority':'high'});const _0x11f6f5=_0x593902['editing']['view'];this['listenTo'](_0x11f6f5['document'],'clipboardOutput',(_0x4f0a53,_0x264916)=>{const _0x45c0db=[];for(const _0x5dfbdd of _0x11f6f5['createRangeIn'](_0x264916['content'])['getItems']())_0x5dfbdd['is']('element','suggestion-td')&&_0x45c0db['push'](_0x5dfbdd);_0x11f6f5['change'](_0x341335=>{for(const _0x1c46ba of _0x45c0db)_0x341335['move'](_0x341335['createRangeIn'](_0x1c46ba),_0x341335['createPositionBefore'](_0x1c46ba)),_0x341335['remove'](_0x1c46ba);});});}}function Oe(_0x3a589f){if(_0x3a589f['isEmpty'])return!0x0;const _0x7cd56e=_0x3a589f['getChild'](0x0);return _0x7cd56e['is']('element','paragraph')&&_0x7cd56e['isEmpty'];}function Ue(_0x7e03b6,_0x5248b2={},_0x4d80c3){for(const {isAnchor:_0x5f069f,cellHeight:_0x4b1ffd,cellWidth:_0x4f9af9}of _0x4d80c3['createTableWalker'](_0x7e03b6,{'includeAllSlots':!0x0,..._0x5248b2}))if(!_0x5f069f||0x1!=_0x4b1ffd||0x1!=_0x4f9af9)return!0x1;return!0x0;}class Dt extends _0x6410a9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x31eb42=this['editor']['plugins']['get']('TrackChangesEditing');_0x31eb42['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x31eb42['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x31eb42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31eb42['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x31eb42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x31eb42['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x396d08,_0x29d606){const _0x1271f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32562b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x571403=_0x29d606['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3db2ae=_0x32562b['getColumnGroupElement'](_0x571403);let _0xbf196=_0x3db2ae?_0x32562b['getTableColumnsWidths'](_0x3db2ae):null,_0x5b0d30=_0x571403['getAttribute']('tableWidth')||null;const _0x430a99=_0x29d606['tableWidth']||_0x5b0d30,_0x589e68=_0x29d606['columnWidths']||_0xbf196,_0x535442=this['editor']['plugins']['get']('Users')['me'];for(const _0x199ac4 of _0x1271f2['getSuggestions']()){const _0x110638=_0x199ac4['getContainedElement']();if('resizeTable'===_0x199ac4['subType']&&_0x110638===_0x571403){_0x199ac4['author']!==_0x535442&&_0x199ac4['discard']();const _0x130db8=_0x199ac4['data']['commandParams'];_0x5b0d30=_0x130db8[0x0]['tableWidth'],_0xbf196=_0x130db8[0x0]['columnWidths'];break;}}_0x396d08({'table':_0x571403,'tableWidth':_0x430a99,'columnWidths':_0x589e68}),_0x1271f2['markBlockFormat'](_0x571403,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5b0d30,'columnWidths':_0xbf196}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x36ffd0){if('formatBlock'!=_0x36ffd0['type']&&'formatInline'!=_0x36ffd0['type'])return;const {data:_0x136a50}=_0x36ffd0;if(_0x136a50&&'resizeTable'===_0x136a50['formatGroupId']){const _0x15f888='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x15f888)};}}}class $t extends _0x6410a9{['afterInit'](){const _0x32e338=this['editor'];_0x32e338['plugins']['has']('Template')&&_0x32e338['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x6410a9{['afterInit'](){const _0x320b37=this['editor'];if(!_0x320b37['commands']['get']('insertTableOfContents'))return;_0x320b37['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5a880b=_0x320b37['plugins']['get']('TrackChangesEditing'),_0xd5f6d9=_0x320b37['locale'];_0x5a880b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3b73da=>o(_0xd5f6d9,'ELEMENT_TABLE_OF_CONTENTS',_0x3b73da));}}class Bt extends _0x6410a9{['afterInit'](){const _0x2f967e=this['editor'];if(!_0x2f967e['plugins']['has']('Title'))return;const _0x4b7dab=_0x2f967e['plugins']['get']('TrackChangesEditing');_0x4b7dab['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2f967e['locale'],'ELEMENT_TITLE')),_0x2f967e['model']['document']['registerPostFixer'](_0x175a09=>{let _0x2a7f9a=!0x1;const _0x507b71=Array['from'](_0x2f967e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ba233,data:_0x15abec}of _0x507b71){const {group:_0x2418e0}=_0x4b7dab['_splitMarkerName'](_0x4ba233);if('suggestion'!==_0x2418e0||!_0x15abec['newRange'])continue;const _0x58b8bb=_0x15abec['newRange'],_0x6cb432=_0x58b8bb['end']['nodeBefore'];if(!_0x6cb432||!_0x6cb432['is']('element','title-content'))continue;if(!_0x58b8bb['start']['isTouching'](_0x58b8bb['end']))continue;const _0x259448=_0x2f967e['model']['schema']['getNearestSelectionRange'](_0x58b8bb['end'],'forward');if(_0x259448&&_0x259448['isCollapsed']){const _0x19a3ef=_0x175a09['createRange'](_0x58b8bb['start'],_0x259448['start']);_0x19a3ef['isEqual'](_0x58b8bb)||(_0x175a09['updateMarker'](_0x4ba233,{'range':_0x19a3ef}),_0x2a7f9a=!0x0);}_0x2a7f9a||(_0x175a09['removeMarker'](_0x4ba233),_0x2a7f9a=!0x0);}return _0x2a7f9a;});}}class Tt extends _0x6410a9{['afterInit'](){const _0x2c8883=this['editor'],_0x5aae98=_0x2c8883['plugins']['get']('TrackChangesEditing');_0x2c8883['plugins']['has']('Uploadcare')&&(_0x5aae98['enableCommand']('uploadcare'),_0x2c8883['plugins']['has']('UploadcareImageEdit')&&(_0x5aae98['enableCommand']('uploadcareImageEdit'),_0x5aae98['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5aae98['registerBlockAttribute']('uploadcareImageId'),_0x5aae98['descriptionFactory']['registerDescriptionCallback'](_0x1605bf=>{if('attribute'!=_0x1605bf['type'])return;const {data:_0x5e0790}=_0x1605bf;return _0x5e0790&&'uploadcareImageId'==_0x5e0790['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x6410a9{['afterInit'](){const _0x4601c0=this['editor'],_0x3ab5f2=_0x4601c0['plugins']['get']('TrackChangesEditing');_0x4601c0['plugins']['has']('UndoEditing')&&(_0x3ab5f2['enableCommand']('undo'),_0x3ab5f2['enableCommand']('redo'));}}class Ot extends _0x6410a9{static get['requires'](){return[At];}['afterInit'](){const _0x292fad=this['editor'];if(!_0x292fad['plugins']['has']('TableCaptionEditing'))return;_0x292fad['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x6410a9{['tableProperties'];['tableCellProperties'];constructor(_0x5568a1){super(_0x5568a1),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 _0x5e5a98=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xcce5fc of this['tableProperties'])_0x5e5a98['enableCommand'](_0xcce5fc,(_0x224ef7,_0x255f28)=>{const _0x367d22=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xcce5fc,[_0x367d22],this['tableProperties'],'tableProperties',_0x224ef7,_0x255f28);});_0x5e5a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e5a98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e5a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5cc021,_0x4e2a3)=>this['handleDiscardAction'](this['tableProperties'],_0x5cc021,_0x4e2a3)),_0x5e5a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1c4b8f of this['tableCellProperties'])_0x5e5a98['enableCommand'](_0x1c4b8f,(_0x348bb9,_0x50ae5a)=>{const _0x2ac344=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1c4b8f,_0x2ac344,this['tableCellProperties'],'tableCellProperties',_0x348bb9,_0x50ae5a);});_0x5e5a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e5a98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e5a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4d6f62,_0x4c9acd)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4d6f62,_0x4c9acd)),_0x5e5a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e5a98['descriptionFactory']['registerDescriptionCallback'](_0x315481=>this['handleSuggestionDescription'](_0x315481)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x249628,_0x187ed0,_0x13f31b,_0x4ac242,_0x8ddc93,_0x4da677){const _0x41a301=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4da677['batch'],()=>{for(const _0xe72e3e of _0x187ed0){if(this['_getSuggestion'](_0xe72e3e,_0x4ac242))_0x8ddc93(_0x4da677);else{const _0x280d45={};for(const _0x3e1576 of _0x13f31b){const _0x152d0c=_0xe72e3e['getAttribute'](_0x3e1576);void 0x0!==_0x152d0c&&(_0x280d45[_0x3e1576]=_0x152d0c);}_0x8ddc93(_0x4da677),_0x41a301['markBlockFormat'](_0xe72e3e,{'commandParams':[_0x280d45]},[],_0x4ac242);}}});}['handleDiscardAction'](_0x30f67c,_0x36a1f0,_0x3b00ea){const _0x4c558c=_0x36a1f0[0x0]['start']['nodeAfter'],_0x4ee498=_0x3b00ea['commandParams'][0x0];this['editor']['model']['change'](_0x2b399b=>{for(const _0x5b34e3 of _0x30f67c)void 0x0!==_0x4ee498[_0x5b34e3]?_0x2b399b['setAttribute'](_0x5b34e3,_0x4ee498[_0x5b34e3],_0x4c558c):_0x2b399b['removeAttribute'](_0x5b34e3,_0x4c558c);});}['handleSuggestionDescription'](_0x501428){if(_0x501428['data'])switch(_0x501428['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'](_0x43945d,_0xfa8494){const _0x1834f8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5d5892 of _0x1834f8['getSuggestions']({'skipNotAttached':!0x0})){const _0x589e3f=_0x5d5892['getContainedElement']();if(_0x5d5892['subType']===_0xfa8494&&_0x589e3f===_0x43945d)return _0x5d5892;}return null;}['_registerTablePropertiesAttributes'](){const _0xb7d557=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c5ac9=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1c731e of _0x1c5ac9){const _0x56b6b7=_0x1c731e['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xb7d557['registerBlockAttribute'](_0x1c731e),_0xb7d557['descriptionFactory']['registerAttributeLabel'](_0x1c731e,o(this['editor']['locale'],'FORMAT_'+_0x56b6b7));}}}class Rt extends _0x6410a9{['afterInit'](){const _0x39cea4=this['editor'];if(!_0x39cea4['plugins']['has']('LineHeight'))return;const _0x4eec43=_0x39cea4['plugins']['get']('TrackChangesEditing'),_0x52fbc7=_0x39cea4['locale'];_0x4eec43['enableDefaultAttributesIntegration']('lineHeight'),_0x4eec43['registerBlockAttribute']('lineHeight'),_0x4eec43['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x52fbc7,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x6410a9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x352761,_0x37cb5a,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44e6c9){super(_0x44e6c9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x29bd0b,_0x1ee87c,_0x154cec,_0x654442)=>{this['_model']['change'](()=>{for(const _0x28e769 of[..._0x654442,..._0x154cec])this['_model']['markers']['has'](_0x28e769)&&_0x44e6c9['editing']['reconvertMarker'](_0x28e769);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x44e6c9['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(),_0x44e6c9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x44e6c9['config']['get']('trackChanges.trackFormatChanges'),_0x44e6c9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x44e6c9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x44e6c9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5da0b7=this['editor'],_0x49fba2=(_0x26fe1d,_0x239b83)=>{if('attribute'!=_0x26fe1d)return'ck-suggestion-marker-'+_0x26fe1d;const _0x18a629=_0x239b83['split']('|')[0x0];return this['_isBlockAttribute'](_0x18a629)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5da0b7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x13030a=>{const {id:_0x559951,authorId:_0x37abea,type:_0x5f197c,subType:_0x381d71}=this['_splitMarkerName'](_0x13030a['markerName']),_0x1c1053=['ck-suggestion-marker',_0x49fba2(_0x5f197c,_0x381d71)];let _0x1e165f=0xbb8;return this['activeMarkers']['includes'](_0x13030a['markerName'])&&(_0x1c1053['push']('ck-suggestion-marker--active'),_0x1e165f=0xbc2),'deletion'==_0x5f197c&&(_0x1e165f+=0x5),{'classes':_0x1c1053,'attributes':{'data-suggestion':_0x559951,'data-author-id':_0x37abea},'priority':_0x1e165f};}}),_0x5da0b7['conversion']['for']('dataDowncast')['add'](_0x429eba=>{_0x429eba['on']('addMarker:suggestion',(_0xcbacbb,_0x144e3c,_0x4c69ec)=>{if(!_0x4c69ec['options']['showSuggestionHighlights'])return;const _0x1aa329=_0x144e3c['item'];if(!_0x1aa329)return;const _0x3dc0ab=_0x4c69ec['mapper']['toViewElement'](_0x1aa329);_0x5da0b7['model']['schema']['isObject'](_0x1aa329)&&_0x3dc0ab&&!_0x3dc0ab['getCustomProperty']('widget')&&_0x3dc0ab['is']('containerElement')&&_0x2f4ee2(_0x3dc0ab,_0x4c69ec['writer']);},{'priority':'high'});}),_0x5da0b7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x591c64,_0x534839)=>{if(!_0x534839['options']['showSuggestionHighlights'])return null;const {id:_0xb07be4,authorId:_0x4f6696,type:_0x18e2a4,subType:_0x312ecf}=this['_splitMarkerName'](_0x591c64['markerName']);return{'classes':['ck-suggestion-marker',_0x49fba2(_0x18e2a4,_0x312ecf)],'priority':0xbb8,'attributes':{'data-suggestion':_0xb07be4,'data-author-id':_0x4f6696}};}});const _0x25d04d=({showActiveMarkers:_0x415946=!0x0,isAttributeSuggestion:_0x56b24e=!0x1}={})=>(_0x5e882f,_0x49e0c8,_0x1b4f85)=>{if(!_0x49e0c8['item'])return;const {id:_0x4765f9,authorId:_0x74624}=this['_splitMarkerName'](_0x49e0c8['markerName']);if(_0x56b24e){const _0xecf7c3=this['_suggestions']['get'](_0x4765f9),_0x5660f8=this['_getAttributeKey'](_0xecf7c3);if(!this['_isBlockAttribute'](_0x5660f8))return;}if(_0x49e0c8['item']['is']('selection'))return void _0x1b4f85['consumable']['consume'](_0x49e0c8['item'],_0x5e882f['name']);const _0x2ba456=_0x1b4f85['mapper']['toViewElement'](_0x49e0c8['item']);if(_0x49e0c8['item']['is']('element')&&_0x5da0b7['model']['schema']['isBlock'](_0x49e0c8['item'])&&!_0x2ba456['getCustomProperty']('addHighlight')){_0x1b4f85['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2ba456),_0x1b4f85['writer']['setAttribute']('data-suggestion',_0x4765f9,_0x2ba456),_0x1b4f85['writer']['setAttribute']('data-author-id',_0x74624,_0x2ba456),_0x1b4f85['mapper']['bindElementToMarker'](_0x2ba456,_0x49e0c8['markerName']),_0x415946&&(this['activeMarkers']['includes'](_0x49e0c8['markerName'])?_0x1b4f85['writer']['addClass']('ck-suggestion-marker--active',_0x2ba456):_0x1b4f85['writer']['removeClass']('ck-suggestion-marker--active',_0x2ba456));for(const _0x2e83f8 of _0x5da0b7['model']['createRangeIn'](_0x49e0c8['item'])['getItems']())_0x1b4f85['consumable']['consume'](_0x2e83f8,_0x5e882f['name']);_0x1b4f85['consumable']['consume'](_0x49e0c8['item'],_0x5e882f['name']);}};_0x5da0b7['conversion']['for']('dataDowncast')['add'](_0x5af51b=>{_0x5af51b['on']('addMarker:suggestion:formatBlock',(_0x237f88,_0xe25058,_0xe862c0)=>{_0xe862c0['options']['showSuggestionHighlights']&&_0x25d04d({'showActiveMarkers':!0x1})(_0x237f88,_0xe25058,_0xe862c0);},{'priority':'highest'});}),_0x5da0b7['conversion']['for']('dataDowncast')['add'](_0x212b3c=>{_0x212b3c['on']('addMarker:suggestion:attribute',(_0x52c08a,_0x1e6b14,_0x379e35)=>{_0x379e35['options']['showSuggestionHighlights']&&_0x25d04d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x52c08a,_0x1e6b14,_0x379e35);},{'priority':'highest'});}),_0x5da0b7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x19d22f,_0x223ffc)=>{if(_0x223ffc['options']['showSuggestionHighlights']){const {id:_0x2b8929,authorId:_0x2958e9}=this['_splitMarkerName'](_0x19d22f);return _0x19d22f['includes'](':split')||_0x19d22f['includes'](':merge')?{'group':'suggestion','name':_0x19d22f['substr'](0xb),'attributes':{'data-suggestion':_0x2b8929,'data-author-id':_0x2958e9}}:null;}return{'group':'suggestion','name':_0x19d22f['substr'](0xb)};}}),_0x5da0b7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ddb6a,{writer:_0x2e4ba8})=>{let _0x409bd0='suggestion:'+_0x2ddb6a['getAttribute']('suggestion-type')+':'+_0x2ddb6a['getAttribute']('id');return _0x2ddb6a['getAttribute']('marker-count')&&(_0x409bd0+=':'+_0x2ddb6a['getAttribute']('marker-count')),_0x2e4ba8['createElement']('$marker',{'data-name':_0x409bd0});}}),_0x5da0b7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5da0b7['conversion']['for']('editingDowncast')['add'](_0x291a0c=>{_0x291a0c['on']('addMarker:suggestion:formatBlock',_0x25d04d(),{'priority':'high'});}),_0x5da0b7['conversion']['for']('editingDowncast')['add'](_0x30c344=>{_0x30c344['on']('addMarker:suggestion:attribute',_0x25d04d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5da0b7['conversion']['for']('editingDowncast')['add'](_0x4032f8=>{_0x4032f8['on']('removeMarker:suggestion:formatBlock',(_0x4065dd,_0x174c2d,_0x2ec97f)=>{const _0x19627a=_0x2ec97f['mapper']['markerNameToElements'](_0x174c2d['markerName']);if(_0x19627a){for(const _0x1d1885 of _0x19627a)_0x1d1885['getCustomProperty']('addHighlight')||(_0x2ec97f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1d1885),_0x2ec97f['writer']['removeAttribute']('data-suggestion',_0x1d1885),_0x2ec97f['writer']['removeAttribute']('data-author-id',_0x1d1885),_0x2ec97f['mapper']['unbindElementFromMarkerName'](_0x1d1885,_0x174c2d['markerName']));}},{'priority':'high'});}),_0x5da0b7['conversion']['for']('editingDowncast')['add'](_0xff68ac=>{_0xff68ac['on']('removeMarker:suggestion:attribute',(_0x336d23,_0x24636d,_0x233237)=>{const _0x43fbc4=_0x233237['mapper']['markerNameToElements'](_0x24636d['markerName']);if(!_0x43fbc4)return;const {id:_0x111d3b}=this['_splitMarkerName'](_0x24636d['markerName']),_0x50d0f0=this['_suggestions']['get'](_0x111d3b),_0x37b6a1=this['_getAttributeKey'](_0x50d0f0);if(this['_isBlockAttribute'](_0x37b6a1)){for(const _0x4a0250 of _0x43fbc4)_0x4a0250['getCustomProperty']('addHighlight')||(_0x233237['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a0250),_0x233237['writer']['removeAttribute']('data-suggestion',_0x4a0250),_0x233237['writer']['removeAttribute']('data-author-id',_0x4a0250),_0x233237['mapper']['unbindElementFromMarkerName'](_0x4a0250,_0x24636d['markerName']));}},{'priority':'high'});}),_0x5da0b7['model']['document']['registerPostFixer'](_0x17eb71=>{let _0x3903a9=!0x1;const _0xca4cc1=Array['from'](_0x5da0b7['model']['document']['differ']['getChangedMarkers']()),_0x5a46a9=new Set();for(const {name:_0xe990d3,data:_0x4816e0}of _0xca4cc1){const {group:_0x128268,type:_0x5df966,subType:_0x56e7d8,id:_0xe6cd1d}=this['_splitMarkerName'](_0xe990d3);if('suggestion'!==_0x128268)continue;const _0xc5beb8=_0x56e7d8?'suggestion:'+_0x5df966+':'+_0x56e7d8+':'+_0xe6cd1d:'suggestion:'+_0x5df966+':'+_0xe6cd1d,_0x408176=_0x5da0b7['model']['markers']['getMarkersGroup'](_0xc5beb8),_0x5af776=_0x5da0b7['model']['markers']['get'](_0xe990d3),_0x3d37d5=this['_suggestions']['get'](_0xe6cd1d);if(null!=_0x4816e0['newRange']){'formatInline'==_0x5df966&&(_0x3903a9=_0x3903a9||Gt(_0x4816e0['newRange'],_0xe990d3,_0x17eb71,_0x5da0b7['model']['schema']));const _0x185314='attribute'==_0x5df966&&this['_isBlockAttribute'](_0x56e7d8['split']('|')[0x0]),_0x5d02d1='attribute'==_0x5df966&&this['_isInlineAttribute'](_0x56e7d8['split']('|')[0x0]);if(_0x4816e0['newRange']['isCollapsed']||'$graveyard'==_0x4816e0['newRange']['root']['rootName']||'formatBlock'==_0x5df966&&!Jt(_0x4816e0['newRange'])||_0x185314&&!Jt(_0x4816e0['newRange'])||_0x5d02d1&&Kt(_0x4816e0['newRange'])||'deletion'==_0x5df966&&Kt(_0x4816e0['newRange'])||_0x5af776&&Ht(_0x5af776,_0x408176))_0x17eb71['removeMarker'](_0xe990d3),_0x3903a9=!0x0;else{if(!_0x3d37d5||!_0x3d37d5['isInContent'])continue;if(_0x4816e0['newRange']&&_0x4816e0['oldRange']&&_0x4816e0['newRange']['isEqual'](_0x4816e0['oldRange']))continue;_0x5a46a9['add'](_0x3d37d5);}}}return _0x5a46a9['size']>0x0&&(_0x3903a9=!!this['_joinWithAdjacentSuggestions'](_0x5a46a9)||_0x3903a9),_0x3903a9;}),_0x5da0b7['model']['document']['registerPostFixer'](_0x4353d3=>{let _0x5022f9=!0x1;for(const _0x91d850 of _0x5da0b7['model']['document']['differ']['getChanges']())if('insert'==_0x91d850['type'])for(const _0x3ae20e of this['_suggestions']['values']()){if(_0x3ae20e['isMultiRange']||!_0x3ae20e['isInContent'])continue;const _0x1e4774='formatBlock'==_0x3ae20e['type'],_0x45b9d9=this['_getAttributeKey'](_0x3ae20e),_0x46322f=_0x45b9d9&&this['_isBlockAttribute'](_0x45b9d9);if(!_0x1e4774&&!_0x46322f)continue;const _0x264340=_0x3ae20e['getFirstRange']();if(_0x264340['start']['parent']!=_0x264340['end']['parent']&&!_0x264340['end']['isAtEnd']){const _0x39ef43=_0x5da0b7['model']['createPositionAt'](_0x264340['start']['nodeAfter'],'end'),_0x228f70=_0x5da0b7['model']['createRange'](_0x264340['start'],_0x39ef43);_0x4353d3['updateMarker'](_0x3ae20e['getFirstMarker'](),{'range':_0x228f70}),_0x5022f9=!0x0;}}return _0x5022f9;}),_0x5da0b7['model']['document']['registerPostFixer'](_0x582e9b=>this['_processAttributeChanges'](_0x582e9b)),_0x5da0b7['model']['document']['registerPostFixer'](_0x53443b=>!_0x53443b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53443b)),_0x5da0b7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5da0b7['model']['document']['on']('change:data',(_0x51edfa,_0x4df888)=>{if(!_0x4df888['isLocal']||_0x4df888['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2bda80=_0x5da0b7['model']['document']['differ']['getChanges']();if(0x0==_0x2bda80['length'])return;const _0x4aaf29=[],_0x28fe4c=_0x2bda80['filter'](_0x499e1e=>'attribute'==_0x499e1e['type']),_0x41eabd=_0x2bda80['filter'](_0xdc6686=>'insert'==_0xdc6686['type']&&'$text'!=_0xdc6686['name']);for(const _0x55f52f of _0x28fe4c)this['_isRegisteredAttribute'](_0x55f52f['attributeKey'])&&_0x4aaf29['push']({'key':_0x55f52f['attributeKey'],'newValue':_0x55f52f['attributeNewValue'],'oldValue':_0x55f52f['attributeOldValue'],'range':qt(_0x55f52f['range'],_0x5da0b7['model'])});for(const _0x27956f of _0x41eabd){if('rename'!=_0x27956f['action']&&'refresh'!=_0x27956f['action'])continue;const _0xcef39d=zt(_0x27956f['position']['nodeAfter'],_0x5da0b7['model']),_0x1e0dd9=_0x27956f['before'];'rename'==_0x27956f['action']&&_0x4aaf29['push']({'key':m,'newValue':_0x27956f['name'],'oldValue':_0x1e0dd9['name'],'range':_0xcef39d});for(const [_0x519d71,_0x3d055e]of _0x1e0dd9['attributes']){if(!this['_isRegisteredAttribute'](_0x519d71))continue;const _0x303365=_0x27956f['attributes']['get'](_0x519d71);_0x3d055e!==_0x303365&&_0x4aaf29['push']({'key':_0x519d71,'newValue':_0x303365,'oldValue':_0x3d055e,'range':_0xcef39d});}for(const [_0x26850d,_0x48f8bb]of _0x27956f['attributes'])this['_isRegisteredAttribute'](_0x26850d)&&(_0x1e0dd9['attributes']['has'](_0x26850d)||_0x4aaf29['push']({'key':_0x26850d,'newValue':_0x48f8bb,'oldValue':null,'range':_0xcef39d}));}0x0!=_0x4aaf29['length']&&_0x5da0b7['model']['enqueueChange'](_0x4df888,_0x31d3c3=>{const _0x599352=_0x31afce();for(const {range:_0x45edcc,key:_0x4445d2,oldValue:_0x44b1a5,newValue:_0x3adb95}of _0x4aaf29)this['markAttributeChange'](_0x45edcc,_0x4445d2,_0x44b1a5,_0x3adb95,{'groupId':_0x599352});this['_reduceExistingSuggestions'](_0x31d3c3,_0x4aaf29);});},{'priority':'lowest'}),_0x5da0b7['model']['markers']['on']('update:suggestion',(_0x5ea340,_0xacfac1,_0x256876)=>{if(null==_0x256876){const {id:_0x13aa4f}=this['_splitMarkerName'](_0xacfac1['name']),_0x27ce3f=this['_suggestions']['get'](_0x13aa4f);_0x27ce3f&&_0x27ce3f['addMarkerName'](_0xacfac1['name']);}}),_0x5da0b7['model']['document']['on']('change:data',()=>{const _0xcf130e=Array['from'](_0x5da0b7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e1c84=>'suggestion'===this['_splitMarkerName'](_0x5e1c84['name'])['group']);if(0x0===_0xcf130e['length'])return;_0xcf130e['sort']((_0x2ebaac,_0x144c98)=>{const _0x3c2309=_0x2ebaac['data']['oldRange'],_0x2a2a45=_0x144c98['data']['oldRange'];return null===_0x3c2309&&null===_0x2a2a45?0x0:null===_0x3c2309&&null!==_0x2a2a45?-0x1:null!==_0x3c2309&&null===_0x2a2a45?0x1:_0x3c2309['start']['isBefore'](_0x2a2a45['start'])?-0x1:0x1;});const _0x1d133b=new Set(),_0x37b5d6=new Set();for(const {name:_0x301714,data:_0x494a0a}of _0xcf130e){const {id:_0xab3f49}=this['_splitMarkerName'](_0x301714);if(null===_0x494a0a['oldRange']){const _0x582ca0=this['_handleNewSuggestionMarker'](_0x301714);_0x37b5d6['add'](_0x582ca0);}else{const _0x16fbc5=this['_suggestions']['get'](_0xab3f49);null!==_0x494a0a['newRange']||_0x16fbc5['isInContent']?(_0x1d133b['add'](_0x16fbc5['head']),_0x37b5d6['add'](_0x16fbc5)):this['_removeSuggestion'](_0x16fbc5);}}_0x37b5d6['size']>0x0&&this['_refreshSuggestionsChain'](_0x37b5d6);for(const _0x348f98 of _0x1d133b)this['fire']('suggestionChanged',_0x348f98);}),_0x5da0b7['model']['on']('applyOperation',(_0x44d337,_0x15c318)=>{const _0x40e162=_0x15c318[0x0];if(!this['_suggestions']['size'])return;if(!_0x40e162['isDocumentOperation'])return;if(_0x40e162['batch']['isUndo']||!_0x40e162['batch']['isLocal'])return;let _0x17d4fe,_0xafcf7;switch(_0x40e162['type']){case'insert':_0x17d4fe=_0x5da0b7['model']['createPositionAt'](_0x40e162['position']),_0xafcf7=_0x17d4fe['getShiftedBy'](_0x40e162['howMany']);break;case'split':_0x17d4fe=_0x5da0b7['model']['createPositionAt'](_0x40e162['splitPosition']),_0xafcf7=_0x5da0b7['model']['createPositionAt'](_0x40e162['moveTargetPosition']);break;case'move':_0x17d4fe=_0x5da0b7['model']['createPositionAt'](_0x40e162['targetPosition']),_0xafcf7=_0x17d4fe['getShiftedBy'](_0x40e162['howMany']);break;default:return;}const _0xb43ce1=_0x5da0b7['model']['createRange'](_0x17d4fe,_0xafcf7);_0x5da0b7['model']['change'](()=>{for(const {suggestion:_0xc1eafd,meta:_0x480afa}of this['_findSuggestions'](_0xb43ce1)){if(_0xc1eafd['isMultiRange'])continue;if('formatInline'==_0xc1eafd['type'])continue;const _0x660c1=this['_getAttributeKey'](_0xc1eafd);if(_0x660c1&&this['_isBlockAttribute'](_0x660c1)&&'split'!=_0x40e162['type'])continue;const _0x5d78e6=_0xc1eafd['data']&&_0xc1eafd['data']['multipleBlocks'];('formatBlock'!=_0xc1eafd['type']||'split'==_0x40e162['type']&&!_0x5d78e6)&&(_0x480afa['containsRangeInObject']||'insertion'==_0xc1eafd['type']&&_0x480afa['isOwn']||_0xc1eafd['getFirstRange']()['containsRange'](_0xb43ce1)&&this['_breakSuggestionMarker'](_0xc1eafd,_0x17d4fe,_0xafcf7));}});},{'priority':'lowest'}),_0x5da0b7['model']['on']('deleteContent',(_0x39cd63,_0x1423be)=>{const _0x38c2b0=_0x1423be[0x0],_0x1b2fd8=_0x1423be[0x1];if(_0x1b2fd8&&_0x1b2fd8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x38c2b0['isCollapsed'])return;const _0x4f16b0=_0x5da0b7['model']['schema'],{start:_0x50eb98,end:_0xc05100}=_0x38c2b0['getFirstRange'](),_0x1d0377=_0x50eb98['nodeAfter']&&_0x4f16b0['isLimit'](_0x50eb98['nodeAfter'])?null:_0x4f16b0['getNearestSelectionRange'](_0x50eb98,'forward'),_0x556bdf=_0xc05100['nodeBefore']&&_0x4f16b0['isLimit'](_0xc05100['nodeBefore'])?null:_0x4f16b0['getNearestSelectionRange'](_0xc05100,'backward'),_0x336888=_0x5da0b7['model']['createRange'](_0x1d0377?_0x1d0377['start']:_0x50eb98,_0x556bdf?_0x556bdf['end']:_0xc05100);_0x5da0b7['model']['change'](_0x38cb10=>{this['markDeletion'](_0x336888);const _0x1bd60e=_0x5da0b7['model']['schema']['getNearestSelectionRange'](_0x336888['start']);_0x38c2b0['is']('documentSelection')?_0x38cb10['setSelection'](_0x1bd60e):_0x38c2b0['setTo'](_0x1bd60e);}),_0x39cd63['stop']();},{'priority':_0x5b2f57['normal']+0xa}),_0x5da0b7['model']['on']('insertContent',(_0x1f1a10,_0xd09cb5)=>{const _0x14f1d7=_0xd09cb5[_0xd09cb5['length']-0x1];_0x14f1d7&&_0x14f1d7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5da0b7['model']['change'](()=>{let _0x13fc94=_0x5da0b7['model']['insertContent'](_0xd09cb5[0x0],_0xd09cb5[0x1],_0xd09cb5[0x2],{'forceDefaultExecution':!0x0});if(!_0x13fc94)return;_0x1f1a10['return']=_0x13fc94['clone']();const _0x5664ab=_0x13fc94['end']['nodeBefore'],_0xa0c1cf=_0x5da0b7['model']['schema'];_0x5664ab&&_0xa0c1cf['isBlock'](_0x5664ab)&&!_0xa0c1cf['isObject'](_0x5664ab)&&(_0x13fc94=_0x5da0b7['model']['createRange'](_0x13fc94['start'],_0x5da0b7['model']['createPositionAt'](_0x5664ab,'end'))),this['markInsertion'](_0x13fc94);}),_0x1f1a10['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x184492=new D(_0x5da0b7,this['_suggestions']);_0x5da0b7['commands']['add']('acceptSuggestion',_0x184492),this['enableCommand']('acceptSuggestion');const _0x2a7556=new $(_0x5da0b7,this['_suggestions']);_0x5da0b7['commands']['add']('discardSuggestion',_0x2a7556),this['enableCommand']('discardSuggestion'),_0x5da0b7['commands']['add']('acceptAllSuggestions',new M(_0x5da0b7,_0x184492,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5da0b7['commands']['add']('discardAllSuggestions',new M(_0x5da0b7,_0x2a7556,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5da0b7['commands']['add']('acceptSelectedSuggestions',new B(_0x5da0b7,_0x184492,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5da0b7['commands']['add']('discardSelectedSuggestions',new B(_0x5da0b7,_0x2a7556,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x19dca3=_0x5da0b7['plugins']['get']('CommentsRepository');this['listenTo'](_0x19dca3,'addComment',(_0x3c698f,{threadId:_0x1bba6b})=>{const _0x533b24=this['_suggestions']['get'](_0x1bba6b);_0x533b24&&_0x533b24['commentThread']&&0x1===_0x533b24['commentThread']['length']&&this['_updateSuggestionData'](_0x1bba6b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x19dca3,'removeComment',(_0x5d5205,{threadId:_0x3e4948})=>{const _0x2a3cab=this['_suggestions']['get'](_0x3e4948);_0x2a3cab&&_0x2a3cab['commentThread']&&!_0x2a3cab['commentThread']['length']&&this['_updateSuggestionData'](_0x3e4948,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x22dc46){const _0x4cc07e=_0x3ac31e([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x20e00a=0x6b0f5e6f,_0x2d68ec=0x6b082d7f^_0x20e00a,_0x4a597a=window[_0x3ac31e([0x44,0x61,0x74,0x65])][_0x3ac31e([0x6e,0x6f,0x77])](),_0x16c6cb=_0x22dc46[_0x3ac31e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x546593=new window[(_0x3ac31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c4d77=>{_0x16c6cb[_0x3ac31e([0x6f,0x6e,0x63,0x65])](_0x3ac31e([0x72,0x65,0x61,0x64,0x79]),_0x1c4d77);}),_0x1b12cc={[_0x3ac31e([0x6b,0x74,0x79])]:_0x3ac31e([0x45,0x43]),[_0x3ac31e([0x75,0x73,0x65])]:_0x3ac31e([0x73,0x69,0x67]),[_0x3ac31e([0x63,0x72,0x76])]:_0x3ac31e([0x50,0x2d,0x32,0x35,0x36]),[_0x3ac31e([0x78])]:_0x3ac31e([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]),[_0x3ac31e([0x79])]:_0x3ac31e([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]),[_0x3ac31e([0x61,0x6c,0x67])]:_0x3ac31e([0x45,0x53,0x32,0x35,0x36])},_0xf24486=_0x16c6cb[_0x3ac31e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ac31e([0x67,0x65,0x74])](_0x3ac31e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7049ab(){let _0x339a1d,_0x5eb208=null,_0x2f8be2=null;try{if(_0xf24486==_0x3ac31e([0x47,0x50,0x4c]))return _0x3ac31e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x339a1d=_0x3fc9de(),!_0x339a1d)return _0x3ac31e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x339a1d[_0x3ac31e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f8be2=_0x333a45(_0x339a1d[_0x3ac31e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x339a1d[_0x3ac31e([0x6a,0x74,0x69])])),await _0x496e00()?_0x496151()?_0x2fbbcc()?_0x3ac31e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33dcc8()?(_0x339a1d[_0x3ac31e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ac31e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5eb208=_0x6c8925(_0x3ac31e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x339a1d[_0x3ac31e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ac31e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5eb208=_0x6c8925(_0x3ac31e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc58a65()):_0x3ac31e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ac31e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ac31e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ac31e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2fbbcc(){const _0x58db6f=[_0x3ac31e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ac31e([0x74,0x72,0x69,0x61,0x6c])][_0x3ac31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x339a1d[_0x3ac31e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a597a/0x3e8:0xe10*_0x2d68ec;return _0x339a1d[_0x3ac31e([0x65,0x78,0x70])]<_0x58db6f;}function _0x496151(){const _0x4d937e=_0x339a1d[_0x3ac31e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d937e)return!0x1;if(_0x4d937e[_0x3ac31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ac31e([0x2a])))return!0x0;if(_0x4d937e[_0x3ac31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ac31e([0x54,0x43])))return!0x0;if(_0x4d937e[_0x3ac31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ac31e([0x52,0x54,0x43]))){if(_0x2b2663())return!0x0;if(_0x3d566f()||_0x53cc96())return!0x0;}return!0x1;}function _0x33dcc8(){const _0x509a45=_0x339a1d[_0x3ac31e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x509a45||0x0==_0x509a45[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x261761}=new URL(window[_0x3ac31e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x509a45[_0x3ac31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261761))return!0x0;const _0x3eec9c=_0x261761[_0x3ac31e([0x73,0x70,0x6c,0x69,0x74])](_0x3ac31e([0x2e]));return _0x509a45[_0x3ac31e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x258950=>_0x258950[_0x3ac31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ac31e([0x2a])))[_0x3ac31e([0x6d,0x61,0x70])](_0x1ef5ef=>_0x1ef5ef[_0x3ac31e([0x73,0x70,0x6c,0x69,0x74])](_0x3ac31e([0x2e])))[_0x3ac31e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x133c1e=>_0x133c1e[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3eec9c[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ac31e([0x6d,0x61,0x70])](_0x1315ba=>Array(_0x3eec9c[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1315ba[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ac31e([0x66,0x69,0x6c,0x6c])](_0x1315ba[0x0]===_0x3ac31e([0x2a])?_0x3ac31e([0x2a]):'')[_0x3ac31e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1315ba))[_0x3ac31e([0x73,0x6f,0x6d,0x65])](_0x49f3c9=>_0x3eec9c[_0x3ac31e([0x65,0x76,0x65,0x72,0x79])]((_0x27ce9d,_0x24a396)=>_0x49f3c9[_0x24a396]===_0x27ce9d||_0x49f3c9[_0x24a396]===_0x3ac31e([0x2a])));}function _0xc58a65(){return _0x5eb208&&_0x2f8be2?new window[(_0x3ac31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34187a,_0x26bfa9)=>{_0x5eb208[_0x3ac31e([0x74,0x68,0x65,0x6e])](_0x34187a,_0x26bfa9),_0x2f8be2[_0x3ac31e([0x74,0x68,0x65,0x6e])](_0x41c8d2=>{_0x41c8d2!=_0x3ac31e([0x56,0x61,0x6c,0x69,0x64])&&_0x34187a(_0x41c8d2);},_0x26bfa9);}):_0x5eb208||_0x2f8be2||_0x3ac31e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x333a45(_0xada214,_0x3ef07e){return new window[(_0x3ac31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20eb0b=>{if(_0xc3ce6d())return _0x20eb0b(_0x3ac31e([0x56,0x61,0x6c,0x69,0x64]));_0x3e7ac0(),_0x16c6cb[_0x3ac31e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ac31e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e18b0=!0x1;const _0x28ac49=_0x31afce();function _0x2ef881(_0x3ca366){return!!_0x3ca366&&(typeof _0x3ca366===_0x3ac31e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ca366===_0x3ac31e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ca366[_0x3ac31e([0x74,0x68,0x65,0x6e])]===_0x3ac31e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ca366[_0x3ac31e([0x63,0x61,0x74,0x63,0x68])]===_0x3ac31e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48d829(_0xef6bfd){_0x40536d(_0xef6bfd)[_0x3ac31e([0x74,0x68,0x65,0x6e])](_0x40b5b0=>{if(!_0x40b5b0||_0x40b5b0[_0x3ac31e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ac31e([0x6f,0x6b]))return _0x3ac31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50778a(_0x16a713(_0x28ac49+_0x3ef07e))!=_0x40b5b0[_0x3ac31e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ac31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ac31e([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ac31e([0x74,0x68,0x65,0x6e])](_0x4a8f52=>(_0x2fac09(),_0x4a8f52),()=>{const _0x21bfb5=_0x24ef08();return null==_0x21bfb5?(_0x2fac09(),_0x3ac31e([0x56,0x61,0x6c,0x69,0x64])):_0x3ac31e(_0x4a597a-_0x21bfb5>(0x4f03da6f^_0x20e00a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ac31e([0x74,0x68,0x65,0x6e])](_0x20eb0b)[_0x3ac31e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20eb0b(_0x3ac31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x586538=0x6b39b0ef^_0x20e00a;function _0x2fac09(){const _0x11f3a9=_0x3ac31e([0x6c,0x6c,0x63,0x74,0x2d])+_0x50778a(_0x16a713(_0xada214)),_0x5d7b8e=_0x3c3f15(_0x50778a(window[_0x3ac31e([0x4d,0x61,0x74,0x68])][_0x3ac31e([0x63,0x65,0x69,0x6c])](_0x4a597a/_0x586538)));window[_0x3ac31e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ac31e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11f3a9,_0x5d7b8e);}function _0x24ef08(){const _0x3d4eb3=_0x3ac31e([0x6c,0x6c,0x63,0x74,0x2d])+_0x50778a(_0x16a713(_0xada214)),_0x4f6e6f=window[_0x3ac31e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ac31e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d4eb3);return _0x4f6e6f?window[_0x3ac31e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c3f15(_0x4f6e6f),0x10)*_0x586538:null;}function _0x40536d(_0x2123db){return new window[(_0x3ac31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e7572,_0x2b9a88)=>{_0x2123db[_0x3ac31e([0x74,0x68,0x65,0x6e])](_0x2e7572,_0x2b9a88),window[_0x3ac31e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2b9a88,0x6b0e8aaf^_0x20e00a);});}}_0x16c6cb[_0x3ac31e([0x6f,0x6e])](_0x3ac31e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2757df,_0x54f062)=>{if(_0x54f062[0x0]!=_0xada214)return _0x20eb0b(_0x3ac31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54f062[0x1]={..._0x54f062[0x1],[_0x3ac31e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28ac49};},{[_0x3ac31e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ac31e([0x68,0x69,0x67,0x68])}),_0x16c6cb[_0x3ac31e([0x6f,0x6e])](_0x3ac31e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x425675=>{_0x2ef881(_0x425675[_0x3ac31e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e18b0=!0x0,_0x48d829(_0x425675[_0x3ac31e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ac31e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ac31e([0x6c,0x6f,0x77])}),_0x546593[_0x3ac31e([0x74,0x68,0x65,0x6e])](()=>{_0x5e18b0||_0x20eb0b(_0x3ac31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc3ce6d(){return _0x16c6cb[_0x3ac31e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ac31e([0x76,0x69,0x65,0x77])][_0x3ac31e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ac31e([0x61,0x75,0x74,0x6f]);}function _0x3e7ac0(){_0x16c6cb[_0x3ac31e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ac31e([0x76,0x69,0x65,0x77])][_0x3ac31e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ac31e([0x61,0x75,0x74,0x6f]);}}function _0x6c8925(_0x29658d){const _0x5420e0=[new window[(_0x3ac31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x170d68=>setTimeout(_0x170d68,0x6b0660a3^_0x20e00a)),_0x546593[_0x3ac31e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ac31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42fbeb=>{let _0x41fcbb=0x0;_0x16c6cb[_0x3ac31e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ac31e([0x6f,0x6e])](_0x3ac31e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43f018,_0x234842)=>{_0x234842[0x0][_0x3ac31e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41fcbb++,_0x41fcbb==(0x6b0f5f97^_0x20e00a)&&(_0x42fbeb(),_0x43f018[_0x3ac31e([0x6f,0x66,0x66])]());});}))];return window[_0x3ac31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ac31e([0x72,0x61,0x63,0x65])](_0x5420e0)[_0x3ac31e([0x74,0x68,0x65,0x6e])](()=>_0x29658d);}async function _0xf79614(){await _0x546593,_0x16c6cb[_0x3ac31e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ac31e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13e973,_0x16c6cb[_0x3ac31e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ac31e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13e973,_0x16c6cb[_0x3ac31e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ac31e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2b2663(){return _0x2d1c65(_0x3ac31e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x481ff3(_0x3ac31e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ac31e([0x73,0x74,0x61,0x74,0x65])]==_0x3ac31e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3d566f(){return _0x2d1c65(_0x3ac31e([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 _0x53cc96(){return _0x2d1c65(_0x3ac31e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x57114e(_0x5232a7){const _0x18498d=_0x1acff5();_0x16c6cb[_0x18498d]=_0x3ac31e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5232a7,_0x5232a7!=_0x3ac31e([0x56,0x61,0x6c,0x69,0x64])&&_0xf79614();}function _0x1acff5(){const _0x341deb=window[_0x3ac31e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ac31e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ac31e([0x6e,0x6f,0x77])]())[_0x3ac31e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ac31e([0x2e]),'');let _0x6f9f8c=_0x3ac31e([0x67]);for(let _0x54e64e=0x0;_0x54e64e<_0x341deb[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54e64e+=0x2){let _0x3a89a3=window[_0x3ac31e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x341deb[_0x3ac31e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54e64e,_0x54e64e+0x2));_0x3a89a3>=_0x4cc07e[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a89a3-=_0x4cc07e[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6f9f8c+=_0x4cc07e[_0x3a89a3];}return _0x6f9f8c;}function _0x3fc9de(){const _0x1644eb=_0xf24486[_0x3ac31e([0x73,0x70,0x6c,0x69,0x74])](_0x3ac31e([0x2e]));if(0x3!=_0x1644eb[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e4347(_0x1644eb[0x1]);function _0x4e4347(_0x5c47ea){const _0x391974=_0x176254(_0x5c47ea);return _0x391974&&_0x15e4e3()?_0x391974:null;function _0x15e4e3(){const _0x12fa87=_0x391974[_0x3ac31e([0x6a,0x74,0x69])],_0x161ce9=window[_0x3ac31e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12fa87[_0x3ac31e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12fa87[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ba776={..._0x391974,[_0x3ac31e([0x6a,0x74,0x69])]:_0x12fa87[_0x3ac31e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12fa87[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ba776[_0x3ac31e([0x76,0x63])],_0x16a713(_0x3ba776)==_0x161ce9;}}}async function _0x496e00(){let _0x1733bb=!0x0;try{const _0x333193=_0xf24486[_0x3ac31e([0x73,0x70,0x6c,0x69,0x74])](_0x3ac31e([0x2e])),[_0x517cec,_0x176f76,_0x3cca89]=_0x333193;return _0x2495d1(_0x517cec),await _0x38200d(_0x517cec,_0x176f76,_0x3cca89),_0x1733bb;}catch{return!0x1;}function _0x2495d1(_0x216340){const _0x21e791=_0x176254(_0x216340);_0x21e791&&_0x21e791[_0x3ac31e([0x61,0x6c,0x67])]==_0x3ac31e([0x45,0x53,0x32,0x35,0x36])||(_0x1733bb=!0x1);}async function _0x38200d(_0x257a80,_0x3b3508,_0x51c443){const _0x509bbd=window[_0x3ac31e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ac31e([0x66,0x72,0x6f,0x6d])](_0x3699d5(_0x51c443),_0x4b9db2=>_0x4b9db2[_0x3ac31e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5cd28e=new window[(_0x3ac31e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ac31e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x257a80+_0x3ac31e([0x2e])+_0x3b3508),_0x68122b=window[_0x3ac31e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ac31e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x68122b)return;const _0x1230f3=await _0x68122b[_0x3ac31e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ac31e([0x6a,0x77,0x6b]),_0x1b12cc,{[_0x3ac31e([0x6e,0x61,0x6d,0x65])]:_0x3ac31e([0x45,0x43,0x44,0x53,0x41]),[_0x3ac31e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ac31e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ac31e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x68122b[_0x3ac31e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ac31e([0x6e,0x61,0x6d,0x65])]:_0x3ac31e([0x45,0x43,0x44,0x53,0x41]),[_0x3ac31e([0x68,0x61,0x73,0x68])]:{[_0x3ac31e([0x6e,0x61,0x6d,0x65])]:_0x3ac31e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1230f3,_0x509bbd,_0x5cd28e)||(_0x1733bb=!0x1);}}function _0x176254(_0x235bce){return _0x235bce[_0x3ac31e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ac31e([0x65,0x79]))?JSON[_0x3ac31e([0x70,0x61,0x72,0x73,0x65])](_0x3699d5(_0x235bce)):null;}function _0x3699d5(_0x2c4036){return window[_0x3ac31e([0x61,0x74,0x6f,0x62])](_0x2c4036[_0x3ac31e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ac31e([0x2b]))[_0x3ac31e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ac31e([0x2f])));}function _0x16a713(_0x46bcb8){let _0x2a45dc=0x1505;function _0x5589e1(_0x542cd9){for(let _0x3ade6f=0x0;_0x3ade6f<_0x542cd9[_0x3ac31e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ade6f++){const _0x5941e6=_0x542cd9[_0x3ac31e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ade6f);_0x2a45dc=(_0x2a45dc<<0x5)+_0x2a45dc+_0x5941e6,_0x2a45dc&=_0x2a45dc;}}function _0x5a16c2(_0x48f188){Array[_0x3ac31e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48f188)?_0x48f188[_0x3ac31e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a16c2):_0x48f188&&typeof _0x48f188==_0x3ac31e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ac31e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48f188)[_0x3ac31e([0x73,0x6f,0x72,0x74])]()[_0x3ac31e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e2818,_0x8278f9])=>{_0x5589e1(_0x4e2818),_0x5a16c2(_0x8278f9);}):_0x5589e1(window[_0x3ac31e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48f188));}return _0x5a16c2(_0x46bcb8),_0x2a45dc>>>0x0;}function _0x50778a(_0x1e9376){return _0x1e9376[_0x3ac31e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ac31e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ac31e([0x30]));}function _0x3c3f15(_0x221432){return _0x221432[_0x3ac31e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ac31e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ac31e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d1c65(_0x258e41){return _0x16c6cb[_0x3ac31e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ac31e([0x68,0x61,0x73])](_0x258e41);}function _0x481ff3(_0x6e5d9e){return _0x16c6cb[_0x3ac31e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ac31e([0x67,0x65,0x74])](_0x6e5d9e);}function _0x13e973(){}function _0x3ac31e(_0xf3ea7d){return _0xf3ea7d['map'](_0x367d90=>String['fromCharCode'](_0x367d90))['join']('');}_0x57114e(await _0x7049ab());}(this);}set['adapter'](_0x41cd48){if(this['_adapter'])throw new _0x5bd908('track-changes-adapter-already-set',this);this['_adapter']=_0x41cd48;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xb695fe=!0x1,toJSON:_0x3d229=!0x1}={}){const _0x4df883=[];for(const _0x243671 of this['_suggestions']['values']())_0xb695fe&&!_0x243671['isInContent']||_0x4df883['push'](_0x243671);return _0x3d229?_0x4df883['map'](_0x1d3241=>_0x1d3241['toJSON']()):_0x4df883;}['getSuggestion'](_0x248ad9){const _0x10226d=this['_suggestions']['get'](_0x248ad9);if(!_0x10226d)throw new _0x5bd908('track-changes-suggestion-not-found',this);return _0x10226d;}['hasSuggestion'](_0x2712bc){return this['_suggestions']['has'](_0x2712bc);}['addSuggestionData'](_0x206745){const {authorId:_0x2dc9cf,id:_0xfc524e,originalSuggestionId:_0x4a7a15,attributes:_0x37e83a}=_0x206745,[_0x5f175e,_0x3964b1]=_0x206745['type']['split'](':'),_0xdde095=this['_suggestions']['get'](_0xfc524e)||this['_createSuggestion'](_0x5f175e,_0x3964b1,_0xfc524e,_0x2dc9cf,_0x37e83a,_0x4a7a15);if(this['_addThreadToSuggestion'](_0xdde095),this['_checkSuggestionCorrectness'](_0xdde095,_0x5f175e,_0x3964b1||null,_0x2dc9cf),_0xdde095['createdAt']=_0x206745['createdAt'],_0xdde095['_isDataLoaded']=!0x0,_0x37e83a&&_0x37e83a['@external']){const _0x6fba29=_0x37e83a['@external'],_0x29a1c2=this['_getExternalAuthor'](_0x6fba29['authorName']);_0xdde095['authoredAt']=_0x6fba29['createdAt'],_0xdde095['author']=_0x29a1c2,_0xdde095['isExternal']=!0x0;}else _0xdde095['authoredAt']=_0x206745['createdAt'];switch(_0x206745['data']&&(_0xdde095['data']=_0x206745['data']),_0x206745['attributes']&&(_0xdde095['attributes']=_0x206745['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xdde095['_saved']=!0x0),this['_suggestionState']['get'](_0xdde095)){case'notReady':this['_suggestionState']['set'](_0xdde095,'dataReady');break;case'markerReady':_0xdde095['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xdde095])),this['_refreshSuggestionsChain'](new Set([_0xdde095])),this['_suggestionState']['set'](_0xdde095,'ready'),this['fire']('suggestionLoaded',_0xdde095)):this['_suggestionState']['set'](_0xdde095,'removed');}return _0xdde095;}['acceptSuggestion'](_0x1c57da){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x206c59 of _0x1c57da['getAllAdjacentSuggestions']())_0x206c59['accept']();});});}['discardSuggestion'](_0x5799bd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x6325f8 of _0x5799bd['getAllAdjacentSuggestions']())_0x6325f8['discard']();});});}['enableCommand'](_0x27461b,_0x50bb54){const _0x1fe794=this['editor']['commands']['get'](_0x27461b);if(!_0x1fe794)throw new _0x5bd908('track-changes-command-not-found',this,{'commandName':_0x27461b});if(this['_enabledCommands']['has'](_0x1fe794))throw new _0x5bd908('track-changes-enable-command-twice',this,{'commandName':_0x27461b});this['_enabledCommands']['add'](_0x1fe794),_0x50bb54&&_0x1fe794['on']('execute',(_0x1c4e03,_0x3469c8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3469c8['length']>0x0&&_0x3469c8[_0x3469c8['length']-0x1]&&_0x3469c8[_0x3469c8['length']-0x1]['forceDefaultExecution']?_0x3469c8['pop']():(_0x1c4e03['return']=_0x50bb54((..._0x1e180a)=>_0x1fe794['execute'](..._0x1e180a,{'forceDefaultExecution':!0x0}),..._0x3469c8),_0x1c4e03['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2f985d){let _0x51b7ef,_0xa4bbb3;const _0x3a79ae=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x51b7ef=_0x2f985d();}catch(_0x552e96){_0xa4bbb3=_0x552e96;}return _0x3a79ae||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xa4bbb3&&_0x5bd908['rethrowUnexpectedError'](_0xa4bbb3,this),_0x51b7ef;}['markInsertion'](_0x3e0516,_0x12f968=null,_0x3d0c29={}){if(_0x3e0516['isCollapsed'])return null;const _0x5141c7=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3d0c29['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x12e1a8,meta:_0x460b2d}of this['_findSuggestions'](_0x3e0516,'insertion'))if(_0x460b2d['isOwn']){if(!_0x460b2d['isNextTo']){if(_0x460b2d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x12e1a8,_0x3d0c29))continue;return _0x12e1a8;}if(Xt(_0x12e1a8,_0x3d0c29))return _0x12e1a8;this['_breakSuggestionMarker'](_0x12e1a8,_0x3e0516['start'],_0x3e0516['end']);break;}if(_0x12f968==_0x12e1a8['subType']&&Xt(_0x12e1a8,_0x3d0c29)){const _0xd892eb=_0x12e1a8['getFirstRange']();return _0xd892eb['start']['isEqual'](_0x3e0516['end'])?this['_setSuggestionRange'](_0x12e1a8,this['_model']['createRange'](_0x3e0516['start'],_0xd892eb['end'])):this['_setSuggestionRange'](_0x12e1a8,this['_model']['createRange'](_0xd892eb['start'],_0x3e0516['end'])),_0x12e1a8;}}const _0x4d5c7b=_0x31afce(),_0x2854a2=_0x5141c7['id'],_0x180e73=_0x12f968?'insertion:'+_0x12f968:'insertion',_0x28a5db=this['_setSuggestionData']({'id':_0x4d5c7b,'type':_0x180e73,'createdAt':new Date(),'authorId':_0x2854a2,'attributes':_0x3d0c29});return this['_addSuggestionMarker'](_0x180e73,_0x4d5c7b,_0x2854a2,_0x3e0516),_0x28a5db;}['markMultiRangeInsertion'](_0x1a89d9,_0x50d45b='multi',_0x202175={}){const _0xfdc1=this['editor']['plugins']['get']('Users')['me'],_0x556386=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x50d45b,'join');this['_trackingSessionId']&&(_0x202175['trackingSessionId']=this['_trackingSessionId']);for(const _0x2a9f35 of this['getSuggestions']())if(_0x2a9f35['author']['id']==_0xfdc1['id']&&'insertion'==_0x2a9f35['type']&&_0x2a9f35['subType']==_0x50d45b&&Xt(_0x2a9f35,_0x202175)&&(_0x556386(_0x2a9f35['getRanges'](),_0x1a89d9)||_0x556386(_0x1a89d9,_0x2a9f35['getRanges']()))){for(const _0x216462 of _0x1a89d9)_0x2a9f35['addRange'](_0x216462);return _0x2a9f35;}for(const {suggestion:_0x2775eb,meta:_0x345c77}of this['_findSuggestions'](_0x1a89d9,'insertion')){if(!_0x345c77['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x345c77['containsRangeInObject'])continue;if(!Xt(_0x2775eb,_0x202175))continue;let _0x2ae5bc=!0x0;for(const _0x171134 of _0x2775eb['getRanges']())for(const _0x314e14 of _0x1a89d9)if(!_0x171134['containsRange'](_0x314e14)){_0x2ae5bc=!0x1;break;}if(_0x2ae5bc)return _0x2775eb;}const _0x361789=_0x31afce(),_0x1b43b4=_0xfdc1['id'],_0x2ec68c='insertion:'+_0x50d45b,_0x36201d=this['_setSuggestionData']({'id':_0x361789,'type':_0x2ec68c,'createdAt':new Date(),'authorId':_0x1b43b4,'attributes':_0x202175});for(const _0x33c599 of _0x1a89d9)this['_addSuggestionMarker'](_0x2ec68c,_0x361789,_0x1b43b4,_0x33c599,T['getMultiRangeId']());return _0x36201d;}['markInlineFormat'](_0x179bbf,_0x53fd62,_0x29774a=null,_0x40f579={}){if(_0x29774a=_0x29774a||Lt(_0x53fd62),_0x179bbf['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x40f579['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x358b82=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29774a,'accept');return this['forceDefaultExecution'](()=>_0x358b82([_0x179bbf],_0x53fd62,_0x40f579)),null;}const _0x2f209b=this['editor']['plugins']['get']('Users')['me'],_0x57e42a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5f54d4,meta:_0x35312d}of this['_findSuggestions'](_0x179bbf,'insertion'))_0x35312d['isOwn']&&!_0x35312d['isInsideObject']&&_0x57e42a['push'](..._0x5f54d4['getRanges']());}const _0x581276=function(_0x2d6de2,_0x4ab89c){const _0x3a75c6=[];for(const _0x4401e9 of _0x4ab89c){const _0x52d16c=_0x2d6de2['getIntersection'](_0x4401e9);_0x52d16c&&_0x3a75c6['push'](_0x52d16c);}return _0x3a75c6;}(_0x179bbf,_0x57e42a),_0x1dd962=function(_0x4ae301,_0x523758){const _0xa62224=[_0x4ae301];for(const _0x19e239 of _0x523758){let _0x399026=0x0;for(;_0x399026<_0xa62224['length'];){const _0x15dae1=_0xa62224[_0x399026]['getDifference'](_0x19e239);_0xa62224['splice'](_0x399026,0x1,..._0x15dae1),_0x399026+=_0x15dae1['length'];}}return _0xa62224;}(_0x179bbf,_0x57e42a);_0x581276['length']&&this['_model']['change'](()=>{for(const _0x3a659e of _0x581276){const _0x552155=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29774a,'accept');this['forceDefaultExecution'](()=>_0x552155([_0x3a659e],_0x53fd62,_0x40f579));}});for(const _0x3e8c3c of _0x1dd962){let _0x344eab=null,_0xd7ce47=_0x3e8c3c['start'],_0x2bf7ae=_0x3e8c3c['end'];for(const {suggestion:_0x371a85,meta:_0x27e4f0}of this['_findSuggestions'](_0x3e8c3c,'formatInline')){if(!_0x27e4f0['isOwn'])continue;if(_0x371a85['subType']!=_0x29774a)continue;if(!Xt(_0x371a85,_0x40f579))continue;const _0x3a4278=_0x371a85['getFirstRange']();if(_0x3a4278['containsRange'](_0x3e8c3c,!0x0))return null;_0xd7ce47=_0xd7ce47['isBefore'](_0x3a4278['start'])?_0xd7ce47:_0x3a4278['start'],_0x2bf7ae=_0x2bf7ae['isAfter'](_0x3a4278['end'])?_0x2bf7ae:_0x3a4278['end'],_0x344eab?_0x3a4278['start']['isBefore'](_0x344eab['getFirstRange']()['start'])?(_0x344eab['removeMarkers'](),_0x344eab=_0x371a85):_0x371a85['removeMarkers']():_0x344eab=_0x371a85;}const _0x38a18e=this['_model']['createRange'](_0xd7ce47,_0x2bf7ae);if(_0x344eab)this['_setSuggestionRange'](_0x344eab,_0x38a18e);else{const _0x587395=_0x31afce(),_0x407f4e=_0x2f209b['id'];this['_setSuggestionData']({'id':_0x587395,'type':'formatInline:'+_0x29774a,'data':_0x53fd62,'createdAt':new Date(),'authorId':_0x407f4e,'attributes':_0x40f579}),this['_addSuggestionMarker']('formatInline:'+_0x29774a,_0x587395,_0x407f4e,_0x38a18e);}}return null;}['markBlockFormat'](_0x2b102c,_0x800a2c,_0x5055e4=[],_0x459eb4=null,_0x3504f3={}){_0x800a2c['formatGroupId']||(_0x800a2c['formatGroupId']=_0x800a2c['commandName']),_0x800a2c['multipleBlocks']=_0x2b102c['is']('range'),_0x459eb4=_0x459eb4||Lt(_0x800a2c);const _0x5380ac=_0x5055e4['map'](_0x4458db=>zt(_0x4458db,this['_model'])),_0xf85ad9=_0x2b102c['is']('range')?_0x2b102c:zt(_0x2b102c,this['_model']);if(this['_trackingSessionId']&&(_0x3504f3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32d6fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x459eb4,'accept');return this['forceDefaultExecution'](()=>_0x32d6fe([_0xf85ad9],_0x800a2c,_0x3504f3)),null;}_0x5380ac['push'](_0xf85ad9);let _0xc558d2=!0x0;for(const _0xaed099 of _0x5380ac)if(!this['_rangeIsInLocalUserInsertion'](_0xaed099)){_0xc558d2=!0x1;break;}if(_0xc558d2&&'always'!==this['_trackFormatChanges']){const _0x1fc2b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x459eb4,'accept');return this['forceDefaultExecution'](()=>_0x1fc2b1([_0xf85ad9],_0x800a2c,_0x3504f3)),null;}let _0x2ff676=null,_0x19ba33=_0xf85ad9['start'],_0x552feb=_0xf85ad9['end'];for(const {suggestion:_0x4051d6,meta:_0xb69935}of this['_findSuggestions'](_0xf85ad9,'formatBlock')){if(!_0xb69935['isOwn'])continue;if(_0xb69935['isNextTo']||_0xb69935['containsRangeInObject']||_0xb69935['isInsideObject'])continue;if(_0x4051d6['data']['formatGroupId']!=_0x800a2c['formatGroupId'])continue;if(!Xt(_0x4051d6,_0x3504f3))continue;const _0x51ff29=_0x4051d6['getFirstRange']();if(_0x4051d6['subType']==_0x459eb4){if(_0x51ff29['containsRange'](_0xf85ad9,!0x0))return null;_0x19ba33=_0x19ba33['isBefore'](_0x51ff29['start'])?_0x19ba33:_0x51ff29['start'],_0x552feb=_0x552feb['isAfter'](_0x51ff29['end'])?_0x552feb:_0x51ff29['end'],_0x2ff676?_0x51ff29['start']['isBefore'](_0x2ff676['getFirstRange']()['start'])?(_0x2ff676['removeMarkers'](),_0x2ff676=_0x4051d6):_0x4051d6['removeMarkers']():_0x2ff676=_0x4051d6;}else{const _0x1f21ff=_0xf85ad9['getIntersection'](_0x51ff29);this['_cutOutSuggestionMarker'](_0x4051d6,_0x1f21ff);}}const _0x27f627=this['editor']['plugins']['get']('Users')['me'],_0xcf9084=_0x31afce(),_0x33b7dc=_0x27f627['id'];if(_0x2ff676)return this['_setSuggestionRange'](_0x2ff676,this['_model']['createRange'](_0x19ba33,_0x552feb)),_0x2ff676;{const _0x129590=this['_setSuggestionData']({'id':_0xcf9084,'type':'formatBlock:'+_0x459eb4,'data':_0x800a2c,'createdAt':new Date(),'authorId':_0x33b7dc,'attributes':_0x3504f3});return this['_addSuggestionMarker']('formatBlock:'+_0x459eb4,_0xcf9084,_0x33b7dc,this['_model']['createRange'](_0x19ba33,_0x552feb)),_0x129590;}}['markMultiRangeBlockFormat'](_0x183e9b,_0x1b13fc,_0x1f8567=[],_0x193977=null,_0x3848f7={}){_0x1b13fc['formatGroupId']||(_0x1b13fc['formatGroupId']=_0x1b13fc['commandName']);const _0x5225bc=_0x183e9b[0x0];_0x1b13fc['multipleBlocks']=_0x5225bc['is']('range'),_0x193977=_0x193977||Lt(_0x1b13fc);const _0x4c4163=_0x1f8567['map'](_0x41c3f0=>zt(_0x41c3f0,this['_model'])),_0x4711bd=_0x5225bc['is']('range')?_0x183e9b:_0x183e9b['map'](_0x963544=>zt(_0x963544,this['_model']));if(this['_trackingSessionId']&&(_0x3848f7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x54321b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x193977,'accept');return this['forceDefaultExecution'](()=>_0x54321b(_0x4711bd,_0x1b13fc,_0x3848f7)),null;}_0x4c4163['push'](..._0x4711bd);let _0x5e5eaa=!0x0;for(const _0x5091f2 of _0x4c4163)if(!this['_rangeIsInLocalUserInsertion'](_0x5091f2)){_0x5e5eaa=!0x1;break;}if(_0x5e5eaa&&'always'!==this['_trackFormatChanges']){const _0x30b469=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x193977,'accept');return this['forceDefaultExecution'](()=>_0x30b469(_0x4711bd,_0x1b13fc,_0x3848f7)),null;}const _0x9ece42=this['editor']['plugins']['get']('Users')['me'];for(const _0xc44ebf of this['getSuggestions']()){const _0x43fbdd=_0xc44ebf['data'];if(_0xc44ebf['author']['id']!=_0x9ece42['id'])continue;if('formatBlock'!=_0xc44ebf['type']||_0x43fbdd['formatGroupId']!=_0x1b13fc['formatGroupId'])continue;if(!Xt(_0xc44ebf,_0x3848f7))continue;const _0x549b3d=_0xc44ebf['subType']==_0x193977;for(let _0x880850=0x0;_0x880850<_0x4711bd['length'];_0x880850++){const _0x54ae9e=_0x4711bd[_0x880850];for(const _0x58a2b7 of _0xc44ebf['getMarkers']()){const _0xd6ccfd=_0x58a2b7['getRange']();if(_0x54ae9e['isEqual'](_0xd6ccfd)){_0x549b3d?(_0x4711bd['splice'](_0x880850,0x1),_0x880850--):_0xc44ebf['removeMarker'](_0x58a2b7['name']);break;}}}}if(0x0==_0x4711bd['length'])return null;const _0x5c0436=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x193977,'join');for(const _0x4412fb of this['getSuggestions']()){const _0x3baf7f=_0x4412fb['data'];if(_0x4412fb['author']['id']==_0x9ece42['id']&&('formatBlock'==_0x4412fb['type']&&_0x3baf7f['formatGroupId']==_0x1b13fc['formatGroupId']&&_0x4412fb['subType']==_0x193977&&Xt(_0x4412fb,_0x3848f7)&&(_0x5c0436(_0x4412fb['getRanges'](),_0x4711bd)||_0x5c0436(_0x4711bd,_0x4412fb['getRanges']())))){for(const _0x581361 of _0x4711bd)_0x4412fb['addRange'](_0x581361);return _0x4412fb;}}const _0x249cc8=_0x31afce(),_0x35215e=_0x9ece42['id'],_0x2c301a='formatBlock:'+_0x193977,_0x505481=this['_setSuggestionData']({'id':_0x249cc8,'type':_0x2c301a,'data':_0x1b13fc,'createdAt':new Date(),'authorId':_0x35215e,'attributes':_0x3848f7});for(const _0x53a2ae of _0x4711bd)this['_addSuggestionMarker'](_0x2c301a,_0x249cc8,_0x35215e,_0x53a2ae,T['getMultiRangeId']());return _0x505481;}['markDeletion'](_0x1c0a75,_0x462606=null,_0x5c8d4b={}){if(_0x1c0a75['isCollapsed'])return null;const _0x3b9e01=this['editor']['plugins']['get']('Users')['me'],_0x12de13=new _0x19bc7a(_0x1c0a75['start'],_0x1c0a75['end']);this['_trackingSessionId']&&(_0x5c8d4b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x533540,meta:_0x20e7b3}of this['_findSuggestions'](_0x12de13,'insertion'))if(_0x20e7b3['isOwn']&&!_0x20e7b3['isNextTo']){if(_0x533540['isMultiRange']){const _0x4d6a7a=_0x533540['getRanges']()['filter'](_0x5c73cd=>'$graveyard'!=_0x5c73cd['root']['rootName']);_0x4d6a7a['every'](_0x9888b8=>_0x12de13['containsRange'](_0x9888b8,!0x0))&&_0x533540['discard']();if(_0x4d6a7a['some'](_0x43ba65=>_0x43ba65['containsRange'](_0x12de13,!0x0))){const _0x2da36d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x462606,'accept');return this['forceDefaultExecution'](()=>_0x2da36d([_0x12de13],null,_0x5c8d4b)),null;}}else{const _0x27f897=_0x12de13['getIntersection'](_0x533540['getFirstRange']());null!==_0x27f897&&_0x533540['_onDiscard']([_0x27f897],null,_0x5c8d4b);}}if(_0x12de13['detach'](),_0x12de13['isCollapsed']||'$graveyard'==_0x12de13['root']['rootName'])return null;let _0x330b6a=null,_0x28c73b=_0x12de13['start'],_0x70e485=_0x12de13['end'];const _0x26cd09=this['_findSuggestions'](_0x12de13,'deletion');for(const {suggestion:_0x3a7d8e,meta:_0xfd652a}of _0x26cd09){const _0x21f310=this['_model']['createRange'](_0x28c73b,_0x70e485);if(_0xfd652a['isOwn']&&(this['_mergeNestedSuggestions']||!_0xfd652a['containsRangeInObject']&&!_0xfd652a['isInsideObject'])){if(_0x3a7d8e['isMultiRange']){if(!Xt(_0x3a7d8e,_0x5c8d4b))continue;let _0x2b1105=!0x0;for(const _0x4f9993 of _0x3a7d8e['getRanges']()){if(_0x4f9993['containsRange'](_0x21f310,!0x0))return _0x3a7d8e;_0x21f310['containsRange'](_0x4f9993)||(_0x2b1105=!0x1);}_0x2b1105&&_0x3a7d8e['discard']();}else{const _0x1d7eb5=_0x3a7d8e['getFirstRange']();if(_0x1d7eb5['containsRange'](_0x21f310,!0x0))return _0x3a7d8e;if(!Xt(_0x3a7d8e,_0x5c8d4b)){_0x21f310['containsRange'](_0x1d7eb5)?_0x3a7d8e['removeMarkers']():_0x1d7eb5['containsPosition'](_0x28c73b)?_0x28c73b=_0x1d7eb5['end']:_0x1d7eb5['containsPosition'](_0x70e485)&&(_0x70e485=_0x1d7eb5['start']);continue;}_0x28c73b=_0x28c73b['isBefore'](_0x1d7eb5['start'])?_0x28c73b:_0x1d7eb5['start'],_0x70e485=_0x70e485['isAfter'](_0x1d7eb5['end'])?_0x70e485:_0x1d7eb5['end'],_0x5c8d4b=Object['assign']({},_0x3a7d8e['attributes']),_0x330b6a?_0x1d7eb5['start']['isBefore'](_0x330b6a['getFirstRange']()['start'])?(_0x330b6a['removeMarkers'](),_0x330b6a=_0x3a7d8e):_0x3a7d8e['removeMarkers']():_0x330b6a=_0x3a7d8e;}}}if(_0x330b6a)return this['_setSuggestionRange'](_0x330b6a,this['_model']['createRange'](_0x28c73b,_0x70e485)),_0x330b6a;{const _0x29f036=_0x31afce(),_0xbae8bb=this['_model']['createRange'](_0x28c73b,_0x70e485),_0x15f247=_0x3b9e01['id'],_0x5d6569=_0x462606?'deletion:'+_0x462606:'deletion',_0x5d7a3c=this['_setSuggestionData']({'id':_0x29f036,'type':_0x5d6569,'createdAt':new Date(),'authorId':_0x15f247,'attributes':_0x5c8d4b});return this['_addSuggestionMarker'](_0x5d6569,_0x29f036,_0x15f247,_0xbae8bb),_0x5d7a3c;}}['markMultiRangeDeletion'](_0x555def,_0x15e798='multi',_0x5848fd={}){const _0x28158d=this['editor']['plugins']['get']('Users')['me'],_0x27c134=_0x555def['map'](_0x43f3ca=>new _0x19bc7a(_0x43f3ca['start'],_0x43f3ca['end'])),_0x328a35=new Set();this['_trackingSessionId']&&(_0x5848fd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x475370,meta:_0x8295b6}of this['_findSuggestions'](_0x27c134,'insertion'))_0x8295b6['isOwn']&&!_0x8295b6['isNextTo']&&_0x328a35['add'](_0x475370);for(const _0x38ae3a of _0x328a35)if(_0x38ae3a['isMultiRange']){const _0x5df7f1=_0x38ae3a['getRanges']();(!_0x38ae3a['attributes']||!_0x38ae3a['attributes']['skipNestingCheck'])&&(_0x5df7f1['every'](_0x4eab80=>_0x27c134['some'](_0x438c86=>_0x438c86['containsRange'](_0x4eab80,!0x0)))&&_0x38ae3a['discard']());if(_0x27c134['every'](_0x4e6829=>_0x5df7f1['some'](_0x1c7dbf=>_0x1c7dbf['containsRange'](_0x4e6829,!0x0)))){const _0x55da7f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15e798,'accept');return this['forceDefaultExecution'](()=>_0x55da7f(_0x555def,null,_0x5848fd)),null;}}else{const _0x5b90c9=_0x38ae3a['getFirstRange']();_0x27c134['some'](_0x40bdcb=>_0x40bdcb['containsRange'](_0x5b90c9,!0x0))&&_0x38ae3a['discard']();if(_0x27c134['every'](_0xe4eb2e=>_0x5b90c9['containsRange'](_0xe4eb2e,!0x0))){const _0x38ee83=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15e798,'accept');return this['forceDefaultExecution'](()=>_0x38ee83(_0x27c134,null,_0x5848fd)),null;}}const _0x33f888=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15e798,'join');let _0x188c72=null;for(const _0x160605 of this['getSuggestions']())if(_0x160605['author']['id']==_0x28158d['id']&&_0x160605['isInContent']&&'deletion'==_0x160605['type']&&_0x160605['subType']==_0x15e798&&Xt(_0x160605,_0x5848fd)&&(_0x33f888(_0x160605['getRanges'](),_0x27c134)||_0x33f888(_0x27c134,_0x160605['getRanges']()))){if(_0x188c72){if(_0x160605['commentThread']&&_0x160605['commentThread']['length'])continue;for(const _0x5716b3 of _0x160605['getRanges']())_0x188c72['isIntersectingWithRange'](_0x5716b3)||_0x188c72['addRange'](_0x5716b3);_0x160605['removeMarkers']();}else{_0x188c72=_0x160605;for(const _0x9d46e8 of _0x27c134)_0x160605['isIntersectingWithRange'](_0x9d46e8)||_0x160605['addRange'](_0x9d46e8);}}if(_0x188c72)return _0x188c72;_0x328a35['clear']();for(const {suggestion:_0x155c54,meta:_0x109581}of this['_findSuggestions'](_0x27c134,'deletion'))_0x109581['isOwn']&&(this['_mergeNestedSuggestions']||!_0x109581['containsRangeInObject']&&!_0x109581['isInsideObject'])&&Xt(_0x155c54,_0x5848fd)&&_0x328a35['add'](_0x155c54);for(const _0xaf5569 of _0x328a35){const _0x448597=_0xaf5569['getRanges']();if(!_0x5848fd||!_0x5848fd['skipNestingCheck']){if(_0x27c134['every'](_0x5941ed=>_0x448597['some'](_0x4f5e9d=>_0x4f5e9d['containsRange'](_0x5941ed,!0x0))))return _0xaf5569;}(!_0xaf5569['attributes']||!_0xaf5569['attributes']['skipNestingCheck'])&&(_0x448597['every'](_0x1b6c35=>_0x27c134['some'](_0x2b04a2=>_0x2b04a2['containsRange'](_0x1b6c35,!0x0)))&&_0xaf5569['discard']());}const _0x2ab476=_0x31afce(),_0x4def39=_0x28158d['id'],_0xf019ea='deletion:'+_0x15e798,_0x579908=this['_setSuggestionData']({'id':_0x2ab476,'type':_0xf019ea,'createdAt':new Date(),'authorId':_0x4def39,'attributes':_0x5848fd});for(const _0x4a9c4b of _0x27c134)_0x4a9c4b['detach'](),_0x4a9c4b['isCollapsed']||'$graveyard'==_0x4a9c4b['root']['rootName']||this['_addSuggestionMarker'](_0xf019ea,_0x2ab476,_0x4def39,_0x4a9c4b,T['getMultiRangeId']());return _0x579908;}['markAttributeChange'](_0x16e9fd,_0x302a0b,_0x55eb99,_0x92416c,_0x3bc017){if(_0x16e9fd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3a4277=this['editor']['plugins']['get']('Users')['me']['id'],_0x5e058e=Array['from'](this['_suggestions']['values']())['filter'](_0x539a8b=>'attribute'==_0x539a8b['type']&&_0x539a8b['data']['key']==_0x302a0b&&_0x539a8b['isIntersectingWithRange'](_0x16e9fd));if(this['_trackingSessionId']&&(_0x3bc017['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x37e8a9=this['_findSuggestions'](_0x16e9fd,'insertion')['filter'](({meta:_0xf54f37})=>_0xf54f37['isOwn']&&!_0xf54f37['isInsideObject']&&!_0xf54f37['isNextTo'])['map'](({suggestion:_0x391612})=>_0x391612);_0x5e058e['unshift'](..._0x37e8a9);}const _0x31e949=new Map([[_0x16e9fd,_0x55eb99]]);for(const _0x3012f7 of _0x5e058e){const _0xc0277f='attribute'==_0x3012f7['type']?_0x3012f7['data']['oldValue']:void 0x0,_0x5b596a=_0x3012f7['getFirstRange'](),_0x556495=Array['from'](_0x31e949['keys']())['find'](_0x270d72=>_0x270d72['isIntersecting'](_0x5b596a));if(!_0x556495)continue;const _0x55cf94=_0x556495['getDifference'](_0x5b596a);this['_isBlockAttribute'](_0x302a0b)&&'insertion'==_0x3012f7['type']&&0x0!=_0x55cf94['length']||(_0x31e949['delete'](_0x556495),_0x55cf94['forEach'](_0x5b6d5d=>{_0x31e949['set'](_0x5b6d5d,_0x55eb99);}),'insertion'!=_0x3012f7['type']&&_0xc0277f!=_0x92416c&&_0x31e949['set'](_0x556495['getIntersection'](_0x5b596a),_0xc0277f));}const _0x47370a=[];for(const [_0x41eb4d,_0x3fd88a]of _0x31e949){const _0x229983=_0x31afce(),_0x45cf31={'key':_0x302a0b,'oldValue':_0x3fd88a,'newValue':_0x92416c};_0x302a0b['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':_0x302a0b});const _0x4a69c4=('attribute:'+(_0x302a0b+'|'+Lt({'newValue':_0x92416c})))['substring'](0x0,0x3c),_0x3d99f4=this['_setSuggestionData']({'id':_0x229983,'type':_0x4a69c4,'data':_0x45cf31,'createdAt':new Date(),'authorId':_0x3a4277,'attributes':_0x3bc017});_0x47370a['push'](_0x3d99f4),this['_addSuggestionMarker'](_0x4a69c4,_0x229983,_0x3a4277,_0x41eb4d);}return _0x47370a;}['enableDefaultAttributesIntegration'](_0x16b9d7){this['enableCommand'](_0x16b9d7,(_0x1f0862,..._0x45b869)=>{this['recordAttributeChanges'](()=>{_0x1f0862(..._0x45b869);});});}['registerBlockAttribute'](_0x405956){this['_blockAttributeKeys']['add'](_0x405956);}['registerInlineAttribute'](_0x2b4ba6){this['_inlineAttributeKeys']['add'](_0x2b4ba6);}['startTrackingSession'](_0x278442){return this['_trackingSessionId']=void 0x0!==_0x278442?_0x278442:_0x31afce(),this['_trackingSessionId'];}['_getAttributeKey'](_0x286715){return'attribute'==_0x286715['type']?_0x286715['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x470059,_0x132460){const _0x307be6=_0x470059['getFirstMarker']();this['_model']['change'](_0x2562a2=>{_0x2562a2['updateMarker'](_0x307be6,{'range':_0x132460});});}['_addThreadToSuggestion'](_0x53eb5d){const _0x3152a0=_0x53eb5d['id'],_0x23bdb9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3152a0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x23bdb9,'threadId':_0x3152a0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5580db=this['_commentsRepository']['getCommentThread'](_0x3152a0);_0x5580db['unbind']('isRemovable'),_0x5580db['isRemovable']=!0x1,_0x53eb5d['commentThread']=_0x5580db;}['_checkSuggestionCorrectness'](_0x55d5b8,_0x7bf436,_0x55746d,_0x59a1c8){if(_0x55d5b8['type']!=_0x7bf436||_0x55d5b8['subType']!=_0x55746d||_0x55d5b8['creator']['id']!=_0x59a1c8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5bd908('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x109be5,_0x140cd4){const _0x29ef94=_0x109be5['getFirstRange']();if(_0x140cd4['isEqual'](_0x29ef94))_0x109be5['removeMarkers']();else{if(_0x29ef94['containsRange'](_0x140cd4)){const _0x4d7d32=this['_model']['createPositionAt'](_0x140cd4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x109be5,this['_model']['createRange'](_0x29ef94['start'],_0x4d7d32));const _0x2b7964=_0x31afce(),_0x46825d=_0x109be5['creator']['id'],_0x5ca92f=_0x109be5['type']+':'+_0x109be5['subType'];this['_setSuggestionData']({'id':_0x2b7964,'type':_0x5ca92f,'createdAt':new Date(),'authorId':_0x46825d,'data':_0x109be5['data'],'attributes':_0x109be5['attributes']});const _0x489124=this['_model']['createPositionAt'](_0x140cd4['end']['parent'],'after'),_0x594ddf=this['_model']['createRange'](_0x489124,_0x29ef94['end']);this['_addSuggestionMarker'](_0x5ca92f,_0x2b7964,_0x46825d,_0x594ddf);}else{if(_0x29ef94['containsPosition'](_0x140cd4['start'])){const _0x36bfc9=this['_model']['createPositionAt'](_0x140cd4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x109be5,this['_model']['createRange'](_0x29ef94['start'],_0x36bfc9));}else{const _0x3d4cfd=this['_model']['createPositionAt'](_0x140cd4['end']['parent'],'after');this['_setSuggestionRange'](_0x109be5,this['_model']['createRange'](_0x3d4cfd,_0x29ef94['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5178f2){for(const {suggestion:_0x38dbac,meta:_0xb60029}of this['_findSuggestions'](_0x5178f2,'insertion')){if(!_0xb60029['isOwn'])continue;const _0x1e129c=_0x38dbac['getRanges']();for(const _0x57ca9f of _0x1e129c)if(!_0x5178f2['getDifference'](_0x57ca9f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x590395){return this['editor']['plugins']['get']('Users')['getUser'](_0x590395);}['_getExternalAuthor'](_0x312f95){const _0x2465a7=this['editor']['plugins']['get']('Users'),_0x3d4bd3=_0xb60271('external:'+_0x312f95),_0x485090=_0x2465a7['getUser'](_0x3d4bd3);return _0x485090||_0x2465a7['addUser']({'id':_0x3d4bd3,'name':_0x312f95});}['_createSuggestion'](_0x54bbef,_0x9e7468,_0x1fcccc,_0x23de62,_0x2f7254,_0x50f4dd){const _0x1c38f0=this['_getAuthorFromId'](_0x23de62);if(!_0x1c38f0)throw new _0x5bd908('track-changes-user-not-found',this,{'authorId':_0x23de62,'suggestionId':_0x1fcccc});const _0x106230=this['_suggestionFactory']['buildSuggestion'](_0x54bbef,_0x9e7468,_0x1fcccc,_0x1c38f0,_0x2f7254,_0x4060d2=>{this['_updateSuggestionData'](_0x1fcccc,{'attributes':_0x4060d2});const _0x1b19e6=this['getSuggestion'](_0x1fcccc);this['_joinWithAdjacentSuggestions'](new Set([_0x1b19e6])),this['_refreshSuggestionsChain'](new Set([_0x1b19e6]));},_0x50f4dd);return this['listenTo'](_0x106230,'accept',()=>{this['_updateSuggestionData'](_0x1fcccc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x106230,'discard',()=>{this['_updateSuggestionData'](_0x1fcccc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1fcccc,_0x106230),this['_suggestionState']['set'](_0x106230,'notReady'),_0x106230;}['_splitMarkerName'](_0x4deacf){const _0x313ff4=_0x4deacf['split'](':');return{'group':_0x313ff4[0x0],'type':_0x313ff4[0x1],'subType':_0x313ff4['length']>=0x5?_0x313ff4[0x2]:null,'id':_0x313ff4['length']<0x5?_0x313ff4[0x2]:_0x313ff4[0x3],'authorId':_0x313ff4['length']<0x5?_0x313ff4[0x3]:_0x313ff4[0x4],'markerCount':0x6==_0x313ff4['length']?_0x313ff4[0x5]:null};}['_breakSuggestionMarker'](_0xcea0e8,_0x5ef39d,_0x5cbce6){const _0x591cfb=_0xcea0e8['getFirstRange'](),_0x47a94b=_0x591cfb['start'],_0xdf1f3b=_0x591cfb['end'];this['_setSuggestionRange'](_0xcea0e8,this['_model']['createRange'](_0x47a94b,_0x5ef39d));const _0x49615e=_0x31afce(),_0xb278ed=_0xcea0e8['creator']['id'],_0x24337a=_0xcea0e8['type']+(_0xcea0e8['subType']?':'+_0xcea0e8['subType']:'');this['_setSuggestionData']({'id':_0x49615e,'type':_0x24337a,'createdAt':new Date(),'authorId':_0xb278ed,'originalSuggestionId':_0xcea0e8['_originalSuggestionId']||_0xcea0e8['id'],'attributes':_0xcea0e8['attributes'],'data':_0xcea0e8['data']});const _0x2c6422=this['_getAttributeKey'](_0xcea0e8);('formatBlock'==_0xcea0e8['type']||_0x2c6422&&this['_isBlockAttribute'](_0x2c6422))&&(_0x5cbce6=this['_model']['createPositionBefore'](_0x5cbce6['parent'])),this['_addSuggestionMarker'](_0x24337a,_0x49615e,_0xb278ed,this['_model']['createRange'](_0x5cbce6,_0xdf1f3b));}['_findSuggestions'](_0x31a5a6,_0x3fb0c2=null){const _0x5e5879=[],_0x1dfa81=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31a5a6)||(_0x31a5a6=[_0x31a5a6]);for(const _0x5386dd of this['getSuggestions']()){if(!_0x5386dd['isInContent'])continue;if(_0x3fb0c2&&_0x5386dd['type']!=_0x3fb0c2)continue;let _0x2fa0cc=!0x1;for(const _0x1b2682 of _0x5386dd['getRanges']()){for(const _0x148048 of _0x31a5a6){const _0x3c7784=_0x148048['start']['isEqual'](_0x1b2682['end'])||_0x148048['end']['isEqual'](_0x1b2682['start']);if(_0x3c7784||_0x148048['getIntersection'](_0x1b2682)){const _0x27b7ca=_0x148048['containsRange'](_0x1b2682)&&Ft(this['_model']['schema'],_0x1b2682['start'],_0x148048),_0x4b477d=_0x1b2682['containsRange'](_0x148048)&&Ft(this['_model']['schema'],_0x148048['start'],_0x1b2682);_0x5e5879['push']({'suggestion':_0x5386dd,'meta':{'isOwn':_0x1dfa81==_0x5386dd['author'],'isNextTo':_0x3c7784,'isInsideObject':_0x27b7ca,'containsRangeInObject':_0x4b477d}}),_0x2fa0cc=!0x0;break;}}if(_0x2fa0cc)break;}}return _0x5e5879;}['_addSuggestionMarker'](_0x460e08,_0x416065,_0x42826c,_0x563002,_0x3a86e0){this['_model']['change'](_0x4be568=>{let _0x456703='suggestion:'+_0x460e08+':'+_0x416065+':'+_0x42826c;_0x3a86e0&&(_0x456703=_0x456703+':'+_0x3a86e0),_0x4be568['addMarker'](_0x456703,{'range':_0x563002,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x577ab1){const _0x559927=_0x577ab1['previous'],_0x5ba807=_0x577ab1['next'];_0x577ab1['previous']=null,_0x577ab1['next']=null,null!=_0x559927&&_0x559927['next']==_0x577ab1&&(_0x559927['next']=_0x5ba807),null!=_0x5ba807&&_0x5ba807['previous']==_0x577ab1&&(_0x5ba807['previous']=_0x559927),'ready'==this['_suggestionState']['get'](_0x577ab1)&&(this['_suggestionState']['set'](_0x577ab1,'removed'),this['fire']('suggestionUnloaded',_0x577ab1,_0x559927,_0x5ba807));}['_setSuggestionData'](_0x1bb44f){const _0x39bcdc=_0x1bb44f['id'],_0x536322=this['addSuggestionData'](_0x1bb44f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5a2e8a=this['editor']['plugins']['get']('PendingActions'),_0x2fb4c2=_0x536322['hasComments'],_0xec3b98=_0x536322['subType']?_0x536322['type']+':'+_0x536322['subType']:_0x536322['type'],_0xcbb061=this['editor']['locale'],_0x401f51=_0x5a2e8a['add'](o(_0xcbb061,'PENDING_ACTION_SUGGESTION')),_0x484f7d={'id':_0x39bcdc,'type':_0xec3b98,'hasComments':_0x2fb4c2,'data':_0x1bb44f['data']||null,'originalSuggestionId':_0x1bb44f['originalSuggestionId']||null,'attributes':_0x536322['attributes']};this['_adapter']['addSuggestion'](_0x484f7d)['then'](_0xd74cc4=>{_0x536322['_saved']=!0x0,_0x5a2e8a['remove'](_0x401f51),_0xd74cc4&&_0xd74cc4['createdAt']&&(this['_suggestions']['get'](_0x39bcdc)['createdAt']=_0xd74cc4['createdAt']);})['catch'](_0xfcd022=>{throw _0x2e753c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x536322['discard']();}),_0x536322['stopListening'](),this['_suggestions']['delete'](_0x536322['id']),this['_suggestionState']['delete'](_0x536322),_0xfcd022;});}return _0x536322;}['_isBlockAttribute'](_0x28c9c7){return this['_blockAttributeKeys']['has'](_0x28c9c7);}['_isInlineAttribute'](_0x520092){return this['_inlineAttributeKeys']['has'](_0x520092);}['_updateSuggestionData'](_0x1927e9,_0x562605){const _0x2c3164=this['editor']['plugins']['get']('PendingActions'),_0x275452=this['getSuggestion'](_0x1927e9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x275452['_saved']){const _0x279bdb=_0x2c3164['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1927e9,_0x562605)['then'](()=>{_0x2c3164['remove'](_0x279bdb);});}else _0x275452['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1927e9,_0x562605);});}}['_getSuggestionData'](_0x72327d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5bd908('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x72327d);}['_handleNewSuggestionMarker'](_0x31c969){const {id:_0x2ed6a5,type:_0x94748e,subType:_0x59383f,authorId:_0x23927e}=this['_splitMarkerName'](_0x31c969),_0x5ad7c5=this['_suggestions']['get'](_0x2ed6a5)||this['_createSuggestion'](_0x94748e,_0x59383f,_0x2ed6a5,_0x23927e,{});switch(this['_checkSuggestionCorrectness'](_0x5ad7c5,_0x94748e,_0x59383f,_0x23927e),this['_suggestionState']['get'](_0x5ad7c5)){case'notReady':this['_getSuggestionData'](_0x2ed6a5)['then'](_0x219ca3=>{let _0x25f2a6=Promise['resolve']();_0x219ca3['hasComments']&&(_0x25f2a6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ed6a5})),_0x25f2a6['then'](()=>{this['addSuggestionData'](_0x219ca3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5ad7c5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ed6a5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5ad7c5,'ready'),this['fire']('suggestionLoaded',_0x5ad7c5);break;case'ready':this['fire']('suggestionChanged',_0x5ad7c5);}return _0x5ad7c5['addMarkerName'](_0x31c969),_0x5ad7c5;}['_refreshSuggestionsChain'](_0x33acfd){const _0x3e9cf5=Array['from'](_0x33acfd),_0x50a47c=_0x3e9cf5['filter'](_0x23d6d8=>'attribute'==_0x23d6d8['type']);this['_refreshAttributeSuggestionsChain'](_0x50a47c);const _0x951ec5=_0x3e9cf5['filter'](_0x5936b4=>!_0x5936b4['isMultiRange']&&'attribute'!=_0x5936b4['type']),_0x3b1b0f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43936f=>!_0x43936f['isMultiRange']&&'attribute'!=_0x43936f['type']),_0x359690=_0x3b1b0f['filter'](_0x3fbb25=>!_0x33acfd['has'](_0x3fbb25)),_0x5c8189=new Map(_0x3b1b0f['map'](_0x3389f8=>[_0x3389f8,this['_suggestionFactory']['getSuggestionCallback'](_0x3389f8['type'],_0x3389f8['subType'],'chain')])),_0x19eadc=new Map(_0x3b1b0f['map'](_0x192b41=>[_0x192b41,_0x192b41['getFirstRange']()])),_0x308cd0=new Set(),_0x1069e6=new Set();for(let _0x9cffd4=0x0;_0x9cffd4<_0x951ec5['length'];_0x9cffd4++)_0x3b8120(_0x951ec5[_0x9cffd4],_0x951ec5,_0x9cffd4+0x1);for(let _0x15e5e6=0x0;_0x15e5e6<_0x951ec5['length'];_0x15e5e6++)_0x3b8120(_0x951ec5[_0x15e5e6],_0x359690,0x0);const _0x464a35=new Set();for(let _0x44280b=0x0;_0x44280b<_0x951ec5['length'];_0x44280b++){const _0x2b16a8=_0x951ec5[_0x44280b];!_0x1069e6['has'](_0x2b16a8)&&_0x2b16a8['previous']&&(_0x464a35['add'](_0x2b16a8['previous']),_0x2b16a8['previous']['next']===_0x2b16a8&&(_0x2b16a8['previous']['next']=null),_0x2b16a8['previous']=null),!_0x308cd0['has'](_0x2b16a8)&&_0x2b16a8['next']&&(_0x464a35['add'](_0x2b16a8['next']),_0x2b16a8['next']['previous']===_0x2b16a8&&(_0x2b16a8['next']['previous']=null),_0x2b16a8['next']=null);}function _0x3b8120(_0x1e8b99,_0x1e3332,_0x2c2823){for(let _0x4e7497=_0x2c2823;_0x4e7497<_0x1e3332['length'];_0x4e7497++){const _0x4ca373=_0x32c939(_0x1e8b99,_0x1e3332[_0x4e7497]);_0x4ca373&&(_0x4ca373[0x0]['next']=_0x4ca373[0x1],_0x4ca373[0x1]['previous']=_0x4ca373[0x0],_0x308cd0['add'](_0x4ca373[0x0]),_0x1069e6['add'](_0x4ca373[0x1]));}}function _0x32c939(_0x461cd0,_0x167bbc){if(_0x461cd0['author']['id']!==_0x167bbc['author']['id'])return null;const _0x3a0cbc=_0x5c8189['get'](_0x461cd0)(_0x461cd0,_0x167bbc,_0x19eadc['get'](_0x461cd0),_0x19eadc['get'](_0x167bbc));if(!_0x3a0cbc)return null;return _0x5c8189['get'](_0x167bbc)(_0x461cd0,_0x167bbc,_0x19eadc['get'](_0x461cd0),_0x19eadc['get'](_0x167bbc))?_0x3a0cbc[0x1]['commentThread']&&_0x3a0cbc[0x1]['commentThread']['length']?null:_0x3a0cbc:null;}_0x464a35['size']&&this['_refreshSuggestionsChain'](_0x464a35);}['_refreshAttributeSuggestionsChain'](_0x2cda96){if(0x0==_0x2cda96['length'])return;const _0x147559=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43267f=>'attribute'==_0x43267f['type']&&_0x43267f['_isDataLoaded']),_0x43fc3e=[],_0x1ab7ce=new Map();for(const _0x3f576a of _0x147559){const _0x10f2ca=_0xb60271(_0x3f576a['attributes']);_0x1ab7ce['has'](_0x10f2ca)||(_0x1ab7ce['set'](_0x10f2ca,_0x43fc3e['length']),_0x43fc3e['push']([]));const _0x4b903=_0x1ab7ce['get'](_0x10f2ca);_0x43fc3e[_0x4b903]['push'](_0x3f576a);}!(function(){_0x43fc3e['sort']((_0x4bd01a,_0x593be0)=>{const _0x3ae481=_0x4bd01a[0x0]['createdAt'],_0x369db5=_0x593be0[0x0]['createdAt'];return _0x3ae481==_0x369db5?_0x4bd01a[0x0]['attributes']['groupId']<_0x593be0[0x0]['attributes']['groupId']?-0x1:0x1:_0x3ae481<_0x369db5?-0x1:0x1;});for(const _0x30165f of _0x43fc3e)_0x30165f['sort']((_0x2479f3,_0x2373cb)=>_0x2479f3['id']<_0x2373cb['id']?-0x1:0x1);}());for(let _0x35b64e=0x0;_0x35b64e<_0x43fc3e['length'];_0x35b64e++){if(0x0==_0x43fc3e[_0x35b64e]['length'])continue;const _0x34febd=[];for(let _0x547683=_0x35b64e+0x1;_0x547683<_0x43fc3e['length'];_0x547683++)0x0!=_0x43fc3e[_0x547683]['length']&&_0x51472f(_0x43fc3e[_0x35b64e],_0x43fc3e[_0x547683])&&_0x34febd['push'](_0x547683);for(const _0xb07450 of _0x34febd)_0x43fc3e[_0x35b64e]=_0x43fc3e[_0x35b64e]['concat'](_0x43fc3e[_0xb07450]),_0x43fc3e[_0xb07450]=[];}for(const _0x16b7dd of _0x43fc3e)for(let _0x1a1d95=0x0;_0x1a1d95<_0x16b7dd['length'];_0x1a1d95++){const _0x4bd58f=_0x16b7dd[_0x1a1d95+0x1]||null;_0x16b7dd[_0x1a1d95]['next']!==_0x4bd58f&&(_0x16b7dd[_0x1a1d95]['next']=_0x4bd58f);}for(const _0x528a0b of _0x43fc3e)for(let _0x28ca4c=0x0;_0x28ca4c<_0x528a0b['length'];_0x28ca4c++){const _0x588b18=_0x528a0b[_0x28ca4c-0x1]||null;_0x528a0b[_0x28ca4c]['previous']!==_0x588b18&&(_0x528a0b[_0x28ca4c]['previous']=_0x588b18);}function _0x51472f(_0x2c1738,_0x35796f){if(_0x2c1738[0x0]['attributes']['groupId']!==_0x35796f[0x0]['attributes']['groupId']&&_0x2c1738[0x0]['author']!==_0x35796f[0x0]['author'])return!0x1;if(!function(_0x308193,_0x459574){if(!_0x308193['hasComments']&&!_0x459574['hasComments'])return!0x0;if(_0x308193['hasComments']&&_0x459574['hasComments'])return!0x1;if(_0x308193['hasComments']&&_0x459574['createdAt']<_0x308193['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x459574['hasComments']&&_0x308193['createdAt']<_0x459574['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c1738[0x0],_0x35796f[0x0]))return!0x1;const _0x2c13a4=Ut(_0x2c1738[0x0]['attributes'],['groupId','trackingSessionId']),_0x4f8352=Ut(_0x35796f[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5d1773(_0x2c13a4,_0x4f8352))return!0x1;if(_0x2c1738[0x0]['attributes']['groupId']==_0x35796f[0x0]['attributes']['groupId'])return!0x0;if(_0x2c1738[0x0]['attributes']['trackingSessionId']!==_0x35796f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2c1738['every'](_0x573dbe=>_0x35796f['some'](_0xd53d5a=>_0x573dbe['getFirstRange']()['isEqual'](_0xd53d5a['getFirstRange']())))&&_0x35796f['every'](_0x3ae4d1=>_0x2c1738['some'](_0x5005f8=>_0x3ae4d1['getFirstRange']()['isEqual'](_0x5005f8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd883c4){const _0x1206a4=Array['from'](_0xd883c4),_0x437550=this['getSuggestions']({'skipNotAttached':!0x0}),_0x26caae=_0x437550['filter'](_0x7f08f9=>!_0xd883c4['has'](_0x7f08f9)),_0x22c0c4=new Map(_0x1206a4['map'](_0x10f445=>[_0x10f445,this['_suggestionFactory']['getSuggestionCallback'](_0x10f445['type'],_0x10f445['subType'],'join')])),_0x264ffa=new Map(_0x437550['map'](_0x4db4bc=>[_0x4db4bc,_0x4db4bc['getRanges']()]));for(let _0x2032d8=0x0;_0x2032d8<_0x1206a4['length'];_0x2032d8++){if(_0x3ba34b(this,_0x1206a4[_0x2032d8],_0x1206a4,_0x2032d8+0x1))return!0x0;}for(let _0x427ede=0x0;_0x427ede<_0x1206a4['length'];_0x427ede++){if(_0x3ba34b(this,_0x1206a4[_0x427ede],_0x26caae,0x0))return!0x0;}return!0x1;function _0x3ba34b(_0x361520,_0x309c61,_0x3bb96f,_0x40c8dd){for(let _0x23a378=_0x40c8dd;_0x23a378<_0x3bb96f['length'];_0x23a378++){const _0x147afd=_0x3bb96f[_0x23a378];if(_0x147afd['type']!==_0x309c61['type']||_0x147afd['author']['id']!==_0x309c61['author']['id']||_0x147afd['subType']!==_0x309c61['subType'])continue;if(!Qt(_0x309c61,_0x147afd))continue;if('attribute'==_0x309c61['type']&&_0x309c61['data']['oldValue']!=_0x147afd['data']['oldValue'])continue;if('attribute'==_0x309c61['type']&&_0x361520['_isBlockAttribute'](_0x309c61['data']['key']))continue;if('formatBlock'==_0x309c61['type']){const _0x3652bb=_0x361520['editor']['model'],_0x50f2e9=_0x309c61['getContainedElement']();if(_0x50f2e9&&(_0x3652bb['schema']['isObject'](_0x50f2e9)||_0x3652bb['schema']['isLimit'](_0x50f2e9)))continue;}const _0x23fa8b=_0x22c0c4['get'](_0x309c61),_0x4d0035=_0x264ffa['get'](_0x309c61),_0x29909b=_0x264ffa['get'](_0x147afd),_0x3d1da8=_0x309c61['commentThread']&&_0x309c61['commentThread']['length'],_0x43eaa9=_0x147afd['commentThread']&&_0x147afd['commentThread']['length'];if(!_0x3d1da8&&_0x23fa8b(_0x29909b,_0x4d0035))return _0x361520['_joinSuggestions'](_0x147afd,_0x309c61),_0x264ffa['delete'](_0x309c61),!0x0;if(!_0x43eaa9&&_0x23fa8b(_0x4d0035,_0x29909b))return _0x361520['_joinSuggestions'](_0x309c61,_0x147afd),_0x264ffa['delete'](_0x147afd),!0x0;}return!0x1;}}['_joinSuggestions'](_0x459831,_0x308c65){if(_0x459831['isMultiRange']){for(const _0x322fed of _0x308c65['getRanges']())_0x459831['addRange'](_0x322fed);}else{const _0x1258fb=_0x308c65['getFirstRange']()['end'];this['_setSuggestionRange'](_0x459831,this['_model']['createRange'](_0x459831['getFirstRange']()['start'],_0x1258fb));}_0x308c65['removeMarkers']();}['_getMarkerAnnouncementText'](_0xec6934,_0x375e66,_0x527b04){const _0x168da0=_0xec6934['startsWith']('format')||_0xec6934['startsWith']('attribute')?'FORMATTING':_0xec6934['toUpperCase']();return o(this['editor']['locale'],_0x375e66+'_'+_0x168da0+'_SUGGESTION_ANNOUNCEMENT',_0x527b04);}['_initAriaMarkerChangeAnnouncements'](){const _0x224d34=this['editor'];if(!_0x224d34['ui'])return;const {ariaLiveAnnouncer:_0x272161}=_0x224d34['ui'];_0x4ed188(this['_model'],({left:_0x3d2552,entered:_0x2bf01a})=>{for(const _0x23f0ae of _0x3d2552){const {group:_0x3a20fa,type:_0x86f121}=this['_splitMarkerName'](_0x23f0ae['name']);if('suggestion'===_0x3a20fa){_0x272161['announce'](this['_getMarkerAnnouncementText'](_0x86f121,'LEAVE'));break;}}for(const _0xb0ebe8 of _0x2bf01a){const {group:_0x4c418b,type:_0x413329}=this['_splitMarkerName'](_0xb0ebe8['name']);if('suggestion'===_0x4c418b){_0x272161['announce'](this['_getMarkerAnnouncementText'](_0x413329,'ENTER',_0x49428f(_0xd7c23c)));break;}}});}['_processAttributeChanges'](_0xe1854){if(this['_recordAttributeSuggestions'])return!0x1;const _0x521c63=this['editor'],_0x4a026d=_0x521c63['model']['document']['differ']['getChanges']();if(0x0==_0x4a026d['length'])return!0x1;const _0x51ab07=[],_0x3ede58=_0x4a026d['filter'](_0x2cd7b1=>'attribute'==_0x2cd7b1['type']),_0x209759=_0x4a026d['filter'](_0x5e816e=>'insert'==_0x5e816e['type']&&'$text'!=_0x5e816e['name']),_0x421e2a=_0x4a026d['filter'](_0x40f0b0=>'remove'==_0x40f0b0['type']&&'$text'!=_0x40f0b0['name']);for(const _0x4036c0 of _0x3ede58)_0x51ab07['push']({'key':_0x4036c0['attributeKey'],'newValue':_0x4036c0['attributeNewValue'],'oldValue':_0x4036c0['attributeOldValue'],'range':qt(_0x4036c0['range'],_0x521c63['model'])});for(const _0x4433c7 of _0x209759){const _0x26832b=_0x421e2a['find'](_0x2eef20=>_0x2eef20['position']['isEqual'](_0x4433c7['position']));_0x26832b&&_0x51ab07['push']({'key':m,'newValue':_0x4433c7['name'],'oldValue':_0x26832b['name'],'range':_0x521c63['model']['createRangeOn'](_0x4433c7['position']['nodeAfter'])});}return 0x0!=_0x51ab07['length']&&this['_reduceExistingSuggestions'](_0xe1854,_0x51ab07);}['_processAttributeSuggestions'](_0x21c01d){let _0x59ad90=!0x1;const _0x31cf38=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38437d=>_0x38437d['data']['newRange']&&_0x38437d['name']['startsWith']('suggestion:attribute:'));for(const _0xbdd292 of _0x31cf38){const {subType:_0x9c9c02,id:_0x3e176a}=this['_splitMarkerName'](_0xbdd292['name']),_0x55bc06=_0x9c9c02['split']('|')[0x0];for(const _0x27a182 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27a182['id']!=_0x3e176a&&'attribute'==_0x27a182['type']&&_0x27a182['data']&&_0x27a182['data']['key']==_0x55bc06&&_0x27a182['getFirstRange']()['isIntersecting'](_0xbdd292['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27a182,_0xbdd292['data']['newRange'],_0x21c01d),_0x59ad90=!0x0);}return _0x59ad90;}['recordAttributeChanges'](_0x35fdf3){this['_recordAttributeSuggestions']=!0x0,_0x35fdf3();}['_isRegisteredAttribute'](_0x41981e){const _0x16f4c1=this['_isBlockAttribute'](_0x41981e),_0x21d2a5=this['_isInlineAttribute'](_0x41981e);return _0x16f4c1||_0x21d2a5;}['_reduceExistingSuggestions'](_0x185a78,_0x1adb2a){if(0x0==_0x1adb2a['length'])return!0x1;let _0x341a3e=!0x1;for(const _0x272641 of _0x1adb2a){const _0x51d36c=this['_findSuggestions'](_0x272641['range'],'attribute')['filter'](_0x30614d=>!_0x30614d['meta']['isNextTo'])['map'](_0x319bb9=>_0x319bb9['suggestion']),_0x243502=_0xb60271({'newValue':_0x272641['newValue']});_0x51d36c['filter'](_0x2865fd=>{const [_0x507369,_0x35b8c6]=_0x2865fd['subType']['split']('|');return _0x507369==_0x272641['key']&&_0x35b8c6!=_0x243502;})['forEach'](_0x18f8de=>{this['_reduceSuggestionAttributeRange'](_0x18f8de,_0x272641['range'],_0x185a78),_0x341a3e=!0x0;});}return _0x341a3e;}['_reduceSuggestionAttributeRange'](_0x210426,_0x27cf14,_0x42a9db){const _0x59a159=_0x210426['getFirstRange']()['getDifference'](_0x27cf14);0x0!==_0x59a159['length']?0x1!==_0x59a159['length']?this['_breakSuggestionMarker'](_0x210426,_0x27cf14['start'],_0x27cf14['end']):this['_setSuggestionRange'](_0x210426,_0x59a159[0x0]):_0x42a9db['removeMarker'](_0x210426['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5e2d10){this['_editor']=_0x5e2d10,this['_model']=_0x5e2d10['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x6e9bc7,_0x55b79b,_0x50a93b,_0x1c72b2,_0x4a7337,_0x44ee5f,_0x481bb4){return new T(this['_model'],{'type':_0x6e9bc7,'subType':_0x55b79b,'id':_0x50a93b,'originalSuggestionId':_0x481bb4,'author':_0x1c72b2,'creator':_0x1c72b2,'attributes':_0x4a7337,'onAttributesChange':_0x44ee5f,'onAccept':(..._0x1e5163)=>this['getSuggestionCallback'](_0x6e9bc7,_0x55b79b,'accept')(..._0x1e5163),'onDiscard':(..._0x3aee07)=>this['getSuggestionCallback'](_0x6e9bc7,_0x55b79b,'discard')(..._0x3aee07)});}['registerCustomCallback'](_0x4e82b3,_0x494e03,_0x522c7f,_0x31ca6d){const _0x1b78af=_0x4e82b3+':'+_0x494e03+':'+_0x522c7f;this['_customCallbacks']['set'](_0x1b78af,_0x31ca6d);}['getSuggestionCallback'](_0x324a14,_0x459c1f,_0x321e36){const _0x12a8b6=_0x324a14+':'+_0x459c1f+':'+_0x321e36;return this['_customCallbacks']['get'](_0x12a8b6)||this['_defaultCallbacks']['get'](_0x324a14+':'+_0x321e36);}['_registerDefaultCallbacks'](){const _0x249aa1=()=>!0x1,_0x4dbbd=_0x26183f=>{_0x26183f['sort']((_0x51d67a,_0xaa697a)=>_0x51d67a['start']['isBefore'](_0xaa697a['start'])?0x1:-0x1),this['_model']['change'](_0x137848=>{for(const _0xb17897 of _0x26183f){let _0xd216f0;_0xd216f0=_0xb17897['end']['isAtEnd']&&_0xb17897['end']['parent']==_0xb17897['start']['nodeAfter']?_0x137848['createSelection'](_0xb17897['start']['nodeAfter'],'on'):_0x137848['createSelection'](_0xb17897),this['_model']['deleteContent'](_0xd216f0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x48a9b6=(_0x44ee80,_0xa29f44)=>{_0xa29f44&&this['_model']['change'](_0x2716e9=>{const {commandName:_0x47848b,commandParams:_0x3c2816=[]}=_0xa29f44,_0x2bd749=_0x44ee80['map'](_0x58d850=>(Pt(_0x58d850)&&(_0x58d850=this['_model']['createRange'](_0x58d850['end'])),_0x58d850))['filter'](_0x2f70ca=>'$graveyard'!==_0x2f70ca['root']['rootName']);if(_0x2bd749['length']<0x1)return;const _0x2865da=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3939a2=>_0x19bc7a['fromRange'](_0x3939a2));_0x2716e9['setSelection'](_0x2bd749);for(const _0x2c1bf8 of this['_editor']['commands']['commands']())_0x2c1bf8['refresh']();_0x3c2816['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x47848b,..._0x3c2816);const _0x596868=_0x2865da['filter'](_0x4a622e=>'$graveyard'!=_0x4a622e['root']['rootName']);_0x596868['length']>0x0&&_0x2716e9['setSelection'](_0x596868);for(const _0x442281 of _0x2865da)_0x442281['detach']();});},_0x4c3472=(_0x4872e5,_0x15532b)=>0x1==_0x4872e5['length']&&0x1==_0x15532b['length']&&_0x4872e5[0x0]['end']['isEqual'](_0x15532b[0x0]['start']),_0x23c141=(_0x3c1468,_0x5814cc,_0x4d8c55,_0x42baf1)=>Wt(_0x3c1468,_0x5814cc,_0x4d8c55,_0x42baf1)?[_0x3c1468,_0x5814cc]:Wt(_0x5814cc,_0x3c1468,_0x42baf1,_0x4d8c55)?[_0x5814cc,_0x3c1468]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x249aa1),this['_defaultCallbacks']['set']('insertion:discard',_0x4dbbd),this['_defaultCallbacks']['set']('insertion:join',_0x4c3472),this['_defaultCallbacks']['set']('insertion:chain',_0x23c141),this['_defaultCallbacks']['set']('deletion:accept',_0x4dbbd),this['_defaultCallbacks']['set']('deletion:discard',_0x249aa1),this['_defaultCallbacks']['set']('deletion:join',_0x4c3472),this['_defaultCallbacks']['set']('deletion:chain',_0x23c141),this['_defaultCallbacks']['set']('formatInline:accept',_0x48a9b6),this['_defaultCallbacks']['set']('formatInline:discard',_0x249aa1),this['_defaultCallbacks']['set']('formatInline:join',_0x4c3472),this['_defaultCallbacks']['set']('formatInline:chain',_0x249aa1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x48a9b6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x249aa1),this['_defaultCallbacks']['set']('formatBlock:join',_0x4c3472),this['_defaultCallbacks']['set']('formatBlock:chain',_0x249aa1),this['_defaultCallbacks']['set']('attribute:accept',_0x249aa1),this['_defaultCallbacks']['set']('attribute:discard',(_0x4cab79,_0x102c37)=>{if(!_0x102c37)return;const _0x1d3e50=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x52fad2=>{if(_0x102c37['key']==m)for(const _0x2ac103 of _0x4cab79){const _0xd1f5f8=_0x2ac103['start']['nodeAfter'],_0x4cedd4=_0x102c37['oldValue'];_0x52fad2['rename'](_0xd1f5f8,_0x4cedd4);}else{if(_0x1d3e50['_isBlockAttribute'](_0x102c37['key'])){for(const _0x51085c of _0x4cab79)void 0x0!==_0x102c37['oldValue']?_0x52fad2['setAttribute'](_0x102c37['key'],_0x102c37['oldValue'],_0x51085c['start']['nodeAfter']):_0x52fad2['removeAttribute'](_0x102c37['key'],_0x51085c['start']['nodeAfter']);}else{for(const _0x38b1bc of _0x4cab79)_0x102c37['oldValue']?_0x52fad2['setAttribute'](_0x102c37['key'],_0x102c37['oldValue'],_0x38b1bc):_0x52fad2['removeAttribute'](_0x102c37['key'],_0x38b1bc);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4c3472);}}function Ft(_0x2ba601,_0x5a37d5,_0x50bfdc){for(const _0x1f466d of _0x5a37d5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1f466d['root']==_0x1f466d)return!0x1;if(!_0x50bfdc['containsItem'](_0x1f466d))return!0x1;if(_0x2ba601['isObject'](_0x1f466d)||_0x2ba601['isLimit'](_0x1f466d))return!0x0;}return!0x1;}function Pt(_0x439679){return _0x439679['end']['parent']==_0x439679['start']['nodeAfter']&&_0x439679['end']['isAtStart'];}function Gt(_0x15f307,_0x7a6780,_0x140bfd,_0x1d4dfa){const _0x1ada95=_0x3400e4=>!_0x3400e4['item']['is']('$textProxy')&&!_0x1d4dfa['isObject'](_0x3400e4['item']),_0x4116df=_0x15f307['start']['getLastMatchingPosition'](_0x1ada95),_0xadb3c1=_0x15f307['end']['getLastMatchingPosition'](_0x1ada95,{'direction':'backward'});return(!_0x15f307['start']['isEqual'](_0x4116df)||!_0x15f307['end']['isEqual'](_0xadb3c1))&&(_0x4116df['isBefore'](_0xadb3c1)?_0x140bfd['updateMarker'](_0x7a6780,{'range':_0x140bfd['createRange'](_0x4116df,_0xadb3c1)}):_0x140bfd['removeMarker'](_0x7a6780),!0x0);}function Lt(_0x4e2d74){return _0xb60271(_0x4e2d74);}function Jt(_0x4fe0ad){const _0x1225cc=_0x4fe0ad['start']['nodeAfter'];return _0x1225cc&&_0x1225cc['is']('element');}function Kt(_0x20923c){return Pt(_0x20923c)||function(_0x212aca){return _0x212aca['start']['parent']==_0x212aca['end']['nodeBefore']&&_0x212aca['start']['isAtEnd'];}(_0x20923c);}function Ht(_0x4a04b2,_0x99742){try{const _0x5382ba=_0x4a04b2['getRange']();for(const _0x53f446 of _0x99742)if(_0x4a04b2!==_0x53f446&&_0x5382ba&&_0x5382ba['isIntersecting'](_0x53f446['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0xfc7daf,_0x4bbb9e){return null==_0xfc7daf['end']['nodeBefore']&&_0xfc7daf['end']['parent']==_0xfc7daf['start']['nodeAfter']?zt(_0xfc7daf['start']['nodeAfter'],_0x4bbb9e):_0xfc7daf;}function zt(_0xc77b5b,_0xd23f85){const _0x16fdca=_0xd23f85['schema']['isObject'](_0xc77b5b)||_0xd23f85['schema']['isSelectable'](_0xc77b5b);return _0xd23f85['createRange'](_0xd23f85['createPositionAt'](_0xc77b5b,'before'),_0x16fdca?_0xd23f85['createPositionAfter'](_0xc77b5b):_0xd23f85['createPositionAt'](_0xc77b5b,'end'));}function Wt(_0x154754,_0x570819,_0x3e7cf2,_0x5cab48){return!!Qt(_0x154754,_0x570819)&&_0x3e7cf2['end']['isEqual'](_0x5cab48['start']);}function Qt(_0x4551ad,_0xb26cb9){if(!_0x4551ad['_isDataLoaded']||!_0xb26cb9['_isDataLoaded'])return!0x1;const _0x431754=new Set(Object['keys'](_0x4551ad['attributes'])),_0x143346=new Set(Object['keys'](_0xb26cb9['attributes']));if(_0x431754['delete']('groupId'),_0x143346['delete']('groupId'),0x0==_0x431754['size']&&0x0==_0x143346['size'])return!0x0;if(_0x431754['size']!=_0x143346['size'])return!0x1;const _0x599332={..._0x4551ad['attributes']},_0x1b3c91={..._0xb26cb9['attributes']};return delete _0x599332['groupId'],delete _0x1b3c91['groupId'],JSON['stringify'](_0x599332)==JSON['stringify'](_0x1b3c91);}function Xt(_0x3511f0,_0x1ec83f){const _0x3e7b1c=Yt(_0x3511f0['attributes']),_0x5be02d=Yt(_0x1ec83f);if(!_0x3511f0['_isDataLoaded'])return!0x1;for(const _0x14c911 of Object['keys'](_0x5be02d))if(!_0x5d1773(_0x3e7b1c[_0x14c911],_0x5be02d[_0x14c911]))return!0x1;return!0x0;}function Yt(_0x4bfad4){const _0x563e31=Object['assign']({},_0x4bfad4);return delete _0x563e31['skipNestingCheck'],delete _0x563e31['tablePasteChainId'],_0x563e31;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x4cf6df(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x39e32b,_0xae0a3b,_0x10da72,_0x1fe3bf){super(),this['model']=_0xae0a3b,this['view']=_0x10da72,this['commentThreadController']=_0x1fe3bf,this['_editor']=_0x39e32b,this['_acceptCommand']=_0x39e32b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x39e32b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3e247b,_0xe8dc32)=>_0x3e247b||_0xe8dc32),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x39de01=>_0x39de01&&this['_editor']['model']['canEditAt'](_0xae0a3b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x440cac=>_0x440cac&&this['_editor']['model']['canEditAt'](_0xae0a3b['getRanges']())),this['_pendingAction']=null,_0x10da72['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x10da72,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x10da72,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x10da72,'change:isDirty',()=>{_0x10da72['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 _0xd34ed2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xd34ed2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x101a27{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x576c84,_0x1a0ef3,_0x1cf6e5,_0x256ddb){super(_0x576c84),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x288db4(_0x576c84,o(_0x576c84,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1a0ef3['authoredAt']),this['bind']('authoredAt')['to'](_0x1a0ef3),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',_0x1a0ef3,'authoredAt',this,'descriptionParts',(_0x5e6cf2,_0x3387e8,_0x4690ca)=>{const _0x377328=_0x4690ca['map'](_0xdb6cfe=>ls(_0xdb6cfe['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5e6cf2-0x1,_0x1a0ef3['author']['name'],_0x3387e8?_0x256ddb['formatDateTime'](_0x3387e8):'',new DOMParser()['parseFromString'](_0x377328,'text/html')['body']['textContent']]);}),this['focusables']=new _0x6d6ac6(),this['focusTracker']=new _0x46abc4(),this['keystrokes']=new _0x5257ab(),this['focusCycler']=new _0x5f5825({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4fec6d=>_0x4fec6d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1a0ef3,this['_localUser']=_0x1cf6e5,this['_config']=_0x256ddb,_0x256ddb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4db9df(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3e7017}=this['_config'];this['commentsListView']=new _0x3e7017(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',_0x18db98=>_0x18db98+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x497ad8,_0x35d24e)=>_0x497ad8||!!_0x35d24e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x24de7d}=this['_config'],_0x19ff08=new _0x24de7d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2be539=_0x19ff08['commentInputView'];return _0x19ff08['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2be539,'value',(_0x254a14,_0x310243,_0x18d5c9)=>!!_0x18d5c9||_0x254a14&&!_0x310243),_0x2be539['on']('submit',(_0x31824e,_0xa66028)=>{this['fire']('addComment',_0xa66028),_0x2be539['editor']['setData']('');}),_0x2be539['on']('cancel',()=>this['focus']()),_0x2be539['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x19ff08;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x24adc2,_0x27d433,_0x10ec0d,_0x195ec8){super(_0x24adc2,_0x27d433,_0x10ec0d,_0x195ec8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x545093=>_0x545093&&_0x545093[0x0]?_0x545093[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe09ddb,_0x245346)=>{let _0x11c5cc='';for(const _0x23189a of _0xe09ddb)_0x11c5cc+='<p>'+ls(_0x23189a['content'],_0x23189a['color'])+'</p>';return _0x245346?_0x11c5cc:_0xd5a90c(_0x11c5cc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x195ec8['SuggestionView'](_0x24adc2,_0x27d433,{'formatDateTime':_0x195ec8['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 _0x3b703f=this['bindTemplate'],_0x3abc97=[this['suggestionView']];return this['commentsListView']&&_0x3abc97['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3abc97['push'](this['commentThreadInputView']),_0x3abc97['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3b703f['if']('isActive','ck-suggestion-wrapper--active'),_0x3b703f['to']('type',_0x41519f=>'ck-suggestion-'+_0x41519f),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':_0x3b703f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3abc97};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x101a27{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x54aeb3,_0x59e45a,_0x2bcef2){super(_0x54aeb3),this['_model']=_0x59e45a,this['_config']=_0x2bcef2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x59e45a),this['acceptButton']=this['_createButton'](o(_0x54aeb3,'Accept\x20suggestion'),_0x511cd1,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x54aeb3,'Discard\x20suggestion'),_0x1a7a3e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x515c0b(_0x54aeb3,_0x59e45a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x6d6ac6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x46abc4(),this['keystrokes']=new _0x5257ab(),this['focusCycler']=new _0x5f5825({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x53a3bf=>_0x53a3bf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x58defa=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x58defa['innerHTML']=this['description'],this['on']('change:description',(_0x35c92a,_0x584473,_0x3baaec)=>{_0x58defa['innerHTML']=_0x3baaec;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x450cf2=this['bindTemplate'],_0x23d00d=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x450cf2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x450cf2['to']('authoredAt',_0x3f80f8=>this['_config']['formatDateTime'](_0x3f80f8))}]}]},{'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']&&_0x23d00d['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':_0x23d00d}]};}['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'](_0x16d3ee,_0x4fb501,_0x1dcc42,_0x147e54,_0x233447){const _0x4346d7=new _0x501d37(this['locale']);return _0x4346d7['set']({'label':_0x16d3ee,'icon':_0x4fb501,'tooltip':!0x0,'tooltipPosition':_0x233447}),_0x4346d7['extendTemplate']({'attributes':{'class':_0x1dcc42}}),_0x4346d7['on']('execute',()=>{this['fire'](_0x147e54,this['_model']['id']);}),_0x4346d7;}['_setupKeyboardNavigation'](){const _0x13fe5e=this['element'];this['keystrokes']['listenTo'](_0x13fe5e);for(const _0xa727b6 of this['focusables'])this['focusTracker']['add'](_0xa727b6['element']),this['keystrokes']['listenTo'](_0xa727b6['element']);this['keystrokes']['set']('enter',(_0x33f793,_0x19f834)=>{_0x13fe5e===_0x33f793['target']&&(this['focusCycler']['focusFirst'](),_0x19f834());}),this['keystrokes']['set']('esc',(_0x3d2a56,_0xc76687)=>{_0x13fe5e!==_0x3d2a56['target']&&(this['focus'](),_0xc76687());});}}class u extends _0x6410a9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x352761,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b31eb){super(_0x4b31eb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5cde1f=this['editor']['config'];_0x5cde1f['define']('trackChanges.SuggestionThreadView',fe),_0x5cde1f['define']('trackChanges.SuggestionView',we),_0x5cde1f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5cde1f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2454fd,_0x41d6cb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x119258,_0x35d008]of this['_handleControllerBuffer']){const _0x21fce5=this['_suggestionToController']['has'](_0x119258);_0x21fce5||_0x35d008?_0x21fce5&&_0x35d008&&this['_destroyController'](_0x119258):this['_initializeController'](_0x119258);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2454fd,_0x41d6cb);}['init'](){const _0x536fd3=this['editor'],_0x4b1ae8=_0x536fd3['plugins']['get']('TrackChangesEditing'),_0x49ccb9=_0x536fd3['plugins']['get']('Annotations'),_0x716fc=_0x536fd3['plugins']['get']('EditorAnnotations'),_0x37736c=_0x536fd3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x716fc['addSourceCollector'](()=>{const _0x114dba=[];for(const [_0x5cb169,_0x30dc92]of Array['from'](this['_suggestionToController'])){const _0x50f772=_0x5cb169['getAllAdjacentSuggestions'](),_0x19d98e=[];for(const _0x5a9415 of _0x50f772){if(!_0x5a9415['isInContent'])continue;if(_0x5a9415['isMultiRange']){_0x19d98e['push'](..._0x5a9415['getRanges']());continue;}const _0x35d9ce=_0x5a9415['getFirstRange']();if(_0x19d98e['length']>0x0){const _0x4eff13=_0x19d98e[0x0]['getJoined'](_0x35d9ce);if(_0x4eff13){_0x19d98e[0x0]=_0x4eff13;continue;}}_0x19d98e['push'](_0x35d9ce);}_0x114dba['push']([_0x30dc92['view'],_0x19d98e]);}return _0x114dba;}),this['listenTo'](_0x4b1ae8,'suggestionLoaded',(_0x1fade6,_0x4b6758)=>{this['listenTo'](_0x4b6758,'change:previous',(_0xe459cf,_0x5b6805,_0x3e8aef,_0x58f7aa)=>{_0x4b6758['isInContent']&&(null==_0x3e8aef?(this['_updateController'](_0x58f7aa['head']),this['_handleSuggestionControllerDelayed'](_0x4b6758,!0x1)):(this['_updateController'](_0x3e8aef['head']),null==_0x58f7aa&&this['_handleSuggestionControllerDelayed'](_0x4b6758,!0x0)));}),null!==_0x4b6758['previous']?this['_updateController'](_0x4b6758['head']):this['_handleSuggestionControllerDelayed'](_0x4b6758,!0x1);}),this['listenTo'](_0x4b1ae8,'suggestionUnloaded',(_0x329266,_0x1957de,_0x482fe9)=>{this['stopListening'](_0x1957de,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1957de),this['_suggestionToController']['has'](_0x1957de)&&this['_destroyController'](_0x1957de),_0x482fe9&&this['_updateController'](_0x482fe9['head']);}),this['listenTo'](_0x4b1ae8,'suggestionChanged',(_0x46441b,_0x5d4971)=>{this['_updateController'](_0x5d4971);}),this['listenTo'](_0x49ccb9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x37736c,'addComment',(_0x1e8778,{threadId:_0x5c766b,isFromAdapter:_0x294937})=>{if(_0x294937||!_0x4b1ae8['hasSuggestion'](_0x5c766b))return;const _0x1ee2d9=_0x4b1ae8['getSuggestion'](_0x5c766b);this['_suggestionToController']['get'](_0x1ee2d9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44747f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd1c6d0;for(const _0x2a3e8c in _0x44747f){const _0x42ab21=_0x2a3e8c,_0x3ddeea=_0x44747f[_0x42ab21];if('trackChangesLicenseKeyValid'==_0x3ddeea||'trackChangesLicenseKeyInvalid'==_0x3ddeea||'trackChangesLicenseKeyExpired'==_0x3ddeea||'trackChangesLicenseKeyDomainLimit'==_0x3ddeea||'trackChangesLicenseKeyNotAllowed'==_0x3ddeea||'trackChangesLicenseKeyEvaluationLimit'==_0x3ddeea||'trackChangesLicenseKeyTrialLimit'==_0x3ddeea||'trackChangesLicenseKeyUsageLimit'==_0x3ddeea){delete _0x44747f[_0x42ab21],_0xd1c6d0=_0x3ddeea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xd1c6d0&&_0x44747f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xd1c6d0&&_0x44747f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xd1c6d0&&_0x44747f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xd1c6d0&&_0x44747f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xd1c6d0&&_0x44747f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xd1c6d0&&_0x44747f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xd1c6d0&&_0x44747f['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3d0c74){const _0xbd22ee=this['_suggestionToController']['get'](_0x3d0c74);if(!_0xbd22ee)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xbd22ee['view'])||null;}['getSuggestionForAnnotation'](_0x48bd77){const _0x192048=this['_viewToController']['get'](_0x48bd77['innerView']);return _0x192048?_0x192048['model']:null;}['_refreshActiveMarkers'](){const _0x503bae=this['editor']['plugins']['get']('Annotations'),_0x4afad8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x414969=Array['from'](_0x503bae['activeAnnotations'],_0x1d21b8=>_0x1d21b8['innerView'])['filter'](_0x255b38=>this['_viewToController']['has'](_0x255b38)),_0x4b59bc=[];for(const _0x1b533d of _0x414969){const _0x562b04=this['_viewToController']['get'](_0x1b533d)['model']['getAllAdjacentSuggestions']();_0x4b59bc['push'](..._0x562b04['reduce']((_0x516fc4,_0xa6c1ac)=>[..._0x516fc4,..._0xa6c1ac['getMarkerNames']()],[]));}_0x4afad8['activeMarkers']=_0x4b59bc;}['_addUIComponentsToFactory'](){const _0x508a48=this['editor'],_0x2847fe=_0x508a48['locale'],_0x55a6da=o(_0x2847fe,'Track\x20changes'),_0x51adc3=new _0x190c66([{'type':'switchbutton','model':new _0x1f6a86({'withText':!0x0,'isToggleable':!0x0,'label':_0x55a6da,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1f6a86({'withText':!0x0,'label':o(_0x2847fe,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f6a86({'withText':!0x0,'label':o(_0x2847fe,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f6a86({'withText':!0x0,'label':o(_0x2847fe,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f6a86({'withText':!0x0,'label':o(_0x2847fe,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x508a48['plugins']['has']('TrackChangesPreview')&&_0x51adc3['addMany']([{'type':'separator'},{'type':'button','model':new _0x1f6a86({'withText':!0x0,'label':o(_0x2847fe,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5d27f2 of _0x51adc3)if(ke(_0x5d27f2)){const _0x36567a=_0x508a48['commands']['get'](_0x5d27f2['model']['commandName']);_0x5d27f2['model']['bind']('isOn','isEnabled')['to'](_0x36567a,'value','isEnabled');}_0x508a48['ui']['componentFactory']['add']('trackChanges',_0x176bb6=>this['_createToolbarButton'](_0x176bb6,_0x51adc3,_0x55a6da)),_0x508a48['ui']['componentFactory']['add']('menuBar:trackChanges',_0x42d285=>this['_createMenuBarMenu'](_0x42d285,_0x51adc3,_0x55a6da));}['_createToolbarButton'](_0x328a73,_0x24ba83,_0x525d9f){const _0x5b9071=_0x5508f7(_0x328a73,_0x598cc8),_0x20fae5=this['editor']['commands']['get']('trackChanges');_0x5b9071['buttonView']['set']({'tooltip':_0x525d9f,'label':_0x525d9f,'icon':_0x47257d}),_0x5b9071['buttonView']['bind']('isOn')['to'](_0x20fae5,'value'),_0x5b9071['buttonView']['on']('execute',()=>{_0x20fae5['execute'](),this['editor']['editing']['view']['focus']();}),_0x27d0d3(_0x5b9071,_0x24ba83,{'role':'menu'});const _0xe5b5ef=[];for(const _0x5298a7 of _0x24ba83)ke(_0x5298a7)&&_0xe5b5ef['push'](this['editor']['commands']['get'](_0x5298a7['model']['commandName']));const _0x3060fa=_0x5b9071['buttonView'];return _0x3060fa['actionView']['unbind']('isEnabled'),_0x3060fa['arrowView']['unbind']('isEnabled'),_0x3060fa['actionView']['bind']('isEnabled')['to'](_0x20fae5,'isEnabled'),_0x3060fa['arrowView']['bind']('isEnabled')['toMany'](_0xe5b5ef,'isEnabled',(..._0x4b6864)=>_0x4b6864['some'](_0x5cd549=>_0x5cd549)),_0x5b9071['on']('execute',_0x55fcb6=>{this['editor']['execute'](_0x55fcb6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5b9071;}['_createMenuBarMenu'](_0xe24da,_0xe0b355,_0x1d6eed){const _0x1f6a55=new _0x40b406(_0xe24da),_0x37b6ef=this['editor']['commands']['get']('trackChanges');_0x1f6a55['buttonView']['set']({'label':_0x1d6eed,'icon':_0x47257d});const _0x540ade=new _0x24f4be(_0xe24da);for(const _0x267e9f of _0xe0b355){if('separator'==_0x267e9f['type']){_0x540ade['items']['add'](new _0x58dfca(_0xe24da));continue;}const _0x463bce=new _0x1336b2(_0xe24da,_0x1f6a55),_0x28d43d=new _0x59d546(_0xe24da),_0x312c21=_0x267e9f['model'];_0x28d43d['bind'](...Object['keys'](_0x312c21))['to'](_0x312c21),_0x28d43d['delegate']('execute')['to'](_0x1f6a55),_0x28d43d['on']('execute',()=>{this['editor']['execute'](_0x312c21['commandName']),this['editor']['editing']['view']['focus']();}),_0x463bce['children']['add'](_0x28d43d),_0x540ade['items']['add'](_0x463bce);}return _0x1f6a55['bind']('isEnabled')['to'](_0x37b6ef,'isEnabled'),_0x1f6a55['panelView']['children']['add'](_0x540ade),_0x1f6a55;}['_initializeController'](_0x5d9394){const _0x384e23=this['editor'],_0x2e49d1=_0x384e23['config'],_0x185316=_0x384e23['plugins']['get']('Annotations'),_0x47933e=_0x384e23['plugins']['get']('CommentsRepository'),_0x50233e=_0x384e23['plugins']['get']('EditorAnnotations'),_0x35abd6=_0x384e23['plugins']['get'](_0x352761)['me'],_0x28e5c5=_0x2e49d1['get']('trackChanges')['SuggestionThreadView'],_0x2d818e=_0x2e49d1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1f9aae,CommentThreadInputView:_0x3aea1a}=_0x384e23['plugins']['get']('CommentsUI');let _0x35b022,_0x326b59,_0x554c25;this['_annotationViews']['has'](_0x5d9394['id'])?(_0x326b59=this['_annotationViews']['get'](_0x5d9394['id']),_0x35b022=_0x326b59['mainView']):(_0x35b022=new _0x28e5c5(_0x384e23['locale'],_0x5d9394,_0x35abd6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2e49d1['get']('comments.editorConfig'),'licenseKey':_0x2e49d1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2e49d1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2e49d1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2e49d1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x23c54e(_0x2e49d1['get']('locale'),_0x384e23['locale']),'CommentView':_0x2e49d1['get']('comments')['CommentView'],'CommentsListView':_0x1f9aae,'CommentThreadInputView':_0x3aea1a,'SuggestionView':_0x2d818e}),_0x35b022['suggestionView']['acceptButton']['on']('execute',()=>{_0x384e23['editing']['view']['focus']();}),_0x35b022['suggestionView']['discardButton']['on']('execute',()=>{_0x384e23['editing']['view']['focus']();}),_0x326b59=_0x185316['createAnnotationView'](this['editor']['locale'],_0x35b022),_0x326b59['bind']('isDirty')['to'](_0x35b022,'isDirty'),_0x326b59['bind']('length')['to'](_0x35b022),_0x326b59['bind']('type')['to'](_0x35b022,'type',_0xafb05f=>'suggestion-'+_0xafb05f),_0x35b022['on']('escape',()=>{_0x554c25['fire']('escape');}),this['_annotationViews']['set'](_0x5d9394['id'],_0x326b59));const _0x94ff24=_0x47933e['createCommentThreadController'](_0x5d9394['commentThread'],_0x35b022),_0x5e47d2=new pe(_0x384e23,_0x5d9394,_0x35b022,_0x94ff24),_0x184725=_0x5d9394['getAllAdjacentSuggestions']()['filter'](_0x89cb85=>_0x89cb85['isInContent']);_0x35b022['descriptionParts']=_0x384e23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x184725),this['_suggestionToController']['set'](_0x5d9394,_0x5e47d2),this['_viewToController']['set'](_0x35b022,_0x5e47d2);const _0x3efb8b=()=>{const _0x3e381c=[],_0x426eda=_0x5d9394['getAllAdjacentSuggestions']()['filter'](_0x3e3763=>_0x3e3763['isInContent']);for(const _0x4f8cb9 of _0x426eda)_0x3e381c['push'](..._0x4f8cb9['getMarkers']());return _0x49d567(_0x384e23['editing'],_0x3e381c);};_0x554c25=_0x185316['createAnnotation']({'view':_0x326b59,'target':_0x3efb8b,'type':()=>'suggestion-'+_0x5e47d2['view']['type'],'isVisible':!!_0x3efb8b()}),_0x47933e['_bindAnnotationToEditors'](_0x35b022,_0x554c25),_0x185316['add'](_0x554c25),_0x50233e['registerAnnotation'](_0x554c25);}['_destroyController'](_0x430663){const _0x2a8b09=this['editor']['plugins']['get']('CommentsRepository'),_0x554965=this['editor']['plugins']['get']('Annotations'),_0x27df9d=this['_suggestionToController']['get'](_0x430663),_0x2a60b7=_0x27df9d['view'],_0x3c3f0f=_0x554965['getByInnerView'](_0x2a60b7);_0x2a8b09['_unbindEditors'](_0x2a60b7),_0x3c3f0f&&_0x554965['remove'](_0x3c3f0f),this['_suggestionToController']['delete'](_0x430663),this['_viewToController']['delete'](_0x2a60b7),_0x27df9d['destroy']();}['_updateController'](_0x149572){if(!_0x149572['isInContent']||!this['_suggestionToController']['has'](_0x149572))return;const _0x31a2e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x453bf8=this['_suggestionToController']['get'](_0x149572),_0x2ed111=_0x149572['getAllAdjacentSuggestions']();_0x453bf8['view']['descriptionParts']=_0x31a2e3['descriptionFactory']['getDescriptions'](_0x2ed111);}['destroy'](){for(const _0x130484 of this['_suggestionToController']['keys']())this['_destroyController'](_0x130484);for(const _0x469be8 of this['_annotationViews']['values']())_0x469be8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xeaa6dc){return'model'in _0xeaa6dc;}class Fe extends _0x6410a9{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4403d5){this['editor']['plugins']['get'](d)['adapter']=_0x4403d5;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xaa3238){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xaa3238);}['getSuggestions']({skipNotAttached:_0x363ca0=!0x1,toJSON:_0x14793b=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x363ca0,'toJSON':_0x14793b});}['getSuggestion'](_0x30640d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x30640d);}}const p=['Pagination'];class re extends _0x6410a9{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4df9ad=this['editor'];if(_0x4df9ad['config']['define']('trackChangesData.editorCreator',_0x493f3e=>{const _0x10d7a3=_0x4df9ad['model']['document']['getRootNames']()['reduce']((_0xffdefd,_0x4dde8b)=>(_0xffdefd[_0x4dde8b]='',_0xffdefd),{});return _0x4df9ad['constructor']['create'](_0x10d7a3,_0x493f3e);}),'function'!=typeof _0x4df9ad['config']['get']('trackChangesData')['editorCreator'])throw new _0x5bd908('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x52885a){return P(this['editor'],!0x0,_0x52885a);}['getDataWithDiscardedSuggestions'](_0x4243e4){return P(this['editor'],!0x1,_0x4243e4);}}class Ge extends _0x6410a9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x429e28){function _0x34e2f8(_0x2d4bfc){return _0x2d4bfc['map'](_0x3f532c=>String['fromCharCode'](_0x3f532c))['join']('');}super(_0x429e28),this['result']='end',_0x429e28[_0x34e2f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34e2f8([0x76,0x69,0x65,0x77])][_0x34e2f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34e2f8([0x61,0x75,0x74,0x6f]),_0x429e28[_0x34e2f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x34e2f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34e2f8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x34e2f8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x34e2f8([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 He(_0x35ec30){return void 0x0!==_0x35ec30['getRootsAttributes'];}async function P(_0x42c19c,_0x24214b,_0x416433){const _0x3b48fb=_0x486144(_0x42c19c,p);_0x3b48fb['plugins']['push'](d,Ge),_0x3b48fb['rootsAttributes']=He(_0x42c19c)?_0x42c19c['getRootsAttributes']():void 0x0;const _0x4d4023=document['createDocumentFragment'](),_0xfcf658=_0x42c19c['config']['get']('trackChangesData')['editorCreator'],_0x5bb679=await _0xfcf658(_0x3b48fb,()=>function(_0x5595e1){const _0x24a60d=document['createElement']('div');return _0x5595e1['appendChild'](_0x24a60d),_0x24a60d;}(_0x4d4023));!function(_0x1b6ff6,_0x229b2c){const _0x5534ec=_0x1b6ff6['model']['document']['getRootNames']()['reduce']((_0x4db48c,_0x26acd0)=>(_0x4db48c[_0x26acd0]=_0x1b6ff6['data']['get']({'rootName':_0x26acd0}),_0x4db48c),{}),_0x576cff=_0x1b6ff6['plugins']['get']('Users')['users']['map'](_0x3ee376=>({'id':_0x3ee376['id'],'name':_0x3ee376['name']})),_0x5bded7=_0x1b6ff6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19df1c=_0x1b6ff6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c9f85=_0x229b2c['plugins']['get']('Users'),_0x4efcf5=_0x229b2c['plugins']['get']('TrackChangesEditing'),_0x397288=_0x229b2c['plugins']['get']('CommentsRepository');for(const _0x72f949 of _0x397288['getCommentThreads']())_0x72f949['remove']();for(const _0x204a7b of _0x576cff)_0x5c9f85['getUser'](_0x204a7b['id'])||_0x5c9f85['addUser'](_0x204a7b);_0x5c9f85['me']||_0x5c9f85['useAnonymousUser']();for(const _0x20f6b4 of _0x19df1c)_0x397288['addCommentThread'](_0x20f6b4);for(const _0x2ed77c of _0x5bded7)_0x4efcf5['addSuggestionData'](_0x2ed77c);_0x229b2c['data']['set'](_0x5534ec);}(_0x42c19c,_0x5bb679),_0x5bb679['execute'](_0x24214b?'acceptAllSuggestions':'discardAllSuggestions');const _0x505417=He(_0x5bb679)?_0x5bb679['getFullData'](_0x416433):_0x5bb679['data']['get'](_0x416433);return await _0x5bb679['destroy'](),_0x505417;}class Me extends _0x101a27{['options'];constructor(_0x5b9351,_0x2e1f0f){super(_0x5b9351),this['options']=_0x2e1f0f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x4ff07a,_0x427c77){if(!this['element'])return;const _0x22b670=[];for(const [_0x32bbd8,_0x568021]of _0x4ff07a){const _0x66e36d=document['createElement']('div');_0x66e36d['setAttribute']('data-ck-root-name',_0x32bbd8),_0x66e36d['className']=_0x568021['classes']+'\x20ck-track-changes-preview__root-container',_0x66e36d['innerHTML']=_0x568021['content'],_0x22b670['push'](_0x66e36d);}_0x427c77(this['element'],_0x22b670),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2eca95{constructor(_0x4bbf95){super(_0x4bbf95),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3521eb=this['editor'],_0x43b164=_0x3521eb['locale'],_0x18d5e9=_0x3521eb['plugins']['get']('Dialog');let _0xed41eb;const _0x1bfd0c=function(_0x15c63e){const _0x32b678={};if('editables'in _0x15c63e['ui']['view']){for(const [_0x3abdf4,_0x166589]of Object['entries'](_0x15c63e['ui']['view']['editables']))_0x32b678[_0x3abdf4]=_0x166589['element'];}else _0x32b678[_0x15c63e['model']['document']['getRootNames']()[0x0]]=_0x15c63e['ui']['view']['editable']['element'];return _0x32b678;}(_0x3521eb),_0x11b6a0=function(_0x48e234){let _0x2f4a86=0x0;for(const _0x49345b of Object['values'](_0x48e234))_0x2f4a86=Math['max'](_0x2f4a86,_0x49345b['getBoundingClientRect']()['width']);let _0x18aff3=0x0;for(const _0x39ea51 of Object['values'](_0x48e234))_0x18aff3+=_0x39ea51['getBoundingClientRect']()['height'];const _0x1ce114=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x564750=Math['min'](_0x18aff3,_0x1ce114);return{'width':_0x2f4a86,'height':_0x564750};}(_0x1bfd0c);_0x18d5e9['show']({'id':'finalContentPreview','title':o(_0x43b164,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x43b164,{'dialogRects':_0x11b6a0}),'onHide':()=>{_0xed41eb['detachFromDom']();},'onShow':()=>{_0x3521eb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x514ac9=>{const _0x3599=this['_standarizeRootsData'](_0x514ac9,_0x3521eb,_0x1bfd0c);_0x18d5e9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3599,_0x3521eb['config']['get']('trackChanges.preview.renderFunction'));}),_0xed41eb=new _0x1156d7(_0x43b164,[_0x18d5e9['view']]),_0xed41eb['attachToDom'](),_0xed41eb['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3521eb['once']('destroy',()=>{_0xed41eb['detachFromDom']();});const _0x4cbe8c=_0x18d5e9['view']['headerView']['class'];_0x18d5e9['view']['headerView']['class']=_0x4cbe8c?_0x4cbe8c+'\x20ck-reset_all':'ck-reset_all',_0x18d5e9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x18d5e9['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x566a56=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5c2182=_0x566a56['previewMode'],_0x5ea545={};if('$labels'===_0x5c2182){for(const _0x329c84 of _0x566a56['getMergeFieldsIds']())_0x5ea545[_0x329c84]=_0x566a56['getLabel'](_0x329c84)||_0x329c84;}else{const _0x4d1e8b='$defaultValues'===_0x5c2182?_0x566a56['getDefaultValues']():_0x566a56['getDataSetValues'](_0x5c2182,!0x0);for(const _0x5f0cf0 of Object['entries'](_0x4d1e8b)){const [_0x598798,_0x1a7622]=_0x5f0cf0;_0x5ea545[_0x598798]=null!==_0x1a7622?_0x1a7622:_0x566a56['getLabel'](_0x598798)||_0x598798;}}return{'mergeFieldsData':_0x5ea545};}['_standarizeRootsData'](_0x3b74eb,_0x16a4c8,_0x25f2aa){let _0x2514d5;if('string'==typeof _0x3b74eb){const _0x41df63=_0x16a4c8['model']['document']['getRootNames']()[0x0];_0x2514d5={[_0x41df63]:_0x3b74eb};}else _0x2514d5=_0x3b74eb;const _0xfe150c=this['_fixMediaEmbeds'](_0x2514d5,_0x16a4c8),_0x539798=function(_0x2612b7,_0x83d54c){for(const [_0x49fd22,_0x3c20a6]of _0x2612b7)_0x3c20a6['classes']=_0x83d54c[_0x49fd22]['classList']['value']['replace']('ck-focused','');return _0x2612b7;}(this['_sortRoots'](_0x16a4c8)['reduce']((_0x2e0f97,_0x325349)=>(_0x2e0f97['push']([_0x325349,{'content':_0xfe150c[_0x325349],'classes':''}]),_0x2e0f97),[]),_0x25f2aa);return _0x539798;}['_fixMediaEmbeds'](_0x141235,_0x515bc6){if(!_0x515bc6['plugins']['has']('MediaEmbedEditing'))return _0x141235;const _0x807a45=_0x515bc6['plugins']['get']('MediaEmbedEditing');for(const [_0x1d407b,_0x1c2358]of Object['entries'](_0x141235)){const _0x12e177=document['createElement']('div');_0x12e177['innerHTML']=_0x1c2358,(_0x12e177['querySelectorAll']('figure.media')['forEach'](_0xf7aa42=>{const _0x578553=_0xf7aa42['querySelector']('oembed');if(_0x578553){const _0x3f6a97=_0x578553['getAttribute']('url');if(_0x3f6a97){const _0x16591b=_0x807a45['registry']['getMediaViewElement'](new _0x2a9d0e(_0x515bc6['editing']['view']['document']),_0x3f6a97,{'elementName':'','renderForEditingView':!0x0}),_0x5dccaa=document['createElement']('div');_0x5dccaa['classList']['add']('ck-media__wrapper'),_0x16591b['render'](_0x5dccaa,_0x515bc6['editing']['view']['domConverter']),_0x578553['replaceWith'](_0x5dccaa);}}}),_0x141235[_0x1d407b]=_0x12e177['innerHTML']);}return _0x141235;}['_sortRoots'](_0x4b578b){if(!function(_0x3fc173){return void 0x0!==_0x3fc173['getRootsAttributes'];}(_0x4b578b))return _0x4b578b['model']['document']['getRootNames']();const _0x3f7571=[],_0x27909d=new Map();for(const _0x151426 of _0x4b578b['model']['document']['getRootNames']()){const _0x2d0a39=_0x4b578b['editing']['view']['getDomRoot'](_0x151426)['getClientRects']()['item'](0x0);_0x3f7571['push'](_0x151426),_0x27909d['set'](_0x151426,_0x2d0a39);}return _0x3f7571['sort']((_0x44a21a,_0x53e26a)=>{const _0x4162e5=_0x27909d['get'](_0x44a21a),_0x1dec6=_0x27909d['get'](_0x53e26a);return _0x4162e5['y']-_0x1dec6['y']||_0x4162e5['x']-_0x1dec6['x'];}),_0x3f7571;}}class $e extends _0x6410a9{static get['requires'](){return[re,_0x59cdaa];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26b2f9){super(_0x26b2f9),_0x26b2f9['commands']['add']('previewFinalContent',new te(this['editor'])),_0x26b2f9['config']['define']('trackChanges.preview.renderFunction',(_0x4f7648,_0x599e6e)=>{for(const _0x5ca775 of _0x599e6e)_0x4f7648['appendChild'](_0x5ca775);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};