@ckeditor/ckeditor5-track-changes 47.3.0-alpha.1 → 47.3.0-alpha.2

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 (230) 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/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/footnotes.js +1 -1
  174. package/src/integrations/formatpainter.js +1 -1
  175. package/src/integrations/heading.js +1 -1
  176. package/src/integrations/highlight.js +1 -1
  177. package/src/integrations/horizontalline.js +1 -1
  178. package/src/integrations/htmlembed.js +1 -1
  179. package/src/integrations/image.js +1 -1
  180. package/src/integrations/imagereplace.js +1 -1
  181. package/src/integrations/imagestyle.js +1 -1
  182. package/src/integrations/importword.js +1 -1
  183. package/src/integrations/indent.js +1 -1
  184. package/src/integrations/inputcommand.js +1 -1
  185. package/src/integrations/legacylist.js +1 -1
  186. package/src/integrations/legacylistproperties.js +1 -1
  187. package/src/integrations/lineheight.js +1 -1
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.js +1 -1
  222. package/src/trackchangespreview.js +1 -1
  223. package/src/trackchangesui.js +1 -1
  224. package/src/ui/suggestioncontroller.js +2 -2
  225. package/src/ui/view/basesuggestionthreadview.js +1 -1
  226. package/src/ui/view/suggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionview.js +1 -1
  228. package/src/ui/view/trackchangespreviewview.js +1 -1
  229. package/src/utils/common-translations.js +1 -1
  230. 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 _0x2677d9,Plugin as _0x5c469f,PendingActions as _0x52061b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4bd1ef,ObservableMixin as _0x396c0e,uid as _0xe7a85c,priorities as _0x5382c2,insertToPriorityArray as _0x53f5fa,logWarning as _0x5dad29,getEnvKeystrokeText as _0xc43d41,FocusTracker as _0x117c38,KeystrokeHandler as _0x15ddba,Collection as _0x2a31a7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x66c94d,IconCancel as _0x11ac0f,IconTrackChanges as _0x5563d1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1cd192,View as _0x3725c9,ViewCollection as _0x4958e7,FocusCycler as _0x5d44a1,UIModel as _0x4d4814,createDropdown as _0x57847e,SplitButtonView as _0x2e353d,addListToDropdown as _0x1cd2d,MenuBarMenuView as _0x502fd3,MenuBarMenuListView as _0x5b0b21,ListSeparatorView as _0xc8adaa,MenuBarMenuListItemView as _0x1f14d7,MenuBarMenuListItemButtonView as _0x59084b,BodyCollection as _0xfa1121,Dialog as _0xc55595}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xe3d5a4,DocumentCompare as _0x4a392e,hashObject as _0x4f3ece,surroundingMarkersDetector as _0xdbf774,FOCUS_ANNOTATION_KEYSTROKE as _0x18497a,AriaDescriptionView as _0x536ecb,setupThreadKeyboardNavigation as _0x19f182,trimHtml as _0x1cbe9a,UserView as _0x35b91d,LateFocusButtonView as _0x1f2254,getDateTimeFormatter as _0x703e2b,getAllMarkersDomElementsSorted as _0x319fa6,sanitizeEditorConfig as _0x4f6792}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1169aa,ModelLiveRange as _0x167977,ModelLivePosition as _0x461c02,ViewDowncastWriter as _0x2db659}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x32a943,set as _0x523787,isEqual as _0x33d31c,unset as _0x54fb6d,omit as Pt}from'es-toolkit/compat';import{Delete as _0x208762,Input as _0x5e85b6}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x560292}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1fe9af}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x2677d9{['_enabledCommands'];constructor(_0x3c5b7c,_0x28e1aa){super(_0x3c5b7c),this['_enabledCommands']=_0x28e1aa,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 _0x3f317c of this['editor']['commands']['commands']())_0x3f317c['affectsData']&&!this['_enabledCommands']['has'](_0x3f317c)&&_0x3f317c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3603cb of this['editor']['commands']['commands']())_0x3603cb['affectsData']&&!this['_enabledCommands']['has'](_0x3603cb)&&_0x3603cb['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x2677d9{['_suggestions'];constructor(_0x454df9,_0x4f5eed){super(_0x454df9),this['_suggestions']=_0x4f5eed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x133a16){const _0x49f1db=this['_suggestions']['get'](_0x133a16);if(!_0x49f1db)throw new _0x4bd1ef('track-changes-accept-suggestion-not-found',this);const _0x2fba11=_0x49f1db['getRanges']();this['editor']['model']['canEditAt'](_0x2fba11)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x49f1db);}}class D extends _0x2677d9{['_suggestions'];constructor(_0x513b63,_0x1f877c){super(_0x513b63),this['_suggestions']=_0x1f877c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa6b260){const _0x3b8ed5=this['_suggestions']['get'](_0xa6b260);if(!_0x3b8ed5)throw new _0x4bd1ef('track-changes-discard-suggestion-not-found',this);const _0x48e63c=_0x3b8ed5['getRanges']();this['editor']['model']['canEditAt'](_0x48e63c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3b8ed5);}}function ls(_0x5a4ce9,_0x22270c){let _0x1f6b0d='';return _0x1f6b0d+=_0x5a4ce9['split']('*')['map']((_0x53ae77,_0x110ddf)=>_0x110ddf%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x53ae77)+'</span>':rn(_0x53ae77))['join'](''),_0x22270c&&(_0x1f6b0d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x22270c['value']+'\x22\x20title=\x22'+_0x22270c['title']+'\x22></span>'),_0x1f6b0d;}function rn(_0x382bda){const _0x56ecb3=document['createElement']('span');return _0x56ecb3['innerText']=_0x382bda,_0x56ecb3['innerHTML'];}function ts(_0x4e08e9){return _0x4e08e9['sort']((_0x2f71fd,_0x291ff6)=>'attribute'===_0x2f71fd['type']&&'attribute'!==_0x291ff6['type']?-0x1:'attribute'!==_0x2f71fd['type']&&'attribute'===_0x291ff6['type']?0x1:'deletion'==_0x2f71fd['type']&&'deletion'!=_0x291ff6['type']?-0x1:'deletion'!=_0x2f71fd['type']&&'deletion'==_0x291ff6['type']?0x1:0x0);}function to(_0x287e12,_0x28ea5a){let _0xf5a098,_0x517e9d=0x0;const _0x17c8cd=[],_0x59b480=_0x28ea5a['schema'];for(;_0x517e9d<_0x287e12['length'];){const _0x55f9cc=_0x287e12[_0x517e9d],_0x546e0f=_0x287e12[_0x517e9d+0x1];_0xf5a098||(_0xf5a098=_0x28ea5a['createPositionBefore'](_0x55f9cc)),cn(_0x28ea5a,_0x55f9cc,_0x546e0f)||(_0x17c8cd['push'](_0x28ea5a['createRange'](_0xf5a098,_0x59b480['isObject'](_0x55f9cc)?_0x28ea5a['createPositionAfter'](_0x55f9cc):_0x28ea5a['createPositionAt'](_0x55f9cc,'end'))),_0xf5a098=null),_0x517e9d++;}return _0x17c8cd;}function cn(_0x30f901,_0x34cfbe,_0x9d5208){if(!_0x9d5208)return!0x1;const _0x22c89a=_0x30f901['createPositionAfter'](_0x34cfbe),_0x4dc7d5=_0x30f901['createPositionBefore'](_0x9d5208);return _0x22c89a['isTouching'](_0x4dc7d5);}function rs(_0x321303,_0x283482,_0x5c6e04){for(;_0x5c6e04['length'];){const _0x49eb88=_0x5c6e04['splice'](0x0,0x64);_0x321303['change'](()=>{for(const _0x52f9bb of _0x49eb88)_0x52f9bb['isInContent']&&_0x283482['execute'](_0x52f9bb['id']);});}}class B extends _0x2677d9{['_command'];['_suggestions'];constructor(_0x391ea4,_0x488910,_0x3edac6){super(_0x391ea4),this['_command']=_0x488910,this['_suggestions']=_0x3edac6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x59fb0e=Array['from'](this['_suggestions']['values']())['some'](_0x3e1fea=>_0x3e1fea['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x59fb0e;}['execute'](){const _0x5dd3e3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x19fd15 of _0x5dd3e3){const _0x5e2414=_0x19fd15['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e2414))return;}rs(this['editor']['model'],this['_command'],_0x5dd3e3);}}class O extends _0x2677d9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1fbea5,_0x5d88bb,_0x42c4f4){super(_0x1fbea5),this['_command']=_0x5d88bb,this['_suggestions']=_0x42c4f4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5bf853=this['editor']['model']['document']['selection'],_0x10dd60=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x16f787,_0x5a7afb){const _0xdf9fa3=Array['from'](_0x16f787['getRanges']()),_0x507db2=new Set();for(const _0x4670fb of _0x5a7afb)if(_0x4670fb['isInContent']){for(const _0x33507f of _0xdf9fa3)for(const _0x1523c9 of _0x4670fb['getRanges']())(_0x33507f['isIntersecting'](_0x1523c9)||_0x16f787['isCollapsed']&&!_0x4670fb['isMultiRange']&&_0x4670fb['next']&&_0x1523c9['end']['isTouching'](_0x33507f['start']))&&_0x507db2['add'](_0x4670fb);}return _0x507db2;}(_0x5bf853,_0x10dd60),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x172d6b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4b3180 of _0x172d6b){const _0x433080=_0x4b3180['getRanges']();if(!this['editor']['model']['canEditAt'](_0x433080))return;}rs(this['editor']['model'],this['_command'],_0x172d6b);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x396c0e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x15322a,_0x5bd7bc){super(),this['id']=_0x5bd7bc['id'],this['type']=_0x5bd7bc['type'],this['subType']=_0x5bd7bc['subType']||null,this['author']=_0x5bd7bc['author'],this['creator']=_0x5bd7bc['creator']||_0x5bd7bc['author'],this['isExternal']=Boolean(_0x5bd7bc['attributes']&&_0x5bd7bc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5bd7bc['originalSuggestionId']||null,this['_model']=_0x15322a,this['_onAccept']=_0x5bd7bc['onAccept'],this['_onDiscard']=_0x5bd7bc['onDiscard'],this['_onAttributesChange']=_0x5bd7bc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5bd7bc['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 _0x26fae3=this;for(;_0x26fae3['previous'];)_0x26fae3=_0x26fae3['previous'];return _0x26fae3;}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'](_0x69e854){this['_markerNames']['add'](_0x69e854);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x170b33=>this['_model']['markers']['get'](_0x170b33))['filter'](_0x251b4c=>_0x251b4c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xc8b60e=>{for(const _0x2f2e65 of this['getMarkers']())_0xc8b60e['removeMarker'](_0x2f2e65);}),this['_markerNames']['clear']();}['removeMarker'](_0xce7a1f){this['_model']['change'](_0x4b7869=>{_0x4b7869['removeMarker'](_0xce7a1f);}),this['_markerNames']['delete'](_0xce7a1f);}['addRange'](_0x1197b6){const _0x272bf8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x272bf8),this['_model']['change'](_0x55e0d9=>{_0x55e0d9['addMarker'](_0x272bf8,{'range':_0x1197b6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x14a45b){for(const _0xb3c75f of this['getRanges']())if(_0xb3c75f['isIntersecting'](_0x14a45b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x42d185=>_0x42d185['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4ce5c9,_0x4bf98d)=>[..._0x4ce5c9,..._0x4bf98d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xa5d6a2=this['getRanges']();if(0x1!=_0xa5d6a2['length'])return null;const _0x3eef14=_0xa5d6a2[0x0],_0x449c4a=_0x3eef14['start']['nodeAfter'],_0x38db1c=_0x3eef14['end']['nodeBefore'];return _0x449c4a instanceof _0x1169aa?_0x449c4a!=_0x38db1c?null:_0x449c4a: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 _0x29fa86=[];let _0x280947=this['head'];for(;_0x280947;)_0x29fa86['push'](_0x280947),_0x280947=_0x280947['next'];return _0x29fa86;}['setAttribute'](_0x44c1f9,_0x4180f6){const _0x16717c=_0x32a943(this['attributes']);_0x523787(_0x16717c,_0x44c1f9,_0x4180f6),_0x33d31c(_0x16717c,this['attributes'])||(this['attributes']=_0x16717c,this['_onAttributesChange'](_0x16717c));}['removeAttribute'](_0x1bf7f9){const _0xbcf5b4=_0x32a943(this['attributes']);_0x54fb6d(_0xbcf5b4,_0x1bf7f9),_0x33d31c(_0xbcf5b4,this['attributes'])||(this['attributes']=_0xbcf5b4,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 _0xe7a85c()['substr'](0x1,0x5);}}function o(_0x3be212,_0x32da98,_0x1a6e6e){const _0x34a093=_0x3be212['t'],t=_0x3be212['t'];switch(_0x32da98){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',_0x1a6e6e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1a6e6e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1a6e6e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1a6e6e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1a6e6e);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',_0x1a6e6e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1a6e6e);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',_0x1a6e6e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1a6e6e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1a6e6e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1a6e6e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1a6e6e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1a6e6e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1a6e6e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1a6e6e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1a6e6e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1a6e6e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1a6e6e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1a6e6e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1a6e6e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1a6e6e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1a6e6e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1a6e6e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1a6e6e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1a6e6e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1a6e6e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1a6e6e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1a6e6e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1a6e6e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1a6e6e);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'},_0x1a6e6e);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'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x1a6e6e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1a6e6e);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1a6e6e);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1a6e6e);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1a6e6e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1a6e6e);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 _0x34a093({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1a6e6e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x34a093({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1a6e6e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1a6e6e);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'},_0x1a6e6e);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'},_0x1a6e6e);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'},_0x1a6e6e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x32da98;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x7bf33,_0x1689d4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x7bf33,this['_locale']=_0x1689d4;}['getDescriptions'](_0x19a0dd){const _0x478b16=[],_0xd71649=new Set(),_0x53a83b=new Set();for(let _0x14805e=0x0;_0x14805e<_0x19a0dd['length'];_0x14805e++){const _0x3a7fbc=_0x19a0dd[_0x14805e];if(!_0x3a7fbc['isInContent'])continue;const _0xa89223=this['_handleCustomCallbackDescription'](_0x3a7fbc);if(_0xa89223){if(null!=_0x3a7fbc['subType']){if(_0xd71649['has'](_0x3a7fbc['subType']))continue;_0xd71649['add'](_0x3a7fbc['subType']);}_0x478b16['push'](_0xa89223);}else{if('attribute'==_0x3a7fbc['type']){const _0x1aab27=_0x3a7fbc['data']['key'];if(_0x53a83b['has'](_0x1aab27))continue;_0x53a83b['add'](_0x3a7fbc['data']['key']),_0x1aab27==m?this['_handleRenameSuggestionDescription'](_0x478b16,_0x3a7fbc):this['_handleAttributeSuggestionDescription'](_0x478b16,_0x3a7fbc);continue;}'insertion'!=_0x3a7fbc['type']&&'deletion'!=_0x3a7fbc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x478b16,_0x3a7fbc,_0x19a0dd[_0x14805e+0x1]);}}return this['_resolveDescriptionItems'](_0x478b16);}['registerDescriptionCallback'](_0x2742ba){this['_customCallbacks']['push'](_0x2742ba);}['registerElementLabel'](_0x3dd2d2,_0x3aee17,_0x3f297e=_0x5382c2['normal']){'function'==typeof _0x3dd2d2?_0x53f5fa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3dd2d2,'label':_0x3aee17,'priority':_0x3f297e}):this['_itemLabels']['set'](_0x3dd2d2,_0x3aee17);}['registerAttributeLabel'](_0x1f798e,_0x33bd4c){this['_attributeLabels']['set'](_0x1f798e,_0x33bd4c);}['getItemLabel'](_0x2cff93,_0x519b9a=0x1){let _0x264f47;for(const _0x489bc1 of this['_itemLabelsCallbacks'])if(_0x489bc1['matchingCallback'](_0x2cff93)){_0x264f47=_0x489bc1['label'];break;}return _0x264f47||(_0x264f47=this['_itemLabels']['get'](_0x2cff93['name'])),_0x264f47?_0x264f47(_0x519b9a):0x1!==_0x519b9a?_0x519b9a+'\x20'+_0x2cff93['name']+'s':''+_0x2cff93['name'];}['_addDescriptionItems'](_0x1005c4,_0x284716){const _0x52c54d=_0x284716['getFirstRange']()['getWalker'](),_0x2c1ee8='insertion'==_0x284716['type']?'add':'remove';for(const _0x5b5a4f of _0x52c54d){const _0x13a965=_0x5b5a4f['item'],_0x2b5753=_0x1005c4[_0x1005c4['length']-0x1];if(_0x13a965['is']('$textProxy'))_0x2b5753&&_0x2b5753['type']['indexOf']('Container')>-0x1&&_0x1005c4['pop'](),_0x2b5753&&'text'==_0x2b5753['type']?_0x2b5753[_0x2c1ee8]+=_0x13a965['data']:_0x1005c4['push']({'type':'text','add':'add'==_0x2c1ee8?_0x13a965['data']:'','remove':'remove'==_0x2c1ee8?_0x13a965['data']:''});else{if(this['_schema']['isObject'](_0x13a965)){const _0x13763=_0x13a965;if(_0x2b5753&&_0x2b5753['type']['indexOf']('Container')>-0x1&&_0x1005c4['pop'](),'elementEnd'==_0x5b5a4f['type'])continue;_0x2b5753&&_0x2b5753['type']==_0x2c1ee8+'Object'&&_0x2b5753['element']['name']==_0x13763['name']?_0x2b5753['quantity']++:_0x1005c4['push']({'type':_0x2c1ee8+'Object','element':_0x13763,'quantity':0x1}),_0x52c54d['skip'](_0x5192e5=>!('elementEnd'==_0x5192e5['type']&&_0x5192e5['item']==_0x13a965));}else{if(this['_schema']['checkChild'](_0x13a965,'$text')||_0x13a965['is']('element','softBreak')){const _0x4fd9a3=_0x13a965;if('add'==_0x2c1ee8&&'elementStart'==_0x5b5a4f['type']||'remove'==_0x2c1ee8&&'elementEnd'==_0x5b5a4f['type'])continue;if(_0x2b5753&&-0x1==_0x2b5753['type']['indexOf']('Container')){'text'==_0x2b5753['type']&&(_0x2b5753[_0x2c1ee8]+='\x0a');continue;}let _0x50baa9;if(_0x50baa9='add'==_0x2c1ee8?_0x4fd9a3['nextSibling']&&!this['_schema']['isObject'](_0x4fd9a3['nextSibling'])?_0x4fd9a3['nextSibling']:null:_0x4fd9a3['previousSibling']&&!this['_schema']['isObject'](_0x4fd9a3['previousSibling'])?_0x4fd9a3['previousSibling']:null,_0x4fd9a3['isEmpty']||_0x50baa9&&_0x50baa9['isEmpty']){const _0x270262=_0x50baa9&&_0x50baa9['isEmpty']?_0x50baa9:_0x4fd9a3;_0x2b5753&&_0x2b5753['type']==_0x2c1ee8+'EmptyContainer'&&_0x2b5753['element']['name']==_0x270262['name']?_0x2b5753['quantity']++:_0x1005c4['push']({'type':_0x2c1ee8+'EmptyContainer','element':_0x270262,'quantity':0x1});}else _0x1005c4['push']({'type':_0x2c1ee8+'Container','element':_0x4fd9a3});}}}}}['_resolveDescriptionItems'](_0x4d7fae){const _0x4ccf79=this['_locale'],_0x5dc05f=[],_0x48ca53=[],_0x4a8b32=[];for(const _0x3ff51b of _0x4d7fae)switch(_0x3ff51b['type']){case'text':if(_0x3ff51b['add']=_0x3ff51b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ff51b['remove']=_0x3ff51b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ff51b['add']&&''!=_0x3ff51b['remove']){_0x5dc05f['push']({'type':'replace','content':o(_0x4ccf79,'REPLACE_TEXT',['\x22'+_0x3ff51b['remove']+'\x22','\x22'+_0x3ff51b['add']+'\x22'])});continue;}if(null!=_0x3ff51b['add']['match'](/^ +$/)){_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Insert:*\x20%0',o(_0x4ccf79,'ELEMENT_SPACE',_0x3ff51b['add']['length']))});continue;}if(null!=_0x3ff51b['remove']['match'](/^ +$/)){_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Remove:*\x20%0',o(_0x4ccf79,'ELEMENT_SPACE',_0x3ff51b['remove']['length']))});continue;}if(''!=_0x3ff51b['add']){_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Insert:*\x20%0','\x22'+_0x3ff51b['add']+'\x22')});continue;}_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Remove:*\x20%0','\x22'+_0x3ff51b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Insert:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Remove:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'addContainer':_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Split:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'removeContainer':_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Merge:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'addFormat':_0x48ca53['push'](_0x3ff51b['key']);continue;case'removeFormat':_0x4a8b32['push'](_0x3ff51b['key']);continue;default:_0x5dc05f['push'](_0x3ff51b);}if(_0x48ca53['length']){const _0x55f5ec=_0x48ca53['map'](_0x2f76cf=>this['_attributeLabels']['has'](_0x2f76cf)?this['_attributeLabels']['get'](_0x2f76cf):_0x2f76cf)['join'](',\x20');_0x5dc05f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x55f5ec)});}if(_0x4a8b32['length']){const _0x1d65c8=_0x4a8b32['map'](_0x18a4ef=>this['_attributeLabels']['has'](_0x18a4ef)?this['_attributeLabels']['get'](_0x18a4ef):_0x18a4ef)['join'](',\x20');_0x5dc05f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d65c8)});}return _0x5dc05f;}['_handleCustomCallbackDescription'](_0x127c1a){for(const _0x215154 of this['_customCallbacks']){const _0x5485bb=_0x215154(_0x127c1a);if(_0x5485bb&&'type'in _0x5485bb)return _0x5485bb;}}['_handleAttributeSuggestionDescription'](_0x5aea23,_0x1a3048){const _0x2e2bfc=_0x1a3048['data'],_0x97994d=void 0x0===_0x2e2bfc['newValue']?'removeFormat':'addFormat';_0x5aea23['push']({'type':_0x97994d,'key':_0x2e2bfc['key']});}['_handleRenameSuggestionDescription'](_0x22f17e,_0x44128a){_0x22f17e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44128a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa595a,_0x2b7ee9,_0x24397b){if(this['_addDescriptionItems'](_0xa595a,_0x2b7ee9),_0x24397b&&_0x24397b['getFirstRange']()&&!_0x2b7ee9['getFirstRange']()['end']['isEqual'](_0x24397b['getFirstRange']()['start'])){const _0x2f3e27=_0xa595a[_0xa595a['length']-0x1],_0x81d8bd='insertion'==_0x2b7ee9['type']?'add':'remove';_0x2f3e27&&'text'==_0x2f3e27['type']&&(_0x2f3e27[_0x81d8bd]+='\x0a');}}}class R extends _0x5c469f{['afterInit'](){const _0x5e4495=this['editor'],_0x29ef5d=_0x5e4495['plugins']['get']('TrackChangesEditing');_0x5e4495['commands']['get']('showAIAssistant')&&_0x29ef5d['enableCommand']('showAIAssistant');}}class T extends _0x5c469f{['afterInit'](){const _0x551b11=this['editor'],_0x37f946=_0x551b11['plugins']['get']('TrackChangesEditing');_0x551b11['commands']['get']('toggleAi')&&_0x37f946['enableCommand']('toggleAi');}}class E extends _0x5c469f{['afterInit'](){const _0x5abdb9=this['editor'],_0x1bada3=_0x5abdb9['plugins']['get']('TrackChangesEditing');_0x5abdb9['commands']['get']('aiQuickAction')&&_0x1bada3['enableCommand']('aiQuickAction');}}class U extends _0x5c469f{['afterInit'](){const _0x1f84b4=this['editor'],_0x5d98a7=_0x1f84b4['locale'];if(!_0x1f84b4['plugins']['has']('AlignmentEditing'))return;const _0x3679dc=_0x1f84b4['plugins']['get']('TrackChangesEditing');_0x3679dc['enableDefaultAttributesIntegration']('alignment'),_0x3679dc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5d98a7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x586cdd=this['editor'],_0x4632c3=_0x586cdd['locale'];_0x586cdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x849abb=>{if('formatBlock'!=_0x849abb['type'])return;const {data:_0x21a775}=_0x849abb;if(_0x21a775&&'alignment'==_0x21a775['commandName']){const _0x1e3efd=_0x21a775['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4632c3,'*Format:*\x20%0',function(_0x59a76a){switch(_0x59a76a){case'left':return o(_0x4632c3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4632c3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4632c3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4632c3,'FORMAT_JUSTIFY_TEXT');}}(_0x1e3efd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x5c469f{['afterInit'](){const _0x9da0b0=this['editor'],_0x4ecb4a=_0x9da0b0['plugins']['get']('TrackChangesEditing'),_0x3a435f=_0x9da0b0['locale'];for(const _0x3c4825 of ti){if(!_0x9da0b0['plugins']['has'](_0x3c4825))continue;const _0xd9a2b8=_0x3c4825['slice'](0x0,-0x7)['toLowerCase'](),_0x50cb78='FORMAT_'+_0xd9a2b8['toUpperCase']();_0x4ecb4a['enableDefaultAttributesIntegration'](_0xd9a2b8),_0x4ecb4a['descriptionFactory']['registerAttributeLabel'](_0xd9a2b8,o(_0x3a435f,_0x50cb78));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35bdf0=this['editor'],_0x138280=_0x35bdf0['locale'],_0x2e64ba=_0x35bdf0['plugins']['get']('TrackChangesEditing');function _0x17a7e3(_0x3f8349,_0x5efb96){_0x2e64ba['descriptionFactory']['registerDescriptionCallback'](_0x5315e2=>{if('formatInline'!=_0x5315e2['type'])return;const {data:_0x1afc85}=_0x5315e2;return _0x1afc85&&_0x1afc85['commandName']===_0x3f8349?_0x1afc85['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x138280,'*Format:*\x20%0',_0x5efb96)}:{'type':'format','content':o(_0x138280,'*Remove\x20format:*\x20%0',_0x5efb96)}:void 0x0;});}_0x17a7e3('bold',o(_0x138280,'FORMAT_BOLD')),_0x17a7e3('italic',o(_0x138280,'FORMAT_ITALIC')),_0x17a7e3('underline',o(_0x138280,'FORMAT_UNDERLINE')),_0x17a7e3('code',o(_0x138280,'FORMAT_CODE')),_0x17a7e3('strikethrough',o(_0x138280,'FORMAT_STRIKETHROUGH')),_0x17a7e3('subscript',o(_0x138280,'FORMAT_SUBSCRIPT')),_0x17a7e3('superscript',o(_0x138280,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5c469f{['afterInit'](){const _0xa6be94=this['editor'],_0x309504=_0xa6be94['locale'];if(!_0xa6be94['plugins']['has']('BlockQuoteEditing'))return;const _0x4f4973=_0xa6be94['plugins']['get']('TrackChangesEditing'),_0xe8ce5c=this['editor']['commands']['get']('blockQuote');_0x4f4973['enableCommand']('blockQuote',(_0x4b11f2,_0x5b6f44={})=>{const _0x13b76e=this['editor']['model']['document']['selection'],_0x1d4b4e=_0x5b6f44&&void 0x0!==_0x5b6f44['forceValue']?_0x5b6f44['forceValue']:!_0xe8ce5c['value'];let _0x5b01c0=[];if(_0x1d4b4e){const _0x690eb=Array['from'](_0x13b76e['getSelectedBlocks']())['filter'](_0x1b5605=>oo(_0x1b5605)||function(_0x238d8a,_0x4e4de7){const _0x20ef5e=_0x4e4de7['checkChild'](_0x238d8a['parent'],'blockQuote'),_0x458cbd=_0x4e4de7['checkChild'](['$root','blockQuote'],_0x238d8a);return _0x20ef5e&&_0x458cbd;}(_0x1b5605,this['editor']['model']['schema']));_0x5b01c0=to(_0x690eb,_0xa6be94['model']);}else{const _0x2f73c4=Array['from'](_0x13b76e['getSelectedBlocks']())['filter'](_0x1acc77=>oo(_0x1acc77));_0x5b01c0=to(_0x2f73c4,_0xa6be94['model']);}_0xa6be94['model']['change'](()=>{for(const _0x54f0c9 of _0x5b01c0)_0x4f4973['markBlockFormat'](_0x54f0c9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d4b4e}]});});}),_0x4f4973['descriptionFactory']['registerDescriptionCallback'](_0x494721=>{const {data:_0x5aa07b}=_0x494721;if(_0x5aa07b&&'blockQuote'==_0x5aa07b['commandName']){const _0x37e85f=o(_0x309504,'ELEMENT_BLOCK_QUOTE');return _0x5aa07b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x309504,'*Set\x20format:*\x20%0',_0x37e85f)}:{'type':'format','content':o(_0x309504,'*Remove\x20format:*\x20%0',_0x37e85f)};}});}}function oo(_0x4f64f4){return'blockQuote'==_0x4f64f4['parent']['name'];}class G extends _0x5c469f{['afterInit'](){const _0x225e97=this['editor'],_0x1312f7=_0x225e97['locale'],_0x5af389=_0x225e97['plugins']['get']('TrackChangesEditing');_0x225e97['plugins']['has']('BookmarkEditing')&&(_0x5af389['enableCommand']('insertBookmark'),_0x5af389['enableDefaultAttributesIntegration']('updateBookmark'),_0x5af389['descriptionFactory']['registerDescriptionCallback'](_0x396151=>{if('insertion'!=_0x396151['type']&&'deletion'!=_0x396151['type']&&'attribute'!=_0x396151['type'])return;const _0x2d1466=_0x396151['getContainedElement']();if(null==_0x2d1466)return;if(!_0x2d1466['is']('element','bookmark'))return;const _0x462f44=_0x2d1466['getAttribute']('bookmarkId');if('insertion'==_0x396151['type'])return{'type':'insertion','content':o(_0x1312f7,'*Insert:*\x20%0','\x22'+_0x462f44+'\x22\x20'+o(_0x1312f7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x396151['type'])return{'type':'deletion','content':o(_0x1312f7,'*Remove:*\x20%0','\x22'+_0x462f44+'\x22\x20'+o(_0x1312f7,'ELEMENT_BOOKMARK'))};const {data:_0x24b54c}=_0x396151;if(!_0x24b54c||'bookmarkId'!=_0x24b54c['key'])return;return{'type':'format','content':o(_0x1312f7,'*Set\x20bookmark:*\x20%0','\x22'+_0x24b54c['newValue']+'\x22')};}));}}class L extends _0x5c469f{['afterInit'](){const _0x42ec43=this['editor'];_0x42ec43['plugins']['has']('CaseChange')&&(_0x42ec43['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42ec43['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42ec43['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x5c469f{['afterInit'](){const _0x21fa79=this['editor'];_0x21fa79['commands']['get']('ckbox')&&_0x21fa79['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5c469f{['afterInit'](){const _0x4a6a04=this['editor'];if(!_0x4a6a04['plugins']['has']('CodeBlock'))return;const _0x5d8884=_0x4a6a04['plugins']['get']('TrackChangesEditing'),_0x357b98=_0x4a6a04['locale'],_0x3d60d4=_0x4a6a04['config']['get']('codeBlock')['languages'],_0x156305=_0x4a6a04['commands']['get']('codeBlock');_0x5d8884['enableCommand']('indentCodeBlock'),_0x5d8884['enableCommand']('outdentCodeBlock'),_0x5d8884['enableCommand']('codeBlock',(_0xfec5fe,_0x1cef87={})=>{const _0x1b8398=_0x4a6a04['model'],_0x33c6d4=_0x4a6a04['model']['document']['selection'],_0x4bac5d=_0x1cef87&&void 0x0!==_0x1cef87['forceValue']?_0x1cef87['forceValue']:!_0x156305['value'];let _0x3b9fc7;_0x1cef87['language']||(_0x1cef87['language']=_0x3d60d4[0x0]['language']),_0x3b9fc7=_0x4bac5d?Array['from'](_0x33c6d4['getSelectedBlocks']())['filter'](_0x1d16fe=>co(_0x1d16fe)||function(_0x3e6aee,_0x81790e){if(_0x3e6aee['is']('rootElement')||_0x81790e['isLimit'](_0x3e6aee))return!0x1;return _0x81790e['checkChild'](_0x3e6aee['parent'],'codeBlock');}(_0x1d16fe,_0x1b8398['schema'])):Array['from'](_0x33c6d4['getSelectedBlocks']())['filter'](_0x1ab198=>co(_0x1ab198));const _0x32fe65=to(_0x3b9fc7,_0x1b8398);_0x1b8398['change'](()=>{for(const _0x3e4d05 of _0x32fe65)_0x5d8884['markBlockFormat'](_0x3e4d05,{'commandName':'codeBlock','commandParams':[{..._0x1cef87,'forceValue':_0x4bac5d}],'formatGroupId':'blockName'});});}),(_0x5d8884['descriptionFactory']['registerElementLabel']('codeBlock',_0x235c96=>o(_0x357b98,'ELEMENT_CODE_BLOCK',_0x235c96)),_0x5d8884['descriptionFactory']['registerDescriptionCallback'](_0xabd429=>{if('formatBlock'!=_0xabd429['type'])return;const _0xe5292a=_0x357b98['t'],{data:_0x406513}=_0xabd429;if(!_0x406513||'codeBlock'!=_0x406513['commandName'])return;const _0x38180c=_0x406513['commandParams'][0x0]['language'],_0x13ef81=_0xe5292a(_0x3d60d4['find'](_0x13de3b=>_0x13de3b['language']===_0x38180c)['label'])['toLowerCase']();return _0x406513['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x357b98,'*Set\x20format:*\x20%0',o(_0x357b98,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x13ef81+')')}:{'type':'format','content':o(_0x357b98,'*Remove\x20format:*\x20%0',o(_0x357b98,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1637dd){return'codeBlock'==_0x1637dd['name'];}class z extends _0x5c469f{['afterInit'](){const _0x229b43=this['editor'];if(!_0x229b43['plugins']['has']('CommentsEditing'))return;_0x229b43['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x5c469f{static get['requires'](){return[_0x208762];}['init'](){const _0x56b838=this['editor'],_0x3a846e=_0x56b838['plugins']['get']('TrackChangesEditing');_0x3a846e['enableCommand']('delete');const _0x25d6df=_0x56b838['commands']['get']('deleteForward');_0x3a846e['enableCommand']('deleteForward',(_0x4c64af,_0x10d66c={})=>{const _0x2de65f=_0x56b838['model']['createSelection'](_0x56b838['model']['document']['selection']);_0x2de65f['isCollapsed']&&_0x56b838['model']['modifySelection'](_0x2de65f,{'direction':'forward','unit':_0x10d66c['unit']});const _0x1dc8ae=_0x2de65f['getFirstRange'](),_0x405d60=_0x167977['fromRange'](_0x1dc8ae);let _0x593e58;_0x4c64af(_0x10d66c),_0x593e58='$graveyard'==_0x405d60['root']['rootName']?_0x56b838['model']['createRange'](_0x1dc8ae['start']):_0x56b838['model']['createRange'](_0x405d60['start'],_0x405d60['end']),_0x405d60['detach'](),_0x56b838['model']['enqueueChange'](_0x25d6df['buffer']['batch'],_0x4344f2=>{_0x25d6df['buffer']['lock'](),_0x4344f2['setSelection'](_0x4344f2['createRange'](_0x593e58['end'])),_0x25d6df['buffer']['unlock']();});});}}class W extends _0x5c469f{['afterInit'](){const _0x4ef17d=this['editor'];if(!_0x4ef17d['plugins']['has']('ListEditing'))return;const _0x3304e6=_0x4ef17d['locale'],_0x1b0bd8=_0x4ef17d['plugins']['get']('TrackChangesEditing'),_0x4d6846=_0x4ef17d['plugins']['has']('TodoListEditing'),_0x426872=!!_0x4ef17d['config']['get']('list.multiBlock');function _0x3432c4(_0x2ff59d){return{'type':'format','content':''+o(_0x3304e6,'*Set\x20format:*\x20%0',_0x2ff59d)};}function _0x57fbc6(_0x29bff5){return{'type':'format','content':''+o(_0x3304e6,'*Remove\x20format:*\x20%0',_0x29bff5)};}_0x1b0bd8['enableDefaultAttributesIntegration']('numberedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('bulletedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('customNumberedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('customBulletedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('indentList'),_0x1b0bd8['enableDefaultAttributesIntegration']('outdentList'),_0x1b0bd8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1b0bd8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x426872&&(_0x1b0bd8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1b0bd8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4d6846&&(_0x1b0bd8['enableDefaultAttributesIntegration']('todoList'),_0x1b0bd8['enableDefaultAttributesIntegration']('checkTodoList'),_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x192f3f=>{const {data:_0x5e5d27}=_0x192f3f;if(_0x5e5d27&&'todoListChecked'==_0x5e5d27['key'])return{'type':'format','content':_0x5e5d27['newValue']?o(_0x3304e6,'*Check\x20item*'):o(_0x3304e6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4c9c46=>{if(_0x4c9c46['batch']['isUndo'])return!0x1;let _0x450791=!0x1;const _0x2ebbc2=_0x1b0bd8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x351081=>'todoListChecked'===_0x1b0bd8['_getAttributeKey'](_0x351081));for(const _0x54a0b2 of _0x2ebbc2){'todo'!=_0x54a0b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1b0bd8['_findSuggestions'](_0x54a0b2['getFirstRange'](),'attribute')['find'](_0x17c823=>'listType'===_0x1b0bd8['_getAttributeKey'](_0x17c823['suggestion']))||(_0x4c9c46['removeMarker'](_0x54a0b2['getFirstMarker']()),_0x450791=!0x0));}return _0x450791;})),_0x1b0bd8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3304e6,'FORMAT_INDENT'));const _0x5b9271={'type':'format','content':''};_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x246acb=>{const {data:_0x2ee74a}=_0x246acb;if(!_0x2ee74a||'listType'!=_0x2ee74a['key'])return;let _0x5a06d1=_0x246acb['head'];for(;_0x5a06d1;){if(_0x5a06d1['data']&&(('listStyle'==_0x5a06d1['data']['key']||'listMarkerStyle'==_0x5a06d1['data']['key'])&&(_0x5a06d1['data']['newValue']&&'default'!=_0x5a06d1['data']['newValue']||'default'!=_0x5a06d1['data']['oldValue']&&!_0x2ee74a['newValue'])||!_0x426872&&_0x5a06d1['data']['key']==m))return _0x5b9271;_0x5a06d1=_0x5a06d1['next'];}if(null==_0x2ee74a['newValue'])switch(_0x2ee74a['oldValue']){case'bulleted':return _0x57fbc6(o(_0x3304e6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x57fbc6(o(_0x3304e6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x57fbc6(o(_0x3304e6,'ELEMENT_TODO_LIST'));}switch(_0x2ee74a['newValue']){case'bulleted':return _0x3432c4(o(_0x3304e6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3432c4(o(_0x3304e6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3432c4(o(_0x3304e6,'ELEMENT_TODO_LIST'));}}),_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x41a0a3=>{const {data:_0x53d89a}=_0x41a0a3;if(_0x53d89a&&'listIndent'==_0x53d89a['key'])return null==_0x53d89a['newValue']||null==_0x53d89a['oldValue']&&0x0==_0x53d89a['newValue']?_0x5b9271:void 0x0;}),_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x57081b=>{if('attribute'!=_0x57081b['type'])return;const {data:_0x4b1dcb}=_0x57081b;if(!_0x4b1dcb||'listItemId'!=_0x4b1dcb['key'])return;const _0xb0eb1c=Te(_0x57081b);return'newValue'==_0xb0eb1c?{'type':'format','content':o(_0x3304e6,'*Merge:*\x20list\x20item')}:'oldValue'==_0xb0eb1c?{'type':'format','content':o(_0x3304e6,'*Split:*\x20list\x20item')}:_0x5b9271;}),_0x4ef17d['model']['document']['registerPostFixer'](_0x80684e=>this['listItemIdFixer'](_0x80684e)),_0x4ef17d['model']['document']['registerPostFixer'](_0xe87224=>this['noTrackChangesFixer'](_0xe87224)),_0x4ef17d['model']['document']['on']('change:data',(_0x678999,_0x263c94)=>{if(_0x263c94['isUndo']||!_0x263c94['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x26999a){if(_0x26999a['batch']['isUndo']||!_0x26999a['batch']['isLocal'])return!0x1;let _0x954d88=!0x1;const _0x1900c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bdfda=>_0x5bdfda['data']&&'listItemId'==_0x5bdfda['data']['key'])['filter'](_0x9380b6=>_0x9380b6['data']['newValue']&&_0x9380b6['data']['oldValue']);for(const _0x26152f of _0x1900c9)Te(_0x26152f)||(_0x26999a['removeMarker'](_0x26152f['getFirstMarker']()),_0x954d88=!0x0);return _0x954d88;}['noTrackChangesFixer'](_0x565fc3){if(_0x565fc3['batch']['isUndo']||!_0x565fc3['batch']['isLocal'])return!0x1;const _0x29bc4f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x29bc4f['trackChangesCommand']['value'])return!0x1;let _0x426a69=!0x1;const _0x1a57b6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2020d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2fba5a=>'attribute'==_0x2fba5a['type'])['filter'](_0x40a2dd=>_0x1a57b6['includes'](_0x40a2dd['attributeKey']));if(0x0==_0x2020d1['length'])return _0x426a69;for(const _0x42b63c of _0x2020d1){const _0x3edbeb=_0x29bc4f['_findSuggestions'](_0x42b63c['range'],'attribute')['filter'](_0x55b8ca=>!_0x55b8ca['meta']['isNextTo'])['map'](_0xddad5e=>_0xddad5e['suggestion'])['filter'](_0x157e0e=>{const _0x15b2b0=_0x29bc4f['_getAttributeKey'](_0x157e0e);return _0x1a57b6['includes'](_0x15b2b0);});if(_0x3edbeb['length']){for(const _0x5727c4 of _0x3edbeb)_0x565fc3['removeMarker'](_0x5727c4['getFirstMarker']());_0x426a69=!0x0;}}return _0x426a69;}['assureChains'](){const _0x9959bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19f50a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3160cc;const _0x468b22=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c3a48=>{if(_0x1c3a48['data']['oldRange']||!_0x1c3a48['data']['newRange'])return null;if(!_0x1c3a48['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x289153}=_0x9959bd['_splitMarkerName'](_0x1c3a48['name']);if(!_0x9959bd['hasSuggestion'](_0x289153))return null;const _0x4da57b=_0x9959bd['getSuggestion'](_0x289153);return _0x19f50a['includes'](_0x4da57b['data']['key']);})['map'](_0x4de746=>{const {id:_0x9c836e}=_0x9959bd['_splitMarkerName'](_0x4de746['name']),_0xbcbef4=_0x9959bd['getSuggestion'](_0x9c836e);return _0x3160cc=_0xbcbef4['attributes']['groupId'],_0xbcbef4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x468b22['size'])return;const _0xbfff50=_0x9959bd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x96139b=>'attribute'==_0x96139b['type']&&_0x96139b['data']&&_0x19f50a['includes'](_0x96139b['data']['key'])&&_0x96139b['attributes']['groupId']!=_0x3160cc)['map'](_0x2eaad7=>({'listItem':_0x2eaad7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2eaad7['attributes']['groupId']})),_0x8be956=new Set();for(const {groupId:_0xc2aa70,listItem:_0x8ad481}of _0xbfff50)_0x468b22['has'](_0x8ad481)&&_0x8be956['add'](_0xc2aa70);for(const _0x1b6e65 of _0x9959bd['getSuggestions']())_0x8be956['has'](_0x1b6e65['attributes']['groupId'])&&_0x1b6e65['setAttribute']('groupId',_0x3160cc);}['_supportLegacySuggestions'](){const _0x368770=this['editor'],_0x3e7b70=_0x368770['locale'],_0x705230=_0x368770['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x705230['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2bd44a,_0x40e1be){const _0x396ebe=[];for(let _0x36b417 of _0x2bd44a)_0x36b417['start']['nodeAfter']===_0x36b417['end']['parent']&&(_0x36b417=_0x368770['model']['createRange'](_0x368770['model']['createPositionAt'](_0x36b417['start']['nodeAfter'],0x0))),_0x396ebe['push'](_0x36b417);_0x368770['model']['change'](_0x2280f6=>{const _0x46a25c=_0x368770['model']['document']['selection'],_0x47ac75=Array['from'](_0x46a25c['getRanges']())['map'](_0x55edda=>_0x167977['fromRange'](_0x55edda));_0x2280f6['setSelection'](_0x396ebe),_0x368770['commands']['get'](_0x40e1be['commandName'])['refresh'](),_0x40e1be['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x368770['execute'](_0x40e1be['commandName'],..._0x40e1be['commandParams']),_0x2280f6['setSelection'](_0x47ac75);for(const _0x1512c8 of _0x47ac75)_0x1512c8['detach']();});}),_0x705230['descriptionFactory']['registerElementLabel'](function(_0x3fc313){const _0x105022=!_0x368770['model']['schema']['isObject'](_0x3fc313),_0x31864a=_0x3fc313['previousSibling'],_0x5ca841=_0x3fc313['nextSibling'],_0x5e43fd=_0x3fc313['getAttribute']('listItemId'),_0xbbf2eb=!_0x31864a||_0x31864a['getAttribute']('listItemId')!==_0x5e43fd,_0x2ab7f3=!_0x5ca841||_0x5ca841['getAttribute']('listItemId')!==_0x5e43fd;return _0x105022&&Boolean(_0x5e43fd)&&_0xbbf2eb&&_0x2ab7f3;},_0x3969a4=>o(_0x3e7b70,'ELEMENT_LIST_ITEM',_0x3969a4));}['_registerLegacyDescription'](){const _0x2c465a=this['editor'],_0x5521b3=_0x2c465a['locale'];function _0x5bbfcf(_0x22ff86){const _0x43b677=_0x2c465a['commands']['get']('bulletedList')['value'],_0x5cc927=_0x2c465a['commands']['get']('numberedList')['value'];return'numberedList'===_0x22ff86?_0x43b677:_0x5cc927;}_0x2c465a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d4afe){if('formatBlock'!=_0x2d4afe['type'])return;const {data:_0x7d45c8}=_0x2d4afe;if(!_0x7d45c8)return;let _0x46ca12,_0x2d254c,_0x41c6fd,_0x417439;switch(_0x7d45c8['commandName']){case'bulletedList':_0x41c6fd=_0x7d45c8['commandParams'][0x0]['forceValue'],_0x417439=_0x5bbfcf(_0x7d45c8['commandName']),_0x46ca12=_0x41c6fd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x417439&&_0x2c465a['config']['get']('list.multiBlock')||(_0x46ca12='*Change\x20to:*\x20%0'),_0x2d254c={'type':'format','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41c6fd=_0x7d45c8['commandParams'][0x0]['forceValue'],_0x417439=_0x5bbfcf(_0x7d45c8['commandName']),_0x46ca12=_0x41c6fd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x417439&&_0x2c465a['config']['get']('list.multiBlock')||(_0x46ca12='*Change\x20to:*\x20%0'),_0x2d254c={'type':'format','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x46ca12='*Indent:*\x20%0',_0x2d254c={'type':'format','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x46ca12=function(_0x5a8f70){const _0x194e88=_0x5a8f70['getFirstRange']();let _0x3822c8=_0x194e88['start']['nodeAfter'];for(;_0x3822c8&&_0x194e88['containsItem'](_0x3822c8);){if(_0x3822c8['getAttribute']('listIndent')>0x0)return!0x1;_0x3822c8=_0x3822c8['nextSibling'];}return!0x0;}(_0x2d4afe)?o(_0x5521b3,'*Format:*\x20remove\x20from\x20%0',o(_0x5521b3,function(_0x340016){return'ELEMENT_'+_0x340016['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d4afe))):o(_0x5521b3,'*Outdent:*\x20%0',o(_0x5521b3,'ELEMENT_LIST_ITEM')),_0x2d254c={'type':'format','content':_0x46ca12};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7d45c8['multipleBlocks']&&(_0x46ca12='*Merge:*\x20%0',_0x2d254c={'type':'deletion','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_LIST_ITEM'))});}return _0x2d254c;});}}function Te(_0x5a38e3){let _0x38a5a2=_0x5a38e3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38a5a2;){const _0x2f4ac8=_0x38a5a2['getAttribute']('listItemId');if(!_0x2f4ac8)return!0x1;if(_0x2f4ac8==_0x5a38e3['data']['newValue'])return'newValue';if(_0x2f4ac8==_0x5a38e3['data']['oldValue'])return'oldValue';_0x38a5a2=_0x38a5a2['previousSibling'];}return!0x1;}class H extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xcad536=this['editor']['config']['get']('list.properties'),_0x99ba9a=this['editor']['plugins']['get']('TrackChangesEditing');_0xcad536['styles']&&_0x99ba9a['enableDefaultAttributesIntegration']('listStyle'),_0xcad536['reversed']&&_0x99ba9a['enableDefaultAttributesIntegration']('listReversed'),_0xcad536['startIndex']&&_0x99ba9a['enableDefaultAttributesIntegration']('listStart');const _0x48ea1b={'type':'format','content':''};_0x99ba9a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d8ee9=this['editor']['locale'];_0x99ba9a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d8ee9,'FORMAT_LIST_REVERSED')),_0x99ba9a['descriptionFactory']['registerDescriptionCallback'](_0x51175f=>{const {data:_0x4cb4ce}=_0x51175f;if(_0x4cb4ce&&'listReversed'==_0x4cb4ce['key'])return null==_0x4cb4ce['newValue']||0x0==_0x4cb4ce['newValue']&&null==_0x4cb4ce['oldValue']?_0x48ea1b:void 0x0;}),_0x99ba9a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d8ee9,'FORMAT_LIST_START')),_0x99ba9a['descriptionFactory']['registerDescriptionCallback'](_0x4059f6=>{const {data:_0xd943dd}=_0x4059f6;if(_0xd943dd&&'listStart'==_0xd943dd['key'])return null==_0xd943dd['newValue']||0x1==_0xd943dd['newValue']&&null==_0xd943dd['oldValue']?_0x48ea1b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b26a5=>{if(_0x1b26a5['batch']['isUndo'])return!0x1;let _0xe843b8=!0x1;const _0x3fc102=_0x99ba9a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245272=>{const _0x5977f2=_0x99ba9a['_getAttributeKey'](_0x245272);return'listStart'==_0x5977f2||'listReversed'==_0x5977f2;});for(const _0x4d3542 of _0x3fc102){const _0x27e6c6=_0x4d3542['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x27e6c6||'customNumbered'==_0x27e6c6)continue;_0x99ba9a['_findSuggestions'](_0x4d3542['getFirstRange'](),'attribute')['find'](_0x1ef78e=>'listType'==_0x99ba9a['_getAttributeKey'](_0x1ef78e['suggestion']))||(_0x1b26a5['removeMarker'](_0x4d3542['getFirstMarker']()),_0xe843b8=!0x0);}return _0xe843b8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5315a7){const _0x7b75a4=this['editor']['locale'],{data:_0x317c1f}=_0x5315a7,_0x17f6f9={'type':'format','content':''};if(!_0x317c1f||'listStyle'!=_0x317c1f['key'])return;if(!_0x317c1f['oldValue'])return'default'==_0x317c1f['newValue']?_0x17f6f9:{'type':'format','content':''+o(_0x7b75a4,'*Set\x20format:*\x20%0',o(_0x7b75a4,this['_getTranslationKeyForListStyle'](_0x317c1f['newValue'])))};if(!_0x317c1f['newValue']){if('default'==_0x317c1f['oldValue'])return _0x17f6f9;let _0x51dd15=_0x5315a7['head'];for(;_0x51dd15;){if(_0x51dd15['data']&&'listType'==_0x51dd15['data']['key']&&_0x51dd15['data']['newValue'])return _0x17f6f9;_0x51dd15=_0x51dd15['next'];}return{'type':'format','content':''+o(_0x7b75a4,'*Remove\x20format:*\x20%0',o(_0x7b75a4,this['_getTranslationKeyForListStyle'](_0x317c1f['oldValue'])))};}if('default'!=_0x317c1f['newValue'])return{'type':'format','content':''+o(_0x7b75a4,'*Set\x20format:*\x20%0',o(_0x7b75a4,this['_getTranslationKeyForListStyle'](_0x317c1f['newValue'])))};let _0x41fc77=_0x5315a7['head'];for(;_0x41fc77;){if(_0x41fc77['data']&&'listType'==_0x41fc77['data']['key']&&_0x41fc77['data']['newValue']&&_0x41fc77['data']['oldValue'])return _0x17f6f9;_0x41fc77=_0x41fc77['next'];}return{'type':'format','content':o(_0x7b75a4,'*Set\x20format:*\x20%0',o(_0x7b75a4,'ELEMENT_'+_0x5315a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x401a0d=this['editor'],_0x50a90d=_0x401a0d['locale'];_0x401a0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x115abe=>{if('formatBlock'!=_0x115abe['type'])return;const {data:_0x73ec02}=_0x115abe;if(!_0x73ec02)return;let _0x57a9d8,_0x1090b0;switch(_0x73ec02['commandName']){case'listStyle':_0x57a9d8='*Change\x20to:*\x20%0',_0x1090b0={'type':'format','content':o(_0x50a90d,_0x57a9d8,o(_0x50a90d,this['_getTranslationKeyForListStyle'](_0x73ec02['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57a9d8=_0x73ec02['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1090b0={'type':'format','content':o(_0x50a90d,_0x57a9d8)};break;case'listStart':_0x57a9d8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1090b0={'type':'format','content':o(_0x50a90d,_0x57a9d8,_0x73ec02['commandParams'][0x0]['startIndex'])};}return _0x1090b0;});}['_getTranslationKeyForListStyle'](_0x469f51){return'ELEMENT_'+function(_0x5b7c7e){if(ye['includes'](_0x5b7c7e))return'bulleted';if(Se['includes'](_0x5b7c7e))return'numbered';return null;}(_0x469f51)['toUpperCase']()+'_LIST_'+_0x469f51['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x5c469f{['afterInit'](){const _0x5b7109=this['editor'];_0x5b7109['commands']['get']('emoji')&&_0x5b7109['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x5c469f{static get['requires'](){return[_0x560292];}['init'](){const _0x194c90=this['editor'],_0x3a04f5=_0x194c90['plugins']['get']('TrackChangesEditing'),_0x8986d=_0x194c90['commands']['get']('enter');_0x3a04f5['enableCommand']('enter',()=>{_0x194c90['model']['change'](_0x5d1b79=>{const _0xdc7d18=_0x194c90['model']['document']['selection'],_0x2718e5=_0xdc7d18['getFirstPosition'](),_0x31d71e=_0x167977['fromRange'](_0xdc7d18['getFirstRange']());if(_0x8986d['enterBlock'](_0x5d1b79)){const _0x3238ea=_0x194c90['model']['createPositionAt'](_0x2718e5['parent']['nextSibling'],0x0),_0x2280e4=_0x5d1b79['createRange'](_0x2718e5,_0x3238ea);_0x3a04f5['markInsertion'](_0x2280e4);}else _0x5d1b79['setSelection'](_0x5d1b79['createRange'](_0x31d71e['end']));_0x31d71e['detach'](),_0x8986d['fire']('afterExecute',{'writer':_0x5d1b79});});});}}class Y extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x472731=this['editor']['plugins']['get']('TrackChangesEditing');_0x472731['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x472731['enableCommand']('findNext'),_0x472731['enableCommand']('findPrevious'),_0x472731['enableCommand']('replace'),_0x472731['enableCommand']('replaceAll');}['handleFindCommand'](_0x521dba,_0x34f9eb,_0x1ac741={}){const _0x4a3d78=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x521dba(_0x49d7f1=>{let _0x37bbaf=('string'==typeof _0x34f9eb?_0x4a3d78['findByTextCallback'](_0x34f9eb,_0x1ac741):_0x34f9eb)(_0x49d7f1);Array['isArray'](_0x37bbaf)&&(_0x37bbaf={'results':_0x37bbaf,'searchText':'string'==typeof _0x34f9eb?_0x34f9eb:''});const _0x3de599=_0x37bbaf['results']['filter'](_0x5379ba=>!0x1===this['_isInDeletionRange'](_0x5379ba,_0x49d7f1['item']));return{..._0x37bbaf,'results':_0x3de599};},_0x1ac741);}['_isInDeletionRange'](_0x24d46e,_0x51379c){const _0x10aafc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51379c,_0x24d46e['start']),this['editor']['model']['createPositionAt'](_0x51379c,_0x24d46e['end']));for(const _0x249e64 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x10aafc['getIntersection'](_0x249e64['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x5c469f{['afterInit'](){const _0x34644e=this['editor']['locale'],_0x234fb5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xba34b0,commandName:_0x205fed}of eo)this['editor']['plugins']['has'](_0xba34b0)&&_0x234fb5['enableDefaultAttributesIntegration'](_0x205fed);_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x34644e,'FORMAT_FONT_SIZE')),_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x34644e,'FORMAT_FONT_FAMILY')),_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x34644e,'FORMAT_FONT_COLOR')),_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x34644e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166df2=this['editor'],_0x1b2a4e=_0x166df2['locale'];_0x166df2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd660=>{const _0x1551aa=_0x1b2a4e['t'];if('formatInline'!=_0x2fd660['type'])return;const {data:_0x5580f0}=_0x2fd660;if(null!=_0x5580f0){if('fontSize'==_0x5580f0['commandName']){const _0xb642c5=_0x5580f0['commandParams'][0x0]['value'];if(_0xb642c5){const _0x35d82e=_0x1551aa(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xfe0e80=>_0xfe0e80['model']==_0xb642c5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20size:*\x20%0',_0x35d82e)};}return{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5580f0['commandName']){const _0x7abe51=_0x5580f0['commandParams'][0x0]['value'];return _0x7abe51?{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20family:*\x20%0',_0x7abe51)}:{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5580f0['commandName']){const _0x5cf030=_0x5580f0['commandParams'][0x0]['value'];if(_0x5cf030){const _0x16961f=_0x1cd192(this['editor']['config']['get']('fontColor.colors'))['find'](_0x43dde4=>_0x43dde4['model']==_0x5cf030);let _0xee8ab9=_0x5cf030,_0x12fb0a='';return _0x16961f&&(_0xee8ab9=_0x16961f['label'],_0x12fb0a=_0x1551aa(_0xee8ab9)['toLowerCase']()),{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20color:*\x20%0',_0x12fb0a)['trim'](),'color':{'value':_0x5cf030,'title':_0x12fb0a||_0xee8ab9}};}return{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5580f0['commandName']){const _0x5f0b1a=_0x5580f0['commandParams'][0x0]['value'];if(_0x5f0b1a){const _0x1ed53a=_0x1cd192(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4dced2=>_0x4dced2['model']==_0x5f0b1a);let _0x295d16=_0x5f0b1a,_0x5e4f8c='';return _0x1ed53a&&(_0x295d16=_0x1ed53a['label'],_0x5e4f8c=_0x1551aa(_0x295d16)['toLowerCase']()),{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20background\x20color:*\x20%0',_0x5e4f8c)['trim'](),'color':{'value':_0x5f0b1a,'title':_0x5e4f8c||_0x295d16}};}return{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x5c469f{['afterInit'](){const {plugins:_0x3d5b30}=this['editor'];_0x3d5b30['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3d5b30['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x386b00,plugins:_0x3b6b7b,commands:_0x5d803c}=this['editor'],_0x228394=_0x3b6b7b['get']('TrackChangesEditing');_0x5d803c['get']('footnotesStyle')&&_0x228394['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5d803c['get']('footnotesStart')&&_0x228394['enableDefaultAttributesIntegration']('footnotesStart'),_0x228394['registerBlockAttribute']('footnotesListStyle'),_0x228394['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x386b00,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x228394['registerBlockAttribute']('footnotesListStart'),_0x228394['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x386b00,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x125efe=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x704237,commands:_0x26936f}=this['editor'];_0x26936f['get']('insertFootnote')&&_0x125efe['enableCommand']('insertFootnote'),_0x125efe['descriptionFactory']['registerElementLabel']('footnoteRef',_0x5390bd=>o(_0x704237,'ELEMENT_FOOTNOTE_REF',_0x5390bd)),_0x125efe['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0xce9e80=>o(_0x704237,'ELEMENT_FOOTNOTE_DEFINITION',_0xce9e80)),_0x125efe['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x37ce40=>o(_0x704237,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x37ce40));}}class nt extends _0x5c469f{['afterInit'](){const _0x30deff=this['editor'],_0x46e1eb=_0x30deff['plugins']['get']('TrackChangesEditing'),_0x4e6276=_0x30deff['commands']['get']('copyFormat'),_0x3c8442=_0x30deff['commands']['get']('pasteFormat');_0x4e6276&&_0x3c8442&&(_0x46e1eb['enableDefaultAttributesIntegration']('pasteFormat'),_0x46e1eb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x219b6d=this['editor'],_0x429327=_0x219b6d['locale'];_0x219b6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f4bbe=>{if('formatBlock'!=_0x4f4bbe['type']&&'formatInline'!=_0x4f4bbe['type'])return;const {data:_0x4eb2bd}=_0x4f4bbe;if(_0x4eb2bd&&'pasteFormat'===_0x4eb2bd['commandName']){const _0x3e8cb7=[],_0x1171bb=_0x4eb2bd['commandParams'][0x0];for(const [_0x5863f8,_0x599adf]of Object['entries'](_0x1171bb))_0x3e8cb7['push'](ro(_0x219b6d,_0x5863f8,_0x599adf));return _0x3e8cb7['length']?{'type':'format','content':o(_0x429327,'*Set\x20format\x20to:*\x20%0',_0x3e8cb7['join'](',\x20'))}:{'type':'format','content':o(_0x429327,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2185f9,_0x7754ab,_0x5e6b0a){const _0x4351f1=_0x2185f9['locale']['t'],_0x11dc26=_0x7754ab['split'](/(?=[A-Z])/)['join']('\x20'),_0x902ea5=_0x4351f1(_0x11dc26['charAt'](0x0)['toUpperCase']()+_0x11dc26['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5e6b0a)return _0x902ea5;if('fontColor'===_0x7754ab||'fontBackgroundColor'===_0x7754ab){const _0x58e779=_0x1cd192(_0x2185f9['config']['get']('fontColor.colors'))['find'](_0x1ae79b=>_0x1ae79b['model']==_0x5e6b0a);return _0x902ea5+'\x20('+(_0x58e779?_0x4351f1(_0x58e779['label'])['toLowerCase']():_0x5e6b0a)+')';}if('fontSize'===_0x7754ab&&isNaN(parseFloat(_0x5e6b0a))){const _0x1fe9bf=_0x2185f9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2185f9['config']['get']('fontSize.options'))['find'](_0x17403d=>_0x17403d['model']==_0x5e6b0a);return _0x902ea5+'\x20('+(_0x1fe9bf?_0x4351f1(_0x1fe9bf['title'])['toLowerCase']():_0x5e6b0a)+')';}return _0x902ea5+'\x20('+_0x5e6b0a+')';}class it extends _0x5c469f{['_headingOptions'];['afterInit'](){const _0x1eb8b6=this['editor'];if(!_0x1eb8b6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1eb8b6['config']['get']('heading.options');const _0x30b82c=_0x1eb8b6['locale'],_0x474cfe=_0x1eb8b6['plugins']['get']('TrackChangesEditing');_0x474cfe['enableDefaultAttributesIntegration']('heading');for(const _0x2671a1 of this['_headingOptions'])'paragraph'!=_0x2671a1['model']&&_0x474cfe['descriptionFactory']['registerElementLabel'](_0x2671a1['model'],_0x2d283e=>{const _0x18ee1f=this['_getHeadingLevel'](_0x2671a1['model']);return null!==_0x18ee1f?_0x414ec7(_0x2d283e,_0x18ee1f):_0x3599ee(_0x2d283e,_0x2671a1['title']);});function _0x414ec7(_0x9f9b24,_0x28535e){return o(_0x30b82c,'ELEMENT_HEADING',[_0x9f9b24,_0x28535e]);}function _0x3599ee(_0x19c846,_0x2446a4){return o(_0x30b82c,'ELEMENT_HEADING_CUSTOM',[_0x19c846,_0x2446a4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bd9f9=this['editor'],_0x5f4895=_0x3bd9f9['locale'];function _0x1ceed2(_0x29459d,_0x23e521){return o(_0x5f4895,'ELEMENT_HEADING_CUSTOM',[_0x29459d,_0x23e521]);}_0x3bd9f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x485456=>{if('formatBlock'!=_0x485456['type'])return;const {data:_0x4dfb29}=_0x485456;if(_0x4dfb29&&'heading'==_0x4dfb29['commandName']){const _0x6f7ea=_0x4dfb29['commandParams'][0x0]['value'],_0x1adab3=this['_getHeadingLevel'](_0x6f7ea);if(null!==_0x1adab3)return{'type':'format','content':o(_0x5f4895,'*Change\x20to:*\x20%0',(_0x2336ee=0x1,_0x2fbc6d=_0x1adab3,o(_0x5f4895,'ELEMENT_HEADING',[_0x2336ee,_0x2fbc6d])))};const _0x376918=this['_headingOptions']['find'](_0x5a5357=>_0x5a5357['model']===_0x6f7ea)['title'];return{'type':'format','content':o(_0x5f4895,'*Change\x20to:*\x20%0',_0x1ceed2(0x1,_0x376918))};}var _0x2336ee,_0x2fbc6d;});}['_getHeadingLevel'](_0x57b046){const _0x487e6e=_0x57b046['match'](/^heading(\d+)/);if(_0x487e6e)return _0x487e6e[0x1];const _0x104668=this['_headingOptions']?.['find'](_0xdf7507=>_0xdf7507['model']==_0x57b046);if(_0x104668&&_0x104668['view']){const _0x4383e4=_0x104668['view'],_0x197421=(_0x4383e4['name']??_0x4383e4)['match'](/^h(\d+)/);if(_0x197421)return _0x197421[0x1];}return null;}}class et extends _0x5c469f{['afterInit'](){const _0x1fe387=this['editor'];if(!_0x1fe387['plugins']['has']('HighlightEditing'))return;const _0xdfb6b5=_0x1fe387['plugins']['get']('TrackChangesEditing'),_0x2bd158=_0x1fe387['locale'];_0xdfb6b5['enableDefaultAttributesIntegration']('highlight'),_0xdfb6b5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2bd158,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5734cc=this['editor'],_0x26382d=_0x5734cc['locale'];_0x5734cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dff1a=>{if('formatInline'!=_0x4dff1a['type'])return;const {data:_0x4cc959}=_0x4dff1a;if(_0x4cc959&&'highlight'==_0x4cc959['commandName']){const _0x8bdbe8=_0x26382d['t'],_0x101d75=_0x4cc959['commandParams'][0x0]['value'];if(_0x101d75){const _0x2de34e=_0x5734cc['config']['get']('highlight.options')['find'](_0x3f7c4f=>_0x3f7c4f['model']==_0x101d75),_0x36c754=_0x8bdbe8(_0x2de34e['title'])['toLowerCase']();return{'type':'format','content':o(_0x26382d,'*Set\x20highlight:*\x20%0',_0x36c754),'color':{'value':_0x2de34e['color'],'title':_0x2de34e['title']}};}return{'type':'format','content':o(_0x26382d,'*Remove\x20highlight*',o(_0x26382d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5c469f{['afterInit'](){const _0x265b7c=this['editor'];if(!_0x265b7c['plugins']['has']('HorizontalLineEditing'))return;_0x265b7c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3df594=_0x265b7c['plugins']['get']('TrackChangesEditing'),_0x83bbf5=_0x265b7c['locale'];_0x3df594['descriptionFactory']['registerElementLabel']('horizontalLine',_0x194706=>o(_0x83bbf5,'ELEMENT_HORIZONTAL_LINE',_0x194706));}}class ot extends _0x5c469f{['afterInit'](){const _0x5c8629=this['editor'];if(!_0x5c8629['plugins']['has']('HtmlEmbed'))return;const _0x48477a=_0x5c8629['plugins']['get']('TrackChangesEditing'),_0x3422b1=_0x5c8629['locale'];_0x48477a['descriptionFactory']['registerElementLabel']('rawHtml',_0x21a86b=>o(_0x3422b1,'ELEMENT_HTML_EMBED',_0x21a86b)),_0x48477a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x48477a['descriptionFactory']['registerDescriptionCallback'](_0x377add=>{if('attribute'!=_0x377add['type'])return;const {data:_0xab36b6}=_0x377add;if(_0xab36b6&&'value'==_0xab36b6['key']&&_0x377add['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4024db=o(_0x3422b1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3422b1,'*Change\x20%0\x20content*',_0x4024db)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0f69=this['editor'],_0x2e9097=_0x4c0f69['locale'];_0x4c0f69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bfe0a=>{if('formatBlock'!=_0x5bfe0a['type'])return;const {data:_0x11d131}=_0x5bfe0a;if(_0x11d131&&'htmlEmbed'==_0x11d131['commandName']){const _0x1360cd=o(_0x2e9097,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2e9097,'*Change\x20%0\x20content*',_0x1360cd)};}});}}class rt extends _0x5c469f{['afterInit'](){const _0x1196dc=this['editor'];if(!_0x1196dc['plugins']['has']('ImageEditing'))return;const _0x1fe4fb=_0x1196dc['plugins']['get']('TrackChangesEditing'),_0x277734=_0x1196dc['plugins']['get']('ImageUtils'),_0x5793ca=_0x1196dc['locale'];_0x1fe4fb['enableCommand']('insertImage'),_0x1fe4fb['descriptionFactory']['registerElementLabel']('imageBlock',_0x503fbc=>o(_0x5793ca,'ELEMENT_IMAGE',_0x503fbc)),_0x1fe4fb['descriptionFactory']['registerElementLabel']('imageInline',_0x518ad3=>o(_0x5793ca,'ELEMENT_INLINE_IMAGE',_0x518ad3)),_0x1fe4fb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5793ca,'ELEMENT_CAPTION')),_0x1196dc['plugins']['has']('ImageUploadEditing')&&_0x1fe4fb['enableCommand']('uploadImage'),_0x1196dc['plugins']['has']('ImageBlockEditing')&&_0x1196dc['plugins']['has']('ImageInlineEditing')&&(_0x1fe4fb['enableCommand']('imageTypeInline',(_0x5b7f40,_0x45b4aa)=>{const _0x5633dc=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']);_0x1196dc['model']['change'](()=>{_0x1fe4fb['markBlockFormat'](_0x5633dc,{'commandName':'imageTypeInline','commandParams':[_0x45b4aa]},[],'convertBlockImageToInline');});}),_0x1fe4fb['enableCommand']('imageTypeBlock',(_0x516f6c,_0x31a1cd)=>{_0x1196dc['model']['change'](_0x1d9795=>{let _0x18aa80=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x4e6ae3=_0x1d9795['createRangeOn'](_0x18aa80);const _0x4adb7d=_0x461c02['fromPosition'](_0x4e6ae3['start'],'toPrevious'),_0x482167=_0x461c02['fromPosition'](_0x4e6ae3['end'],'toNext');_0x1fe4fb['forceDefaultExecution'](()=>_0x516f6c(_0x31a1cd)),_0x18aa80=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x4e6ae3=_0x1d9795['createRangeOn'](_0x18aa80);const _0x410302=_0x1d9795['createRange'](_0x4adb7d,_0x482167);_0x4adb7d['detach'](),_0x482167['detach'](),_0x1fe4fb['markBlockFormat'](_0x18aa80,{'commandName':'imageTypeInline','commandParams':[_0x31a1cd]},[],'convertInlineImageToBlock'),_0x410302['start']['isBefore'](_0x4e6ae3['start'])&&_0x1fe4fb['markInsertion'](_0x1d9795['createRange'](_0x410302['start'],_0x4e6ae3['start']),'convertInlineImageToBlock'),_0x4e6ae3['end']['isBefore'](_0x410302['end'])&&_0x1fe4fb['markInsertion'](_0x1d9795['createRange'](_0x4e6ae3['end'],_0x410302['end']),'convertInlineImageToBlock');});}),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1fe4fb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4a16e0])=>{const _0x19c4dc=_0x1fe4fb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x447f3d=_0x4a16e0['start'],_0x2a62c2=_0x4a16e0['end'];const _0x277c68=_0x1196dc['model']['schema']['getNearestSelectionRange'](_0x447f3d,'backward'),_0x8eb210=_0x1196dc['model']['schema']['getNearestSelectionRange'](_0x2a62c2,'forward');_0x277c68['isCollapsed']&&(_0x447f3d=_0x277c68['start']),_0x8eb210['isCollapsed']&&(_0x2a62c2=_0x8eb210['end']),_0x19c4dc([_0x1196dc['model']['createRange'](_0x447f3d,_0x2a62c2)]);}),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf0529f),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf0529f)),_0x1196dc['plugins']['has']('ImageCaptionEditing')&&(_0x1fe4fb['enableCommand']('toggleImageCaption',(_0x1a5c35,_0x35469a)=>{const _0x1ab8af=_0x1196dc['plugins']['get']('ImageCaptionUtils');let _0x347fcc=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x50125c=_0x1ab8af['getCaptionFromImageModelElement'](_0x347fcc);_0x1196dc['model']['change'](()=>{if(_0x50125c)return void _0x1fe4fb['markDeletion'](_0x1196dc['model']['createRangeOn'](_0x50125c));const _0x15685d=_0x277734['isBlockImage'](_0x347fcc);_0x1a5c35(_0x35469a),_0x347fcc=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x50125c=_0x1ab8af['getCaptionFromImageModelElement'](_0x347fcc),_0x1fe4fb['markInsertion'](_0x1196dc['model']['createRangeOn'](_0x50125c),_0x15685d?null:'imageCaption');});}),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf0529f));const _0x542eb2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1176d6(_0x1f038f,_0x23ac96){const _0x447518=_0x542eb2['findIndex'](({type:_0x192a3f,subType:_0x8d25f0})=>_0x1f038f['type']==_0x192a3f&&_0x1f038f['subType']==_0x8d25f0),_0x44f234=_0x542eb2['findIndex'](({type:_0x2e30ca,subType:_0x5d4ec7})=>_0x23ac96['type']==_0x2e30ca&&_0x23ac96['subType']==_0x5d4ec7);if(_0x447518<0x0||_0x44f234<0x0)return!0x1;const _0x330c0f=_0x1f038f['getFirstRange'](),_0x31e77f=_0x23ac96['getFirstRange']();if((0x0==_0x447518||0x1==_0x447518)&&0x2==_0x44f234&&_0x330c0f['isIntersecting'](_0x31e77f))return!0x0;if(0x2==_0x447518&&0x3==_0x44f234){const _0x3b61aa=_0x1fe4fb['_findSuggestions'](_0x330c0f,'insertion')['filter'](({suggestion:_0x17890e,meta:_0x1c71fe})=>_0x1c71fe['isOwn']&&'convertInlineImageToBlock'==_0x17890e['subType']);if(_0x3b61aa['length']>0x1&&_0x31e77f['end']['isEqual'](_0x330c0f['start']))return!0x0;if(0x1==_0x3b61aa['length']&&(_0x330c0f['start']['isEqual'](_0x31e77f['end'])||_0x330c0f['end']['isEqual'](_0x31e77f['start'])))return!0x0;}if(0x3==_0x447518&&0x3==_0x44f234&&_0x330c0f['start']['isBefore'](_0x31e77f['start'])){const _0x97d4c2=_0x330c0f['end']['nodeAfter'],_0x103578=_0x31e77f['start']['nodeBefore'];return _0x277734['isBlockImage'](_0x97d4c2)&&_0x97d4c2===_0x103578;}return!0x1;}function _0xf0529f(_0x3750e5,_0x33addc){return _0x1176d6(_0x3750e5,_0x33addc)?[_0x3750e5,_0x33addc]:_0x1176d6(_0x33addc,_0x3750e5)?[_0x33addc,_0x3750e5]:null;}_0x1196dc['plugins']['has']('ImageResize')&&(_0x1fe4fb['enableDefaultAttributesIntegration']('resizeImage'),_0x1fe4fb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5793ca,'FORMAT_IMAGE_SIZE'))),_0x1196dc['plugins']['has']('ImageTextAlternativeEditing')&&_0x1fe4fb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1196dc['plugins']['has']('PictureEditing')&&_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x5c2149=>{if('attribute'!=_0x5c2149['type'])return;const {data:_0x4042a2}=_0x5c2149;return _0x4042a2&&'sources'==_0x4042a2['key']?{'type':'format','content':''}:void 0x0;}),_0x1196dc['plugins']['has']('ImageSizeAttributes')&&_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x7af52c=>{if('attribute'!=_0x7af52c['type'])return;const {data:_0x472330}=_0x7af52c;return!_0x472330||'width'!=_0x472330['key']&&'height'!=_0x472330['key']?void 0x0:{'type':'format','content':''};}),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x292736=>{if(!!_0x542eb2['find'](({type:_0x542f38,subType:_0x5451ce})=>_0x292736['type']==_0x542f38&&_0x292736['subType']==_0x5451ce))return _0x292736['previous']?{}:void 0x0;}),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x57cff2=>{if('insertion'==_0x57cff2['type']||'deletion'==_0x57cff2['type']){const _0x4ff457=_0x57cff2['getContainedElement']();if(_0x4ff457&&_0x4ff457['is']('element','caption'))return{'type':'insertion'==_0x57cff2['type']?'addObject':'removeObject','element':_0x4ff457,'quantity':0x1};}}),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x59e99c=>'formatBlock'==_0x59e99c['type']&&'convertInlineImageToBlock'==_0x59e99c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x59e99c['type']&&'convertBlockImageToInline'==_0x59e99c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x405ec6=>{if('attribute'!=_0x405ec6['type'])return;const {data:_0x2f0953}=_0x405ec6;if(!_0x2f0953||'alt'!=_0x2f0953['key'])return;const _0x50e9f4=_0x2f0953['newValue'];return _0x50e9f4?{'type':'format','content':o(_0x5793ca,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50e9f4+'\x22')}:{'type':'format','content':o(_0x5793ca,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3515b7=this['editor'],_0x30827d=_0x3515b7['locale'];_0x3515b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x468db0=>{if('formatBlock'!=_0x468db0['type']&&'formatInline'!=_0x468db0['type'])return;const {data:_0x4caa8c}=_0x468db0;if(_0x4caa8c){if('imageTextAlternative'==_0x4caa8c['commandName']){const _0x4c3da7=_0x4caa8c['commandParams'][0x0]['newValue'];return _0x4c3da7?{'type':'format','content':o(_0x30827d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c3da7+'\x22')}:{'type':'format','content':o(_0x30827d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4caa8c['commandName']){const _0x379ea7=_0x4caa8c['commandParams'][0x0]['width'];return _0x379ea7?{'type':'format','content':o(_0x30827d,'*Set\x20image\x20width:*\x20%0',_0x379ea7)}:{'type':'format','content':o(_0x30827d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd27d91=this['editor']['locale'],_0x446330=this['editor']['plugins']['get']('TrackChangesEditing');_0x446330['enableDefaultAttributesIntegration']('replaceImageSource'),_0x446330['descriptionFactory']['registerDescriptionCallback'](_0x21530f=>{if('attribute'!=_0x21530f['type'])return;const {data:_0x572f41}=_0x21530f;return _0x572f41&&'src'==_0x572f41['key']?_0x572f41['newValue']&&_0x572f41['oldValue']?{'type':'format','content':o(_0xd27d91,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2915bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2915bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2915bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2915bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2915bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b46e6=this['editor'],_0x3d291e=_0x3b46e6['locale'];_0x3b46e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x307f0f=>{if('formatBlock'!=_0x307f0f['type']&&'formatInline'!=_0x307f0f['type'])return;const {data:_0x37a9f6}=_0x307f0f;if(!_0x37a9f6||'replaceImageSource'!=_0x37a9f6['commandName'])return;return{'type':'format','content':o(_0x3d291e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5c469f{['afterInit'](){const _0x57d1a5=this['editor'];if(!_0x57d1a5['plugins']['has']('ImageStyleEditing'))return;const _0x4aaa9c=_0x57d1a5['plugins']['get']('TrackChangesEditing'),_0x40ebd6=_0x57d1a5['plugins']['get']('ImageUtils'),_0x233954={};_0x4aaa9c['enableCommand']('imageStyle',(_0xe6b1e9,_0x1beb0d)=>{const _0xab42bd=_0x57d1a5['plugins']['get']('Users')['me'],_0x2eb433=_0x57d1a5['commands']['get']('imageStyle');let _0x917f37=_0x40ebd6['getClosestSelectedImageElement'](_0x57d1a5['model']['document']['selection']),_0x14f9c0=_0x57d1a5['model']['createRangeOn'](_0x917f37),_0x2a8497=_0x2eb433['value'];if(_0x2a8497==_0x1beb0d['value'])return;const _0x5b0851={'commandName':'imageStyle','commandParams':[_0x1beb0d],'formatGroupId':_0xe7a85c()};_0x57d1a5['model']['change'](()=>{if(_0x4aaa9c['getSuggestions']()['filter'](_0x1a05ad=>_0x1a05ad['isInContent']&&_0xab42bd==_0x1a05ad['author']&&('formatBlock'==_0x1a05ad['type']||'formatInline'==_0x1a05ad['type'])&&('imageStylePreApply'==_0x1a05ad['subType']||'imageStylePostApply'==_0x1a05ad['subType'])&&_0x1a05ad['getFirstRange']()['isEqual'](_0x14f9c0))['forEach'](_0x356428=>_0x4aaa9c['discardSuggestion'](_0x356428['head'])),_0x917f37=_0x40ebd6['getClosestSelectedImageElement'](_0x57d1a5['model']['document']['selection']),_0x14f9c0=_0x57d1a5['model']['createRangeOn'](_0x917f37),_0x2eb433['refresh'](),_0x57d1a5['commands']['get']('imageTypeInline')['refresh'](),_0x57d1a5['commands']['get']('imageTypeBlock')['refresh'](),_0x2a8497=_0x2eb433['value'],_0x2a8497!=_0x1beb0d['value'])return _0x40ebd6['isInlineImage'](_0x917f37)&&_0x2eb433['shouldConvertImageType'](_0x1beb0d['value'],_0x917f37)?(_0xe6b1e9({..._0x1beb0d,'setImageSizes':!0x1}),_0x917f37=_0x40ebd6['getClosestSelectedImageElement'](_0x57d1a5['model']['document']['selection']),void _0x4aaa9c['markBlockFormat'](_0x917f37,{..._0x5b0851,'commandReversedParams':[{'value':_0x2a8497||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x40ebd6['isBlockImage'](_0x917f37)?_0x4aaa9c['markBlockFormat'](_0x917f37,_0x5b0851,[],'imageStylePostApply'):_0x4aaa9c['markInlineFormat'](_0x14f9c0,_0x5b0851,'imageStylePostApply'));});});for(const _0x236da9 of _0x57d1a5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x233954[_0x236da9['name']]=_0x236da9['title']['toLowerCase']();_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x374019])=>{_0x40ebd6['setImageNaturalSizeAttributes'](_0x374019['getContainedElement']());}),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6c2d69,_0xbdd33e)=>{_0x4aaa9c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6c2d69,{'commandName':_0xbdd33e['commandName'],'commandParams':_0xbdd33e['commandReversedParams']});}),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x229aa1,_0x55d7ee){if(_0x1c536c(_0x229aa1,_0x55d7ee))return[_0x229aa1,_0x55d7ee];if(_0x1c536c(_0x55d7ee,_0x229aa1))return[_0x55d7ee,_0x229aa1];return null;});const _0x3a8a2a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c536c(_0x3846d8,_0x5608eb){const _0x22f44f=_0x3a8a2a['findIndex'](({type:_0x3893f1,subType:_0x5ea2fc})=>_0x3846d8['type']==_0x3893f1&&_0x3846d8['subType']==_0x5ea2fc),_0x24c6fb=_0x3a8a2a['findIndex'](({type:_0x5e0eb3,subType:_0x5d83a0})=>_0x5608eb['type']==_0x5e0eb3&&_0x5608eb['subType']==_0x5d83a0);if(_0x22f44f<0x0||_0x24c6fb<0x0)return!0x1;const _0x3a43b6=_0x3846d8['getFirstRange'](),_0xb4b327=_0x5608eb['getFirstRange']();if((0x0==_0x22f44f||0x1==_0x22f44f)&&0x2==_0x24c6fb&&_0x3a43b6['isIntersecting'](_0xb4b327))return!0x0;if(0x2==_0x22f44f&&0x3==_0x24c6fb){const _0x213847=_0x4aaa9c['_findSuggestions'](_0x3a43b6,'insertion')['filter'](({suggestion:_0x3d59f0,meta:_0x452124})=>_0x452124['isOwn']&&'convertInlineImageToBlock'==_0x3d59f0['subType']);if(_0x213847['length']>0x1&&_0xb4b327['end']['isEqual'](_0x3a43b6['start']))return!0x0;if(0x1==_0x213847['length']&&(_0x3a43b6['start']['isEqual'](_0xb4b327['end'])||_0x3a43b6['end']['isEqual'](_0xb4b327['start'])))return!0x0;}if(0x3==_0x22f44f&&0x3==_0x24c6fb&&_0x3a43b6['start']['isBefore'](_0xb4b327['start'])){const _0x1ec1a0=_0x3a43b6['end']['nodeAfter'],_0x5e3139=_0xb4b327['start']['nodeBefore'];return _0x40ebd6['isBlockImage'](_0x1ec1a0)&&_0x1ec1a0===_0x5e3139;}return!0x1;}_0x57d1a5['model']['document']['registerPostFixer'](()=>{let _0x425a0f=!0x1;const _0x13b05e=Array['from'](_0x57d1a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6328c7,data:_0x3da283}of _0x13b05e){const {group:_0xe54ccc,type:_0x519947,subType:_0x45ffc4,id:_0x19149c}=_0x4aaa9c['_splitMarkerName'](_0x6328c7);if('suggestion'==_0xe54ccc&&_0x4aaa9c['hasSuggestion'](_0x19149c)){if('formatBlock'==_0x519947&&('imageStylePreApply'==_0x45ffc4||'imageStylePostApply'==_0x45ffc4)){const _0x36e08e=_0x4aaa9c['getSuggestion'](_0x19149c);if(_0x3da283['newRange']){const _0x267c04=_0x36e08e['getFirstRange']()['getContainedElement']();if(_0x40ebd6['isBlockImage'](_0x267c04))continue;_0x4aaa9c['discardSuggestion'](_0x36e08e),_0x425a0f=!0x0;}}if('insertion'==_0x519947&&'imageCaption'==_0x45ffc4&&!_0x3da283['newRange']){const _0x272aae=_0x4aaa9c['getSuggestion'](_0x19149c);_0x272aae['next']&&_0x272aae['next']['isInContent']&&(_0x4aaa9c['discardSuggestion'](_0x272aae['next']),_0x425a0f=!0x0);}}}return _0x425a0f;}),this['_registerLegacyDescription'](_0x233954);}['_registerLegacyDescription'](_0x2e9e1a){const _0x5b40b8=this['editor'],_0x42432f=_0x5b40b8['locale'];_0x5b40b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5858c7=>{if('formatBlock'!=_0x5858c7['type']&&'formatInline'!=_0x5858c7['type'])return;const {data:_0x1b195c}=_0x5858c7;if(!_0x1b195c||'imageStyle'!=_0x1b195c['commandName'])return;const _0x74db7d=_0x1b195c['commandParams'][0x0]['value'];return _0x4863b9('side'===_0x74db7d?o(_0x42432f,'FORMAT_SIDE_IMAGE'):_0x2e9e1a[_0x74db7d]||_0x74db7d);function _0x4863b9(_0x570538){return{'type':'format','content':o(_0x42432f,'*Format:*\x20%0',_0x570538)};}});}}class ut extends _0x5c469f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x268c4f){super(_0x268c4f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x505219=this['editor'],_0x3cbc64=_0x505219['commands']['get']('importWord'),_0x37384f=_0x505219['commands']['get']('trackChanges');_0x3cbc64&&(_0x3cbc64['on']('execute',(_0x44da1a,[,_0x45e597])=>{this['_trackChangesValueDuringImport']=_0x37384f['value'],_0x45e597['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3cbc64,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3cbc64,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x37384f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x505219['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e6334,_0x83c83f){const {suggestions:_0xdc419d}=_0x83c83f,_0x4c0327=this['editor']['commands']['get']('trackChanges'),_0x6a4489=_0x4c0327['value'];this['_trackChangesValueDuringImport']!==_0x6a4489&&(_0x4c0327['execute'](),this['_trackChangesExecuted']=!0x0),_0xdc419d&&_0xdc419d['forEach'](({id:_0x2c42e9,type:_0x462131,author:_0x26f386,created_at:_0x29f482})=>{const _0x1e2efe={'id':_0x2c42e9,'type':_0x462131,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26f386,'createdAt':_0x29f482?new Date(_0x29f482):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1e2efe);});}}class ft extends _0x5c469f{['afterInit'](){const _0x59b980=this['editor'],_0x2be488=_0x59b980['plugins']['get']('TrackChangesEditing');if(_0x59b980['plugins']['has']('IndentEditing')&&(_0x2be488['enableCommand']('indent'),_0x2be488['enableCommand']('outdent')),_0x59b980['plugins']['has']('IndentBlock')){for(const _0x339381 of['indentBlock','outdentBlock'])_0x2be488['enableDefaultAttributesIntegration'](_0x339381);}const _0x4da12b=_0x59b980['locale'];_0x2be488['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4da12b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5195a5=this['editor'],_0x25c0a6=_0x5195a5['locale'],_0x2e7323=_0x5195a5['plugins']['get']('TrackChangesEditing');_0x2e7323['descriptionFactory']['registerDescriptionCallback'](_0x1424b6=>{if('formatBlock'!=_0x1424b6['type'])return;const {data:_0x9cc536}=_0x1424b6;if(!_0x9cc536)return;if('indentBlock'!=_0x9cc536['commandName']&&'outdentBlock'!=_0x9cc536['commandName'])return;const _0x325b20=_0x1424b6['getItems']()[0x0],_0x26e9a8=_0x2e7323['descriptionFactory']['getItemLabel'](_0x325b20);return'indentBlock'==_0x9cc536['commandName']?{'type':'format','content':o(_0x25c0a6,'*Indent:*\x20%0',_0x26e9a8)}:'outdentBlock'==_0x9cc536['commandName']?{'type':'format','content':o(_0x25c0a6,'*Outdent:*\x20%0',_0x26e9a8)}:void 0x0;});}}class ht extends _0x5c469f{static get['requires'](){return[_0x5e85b6];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5c469f{['afterInit'](){const _0x30abf9=this['editor'];if(!_0x30abf9['plugins']['has']('LinkEditing'))return;const _0x25aabb=_0x30abf9['plugins']['get']('TrackChangesEditing'),_0x3e4055=_0x30abf9['commands']['get']('link');_0x25aabb['enableDefaultAttributesIntegration']('link'),_0x25aabb['enableDefaultAttributesIntegration']('unlink');for(const _0x3836df of _0x3e4055['manualDecorators'])_0x25aabb['descriptionFactory']['registerAttributeLabel'](_0x3836df['id'],'link\x20('+_0x3836df['label']['toLowerCase']()+')');_0x25aabb['descriptionFactory']['registerDescriptionCallback'](_0xf282fc=>{if('attribute'!=_0xf282fc['type'])return;const {data:_0x2732ad}=_0xf282fc;if(!_0x2732ad||'linkHref'!=_0x2732ad['key'])return;const _0x4975e4=_0x2732ad['newValue'],_0x43e72c=_0x30abf9['locale'];return{'type':'format','content':null==_0x4975e4?o(_0x43e72c,'*Remove\x20link*'):o(_0x43e72c,'*Set\x20link:*\x20%0','\x22'+_0x4975e4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a7408=this['editor'],_0xce4816=_0x1a7408['locale'];_0x1a7408['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdb3a4b=>{if('formatInline'!=_0xdb3a4b['type'])return;const {data:_0x26959c}=_0xdb3a4b;if(_0x26959c){if('link'==_0x26959c['commandName']){const _0x3e7dba=_0x26959c['commandParams'][0x0];return{'type':'format','content':o(_0xce4816,'*Set\x20link:*\x20%0','\x22'+_0x3e7dba+'\x22')};}return'unlink'==_0x26959c['commandName']?{'type':'format','content':o(_0xce4816,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5c469f{['afterInit'](){const _0x3b7651=this['editor'],_0x3d1dec=_0x3b7651['locale'];if(!_0x3b7651['plugins']['has']('LegacyListEditing'))return;const _0x48590f=_0x3b7651['plugins']['get']('TrackChangesEditing'),_0x3c90a9=_0x3b7651['plugins']['has']('LegacyTodoListEditing');function _0x86fdb4(_0x3a4340){return()=>{const _0x3c52f0=_0x3b7651['model']['document']['selection'],_0x289004=_0x3b7651['commands']['get'](_0x3a4340);if(_0x289004['value'])return void _0x3b7651['execute']('paragraph',{});const _0x5a3606=_0x3a4340['slice'](0x0,-0x4),_0x2384be=function(_0x269dfb,_0x1ff006,_0x30b82a){let _0x527c16=Array['from'](_0x269dfb)['filter'](_0x48c19e=>function(_0xf22470,_0x36612c){return _0x36612c['checkChild'](_0xf22470['parent'],'listItem')&&!_0x36612c['isObject'](_0xf22470);}(_0x48c19e,_0x30b82a));_0x527c16=_0x527c16['filter'](_0x3f4c18=>!_0x3f4c18['is']('element','listItem')||_0x3f4c18['getAttribute']('listType')!=_0x1ff006);const _0x502909=new Set();for(const _0x40edf2 of _0x527c16)_0x40edf2['is']('element','listItem')?_0x502909['add'](Le(_0x40edf2)):_0x502909['add'](_0x40edf2);return Array['from'](_0x502909);}(_0x3c52f0['getSelectedBlocks'](),_0x5a3606,_0x3b7651['model']['schema']);_0x3b7651['model']['change'](()=>{for(const _0x61380d of _0x2384be)_0x48590f['markBlockFormat'](_0x61380d,{'commandName':_0x3a4340,'commandParams':[{'forceValue':!_0x289004['value']}],'formatGroupId':'blockName'},Ee(_0x61380d));});};}function _0x52d55a(_0x3e01c8){return()=>{const _0x1d9c9f=function(_0x3b4e0c){let _0x3d2c26=Array['from'](_0x3b4e0c);const _0x9d4a4c=_0x3d2c26['findIndex'](_0x56c671=>'listItem'!=_0x56c671['name']);return _0x9d4a4c>-0x1&&(_0x3d2c26=_0x3d2c26['slice'](0x0,_0x9d4a4c)),_0x3d2c26;}(_0x3b7651['model']['document']['selection']['getSelectedBlocks']()),_0x4e2837=_0x3b7651['model']['createRange'](_0x3b7651['model']['createPositionAt'](_0x1d9c9f[0x0],'before'),_0x3b7651['model']['createPositionAt'](_0x1d9c9f[_0x1d9c9f['length']-0x1],'end'));_0x3b7651['model']['change'](()=>{_0x48590f['markBlockFormat'](_0x4e2837,{'commandName':_0x3e01c8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x344afa){const _0x3b7a97=new Set();for(const _0x597066 of _0x344afa){let _0x4b36c6=_0x597066['nextSibling'];for(;_0x4b36c6&&_0x4b36c6['getAttribute']('listIndent')>_0x597066['getAttribute']('listIndent');)_0x3b7a97['add'](_0x4b36c6),_0x4b36c6=_0x4b36c6['nextSibling'];}return Array['from'](_0x3b7a97);}(_0x1d9c9f));});};}_0x48590f['enableCommand']('numberedList',_0x86fdb4('numberedList')),_0x48590f['enableCommand']('bulletedList',_0x86fdb4('bulletedList')),_0x3c90a9&&_0x48590f['enableCommand']('todoList',_0x86fdb4('todoList')),_0x48590f['enableCommand']('indentList',_0x52d55a('indentList')),_0x48590f['enableCommand']('outdentList',_0x52d55a('outdentList')),_0x3c90a9&&_0x48590f['enableCommand']('checkTodoList',()=>{const _0x31b3b8=_0x3b7651['commands']['get']('checkTodoList'),_0x5187a2=Array['from'](_0x31b3b8['_selectedElements']);_0x5187a2['filter'](_0x3c424f=>_0x3c424f['getAttribute']('todoListChecked')!=_0x31b3b8['value']),_0x3b7651['model']['change'](()=>{for(const _0x1e5120 of _0x5187a2)_0x48590f['markBlockFormat'](_0x1e5120,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x31b3b8['value']}]});});}),_0x48590f['descriptionFactory']['registerElementLabel']('listItem',_0x3c1fe3=>o(_0x3d1dec,'ELEMENT_LIST_ITEM',_0x3c1fe3)),_0x48590f['descriptionFactory']['registerDescriptionCallback'](_0x219023=>{if('formatBlock'!=_0x219023['type']&&'formatInline'!=_0x219023['type'])return;const {data:_0x2fca95}=_0x219023;if(_0x2fca95){if('numberedList'==_0x2fca95['commandName']||'bulletedList'==_0x2fca95['commandName']||'todoList'==_0x2fca95['commandName'])switch(_0x2fca95['commandName']['replace']('List','')){case'bulleted':return _0x21205e(o(_0x3d1dec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21205e(o(_0x3d1dec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21205e(o(_0x3d1dec,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2fca95['commandName'])return{'type':'format','content':o(_0x3d1dec,'*Indent:*\x20%0',o(_0x3d1dec,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2fca95['commandName'])return{'type':'format','content':o(_0x3d1dec,'*Outdent:*\x20%0',o(_0x3d1dec,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2fca95['commandName'])return _0x2fca95['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d1dec,'*Check\x20item*')}:{'type':'format','content':o(_0x3d1dec,'*Uncheck\x20item*')};}function _0x21205e(_0x3712af){return{'type':'format','content':o(_0x3d1dec,'*Change\x20to:*\x20%0',_0x3712af)};}});}}function Le(_0x42288b){const _0x2bbccf=_0x42288b['getAttribute']('listIndent');if(0x0==_0x2bbccf)return _0x42288b;let _0x2810a6=_0x42288b;for(;_0x42288b['previousSibling']&&_0x42288b['previousSibling']['is']('element','listItem');){const _0x2e9b5e=_0x42288b['previousSibling']['getAttribute']('listIndent');if(_0x2e9b5e==_0x2bbccf)_0x2810a6=_0x42288b['previousSibling'];else{if(_0x2e9b5e<_0x2bbccf)break;}_0x42288b=_0x42288b['previousSibling'];}return _0x2810a6;}function Ee(_0x39a9c0){const _0x3b48aa=[];if(_0x39a9c0['is']('element','listItem')&&_0x39a9c0['getAttribute']('listIndent')>0x0){let _0x329193=_0x39a9c0['nextSibling'];for(;_0x329193&&'listItem'==_0x329193['name']&&_0x329193['getAttribute']('listIndent')==_0x39a9c0['getAttribute']('listIndent');)_0x3b48aa['push'](_0x329193),_0x329193=_0x329193['nextSibling'];}return _0x3b48aa;}class mt extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a22ab=this['editor']['config']['get']('list.properties'),_0x10adb3=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a22ab['styles']&&_0x10adb3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a22ab['reversed']&&_0x10adb3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a22ab['startIndex']&&_0x10adb3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10adb3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1be94a,_0x6369f6={}){const _0x3fed60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36e627=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3fed60['markMultiRangeBlockFormat'](_0x36e627,{'commandName':'listStyle','commandParams':[{'type':_0x6369f6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x183094,_0x4a3b5d={}){const _0x37d33b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x102fd0=this['_getSuggestionBlocks'](_0x192992=>_0x192992['is']('element','listItem')&&'numbered'===_0x192992['getAttribute']('listType'));if(_0x102fd0['length']<0x1)return;const _0x35d164=_0x102fd0['map'](_0x243ee6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x243ee6,'before'),this['editor']['model']['createPositionAt'](_0x243ee6,0x0)));this['editor']['model']['change'](()=>{_0x37d33b['markMultiRangeBlockFormat'](_0x35d164,{'commandName':'listReversed','commandParams':[{'reversed':_0x4a3b5d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2c5157,_0x33e512={}){const _0x5251b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a0ed3=this['_getSuggestionBlocks'](_0x371713=>_0x371713['is']('element','listItem')&&'numbered'===_0x371713['getAttribute']('listType'));if(_0x2a0ed3['length']<0x1)return;const _0x24b47f=_0x2a0ed3['map'](_0x36842f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36842f,'before'),this['editor']['model']['createPositionAt'](_0x36842f,0x0)));this['editor']['model']['change'](()=>{_0x5251b3['markMultiRangeBlockFormat'](_0x24b47f,{'commandName':'listStart','commandParams':[{'startIndex':_0x33e512['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x495f8f){if('formatBlock'!=_0x495f8f['type']&&'formatInline'!=_0x495f8f['type'])return;const _0x1fa3d9=this['editor']['locale'],{data:_0x4669d2}=_0x495f8f;if(!_0x4669d2)return;let _0x592ade,_0x4878a8;switch(_0x4669d2['commandName']){case'listStyle':_0x592ade='*Change\x20to:*\x20%0',_0x4878a8={'type':'format','content':o(_0x1fa3d9,_0x592ade,o(_0x1fa3d9,this['_getTranslationKeyForListStyle'](_0x4669d2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x592ade=_0x4669d2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4878a8={'type':'format','content':o(_0x1fa3d9,_0x592ade)};break;case'listStart':_0x592ade='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4878a8={'type':'format','content':o(_0x1fa3d9,_0x592ade,_0x4669d2['commandParams'][0x0]['startIndex'])};}return _0x4878a8;}['_getSuggestionBlocksForListStyle'](){const _0x41e5df=this['editor']['plugins']['get']('LegacyListUtils');let _0x50c91f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x50c91f[0x0]?.['is']('element','listItem')&&_0x50c91f['unshift'](..._0x41e5df['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x50c91f[_0x50c91f['length']-0x1]?.['is']('element','listItem')&&_0x50c91f['push'](..._0x41e5df['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x50c91f=[...new Set(_0x50c91f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x50c91f=_0x50c91f['filter'](_0x130902=>_0x130902['is']('element','listItem'))),_0x50c91f;}['_getSuggestionBlocks'](_0x15593c){const _0x4d3209=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c3a26=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x15593c)['map'](_0x240403=>{const _0x550169=this['editor']['model']['createPositionAt'](_0x240403,0x0);return[..._0x4d3209['getSiblingNodes'](_0x550169,'backward'),..._0x4d3209['getSiblingNodes'](_0x550169,'forward')];})['flat']();return _0x4c3a26=[...new Set(_0x4c3a26)],_0x4c3a26;}['_getTranslationKeyForListStyle'](_0x5d8674){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d8674)||'default')['toUpperCase']()+'_LIST_'+_0x5d8674['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5c469f{['afterInit'](){const _0x2b4656=this['editor'];if(!_0x2b4656['plugins']['has']('MediaEmbedEditing'))return;const _0x3d207d=_0x2b4656['plugins']['get']('TrackChangesEditing'),_0x7e6461=_0x2b4656['locale'];_0x3d207d['enableCommand']('mediaEmbed'),_0x3d207d['descriptionFactory']['registerElementLabel']('media',_0x32dab0=>o(_0x7e6461,'ELEMENT_MEDIA',_0x32dab0));}}class pt extends _0x5c469f{['afterInit'](){const _0x52610b=this['editor'];_0x52610b['plugins']['has']('MentionEditing')&&_0x52610b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5c469f{['afterInit'](){const _0x220e04=this['editor'];if(!_0x220e04['plugins']['has']('MergeFieldsEditing'))return;const _0x2610a9=_0x220e04['plugins']['get']('TrackChangesEditing'),_0x100089=_0x220e04['locale'];_0x2610a9['enableCommand']('insertMergeField'),_0x2610a9['enableCommand']('insertMergeFieldBlock'),_0x2610a9['enableCommand']('insertMergeFieldImage'),_0x2610a9['descriptionFactory']['registerElementLabel']('mergeField',_0x5d3cc7=>o(_0x100089,'ELEMENT_MERGE_FIELD',_0x5d3cc7)),_0x2610a9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1799a8=>o(_0x100089,'ELEMENT_MERGE_FIELD',_0x1799a8)),_0x2610a9['descriptionFactory']['registerDescriptionCallback'](_0x3258cc=>{if('insertion'!=_0x3258cc['type']&&'deletion'!=_0x3258cc['type'])return;const _0x3104bd=_0x3258cc['getContainedElement']();if(null==_0x3104bd)return;const _0x2c02b6=_0x220e04['plugins']['get']('MergeFieldsEditing');let _0x517cb4;switch(_0x2c02b6['getMergeFieldType'](_0x3104bd)){case null:return;case'image':{const _0x1d6cba=_0x2c02b6['unwrapAffixes'](_0x3104bd['getAttribute']('src'));_0x517cb4=_0x2c02b6['getLabel'](_0x1d6cba)||_0x1d6cba;break;}default:{const _0x434ccb=_0x3104bd['getAttribute']('id');_0x517cb4=_0x2c02b6['getLabel'](_0x434ccb)||_0x434ccb;break;}}return'insertion'==_0x3258cc['type']?{'type':'insertion','content':o(_0x100089,'*Insert:*\x20%0','\x22'+_0x517cb4+'\x22\x20'+o(_0x100089,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x100089,'*Remove:*\x20%0','\x22'+_0x517cb4+'\x22\x20'+o(_0x100089,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x5c469f{['afterInit'](){const _0x456ccd=this['editor'],_0x519771=_0x456ccd['plugins']['get']('TrackChangesEditing');_0x456ccd['plugins']['has']('MultiLevelList')&&(_0x519771['enableDefaultAttributesIntegration']('multiLevelList'),_0x519771['descriptionFactory']['registerDescriptionCallback'](_0x441276=>this['handleDescriptions'](_0x441276)));}['handleDescriptions'](_0x7f379a){const _0x3c9e36=this['editor']['locale'],{data:_0x3e5a12}=_0x7f379a,_0x11abcd={'type':'format','content':''};if(_0x3e5a12&&'listMarkerStyle'==_0x3e5a12['key']){if(!_0x3e5a12['oldValue'])return{'type':'format','content':o(_0x3c9e36,'*Set\x20format:*\x20%0',o(_0x3c9e36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e5a12['newValue']+')'};if(!_0x3e5a12['newValue']){let _0x7b85a2=_0x7f379a['head'];for(;_0x7b85a2;){if(_0x7b85a2['data']&&'listType'==_0x7b85a2['data']['key']&&_0x7b85a2['data']['newValue'])return _0x11abcd;_0x7b85a2=_0x7b85a2['next'];}return{'type':'format','content':o(_0x3c9e36,'*Remove\x20format:*\x20%0',o(_0x3c9e36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e5a12['oldValue']+')'};}}}}class bt extends _0x5c469f{['afterInit'](){const _0xad983a=this['editor'];if(!_0xad983a['plugins']['has']('PageBreakEditing'))return;_0xad983a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2a68e2=_0xad983a['plugins']['get']('TrackChangesEditing'),_0x11fa54=_0xad983a['locale'];_0x2a68e2['descriptionFactory']['registerElementLabel']('pageBreak',_0x22c65a=>o(_0x11fa54,'ELEMENT_PAGE_BREAK',_0x22c65a));}}class yt extends _0x5c469f{['afterInit'](){const _0x4199d6=this['editor'];if(!_0x4199d6['plugins']['has']('Paragraph'))return;const _0x316fee=_0x4199d6['locale'],_0x54f74d=_0x4199d6['plugins']['get']('TrackChangesEditing');_0x54f74d['descriptionFactory']['registerElementLabel']('paragraph',_0x16138c=>o(_0x316fee,'ELEMENT_PARAGRAPH',_0x16138c)),_0x54f74d['enableDefaultAttributesIntegration']('paragraph'),_0x54f74d['enableCommand']('insertParagraph');const _0x1e32a4=_0x54f74d['descriptionFactory'];_0x1e32a4['registerDescriptionCallback'](_0x30355f=>{if('insertion'!==_0x30355f['type'])return;const {start:_0x29c21f,end:_0x2107cd}=_0x30355f['getFirstRange']();if(!_0x29c21f['isTouching'](_0x2107cd)||!_0x29c21f['nodeAfter'])return;const _0x25f142=_0x4199d6['model']['schema'],_0x1e4812=_0x29c21f['nodeAfter'];return _0x25f142['isBlock'](_0x1e4812)&&!_0x25f142['isLimit'](_0x1e4812)&&_0x25f142['checkChild'](_0x1e4812,'$text')?{'type':'insertion','content':o(_0x316fee,'*Insert:*\x20%0',_0x1e32a4['getItemLabel'](_0x1e4812,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e8c81=this['editor'],_0x36b8a5=_0x2e8c81['locale'];_0x2e8c81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf64d89=>{if('formatBlock'!=_0xf64d89['type'])return;const {data:_0x33d817}=_0xf64d89;return _0x33d817&&'paragraph'==_0x33d817['commandName']?{'type':'format','content':o(_0x36b8a5,'*Change\x20to:*\x20%0',o(_0x36b8a5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x5c469f{['afterInit'](){const _0x556903=this['editor'];_0x556903['commands']['get']('replaceSource')&&_0x556903['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5c469f{['afterInit'](){const _0x441c20=this['editor'];if(!_0x441c20['plugins']['has']('RemoveFormatEditing'))return;_0x441c20['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x585a84=this['editor'];_0x585a84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ddf0c=>{if('formatBlock'!=_0x4ddf0c['type']&&'formatInline'!=_0x4ddf0c['type'])return;const {data:_0x5c54de}=_0x4ddf0c;return _0x5c54de&&'removeFormat'==_0x5c54de['commandName']?{'type':'format','content':o(_0x585a84['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x5c469f{['afterInit'](){const _0x284ae1=this['editor'];if(!_0x284ae1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2a3dc5=_0x284ae1['plugins']['get']('TrackChangesEditing');_0x2a3dc5['enableCommand']('goToPreviousRestrictedEditingException'),_0x2a3dc5['enableCommand']('goToNextRestrictedEditingException');const _0x3178b3=_0x284ae1['plugins']['get']('RestrictedEditingModeEditing');_0x3178b3['enableCommand']('trackChanges'),_0x3178b3['enableCommand']('acceptSuggestion'),_0x3178b3['enableCommand']('discardSuggestion'),_0x3178b3['enableCommand']('acceptAllSuggestions'),_0x3178b3['enableCommand']('discardAllSuggestions'),_0x3178b3['enableCommand']('acceptSelectedSuggestions'),_0x3178b3['enableCommand']('discardSelectedSuggestions');}}class At extends _0x5c469f{['afterInit'](){const _0xdf377c=this['editor'];if(!_0xdf377c['plugins']['has']('ShiftEnter'))return;const _0x5eaa91=_0xdf377c['plugins']['get']('TrackChangesEditing');_0x5eaa91['enableCommand']('shiftEnter'),_0x5eaa91['descriptionFactory']['registerElementLabel']('softBreak',_0x4bcc90=>o(_0xdf377c['locale'],'ELEMENT_LINE_BREAK',_0x4bcc90));}}function an(_0x2b5727,_0xe265b6,_0xc1912b){const _0x5bfbde=[];for(const _0x4eb0c5 of _0xe265b6['getItems']())_0x4eb0c5['hasAttribute'](_0x2b5727)&&_0x5bfbde['push'](_0xc1912b['createRangeOn'](_0x4eb0c5));return _0x5bfbde;}class _t extends _0x5c469f{['afterInit'](){const _0x51e52a=this['editor'],_0x41d5ca=_0x51e52a['plugins']['get']('TrackChangesEditing');_0x51e52a['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x41d5ca['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x346051=this['editor'],_0x3f9a69=_0x346051['model'],_0x100416=_0x346051['locale'],_0x334dad=_0x346051['plugins']['get']('TrackChangesEditing'),_0x3b5d31='restrictedEditingException',_0x4dca8a=_0x346051['commands']['get'](_0x3b5d31);_0x334dad['enableCommand'](_0x3b5d31,(_0x4fda47,_0x3541c2={})=>{const _0x4c1c3d=_0x3f9a69['document']['selection'];if(_0x4c1c3d['isCollapsed'])return void _0x4fda47(_0x3541c2);const _0x3663e2=void 0x0!==_0x3541c2['forceValue']?_0x3541c2['forceValue']:!_0x4dca8a['value'];_0x3f9a69['change'](()=>{const _0xcc66a=Array['from'](_0x4c1c3d['getRanges']());for(const _0x1de135 of _0xcc66a){const _0x5c7174=_0x3663e2?[_0x1de135]:an(_0x3b5d31,_0x1de135,_0x3f9a69);for(const _0x54e438 of _0x5c7174)_0x334dad['markInlineFormat'](_0x54e438,{'commandName':_0x3b5d31,'commandParams':[{'forceValue':_0x3663e2}]});}});}),_0x334dad['descriptionFactory']['registerDescriptionCallback'](_0x1b3290=>{if('formatBlock'!=_0x1b3290['type']&&'formatInline'!=_0x1b3290['type'])return;const {data:_0x11c596}=_0x1b3290;return _0x11c596&&_0x11c596['commandName']==_0x3b5d31?_0x11c596['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x100416,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x100416,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x131cd3=this['editor'],_0x4472cb=_0x131cd3['locale'],_0x26da1b=_0x131cd3['plugins']['get']('TrackChangesEditing'),_0x309fe7='restrictedEditingExceptionBlock',_0x4366f9=this['editor']['commands']['get'](_0x309fe7);_0x26da1b['enableCommand'](_0x309fe7,(_0x125b27,_0x25c247={})=>{const _0xa62b40=this['editor']['model']['document']['selection'],_0x4045b9=_0x25c247&&void 0x0!==_0x25c247['forceValue']?_0x25c247['forceValue']:!_0x4366f9['value'];let _0x5673f1=[];if(_0x4045b9){const _0x5c8a3d=Array['from'](_0xa62b40['getSelectedBlocks']())['filter'](_0x19298a=>function(_0xcb0b08){return!!_0xcb0b08['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x19298a)||function(_0x3859f0,_0x1d55cc){const _0x327c21=_0x1d55cc['createContext'](_0x3859f0['parent']);if(!_0x1d55cc['checkChild'](_0x327c21,'restrictedEditingException'))return!0x1;if(!_0x1d55cc['checkChild'](_0x327c21['push']('restrictedEditingException'),_0x3859f0))return!0x1;return!0x0;}(_0x19298a,this['editor']['model']['schema']));_0x5673f1=to(_0x5c8a3d,_0x131cd3['model']);}else{const _0x2e1629=Array['from'](_0xa62b40['getSelectedBlocks']())['map'](_0x585994=>function(_0x4c0781){let _0x420ff0=_0x4c0781;for(;_0x420ff0['parent'];){if('restrictedEditingException'==_0x420ff0['parent']['name'])return _0x420ff0;_0x420ff0=_0x420ff0['parent'];}return null;}(_0x585994))['filter'](_0xfa7bcb=>!!_0xfa7bcb);_0x5673f1=to(_0x2e1629,_0x131cd3['model']);}_0x131cd3['model']['change'](()=>{for(const _0x7a5fe1 of _0x5673f1)_0x26da1b['markBlockFormat'](_0x7a5fe1,{'commandName':_0x309fe7,'commandParams':[{'forceValue':_0x4045b9}]});});}),_0x26da1b['descriptionFactory']['registerDescriptionCallback'](_0x12d741=>{const {data:_0x11b83a}=_0x12d741;if(_0x11b83a&&_0x11b83a['commandName']==_0x309fe7)return _0x11b83a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4472cb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4472cb,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x5c469f{['afterInit'](){const _0x22e0e9=this['editor'];if(!_0x22e0e9['plugins']['has']('Style')||!_0x22e0e9['plugins']['has']('DataSchema'))return;const _0x38a59e=_0x22e0e9['plugins']['get']('TrackChangesEditing'),_0x228367=_0x22e0e9['locale'],_0x3a8cbe=_0x22e0e9['config']['get']('style')||{},_0x27cec1=_0x22e0e9['plugins']['get']('GeneralHtmlSupport'),_0x24c6ad=_0x22e0e9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x22e0e9['plugins']['get']('DataSchema'),_0x3a8cbe['definitions']);_0x38a59e['enableDefaultAttributesIntegration']('style');const _0x1a4f78=new Set();for(const _0x3d2485 of _0x24c6ad['block']){const _0x12496c=_0x27cec1['getGhsAttributeNameForElement'](_0x3d2485['element']);_0x1a4f78['add'](_0x12496c);}const _0x2e67ce=new Set();for(const _0x1011aa of _0x24c6ad['inline']){const _0x1c73ed=_0x27cec1['getGhsAttributeNameForElement'](_0x1011aa['element']);_0x2e67ce['add'](_0x1c73ed);for(const _0x56bf3d of _0x1011aa['ghsAttributes'])_0x2e67ce['add'](_0x56bf3d);}for(const _0x276b86 of _0x1a4f78)_0x38a59e['descriptionFactory']['registerAttributeLabel'](_0x276b86,o(_0x228367,'FORMAT_STYLE'));for(const _0x1ac2d2 of _0x2e67ce)_0x38a59e['descriptionFactory']['registerAttributeLabel'](_0x1ac2d2,o(_0x228367,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf9d3ac=this['editor'],_0x206bdc=_0xf9d3ac['locale'];_0xf9d3ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8fc8a5=>{if('formatBlock'!=_0x8fc8a5['type']&&'formatInline'!=_0x8fc8a5['type'])return;const {data:_0xb83638}=_0x8fc8a5;return _0xb83638&&'style'===_0xb83638['commandName']?_0xb83638['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x206bdc,'*Set\x20format:*\x20%0',_0xb83638['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x206bdc,'*Remove\x20format:*\x20%0',_0xb83638['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x5c469f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x331172){super(_0x331172),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31bb0c=this['editor'],_0x3a1e44=_0x31bb0c['model']['document']['selection'];if(!_0x31bb0c['plugins']['has']('TableEditing'))return;const _0x26af3c=_0x31bb0c['locale'],_0x2e7161=_0x31bb0c['plugins']['get']('TrackChangesEditing'),_0x5c0fc5=_0x31bb0c['plugins']['get']('TableUtils');_0x2e7161['descriptionFactory']['registerElementLabel']('table',_0x483e83=>o(_0x26af3c,'ELEMENT_TABLE',_0x483e83)),this['_setupColumnsRowsFixing'](),_0x2e7161['enableCommand']('insertTable'),_0x2e7161['enableCommand']('selectTableRow'),_0x2e7161['enableCommand']('selectTableColumn');for(const _0x51a953 of['insertTableRowAbove','insertTableRowBelow']){const _0x5d75e8=_0x31bb0c['commands']['get'](_0x51a953);_0x2e7161['enableCommand'](_0x51a953,_0x271683=>{_0x31bb0c['model']['change'](_0x304cb7=>{_0x271683();const _0x331380='above'===_0x5d75e8['order'],_0x3be5c4=_0x5c0fc5['getSelectionAffectedTableCells'](_0x3a1e44),_0x2f3c27=_0x5c0fc5['getRowIndexes'](_0x3be5c4),_0x2c4bb2=_0x331380?_0x2f3c27['first']-0x1:_0x2f3c27['last']+0x1,_0x42d29a=_0x3be5c4[0x0]['findAncestor']('table'),_0x5a1499=_0x5c0fc5['createTableWalker'](_0x42d29a,{'startRow':_0x2c4bb2,'endRow':_0x2c4bb2}),_0x46184c=Array['from'](_0x5a1499)['map'](_0x5e3802=>_0x304cb7['createRangeOn'](_0x5e3802['cell']));_0x2e7161['markMultiRangeInsertion'](_0x46184c,'tableRow');});});}for(const _0x2bbad2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x45e529=_0x31bb0c['commands']['get'](_0x2bbad2);_0x2e7161['enableCommand'](_0x2bbad2,_0xac98db=>{_0x31bb0c['model']['change'](_0x283ad8=>{_0xac98db();const _0xb72d0f='left'===_0x45e529['order'],_0x4f1d6e=_0x5c0fc5['getSelectionAffectedTableCells'](_0x3a1e44),_0x3c9e3c=_0x5c0fc5['getColumnIndexes'](_0x4f1d6e),_0x2491a1=_0xb72d0f?_0x3c9e3c['first']-0x1:_0x3c9e3c['last']+0x1,_0x3f19a7=_0x4f1d6e[0x0]['findAncestor']('table'),_0xb57689=_0x5c0fc5['createTableWalker'](_0x3f19a7,{'startRow':0x0,'column':_0x2491a1,'includeAllSlots':!0x1}),_0x4eb883=Array['from'](_0xb57689)['map'](_0x282759=>_0x283ad8['createRangeOn'](_0x282759['cell']));_0x2e7161['markMultiRangeInsertion'](_0x4eb883,'tableColumn');});});}for(const _0x521f40 of['removeTableRow','removeTableColumn']){const _0xa97c74=_0x521f40['substr'](0xb),_0x5abcb8=_0xa97c74['toLowerCase'](),_0x1cea8f=_0x5abcb8['substr'](0x0,0x3)+'span',_0x1bcf67='table'+_0xa97c74,_0x58b9ea='min'+_0xa97c74,_0x108afe='max'+_0xa97c74;_0x2e7161['enableCommand'](_0x521f40,()=>{_0x31bb0c['model']['change'](_0x23ca20=>{const _0x7b5d1c=_0x5c0fc5['getSelectionAffectedTableCells'](_0x3a1e44),_0x45319f=_0x7b5d1c[0x0]['findAncestor']('table');let _0x431688;if('removeTableRow'==_0x521f40){const _0x4b8aed=_0x5c0fc5['getRowIndexes'](_0x7b5d1c);_0x431688={'startRow':_0x4b8aed['first'],'endRow':_0x4b8aed['last'],'includeAllSlots':!0x0};}else{const _0x526dbe=_0x5c0fc5['getColumnIndexes'](_0x7b5d1c);_0x431688={'startColumn':_0x526dbe['first'],'endColumn':_0x526dbe['last'],'includeAllSlots':!0x0};}const _0x48cde3=_0x5c0fc5['createTableWalker'](_0x45319f,_0x431688),_0x327c1a=Array['from'](_0x48cde3)['map'](({cell:_0x47279d})=>_0x47279d),_0x507b27=_e(_0x327c1a['filter'](_0x2aa824=>_0x2aa824['hasAttribute'](_0x1cea8f))),_0x5a109e=_e(_0x327c1a['filter'](_0x1d4acb=>!_0x1d4acb['hasAttribute'](_0x1cea8f)))['map'](_0x16cbd5=>_0x23ca20['createRangeOn'](_0x16cbd5)),_0x1df618=_0x2e7161['markMultiRangeDeletion'](_0x5a109e,_0x1bcf67);if(_0x1df618&&('tableRow'==_0x1df618['subType']||'tableColumn'==_0x1df618['subType'])){const _0xd235c7=this['_getSuggestionCoords'](_0x1df618);for(const _0x389016 of _0x507b27){const _0xbe0b7f=_0x23ca20['createRangeOn'](_0x389016),_0xe59b6e=_0x5c0fc5['getCellLocation'](_0x389016),_0x28477e=_0x389016['getAttribute'](_0x1cea8f)-0x1,_0x20c02b=_0xd235c7[_0x58b9ea],_0x2aa8a9=_0xd235c7[_0x108afe];_0x20c02b<=_0xe59b6e[_0x5abcb8]&&_0xe59b6e[_0x5abcb8]+_0x28477e<=_0x2aa8a9&&_0x1df618['addRange'](_0xbe0b7f);}}});});}function _0x2558f9(_0x5f1ea1){const _0x4749e4=Array['from'](_0x3a1e44['getRanges']())['map'](_0x190806=>_0x167977['fromRange'](_0x190806));_0x31bb0c['model']['change'](_0x5e5896=>{const _0xcb4136=_0x5e5896['batch'];_0x5f1ea1=_0x5f1ea1['filter'](_0x3a2408=>'$graveyard'!=_0x3a2408['root']['rootName']),_0x5e5896['setSelection'](_0x5f1ea1),_0x31bb0c['commands']['get']('removeTableRow')['refresh'](),_0x31bb0c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31bb0c['model']['enqueueChange'](()=>{_0x31bb0c['model']['enqueueChange'](_0xcb4136,_0x209f55=>{const _0x386d00=_0x4749e4['filter'](_0x96ee0c=>'$graveyard'!=_0x96ee0c['root']['rootName']);_0x386d00['length']>0x0&&_0x209f55['setSelection'](_0x386d00);for(const _0x320105 of _0x4749e4)_0x320105['detach']();});});});}function _0x53d6e9(_0x1647b0){_0x31bb0c['model']['change'](_0x5c8a4c=>{const _0x582330=Array['from'](_0x3a1e44['getRanges']())['map'](_0xdf7c7=>_0x167977['fromRange'](_0xdf7c7)),_0x4b0bde=[];for(const _0x53ff14 of _0x1647b0)for(const _0x34cdfd of _0x53ff14['getItems']({'shallow':!0x0}))_0x4b0bde['push'](_0x34cdfd);for(const _0x287ca9 of _0x4b0bde)'$graveyard'!=_0x287ca9['root']['rootName']&&(_0x5c8a4c['setSelection'](_0x5c8a4c['createPositionAt'](_0x287ca9,0x0)),_0x31bb0c['commands']['get']('removeTableColumn')['refresh'](),_0x31bb0c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x53e94e=_0x582330['filter'](_0x30ae27=>'$graveyard'!=_0x30ae27['root']['rootName']);_0x53e94e['length']>0x0&&_0x5c8a4c['setSelection'](_0x53e94e);for(const _0x4eca46 of _0x582330)_0x4eca46['detach']();});}function _0x5ccec9(_0x320b57,_0x12575b){return _0x12575b['every'](_0x2dc40b=>_0x320b57['some'](_0x194827=>_0x194827['end']['isEqual'](_0x2dc40b['start'])||_0x2dc40b['end']['isEqual'](_0x194827['start'])));}function _0x44dab1(_0x470918,_0x4d67b7){return!_0x470918['some'](_0x22cff7=>_0x4d67b7['some'](_0x1486cd=>_0x22cff7['isIntersecting'](_0x1486cd)))&&_0x470918['some'](_0x1cf025=>_0x4d67b7['some'](_0x548201=>_0x1cf025['end']['isTouching'](_0x548201['start'])));}_0x2e7161['descriptionFactory']['registerDescriptionCallback'](_0x34fc98=>{if('insertion'!=_0x34fc98['type']&&'deletion'!=_0x34fc98['type'])return;const _0x50443f=_0x34fc98['getContainedElement']();if(null!=_0x50443f&&_0x50443f['is']('element','table')){if('insertion'==_0x34fc98['type']){const _0x44904a=_0x34fc98['getItems']()['filter'](_0x43c8a8=>_0x43c8a8['is']('$textProxy'))['map'](_0xe6294=>_0xe6294['data']);if(_0x44904a['length'])return{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44904a['join']('\x20')+'\x22'))};}if('deletion'==_0x34fc98['type']){const _0x5db301=_0x34fc98['getItems']()['filter'](_0x3dd2f6=>_0x3dd2f6['is']('$textProxy'))['map'](_0x5d785e=>_0x5d785e['data']);if(_0x5db301['length'])return{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5db301['join']('\x20')+'\x22'))};}}}),_0x2e7161['descriptionFactory']['registerDescriptionCallback'](_0x2ea952=>{if('tableRow'==_0x2ea952['subType']){const _0x984c60=_0x2ea952['getItems']()['filter'](_0x2deda1=>_0x2deda1['is']('$textProxy'))['map'](_0x319aad=>_0x319aad['data']),_0xb7597c=this['_getSuggestionCoords'](_0x2ea952),_0x2ea57f=_0xb7597c['maxRow']-_0xb7597c['minRow']+0x1;if('insertion'==_0x2ea952['type'])return _0x984c60['length']?{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ea57f,'\x22'+_0x984c60['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW',_0x2ea57f))};if('deletion'==_0x2ea952['type'])return _0x984c60['length']?{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ea57f,'\x22'+_0x984c60['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW',_0x2ea57f))};}if('tableColumn'==_0x2ea952['subType']){const _0x49ae62=_0x2ea952['getItems']()['filter'](_0x51eb5b=>_0x51eb5b['is']('$textProxy'))['map'](_0x38f4a5=>_0x38f4a5['data']),_0x4b96c1=this['_getSuggestionCoords'](_0x2ea952),_0x58bf5f=_0x4b96c1['maxColumn']-_0x4b96c1['minColumn']+0x1;if('insertion'==_0x2ea952['type'])return _0x49ae62['length']?{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58bf5f,'\x22'+_0x49ae62['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN',_0x58bf5f))};if('deletion'==_0x2ea952['type'])return _0x49ae62['length']?{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58bf5f,'\x22'+_0x49ae62['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN',_0x58bf5f))};}}),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2558f9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2558f9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53d6e9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53d6e9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5ccec9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5ccec9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x44dab1),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x44dab1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3c86ca=this['editor'],_0x318cd0=_0x3c86ca['model']['document']['selection'];return(_0x19fdca,_0x54c64c)=>{_0x3c86ca['model']['change'](_0x3cb6e5=>{const {commandName:_0x329d4e,commandParams:_0x594284}=_0x54c64c;let _0x44734b=_0x19fdca[0x0]['end']['nodeBefore'];_0x594284&&_0x594284[0x0]&&!0x1===_0x594284[0x0]['forceValue']&&(_0x44734b=_0x19fdca[0x0]['start']['nodeAfter']);const _0x24f322=_0x3cb6e5['createRangeIn'](_0x44734b);if('$graveyard'==_0x24f322['root']['rootName'])return;const _0x120b56=Array['from'](_0x318cd0['getRanges']())['map'](_0xb161a6=>_0x167977['fromRange'](_0xb161a6));_0x3cb6e5['setSelection'](_0x24f322),_0x3c86ca['commands']['get'](_0x329d4e)['refresh'](),_0x594284['push']({'forceDefaultExecution':!0x0}),_0x3c86ca['execute'](_0x329d4e,..._0x594284);const _0x5dfe0f=_0x120b56['filter'](_0x55d1fc=>'$graveyard'!=_0x55d1fc['root']['rootName']);_0x5dfe0f['length']>0x0&&_0x3cb6e5['setSelection'](_0x5dfe0f);for(const _0x373280 of _0x120b56)_0x373280['detach']();});};}['_getCoordsForCells'](_0x1cab6e){const _0x2fc0b7=this['editor']['plugins']['get']('TableUtils');let _0x10bf91=Number['MAX_SAFE_INTEGER'],_0x4b0f24=Number['MIN_SAFE_INTEGER'],_0x400f58=Number['MAX_SAFE_INTEGER'],_0x197cc1=Number['MIN_SAFE_INTEGER'];for(const _0x3b5505 of _0x1cab6e){if('$graveyard'==_0x3b5505['root']['rootName'])continue;const {row:_0x1cb6fb,column:_0x69978c}=_0x2fc0b7['getCellLocation'](_0x3b5505),_0xfa5171=_0x3b5505['hasAttribute']('rowspan')?_0x3b5505['getAttribute']('rowspan')-0x1:0x0,_0x5527c1=_0x3b5505['hasAttribute']('colspan')?_0x3b5505['getAttribute']('colspan')-0x1:0x0;_0x10bf91=_0x1cb6fb<_0x10bf91?_0x1cb6fb:_0x10bf91,_0x4b0f24=_0x1cb6fb+_0xfa5171>_0x4b0f24?_0x1cb6fb+_0xfa5171:_0x4b0f24,_0x400f58=_0x69978c<_0x400f58?_0x69978c:_0x400f58,_0x197cc1=_0x69978c+_0x5527c1>_0x197cc1?_0x69978c+_0x5527c1:_0x197cc1;}return{'minRow':_0x10bf91,'maxRow':_0x4b0f24,'minColumn':_0x400f58,'maxColumn':_0x197cc1};}['_setupColumnsRowsFixing'](){const _0x155abb=this['editor'],_0x2966fc=_0x155abb['plugins']['get']('TrackChangesEditing'),_0x33f7ba=_0x155abb['plugins']['get']('TableUtils');_0x155abb['model']['document']['on']('change:data',()=>{const _0x356965=Array['from'](_0x155abb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5765b7,data:_0x2e90a2}of _0x356965){const {group:_0x58f53a,id:_0x2f8c84,subType:_0x1d7c3a}=_0x2966fc['_splitMarkerName'](_0x5765b7);if('suggestion'!=_0x58f53a)continue;if(null!=_0x2e90a2['oldRange'])continue;const _0x29c663=_0x2966fc['getSuggestion'](_0x2f8c84);this['_tablePostFixingSubtypes']['includes'](_0x1d7c3a)&&this['_tableSuggestions']['add'](_0x29c663);}},{'priority':'low'});const _0x4a21ed=(_0x259792,_0xf781c)=>{let _0x23a06e=!0x1;const _0x4871c0=_0xf781c['createRangeOn'](_0x259792),_0x76a675=_0x259792['findAncestor']('table'),_0x51015d=_0x33f7ba['getCellLocation'](_0x259792);for(const _0x36fa11 of this['_tableSuggestions']){const _0x3f504e=_0x36fa11['subType'],_0x5c56ce=_0x3f504e['startsWith']('tablePaste'),_0x5d7051=_0x3f504e['substr'](_0x5c56ce?0xa:0x5),_0x4bd49c=_0x5d7051['toLowerCase'](),_0x3c0426=_0x4bd49c['substr'](0x0,0x3)+'span',_0xaaa616='min'+_0x5d7051,_0x12b99f='max'+_0x5d7051;if(!_0x36fa11['isInContent'])continue;if(_0x76a675!=_0x36fa11['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x36fa11['isIntersectingWithRange'](_0x4871c0))continue;const _0x274279=_0x259792['hasAttribute'](_0x3c0426)?_0x259792['getAttribute'](_0x3c0426)-0x1:0x0,_0x4d35af=this['_getSuggestionCoords'](_0x36fa11),_0x1f66e8=_0x4d35af[_0xaaa616],_0x550faf=_0x4d35af[_0x12b99f];_0x1f66e8<=_0x51015d[_0x4bd49c]&&_0x51015d[_0x4bd49c]+_0x274279<=_0x550faf&&(_0x36fa11['addRange'](_0x4871c0),_0x23a06e=!0x0);}return _0x23a06e;};_0x155abb['model']['document']['registerPostFixer'](_0x3a1586=>{let _0x4491a6=!0x1;for(const _0x19d76f of _0x155abb['model']['document']['differ']['getChanges']())if('insert'==_0x19d76f['type']){if('tableRow'==_0x19d76f['name']){for(const _0x38b619 of _0x19d76f['position']['nodeAfter']['getChildren']())_0x4491a6=_0x4491a6||_0x4a21ed(_0x38b619,_0x3a1586);}else'tableCell'==_0x19d76f['name']&&(_0x4491a6=_0x4491a6||_0x4a21ed(_0x19d76f['position']['nodeAfter'],_0x3a1586));}return _0x4491a6;});}['_getSuggestionCoords'](_0xf457b3){return this['_getCoordsForCells'](_0xf457b3['getRanges']()['map'](_0x33d00d=>_0x33d00d['start']['nodeAfter']));}}function _e(_0x1a9a77){return Array['from'](new Set(_0x1a9a77)['values']());}class $t extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x3601dc=this['editor'],_0x544728=_0x3601dc['model']['document']['selection'],_0x4dda9e=_0x3601dc['locale'];if(!_0x3601dc['plugins']['has']('TableEditing'))return;const _0x427353=_0x3601dc['plugins']['get']('TrackChangesEditing'),_0x3f79ee=_0x3601dc['plugins']['get']('TableUtils'),_0x27e946=_0x3601dc['plugins']['get'](Nt);_0x27e946['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x427353['enableCommand']('mergeTableCells',()=>{const _0x371f13=_0x3f79ee['getSelectionAffectedTableCells'](_0x3601dc['model']['document']['selection']);_0x3601dc['model']['change'](()=>{_0x427353['markMultiRangeBlockFormat'](_0x371f13,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3601dc['commands']['get']('mergeTableCells')['on']('execute',(_0xf364a3,_0x1fca91)=>{_0x3601dc['commands']['get']('trackChanges')['value']&&(_0x1fca91['length']>0x0&&_0x1fca91[_0x1fca91['length']-0x1]&&_0x1fca91[_0x1fca91['length']-0x1]['forceDefaultExecution']||_0x427353['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf364a3['stop']());},{'priority':'highest'});for(const _0x52f0ac of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x324b90=_0x3601dc['commands']['get'](_0x52f0ac);_0x427353['enableCommand'](_0x52f0ac,()=>{const _0x4f3e63=_0x3601dc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x145ab2=>_0x145ab2['is']('element','tableCell')),_0x2b69d1=_0x324b90['value'];_0x3601dc['model']['change'](()=>{_0x427353['markMultiRangeBlockFormat']([_0x4f3e63,_0x2b69d1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1d37d6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18e3fc=_0x3601dc['commands']['get'](_0x1d37d6);_0x427353['enableCommand'](_0x1d37d6,()=>{const _0x131baf=_0x3f79ee['getSelectionAffectedTableCells'](_0x3601dc['model']['document']['selection'])[0x0],_0x222c4f=_0x131baf['findAncestor']('table'),{column:_0x5d0b4b,row:_0x201e27}=_0x3f79ee['getCellLocation'](_0x131baf);let _0x52d684=[];if('horizontally'==_0x18e3fc['direction']){const _0x3af602=_0x3f79ee['createTableWalker'](_0x222c4f,{'startRow':_0x201e27,'endRow':_0x201e27,'includeAllSlots':!0x0});_0x52d684=Array['from'](_0x3af602)['map'](_0x1899a2=>_0x1899a2['cell']);}else{const _0x389c2a=_0x3f79ee['createTableWalker'](_0x222c4f,{'column':_0x5d0b4b,'includeAllSlots':!0x0});_0x52d684=Array['from'](_0x389c2a)['map'](_0x484211=>_0x484211['cell']);}_0x3601dc['model']['change'](_0x1c1c82=>{_0x427353['markBlockFormat'](_0x1c1c82['createRangeOn'](_0x131baf),{'commandName':_0x1d37d6,'commandParams':[]},_0x52d684,_0x1d37d6);});});}_0x427353['descriptionFactory']['registerDescriptionCallback'](_0x101f46=>{if('formatBlock'!=_0x101f46['type']&&'formatInline'!=_0x101f46['type'])return;const {data:_0x39c958}=_0x101f46;return _0x39c958&&'mergeTableCells'==_0x39c958['commandName']?{'type':'format','content':o(_0x4dda9e,'*Merge\x20cells*')}:void 0x0;}),_0x427353['descriptionFactory']['registerDescriptionCallback'](_0x3385d7=>{if('formatBlock'!=_0x3385d7['type']&&'formatInline'!=_0x3385d7['type'])return;const {data:_0x162dc2}=_0x3385d7;return _0x162dc2?'splitTableCellVertically'==_0x162dc2['commandName']?{'type':'format','content':o(_0x4dda9e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x162dc2['commandName']?{'type':'format','content':o(_0x4dda9e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4cc8a8=_0x27e946['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d2f6e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x427353['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d2f6e,'accept',_0x4cc8a8);for(const _0x11156d of['splitTableCellVertically','splitTableCellHorizontally'])_0x427353['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11156d,'accept',_0x4cc8a8);_0x427353['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x161f19=>{_0x3601dc['model']['change'](_0x31895e=>{const _0x4d399b=Array['from'](_0x544728['getRanges']())['map'](_0x396f41=>_0x167977['fromRange'](_0x396f41));_0x31895e['setSelection'](_0x161f19),_0x3601dc['commands']['get']('mergeTableCells')['refresh'](),_0x3601dc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x577450=_0x4d399b['filter'](_0x460e2c=>'$graveyard'!=_0x460e2c['root']['rootName']);_0x577450['length']>0x0&&_0x31895e['setSelection'](_0x577450);for(const _0x218d86 of _0x4d399b)_0x218d86['detach']();});});for(const _0xd82026 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3488d6=_0x3601dc['commands']['get'](_0xd82026);_0x3488d6['on']('set:isEnabled',(_0x285ffa,_0x52aa88,_0x3a389b)=>{if(_0x3a389b){const _0x8d3a5d=_0x3601dc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x340787=>_0x340787['is']('element','tableCell'));this['_areMergableCells'](_0x3488d6['value'],_0x8d3a5d)||(_0x285ffa['return']=!0x1,_0x285ffa['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe68e1e=this['editor']['commands']['get']('mergeTableCells'),_0x423bf9=this['editor']['plugins']['get']('TableUtils');if(!_0xe68e1e['isEnabled'])return!0x1;const _0xe32a17=_0x423bf9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56f0f0 of _0xe32a17)for(const _0x27d5c6 of _0xe32a17)if(_0x56f0f0!=_0x27d5c6&&!this['_areMergableCells'](_0x56f0f0,_0x27d5c6))return!0x1;return!0x0;}['_areMergableCells'](_0x5bfd61,_0x400a2b){const _0x2c1ded=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed8f6=this['editor']['model']['createRangeOn'](_0x5bfd61),_0x3d34af=this['editor']['model']['createRangeOn'](_0x400a2b),_0x4118cd=new Set(),_0x11be49=new Set();for(const _0x303d87 of _0x2c1ded['getSuggestions']())if(('insertion'==_0x303d87['type']||'deletion'==_0x303d87['type']||'mergeTableCells'==_0x303d87['subType'])&&_0x303d87['isInContent']){for(const _0x3eb628 of _0x303d87['getRanges']())_0x3eb628['containsRange'](_0x3ed8f6,!0x0)&&_0x4118cd['add'](_0x303d87['type']+':'+_0x303d87['author']['id']),_0x3eb628['containsRange'](_0x3d34af,!0x0)&&_0x11be49['add'](_0x303d87['type']+':'+_0x303d87['author']['id']);}if(_0x4118cd['size']!=_0x11be49['size'])return!0x1;for(const _0x36a687 of _0x4118cd)if(!_0x11be49['has'](_0x36a687))return!0x1;return!0x0;}}class vt extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x202785=this['editor'];if(!_0x202785['plugins']['has']('TableEditing'))return;const _0x2222ff=_0x202785['locale'],_0x121111=_0x202785['plugins']['get']('TrackChangesEditing');_0x121111['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x121111['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x121111['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2222ff,'FORMAT_HEADER_ROW')),_0x121111['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2222ff,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x269053=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb8ed1d=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x269053['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xb8ed1d),_0x269053['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xb8ed1d),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4ba354=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e2ce2=this['editor']['plugins']['get']('TableUtils');function _0x3f0581({showActiveMarker:_0x1ed2d6=!0x0,setDataAttribute:_0x5dd92c=!0x0}={}){return(_0x4eb22c,_0x154b5c,_0x57026c)=>{const {type:_0x326f61,id:_0x1809b6}=_0x4ba354['_splitMarkerName'](_0x154b5c['markerName']);if(!_0x4ba354['hasSuggestion'](_0x1809b6))return;const _0x141554=_0x4ba354['getSuggestion'](_0x1809b6),_0x50fec4=_0x141554['data'];if('formatBlock'!=_0x141554['type']||!_0x50fec4||'setTableColumnHeader'!=_0x50fec4['commandName'])return;if(_0x154b5c['item'])return void _0x4eb22c['stop']();if(!_0x57026c['consumable']['consume'](_0x154b5c['markerRange'],_0x4eb22c['name']))return;const _0x102bd4=_0x154b5c['markerRange']['start']['nodeAfter'],_0x530fda=_0x154b5c['markerRange']['end']['nodeBefore'],_0x49a850=_0x102bd4['parent']['parent'],{column:_0x23ba56}=_0x2e2ce2['getCellLocation'](_0x102bd4),{column:_0xd53c11}=_0x2e2ce2['getCellLocation'](_0x530fda);for(let _0x56f4c4=_0x23ba56;_0x56f4c4<=_0xd53c11;_0x56f4c4++){const _0x430456=_0x2e2ce2['createTableWalker'](_0x49a850,{'column':_0x56f4c4,'includeAllSlots':!0x1});for(const _0x400832 of _0x430456){const _0x5e7d36=_0x400832['cell'],_0x27836a=_0x57026c['mapper']['toViewElement'](_0x5e7d36);_0x57026c['writer']['addClass']('ck-suggestion-marker-'+_0x326f61,_0x27836a),_0x5dd92c&&_0x57026c['writer']['setAttribute']('data-suggestion',_0x1809b6,_0x27836a),_0x57026c['mapper']['bindElementToMarker'](_0x27836a,_0x154b5c['markerName']),_0x1ed2d6&&(_0x4ba354['activeMarkers']['includes'](_0x154b5c['markerName'])?_0x57026c['writer']['addClass']('ck-suggestion-marker--active',_0x27836a):_0x57026c['writer']['removeClass']('ck-suggestion-marker--active',_0x27836a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3f0581(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x206090,_0x2e76db,_0x40d3be)=>{_0x40d3be['options']['showSuggestionHighlights']&&_0x3f0581({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x206090,_0x2e76db,_0x40d3be);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2a0192,_0x10c5c8,_0x4309c5)=>{const {type:_0x21cb98,id:_0x37a4ef}=_0x4ba354['_splitMarkerName'](_0x10c5c8['markerName']);if(!_0x4ba354['hasSuggestion'](_0x37a4ef))return;const _0x59e3d4=_0x4ba354['getSuggestion'](_0x37a4ef),_0x2382a6=_0x59e3d4['data'];if('formatBlock'!=_0x59e3d4['type']||!_0x2382a6||'setTableColumnHeader'!=_0x2382a6['commandName'])return;const _0x37b6f3=_0x4309c5['mapper']['markerNameToElements'](_0x10c5c8['markerName']);if(_0x37b6f3){for(const _0x31ae4d of _0x37b6f3)_0x4309c5['writer']['removeClass']('ck-suggestion-marker-'+_0x21cb98,_0x31ae4d),_0x4309c5['writer']['removeClass']('ck-suggestion-marker--active',_0x31ae4d),_0x4309c5['writer']['removeAttribute']('data-suggestion',_0x31ae4d),_0x4309c5['mapper']['unbindElementFromMarkerName'](_0x31ae4d,_0x10c5c8['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x495a9a=this['editor'],_0x58cd00=_0x495a9a['locale'];function _0x41e323(_0x160cec){return{'type':'format','content':o(_0x58cd00,'*Format:*\x20%0',_0x160cec)};}_0x495a9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50adc7=>{if('formatBlock'!=_0x50adc7['type'])return;const {data:_0x5af6f1}=_0x50adc7;if(_0x5af6f1){if('setTableRowHeader'==_0x5af6f1['commandName']){const _0x113cdb=_0x5af6f1['commandParams'][0x0]['forceValue'];return _0x41e323(o(_0x58cd00,_0x113cdb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5af6f1['commandName']){const _0x48ea6f=_0x5af6f1['commandParams'][0x0]['forceValue'];return _0x41e323(o(_0x58cd00,_0x48ea6f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x5c469f{['afterInit'](){const _0x313d61=this['editor'],_0x4d8c23=_0x313d61['locale'],_0x6ea766=_0x313d61['plugins']['get']('TrackChangesEditing');function _0x3535bf(_0x2a65cb){return{'type':'format','content':''+o(_0x4d8c23,'*Set\x20table\x20type:*\x20%0',_0x2a65cb)};}_0x313d61['plugins']['has']('TableLayout')&&(_0x6ea766['enableCommand']('insertTableLayout'),_0x6ea766['enableDefaultAttributesIntegration']('tableType'),_0x6ea766['descriptionFactory']['registerElementLabel'](_0xc2086e=>_0xc2086e['is']('element','table')&&'layout'===_0xc2086e['getAttribute']('tableType'),_0x2c38c7=>o(_0x4d8c23,'ELEMENT_LAYOUT_TABLE',_0x2c38c7)),_0x6ea766['descriptionFactory']['registerDescriptionCallback'](_0x358650=>{const {data:_0x53839f}=_0x358650;if(_0x53839f&&'tableType'==_0x53839f['key'])switch(_0x53839f['newValue']){case'layout':return _0x3535bf(o(_0x4d8c23,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3535bf(o(_0x4d8c23,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x10ee4b=>[_0x10ee4b,null]));class Bt extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x44296a=this['editor'];if(!_0x44296a['plugins']['has']('TableClipboard'))return;const _0x2ffd86=_0x44296a['plugins']['get']('TrackChangesEditing'),_0x3a860b=_0x44296a['plugins']['get']('TableUtils'),_0x12c35c=_0x44296a['plugins']['get'](Nt),_0x4aa8e5=_0x44296a['plugins']['get']('TableClipboard'),_0x393abc=_0x44296a['plugins']['get']('TableSelection'),_0x35b85c=_0x44296a['plugins']['get'](_0x1fe9af);_0x12c35c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x44296a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x44296a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x504601=null,_0x4a112c=!0x1;_0x35b85c['on']('contentInsertion',(_0x5eb71d,_0x2f3a86)=>{_0x4a112c='paste'===_0x2f3a86['method'];}),_0x44296a['model']['on']('insertContent',(_0x327308,_0x53187d)=>{if(!_0x4a112c&&null===_0x393abc['getSelectedTableCells']())return;const [_0x41c87a,_0xe7b308]=_0x53187d,_0x2d786e=_0x53187d[_0x53187d['length']-0x1];_0x2d786e&&_0x2d786e['forceDefaultExecution']||_0x2ffd86['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x15f195,_0x3f1328,_0x3bde19,_0x120059,_0x4e21d9){if(_0x3f1328&&!_0x3f1328['is']('documentSelection'))return!0x1;const _0x5850ee=_0x4e21d9['getTableIfOnlyTableInContent'](_0x15f195,_0x3bde19);if(!_0x5850ee||!Oe(_0x5850ee,void 0x0,_0x120059))return!0x1;const _0x5ac3df=_0x120059['getSelectionAffectedTableCells'](_0x3bde19['document']['selection']);if(!_0x5ac3df['length'])return!0x1;const _0x140516=_0x5ac3df[0x0]['findAncestor']('table'),_0x27455c=_0x120059['getRowIndexes'](_0x5ac3df),_0x1731f7=_0x120059['getColumnIndexes'](_0x5ac3df),_0xc0232b={'startRow':_0x27455c['first'],'endRow':_0x27455c['last'],'startColumn':_0x1731f7['first'],'endColumn':_0x1731f7['last']};return 0x1==_0x5ac3df['length']&&(_0xc0232b['endRow']+=_0x120059['getRows'](_0x5850ee)-0x1,_0xc0232b['endColumn']+=_0x120059['getColumns'](_0x5850ee)-0x1),Oe(_0x140516,_0xc0232b,_0x120059);}(_0x41c87a,_0xe7b308,_0x44296a['model'],_0x3a860b,_0x4aa8e5)&&(_0x327308['stop'](),_0x504601={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x44296a['model']['change'](()=>{_0x44296a['model']['insertContent'](_0x53187d[0x0],_0x53187d[0x1],_0x53187d[0x2],{'forceDefaultExecution':!0x0});const _0x4483a0=_0xe7a85c(),{rowInsertionRanges:_0x517b4c,columnInsertionRanges:_0x891dd4,insertionRanges:_0x432e71,deletionRanges:_0x407bf6,cells:_0x59bf1a}=_0x504601;_0x517b4c['length']&&_0x2ffd86['markMultiRangeInsertion'](_0x517b4c,'tablePasteRow',{'tablePasteChainId':_0x4483a0}),_0x891dd4['length']&&_0x2ffd86['markMultiRangeInsertion'](_0x891dd4,'tablePasteColumn',{'tablePasteChainId':_0x4483a0}),_0x432e71['length']&&(_0x2ffd86['markMultiRangeInsertion'](_0x432e71,'tablePaste',{'tablePasteChainId':_0x4483a0,'skipNestingCheck':!0x0}),_0x432e71['forEach'](_0x44b60b=>_0x44b60b['detach']?.())),_0x407bf6['length']&&(_0x2ffd86['markMultiRangeDeletion'](_0x407bf6,'tablePaste',{'tablePasteChainId':_0x4483a0,'skipNestingCheck':!0x0}),_0x407bf6['forEach'](_0x3c92c2=>_0x3c92c2['detach']?.()));const _0x272a24=_0x2ffd86['markMultiRangeBlockFormat'](_0x59bf1a['map'](({element:_0x55f12e})=>_0x55f12e),{'formatGroupId':_0xe7a85c()},[],'tablePasteCell',{'tablePasteChainId':_0x4483a0});if(_0x272a24){const _0x1e580f=_0x272a24['getMarkers'](),_0xfef24e=[];for(const {element:_0x5d46ec,attributes:_0x4528ac}of _0x59bf1a){if(!_0x4528ac)continue;const _0x72c834=_0x44296a['model']['createRangeOn'](_0x5d46ec),_0x4d5900=_0x1e580f['find'](_0x559006=>_0x559006['getRange']()['isEqual'](_0x72c834));_0x4d5900&&_0xfef24e['push']([_0x4d5900['name'],_0x4528ac]);}_0xfef24e['length']&&_0x272a24['setAttribute']('markerAttributes',Object['fromEntries'](_0xfef24e));}_0x504601=null;}));},{'priority':_0x5382c2['high']+0xa}),_0x35b85c['on']('contentInsertion',()=>{_0x4a112c=!0x1;},{'priority':'lowest'}),_0x44296a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x21a06f,_0x54603e)=>{const [_0x54f9a2,_0x7690ab,,_0x21b9e0]=_0x54603e;if(!_0x504601)return;_0x21a06f['stop']();const _0x82f936=_0x54f9a2['cell'],_0x505a95=_0x7690ab,_0x4e9d46=Be(_0x82f936),_0x4cfc3b=Be(_0x505a95);_0x21a06f['return']=_0x82f936;let _0x144d5d=null,_0x726ed8=null;if(_0x4cfc3b||_0x4e9d46){if(_0x4e9d46&&!_0x4cfc3b){_0x21b9e0['remove'](_0x82f936['getChild'](0x0));for(const _0x5e8987 of Array['from'](_0x505a95['getChildren']()))_0x21b9e0['insert'](_0x5e8987,_0x82f936,'end');const _0x54a2d8=_0x504601['rowInsertionIndexes']['includes'](_0x54f9a2['row']),_0x1c2368=_0x504601['columnInsertionIndexes']['includes'](_0x54f9a2['column']);_0x54a2d8||_0x1c2368||(_0x144d5d=_0x167977['fromRange'](_0x21b9e0['createRangeIn'](_0x82f936)));}else _0x4cfc3b&&!_0x4e9d46&&(_0x726ed8=_0x21b9e0['createRangeIn'](_0x82f936));}else{const _0x502bcf=_0x21b9e0['createElement']('tableCellSuggestion'),_0x401b13=_0x21b9e0['createElement']('tableCellSuggestion');_0x21b9e0['wrap'](_0x21b9e0['createRangeIn'](_0x82f936),_0x401b13),_0x21b9e0['insert'](_0x502bcf,_0x82f936,0x0);for(const _0x3ba4f3 of Array['from'](_0x505a95['getChildren']()))_0x21b9e0['insert'](_0x3ba4f3,_0x502bcf,'end');_0x144d5d=_0x167977['fromRange'](_0x21b9e0['createRangeOn'](_0x502bcf)),_0x726ed8=_0x167977['fromRange'](_0x21b9e0['createRangeOn'](_0x401b13));}const _0x38e009=Array['from'](_0x505a95['getAttributes']())['filter'](([_0x2bb1c8])=>Re['includes'](_0x2bb1c8));_0x504601['cells']['push']({'element':_0x82f936,'attributes':_0x38e009['length']?Object['fromEntries'](_0x38e009):null}),_0x144d5d&&_0x504601['insertionRanges']['push'](_0x144d5d),_0x726ed8&&_0x504601['deletionRanges']['push'](_0x726ed8);},{'priority':'high'}),_0x3a860b['on']('insertColumns',(_0x50f8e9,_0x4925a8)=>{const [_0x442fb8,_0x3bd0c0={}]=_0x4925a8;if(!_0x504601)return;const _0xf5c5f7=_0x3bd0c0['at']||0x0,_0x320fa6=_0x3bd0c0['columns']||0x1;_0x504601['columnInsertionIndexes']=new Array(_0x320fa6)['fill'](_0xf5c5f7)['map']((_0x28f5ee,_0x9dda50)=>_0x28f5ee+_0x9dda50);for(const {cell:_0x252428}of _0x3a860b['createTableWalker'](_0x442fb8,{'startColumn':_0xf5c5f7,'endColumn':_0xf5c5f7+_0x320fa6-0x1}))_0x504601['columnInsertionRanges']['push'](_0x44296a['model']['createRangeOn'](_0x252428));},{'priority':'low'}),_0x3a860b['on']('insertRows',(_0x18823b,_0x525781)=>{const [_0x15de0e,_0x24622a={}]=_0x525781;if(!_0x504601)return;const _0x47b6ed=_0x24622a['at']||0x0,_0x2ccc71=_0x24622a['rows']||0x1;_0x504601['rowInsertionIndexes']=new Array(_0x2ccc71)['fill'](_0x47b6ed)['map']((_0x1b004e,_0x10d04e)=>_0x1b004e+_0x10d04e);for(const {cell:_0xfe5d30}of _0x3a860b['createTableWalker'](_0x15de0e,{'startRow':_0x47b6ed,'endRow':_0x47b6ed+_0x2ccc71-0x1}))_0x504601['rowInsertionRanges']['push'](_0x44296a['model']['createRangeOn'](_0xfe5d30));},{'priority':'low'}),_0x2ffd86['descriptionFactory']['registerDescriptionCallback'](_0x45a8d9=>{if(_0x45a8d9['subType']&&_0x45a8d9['subType']['startsWith']('tablePaste'))return _0x45a8d9['previous']?{}:{'type':'insertion','content':o(_0x44296a['locale'],'*Replace\x20table\x20cells*')};});const _0x2e3ebb=()=>!0x1;for(const _0x44fe6f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2ffd86['_suggestionFactory']['registerCustomCallback']('insertion',_0x44fe6f,'join',_0x2e3ebb),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('deletion',_0x44fe6f,'join',_0x2e3ebb),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44fe6f,'join',_0x2e3ebb);_0x2ffd86['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2e3ebb),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x59a2ac,_0xd55a10,_0x32f175)=>{const _0x236993=_0x59a2ac['map'](_0x543486=>_0x543486['getContainedElement']())['filter'](_0x5585f2=>_0x5585f2),_0x3b58a4=new Map(_0x236993['map'](_0x37e14d=>[_0x37e14d,null]));if(_0x504601){for(const {element:_0x32c5b1,attributes:_0x3b89c0}of _0x504601['cells'])_0x3b89c0&&_0x3b58a4['set'](_0x32c5b1,_0x3b89c0);}else{if(_0x32f175&&_0x32f175['markerAttributes'])for(const [_0x291de9,_0x11abea]of Object['entries'](_0x32f175['markerAttributes'])){const _0x10ab24=_0x44296a['model']['markers']['get'](_0x291de9),_0x37b6ca=_0x10ab24?_0x10ab24['getRange']()['getContainedElement']():null;_0x37b6ca&&_0x3b58a4['set'](_0x37b6ca,_0x11abea);}}_0x44296a['model']['change'](_0x179679=>{for(const [_0x5637fd,_0x322e7e]of _0x3b58a4)_0x179679['setAttributes']({...Ae,..._0x322e7e},_0x5637fd);});});const _0x280883=(_0x54a2c6,_0x1f89cb)=>{_0x2ffd86['_suggestionFactory']['registerCustomCallback'](_0x54a2c6,'tablePaste',_0x1f89cb,(_0x874239,_0x399ba6,_0x3c8046)=>{_0x44296a['model']['change'](_0x216bfe=>{const _0x3496e4=[];for(const _0x48d639 of _0x874239){const _0x38b133=_0x48d639['start']['nodeAfter'];_0x38b133['is']('element','tableCellSuggestion')&&_0x3496e4['push'](_0x38b133);}_0x2ffd86['_suggestionFactory']['getSuggestionCallback'](_0x54a2c6,null,_0x1f89cb)(_0x874239,_0x399ba6,_0x3c8046);for(const _0x3602a6 of _0x3496e4)'$graveyard'!=_0x3602a6['root']['rootName']&&_0x216bfe['unwrap'](_0x3602a6);});});};_0x280883('insertion','accept'),_0x280883('insertion','discard'),_0x280883('deletion','accept'),_0x280883('deletion','discard'),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55e712=>{const _0x50ad54=_0x55e712['map'](_0x10aa1f=>_0x10aa1f['getContainedElement']()),_0x3e7151=_0x50ad54[0x0]['findAncestor']('table'),{minRow:_0x4340bb,maxRow:_0x2592b2}=_0x12c35c['_getCoordsForCells'](_0x50ad54);_0x3a860b['removeRows'](_0x3e7151,{'at':_0x4340bb,'rows':_0x2592b2-_0x4340bb+0x1});}),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x36f40e=>{const _0x3dbb72=_0x36f40e['map'](_0x5344ea=>_0x5344ea['getContainedElement']()),_0x1e31e1=_0x3dbb72[0x0]['findAncestor']('table'),{minColumn:_0x170f8a,maxColumn:_0x214f64}=_0x12c35c['_getCoordsForCells'](_0x3dbb72);_0x3a860b['removeColumns'](_0x1e31e1,{'at':_0x170f8a,'columns':_0x214f64-_0x170f8a+0x1});});const _0x56ceab=(_0x39fbec,_0x2886f2)=>{if(!_0x2886f2['subType']||!_0x2886f2['subType']['startsWith']('tablePaste'))return;const _0xa691cc=_0x2886f2['attributes']['tablePasteChainId'],_0x4b6a71=_0x2ffd86['getSuggestions']()['filter'](_0x5ca0e3=>_0x5ca0e3['isInContent']&&_0x5ca0e3['attributes']&&_0x5ca0e3['attributes']['tablePasteChainId']==_0xa691cc);_0x4b6a71['length']&&_0x2886f2['getAllAdjacentSuggestions']()['length']!=_0x4b6a71['length']&&_0x4b6a71['reduce']((_0x530ec1,_0x588bb2)=>(_0x530ec1['next']=_0x588bb2,_0x588bb2['previous']=_0x530ec1,_0x588bb2));};function _0x429119(_0x5d53f5,_0x34be13=!0x0){const {id:_0x24ec24,authorId:_0x5c4518}=_0x2ffd86['_splitMarkerName'](_0x5d53f5['markerName']),_0x5e133f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbd3f0e=_0x2ffd86['activeMarkers']['includes'](_0x5d53f5['markerName']);return _0xbd3f0e&&_0x5e133f['push']('ck-suggestion-marker--active'),{'classes':_0x5e133f,'attributes':{'data-suggestion':_0x24ec24,'data-author-id':_0x5c4518},'priority':_0xbd3f0e&&_0x34be13?0xbc2:0xbb8};}_0x2ffd86['on']('suggestionLoaded',_0x56ceab,{'priority':'high'}),_0x2ffd86['on']('suggestionUnloaded',_0x56ceab,{'priority':'high'}),_0x44296a['model']['document']['registerPostFixer'](()=>{let _0x2a437d=!0x1;const _0x5f3c55=Array['from'](_0x44296a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa341c,data:_0x415d47}of _0x5f3c55){const {group:_0x58a4d8,type:_0x1bfd1f,id:_0x315f17}=_0x2ffd86['_splitMarkerName'](_0xa341c);if('suggestion'!=_0x58a4d8||'deletion'!=_0x1bfd1f||_0x415d47['oldRange'])continue;if(!_0x2ffd86['hasSuggestion'](_0x315f17))continue;const _0xeff096=_0x2ffd86['getSuggestion'](_0x315f17)['getRanges'](),_0x104105=_0x44296a['plugins']['get']('Users')['me'];for(const _0x4e7402 of _0x2ffd86['getSuggestions']()){if(!_0x4e7402['isInContent']||_0x4e7402['author']!=_0x104105)continue;if('formatBlock'!=_0x4e7402['type']||'tablePasteCell'!=_0x4e7402['subType'])continue;if(_0x4e7402['getRanges']()['every'](_0x54d461=>_0xeff096['some'](_0x4a31ec=>_0x4a31ec['containsRange'](_0x54d461,!0x0)))){for(const _0x5cb205 of _0x4e7402['getAllAdjacentSuggestions']())_0x5cb205['isInContent']&&(_0x5cb205['discard'](),_0x2a437d=!0x0);}}}return _0x2a437d;}),_0x44296a['model']['document']['registerPostFixer'](_0x44e785=>{const _0x21eb64=_0x44296a['commands']['get']('redo');if(!_0x21eb64||!_0x21eb64['_createdBatches']['has'](_0x44e785['batch']))return!0x1;let _0x51cd7c=!0x1;const _0x1ae8c4=_0x44296a['plugins']['get']('Users')['me'],_0x2a47ef=_0x44296a['model']['document']['differ']['getChanges'](),_0x3a9cef=Array['from'](_0x44296a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xe8879e,data:_0x4ed74d})=>{const {group:_0x453bca,subType:_0x208d8f,authorId:_0x523319}=_0x2ffd86['_splitMarkerName'](_0xe8879e);return'suggestion'==_0x453bca&&'tablePaste'==_0x208d8f&&_0x523319==_0x1ae8c4['id']&&!_0x4ed74d['oldRange'];});for(const _0x5444ee of _0x2a47ef){if('insert'!=_0x5444ee['type']||'tableCellSuggestion'!=_0x5444ee['name']||0x1!=_0x5444ee['length'])continue;const _0x314af9=_0x44e785['createRange'](_0x5444ee['position'],_0x5444ee['position']['getShiftedBy'](0x1));if(!_0x3a9cef['find'](({data:_0xebf09})=>_0xebf09['newRange']['isEqual'](_0x314af9))){for(const {name:_0x5872a0,data:_0x253cf7}of _0x3a9cef)if(_0x314af9['containsRange'](_0x253cf7['newRange'])){_0x44e785['updateMarker'](_0x5872a0,{'range':_0x314af9}),_0x51cd7c=!0x0;break;}}}return _0x51cd7c;}),_0x44296a['model']['document']['registerPostFixer'](_0x1fbb16=>{let _0x55685d=!0x1;const _0x159da4=_0x44296a['plugins']['get']('Users')['me'],_0x33dbbb=_0x2ffd86['getSuggestions']()['filter'](_0x220596=>_0x220596['isInContent']&&_0x220596['author']==_0x159da4),_0x3cda55=new Set(),_0xe91d81=new Set();for(const _0x3e60e9 of _0x33dbbb)if('tablePaste'==_0x3e60e9['subType'])for(const _0x1237d1 of _0x3e60e9['getMarkers']()){const _0x9c8740=_0x1237d1['getRange']()['getContainedElement']();if(_0x9c8740){if(_0x9c8740['is']('element','tableCellSuggestion')&&Be(_0x9c8740)){_0x3e60e9['removeMarker'](_0x1237d1['name']),_0x3cda55['add'](_0x9c8740),_0x55685d=!0x0;const _0x52efd3=_0x9c8740['nextSibling'],_0x1cfea0=_0x9c8740['previousSibling'],_0x2bda6d=_0x52efd3&&_0x52efd3['is']('element','tableCellSuggestion'),_0x45ff5a=_0x1cfea0&&_0x1cfea0['is']('element','tableCellSuggestion');_0x2bda6d&&!_0x3cda55['has'](_0x52efd3)&&_0xe91d81['add'](_0x52efd3),_0x45ff5a&&!_0x3cda55['has'](_0x1cfea0)&&_0xe91d81['add'](_0x1cfea0);}else _0x9c8740['is']('element','paragraph')&&_0x9c8740['isEmpty']&&(_0x3e60e9['removeMarker'](_0x1237d1['name']),_0x55685d=!0x0);}}else{if('tablePasteCell'==_0x3e60e9['subType']){if(!_0x3e60e9['attributes']||!_0x3e60e9['attributes']['tablePasteChainId'])continue;const _0x123ef2=_0x3e60e9['attributes']['markerAttributes'];if(_0x123ef2&&Object['keys'](_0x123ef2)['length'])continue;const _0x32b2dc=_0x3e60e9['attributes']['tablePasteChainId'];let _0x2e6b6c=!0x0,_0xb4f9f2=!0x0;for(const _0x2522ed of _0x33dbbb)if(_0x2522ed['subType']&&_0x2522ed['subType']['startsWith']('tablePaste')){if(!_0x2522ed['attributes']['tablePasteChainId']){_0xb4f9f2=!0x1;break;}if(_0x2522ed['id']!=_0x3e60e9['id']&&_0x2522ed['attributes']['tablePasteChainId']==_0x32b2dc){_0x2e6b6c=!0x1;break;}}_0xb4f9f2&&_0x2e6b6c&&(_0x3e60e9['removeMarkers'](),_0x55685d=!0x0);}}for(const _0x2ccb9d of _0x3cda55)_0x1fbb16['remove'](_0x2ccb9d);for(const _0x49e84e of _0xe91d81)_0x1fbb16['unwrap'](_0x49e84e);return _0x55685d;}),_0x44296a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2fff78=>_0x429119(_0x2fff78),'converterPriority':'high'}),_0x44296a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d88b4,_0x984003)=>_0x984003['options']['showSuggestionHighlights']?_0x429119(_0x2d88b4,!0x1):null,'converterPriority':'high'});const _0x2a704c=_0x44296a['editing']['view'];this['listenTo'](_0x2a704c['document'],'clipboardOutput',(_0x1ebb01,_0x338265)=>{const _0x4bf523=[];for(const _0x14beb5 of _0x2a704c['createRangeIn'](_0x338265['content'])['getItems']())_0x14beb5['is']('element','suggestion-td')&&_0x4bf523['push'](_0x14beb5);_0x2a704c['change'](_0x5938eb=>{for(const _0x569dd6 of _0x4bf523)_0x5938eb['move'](_0x5938eb['createRangeIn'](_0x569dd6),_0x5938eb['createPositionBefore'](_0x569dd6)),_0x5938eb['remove'](_0x569dd6);});});}}function Be(_0x50cfbb){if(_0x50cfbb['isEmpty'])return!0x0;const _0x5d5781=_0x50cfbb['getChild'](0x0);return _0x5d5781['is']('element','paragraph')&&_0x5d5781['isEmpty'];}function Oe(_0x38c035,_0x3e6832={},_0x1d948e){for(const {isAnchor:_0x1f2237,cellHeight:_0x18d082,cellWidth:_0x48bede}of _0x1d948e['createTableWalker'](_0x38c035,{'includeAllSlots':!0x0,..._0x3e6832}))if(!_0x1f2237||0x1!=_0x18d082||0x1!=_0x48bede)return!0x1;return!0x0;}class Ot extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x544f42=this['editor']['plugins']['get']('TrackChangesEditing');_0x544f42['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x544f42['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x544f42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x544f42['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x544f42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x544f42['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xaf3346,_0x3d5baf){const _0xcec5be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ac244=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x24aeb3=_0x3d5baf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3db6c3=_0x5ac244['getColumnGroupElement'](_0x24aeb3);let _0x4a8b22=_0x3db6c3?_0x5ac244['getTableColumnsWidths'](_0x3db6c3):null,_0x2ce397=_0x24aeb3['getAttribute']('tableWidth')||null;const _0x2a4502=_0x3d5baf['tableWidth']||_0x2ce397,_0x362152=_0x3d5baf['columnWidths']||_0x4a8b22,_0x38f99c=this['editor']['plugins']['get']('Users')['me'];for(const _0x203fdf of _0xcec5be['getSuggestions']()){const _0x155785=_0x203fdf['getContainedElement']();if('resizeTable'===_0x203fdf['subType']&&_0x155785===_0x24aeb3){_0x203fdf['author']!==_0x38f99c&&_0x203fdf['discard']();const _0x133780=_0x203fdf['data']['commandParams'];_0x2ce397=_0x133780[0x0]['tableWidth'],_0x4a8b22=_0x133780[0x0]['columnWidths'];break;}}_0xaf3346({'table':_0x24aeb3,'tableWidth':_0x2a4502,'columnWidths':_0x362152}),_0xcec5be['markBlockFormat'](_0x24aeb3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2ce397,'columnWidths':_0x4a8b22}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xfd6cbc){if('formatBlock'!=_0xfd6cbc['type']&&'formatInline'!=_0xfd6cbc['type'])return;const {data:_0x2da989}=_0xfd6cbc;if(_0x2da989&&'resizeTable'===_0x2da989['formatGroupId']){const _0x13c5af='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x13c5af)};}}}class xt extends _0x5c469f{['afterInit'](){const _0x64a69d=this['editor'];_0x64a69d['plugins']['has']('Template')&&_0x64a69d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5c469f{['afterInit'](){const _0x5c3006=this['editor'];if(!_0x5c3006['commands']['get']('insertTableOfContents'))return;_0x5c3006['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2a6061=_0x5c3006['plugins']['get']('TrackChangesEditing'),_0x520156=_0x5c3006['locale'];_0x2a6061['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14a443=>o(_0x520156,'ELEMENT_TABLE_OF_CONTENTS',_0x14a443));}}class Rt extends _0x5c469f{['afterInit'](){const _0x44273a=this['editor'];if(!_0x44273a['plugins']['has']('Title'))return;const _0x4ecad6=_0x44273a['plugins']['get']('TrackChangesEditing');_0x4ecad6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x44273a['locale'],'ELEMENT_TITLE')),_0x44273a['model']['document']['registerPostFixer'](_0x4fd171=>{let _0x71b8ef=!0x1;const _0x19f867=Array['from'](_0x44273a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x76cd0,data:_0xef368a}of _0x19f867){const {group:_0x296503}=_0x4ecad6['_splitMarkerName'](_0x76cd0);if('suggestion'!==_0x296503||!_0xef368a['newRange'])continue;const _0x380430=_0xef368a['newRange'],_0x3462f1=_0x380430['end']['nodeBefore'];if(!_0x3462f1||!_0x3462f1['is']('element','title-content'))continue;if(!_0x380430['start']['isTouching'](_0x380430['end']))continue;const _0xd68969=_0x44273a['model']['schema']['getNearestSelectionRange'](_0x380430['end'],'forward');if(_0xd68969&&_0xd68969['isCollapsed']){const _0x5e5e32=_0x4fd171['createRange'](_0x380430['start'],_0xd68969['start']);_0x5e5e32['isEqual'](_0x380430)||(_0x4fd171['updateMarker'](_0x76cd0,{'range':_0x5e5e32}),_0x71b8ef=!0x0);}_0x71b8ef||(_0x4fd171['removeMarker'](_0x76cd0),_0x71b8ef=!0x0);}return _0x71b8ef;});}}class Tt extends _0x5c469f{['afterInit'](){const _0xcc06a9=this['editor'],_0x50d418=_0xcc06a9['plugins']['get']('TrackChangesEditing');_0xcc06a9['plugins']['has']('Uploadcare')&&(_0x50d418['enableCommand']('uploadcare'),_0xcc06a9['plugins']['has']('UploadcareImageEdit')&&(_0x50d418['enableCommand']('uploadcareImageEdit'),_0x50d418['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x50d418['descriptionFactory']['registerDescriptionCallback'](_0x36dcbe=>{if('attribute'!=_0x36dcbe['type'])return;const {data:_0x160147}=_0x36dcbe;return _0x160147&&'uploadcareImageId'==_0x160147['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5c469f{['afterInit'](){const _0x356d61=this['editor'],_0x54321b=_0x356d61['plugins']['get']('TrackChangesEditing');_0x356d61['plugins']['has']('UndoEditing')&&(_0x54321b['enableCommand']('undo'),_0x54321b['enableCommand']('redo'));}}class Ut extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x3f4cf1=this['editor'];if(!_0x3f4cf1['plugins']['has']('TableCaptionEditing'))return;_0x3f4cf1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5c469f{['tableProperties'];['tableCellProperties'];constructor(_0x124089){super(_0x124089),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 _0x50a28f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x16ce1f of this['tableProperties'])_0x50a28f['enableCommand'](_0x16ce1f,(_0x917ecd,_0x536413)=>{const _0x5edd73=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x16ce1f,[_0x5edd73],this['tableProperties'],'tableProperties',_0x917ecd,_0x536413);});_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x50a28f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1b3630,_0x5c3228)=>this['handleDiscardAction'](this['tableProperties'],_0x1b3630,_0x5c3228)),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1fcee4 of this['tableCellProperties'])_0x50a28f['enableCommand'](_0x1fcee4,(_0x2918ab,_0x3eee87)=>{const _0xd4940f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1fcee4,_0xd4940f,this['tableCellProperties'],'tableCellProperties',_0x2918ab,_0x3eee87);});_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x50a28f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x513763,_0x52a76c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x513763,_0x52a76c)),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x50a28f['descriptionFactory']['registerDescriptionCallback'](_0x47710e=>this['handleSuggestionDescription'](_0x47710e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x54cece,_0x393008,_0x4551e7,_0x447beb,_0x2a11c1,_0x5b2535){const _0xf8cdba=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b2535['batch'],()=>{for(const _0xa44a69 of _0x393008){if(this['_getSuggestion'](_0xa44a69,_0x447beb))_0x2a11c1(_0x5b2535);else{const _0x3abf82={};for(const _0x27fa7b of _0x4551e7){const _0x361a76=_0xa44a69['getAttribute'](_0x27fa7b);void 0x0!==_0x361a76&&(_0x3abf82[_0x27fa7b]=_0x361a76);}_0x2a11c1(_0x5b2535),_0xf8cdba['markBlockFormat'](_0xa44a69,{'commandParams':[_0x3abf82]},[],_0x447beb);}}});}['handleDiscardAction'](_0x3080dd,_0x43d5ee,_0x58c293){const _0x280307=_0x43d5ee[0x0]['start']['nodeAfter'],_0x5edf2d=_0x58c293['commandParams'][0x0];this['editor']['model']['change'](_0x4e3879=>{for(const _0x38c543 of _0x3080dd)void 0x0!==_0x5edf2d[_0x38c543]?_0x4e3879['setAttribute'](_0x38c543,_0x5edf2d[_0x38c543],_0x280307):_0x4e3879['removeAttribute'](_0x38c543,_0x280307);});}['handleSuggestionDescription'](_0x483fa2){if(_0x483fa2['data'])switch(_0x483fa2['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'](_0x5e6996,_0x46ca7e){const _0x1e9c95=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3c3dac of _0x1e9c95['getSuggestions']({'skipNotAttached':!0x0})){const _0x440f90=_0x3c3dac['getContainedElement']();if(_0x3c3dac['subType']===_0x46ca7e&&_0x440f90===_0x5e6996)return _0x3c3dac;}return null;}['_registerTablePropertiesAttributes'](){const _0x1bce0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x765b00=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1fdf6a of _0x765b00){const _0x28f28d=_0x1fdf6a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1bce0b['descriptionFactory']['registerAttributeLabel'](_0x1fdf6a,o(this['editor']['locale'],'FORMAT_'+_0x28f28d));}}}class Ft extends _0x5c469f{['afterInit'](){const _0x6d163b=this['editor'];if(!_0x6d163b['plugins']['has']('LineHeight'))return;const _0xd68a42=_0x6d163b['plugins']['get']('TrackChangesEditing'),_0x3c49bf=_0x6d163b['locale'];_0xd68a42['enableDefaultAttributesIntegration']('lineHeight'),_0xd68a42['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3c49bf,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x5c469f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0xe3d5a4,_0x52061b,_0x4a392e,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4baeac){super(_0x4baeac),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1afa2d,_0x5c3d28,_0x18bd70,_0x8302d0)=>{this['_model']['change'](()=>{for(const _0x2bdd2f of[..._0x8302d0,..._0x18bd70])this['_model']['markers']['has'](_0x2bdd2f)&&_0x4baeac['editing']['reconvertMarker'](_0x2bdd2f);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4baeac['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4baeac['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4baeac['config']['get']('trackChanges.trackFormatChanges'),_0x4baeac['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4baeac['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4baeac,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1462f0=this['editor'];_0x1462f0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x36e06a,{writer:_0xf9d5a})=>{let _0x41ba7a='suggestion:'+_0x36e06a['getAttribute']('suggestion-type')+':'+_0x36e06a['getAttribute']('id');return _0x36e06a['getAttribute']('marker-count')&&(_0x41ba7a+=':'+_0x36e06a['getAttribute']('marker-count')),_0xf9d5a['createElement']('$marker',{'data-name':_0x41ba7a});}}),_0x1462f0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1462f0['model']['document']['registerPostFixer'](_0x4834fd=>{let _0x19131a=!0x1;const _0x38925c=Array['from'](_0x1462f0['model']['document']['differ']['getChangedMarkers']()),_0x299a2a=new Set();for(const {name:_0x2270de,data:_0x28044d}of _0x38925c){const {group:_0x48056f,type:_0x170aa3,subType:_0x204dfb,id:_0x4fc10e}=this['_splitMarkerName'](_0x2270de);if('suggestion'!==_0x48056f)continue;const _0x5bf5b4=_0x204dfb?'suggestion:'+_0x170aa3+':'+_0x204dfb+':'+_0x4fc10e:'suggestion:'+_0x170aa3+':'+_0x4fc10e,_0x496230=_0x1462f0['model']['markers']['getMarkersGroup'](_0x5bf5b4),_0x12132a=_0x1462f0['model']['markers']['get'](_0x2270de),_0x4a7c85=this['_suggestions']['get'](_0x4fc10e);if(null!=_0x28044d['newRange']){'formatInline'==_0x170aa3&&(_0x19131a=_0x19131a||Wt(_0x28044d['newRange'],_0x2270de,_0x4834fd,_0x1462f0['model']['schema']));const _0x54fb9e='attribute'==_0x170aa3&&this['_isBlockAttribute'](_0x204dfb['split']('|')[0x0]),_0x5d7fbd='attribute'==_0x170aa3&&this['_isInlineAttribute'](_0x204dfb['split']('|')[0x0]);if(_0x28044d['newRange']['isCollapsed']||'$graveyard'==_0x28044d['newRange']['root']['rootName']||'formatBlock'==_0x170aa3&&!Qt(_0x28044d['newRange'])||_0x54fb9e&&!Qt(_0x28044d['newRange'])||_0x5d7fbd&&Xt(_0x28044d['newRange'])||'deletion'==_0x170aa3&&Xt(_0x28044d['newRange'])||_0x12132a&&Yt(_0x12132a,_0x496230))_0x4834fd['removeMarker'](_0x2270de),_0x19131a=!0x0;else{if(!_0x4a7c85||!_0x4a7c85['isInContent'])continue;if(_0x28044d['newRange']&&_0x28044d['oldRange']&&_0x28044d['newRange']['isEqual'](_0x28044d['oldRange']))continue;_0x299a2a['add'](_0x4a7c85);}}}return _0x299a2a['size']>0x0&&(_0x19131a=!!this['_joinWithAdjacentSuggestions'](_0x299a2a)||_0x19131a),_0x19131a;}),_0x1462f0['model']['document']['registerPostFixer'](_0x984225=>{let _0x5402be=!0x1;for(const _0x59baac of _0x1462f0['model']['document']['differ']['getChanges']())if('insert'==_0x59baac['type'])for(const _0x2051ce of this['_suggestions']['values']()){if(_0x2051ce['isMultiRange']||!_0x2051ce['isInContent'])continue;const _0x39588b='formatBlock'==_0x2051ce['type'],_0x266889=this['_getAttributeKey'](_0x2051ce),_0x1145c8=_0x266889&&this['_isBlockAttribute'](_0x266889);if(!_0x39588b&&!_0x1145c8)continue;const _0x3569ba=_0x2051ce['getFirstRange']();if(_0x3569ba['start']['parent']!=_0x3569ba['end']['parent']&&!_0x3569ba['end']['isAtEnd']){const _0x2edd48=_0x1462f0['model']['createPositionAt'](_0x3569ba['start']['nodeAfter'],'end'),_0x3d8daa=_0x1462f0['model']['createRange'](_0x3569ba['start'],_0x2edd48);_0x984225['updateMarker'](_0x2051ce['getFirstMarker'](),{'range':_0x3d8daa}),_0x5402be=!0x0;}}return _0x5402be;}),_0x1462f0['model']['document']['registerPostFixer'](_0x4a0db0=>this['_processAttributeChanges'](_0x4a0db0)),_0x1462f0['model']['document']['registerPostFixer'](_0x43255c=>!_0x43255c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x43255c)),_0x1462f0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1462f0['model']['document']['on']('change:data',(_0x4dc469,_0x343601)=>{if(!_0x343601['isLocal']||_0x343601['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x86586f=_0x1462f0['model']['document']['differ']['getChanges']();if(0x0==_0x86586f['length'])return;const _0xbdc7c3=[],_0x3c9e8b=_0x86586f['filter'](_0x2b61c9=>'attribute'==_0x2b61c9['type']),_0x15da70=_0x86586f['filter'](_0x3c21af=>'insert'==_0x3c21af['type']&&'$text'!=_0x3c21af['name']);for(const _0x2f02a8 of _0x3c9e8b)this['_isRegisteredAttribute'](_0x2f02a8['attributeKey'])&&_0xbdc7c3['push']({'key':_0x2f02a8['attributeKey'],'newValue':_0x2f02a8['attributeNewValue'],'oldValue':_0x2f02a8['attributeOldValue'],'range':Zt(_0x2f02a8['range'],_0x1462f0['model'])});for(const _0x48fc6f of _0x15da70){if('rename'!=_0x48fc6f['action']&&'refresh'!=_0x48fc6f['action'])continue;const _0x11c740=tn(_0x48fc6f['position']['nodeAfter'],_0x1462f0['model']),_0x44a043=_0x48fc6f['before'];'rename'==_0x48fc6f['action']&&_0xbdc7c3['push']({'key':m,'newValue':_0x48fc6f['name'],'oldValue':_0x44a043['name'],'range':_0x11c740});for(const [_0x20af08,_0x30adc4]of _0x44a043['attributes']){if(!this['_isRegisteredAttribute'](_0x20af08))continue;const _0xed424c=_0x48fc6f['attributes']['get'](_0x20af08);_0x30adc4!==_0xed424c&&_0xbdc7c3['push']({'key':_0x20af08,'newValue':_0xed424c,'oldValue':_0x30adc4,'range':_0x11c740});}for(const [_0x54e056,_0x5b7de6]of _0x48fc6f['attributes'])this['_isRegisteredAttribute'](_0x54e056)&&(_0x44a043['attributes']['has'](_0x54e056)||_0xbdc7c3['push']({'key':_0x54e056,'newValue':_0x5b7de6,'oldValue':null,'range':_0x11c740}));}0x0!=_0xbdc7c3['length']&&_0x1462f0['model']['enqueueChange'](_0x343601,_0x5ad1d1=>{const _0x2aaf1a=_0xe7a85c();for(const {range:_0x2e2aba,key:_0x2e250d,oldValue:_0x13fc49,newValue:_0x5e4748}of _0xbdc7c3)this['markAttributeChange'](_0x2e2aba,_0x2e250d,_0x13fc49,_0x5e4748,{'groupId':_0x2aaf1a});this['_reduceExistingSuggestions'](_0x5ad1d1,_0xbdc7c3);});},{'priority':'lowest'}),_0x1462f0['model']['markers']['on']('update:suggestion',(_0x3466ee,_0x42ca3b,_0x2ae5ff)=>{if(null==_0x2ae5ff){const {id:_0x515dce}=this['_splitMarkerName'](_0x42ca3b['name']),_0x1abe9c=this['_suggestions']['get'](_0x515dce);_0x1abe9c&&_0x1abe9c['addMarkerName'](_0x42ca3b['name']);}}),_0x1462f0['model']['document']['on']('change:data',()=>{const _0x32036a=Array['from'](_0x1462f0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5152ae=>'suggestion'===this['_splitMarkerName'](_0x5152ae['name'])['group']);if(0x0===_0x32036a['length'])return;_0x32036a['sort']((_0x44936d,_0x380c3e)=>{const _0x59517b=_0x44936d['data']['oldRange'],_0x23f8e5=_0x380c3e['data']['oldRange'];return null===_0x59517b&&null===_0x23f8e5?0x0:null===_0x59517b&&null!==_0x23f8e5?-0x1:null!==_0x59517b&&null===_0x23f8e5?0x1:_0x59517b['start']['isBefore'](_0x23f8e5['start'])?-0x1:0x1;});const _0x17f970=new Set(),_0x1da163=new Set();for(const {name:_0x5f1891,data:_0x59bb16}of _0x32036a){const {id:_0x122412}=this['_splitMarkerName'](_0x5f1891);if(null===_0x59bb16['oldRange']){const _0x5a6e12=this['_handleNewSuggestionMarker'](_0x5f1891);_0x1da163['add'](_0x5a6e12);}else{const _0x1f47ba=this['_suggestions']['get'](_0x122412);null!==_0x59bb16['newRange']||_0x1f47ba['isInContent']?(_0x17f970['add'](_0x1f47ba['head']),_0x1da163['add'](_0x1f47ba)):this['_removeSuggestion'](_0x1f47ba);}}_0x1da163['size']>0x0&&this['_refreshSuggestionsChain'](_0x1da163);for(const _0x5e184d of _0x17f970)this['fire']('suggestionChanged',_0x5e184d);}),_0x1462f0['model']['on']('applyOperation',(_0x157884,_0x154a2c)=>{const _0xe6cfdd=_0x154a2c[0x0];if(!this['_suggestions']['size'])return;if(!_0xe6cfdd['isDocumentOperation'])return;if(_0xe6cfdd['batch']['isUndo']||!_0xe6cfdd['batch']['isLocal'])return;let _0x4f8c5b,_0x54594f;switch(_0xe6cfdd['type']){case'insert':_0x4f8c5b=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['position']),_0x54594f=_0x4f8c5b['getShiftedBy'](_0xe6cfdd['howMany']);break;case'split':_0x4f8c5b=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['splitPosition']),_0x54594f=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['moveTargetPosition']);break;case'move':_0x4f8c5b=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['targetPosition']),_0x54594f=_0x4f8c5b['getShiftedBy'](_0xe6cfdd['howMany']);break;default:return;}const _0x223521=_0x1462f0['model']['createRange'](_0x4f8c5b,_0x54594f);_0x1462f0['model']['change'](()=>{for(const {suggestion:_0x523df0,meta:_0x7b68c4}of this['_findSuggestions'](_0x223521)){if(_0x523df0['isMultiRange'])continue;if('formatInline'==_0x523df0['type'])continue;const _0x296d88=this['_getAttributeKey'](_0x523df0);if(_0x296d88&&this['_isBlockAttribute'](_0x296d88)&&'split'!=_0xe6cfdd['type'])continue;const _0x513ccf=_0x523df0['data']&&_0x523df0['data']['multipleBlocks'];('formatBlock'!=_0x523df0['type']||'split'==_0xe6cfdd['type']&&!_0x513ccf)&&(_0x7b68c4['containsRangeInObject']||'insertion'==_0x523df0['type']&&_0x7b68c4['isOwn']||_0x523df0['getFirstRange']()['containsRange'](_0x223521)&&this['_breakSuggestionMarker'](_0x523df0,_0x4f8c5b,_0x54594f));}});},{'priority':'lowest'}),_0x1462f0['model']['on']('deleteContent',(_0x42bbe8,_0x286f1e)=>{const _0x4917cb=_0x286f1e[0x0],_0x248f03=_0x286f1e[0x1];if(_0x248f03&&_0x248f03['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4917cb['isCollapsed'])return;const _0x26f6d5=_0x1462f0['model']['schema'],{start:_0x4ca2be,end:_0x3ca557}=_0x4917cb['getFirstRange'](),_0x4348c9=_0x4ca2be['nodeAfter']&&_0x26f6d5['isLimit'](_0x4ca2be['nodeAfter'])?null:_0x26f6d5['getNearestSelectionRange'](_0x4ca2be,'forward'),_0x512931=_0x3ca557['nodeBefore']&&_0x26f6d5['isLimit'](_0x3ca557['nodeBefore'])?null:_0x26f6d5['getNearestSelectionRange'](_0x3ca557,'backward'),_0x309459=_0x1462f0['model']['createRange'](_0x4348c9?_0x4348c9['start']:_0x4ca2be,_0x512931?_0x512931['end']:_0x3ca557);_0x1462f0['model']['change'](_0x2a749f=>{this['markDeletion'](_0x309459);const _0x1151d5=_0x1462f0['model']['schema']['getNearestSelectionRange'](_0x309459['start']);_0x4917cb['is']('documentSelection')?_0x2a749f['setSelection'](_0x1151d5):_0x4917cb['setTo'](_0x1151d5);}),_0x42bbe8['stop']();},{'priority':_0x5382c2['normal']+0xa}),_0x1462f0['model']['on']('insertContent',(_0x581739,_0x54952a)=>{const _0x1d3a8a=_0x54952a[_0x54952a['length']-0x1];_0x1d3a8a&&_0x1d3a8a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1462f0['model']['change'](()=>{let _0x4d8a3f=_0x1462f0['model']['insertContent'](_0x54952a[0x0],_0x54952a[0x1],_0x54952a[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d8a3f)return;_0x581739['return']=_0x4d8a3f['clone']();const _0x20e3bc=_0x4d8a3f['end']['nodeBefore'],_0x3d3a9f=_0x1462f0['model']['schema'];_0x20e3bc&&_0x3d3a9f['isBlock'](_0x20e3bc)&&!_0x3d3a9f['isObject'](_0x20e3bc)&&(_0x4d8a3f=_0x1462f0['model']['createRange'](_0x4d8a3f['start'],_0x1462f0['model']['createPositionAt'](_0x20e3bc,'end'))),this['markInsertion'](_0x4d8a3f);}),_0x581739['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5d2bbb=new v(_0x1462f0,this['_suggestions']);_0x1462f0['commands']['add']('acceptSuggestion',_0x5d2bbb),this['enableCommand']('acceptSuggestion');const _0x1d0f0a=new D(_0x1462f0,this['_suggestions']);_0x1462f0['commands']['add']('discardSuggestion',_0x1d0f0a),this['enableCommand']('discardSuggestion'),_0x1462f0['commands']['add']('acceptAllSuggestions',new B(_0x1462f0,_0x5d2bbb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1462f0['commands']['add']('discardAllSuggestions',new B(_0x1462f0,_0x1d0f0a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1462f0['commands']['add']('acceptSelectedSuggestions',new O(_0x1462f0,_0x5d2bbb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1462f0['commands']['add']('discardSelectedSuggestions',new O(_0x1462f0,_0x1d0f0a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x57ea0e=_0x1462f0['plugins']['get']('CommentsRepository');this['listenTo'](_0x57ea0e,'addComment',(_0x4e198b,{threadId:_0x1e7376})=>{const _0x285561=this['_suggestions']['get'](_0x1e7376);_0x285561&&_0x285561['commentThread']&&0x1===_0x285561['commentThread']['length']&&this['_updateSuggestionData'](_0x1e7376,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x57ea0e,'removeComment',(_0x17fbfc,{threadId:_0xb3c06b})=>{const _0xdb7dda=this['_suggestions']['get'](_0xb3c06b);_0xdb7dda&&_0xdb7dda['commentThread']&&!_0xdb7dda['commentThread']['length']&&this['_updateSuggestionData'](_0xb3c06b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x440a53){const _0x1a4406=_0x1d8612([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x29c5d6=0x3d8d0df,_0x1a58f7=0x3dfaa97^_0x29c5d6,_0x2117eb=window[_0x1d8612([0x44,0x61,0x74,0x65])][_0x1d8612([0x6e,0x6f,0x77])](),_0x5058c=_0x440a53[_0x1d8612([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2667a2=new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530564=>{_0x5058c[_0x1d8612([0x6f,0x6e,0x63,0x65])](_0x1d8612([0x72,0x65,0x61,0x64,0x79]),_0x530564);}),_0x6201e7={[_0x1d8612([0x6b,0x74,0x79])]:_0x1d8612([0x45,0x43]),[_0x1d8612([0x75,0x73,0x65])]:_0x1d8612([0x73,0x69,0x67]),[_0x1d8612([0x63,0x72,0x76])]:_0x1d8612([0x50,0x2d,0x32,0x35,0x36]),[_0x1d8612([0x78])]:_0x1d8612([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]),[_0x1d8612([0x79])]:_0x1d8612([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]),[_0x1d8612([0x61,0x6c,0x67])]:_0x1d8612([0x45,0x53,0x32,0x35,0x36])},_0x5dd792=_0x5058c[_0x1d8612([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d8612([0x67,0x65,0x74])](_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x182649(){let _0x3078ae,_0x473f39=null,_0x1e12b4=null;try{if(_0x5dd792==_0x1d8612([0x47,0x50,0x4c]))return _0x1d8612([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3078ae=_0x4c68b0(),!_0x3078ae)return _0x1d8612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3078ae[_0x1d8612([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e12b4=_0xe6c5a9(_0x3078ae[_0x1d8612([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3078ae[_0x1d8612([0x6a,0x74,0x69])])),await _0x3d4a1b()?_0x11b2d8()?_0x589213()?_0x1d8612([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x550188()?(_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d8612([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x473f39=_0x24cb46(_0x1d8612([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d8612([0x74,0x72,0x69,0x61,0x6c])&&(_0x473f39=_0x24cb46(_0x1d8612([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16f02e()):_0x1d8612([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d8612([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d8612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d8612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x589213(){const _0xfb5c70=[_0x1d8612([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d8612([0x74,0x72,0x69,0x61,0x6c])][_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2117eb/0x3e8:0xe10*_0x1a58f7;return _0x3078ae[_0x1d8612([0x65,0x78,0x70])]<_0xfb5c70;}function _0x11b2d8(){const _0x1065c6=_0x3078ae[_0x1d8612([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1065c6)return!0x1;if(_0x1065c6[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x2a])))return!0x0;if(_0x1065c6[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x54,0x43])))return!0x0;if(_0x1065c6[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x52,0x54,0x43]))){if(_0x1cdca6())return!0x0;if(_0x2f6149()||_0x505f7d())return!0x0;}return!0x1;}function _0x550188(){const _0x15fcc9=_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15fcc9||0x0==_0x15fcc9[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c1fbc}=new URL(window[_0x1d8612([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15fcc9[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c1fbc))return!0x0;const _0x1fd8c3=_0x5c1fbc[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e]));return _0x15fcc9[_0x1d8612([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48d20c=>_0x48d20c[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x2a])))[_0x1d8612([0x6d,0x61,0x70])](_0x1f0a32=>_0x1f0a32[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e])))[_0x1d8612([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19a8c0=>_0x19a8c0[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1fd8c3[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d8612([0x6d,0x61,0x70])](_0x131246=>Array(_0x1fd8c3[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x131246[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d8612([0x66,0x69,0x6c,0x6c])](_0x131246[0x0]===_0x1d8612([0x2a])?_0x1d8612([0x2a]):'')[_0x1d8612([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x131246))[_0x1d8612([0x73,0x6f,0x6d,0x65])](_0x4be41a=>_0x1fd8c3[_0x1d8612([0x65,0x76,0x65,0x72,0x79])]((_0x1ca823,_0x553d68)=>_0x4be41a[_0x553d68]===_0x1ca823||_0x4be41a[_0x553d68]===_0x1d8612([0x2a])));}function _0x16f02e(){return _0x473f39&&_0x1e12b4?new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2018d1,_0x2d1799)=>{_0x473f39[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x2018d1,_0x2d1799),_0x1e12b4[_0x1d8612([0x74,0x68,0x65,0x6e])](_0xfaebce=>{_0xfaebce!=_0x1d8612([0x56,0x61,0x6c,0x69,0x64])&&_0x2018d1(_0xfaebce);},_0x2d1799);}):_0x473f39||_0x1e12b4||_0x1d8612([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe6c5a9(_0x513a1d,_0x3c1ca2){return new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d78f8=>{if(_0x5b7bcb())return _0x3d78f8(_0x1d8612([0x56,0x61,0x6c,0x69,0x64]));_0x55cc67(),_0x5058c[_0x1d8612([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d8612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d07fd=!0x1;const _0x1ca63e=_0xe7a85c();function _0x49229e(_0x373308){return!!_0x373308&&(typeof _0x373308===_0x1d8612([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x373308===_0x1d8612([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x373308[_0x1d8612([0x74,0x68,0x65,0x6e])]===_0x1d8612([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x373308[_0x1d8612([0x63,0x61,0x74,0x63,0x68])]===_0x1d8612([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x436b4f(_0x2991a3){_0xb5f632(_0x2991a3)[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x1d9552=>{if(!_0x1d9552||_0x1d9552[_0x1d8612([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d8612([0x6f,0x6b]))return _0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16a9a1(_0x5dd064(_0x1ca63e+_0x3c1ca2))!=_0x1d9552[_0x1d8612([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d8612([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x323223=>(_0x45b5a0(),_0x323223),()=>{const _0x2478a4=_0x498089();return null==_0x2478a4?(_0x45b5a0(),_0x1d8612([0x56,0x61,0x6c,0x69,0x64])):_0x1d8612(_0x2117eb-_0x2478a4>(0x27d454df^_0x29c5d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x3d78f8)[_0x1d8612([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d78f8(_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x560fd1=0x3ee3e5f^_0x29c5d6;function _0x45b5a0(){const _0x3cb2dc=_0x1d8612([0x6c,0x6c,0x63,0x74,0x2d])+_0x16a9a1(_0x5dd064(_0x513a1d)),_0x23d355=_0x2d212a(_0x16a9a1(window[_0x1d8612([0x4d,0x61,0x74,0x68])][_0x1d8612([0x63,0x65,0x69,0x6c])](_0x2117eb/_0x560fd1)));window[_0x1d8612([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d8612([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cb2dc,_0x23d355);}function _0x498089(){const _0x35e5a3=_0x1d8612([0x6c,0x6c,0x63,0x74,0x2d])+_0x16a9a1(_0x5dd064(_0x513a1d)),_0x36dd11=window[_0x1d8612([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d8612([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35e5a3);return _0x36dd11?window[_0x1d8612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d212a(_0x36dd11),0x10)*_0x560fd1:null;}function _0xb5f632(_0x11e2fc){return new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15af15,_0x2fccc4)=>{_0x11e2fc[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x15af15,_0x2fccc4),window[_0x1d8612([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fccc4,0x3d9041f^_0x29c5d6);});}}_0x5058c[_0x1d8612([0x6f,0x6e])](_0x1d8612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12e45f,_0x399ba4)=>{if(_0x399ba4[0x0]!=_0x513a1d)return _0x3d78f8(_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x399ba4[0x1]={..._0x399ba4[0x1],[_0x1d8612([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ca63e};},{[_0x1d8612([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d8612([0x68,0x69,0x67,0x68])}),_0x5058c[_0x1d8612([0x6f,0x6e])](_0x1d8612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bd9bd=>{_0x49229e(_0x5bd9bd[_0x1d8612([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d07fd=!0x0,_0x436b4f(_0x5bd9bd[_0x1d8612([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d8612([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d8612([0x6c,0x6f,0x77])}),_0x2667a2[_0x1d8612([0x74,0x68,0x65,0x6e])](()=>{_0x3d07fd||_0x3d78f8(_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b7bcb(){return _0x5058c[_0x1d8612([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d8612([0x76,0x69,0x65,0x77])][_0x1d8612([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d8612([0x61,0x75,0x74,0x6f]);}function _0x55cc67(){_0x5058c[_0x1d8612([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d8612([0x76,0x69,0x65,0x77])][_0x1d8612([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d8612([0x61,0x75,0x74,0x6f]);}}function _0x24cb46(_0x399daa){const _0x4ae4cd=[new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41cf19=>setTimeout(_0x41cf19,0x3d1ee13^_0x29c5d6)),_0x2667a2[_0x1d8612([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x399057=>{let _0x3b0a4a=0x0;_0x5058c[_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d8612([0x6f,0x6e])](_0x1d8612([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57f127,_0x51fa7f)=>{_0x51fa7f[0x0][_0x1d8612([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b0a4a++,_0x3b0a4a==(0x3d8d127^_0x29c5d6)&&(_0x399057(),_0x57f127[_0x1d8612([0x6f,0x66,0x66])]());});}))];return window[_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d8612([0x72,0x61,0x63,0x65])](_0x4ae4cd)[_0x1d8612([0x74,0x68,0x65,0x6e])](()=>_0x399daa);}async function _0x3e8f26(){await _0x2667a2,_0x5058c[_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d8612([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x406e82,_0x5058c[_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d8612([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x406e82,_0x5058c[_0x1d8612([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1cdca6(){return _0x1c3000(_0x1d8612([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x464ca5(_0x1d8612([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d8612([0x73,0x74,0x61,0x74,0x65])]==_0x1d8612([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f6149(){return _0x1c3000(_0x1d8612([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 _0x505f7d(){return _0x1c3000(_0x1d8612([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f4a1a(_0xa2efe4){const _0x38355c=_0x5726d5();_0x5058c[_0x38355c]=_0x1d8612([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa2efe4,_0xa2efe4!=_0x1d8612([0x56,0x61,0x6c,0x69,0x64])&&_0x3e8f26();}function _0x5726d5(){const _0x5b5f11=window[_0x1d8612([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d8612([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d8612([0x6e,0x6f,0x77])]())[_0x1d8612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d8612([0x2e]),'');let _0x594f59=_0x1d8612([0x52]);for(let _0x32ef50=0x0;_0x32ef50<_0x5b5f11[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32ef50+=0x2){let _0xf2cb15=window[_0x1d8612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b5f11[_0x1d8612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32ef50,_0x32ef50+0x2));_0xf2cb15>=_0x1a4406[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf2cb15-=_0x1a4406[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x594f59+=_0x1a4406[_0xf2cb15];}return _0x594f59;}function _0x4c68b0(){const _0x10e457=_0x5dd792[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e]));if(0x3!=_0x10e457[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x384456(_0x10e457[0x1]);function _0x384456(_0x2547bb){const _0x51f6ce=_0xf8c2a3(_0x2547bb);return _0x51f6ce&&_0x501412()?_0x51f6ce:null;function _0x501412(){const _0x13f00c=_0x51f6ce[_0x1d8612([0x6a,0x74,0x69])],_0x1e490d=window[_0x1d8612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f00c[_0x1d8612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13f00c[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x339c32={..._0x51f6ce,[_0x1d8612([0x6a,0x74,0x69])]:_0x13f00c[_0x1d8612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13f00c[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x339c32[_0x1d8612([0x76,0x63])],_0x5dd064(_0x339c32)==_0x1e490d;}}}async function _0x3d4a1b(){let _0x3ecf08=!0x0;try{const _0x4dfb43=_0x5dd792[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e])),[_0x3d0d43,_0x60aedc,_0x269145]=_0x4dfb43;return _0x46a237(_0x3d0d43),await _0x6b2aba(_0x3d0d43,_0x60aedc,_0x269145),_0x3ecf08;}catch{return!0x1;}function _0x46a237(_0x1cdc95){const _0xdde555=_0xf8c2a3(_0x1cdc95);_0xdde555&&_0xdde555[_0x1d8612([0x61,0x6c,0x67])]==_0x1d8612([0x45,0x53,0x32,0x35,0x36])||(_0x3ecf08=!0x1);}async function _0x6b2aba(_0x20e1b8,_0x26ef16,_0x2c50f2){const _0x3607bf=window[_0x1d8612([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d8612([0x66,0x72,0x6f,0x6d])](_0x54bb93(_0x2c50f2),_0x12b7c0=>_0x12b7c0[_0x1d8612([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x532a78=new window[(_0x1d8612([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d8612([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20e1b8+_0x1d8612([0x2e])+_0x26ef16),_0x52ba9a=window[_0x1d8612([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d8612([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x52ba9a)return;const _0x139401=await _0x52ba9a[_0x1d8612([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d8612([0x6a,0x77,0x6b]),_0x6201e7,{[_0x1d8612([0x6e,0x61,0x6d,0x65])]:_0x1d8612([0x45,0x43,0x44,0x53,0x41]),[_0x1d8612([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d8612([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d8612([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x52ba9a[_0x1d8612([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d8612([0x6e,0x61,0x6d,0x65])]:_0x1d8612([0x45,0x43,0x44,0x53,0x41]),[_0x1d8612([0x68,0x61,0x73,0x68])]:{[_0x1d8612([0x6e,0x61,0x6d,0x65])]:_0x1d8612([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x139401,_0x3607bf,_0x532a78)||(_0x3ecf08=!0x1);}}function _0xf8c2a3(_0x53dc5d){return _0x53dc5d[_0x1d8612([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d8612([0x65,0x79]))?JSON[_0x1d8612([0x70,0x61,0x72,0x73,0x65])](_0x54bb93(_0x53dc5d)):null;}function _0x54bb93(_0x3555ea){return window[_0x1d8612([0x61,0x74,0x6f,0x62])](_0x3555ea[_0x1d8612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d8612([0x2b]))[_0x1d8612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d8612([0x2f])));}function _0x5dd064(_0x5d24cc){let _0x497f07=0x1505;function _0x2c2396(_0x16141c){for(let _0x43c358=0x0;_0x43c358<_0x16141c[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43c358++){const _0x1eee04=_0x16141c[_0x1d8612([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43c358);_0x497f07=(_0x497f07<<0x5)+_0x497f07+_0x1eee04,_0x497f07&=_0x497f07;}}function _0x1372ad(_0x2f4691){Array[_0x1d8612([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f4691)?_0x2f4691[_0x1d8612([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1372ad):_0x2f4691&&typeof _0x2f4691==_0x1d8612([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d8612([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f4691)[_0x1d8612([0x73,0x6f,0x72,0x74])]()[_0x1d8612([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fbe09,_0x37fa36])=>{_0x2c2396(_0x4fbe09),_0x1372ad(_0x37fa36);}):_0x2c2396(window[_0x1d8612([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f4691));}return _0x1372ad(_0x5d24cc),_0x497f07>>>0x0;}function _0x16a9a1(_0x2963ac){return _0x2963ac[_0x1d8612([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d8612([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d8612([0x30]));}function _0x2d212a(_0x4a495c){return _0x4a495c[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d8612([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d8612([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c3000(_0x433f5f){return _0x5058c[_0x1d8612([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d8612([0x68,0x61,0x73])](_0x433f5f);}function _0x464ca5(_0x1b823d){return _0x5058c[_0x1d8612([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d8612([0x67,0x65,0x74])](_0x1b823d);}function _0x406e82(){}function _0x1d8612(_0x5a94f4){return _0x5a94f4['map'](_0x1c3771=>String['fromCharCode'](_0x1c3771))['join']('');}_0x2f4a1a(await _0x182649());}(this);}set['adapter'](_0xf590ac){if(this['_adapter'])throw new _0x4bd1ef('track-changes-adapter-already-set',this);this['_adapter']=_0xf590ac;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3765c1=!0x1,toJSON:_0x5b7a8e=!0x1}={}){const _0x48017e=[];for(const _0x39c328 of this['_suggestions']['values']())_0x3765c1&&!_0x39c328['isInContent']||_0x48017e['push'](_0x39c328);return _0x5b7a8e?_0x48017e['map'](_0x13ee20=>_0x13ee20['toJSON']()):_0x48017e;}['getSuggestion'](_0x25d22b){const _0x33cff5=this['_suggestions']['get'](_0x25d22b);if(!_0x33cff5)throw new _0x4bd1ef('track-changes-suggestion-not-found',this);return _0x33cff5;}['hasSuggestion'](_0x326397){return this['_suggestions']['has'](_0x326397);}['addSuggestionData'](_0x5af041){const {authorId:_0x5377c3,id:_0x4a0aa0,originalSuggestionId:_0x93c630,attributes:_0x24e775}=_0x5af041,[_0x3a87ad,_0x64cf10]=_0x5af041['type']['split'](':'),_0x4f457b=this['_suggestions']['get'](_0x4a0aa0)||this['_createSuggestion'](_0x3a87ad,_0x64cf10,_0x4a0aa0,_0x5377c3,_0x24e775,_0x93c630);if(this['_addThreadToSuggestion'](_0x4f457b),this['_checkSuggestionCorrectness'](_0x4f457b,_0x3a87ad,_0x64cf10||null,_0x5377c3),_0x4f457b['createdAt']=_0x5af041['createdAt'],_0x4f457b['_isDataLoaded']=!0x0,_0x24e775&&_0x24e775['@external']){const _0x53a491=_0x24e775['@external'],_0x23e9f4=this['_getExternalAuthor'](_0x53a491['authorName']);_0x4f457b['authoredAt']=_0x53a491['createdAt'],_0x4f457b['author']=_0x23e9f4,_0x4f457b['isExternal']=!0x0;}else _0x4f457b['authoredAt']=_0x5af041['createdAt'];switch(_0x5af041['data']&&(_0x4f457b['data']=_0x5af041['data']),_0x5af041['attributes']&&(_0x4f457b['attributes']=_0x5af041['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4f457b['_saved']=!0x0),this['_suggestionState']['get'](_0x4f457b)){case'notReady':this['_suggestionState']['set'](_0x4f457b,'dataReady');break;case'markerReady':_0x4f457b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4f457b])),this['_refreshSuggestionsChain'](new Set([_0x4f457b])),this['_suggestionState']['set'](_0x4f457b,'ready'),this['fire']('suggestionLoaded',_0x4f457b)):this['_suggestionState']['set'](_0x4f457b,'removed');}return _0x4f457b;}['acceptSuggestion'](_0x53c58e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x491bb5 of _0x53c58e['getAllAdjacentSuggestions']())_0x491bb5['accept']();});});}['discardSuggestion'](_0x347d79){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x260b7f of _0x347d79['getAllAdjacentSuggestions']())_0x260b7f['discard']();});});}['enableCommand'](_0xf8b13a,_0x28a5d8){const _0x58eaa2=this['editor']['commands']['get'](_0xf8b13a);if(!_0x58eaa2)throw new _0x4bd1ef('track-changes-command-not-found',this,{'commandName':_0xf8b13a});if(this['_enabledCommands']['has'](_0x58eaa2))throw new _0x4bd1ef('track-changes-enable-command-twice',this,{'commandName':_0xf8b13a});this['_enabledCommands']['add'](_0x58eaa2),_0x28a5d8&&_0x58eaa2['on']('execute',(_0x462564,_0x4abe7a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4abe7a['length']>0x0&&_0x4abe7a[_0x4abe7a['length']-0x1]&&_0x4abe7a[_0x4abe7a['length']-0x1]['forceDefaultExecution']?_0x4abe7a['pop']():(_0x462564['return']=_0x28a5d8((..._0x2c4b16)=>_0x58eaa2['execute'](..._0x2c4b16,{'forceDefaultExecution':!0x0}),..._0x4abe7a),_0x462564['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1bcf10){let _0xc59092,_0x257466;const _0xcca32b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc59092=_0x1bcf10();}catch(_0x565a41){_0x257466=_0x565a41;}return _0xcca32b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x257466&&_0x4bd1ef['rethrowUnexpectedError'](_0x257466,this),_0xc59092;}['markInsertion'](_0x3c9a88,_0x297ed8=null,_0x494982={}){if(_0x3c9a88['isCollapsed'])return null;const _0x4dcf81=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x494982['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2bae81,meta:_0x526851}of this['_findSuggestions'](_0x3c9a88,'insertion'))if(_0x526851['isOwn']){if(!_0x526851['isNextTo']){if(_0x526851['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2bae81,_0x494982))continue;return _0x2bae81;}if(sn(_0x2bae81,_0x494982))return _0x2bae81;this['_breakSuggestionMarker'](_0x2bae81,_0x3c9a88['start'],_0x3c9a88['end']);break;}if(_0x297ed8==_0x2bae81['subType']&&sn(_0x2bae81,_0x494982)){const _0x20a2f9=_0x2bae81['getFirstRange']();return _0x20a2f9['start']['isEqual'](_0x3c9a88['end'])?this['_setSuggestionRange'](_0x2bae81,this['_model']['createRange'](_0x3c9a88['start'],_0x20a2f9['end'])):this['_setSuggestionRange'](_0x2bae81,this['_model']['createRange'](_0x20a2f9['start'],_0x3c9a88['end'])),_0x2bae81;}}const _0x590d28=_0xe7a85c(),_0x8a791b=_0x4dcf81['id'],_0x1079a3=_0x297ed8?'insertion:'+_0x297ed8:'insertion',_0x85b89c=this['_setSuggestionData']({'id':_0x590d28,'type':_0x1079a3,'createdAt':new Date(),'authorId':_0x8a791b,'attributes':_0x494982});return this['_addSuggestionMarker'](_0x1079a3,_0x590d28,_0x8a791b,_0x3c9a88),_0x85b89c;}['markMultiRangeInsertion'](_0x5861d4,_0x544c84='multi',_0x47d62f={}){const _0x1b5902=this['editor']['plugins']['get']('Users')['me'],_0x330557=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x544c84,'join');this['_trackingSessionId']&&(_0x47d62f['trackingSessionId']=this['_trackingSessionId']);for(const _0x15129d of this['getSuggestions']())if(_0x15129d['author']['id']==_0x1b5902['id']&&'insertion'==_0x15129d['type']&&_0x15129d['subType']==_0x544c84&&sn(_0x15129d,_0x47d62f)&&(_0x330557(_0x15129d['getRanges'](),_0x5861d4)||_0x330557(_0x5861d4,_0x15129d['getRanges']()))){for(const _0x4844dc of _0x5861d4)_0x15129d['addRange'](_0x4844dc);return _0x15129d;}for(const {suggestion:_0x3b4ab5,meta:_0x570645}of this['_findSuggestions'](_0x5861d4,'insertion')){if(!_0x570645['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x570645['containsRangeInObject'])continue;if(!sn(_0x3b4ab5,_0x47d62f))continue;let _0x22ecfd=!0x0;for(const _0x4d4b6f of _0x3b4ab5['getRanges']())for(const _0x1e86a2 of _0x5861d4)if(!_0x4d4b6f['containsRange'](_0x1e86a2)){_0x22ecfd=!0x1;break;}if(_0x22ecfd)return _0x3b4ab5;}const _0x1340a0=_0xe7a85c(),_0x3dec18=_0x1b5902['id'],_0x85760f='insertion:'+_0x544c84,_0x5beb14=this['_setSuggestionData']({'id':_0x1340a0,'type':_0x85760f,'createdAt':new Date(),'authorId':_0x3dec18,'attributes':_0x47d62f});for(const _0x11d4ec of _0x5861d4)this['_addSuggestionMarker'](_0x85760f,_0x1340a0,_0x3dec18,_0x11d4ec,x['getMultiRangeId']());return _0x5beb14;}['markInlineFormat'](_0x5c99ce,_0x19b969,_0x1f7862=null,_0x45da37={}){if(_0x1f7862=_0x1f7862||Ht(_0x19b969),_0x5c99ce['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x45da37['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c65fd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f7862,'accept');return this['forceDefaultExecution'](()=>_0x2c65fd([_0x5c99ce],_0x19b969,_0x45da37)),null;}const _0x46d06b=this['editor']['plugins']['get']('Users')['me'],_0x3250e0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x224e15,meta:_0x2a64e2}of this['_findSuggestions'](_0x5c99ce,'insertion'))_0x2a64e2['isOwn']&&!_0x2a64e2['isInsideObject']&&_0x3250e0['push'](..._0x224e15['getRanges']());}const _0xc3efd9=function(_0x55d882,_0x38223e){const _0xc8f9fa=[];for(const _0x8d3ba8 of _0x38223e){const _0x548f85=_0x55d882['getIntersection'](_0x8d3ba8);_0x548f85&&_0xc8f9fa['push'](_0x548f85);}return _0xc8f9fa;}(_0x5c99ce,_0x3250e0),_0x308137=function(_0x5c66dc,_0x41b768){const _0x4c8438=[_0x5c66dc];for(const _0x5cf2a2 of _0x41b768){let _0x5505f2=0x0;for(;_0x5505f2<_0x4c8438['length'];){const _0x4407b6=_0x4c8438[_0x5505f2]['getDifference'](_0x5cf2a2);_0x4c8438['splice'](_0x5505f2,0x1,..._0x4407b6),_0x5505f2+=_0x4407b6['length'];}}return _0x4c8438;}(_0x5c99ce,_0x3250e0);_0xc3efd9['length']&&this['_model']['change'](()=>{for(const _0x58ea92 of _0xc3efd9){const _0x41b9c5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f7862,'accept');this['forceDefaultExecution'](()=>_0x41b9c5([_0x58ea92],_0x19b969,_0x45da37));}});for(const _0x191c1b of _0x308137){let _0x5a89fc=null,_0x51f66b=_0x191c1b['start'],_0x121564=_0x191c1b['end'];for(const {suggestion:_0x2b3ca0,meta:_0x58dfc6}of this['_findSuggestions'](_0x191c1b,'formatInline')){if(!_0x58dfc6['isOwn'])continue;if(_0x2b3ca0['subType']!=_0x1f7862)continue;if(!sn(_0x2b3ca0,_0x45da37))continue;const _0x56b5f3=_0x2b3ca0['getFirstRange']();if(_0x56b5f3['containsRange'](_0x191c1b,!0x0))return null;_0x51f66b=_0x51f66b['isBefore'](_0x56b5f3['start'])?_0x51f66b:_0x56b5f3['start'],_0x121564=_0x121564['isAfter'](_0x56b5f3['end'])?_0x121564:_0x56b5f3['end'],_0x5a89fc?_0x56b5f3['start']['isBefore'](_0x5a89fc['getFirstRange']()['start'])?(_0x5a89fc['removeMarkers'](),_0x5a89fc=_0x2b3ca0):_0x2b3ca0['removeMarkers']():_0x5a89fc=_0x2b3ca0;}const _0xb9a4c5=this['_model']['createRange'](_0x51f66b,_0x121564);if(_0x5a89fc)this['_setSuggestionRange'](_0x5a89fc,_0xb9a4c5);else{const _0x10fced=_0xe7a85c(),_0x568178=_0x46d06b['id'];this['_setSuggestionData']({'id':_0x10fced,'type':'formatInline:'+_0x1f7862,'data':_0x19b969,'createdAt':new Date(),'authorId':_0x568178,'attributes':_0x45da37}),this['_addSuggestionMarker']('formatInline:'+_0x1f7862,_0x10fced,_0x568178,_0xb9a4c5);}}return null;}['markBlockFormat'](_0xc30d8c,_0x42c316,_0x4ca61c=[],_0x2f1a69=null,_0x4bd971={}){_0x42c316['formatGroupId']||(_0x42c316['formatGroupId']=_0x42c316['commandName']),_0x42c316['multipleBlocks']=_0xc30d8c['is']('range'),_0x2f1a69=_0x2f1a69||Ht(_0x42c316);const _0x557ee9=_0x4ca61c['map'](_0x39e960=>tn(_0x39e960,this['_model'])),_0x2b7625=_0xc30d8c['is']('range')?_0xc30d8c:tn(_0xc30d8c,this['_model']);if(this['_trackingSessionId']&&(_0x4bd971['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x424a90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f1a69,'accept');return this['forceDefaultExecution'](()=>_0x424a90([_0x2b7625],_0x42c316,_0x4bd971)),null;}_0x557ee9['push'](_0x2b7625);let _0x37d8bd=!0x0;for(const _0x40d864 of _0x557ee9)if(!this['_rangeIsInLocalUserInsertion'](_0x40d864)){_0x37d8bd=!0x1;break;}if(_0x37d8bd&&'always'!==this['_trackFormatChanges']){const _0x51b9da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f1a69,'accept');return this['forceDefaultExecution'](()=>_0x51b9da([_0x2b7625],_0x42c316,_0x4bd971)),null;}let _0x3f11fe=null,_0x5f02ca=_0x2b7625['start'],_0x5cb552=_0x2b7625['end'];for(const {suggestion:_0x431244,meta:_0xe67116}of this['_findSuggestions'](_0x2b7625,'formatBlock')){if(!_0xe67116['isOwn'])continue;if(_0xe67116['isNextTo']||_0xe67116['containsRangeInObject']||_0xe67116['isInsideObject'])continue;if(_0x431244['data']['formatGroupId']!=_0x42c316['formatGroupId'])continue;if(!sn(_0x431244,_0x4bd971))continue;const _0x414844=_0x431244['getFirstRange']();if(_0x431244['subType']==_0x2f1a69){if(_0x414844['containsRange'](_0x2b7625,!0x0))return null;_0x5f02ca=_0x5f02ca['isBefore'](_0x414844['start'])?_0x5f02ca:_0x414844['start'],_0x5cb552=_0x5cb552['isAfter'](_0x414844['end'])?_0x5cb552:_0x414844['end'],_0x3f11fe?_0x414844['start']['isBefore'](_0x3f11fe['getFirstRange']()['start'])?(_0x3f11fe['removeMarkers'](),_0x3f11fe=_0x431244):_0x431244['removeMarkers']():_0x3f11fe=_0x431244;}else{const _0x3a1f54=_0x2b7625['getIntersection'](_0x414844);this['_cutOutSuggestionMarker'](_0x431244,_0x3a1f54);}}const _0x48a881=this['editor']['plugins']['get']('Users')['me'],_0x5f4c03=_0xe7a85c(),_0x2bde32=_0x48a881['id'];if(_0x3f11fe)return this['_setSuggestionRange'](_0x3f11fe,this['_model']['createRange'](_0x5f02ca,_0x5cb552)),_0x3f11fe;{const _0x2da0f1=this['_setSuggestionData']({'id':_0x5f4c03,'type':'formatBlock:'+_0x2f1a69,'data':_0x42c316,'createdAt':new Date(),'authorId':_0x2bde32,'attributes':_0x4bd971});return this['_addSuggestionMarker']('formatBlock:'+_0x2f1a69,_0x5f4c03,_0x2bde32,this['_model']['createRange'](_0x5f02ca,_0x5cb552)),_0x2da0f1;}}['markMultiRangeBlockFormat'](_0x1cce3c,_0x4890c1,_0x4358ae=[],_0x44cb37=null,_0x164b76={}){_0x4890c1['formatGroupId']||(_0x4890c1['formatGroupId']=_0x4890c1['commandName']);const _0x138b52=_0x1cce3c[0x0];_0x4890c1['multipleBlocks']=_0x138b52['is']('range'),_0x44cb37=_0x44cb37||Ht(_0x4890c1);const _0x53661b=_0x4358ae['map'](_0x847573=>tn(_0x847573,this['_model'])),_0x44fab9=_0x138b52['is']('range')?_0x1cce3c:_0x1cce3c['map'](_0x12583c=>tn(_0x12583c,this['_model']));if(this['_trackingSessionId']&&(_0x164b76['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x56a426=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44cb37,'accept');return this['forceDefaultExecution'](()=>_0x56a426(_0x44fab9,_0x4890c1,_0x164b76)),null;}_0x53661b['push'](..._0x44fab9);let _0x5682f0=!0x0;for(const _0x231247 of _0x53661b)if(!this['_rangeIsInLocalUserInsertion'](_0x231247)){_0x5682f0=!0x1;break;}if(_0x5682f0&&'always'!==this['_trackFormatChanges']){const _0x2580fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44cb37,'accept');return this['forceDefaultExecution'](()=>_0x2580fe(_0x44fab9,_0x4890c1,_0x164b76)),null;}const _0x31bf49=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ff265 of this['getSuggestions']()){const _0xb42474=_0x4ff265['data'];if(_0x4ff265['author']['id']!=_0x31bf49['id'])continue;if('formatBlock'!=_0x4ff265['type']||_0xb42474['formatGroupId']!=_0x4890c1['formatGroupId'])continue;if(!sn(_0x4ff265,_0x164b76))continue;const _0x468ea6=_0x4ff265['subType']==_0x44cb37;for(let _0x2e29ca=0x0;_0x2e29ca<_0x44fab9['length'];_0x2e29ca++){const _0x12ad5d=_0x44fab9[_0x2e29ca];for(const _0x3f3815 of _0x4ff265['getMarkers']()){const _0x316956=_0x3f3815['getRange']();if(_0x12ad5d['isEqual'](_0x316956)){_0x468ea6?(_0x44fab9['splice'](_0x2e29ca,0x1),_0x2e29ca--):_0x4ff265['removeMarker'](_0x3f3815['name']);break;}}}}if(0x0==_0x44fab9['length'])return null;const _0x1a51c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44cb37,'join');for(const _0x2f4f99 of this['getSuggestions']()){const _0x4e729f=_0x2f4f99['data'];if(_0x2f4f99['author']['id']==_0x31bf49['id']&&('formatBlock'==_0x2f4f99['type']&&_0x4e729f['formatGroupId']==_0x4890c1['formatGroupId']&&_0x2f4f99['subType']==_0x44cb37&&sn(_0x2f4f99,_0x164b76)&&(_0x1a51c6(_0x2f4f99['getRanges'](),_0x44fab9)||_0x1a51c6(_0x44fab9,_0x2f4f99['getRanges']())))){for(const _0x2dd934 of _0x44fab9)_0x2f4f99['addRange'](_0x2dd934);return _0x2f4f99;}}const _0xfd40d6=_0xe7a85c(),_0x1b8184=_0x31bf49['id'],_0x3137cf='formatBlock:'+_0x44cb37,_0x5084c3=this['_setSuggestionData']({'id':_0xfd40d6,'type':_0x3137cf,'data':_0x4890c1,'createdAt':new Date(),'authorId':_0x1b8184,'attributes':_0x164b76});for(const _0x2721a5 of _0x44fab9)this['_addSuggestionMarker'](_0x3137cf,_0xfd40d6,_0x1b8184,_0x2721a5,x['getMultiRangeId']());return _0x5084c3;}['markDeletion'](_0x4ca16e,_0xa0a3b3=null,_0x4e6405={}){if(_0x4ca16e['isCollapsed'])return null;const _0x548cfd=this['editor']['plugins']['get']('Users')['me'],_0x22233a=new _0x167977(_0x4ca16e['start'],_0x4ca16e['end']);this['_trackingSessionId']&&(_0x4e6405['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x471680,meta:_0x3159af}of this['_findSuggestions'](_0x22233a,'insertion'))if(_0x3159af['isOwn']&&!_0x3159af['isNextTo']){if(_0x471680['isMultiRange']){const _0x559656=_0x471680['getRanges']()['filter'](_0xeaa74=>'$graveyard'!=_0xeaa74['root']['rootName']);_0x559656['every'](_0x32cfb8=>_0x22233a['containsRange'](_0x32cfb8,!0x0))&&_0x471680['discard']();if(_0x559656['some'](_0x1b6c29=>_0x1b6c29['containsRange'](_0x22233a,!0x0))){const _0x45f48f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa0a3b3,'accept');return this['forceDefaultExecution'](()=>_0x45f48f([_0x22233a],null,_0x4e6405)),null;}}else{const _0x91949f=_0x22233a['getIntersection'](_0x471680['getFirstRange']());null!==_0x91949f&&_0x471680['_onDiscard']([_0x91949f],null,_0x4e6405);}}if(_0x22233a['detach'](),_0x22233a['isCollapsed']||'$graveyard'==_0x22233a['root']['rootName'])return null;let _0x27ab97=null,_0x1e5a93=_0x22233a['start'],_0x290dec=_0x22233a['end'];const _0x1ff2e1=this['_findSuggestions'](_0x22233a,'deletion');for(const {suggestion:_0x1e3ddc,meta:_0x45c292}of _0x1ff2e1){const _0x3cab0d=this['_model']['createRange'](_0x1e5a93,_0x290dec);if(_0x45c292['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45c292['containsRangeInObject']&&!_0x45c292['isInsideObject'])){if(_0x1e3ddc['isMultiRange']){if(!sn(_0x1e3ddc,_0x4e6405))continue;let _0x460f54=!0x0;for(const _0x245224 of _0x1e3ddc['getRanges']()){if(_0x245224['containsRange'](_0x3cab0d,!0x0))return _0x1e3ddc;_0x3cab0d['containsRange'](_0x245224)||(_0x460f54=!0x1);}_0x460f54&&_0x1e3ddc['discard']();}else{const _0x11a2b4=_0x1e3ddc['getFirstRange']();if(_0x11a2b4['containsRange'](_0x3cab0d,!0x0))return _0x1e3ddc;if(!sn(_0x1e3ddc,_0x4e6405)){_0x3cab0d['containsRange'](_0x11a2b4)?_0x1e3ddc['removeMarkers']():_0x11a2b4['containsPosition'](_0x1e5a93)?_0x1e5a93=_0x11a2b4['end']:_0x11a2b4['containsPosition'](_0x290dec)&&(_0x290dec=_0x11a2b4['start']);continue;}_0x1e5a93=_0x1e5a93['isBefore'](_0x11a2b4['start'])?_0x1e5a93:_0x11a2b4['start'],_0x290dec=_0x290dec['isAfter'](_0x11a2b4['end'])?_0x290dec:_0x11a2b4['end'],_0x4e6405=Object['assign']({},_0x1e3ddc['attributes']),_0x27ab97?_0x11a2b4['start']['isBefore'](_0x27ab97['getFirstRange']()['start'])?(_0x27ab97['removeMarkers'](),_0x27ab97=_0x1e3ddc):_0x1e3ddc['removeMarkers']():_0x27ab97=_0x1e3ddc;}}}if(_0x27ab97)return this['_setSuggestionRange'](_0x27ab97,this['_model']['createRange'](_0x1e5a93,_0x290dec)),_0x27ab97;{const _0x526b6a=_0xe7a85c(),_0x586463=this['_model']['createRange'](_0x1e5a93,_0x290dec),_0x14f85e=_0x548cfd['id'],_0x10b26e=_0xa0a3b3?'deletion:'+_0xa0a3b3:'deletion',_0x4f4d70=this['_setSuggestionData']({'id':_0x526b6a,'type':_0x10b26e,'createdAt':new Date(),'authorId':_0x14f85e,'attributes':_0x4e6405});return this['_addSuggestionMarker'](_0x10b26e,_0x526b6a,_0x14f85e,_0x586463),_0x4f4d70;}}['markMultiRangeDeletion'](_0x37e535,_0x1583bb='multi',_0x178945={}){const _0x1f533b=this['editor']['plugins']['get']('Users')['me'],_0xc4c4c4=_0x37e535['map'](_0x4c4634=>new _0x167977(_0x4c4634['start'],_0x4c4634['end'])),_0x52d330=new Set();this['_trackingSessionId']&&(_0x178945['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22db54,meta:_0x465408}of this['_findSuggestions'](_0xc4c4c4,'insertion'))_0x465408['isOwn']&&!_0x465408['isNextTo']&&_0x52d330['add'](_0x22db54);for(const _0x2dbab5 of _0x52d330)if(_0x2dbab5['isMultiRange']){const _0x1afb5b=_0x2dbab5['getRanges']();(!_0x2dbab5['attributes']||!_0x2dbab5['attributes']['skipNestingCheck'])&&(_0x1afb5b['every'](_0x4cc1e0=>_0xc4c4c4['some'](_0x4314f6=>_0x4314f6['containsRange'](_0x4cc1e0,!0x0)))&&_0x2dbab5['discard']());if(_0xc4c4c4['every'](_0x277fcc=>_0x1afb5b['some'](_0x651baa=>_0x651baa['containsRange'](_0x277fcc,!0x0)))){const _0x582df3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1583bb,'accept');return this['forceDefaultExecution'](()=>_0x582df3(_0x37e535,null,_0x178945)),null;}}else{const _0xde67a4=_0x2dbab5['getFirstRange']();_0xc4c4c4['some'](_0x13297a=>_0x13297a['containsRange'](_0xde67a4,!0x0))&&_0x2dbab5['discard']();if(_0xc4c4c4['every'](_0x38a5ad=>_0xde67a4['containsRange'](_0x38a5ad,!0x0))){const _0x787423=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1583bb,'accept');return this['forceDefaultExecution'](()=>_0x787423(_0xc4c4c4,null,_0x178945)),null;}}const _0xf2fdc4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1583bb,'join');let _0x4e3f0b=null;for(const _0x58d625 of this['getSuggestions']())if(_0x58d625['author']['id']==_0x1f533b['id']&&_0x58d625['isInContent']&&'deletion'==_0x58d625['type']&&_0x58d625['subType']==_0x1583bb&&sn(_0x58d625,_0x178945)&&(_0xf2fdc4(_0x58d625['getRanges'](),_0xc4c4c4)||_0xf2fdc4(_0xc4c4c4,_0x58d625['getRanges']()))){if(_0x4e3f0b){if(_0x58d625['commentThread']&&_0x58d625['commentThread']['length'])continue;for(const _0x551616 of _0x58d625['getRanges']())_0x4e3f0b['isIntersectingWithRange'](_0x551616)||_0x4e3f0b['addRange'](_0x551616);_0x58d625['removeMarkers']();}else{_0x4e3f0b=_0x58d625;for(const _0x526ff3 of _0xc4c4c4)_0x58d625['isIntersectingWithRange'](_0x526ff3)||_0x58d625['addRange'](_0x526ff3);}}if(_0x4e3f0b)return _0x4e3f0b;_0x52d330['clear']();for(const {suggestion:_0x34f3ed,meta:_0x324e33}of this['_findSuggestions'](_0xc4c4c4,'deletion'))_0x324e33['isOwn']&&(this['_mergeNestedSuggestions']||!_0x324e33['containsRangeInObject']&&!_0x324e33['isInsideObject'])&&sn(_0x34f3ed,_0x178945)&&_0x52d330['add'](_0x34f3ed);for(const _0x3b59ef of _0x52d330){const _0x2f8227=_0x3b59ef['getRanges']();if(!_0x178945||!_0x178945['skipNestingCheck']){if(_0xc4c4c4['every'](_0x292d93=>_0x2f8227['some'](_0x53c3a0=>_0x53c3a0['containsRange'](_0x292d93,!0x0))))return _0x3b59ef;}(!_0x3b59ef['attributes']||!_0x3b59ef['attributes']['skipNestingCheck'])&&(_0x2f8227['every'](_0x290917=>_0xc4c4c4['some'](_0x2d1783=>_0x2d1783['containsRange'](_0x290917,!0x0)))&&_0x3b59ef['discard']());}const _0x5ef31a=_0xe7a85c(),_0x52d7f8=_0x1f533b['id'],_0x437e92='deletion:'+_0x1583bb,_0x3e3266=this['_setSuggestionData']({'id':_0x5ef31a,'type':_0x437e92,'createdAt':new Date(),'authorId':_0x52d7f8,'attributes':_0x178945});for(const _0x149088 of _0xc4c4c4)_0x149088['detach'](),_0x149088['isCollapsed']||'$graveyard'==_0x149088['root']['rootName']||this['_addSuggestionMarker'](_0x437e92,_0x5ef31a,_0x52d7f8,_0x149088,x['getMultiRangeId']());return _0x3e3266;}['markAttributeChange'](_0x5ab398,_0x452059,_0x4203cd,_0x5b32ae,_0xd6866d){if(_0x5ab398['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x32167b=this['editor']['plugins']['get']('Users')['me']['id'],_0x30f555=Array['from'](this['_suggestions']['values']())['filter'](_0x419d0f=>'attribute'==_0x419d0f['type']&&_0x419d0f['data']['key']==_0x452059&&_0x419d0f['isIntersectingWithRange'](_0x5ab398));if(this['_trackingSessionId']&&(_0xd6866d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x10990c=this['_findSuggestions'](_0x5ab398,'insertion')['filter'](({meta:_0x58a8db})=>_0x58a8db['isOwn']&&!_0x58a8db['isInsideObject']&&!_0x58a8db['isNextTo'])['map'](({suggestion:_0x122e2d})=>_0x122e2d);_0x30f555['unshift'](..._0x10990c);}const _0x108334=new Map([[_0x5ab398,_0x4203cd]]);for(const _0x53bb9e of _0x30f555){const _0x58a4b0='attribute'==_0x53bb9e['type']?_0x53bb9e['data']['oldValue']:void 0x0,_0x4c0f4b=_0x53bb9e['getFirstRange'](),_0x53cfd1=Array['from'](_0x108334['keys']())['find'](_0x1c5789=>_0x1c5789['isIntersecting'](_0x4c0f4b));if(!_0x53cfd1)continue;const _0x3e3b0c=_0x53cfd1['getDifference'](_0x4c0f4b);this['_isBlockAttribute'](_0x452059)&&'insertion'==_0x53bb9e['type']&&0x0!=_0x3e3b0c['length']||(_0x108334['delete'](_0x53cfd1),_0x3e3b0c['forEach'](_0x4bec79=>{_0x108334['set'](_0x4bec79,_0x4203cd);}),'insertion'!=_0x53bb9e['type']&&_0x58a4b0!=_0x5b32ae&&_0x108334['set'](_0x53cfd1['getIntersection'](_0x4c0f4b),_0x58a4b0));}const _0xfe19fa=[];for(const [_0x106465,_0x3e853d]of _0x108334){const _0xc64e4a=_0xe7a85c(),_0x24c429={'key':_0x452059,'oldValue':_0x3e853d,'newValue':_0x5b32ae};_0x452059['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':_0x452059});const _0x574a99=('attribute:'+(_0x452059+'|'+Ht({'newValue':_0x5b32ae})))['substring'](0x0,0x3c),_0x35f409=this['_setSuggestionData']({'id':_0xc64e4a,'type':_0x574a99,'data':_0x24c429,'createdAt':new Date(),'authorId':_0x32167b,'attributes':_0xd6866d});_0xfe19fa['push'](_0x35f409),this['_addSuggestionMarker'](_0x574a99,_0xc64e4a,_0x32167b,_0x106465);}return _0xfe19fa;}['enableDefaultAttributesIntegration'](_0x56b4a7){this['enableCommand'](_0x56b4a7,(_0x56510a,..._0x3d0a6c)=>{this['recordAttributeChanges'](()=>{_0x56510a(..._0x3d0a6c);});});}['registerBlockAttribute'](_0x40d633){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x40d633);}['registerInlineAttribute'](_0x58b322){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x58b322);}['startTrackingSession'](_0x37309b){return this['_trackingSessionId']=void 0x0!==_0x37309b?_0x37309b:_0xe7a85c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x26a581){return'attribute'==_0x26a581['type']?_0x26a581['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5e5723){if(0x0==_0x5e5723['length'])return;const _0x48f7bc=this['editor'],_0x5e826a=_0x48f7bc['plugins']['get'](_0x4a392e),_0x2835ba=[];_0x48f7bc['model']['change'](_0x1f0815=>{for(let _0x584dd8=0x0;_0x584dd8<_0x5e5723['length'];_0x584dd8++){const _0x347199=_0x5e5723[_0x584dd8];if(_0x347199['baseVersion']=_0x48f7bc['model']['document']['version'],_0x347199['isDocumentOperation']=!0x0,_0x5e826a['isMarkedRemoveOperation'](_0x347199)){const _0x10a9eb=Lt(_0x347199['newRange'],_0x48f7bc['model']);_0x2835ba['unshift'](_0x167977['fromRange'](_0x10a9eb));}else switch(_0x347199['type']){case'rename':{const _0x5b05d5=_0x347199['oldName'],_0x3a67d1=_0x347199['newName'];if(_0x5b05d5==_0x3a67d1)break;_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);const _0x5543c2='$elementName',_0x598502=_0x347199['position'],_0xef6cfc=_0x48f7bc['model']['createRange'](_0x598502,_0x48f7bc['model']['createPositionAt'](_0x598502['nodeAfter'],'end'));this['markAttributeChange'](_0xef6cfc,_0x5543c2,_0x5b05d5,_0x3a67d1,{'groupId':_0xe7a85c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xa676b7=_0x347199['oldValue'],_0x2ef658=_0x347199['newValue'];if(_0xa676b7==_0x2ef658)break;_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);const _0x2e9fc5=_0x347199['key'];if(!this['_isRegisteredAttribute'](_0x2e9fc5))break;const _0x5172a5=Lt(_0x347199['range'],_0x48f7bc['model']);this['markAttributeChange'](_0x5172a5,_0x2e9fc5,_0xa676b7,_0x2ef658,{'groupId':_0xe7a85c()});break;}case'insert':{_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);if(_0x5e5723[_0x584dd8+0x1]&&'move'==_0x5e5723[_0x584dd8+0x1]['type'])break;const _0x5ea8cc=_0x347199['position'],_0x12d95c=_0x347199['howMany'],_0x1bc039=Lt(_0x48f7bc['model']['createRange'](_0x5ea8cc,_0x5ea8cc['getShiftedBy'](_0x12d95c)),_0x48f7bc['model']);this['markInsertion'](_0x1bc039);break;}case'split':{_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);const _0x5eecda=_0x347199['splitPosition'],_0x3819ca=_0x347199['moveTargetPosition'];this['markInsertion'](_0x48f7bc['model']['createRange'](_0x5eecda,_0x3819ca));break;}case'move':case'remove':_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);}}for(const _0x439d73 of _0x2835ba)_0x439d73['detach'](),this['markDeletion'](_0x439d73);});}['_setSuggestionRange'](_0x27162e,_0x4dd1f9){const _0x1a07e0=_0x27162e['getFirstMarker']();this['_model']['change'](_0x5aa332=>{_0x5aa332['updateMarker'](_0x1a07e0,{'range':_0x4dd1f9});});}['_addThreadToSuggestion'](_0x7c207d){const _0x4b2fc7=_0x7c207d['id'],_0x2c5e24=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4b2fc7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c5e24,'threadId':_0x4b2fc7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x463495=this['_commentsRepository']['getCommentThread'](_0x4b2fc7);_0x463495['unbind']('isRemovable'),_0x463495['isRemovable']=!0x1,_0x7c207d['commentThread']=_0x463495;}['_checkSuggestionCorrectness'](_0x432846,_0x159f0a,_0x38cee4,_0x1955d3){if(_0x432846['type']!=_0x159f0a||_0x432846['subType']!=_0x38cee4||_0x432846['creator']['id']!=_0x1955d3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4bd1ef('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x283368,_0x476b87){const _0x2734eb=_0x283368['getFirstRange']();if(_0x476b87['isEqual'](_0x2734eb))_0x283368['removeMarkers']();else{if(_0x2734eb['containsRange'](_0x476b87)){const _0x1fc678=this['_model']['createPositionAt'](_0x476b87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x283368,this['_model']['createRange'](_0x2734eb['start'],_0x1fc678));const _0x46d788=_0xe7a85c(),_0x10d615=_0x283368['creator']['id'],_0x1b4254=_0x283368['type']+':'+_0x283368['subType'];this['_setSuggestionData']({'id':_0x46d788,'type':_0x1b4254,'createdAt':new Date(),'authorId':_0x10d615,'data':_0x283368['data'],'attributes':_0x283368['attributes']});const _0x4ffc6e=this['_model']['createPositionAt'](_0x476b87['end']['parent'],'after'),_0x5a5502=this['_model']['createRange'](_0x4ffc6e,_0x2734eb['end']);this['_addSuggestionMarker'](_0x1b4254,_0x46d788,_0x10d615,_0x5a5502);}else{if(_0x2734eb['containsPosition'](_0x476b87['start'])){const _0x480d79=this['_model']['createPositionAt'](_0x476b87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x283368,this['_model']['createRange'](_0x2734eb['start'],_0x480d79));}else{const _0x3fe8a1=this['_model']['createPositionAt'](_0x476b87['end']['parent'],'after');this['_setSuggestionRange'](_0x283368,this['_model']['createRange'](_0x3fe8a1,_0x2734eb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x49f5a2){for(const {suggestion:_0x14dcdc,meta:_0x2c67dd}of this['_findSuggestions'](_0x49f5a2,'insertion')){if(!_0x2c67dd['isOwn'])continue;const _0x401bd4=_0x14dcdc['getRanges']();for(const _0x2ae9d9 of _0x401bd4)if(!_0x49f5a2['getDifference'](_0x2ae9d9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x46693d){return this['editor']['plugins']['get']('Users')['getUser'](_0x46693d);}['_getExternalAuthor'](_0x41927c){const _0x25b1f3=this['editor']['plugins']['get']('Users'),_0x1a7ccc=_0x4f3ece('external:'+_0x41927c),_0x4512fe=_0x25b1f3['getUser'](_0x1a7ccc);return _0x4512fe||_0x25b1f3['addUser']({'id':_0x1a7ccc,'name':_0x41927c});}['_createSuggestion'](_0x226457,_0x1d5463,_0x2e7c4a,_0x470ad6,_0x46ddf8,_0x790cd4){const _0x2c87a3=this['_getAuthorFromId'](_0x470ad6);if(!_0x2c87a3)throw new _0x4bd1ef('track-changes-user-not-found',this,{'authorId':_0x470ad6,'suggestionId':_0x2e7c4a});const _0x40f218=this['_suggestionFactory']['buildSuggestion'](_0x226457,_0x1d5463,_0x2e7c4a,_0x2c87a3,_0x46ddf8,_0x55f798=>{this['_updateSuggestionData'](_0x2e7c4a,{'attributes':_0x55f798});const _0x53fccc=this['getSuggestion'](_0x2e7c4a);this['_joinWithAdjacentSuggestions'](new Set([_0x53fccc])),this['_refreshSuggestionsChain'](new Set([_0x53fccc]));},_0x790cd4);return this['listenTo'](_0x40f218,'accept',()=>{this['_updateSuggestionData'](_0x2e7c4a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x40f218,'discard',()=>{this['_updateSuggestionData'](_0x2e7c4a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2e7c4a,_0x40f218),this['_suggestionState']['set'](_0x40f218,'notReady'),_0x40f218;}['_splitMarkerName'](_0x399a0b){return Gt(_0x399a0b);}['_breakSuggestionMarker'](_0x5bd1ac,_0x3a2bc3,_0x8dfd29){const _0x371130=_0x5bd1ac['getFirstRange'](),_0x21730c=_0x371130['start'],_0x4a5ec9=_0x371130['end'];this['_setSuggestionRange'](_0x5bd1ac,this['_model']['createRange'](_0x21730c,_0x3a2bc3));const _0x27a95e=_0xe7a85c(),_0x2f5997=_0x5bd1ac['creator']['id'],_0x5b36d1=_0x5bd1ac['type']+(_0x5bd1ac['subType']?':'+_0x5bd1ac['subType']:'');this['_setSuggestionData']({'id':_0x27a95e,'type':_0x5b36d1,'createdAt':new Date(),'authorId':_0x2f5997,'originalSuggestionId':_0x5bd1ac['_originalSuggestionId']||_0x5bd1ac['id'],'attributes':_0x5bd1ac['attributes'],'data':_0x5bd1ac['data']});const _0x1bff75=this['_getAttributeKey'](_0x5bd1ac);('formatBlock'==_0x5bd1ac['type']||_0x1bff75&&this['_isBlockAttribute'](_0x1bff75))&&(_0x8dfd29=this['_model']['createPositionBefore'](_0x8dfd29['parent'])),this['_addSuggestionMarker'](_0x5b36d1,_0x27a95e,_0x2f5997,this['_model']['createRange'](_0x8dfd29,_0x4a5ec9));}['_findSuggestions'](_0xe2966b,_0xf249cf=null){const _0x6af6b4=[],_0x35f7a4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xe2966b)||(_0xe2966b=[_0xe2966b]);for(const _0x3ee96f of this['getSuggestions']()){if(!_0x3ee96f['isInContent'])continue;if(_0xf249cf&&_0x3ee96f['type']!=_0xf249cf)continue;let _0x109d61=!0x1;for(const _0x6b96a3 of _0x3ee96f['getRanges']()){for(const _0x2ec8c7 of _0xe2966b){const _0x5ba12e=_0x2ec8c7['start']['isEqual'](_0x6b96a3['end'])||_0x2ec8c7['end']['isEqual'](_0x6b96a3['start']);if(_0x5ba12e||_0x2ec8c7['getIntersection'](_0x6b96a3)){const _0x15dd72=_0x2ec8c7['containsRange'](_0x6b96a3)&&zt(this['_model']['schema'],_0x6b96a3['start'],_0x2ec8c7),_0x4309d9=_0x6b96a3['containsRange'](_0x2ec8c7)&&zt(this['_model']['schema'],_0x2ec8c7['start'],_0x6b96a3);_0x6af6b4['push']({'suggestion':_0x3ee96f,'meta':{'isOwn':_0x35f7a4==_0x3ee96f['author'],'isNextTo':_0x5ba12e,'isInsideObject':_0x15dd72,'containsRangeInObject':_0x4309d9}}),_0x109d61=!0x0;break;}}if(_0x109d61)break;}}return _0x6af6b4;}['_addSuggestionMarker'](_0x43aec0,_0x15c4c7,_0x2d1fed,_0x4adb4b,_0x1a0e1f){this['_model']['change'](_0x1a1d96=>{let _0x7f4546='suggestion:'+_0x43aec0+':'+_0x15c4c7+':'+_0x2d1fed;_0x1a0e1f&&(_0x7f4546=_0x7f4546+':'+_0x1a0e1f),_0x1a1d96['addMarker'](_0x7f4546,{'range':_0x4adb4b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4fa7bb){const _0x5adb5f=_0x4fa7bb['previous'],_0x30be97=_0x4fa7bb['next'];_0x4fa7bb['previous']=null,_0x4fa7bb['next']=null,null!=_0x5adb5f&&_0x5adb5f['next']==_0x4fa7bb&&(_0x5adb5f['next']=_0x30be97),null!=_0x30be97&&_0x30be97['previous']==_0x4fa7bb&&(_0x30be97['previous']=_0x5adb5f),'ready'==this['_suggestionState']['get'](_0x4fa7bb)&&(this['_suggestionState']['set'](_0x4fa7bb,'removed'),this['fire']('suggestionUnloaded',_0x4fa7bb,_0x5adb5f,_0x30be97));}['_setSuggestionData'](_0x422b27){const _0x4981f8=_0x422b27['id'],_0x568113=this['addSuggestionData'](_0x422b27);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e5645=this['editor']['plugins']['get']('PendingActions'),_0x4e9440=_0x568113['hasComments'],_0x477804=_0x568113['subType']?_0x568113['type']+':'+_0x568113['subType']:_0x568113['type'],_0x421649=this['editor']['locale'],_0x305193=_0x3e5645['add'](o(_0x421649,'PENDING_ACTION_SUGGESTION')),_0x684f5a={'id':_0x4981f8,'type':_0x477804,'hasComments':_0x4e9440,'data':_0x422b27['data']||null,'originalSuggestionId':_0x422b27['originalSuggestionId']||null,'attributes':_0x568113['attributes']};this['_adapter']['addSuggestion'](_0x684f5a)['then'](_0x425b6a=>{_0x568113['_saved']=!0x0,_0x3e5645['remove'](_0x305193),_0x425b6a&&_0x425b6a['createdAt']&&(this['_suggestions']['get'](_0x4981f8)['createdAt']=_0x425b6a['createdAt']);})['catch'](_0x257f3f=>{throw _0x5dad29('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x568113['discard']();}),_0x568113['stopListening'](),this['_suggestions']['delete'](_0x568113['id']),this['_suggestionState']['delete'](_0x568113),_0x257f3f;});}return _0x568113;}['_isBlockAttribute'](_0x563c5a){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x563c5a);}['_isInlineAttribute'](_0x56adf9){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x56adf9);}['_updateSuggestionData'](_0x4aa5b3,_0xf57633){const _0xefd233=this['editor']['plugins']['get']('PendingActions'),_0x4e80f7=this['getSuggestion'](_0x4aa5b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4e80f7['_saved']){const _0x5c7af5=_0xefd233['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4aa5b3,_0xf57633)['then'](()=>{_0xefd233['remove'](_0x5c7af5);});}else _0x4e80f7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4aa5b3,_0xf57633);});}}['_getSuggestionData'](_0x124e6c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4bd1ef('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x124e6c);}['_handleNewSuggestionMarker'](_0x21e1a8){const {id:_0x431655,type:_0x1f9a58,subType:_0x19616d,authorId:_0x4c3fec}=this['_splitMarkerName'](_0x21e1a8),_0x51aa38=this['_suggestions']['get'](_0x431655)||this['_createSuggestion'](_0x1f9a58,_0x19616d,_0x431655,_0x4c3fec,{});switch(this['_checkSuggestionCorrectness'](_0x51aa38,_0x1f9a58,_0x19616d,_0x4c3fec),this['_suggestionState']['get'](_0x51aa38)){case'notReady':this['_getSuggestionData'](_0x431655)['then'](_0x4c19c9=>{let _0x2a4657=Promise['resolve']();_0x4c19c9['hasComments']&&(_0x2a4657=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x431655})),_0x2a4657['then'](()=>{this['addSuggestionData'](_0x4c19c9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51aa38,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x431655,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51aa38,'ready'),this['fire']('suggestionLoaded',_0x51aa38);break;case'ready':this['fire']('suggestionChanged',_0x51aa38);}return _0x51aa38['addMarkerName'](_0x21e1a8),_0x51aa38;}['_refreshSuggestionsChain'](_0x2023b7){const _0x432be8=Array['from'](_0x2023b7),_0x1376b1=_0x432be8['filter'](_0x1aff8c=>'attribute'==_0x1aff8c['type']);this['_refreshAttributeSuggestionsChain'](_0x1376b1);const _0x19fe1e=_0x432be8['filter'](_0x2ea959=>!_0x2ea959['isMultiRange']&&'attribute'!=_0x2ea959['type']),_0x3d62f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5013f2=>!_0x5013f2['isMultiRange']&&'attribute'!=_0x5013f2['type']),_0x4f5bbc=_0x3d62f6['filter'](_0x13dcbb=>!_0x2023b7['has'](_0x13dcbb)),_0x29d25d=new Map(_0x3d62f6['map'](_0xde4d1b=>[_0xde4d1b,this['_suggestionFactory']['getSuggestionCallback'](_0xde4d1b['type'],_0xde4d1b['subType'],'chain')])),_0x1b11fc=new Map(_0x3d62f6['map'](_0x2b3463=>[_0x2b3463,_0x2b3463['getFirstRange']()])),_0xce0f19=new Set(),_0x4e9740=new Set();for(let _0xe09de=0x0;_0xe09de<_0x19fe1e['length'];_0xe09de++)_0x85ff4a(_0x19fe1e[_0xe09de],_0x19fe1e,_0xe09de+0x1);for(let _0x2cc5f3=0x0;_0x2cc5f3<_0x19fe1e['length'];_0x2cc5f3++)_0x85ff4a(_0x19fe1e[_0x2cc5f3],_0x4f5bbc,0x0);const _0x5f1473=new Set();for(let _0x3a5410=0x0;_0x3a5410<_0x19fe1e['length'];_0x3a5410++){const _0x500045=_0x19fe1e[_0x3a5410];!_0x4e9740['has'](_0x500045)&&_0x500045['previous']&&(_0x5f1473['add'](_0x500045['previous']),_0x500045['previous']['next']===_0x500045&&(_0x500045['previous']['next']=null),_0x500045['previous']=null),!_0xce0f19['has'](_0x500045)&&_0x500045['next']&&(_0x5f1473['add'](_0x500045['next']),_0x500045['next']['previous']===_0x500045&&(_0x500045['next']['previous']=null),_0x500045['next']=null);}function _0x85ff4a(_0x4de3b4,_0x4664f4,_0x27d6c7){for(let _0x1427fb=_0x27d6c7;_0x1427fb<_0x4664f4['length'];_0x1427fb++){const _0x24bbde=_0x4962a9(_0x4de3b4,_0x4664f4[_0x1427fb]);_0x24bbde&&(_0x24bbde[0x0]['next']=_0x24bbde[0x1],_0x24bbde[0x1]['previous']=_0x24bbde[0x0],_0xce0f19['add'](_0x24bbde[0x0]),_0x4e9740['add'](_0x24bbde[0x1]));}}function _0x4962a9(_0x330611,_0x461efe){if(_0x330611['author']['id']!==_0x461efe['author']['id'])return null;const _0x52cc5e=_0x29d25d['get'](_0x330611)(_0x330611,_0x461efe,_0x1b11fc['get'](_0x330611),_0x1b11fc['get'](_0x461efe));if(!_0x52cc5e)return null;return _0x29d25d['get'](_0x461efe)(_0x330611,_0x461efe,_0x1b11fc['get'](_0x330611),_0x1b11fc['get'](_0x461efe))?_0x52cc5e[0x1]['commentThread']&&_0x52cc5e[0x1]['commentThread']['length']?null:_0x52cc5e:null;}_0x5f1473['size']&&this['_refreshSuggestionsChain'](_0x5f1473);}['_refreshAttributeSuggestionsChain'](_0x3a877c){if(0x0==_0x3a877c['length'])return;const _0x547fbe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50f076=>'attribute'==_0x50f076['type']&&_0x50f076['_isDataLoaded']),_0x4ce6e1=[],_0x1fffc6=new Map();for(const _0xaf83c1 of _0x547fbe){const _0x2557e6=_0x4f3ece(_0xaf83c1['attributes']);_0x1fffc6['has'](_0x2557e6)||(_0x1fffc6['set'](_0x2557e6,_0x4ce6e1['length']),_0x4ce6e1['push']([]));const _0x5a0e71=_0x1fffc6['get'](_0x2557e6);_0x4ce6e1[_0x5a0e71]['push'](_0xaf83c1);}!(function(){_0x4ce6e1['sort']((_0x22f33c,_0x54eb79)=>{const _0x19ad02=_0x22f33c[0x0]['createdAt'],_0x14c3ef=_0x54eb79[0x0]['createdAt'];return _0x19ad02==_0x14c3ef?_0x22f33c[0x0]['attributes']['groupId']<_0x54eb79[0x0]['attributes']['groupId']?-0x1:0x1:_0x19ad02<_0x14c3ef?-0x1:0x1;});for(const _0x486493 of _0x4ce6e1)_0x486493['sort']((_0x2f0fdf,_0x5bfd80)=>_0x2f0fdf['id']<_0x5bfd80['id']?-0x1:0x1);}());for(let _0x465a30=0x0;_0x465a30<_0x4ce6e1['length'];_0x465a30++){if(0x0==_0x4ce6e1[_0x465a30]['length'])continue;const _0x210032=[];for(let _0x4d44a7=_0x465a30+0x1;_0x4d44a7<_0x4ce6e1['length'];_0x4d44a7++)0x0!=_0x4ce6e1[_0x4d44a7]['length']&&_0x38ed36(_0x4ce6e1[_0x465a30],_0x4ce6e1[_0x4d44a7])&&_0x210032['push'](_0x4d44a7);for(const _0x251beb of _0x210032)_0x4ce6e1[_0x465a30]=_0x4ce6e1[_0x465a30]['concat'](_0x4ce6e1[_0x251beb]),_0x4ce6e1[_0x251beb]=[];}for(const _0x152a6f of _0x4ce6e1)for(let _0x17f37d=0x0;_0x17f37d<_0x152a6f['length'];_0x17f37d++){const _0x38c32e=_0x152a6f[_0x17f37d+0x1]||null;_0x152a6f[_0x17f37d]['next']!==_0x38c32e&&(_0x152a6f[_0x17f37d]['next']=_0x38c32e);}for(const _0xc8fa7 of _0x4ce6e1)for(let _0x2bfa38=0x0;_0x2bfa38<_0xc8fa7['length'];_0x2bfa38++){const _0x1dffbc=_0xc8fa7[_0x2bfa38-0x1]||null;_0xc8fa7[_0x2bfa38]['previous']!==_0x1dffbc&&(_0xc8fa7[_0x2bfa38]['previous']=_0x1dffbc);}function _0x38ed36(_0x941290,_0x404220){if(_0x941290[0x0]['attributes']['groupId']!==_0x404220[0x0]['attributes']['groupId']&&_0x941290[0x0]['author']!==_0x404220[0x0]['author'])return!0x1;if(!function(_0x39e09e,_0x2dbea3){if(!_0x39e09e['hasComments']&&!_0x2dbea3['hasComments'])return!0x0;if(_0x39e09e['hasComments']&&_0x2dbea3['hasComments'])return!0x1;if(_0x39e09e['hasComments']&&_0x2dbea3['createdAt']<_0x39e09e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2dbea3['hasComments']&&_0x39e09e['createdAt']<_0x2dbea3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x941290[0x0],_0x404220[0x0]))return!0x1;const _0x447223=Pt(_0x941290[0x0]['attributes'],['groupId','trackingSessionId']),_0x9a516=Pt(_0x404220[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x33d31c(_0x447223,_0x9a516))return!0x1;if(_0x941290[0x0]['attributes']['groupId']==_0x404220[0x0]['attributes']['groupId'])return!0x0;if(_0x941290[0x0]['attributes']['trackingSessionId']!==_0x404220[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x941290['every'](_0x12e53f=>_0x404220['some'](_0x40c657=>_0x12e53f['getFirstRange']()['isEqual'](_0x40c657['getFirstRange']())))&&_0x404220['every'](_0xe7218b=>_0x941290['some'](_0x48c727=>_0xe7218b['getFirstRange']()['isEqual'](_0x48c727['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x33fa4d){const _0x41a9e6=Array['from'](_0x33fa4d),_0x598f91=this['getSuggestions']({'skipNotAttached':!0x0}),_0x457e54=_0x598f91['filter'](_0x2f4a89=>!_0x33fa4d['has'](_0x2f4a89)),_0x5d97ff=new Map(_0x41a9e6['map'](_0x25fb5b=>[_0x25fb5b,this['_suggestionFactory']['getSuggestionCallback'](_0x25fb5b['type'],_0x25fb5b['subType'],'join')])),_0x1abb4a=new Map(_0x598f91['map'](_0x290e29=>[_0x290e29,_0x290e29['getRanges']()]));for(let _0x1aaa4e=0x0;_0x1aaa4e<_0x41a9e6['length'];_0x1aaa4e++){if(_0x10b5a2(this,_0x41a9e6[_0x1aaa4e],_0x41a9e6,_0x1aaa4e+0x1))return!0x0;}for(let _0x93921c=0x0;_0x93921c<_0x41a9e6['length'];_0x93921c++){if(_0x10b5a2(this,_0x41a9e6[_0x93921c],_0x457e54,0x0))return!0x0;}return!0x1;function _0x10b5a2(_0x1cf37e,_0x5670fc,_0x738be8,_0x3b9dae){for(let _0x1c8560=_0x3b9dae;_0x1c8560<_0x738be8['length'];_0x1c8560++){const _0x4cc588=_0x738be8[_0x1c8560];if(_0x4cc588['type']!==_0x5670fc['type']||_0x4cc588['author']['id']!==_0x5670fc['author']['id']||_0x4cc588['subType']!==_0x5670fc['subType'])continue;if(!en(_0x5670fc,_0x4cc588))continue;if('attribute'==_0x5670fc['type']&&_0x5670fc['data']['oldValue']!=_0x4cc588['data']['oldValue'])continue;if('attribute'==_0x5670fc['type']&&_0x1cf37e['_isBlockAttribute'](_0x5670fc['data']['key']))continue;if('formatBlock'==_0x5670fc['type']){const _0x445972=_0x1cf37e['editor']['model'],_0x1ce002=_0x5670fc['getContainedElement']();if(_0x1ce002&&(_0x445972['schema']['isObject'](_0x1ce002)||_0x445972['schema']['isLimit'](_0x1ce002)))continue;}const _0x3fcd63=_0x5d97ff['get'](_0x5670fc),_0x2da17b=_0x1abb4a['get'](_0x5670fc),_0x3a8551=_0x1abb4a['get'](_0x4cc588),_0x4ffd8a=_0x5670fc['commentThread']&&_0x5670fc['commentThread']['length'],_0x365f3c=_0x4cc588['commentThread']&&_0x4cc588['commentThread']['length'];if(!_0x4ffd8a&&_0x3fcd63(_0x3a8551,_0x2da17b))return _0x1cf37e['_joinSuggestions'](_0x4cc588,_0x5670fc),_0x1abb4a['delete'](_0x5670fc),!0x0;if(!_0x365f3c&&_0x3fcd63(_0x2da17b,_0x3a8551))return _0x1cf37e['_joinSuggestions'](_0x5670fc,_0x4cc588),_0x1abb4a['delete'](_0x4cc588),!0x0;}return!0x1;}}['_joinSuggestions'](_0x226473,_0x55c4b6){if(_0x226473['isMultiRange']){for(const _0x5039ae of _0x55c4b6['getRanges']())_0x226473['addRange'](_0x5039ae);}else{const _0x2ec281=_0x55c4b6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x226473,this['_model']['createRange'](_0x226473['getFirstRange']()['start'],_0x2ec281));}_0x55c4b6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41f41e,_0x559353,_0x3f2b23){const _0x35d454=_0x41f41e['startsWith']('format')||_0x41f41e['startsWith']('attribute')?'FORMATTING':_0x41f41e['toUpperCase']();return o(this['editor']['locale'],_0x559353+'_'+_0x35d454+'_SUGGESTION_ANNOUNCEMENT',_0x3f2b23);}['_initAriaMarkerChangeAnnouncements'](){const _0x405352=this['editor'];if(!_0x405352['ui'])return;const {ariaLiveAnnouncer:_0x460bec}=_0x405352['ui'];_0xdbf774(this['_model'],({left:_0x4fac14,entered:_0x4ecaea})=>{for(const _0x341d73 of _0x4fac14){const {group:_0x399c20,type:_0x26cb89}=this['_splitMarkerName'](_0x341d73['name']);if('suggestion'===_0x399c20){_0x460bec['announce'](this['_getMarkerAnnouncementText'](_0x26cb89,'LEAVE'));break;}}for(const _0x50686a of _0x4ecaea){const {group:_0x5257bf,type:_0x37a258}=this['_splitMarkerName'](_0x50686a['name']);if('suggestion'===_0x5257bf){_0x460bec['announce'](this['_getMarkerAnnouncementText'](_0x37a258,'ENTER',_0xc43d41(_0x18497a)));break;}}});}['_processAttributeChanges'](_0x252f22){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e0e38=this['editor'],_0x43a1ae=_0x2e0e38['model']['document']['differ']['getChanges']();if(0x0==_0x43a1ae['length'])return!0x1;const _0x311b74=[],_0x8d02b2=_0x43a1ae['filter'](_0x38bfc1=>'attribute'==_0x38bfc1['type']),_0x532876=_0x43a1ae['filter'](_0x66355e=>'insert'==_0x66355e['type']&&'$text'!=_0x66355e['name']),_0x3ac504=_0x43a1ae['filter'](_0x50ba80=>'remove'==_0x50ba80['type']&&'$text'!=_0x50ba80['name']);for(const _0x3df24f of _0x8d02b2)_0x311b74['push']({'key':_0x3df24f['attributeKey'],'newValue':_0x3df24f['attributeNewValue'],'oldValue':_0x3df24f['attributeOldValue'],'range':Zt(_0x3df24f['range'],_0x2e0e38['model'])});for(const _0x4af8db of _0x532876){const _0x155143=_0x3ac504['find'](_0x35b73e=>_0x35b73e['position']['isEqual'](_0x4af8db['position']));_0x155143&&_0x311b74['push']({'key':m,'newValue':_0x4af8db['name'],'oldValue':_0x155143['name'],'range':_0x2e0e38['model']['createRangeOn'](_0x4af8db['position']['nodeAfter'])});}return 0x0!=_0x311b74['length']&&this['_reduceExistingSuggestions'](_0x252f22,_0x311b74);}['_processAttributeSuggestions'](_0xaaa3de){let _0x3b1574=!0x1;const _0x15b0da=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x454556=>_0x454556['data']['newRange']&&_0x454556['name']['startsWith']('suggestion:attribute:'));for(const _0x42a7c7 of _0x15b0da){const {subType:_0x4dbd97,id:_0x5c5636}=this['_splitMarkerName'](_0x42a7c7['name']),_0x370c37=_0x4dbd97['split']('|')[0x0];for(const _0x5e2266 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5e2266['id']!=_0x5c5636&&'attribute'==_0x5e2266['type']&&_0x5e2266['data']&&_0x5e2266['data']['key']==_0x370c37&&_0x5e2266['getFirstRange']()['isIntersecting'](_0x42a7c7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5e2266,_0x42a7c7['data']['newRange'],_0xaaa3de),_0x3b1574=!0x0);}return _0x3b1574;}['recordAttributeChanges'](_0x3de3e8){this['_recordAttributeSuggestions']=!0x0,_0x3de3e8();}['_isRegisteredAttribute'](_0x5c1b56){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x5c1b56);}['_reduceExistingSuggestions'](_0x463bef,_0x1d8db9){if(0x0==_0x1d8db9['length'])return!0x1;let _0x4e621a=!0x1;for(const _0x5da293 of _0x1d8db9){const _0x27b6d3=this['_findSuggestions'](_0x5da293['range'],'attribute')['filter'](_0x2c5c7a=>!_0x2c5c7a['meta']['isNextTo'])['map'](_0x35bf31=>_0x35bf31['suggestion']),_0x535a71=_0x4f3ece({'newValue':_0x5da293['newValue']});_0x27b6d3['filter'](_0x5a5945=>{const [_0x4f8c96,_0x395fd3]=_0x5a5945['subType']['split']('|');return _0x4f8c96==_0x5da293['key']&&_0x395fd3!=_0x535a71;})['forEach'](_0x2632d7=>{this['_reduceSuggestionAttributeRange'](_0x2632d7,_0x5da293['range'],_0x463bef),_0x4e621a=!0x0;});}return _0x4e621a;}['_reduceSuggestionAttributeRange'](_0x1df29f,_0x34b55f,_0x22d44c){const _0x5a0ed1=_0x1df29f['getFirstRange']()['getDifference'](_0x34b55f);0x0!==_0x5a0ed1['length']?0x1!==_0x5a0ed1['length']?this['_breakSuggestionMarker'](_0x1df29f,_0x34b55f['start'],_0x34b55f['end']):this['_setSuggestionRange'](_0x1df29f,_0x5a0ed1[0x0]):_0x22d44c['removeMarker'](_0x1df29f['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4f7c5c){this['_editor']=_0x4f7c5c,this['_model']=_0x4f7c5c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x239a4d,_0x38f30d,_0x2e52f3,_0x5443a0,_0x2c123f,_0x20a4c6,_0x1e984c){return new x(this['_model'],{'type':_0x239a4d,'subType':_0x38f30d,'id':_0x2e52f3,'originalSuggestionId':_0x1e984c,'author':_0x5443a0,'creator':_0x5443a0,'attributes':_0x2c123f,'onAttributesChange':_0x20a4c6,'onAccept':(..._0xcd137e)=>this['getSuggestionCallback'](_0x239a4d,_0x38f30d,'accept')(..._0xcd137e),'onDiscard':(..._0x101d6d)=>this['getSuggestionCallback'](_0x239a4d,_0x38f30d,'discard')(..._0x101d6d)});}['registerCustomCallback'](_0x18bb84,_0x4f98b2,_0x33fabd,_0x20514c){const _0xc5db39=_0x18bb84+':'+_0x4f98b2+':'+_0x33fabd;this['_customCallbacks']['set'](_0xc5db39,_0x20514c);}['getSuggestionCallback'](_0x8214c9,_0x387052,_0x951a51){const _0x409b57=_0x8214c9+':'+_0x387052+':'+_0x951a51;return this['_customCallbacks']['get'](_0x409b57)||this['_defaultCallbacks']['get'](_0x8214c9+':'+_0x951a51);}['_registerDefaultCallbacks'](){const _0x53e6ab=()=>!0x1,_0x3ca328=_0x11f6dd=>{_0x11f6dd['sort']((_0x439436,_0x45f1b5)=>_0x439436['start']['isBefore'](_0x45f1b5['start'])?0x1:-0x1),this['_model']['change'](_0x12699c=>{for(const _0x453139 of _0x11f6dd){let _0x771391;_0x771391=_0x453139['end']['isAtEnd']&&_0x453139['end']['parent']==_0x453139['start']['nodeAfter']?_0x12699c['createSelection'](_0x453139['start']['nodeAfter'],'on'):_0x12699c['createSelection'](_0x453139),this['_model']['deleteContent'](_0x771391,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x376086=(_0x1451f1,_0x478329)=>{_0x478329&&this['_model']['change'](_0x16b983=>{const {commandName:_0x37a54c,commandParams:_0x26da9b=[]}=_0x478329,_0x4be6a5=_0x1451f1['map'](_0x166dea=>(Kt(_0x166dea)&&(_0x166dea=this['_model']['createRange'](_0x166dea['end'])),_0x166dea))['filter'](_0x48f069=>'$graveyard'!==_0x48f069['root']['rootName']);if(_0x4be6a5['length']<0x1)return;const _0x5d190c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x571e24=>_0x167977['fromRange'](_0x571e24));_0x16b983['setSelection'](_0x4be6a5);for(const _0xa72fb1 of this['_editor']['commands']['commands']())_0xa72fb1['refresh']();_0x26da9b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x37a54c,..._0x26da9b);const _0x3815fd=_0x5d190c['filter'](_0x67cc23=>'$graveyard'!=_0x67cc23['root']['rootName']);_0x3815fd['length']>0x0&&_0x16b983['setSelection'](_0x3815fd);for(const _0x5ac868 of _0x5d190c)_0x5ac868['detach']();});},_0x556251=(_0x47e760,_0xda8cba)=>0x1==_0x47e760['length']&&0x1==_0xda8cba['length']&&_0x47e760[0x0]['end']['isEqual'](_0xda8cba[0x0]['start']),_0x459454=(_0x5b61b1,_0x46a346,_0x48f19d,_0x58256d)=>nn(_0x5b61b1,_0x46a346,_0x48f19d,_0x58256d)?[_0x5b61b1,_0x46a346]:nn(_0x46a346,_0x5b61b1,_0x58256d,_0x48f19d)?[_0x46a346,_0x5b61b1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x53e6ab),this['_defaultCallbacks']['set']('insertion:discard',_0x3ca328),this['_defaultCallbacks']['set']('insertion:join',_0x556251),this['_defaultCallbacks']['set']('insertion:chain',_0x459454),this['_defaultCallbacks']['set']('deletion:accept',_0x3ca328),this['_defaultCallbacks']['set']('deletion:discard',_0x53e6ab),this['_defaultCallbacks']['set']('deletion:join',_0x556251),this['_defaultCallbacks']['set']('deletion:chain',_0x459454),this['_defaultCallbacks']['set']('formatInline:accept',_0x376086),this['_defaultCallbacks']['set']('formatInline:discard',_0x53e6ab),this['_defaultCallbacks']['set']('formatInline:join',_0x556251),this['_defaultCallbacks']['set']('formatInline:chain',_0x53e6ab),this['_defaultCallbacks']['set']('formatBlock:accept',_0x376086),this['_defaultCallbacks']['set']('formatBlock:discard',_0x53e6ab),this['_defaultCallbacks']['set']('formatBlock:join',_0x556251),this['_defaultCallbacks']['set']('formatBlock:chain',_0x53e6ab),this['_defaultCallbacks']['set']('attribute:accept',_0x53e6ab),this['_defaultCallbacks']['set']('attribute:discard',(_0x57ae8d,_0x2f2119)=>{if(!_0x2f2119)return;const _0x397272=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x439846=>{if(_0x2f2119['key']==m)for(const _0x49d062 of _0x57ae8d){const _0x4ae968=_0x49d062['start']['nodeAfter'],_0x4914bc=_0x2f2119['oldValue'];_0x439846['rename'](_0x4ae968,_0x4914bc);}else{if(_0x397272['_isBlockAttribute'](_0x2f2119['key'])){for(const _0x4e67b3 of _0x57ae8d)void 0x0!==_0x2f2119['oldValue']?_0x439846['setAttribute'](_0x2f2119['key'],_0x2f2119['oldValue'],_0x4e67b3['start']['nodeAfter']):_0x439846['removeAttribute'](_0x2f2119['key'],_0x4e67b3['start']['nodeAfter']);}else{for(const _0x208231 of _0x57ae8d)_0x2f2119['oldValue']?_0x439846['setAttribute'](_0x2f2119['key'],_0x2f2119['oldValue'],_0x208231):_0x439846['removeAttribute'](_0x2f2119['key'],_0x208231);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x556251);}}function zt(_0xa2deae,_0x4b3b93,_0x56b7f6){for(const _0x38ab3f of _0x4b3b93['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x38ab3f['root']==_0x38ab3f)return!0x1;if(!_0x56b7f6['containsItem'](_0x38ab3f))return!0x1;if(_0xa2deae['isObject'](_0x38ab3f)||_0xa2deae['isLimit'](_0x38ab3f))return!0x0;}return!0x1;}function Kt(_0x55ba71){return _0x55ba71['end']['parent']==_0x55ba71['start']['nodeAfter']&&_0x55ba71['end']['isAtStart'];}function Wt(_0x23cd93,_0x20d191,_0x63a076,_0x5ce3bd){const _0x16ddce=_0x257550=>!_0x257550['item']['is']('$textProxy')&&!_0x5ce3bd['isObject'](_0x257550['item']),_0x531efc=_0x23cd93['start']['getLastMatchingPosition'](_0x16ddce),_0x3c1133=_0x23cd93['end']['getLastMatchingPosition'](_0x16ddce,{'direction':'backward'});return(!_0x23cd93['start']['isEqual'](_0x531efc)||!_0x23cd93['end']['isEqual'](_0x3c1133))&&(_0x531efc['isBefore'](_0x3c1133)?_0x63a076['updateMarker'](_0x20d191,{'range':_0x63a076['createRange'](_0x531efc,_0x3c1133)}):_0x63a076['removeMarker'](_0x20d191),!0x0);}function Ht(_0xe86580){return _0x4f3ece(_0xe86580);}function Qt(_0x14ada2){const _0x3aa009=_0x14ada2['start']['nodeAfter'];return _0x3aa009&&_0x3aa009['is']('element');}function Xt(_0x117433){return Kt(_0x117433)||function(_0x34053e){return _0x34053e['start']['parent']==_0x34053e['end']['nodeBefore']&&_0x34053e['start']['isAtEnd'];}(_0x117433);}function Yt(_0x4afd69,_0x28e622){try{const _0x25d487=_0x4afd69['getRange']();for(const _0x326cb7 of _0x28e622)if(_0x4afd69!==_0x326cb7&&_0x25d487&&_0x25d487['isIntersecting'](_0x326cb7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x5d8226,_0x359ca8){return null==_0x5d8226['end']['nodeBefore']&&_0x5d8226['end']['parent']==_0x5d8226['start']['nodeAfter']?tn(_0x5d8226['start']['nodeAfter'],_0x359ca8):_0x5d8226;}function tn(_0x20e0a7,_0x499f34){const _0x584353=_0x499f34['schema']['isObject'](_0x20e0a7)||_0x499f34['schema']['isSelectable'](_0x20e0a7);return _0x499f34['createRange'](_0x499f34['createPositionAt'](_0x20e0a7,'before'),_0x584353?_0x499f34['createPositionAfter'](_0x20e0a7):_0x499f34['createPositionAt'](_0x20e0a7,'end'));}function nn(_0x286ef5,_0x2adce2,_0x41f1ec,_0x4a134b){return!!en(_0x286ef5,_0x2adce2)&&_0x41f1ec['end']['isEqual'](_0x4a134b['start']);}function en(_0x117052,_0x104b0c){if(!_0x117052['_isDataLoaded']||!_0x104b0c['_isDataLoaded'])return!0x1;const _0x54f37b=new Set(Object['keys'](_0x117052['attributes'])),_0x4cc46c=new Set(Object['keys'](_0x104b0c['attributes']));if(_0x54f37b['delete']('groupId'),_0x4cc46c['delete']('groupId'),0x0==_0x54f37b['size']&&0x0==_0x4cc46c['size'])return!0x0;if(_0x54f37b['size']!=_0x4cc46c['size'])return!0x1;const _0x2852f7={..._0x117052['attributes']},_0x4c7b64={..._0x104b0c['attributes']};return delete _0x2852f7['groupId'],delete _0x4c7b64['groupId'],JSON['stringify'](_0x2852f7)==JSON['stringify'](_0x4c7b64);}function sn(_0x41d607,_0x4f3d45){const _0x14ecdf=on(_0x41d607['attributes']),_0x4a6806=on(_0x4f3d45);if(!_0x41d607['_isDataLoaded'])return!0x1;for(const _0x196cbc of Object['keys'](_0x4a6806))if(!_0x33d31c(_0x14ecdf[_0x196cbc],_0x4a6806[_0x196cbc]))return!0x1;return!0x0;}function on(_0x1c634f){const _0x4a8371=Object['assign']({},_0x1c634f);return delete _0x4a8371['skipNestingCheck'],delete _0x4a8371['tablePasteChainId'],_0x4a8371;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x396c0e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1197d9,_0x191525,_0x31f224,_0xbd5a3e){super(),this['model']=_0x191525,this['view']=_0x31f224,this['commentThreadController']=_0xbd5a3e,this['_editor']=_0x1197d9,this['_acceptCommand']=_0x1197d9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1197d9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa5c2c2,_0x151964)=>_0xa5c2c2||_0x151964),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1baa66=>_0x1baa66&&this['_editor']['model']['canEditAt'](_0x191525['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x334320=>_0x334320&&this['_editor']['model']['canEditAt'](_0x191525['getRanges']())),this['_pendingAction']=null,_0x31f224['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x31f224,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x31f224,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x31f224,'change:isDirty',()=>{_0x31f224['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 _0x2492da=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2492da);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3725c9{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5293d1,_0x1a7722,_0x3b5784,_0xd965d3){super(_0x5293d1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x536ecb(_0x5293d1,o(_0x5293d1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1a7722['authoredAt']),this['bind']('authoredAt')['to'](_0x1a7722),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',_0x1a7722,'authoredAt',this,'descriptionParts',(_0x231e34,_0x206461,_0x9739f7)=>{const _0x9359d5=_0x9739f7['map'](_0x54fbbe=>ls(_0x54fbbe['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x231e34-0x1,_0x1a7722['author']['name'],_0x206461?_0xd965d3['formatDateTime'](_0x206461):'',new DOMParser()['parseFromString'](_0x9359d5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4958e7(),this['focusTracker']=new _0x117c38(),this['keystrokes']=new _0x15ddba(),this['focusCycler']=new _0x5d44a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x166bd0=>_0x166bd0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1a7722,this['_localUser']=_0x3b5784,this['_config']=_0xd965d3,_0xd965d3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x19f182(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x46c945}=this['_config'];this['commentsListView']=new _0x46c945(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',_0x29d32b=>_0x29d32b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xfd11d2,_0x464f0d)=>_0xfd11d2||!!_0x464f0d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x48c392}=this['_config'],_0x2027de=new _0x48c392(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5f3939=_0x2027de['commentInputView'];return _0x2027de['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5f3939,'value',(_0xb45c97,_0x27b94e,_0xcc79cd)=>!!_0xcc79cd||_0xb45c97&&!_0x27b94e),_0x5f3939['on']('submit',(_0x4c4f03,_0x1c6366)=>{this['fire']('addComment',_0x1c6366),_0x5f3939['editor']['setData']('');}),_0x5f3939['on']('cancel',()=>this['focus']()),_0x5f3939['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2027de;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x36c661,_0x27534a,_0x1449b8,_0x4d6921){super(_0x36c661,_0x27534a,_0x1449b8,_0x4d6921),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d6f44=>_0x4d6f44&&_0x4d6f44[0x0]?_0x4d6f44[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x51e6d1,_0x37fd78)=>{let _0x37b34c='';for(const _0x456612 of _0x51e6d1)_0x37b34c+='<p>'+ls(_0x456612['content'],_0x456612['color'])+'</p>';return _0x37fd78?_0x37b34c:_0x1cbe9a(_0x37b34c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d6921['SuggestionView'](_0x36c661,_0x27534a,{'formatDateTime':_0x4d6921['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 _0x199099=this['bindTemplate'],_0x4017e6=[this['suggestionView']];return this['commentsListView']&&_0x4017e6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4017e6['push'](this['commentThreadInputView']),_0x4017e6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x199099['if']('isActive','ck-suggestion-wrapper--active'),_0x199099['to']('type',_0x1e5f2d=>'ck-suggestion-'+_0x1e5f2d),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':_0x199099['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4017e6};}['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 _0x3725c9{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x43b5df,_0x792320,_0x1683c6){super(_0x43b5df),this['_model']=_0x792320,this['_config']=_0x1683c6,this['set']('description',''),this['bind']('authoredAt')['to'](_0x792320),this['acceptButton']=this['_createButton'](o(_0x43b5df,'Accept\x20suggestion'),_0x66c94d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x43b5df,'Discard\x20suggestion'),_0x11ac0f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x35b91d(_0x43b5df,_0x792320['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4958e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x117c38(),this['keystrokes']=new _0x15ddba(),this['focusCycler']=new _0x5d44a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4ed137=>_0x4ed137['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xcf2122=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xcf2122['innerHTML']=this['description'],this['on']('change:description',(_0x4fcbd8,_0x4a50f2,_0x42cc9a)=>{_0xcf2122['innerHTML']=_0x42cc9a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x63147d=this['bindTemplate'],_0x403e76=[{'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':_0x63147d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x63147d['to']('authoredAt',_0x112d0f=>this['_config']['formatDateTime'](_0x112d0f))}]}]},{'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']&&_0x403e76['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':_0x403e76}]};}['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'](_0xa38625,_0x21c7a2,_0x34247e,_0x303df6,_0x4209b0){const _0x4c09e2=new _0x1f2254(this['locale']);return _0x4c09e2['set']({'label':_0xa38625,'icon':_0x21c7a2,'tooltip':!0x0,'tooltipPosition':_0x4209b0}),_0x4c09e2['extendTemplate']({'attributes':{'class':_0x34247e}}),_0x4c09e2['on']('execute',()=>{this['fire'](_0x303df6,this['_model']['id']);}),_0x4c09e2;}['_setupKeyboardNavigation'](){const _0x2dbe26=this['element'];this['keystrokes']['listenTo'](_0x2dbe26);for(const _0x96cc90 of this['focusables'])this['focusTracker']['add'](_0x96cc90['element']),this['keystrokes']['listenTo'](_0x96cc90['element']);this['keystrokes']['set']('enter',(_0x371d1c,_0x4f3548)=>{_0x2dbe26===_0x371d1c['target']&&(this['focusCycler']['focusFirst'](),_0x4f3548());}),this['keystrokes']['set']('esc',(_0x14c264,_0x4dce4d)=>{_0x2dbe26!==_0x14c264['target']&&(this['focus'](),_0x4dce4d());});}}class u extends _0x5c469f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0xe3d5a4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13afdd){super(_0x13afdd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x326a63=this['editor']['config'];_0x326a63['define']('trackChanges.SuggestionThreadView',fe),_0x326a63['define']('trackChanges.SuggestionView',we),_0x326a63['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x326a63['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23899e,_0x33a02b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4ea012,_0x9cb683]of this['_handleControllerBuffer']){const _0x4abc1f=this['_suggestionToController']['has'](_0x4ea012);_0x4abc1f||_0x9cb683?_0x4abc1f&&_0x9cb683&&this['_destroyController'](_0x4ea012):this['_initializeController'](_0x4ea012);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23899e,_0x33a02b);}['init'](){const _0x1d9539=this['editor'],_0x57096b=_0x1d9539['plugins']['get']('TrackChangesEditing'),_0x518503=_0x1d9539['plugins']['get']('Annotations'),_0x1f3de5=_0x1d9539['plugins']['get']('EditorAnnotations'),_0x125147=_0x1d9539['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f3de5['addSourceCollector'](()=>{const _0x1f56be=[];for(const [_0x1399ad,_0x495cef]of Array['from'](this['_suggestionToController'])){const _0x3d826f=_0x1399ad['getAllAdjacentSuggestions'](),_0x3570c4=[];for(const _0x104ca7 of _0x3d826f){if(!_0x104ca7['isInContent'])continue;if(_0x104ca7['isMultiRange']){_0x3570c4['push'](..._0x104ca7['getRanges']());continue;}const _0x38317c=_0x104ca7['getFirstRange']();if(_0x3570c4['length']>0x0){const _0x5632fb=_0x3570c4[0x0]['getJoined'](_0x38317c);if(_0x5632fb){_0x3570c4[0x0]=_0x5632fb;continue;}}_0x3570c4['push'](_0x38317c);}_0x1f56be['push']([_0x495cef['view'],_0x3570c4]);}return _0x1f56be;}),this['listenTo'](_0x57096b,'suggestionLoaded',(_0x46a67d,_0x5e3fe3)=>{this['listenTo'](_0x5e3fe3,'change:previous',(_0x5d5190,_0x4e9b7f,_0x5af547,_0xe324be)=>{_0x5e3fe3['isInContent']&&(null==_0x5af547?(this['_updateController'](_0xe324be['head']),this['_handleSuggestionControllerDelayed'](_0x5e3fe3,!0x1)):(this['_updateController'](_0x5af547['head']),null==_0xe324be&&this['_handleSuggestionControllerDelayed'](_0x5e3fe3,!0x0)));}),null!==_0x5e3fe3['previous']?this['_updateController'](_0x5e3fe3['head']):this['_handleSuggestionControllerDelayed'](_0x5e3fe3,!0x1);}),this['listenTo'](_0x57096b,'suggestionUnloaded',(_0x372865,_0x1f0ffd,_0x2ad15b)=>{this['stopListening'](_0x1f0ffd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f0ffd),this['_suggestionToController']['has'](_0x1f0ffd)&&this['_destroyController'](_0x1f0ffd),_0x2ad15b&&this['_updateController'](_0x2ad15b['head']);}),this['listenTo'](_0x57096b,'suggestionChanged',(_0x16145e,_0x7a588f)=>{this['_updateController'](_0x7a588f);}),this['listenTo'](_0x518503,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x125147,'addComment',(_0x288419,{threadId:_0x5593db,isFromAdapter:_0x58093a})=>{if(_0x58093a||!_0x57096b['hasSuggestion'](_0x5593db))return;const _0x416d5c=_0x57096b['getSuggestion'](_0x5593db);this['_suggestionToController']['get'](_0x416d5c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fabc1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f63ef;for(const _0x4479df in _0x4fabc1){const _0x1ed848=_0x4479df,_0x326ab9=_0x4fabc1[_0x1ed848];if('trackChangesLicenseKeyValid'==_0x326ab9||'trackChangesLicenseKeyInvalid'==_0x326ab9||'trackChangesLicenseKeyExpired'==_0x326ab9||'trackChangesLicenseKeyDomainLimit'==_0x326ab9||'trackChangesLicenseKeyNotAllowed'==_0x326ab9||'trackChangesLicenseKeyEvaluationLimit'==_0x326ab9||'trackChangesLicenseKeyTrialLimit'==_0x326ab9||'trackChangesLicenseKeyUsageLimit'==_0x326ab9){delete _0x4fabc1[_0x1ed848],_0x4f63ef=_0x326ab9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x54600e){const _0x1adf7f=this['_suggestionToController']['get'](_0x54600e);if(!_0x1adf7f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1adf7f['view'])||null;}['getSuggestionForAnnotation'](_0x144cd0){const _0x555c91=this['_viewToController']['get'](_0x144cd0['innerView']);return _0x555c91?_0x555c91['model']:null;}['_refreshActiveMarkers'](){const _0x280a98=this['editor']['plugins']['get']('Annotations'),_0x66189a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1664a5=Array['from'](_0x280a98['activeAnnotations'],_0x43dce1=>_0x43dce1['innerView'])['filter'](_0x3ff973=>this['_viewToController']['has'](_0x3ff973)),_0x2451dd=[];for(const _0x2097db of _0x1664a5){const _0x4681a0=this['_viewToController']['get'](_0x2097db)['model']['getAllAdjacentSuggestions']();_0x2451dd['push'](..._0x4681a0['reduce']((_0x39d500,_0x113caa)=>[..._0x39d500,..._0x113caa['getMarkerNames']()],[]));}_0x66189a['activeMarkers']=_0x2451dd;}['_addUIComponentsToFactory'](){const _0x598d5f=this['editor'],_0x1bf816=_0x598d5f['locale'],_0x3e5897=o(_0x1bf816,'Track\x20changes'),_0x5c050d=new _0x2a31a7([{'type':'switchbutton','model':new _0x4d4814({'withText':!0x0,'isToggleable':!0x0,'label':_0x3e5897,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x598d5f['plugins']['has']('TrackChangesPreview')&&_0x5c050d['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x672553 of _0x5c050d)if(ke(_0x672553)){const _0x13c61a=_0x598d5f['commands']['get'](_0x672553['model']['commandName']);_0x672553['model']['bind']('isOn','isEnabled')['to'](_0x13c61a,'value','isEnabled');}_0x598d5f['ui']['componentFactory']['add']('trackChanges',_0x19025b=>this['_createToolbarButton'](_0x19025b,_0x5c050d,_0x3e5897)),_0x598d5f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ee0af=>this['_createMenuBarMenu'](_0x2ee0af,_0x5c050d,_0x3e5897));}['_createToolbarButton'](_0x19fb37,_0x2bd650,_0x55596b){const _0x4432d3=_0x57847e(_0x19fb37,_0x2e353d),_0x2a644e=this['editor']['commands']['get']('trackChanges');_0x4432d3['buttonView']['set']({'tooltip':_0x55596b,'label':_0x55596b,'icon':_0x5563d1}),_0x4432d3['buttonView']['bind']('isOn')['to'](_0x2a644e,'value'),_0x4432d3['buttonView']['on']('execute',()=>{_0x2a644e['execute'](),this['editor']['editing']['view']['focus']();}),_0x1cd2d(_0x4432d3,_0x2bd650,{'role':'menu'});const _0x416d06=[];for(const _0x39b54b of _0x2bd650)ke(_0x39b54b)&&_0x416d06['push'](this['editor']['commands']['get'](_0x39b54b['model']['commandName']));const _0x3a60d2=_0x4432d3['buttonView'];return _0x3a60d2['actionView']['unbind']('isEnabled'),_0x3a60d2['arrowView']['unbind']('isEnabled'),_0x3a60d2['actionView']['bind']('isEnabled')['to'](_0x2a644e,'isEnabled'),_0x3a60d2['arrowView']['bind']('isEnabled')['toMany'](_0x416d06,'isEnabled',(..._0x4de315)=>_0x4de315['some'](_0x54afba=>_0x54afba)),_0x4432d3['on']('execute',_0x6d2b6c=>{this['editor']['execute'](_0x6d2b6c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4432d3;}['_createMenuBarMenu'](_0x9f7991,_0x35b523,_0x1c1b1f){const _0x5d2a99=new _0x502fd3(_0x9f7991),_0x33b721=this['editor']['commands']['get']('trackChanges');_0x5d2a99['buttonView']['set']({'label':_0x1c1b1f,'icon':_0x5563d1});const _0x33495d=new _0x5b0b21(_0x9f7991);for(const _0x1b5f5f of _0x35b523){if('separator'==_0x1b5f5f['type']){_0x33495d['items']['add'](new _0xc8adaa(_0x9f7991));continue;}const _0x4fa1eb=new _0x1f14d7(_0x9f7991,_0x5d2a99),_0xf34d8=new _0x59084b(_0x9f7991),_0x5cbf=_0x1b5f5f['model'];_0xf34d8['bind'](...Object['keys'](_0x5cbf))['to'](_0x5cbf),_0xf34d8['delegate']('execute')['to'](_0x5d2a99),_0xf34d8['on']('execute',()=>{this['editor']['execute'](_0x5cbf['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fa1eb['children']['add'](_0xf34d8),_0x33495d['items']['add'](_0x4fa1eb);}return _0x5d2a99['bind']('isEnabled')['to'](_0x33b721,'isEnabled'),_0x5d2a99['panelView']['children']['add'](_0x33495d),_0x5d2a99;}['_initializeController'](_0x34eae1){const _0x2f702d=this['editor'],_0x10d1ad=_0x2f702d['config'],_0x101a9f=_0x2f702d['plugins']['get']('Annotations'),_0x1ec6ee=_0x2f702d['plugins']['get']('CommentsRepository'),_0x2b13f5=_0x2f702d['plugins']['get']('EditorAnnotations'),_0x51c534=_0x2f702d['plugins']['get'](_0xe3d5a4)['me'],_0x1c17de=_0x10d1ad['get']('trackChanges')['SuggestionThreadView'],_0x29234a=_0x10d1ad['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x6926b,CommentThreadInputView:_0x55d1cd}=_0x2f702d['plugins']['get']('CommentsUI');let _0x41ccdd,_0x408e97,_0x4da4ec;this['_annotationViews']['has'](_0x34eae1['id'])?(_0x408e97=this['_annotationViews']['get'](_0x34eae1['id']),_0x41ccdd=_0x408e97['mainView']):(_0x41ccdd=new _0x1c17de(_0x2f702d['locale'],_0x34eae1,_0x51c534,{'disableComments':this['_disableComments'],'editorConfig':{..._0x10d1ad['get']('comments.editorConfig'),'licenseKey':_0x10d1ad['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x10d1ad['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x10d1ad['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x10d1ad['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x703e2b(_0x10d1ad['get']('locale'),_0x2f702d['locale']),'CommentView':_0x10d1ad['get']('comments')['CommentView'],'CommentsListView':_0x6926b,'CommentThreadInputView':_0x55d1cd,'SuggestionView':_0x29234a}),_0x41ccdd['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f702d['editing']['view']['focus']();}),_0x41ccdd['suggestionView']['discardButton']['on']('execute',()=>{_0x2f702d['editing']['view']['focus']();}),_0x408e97=_0x101a9f['createAnnotationView'](this['editor']['locale'],_0x41ccdd),_0x408e97['bind']('isDirty')['to'](_0x41ccdd,'isDirty'),_0x408e97['bind']('length')['to'](_0x41ccdd),_0x408e97['bind']('type')['to'](_0x41ccdd,'type',_0x172bbb=>'suggestion-'+_0x172bbb),_0x41ccdd['on']('escape',()=>{_0x4da4ec['fire']('escape');}),this['_annotationViews']['set'](_0x34eae1['id'],_0x408e97));const _0x2cd211=_0x1ec6ee['createCommentThreadController'](_0x34eae1['commentThread'],_0x41ccdd),_0xaef574=new pe(_0x2f702d,_0x34eae1,_0x41ccdd,_0x2cd211),_0x42b1f2=_0x34eae1['getAllAdjacentSuggestions']()['filter'](_0x906722=>_0x906722['isInContent']);_0x41ccdd['descriptionParts']=_0x2f702d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x42b1f2),this['_suggestionToController']['set'](_0x34eae1,_0xaef574),this['_viewToController']['set'](_0x41ccdd,_0xaef574);const _0x3b4cc9=()=>{const _0x1966b3=[],_0x64dd55=_0x34eae1['getAllAdjacentSuggestions']()['filter'](_0x605c96=>_0x605c96['isInContent']);for(const _0x462b44 of _0x64dd55)_0x1966b3['push'](..._0x462b44['getMarkers']());return _0x319fa6(_0x2f702d['editing'],_0x1966b3);};_0x4da4ec=_0x101a9f['createAnnotation']({'view':_0x408e97,'target':_0x3b4cc9,'type':()=>'suggestion-'+_0xaef574['view']['type'],'isVisible':!!_0x3b4cc9()}),_0x1ec6ee['_bindAnnotationToEditors'](_0x41ccdd,_0x4da4ec),_0x101a9f['add'](_0x4da4ec),_0x2b13f5['registerAnnotation'](_0x4da4ec);}['_destroyController'](_0x4a8787){const _0x127257=this['editor']['plugins']['get']('CommentsRepository'),_0x1a96bd=this['editor']['plugins']['get']('Annotations'),_0x453f4a=this['_suggestionToController']['get'](_0x4a8787),_0xd156fb=_0x453f4a['view'],_0x3b96c5=_0x1a96bd['getByInnerView'](_0xd156fb);_0x127257['_unbindEditors'](_0xd156fb),_0x3b96c5&&_0x1a96bd['remove'](_0x3b96c5),this['_suggestionToController']['delete'](_0x4a8787),this['_viewToController']['delete'](_0xd156fb),_0x453f4a['destroy']();}['_updateController'](_0x50bfed){if(!_0x50bfed['isInContent']||!this['_suggestionToController']['has'](_0x50bfed))return;const _0x1e1e19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15daec=this['_suggestionToController']['get'](_0x50bfed),_0x14ac38=_0x50bfed['getAllAdjacentSuggestions']();_0x15daec['view']['descriptionParts']=_0x1e1e19['descriptionFactory']['getDescriptions'](_0x14ac38);}['destroy'](){for(const _0x33c7b5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x33c7b5);for(const _0x5e885a of this['_annotationViews']['values']())_0x5e885a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3873ef){return'model'in _0x3873ef;}class Ne extends _0x5c469f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1f15f4){this['editor']['plugins']['get'](d)['adapter']=_0x1f15f4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2985c8){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2985c8);}['getSuggestions']({skipNotAttached:_0x5d2f61=!0x1,toJSON:_0x3685bf=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5d2f61,'toJSON':_0x3685bf});}['getSuggestion'](_0x44cb4d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x44cb4d);}}const p=['Pagination'];class re extends _0x5c469f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5a215d=this['editor'];if(_0x5a215d['config']['define']('trackChangesData.editorCreator',_0x2f70c2=>{const _0x50e57c=_0x5a215d['model']['document']['getRootNames']()['reduce']((_0x3f8d77,_0x1e5dc3)=>(_0x3f8d77[_0x1e5dc3]='',_0x3f8d77),{});return _0x5a215d['constructor']['create'](_0x50e57c,_0x2f70c2);}),'function'!=typeof _0x5a215d['config']['get']('trackChangesData')['editorCreator'])throw new _0x4bd1ef('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5eb796){return P(this['editor'],!0x0,_0x5eb796);}['getDataWithDiscardedSuggestions'](_0x4c973d){return P(this['editor'],!0x1,_0x4c973d);}}class Fe extends _0x5c469f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24b614){function _0x29e9ee(_0x3f504a){return _0x3f504a['map'](_0x287c4d=>String['fromCharCode'](_0x287c4d))['join']('');}super(_0x24b614),this['result']='end',_0x24b614[_0x29e9ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e9ee([0x76,0x69,0x65,0x77])][_0x29e9ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29e9ee([0x61,0x75,0x74,0x6f]),_0x24b614[_0x29e9ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x29e9ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29e9ee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x29e9ee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x29e9ee([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 De(_0x3c3dd8){return void 0x0!==_0x3c3dd8['getRootsAttributes'];}async function P(_0x3b2893,_0x244f35,_0x197217){const _0x154ac7=_0x4f6792(_0x3b2893,p);_0x154ac7['plugins']['push'](d,Fe),_0x154ac7['rootsAttributes']=De(_0x3b2893)?_0x3b2893['getRootsAttributes']():void 0x0;const _0x4b8604=document['createDocumentFragment'](),_0x7e23bc=_0x3b2893['config']['get']('trackChangesData')['editorCreator'],_0x41cce0=await _0x7e23bc(_0x154ac7,()=>function(_0x26e244){const _0x5bf232=document['createElement']('div');return _0x26e244['appendChild'](_0x5bf232),_0x5bf232;}(_0x4b8604));!function(_0x4c195f,_0x3aed7b){const _0x3fb7a4=_0x4c195f['model']['document']['getRootNames']()['reduce']((_0x369728,_0x58830d)=>(_0x369728[_0x58830d]=_0x4c195f['data']['get']({'rootName':_0x58830d}),_0x369728),{}),_0x1fcb70=_0x4c195f['plugins']['get']('Users')['users']['map'](_0x57e576=>({'id':_0x57e576['id'],'name':_0x57e576['name']})),_0x160b93=_0x4c195f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3eeec7=_0x4c195f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fe46c=_0x3aed7b['plugins']['get']('Users'),_0xe772eb=_0x3aed7b['plugins']['get']('TrackChangesEditing'),_0xf80562=_0x3aed7b['plugins']['get']('CommentsRepository');for(const _0x3c6c5f of _0xf80562['getCommentThreads']())_0x3c6c5f['remove']();for(const _0xe1c03b of _0x1fcb70)_0x3fe46c['getUser'](_0xe1c03b['id'])||_0x3fe46c['addUser'](_0xe1c03b);_0x3fe46c['me']||_0x3fe46c['useAnonymousUser']();for(const _0xf8e687 of _0x3eeec7)_0xf80562['addCommentThread'](_0xf8e687);for(const _0x3f378d of _0x160b93)_0xe772eb['addSuggestionData'](_0x3f378d);_0x3aed7b['data']['set'](_0x3fb7a4);}(_0x3b2893,_0x41cce0),_0x41cce0['execute'](_0x244f35?'acceptAllSuggestions':'discardAllSuggestions');const _0x29fe09=De(_0x41cce0)?_0x41cce0['getFullData'](_0x197217):_0x41cce0['data']['get'](_0x197217);return await _0x41cce0['destroy'](),_0x29fe09;}class Me extends _0x3725c9{['options'];constructor(_0x8dde3,_0x4ff3c0){super(_0x8dde3),this['options']=_0x4ff3c0,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'](_0x5469b8,_0x193082){if(!this['element'])return;const _0x1b7ca5=[];for(const [_0x4768ed,_0x5cd12a]of _0x5469b8){const _0x39310d=document['createElement']('div');_0x39310d['setAttribute']('data-ck-root-name',_0x4768ed),_0x39310d['className']=_0x5cd12a['classes']+'\x20ck-track-changes-preview__root-container',_0x39310d['innerHTML']=_0x5cd12a['content'],_0x1b7ca5['push'](_0x39310d);}_0x193082(this['element'],_0x1b7ca5),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2677d9{constructor(_0x288068){super(_0x288068),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3e93ae=this['editor'],_0x300bc4=_0x3e93ae['locale'],_0x1663ce=_0x3e93ae['plugins']['get']('Dialog');let _0x263316;const _0x36dbfc=function(_0x22ad92){const _0x39737c={};if('editables'in _0x22ad92['ui']['view']){for(const [_0x1829af,_0xfd129d]of Object['entries'](_0x22ad92['ui']['view']['editables']))_0x39737c[_0x1829af]=_0xfd129d['element'];}else _0x39737c[_0x22ad92['model']['document']['getRootNames']()[0x0]]=_0x22ad92['ui']['view']['editable']['element'];return _0x39737c;}(_0x3e93ae),_0x32bf54=function(_0x811f6a){let _0x5bda94=0x0;for(const _0x38286d of Object['values'](_0x811f6a))_0x5bda94=Math['max'](_0x5bda94,_0x38286d['getBoundingClientRect']()['width']);let _0x25fddc=0x0;for(const _0x1ac38f of Object['values'](_0x811f6a))_0x25fddc+=_0x1ac38f['getBoundingClientRect']()['height'];const _0x14f55a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xa3ae50=Math['min'](_0x25fddc,_0x14f55a);return{'width':_0x5bda94,'height':_0xa3ae50};}(_0x36dbfc);_0x1663ce['show']({'id':'finalContentPreview','title':o(_0x300bc4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x300bc4,{'dialogRects':_0x32bf54}),'onHide':()=>{_0x263316['detachFromDom']();},'onShow':()=>{_0x3e93ae['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x43c2d0=>{const _0x80fc2c=this['_standarizeRootsData'](_0x43c2d0,_0x3e93ae,_0x36dbfc);_0x1663ce['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x80fc2c,_0x3e93ae['config']['get']('trackChanges.preview.renderFunction'));}),_0x263316=new _0xfa1121(_0x300bc4,[_0x1663ce['view']]),_0x263316['attachToDom'](),_0x263316['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3e93ae['once']('destroy',()=>{_0x263316['detachFromDom']();});const _0x28ab23=_0x1663ce['view']['headerView']['class'];_0x1663ce['view']['headerView']['class']=_0x28ab23?_0x28ab23+'\x20ck-reset_all':'ck-reset_all',_0x1663ce['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1663ce['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xd5ce=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x574528=_0xd5ce['previewMode'],_0x22a84f={};if('$labels'===_0x574528){for(const _0x1acc29 of _0xd5ce['getMergeFieldsIds']())_0x22a84f[_0x1acc29]=_0xd5ce['getLabel'](_0x1acc29)||_0x1acc29;}else{const _0x25c1f2='$defaultValues'===_0x574528?_0xd5ce['getDefaultValues']():_0xd5ce['getDataSetValues'](_0x574528,!0x0);for(const _0x4d2ceb of Object['entries'](_0x25c1f2)){const [_0x4da46e,_0x224e9c]=_0x4d2ceb;_0x22a84f[_0x4da46e]=null!==_0x224e9c?_0x224e9c:_0xd5ce['getLabel'](_0x4da46e)||_0x4da46e;}}return{'mergeFieldsData':_0x22a84f};}['_standarizeRootsData'](_0x43a83a,_0x34c112,_0x53159c){let _0x2492c6;if('string'==typeof _0x43a83a){const _0x5d42d5=_0x34c112['model']['document']['getRootNames']()[0x0];_0x2492c6={[_0x5d42d5]:_0x43a83a};}else _0x2492c6=_0x43a83a;const _0x5ac50e=this['_fixMediaEmbeds'](_0x2492c6,_0x34c112),_0x403ff6=function(_0xac0fce,_0x441e83){for(const [_0x2d150a,_0x1cb761]of _0xac0fce)_0x1cb761['classes']=_0x441e83[_0x2d150a]['classList']['value']['replace']('ck-focused','');return _0xac0fce;}(this['_sortRoots'](_0x34c112)['reduce']((_0x2cf503,_0x431c45)=>(_0x2cf503['push']([_0x431c45,{'content':_0x5ac50e[_0x431c45],'classes':''}]),_0x2cf503),[]),_0x53159c);return _0x403ff6;}['_fixMediaEmbeds'](_0x4eba03,_0x1e5697){if(!_0x1e5697['plugins']['has']('MediaEmbedEditing'))return _0x4eba03;const _0x9ce8f7=_0x1e5697['plugins']['get']('MediaEmbedEditing');for(const [_0x25eee,_0x28bc01]of Object['entries'](_0x4eba03)){const _0x426060=document['createElement']('div');_0x426060['innerHTML']=_0x28bc01,(_0x426060['querySelectorAll']('figure.media')['forEach'](_0x3ff8c7=>{const _0x24df1f=_0x3ff8c7['querySelector']('oembed');if(_0x24df1f){const _0x291fa4=_0x24df1f['getAttribute']('url');if(_0x291fa4){const _0x1af9f2=_0x9ce8f7['registry']['getMediaViewElement'](new _0x2db659(_0x1e5697['editing']['view']['document']),_0x291fa4,{'elementName':'','renderForEditingView':!0x0}),_0x180750=document['createElement']('div');_0x180750['classList']['add']('ck-media__wrapper'),_0x1af9f2['render'](_0x180750,_0x1e5697['editing']['view']['domConverter']),_0x24df1f['replaceWith'](_0x180750);}}}),_0x4eba03[_0x25eee]=_0x426060['innerHTML']);}return _0x4eba03;}['_sortRoots'](_0x47bb50){if(!function(_0x3210e6){return void 0x0!==_0x3210e6['getRootsAttributes'];}(_0x47bb50))return _0x47bb50['model']['document']['getRootNames']();const _0x57503c=[],_0x5d6582=new Map();for(const _0x4d568d of _0x47bb50['model']['document']['getRootNames']()){const _0x25717d=_0x47bb50['editing']['view']['getDomRoot'](_0x4d568d)['getClientRects']()['item'](0x0);_0x57503c['push'](_0x4d568d),_0x5d6582['set'](_0x4d568d,_0x25717d);}return _0x57503c['sort']((_0x559edf,_0x2545c3)=>{const _0x1e70c1=_0x5d6582['get'](_0x559edf),_0x1bb481=_0x5d6582['get'](_0x2545c3);return _0x1e70c1['y']-_0x1bb481['y']||_0x1e70c1['x']-_0x1bb481['x'];}),_0x57503c;}}class Ue extends _0x5c469f{static get['requires'](){return[re,_0xc55595];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ee4ec){super(_0x5ee4ec),_0x5ee4ec['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5ee4ec['config']['define']('trackChanges.preview.renderFunction',(_0x199abe,_0x2db338)=>{for(const _0xd6eded of _0x2db338)_0x199abe['appendChild'](_0xd6eded);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x31a038,Plugin as _0x21c11d,PendingActions as _0x16bf98}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3229f3,ObservableMixin as _0x16f996,uid as _0x49bc9e,priorities as _0x1b8846,insertToPriorityArray as _0x4d13b0,logWarning as _0x2c240d,getEnvKeystrokeText as _0x5e9bd4,FocusTracker as _0x463116,KeystrokeHandler as _0x16ca75,Collection as _0x7ca091}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2e5731,IconCancel as _0x5d7595,IconTrackChanges as _0x37b8d5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x260430,View as _0x29b676,ViewCollection as _0x3961f9,FocusCycler as _0x2f6372,UIModel as _0x60db5a,createDropdown as _0x22945d,SplitButtonView as _0x210506,addListToDropdown as _0x2be475,MenuBarMenuView as _0x968339,MenuBarMenuListView as _0x528ccd,ListSeparatorView as _0x12fc9d,MenuBarMenuListItemView as _0xddc8e2,MenuBarMenuListItemButtonView as _0xd0fae4,BodyCollection as _0x49435d,Dialog as _0x368a72}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5b5ec3,DocumentCompare as _0x49fb4a,hashObject as _0xa821ed,surroundingMarkersDetector as _0x5c2db1,FOCUS_ANNOTATION_KEYSTROKE as _0x25e28a,AriaDescriptionView as _0x414b2b,setupThreadKeyboardNavigation as _0x58c0c6,trimHtml as _0x163b64,UserView as _0x114de8,LateFocusButtonView as _0x1c4684,getDateTimeFormatter as _0x25842c,getAllMarkersDomElementsSorted as _0x3ccfe5,sanitizeEditorConfig as _0x71d4}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x4ababf,ModelLiveRange as _0x7e27aa,ModelLivePosition as _0x27204c,ViewDowncastWriter as _0x3441f2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x47925d,set as _0x594cb6,isEqual as _0x4eaf57,unset as _0x56d881,omit as Pt}from'es-toolkit/compat';import{Delete as _0xa957ed,Input as _0x98a46}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x72dd8d}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x389491}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x31a038{['_enabledCommands'];constructor(_0x4e3ce5,_0x36b77c){super(_0x4e3ce5),this['_enabledCommands']=_0x36b77c,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 _0x2a5fd8 of this['editor']['commands']['commands']())_0x2a5fd8['affectsData']&&!this['_enabledCommands']['has'](_0x2a5fd8)&&_0x2a5fd8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x578956 of this['editor']['commands']['commands']())_0x578956['affectsData']&&!this['_enabledCommands']['has'](_0x578956)&&_0x578956['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x31a038{['_suggestions'];constructor(_0x2f08b5,_0x53b814){super(_0x2f08b5),this['_suggestions']=_0x53b814,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2fca63){const _0x1925e5=this['_suggestions']['get'](_0x2fca63);if(!_0x1925e5)throw new _0x3229f3('track-changes-accept-suggestion-not-found',this);const _0x528975=_0x1925e5['getRanges']();this['editor']['model']['canEditAt'](_0x528975)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1925e5);}}class D extends _0x31a038{['_suggestions'];constructor(_0x448912,_0x2013c3){super(_0x448912),this['_suggestions']=_0x2013c3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36fd16){const _0x1c383a=this['_suggestions']['get'](_0x36fd16);if(!_0x1c383a)throw new _0x3229f3('track-changes-discard-suggestion-not-found',this);const _0x1173d8=_0x1c383a['getRanges']();this['editor']['model']['canEditAt'](_0x1173d8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1c383a);}}function ls(_0x19288a,_0x2b4f16){let _0x44ecf3='';return _0x44ecf3+=_0x19288a['split']('*')['map']((_0x27a1a7,_0x2312f5)=>_0x2312f5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x27a1a7)+'</span>':rn(_0x27a1a7))['join'](''),_0x2b4f16&&(_0x44ecf3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2b4f16['value']+'\x22\x20title=\x22'+_0x2b4f16['title']+'\x22></span>'),_0x44ecf3;}function rn(_0x3f42e4){const _0x587e55=document['createElement']('span');return _0x587e55['innerText']=_0x3f42e4,_0x587e55['innerHTML'];}function ts(_0x31a39f){return _0x31a39f['sort']((_0x4710ef,_0x2ac0f4)=>'attribute'===_0x4710ef['type']&&'attribute'!==_0x2ac0f4['type']?-0x1:'attribute'!==_0x4710ef['type']&&'attribute'===_0x2ac0f4['type']?0x1:'deletion'==_0x4710ef['type']&&'deletion'!=_0x2ac0f4['type']?-0x1:'deletion'!=_0x4710ef['type']&&'deletion'==_0x2ac0f4['type']?0x1:0x0);}function to(_0x1aea1d,_0x3bacb7){let _0x41010f,_0x3ba084=0x0;const _0x106ce6=[],_0x49117d=_0x3bacb7['schema'];for(;_0x3ba084<_0x1aea1d['length'];){const _0x47cf67=_0x1aea1d[_0x3ba084],_0x553e3c=_0x1aea1d[_0x3ba084+0x1];_0x41010f||(_0x41010f=_0x3bacb7['createPositionBefore'](_0x47cf67)),cn(_0x3bacb7,_0x47cf67,_0x553e3c)||(_0x106ce6['push'](_0x3bacb7['createRange'](_0x41010f,_0x49117d['isObject'](_0x47cf67)?_0x3bacb7['createPositionAfter'](_0x47cf67):_0x3bacb7['createPositionAt'](_0x47cf67,'end'))),_0x41010f=null),_0x3ba084++;}return _0x106ce6;}function cn(_0x2db9bd,_0x5d0388,_0x85b016){if(!_0x85b016)return!0x1;const _0x3d5b88=_0x2db9bd['createPositionAfter'](_0x5d0388),_0x38ba15=_0x2db9bd['createPositionBefore'](_0x85b016);return _0x3d5b88['isTouching'](_0x38ba15);}function rs(_0x2aba4a,_0x3a230a,_0x637f68){for(;_0x637f68['length'];){const _0x389c03=_0x637f68['splice'](0x0,0x64);_0x2aba4a['change'](()=>{for(const _0x4425cf of _0x389c03)_0x4425cf['isInContent']&&_0x3a230a['execute'](_0x4425cf['id']);});}}class B extends _0x31a038{['_command'];['_suggestions'];constructor(_0x1f76b2,_0x547bf4,_0x48bd8a){super(_0x1f76b2),this['_command']=_0x547bf4,this['_suggestions']=_0x48bd8a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xbe2494=Array['from'](this['_suggestions']['values']())['some'](_0x44c034=>_0x44c034['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xbe2494;}['execute'](){const _0x1dd755=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3d5cec of _0x1dd755){const _0x35cd9b=_0x3d5cec['getRanges']();if(!this['editor']['model']['canEditAt'](_0x35cd9b))return;}rs(this['editor']['model'],this['_command'],_0x1dd755);}}class O extends _0x31a038{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x587f7,_0x400417,_0x1948df){super(_0x587f7),this['_command']=_0x400417,this['_suggestions']=_0x1948df,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14b7fb=this['editor']['model']['document']['selection'],_0x4067df=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x587a89,_0x4df331){const _0x4c76ea=Array['from'](_0x587a89['getRanges']()),_0x18eb3d=new Set();for(const _0x2338f6 of _0x4df331)if(_0x2338f6['isInContent']){for(const _0x233dc8 of _0x4c76ea)for(const _0x42532c of _0x2338f6['getRanges']())(_0x233dc8['isIntersecting'](_0x42532c)||_0x587a89['isCollapsed']&&!_0x2338f6['isMultiRange']&&_0x2338f6['next']&&_0x42532c['end']['isTouching'](_0x233dc8['start']))&&_0x18eb3d['add'](_0x2338f6);}return _0x18eb3d;}(_0x14b7fb,_0x4067df),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x10692d=ts(Array['from'](this['_selectedSuggestions']));for(const _0xbf262 of _0x10692d){const _0x2d21b9=_0xbf262['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d21b9))return;}rs(this['editor']['model'],this['_command'],_0x10692d);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x16f996(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x338ace,_0x277fd5){super(),this['id']=_0x277fd5['id'],this['type']=_0x277fd5['type'],this['subType']=_0x277fd5['subType']||null,this['author']=_0x277fd5['author'],this['creator']=_0x277fd5['creator']||_0x277fd5['author'],this['isExternal']=Boolean(_0x277fd5['attributes']&&_0x277fd5['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x277fd5['originalSuggestionId']||null,this['_model']=_0x338ace,this['_onAccept']=_0x277fd5['onAccept'],this['_onDiscard']=_0x277fd5['onDiscard'],this['_onAttributesChange']=_0x277fd5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x277fd5['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 _0x297107=this;for(;_0x297107['previous'];)_0x297107=_0x297107['previous'];return _0x297107;}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'](_0x24a980){this['_markerNames']['add'](_0x24a980);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3ee9e7=>this['_model']['markers']['get'](_0x3ee9e7))['filter'](_0x368576=>_0x368576);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x335181=>{for(const _0x41d93b of this['getMarkers']())_0x335181['removeMarker'](_0x41d93b);}),this['_markerNames']['clear']();}['removeMarker'](_0x15ae4c){this['_model']['change'](_0x3c7f43=>{_0x3c7f43['removeMarker'](_0x15ae4c);}),this['_markerNames']['delete'](_0x15ae4c);}['addRange'](_0x5f542d){const _0x2f4735='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x2f4735),this['_model']['change'](_0x48e09c=>{_0x48e09c['addMarker'](_0x2f4735,{'range':_0x5f542d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x258e07){for(const _0x31827f of this['getRanges']())if(_0x31827f['isIntersecting'](_0x258e07))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1bf6fe=>_0x1bf6fe['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x194304,_0x1647ac)=>[..._0x194304,..._0x1647ac['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x26744c=this['getRanges']();if(0x1!=_0x26744c['length'])return null;const _0x1c5e22=_0x26744c[0x0],_0x1a2b4b=_0x1c5e22['start']['nodeAfter'],_0x2ce73a=_0x1c5e22['end']['nodeBefore'];return _0x1a2b4b instanceof _0x4ababf?_0x1a2b4b!=_0x2ce73a?null:_0x1a2b4b: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 _0x23e0f8=[];let _0x56f6de=this['head'];for(;_0x56f6de;)_0x23e0f8['push'](_0x56f6de),_0x56f6de=_0x56f6de['next'];return _0x23e0f8;}['setAttribute'](_0x213bb3,_0x94b458){const _0xfedce6=_0x47925d(this['attributes']);_0x594cb6(_0xfedce6,_0x213bb3,_0x94b458),_0x4eaf57(_0xfedce6,this['attributes'])||(this['attributes']=_0xfedce6,this['_onAttributesChange'](_0xfedce6));}['removeAttribute'](_0x4ffca9){const _0x2f4931=_0x47925d(this['attributes']);_0x56d881(_0x2f4931,_0x4ffca9),_0x4eaf57(_0x2f4931,this['attributes'])||(this['attributes']=_0x2f4931,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 _0x49bc9e()['substr'](0x1,0x5);}}function o(_0x38d244,_0x3910ae,_0x5e5abd){const _0x251a05=_0x38d244['t'],t=_0x38d244['t'];switch(_0x3910ae){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',_0x5e5abd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e5abd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e5abd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e5abd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e5abd);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',_0x5e5abd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e5abd);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',_0x5e5abd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e5abd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e5abd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e5abd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e5abd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e5abd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5e5abd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e5abd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e5abd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e5abd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e5abd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e5abd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e5abd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e5abd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e5abd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e5abd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e5abd);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5e5abd);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5e5abd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e5abd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e5abd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e5abd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e5abd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e5abd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e5abd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e5abd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e5abd);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'},_0x5e5abd);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'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x5e5abd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e5abd);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5e5abd);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5e5abd);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5e5abd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5e5abd);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 _0x251a05({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5e5abd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x251a05({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5e5abd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5e5abd);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'},_0x5e5abd);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'},_0x5e5abd);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'},_0x5e5abd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3910ae;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d0d4b,_0x190fc3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d0d4b,this['_locale']=_0x190fc3;}['getDescriptions'](_0x3295a6){const _0x4f2806=[],_0x1ecfe5=new Set(),_0x4d07c6=new Set();for(let _0xd181a4=0x0;_0xd181a4<_0x3295a6['length'];_0xd181a4++){const _0x428d05=_0x3295a6[_0xd181a4];if(!_0x428d05['isInContent'])continue;const _0x147010=this['_handleCustomCallbackDescription'](_0x428d05);if(_0x147010){if(null!=_0x428d05['subType']){if(_0x1ecfe5['has'](_0x428d05['subType']))continue;_0x1ecfe5['add'](_0x428d05['subType']);}_0x4f2806['push'](_0x147010);}else{if('attribute'==_0x428d05['type']){const _0x18c775=_0x428d05['data']['key'];if(_0x4d07c6['has'](_0x18c775))continue;_0x4d07c6['add'](_0x428d05['data']['key']),_0x18c775==m?this['_handleRenameSuggestionDescription'](_0x4f2806,_0x428d05):this['_handleAttributeSuggestionDescription'](_0x4f2806,_0x428d05);continue;}'insertion'!=_0x428d05['type']&&'deletion'!=_0x428d05['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4f2806,_0x428d05,_0x3295a6[_0xd181a4+0x1]);}}return this['_resolveDescriptionItems'](_0x4f2806);}['registerDescriptionCallback'](_0x48a768){this['_customCallbacks']['push'](_0x48a768);}['registerElementLabel'](_0x49c61a,_0xae8242,_0x13aca3=_0x1b8846['normal']){'function'==typeof _0x49c61a?_0x4d13b0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49c61a,'label':_0xae8242,'priority':_0x13aca3}):this['_itemLabels']['set'](_0x49c61a,_0xae8242);}['registerAttributeLabel'](_0x3da3fa,_0xa4d0a7){this['_attributeLabels']['set'](_0x3da3fa,_0xa4d0a7);}['getItemLabel'](_0xd1cb63,_0x3866ee=0x1){let _0x1a7b99;for(const _0x1b4f28 of this['_itemLabelsCallbacks'])if(_0x1b4f28['matchingCallback'](_0xd1cb63)){_0x1a7b99=_0x1b4f28['label'];break;}return _0x1a7b99||(_0x1a7b99=this['_itemLabels']['get'](_0xd1cb63['name'])),_0x1a7b99?_0x1a7b99(_0x3866ee):0x1!==_0x3866ee?_0x3866ee+'\x20'+_0xd1cb63['name']+'s':''+_0xd1cb63['name'];}['_addDescriptionItems'](_0x36dea3,_0x124a38){const _0x3a4e78=_0x124a38['getFirstRange']()['getWalker'](),_0x5ebb18='insertion'==_0x124a38['type']?'add':'remove';for(const _0x477f8f of _0x3a4e78){const _0x55160a=_0x477f8f['item'],_0x4ba6e9=_0x36dea3[_0x36dea3['length']-0x1];if(_0x55160a['is']('$textProxy'))_0x4ba6e9&&_0x4ba6e9['type']['indexOf']('Container')>-0x1&&_0x36dea3['pop'](),_0x4ba6e9&&'text'==_0x4ba6e9['type']?_0x4ba6e9[_0x5ebb18]+=_0x55160a['data']:_0x36dea3['push']({'type':'text','add':'add'==_0x5ebb18?_0x55160a['data']:'','remove':'remove'==_0x5ebb18?_0x55160a['data']:''});else{if(this['_schema']['isObject'](_0x55160a)){const _0x2d2a1a=_0x55160a;if(_0x4ba6e9&&_0x4ba6e9['type']['indexOf']('Container')>-0x1&&_0x36dea3['pop'](),'elementEnd'==_0x477f8f['type'])continue;_0x4ba6e9&&_0x4ba6e9['type']==_0x5ebb18+'Object'&&_0x4ba6e9['element']['name']==_0x2d2a1a['name']?_0x4ba6e9['quantity']++:_0x36dea3['push']({'type':_0x5ebb18+'Object','element':_0x2d2a1a,'quantity':0x1}),_0x3a4e78['skip'](_0x3194cf=>!('elementEnd'==_0x3194cf['type']&&_0x3194cf['item']==_0x55160a));}else{if(this['_schema']['checkChild'](_0x55160a,'$text')||_0x55160a['is']('element','softBreak')){const _0x2f95e3=_0x55160a;if('add'==_0x5ebb18&&'elementStart'==_0x477f8f['type']||'remove'==_0x5ebb18&&'elementEnd'==_0x477f8f['type'])continue;if(_0x4ba6e9&&-0x1==_0x4ba6e9['type']['indexOf']('Container')){'text'==_0x4ba6e9['type']&&(_0x4ba6e9[_0x5ebb18]+='\x0a');continue;}let _0x446980;if(_0x446980='add'==_0x5ebb18?_0x2f95e3['nextSibling']&&!this['_schema']['isObject'](_0x2f95e3['nextSibling'])?_0x2f95e3['nextSibling']:null:_0x2f95e3['previousSibling']&&!this['_schema']['isObject'](_0x2f95e3['previousSibling'])?_0x2f95e3['previousSibling']:null,_0x2f95e3['isEmpty']||_0x446980&&_0x446980['isEmpty']){const _0x26e575=_0x446980&&_0x446980['isEmpty']?_0x446980:_0x2f95e3;_0x4ba6e9&&_0x4ba6e9['type']==_0x5ebb18+'EmptyContainer'&&_0x4ba6e9['element']['name']==_0x26e575['name']?_0x4ba6e9['quantity']++:_0x36dea3['push']({'type':_0x5ebb18+'EmptyContainer','element':_0x26e575,'quantity':0x1});}else _0x36dea3['push']({'type':_0x5ebb18+'Container','element':_0x2f95e3});}}}}}['_resolveDescriptionItems'](_0x171306){const _0x61d048=this['_locale'],_0x9370f3=[],_0x4733ec=[],_0x47f278=[];for(const _0x313351 of _0x171306)switch(_0x313351['type']){case'text':if(_0x313351['add']=_0x313351['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x313351['remove']=_0x313351['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x313351['add']&&''!=_0x313351['remove']){_0x9370f3['push']({'type':'replace','content':o(_0x61d048,'REPLACE_TEXT',['\x22'+_0x313351['remove']+'\x22','\x22'+_0x313351['add']+'\x22'])});continue;}if(null!=_0x313351['add']['match'](/^ +$/)){_0x9370f3['push']({'type':'insertion','content':o(_0x61d048,'*Insert:*\x20%0',o(_0x61d048,'ELEMENT_SPACE',_0x313351['add']['length']))});continue;}if(null!=_0x313351['remove']['match'](/^ +$/)){_0x9370f3['push']({'type':'deletion','content':o(_0x61d048,'*Remove:*\x20%0',o(_0x61d048,'ELEMENT_SPACE',_0x313351['remove']['length']))});continue;}if(''!=_0x313351['add']){_0x9370f3['push']({'type':'insertion','content':o(_0x61d048,'*Insert:*\x20%0','\x22'+_0x313351['add']+'\x22')});continue;}_0x9370f3['push']({'type':'deletion','content':o(_0x61d048,'*Remove:*\x20%0','\x22'+_0x313351['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x9370f3['push']({'type':'insertion','content':o(_0x61d048,'*Insert:*\x20%0',this['getItemLabel'](_0x313351['element'],_0x313351['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x9370f3['push']({'type':'deletion','content':o(_0x61d048,'*Remove:*\x20%0',this['getItemLabel'](_0x313351['element'],_0x313351['quantity']))});continue;case'addContainer':_0x9370f3['push']({'type':'insertion','content':o(_0x61d048,'*Split:*\x20%0',this['getItemLabel'](_0x313351['element'],_0x313351['quantity']))});continue;case'removeContainer':_0x9370f3['push']({'type':'deletion','content':o(_0x61d048,'*Merge:*\x20%0',this['getItemLabel'](_0x313351['element'],_0x313351['quantity']))});continue;case'addFormat':_0x4733ec['push'](_0x313351['key']);continue;case'removeFormat':_0x47f278['push'](_0x313351['key']);continue;default:_0x9370f3['push'](_0x313351);}if(_0x4733ec['length']){const _0x3b0735=_0x4733ec['map'](_0x4b7c2b=>this['_attributeLabels']['has'](_0x4b7c2b)?this['_attributeLabels']['get'](_0x4b7c2b):_0x4b7c2b)['join'](',\x20');_0x9370f3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3b0735)});}if(_0x47f278['length']){const _0x53e303=_0x47f278['map'](_0x16306c=>this['_attributeLabels']['has'](_0x16306c)?this['_attributeLabels']['get'](_0x16306c):_0x16306c)['join'](',\x20');_0x9370f3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x53e303)});}return _0x9370f3;}['_handleCustomCallbackDescription'](_0x4b50ac){for(const _0x1c2efd of this['_customCallbacks']){const _0x35cfd0=_0x1c2efd(_0x4b50ac);if(_0x35cfd0&&'type'in _0x35cfd0)return _0x35cfd0;}}['_handleAttributeSuggestionDescription'](_0x98f30,_0xd10668){const _0x409fd9=_0xd10668['data'],_0x1580a2=void 0x0===_0x409fd9['newValue']?'removeFormat':'addFormat';_0x98f30['push']({'type':_0x1580a2,'key':_0x409fd9['key']});}['_handleRenameSuggestionDescription'](_0x36ebfe,_0x35d318){_0x36ebfe['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35d318['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31368f,_0x5aaf2c,_0x32470e){if(this['_addDescriptionItems'](_0x31368f,_0x5aaf2c),_0x32470e&&_0x32470e['getFirstRange']()&&!_0x5aaf2c['getFirstRange']()['end']['isEqual'](_0x32470e['getFirstRange']()['start'])){const _0xc7c75f=_0x31368f[_0x31368f['length']-0x1],_0x470625='insertion'==_0x5aaf2c['type']?'add':'remove';_0xc7c75f&&'text'==_0xc7c75f['type']&&(_0xc7c75f[_0x470625]+='\x0a');}}}class R extends _0x21c11d{['afterInit'](){const _0x4634d2=this['editor'],_0x9efee8=_0x4634d2['plugins']['get']('TrackChangesEditing');_0x4634d2['commands']['get']('showAIAssistant')&&_0x9efee8['enableCommand']('showAIAssistant');}}class T extends _0x21c11d{['afterInit'](){const _0x2c9c6f=this['editor'],_0x4ba50c=_0x2c9c6f['plugins']['get']('TrackChangesEditing');_0x2c9c6f['commands']['get']('toggleAi')&&_0x4ba50c['enableCommand']('toggleAi');}}class E extends _0x21c11d{['afterInit'](){const _0x3481fa=this['editor'],_0x1598bd=_0x3481fa['plugins']['get']('TrackChangesEditing');_0x3481fa['commands']['get']('aiQuickAction')&&_0x1598bd['enableCommand']('aiQuickAction');}}class U extends _0x21c11d{['afterInit'](){const _0x12be4c=this['editor'],_0x5a353f=_0x12be4c['locale'];if(!_0x12be4c['plugins']['has']('AlignmentEditing'))return;const _0x41e31e=_0x12be4c['plugins']['get']('TrackChangesEditing');_0x41e31e['enableDefaultAttributesIntegration']('alignment'),_0x41e31e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a353f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b18ef=this['editor'],_0x50716e=_0x3b18ef['locale'];_0x3b18ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x288dfc=>{if('formatBlock'!=_0x288dfc['type'])return;const {data:_0x1f9e1f}=_0x288dfc;if(_0x1f9e1f&&'alignment'==_0x1f9e1f['commandName']){const _0x130efc=_0x1f9e1f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x50716e,'*Format:*\x20%0',function(_0x3f0d40){switch(_0x3f0d40){case'left':return o(_0x50716e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x50716e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x50716e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x50716e,'FORMAT_JUSTIFY_TEXT');}}(_0x130efc))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x21c11d{['afterInit'](){const _0x118cc0=this['editor'],_0xb832e4=_0x118cc0['plugins']['get']('TrackChangesEditing'),_0x4184f7=_0x118cc0['locale'];for(const _0x2d2096 of ti){if(!_0x118cc0['plugins']['has'](_0x2d2096))continue;const _0x35d61f=_0x2d2096['slice'](0x0,-0x7)['toLowerCase'](),_0x30c790='FORMAT_'+_0x35d61f['toUpperCase']();_0xb832e4['enableDefaultAttributesIntegration'](_0x35d61f),_0xb832e4['descriptionFactory']['registerAttributeLabel'](_0x35d61f,o(_0x4184f7,_0x30c790));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb34478=this['editor'],_0x44e3f5=_0xb34478['locale'],_0x12ece9=_0xb34478['plugins']['get']('TrackChangesEditing');function _0x5a0989(_0x54e2fa,_0x385d6c){_0x12ece9['descriptionFactory']['registerDescriptionCallback'](_0x440e40=>{if('formatInline'!=_0x440e40['type'])return;const {data:_0x31b579}=_0x440e40;return _0x31b579&&_0x31b579['commandName']===_0x54e2fa?_0x31b579['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44e3f5,'*Format:*\x20%0',_0x385d6c)}:{'type':'format','content':o(_0x44e3f5,'*Remove\x20format:*\x20%0',_0x385d6c)}:void 0x0;});}_0x5a0989('bold',o(_0x44e3f5,'FORMAT_BOLD')),_0x5a0989('italic',o(_0x44e3f5,'FORMAT_ITALIC')),_0x5a0989('underline',o(_0x44e3f5,'FORMAT_UNDERLINE')),_0x5a0989('code',o(_0x44e3f5,'FORMAT_CODE')),_0x5a0989('strikethrough',o(_0x44e3f5,'FORMAT_STRIKETHROUGH')),_0x5a0989('subscript',o(_0x44e3f5,'FORMAT_SUBSCRIPT')),_0x5a0989('superscript',o(_0x44e3f5,'FORMAT_SUPERSCRIPT'));}}class F extends _0x21c11d{['afterInit'](){const _0x462f4a=this['editor'],_0x32158a=_0x462f4a['locale'];if(!_0x462f4a['plugins']['has']('BlockQuoteEditing'))return;const _0x598383=_0x462f4a['plugins']['get']('TrackChangesEditing'),_0x81f728=this['editor']['commands']['get']('blockQuote');_0x598383['enableCommand']('blockQuote',(_0x13aee8,_0x480bba={})=>{const _0x2ce62a=this['editor']['model']['document']['selection'],_0x2aaf75=_0x480bba&&void 0x0!==_0x480bba['forceValue']?_0x480bba['forceValue']:!_0x81f728['value'];let _0x569202=[];if(_0x2aaf75){const _0x35df84=Array['from'](_0x2ce62a['getSelectedBlocks']())['filter'](_0x338efd=>oo(_0x338efd)||function(_0x551652,_0x29cc20){const _0xd1057a=_0x29cc20['checkChild'](_0x551652['parent'],'blockQuote'),_0x4afaa5=_0x29cc20['checkChild'](['$root','blockQuote'],_0x551652);return _0xd1057a&&_0x4afaa5;}(_0x338efd,this['editor']['model']['schema']));_0x569202=to(_0x35df84,_0x462f4a['model']);}else{const _0x48e3bc=Array['from'](_0x2ce62a['getSelectedBlocks']())['filter'](_0x560cea=>oo(_0x560cea));_0x569202=to(_0x48e3bc,_0x462f4a['model']);}_0x462f4a['model']['change'](()=>{for(const _0x20ab1f of _0x569202)_0x598383['markBlockFormat'](_0x20ab1f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2aaf75}]});});}),_0x598383['descriptionFactory']['registerDescriptionCallback'](_0x5a890b=>{const {data:_0x201bf7}=_0x5a890b;if(_0x201bf7&&'blockQuote'==_0x201bf7['commandName']){const _0xe662df=o(_0x32158a,'ELEMENT_BLOCK_QUOTE');return _0x201bf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32158a,'*Set\x20format:*\x20%0',_0xe662df)}:{'type':'format','content':o(_0x32158a,'*Remove\x20format:*\x20%0',_0xe662df)};}});}}function oo(_0x401ee1){return'blockQuote'==_0x401ee1['parent']['name'];}class G extends _0x21c11d{['afterInit'](){const _0x17a0f7=this['editor'],_0x415cb7=_0x17a0f7['locale'],_0x3e6169=_0x17a0f7['plugins']['get']('TrackChangesEditing');_0x17a0f7['plugins']['has']('BookmarkEditing')&&(_0x3e6169['enableCommand']('insertBookmark'),_0x3e6169['enableDefaultAttributesIntegration']('updateBookmark'),_0x3e6169['descriptionFactory']['registerDescriptionCallback'](_0x2aa816=>{if('insertion'!=_0x2aa816['type']&&'deletion'!=_0x2aa816['type']&&'attribute'!=_0x2aa816['type'])return;const _0x6840b0=_0x2aa816['getContainedElement']();if(null==_0x6840b0)return;if(!_0x6840b0['is']('element','bookmark'))return;const _0x3396a0=_0x6840b0['getAttribute']('bookmarkId');if('insertion'==_0x2aa816['type'])return{'type':'insertion','content':o(_0x415cb7,'*Insert:*\x20%0','\x22'+_0x3396a0+'\x22\x20'+o(_0x415cb7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2aa816['type'])return{'type':'deletion','content':o(_0x415cb7,'*Remove:*\x20%0','\x22'+_0x3396a0+'\x22\x20'+o(_0x415cb7,'ELEMENT_BOOKMARK'))};const {data:_0x2bdff0}=_0x2aa816;if(!_0x2bdff0||'bookmarkId'!=_0x2bdff0['key'])return;return{'type':'format','content':o(_0x415cb7,'*Set\x20bookmark:*\x20%0','\x22'+_0x2bdff0['newValue']+'\x22')};}));}}class L extends _0x21c11d{['afterInit'](){const _0x1916e4=this['editor'];_0x1916e4['plugins']['has']('CaseChange')&&(_0x1916e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1916e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1916e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x21c11d{['afterInit'](){const _0x252c8f=this['editor'];_0x252c8f['commands']['get']('ckbox')&&_0x252c8f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x21c11d{['afterInit'](){const _0x4f21a6=this['editor'];if(!_0x4f21a6['plugins']['has']('CodeBlock'))return;const _0xc5d92b=_0x4f21a6['plugins']['get']('TrackChangesEditing'),_0x31501=_0x4f21a6['locale'],_0x3eae01=_0x4f21a6['config']['get']('codeBlock')['languages'],_0x46b940=_0x4f21a6['commands']['get']('codeBlock');_0xc5d92b['enableCommand']('indentCodeBlock'),_0xc5d92b['enableCommand']('outdentCodeBlock'),_0xc5d92b['enableCommand']('codeBlock',(_0x3eff5e,_0x523805={})=>{const _0x6be730=_0x4f21a6['model'],_0x19df29=_0x4f21a6['model']['document']['selection'],_0x4d596d=_0x523805&&void 0x0!==_0x523805['forceValue']?_0x523805['forceValue']:!_0x46b940['value'];let _0x1f38fb;_0x523805['language']||(_0x523805['language']=_0x3eae01[0x0]['language']),_0x1f38fb=_0x4d596d?Array['from'](_0x19df29['getSelectedBlocks']())['filter'](_0x697bdc=>co(_0x697bdc)||function(_0x347cc4,_0x59ed0a){if(_0x347cc4['is']('rootElement')||_0x59ed0a['isLimit'](_0x347cc4))return!0x1;return _0x59ed0a['checkChild'](_0x347cc4['parent'],'codeBlock');}(_0x697bdc,_0x6be730['schema'])):Array['from'](_0x19df29['getSelectedBlocks']())['filter'](_0x58ccdc=>co(_0x58ccdc));const _0x1ee026=to(_0x1f38fb,_0x6be730);_0x6be730['change'](()=>{for(const _0x5bfb5c of _0x1ee026)_0xc5d92b['markBlockFormat'](_0x5bfb5c,{'commandName':'codeBlock','commandParams':[{..._0x523805,'forceValue':_0x4d596d}],'formatGroupId':'blockName'});});}),(_0xc5d92b['descriptionFactory']['registerElementLabel']('codeBlock',_0x594ca2=>o(_0x31501,'ELEMENT_CODE_BLOCK',_0x594ca2)),_0xc5d92b['descriptionFactory']['registerDescriptionCallback'](_0x3c885f=>{if('formatBlock'!=_0x3c885f['type'])return;const _0x5814a7=_0x31501['t'],{data:_0x98e362}=_0x3c885f;if(!_0x98e362||'codeBlock'!=_0x98e362['commandName'])return;const _0x17fd45=_0x98e362['commandParams'][0x0]['language'],_0x1c229b=_0x5814a7(_0x3eae01['find'](_0x5c6f1b=>_0x5c6f1b['language']===_0x17fd45)['label'])['toLowerCase']();return _0x98e362['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31501,'*Set\x20format:*\x20%0',o(_0x31501,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1c229b+')')}:{'type':'format','content':o(_0x31501,'*Remove\x20format:*\x20%0',o(_0x31501,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x504ea1){return'codeBlock'==_0x504ea1['name'];}class z extends _0x21c11d{['afterInit'](){const _0x3fa6d8=this['editor'];if(!_0x3fa6d8['plugins']['has']('CommentsEditing'))return;_0x3fa6d8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x21c11d{static get['requires'](){return[_0xa957ed];}['init'](){const _0x457ba2=this['editor'],_0x1722dd=_0x457ba2['plugins']['get']('TrackChangesEditing');_0x1722dd['enableCommand']('delete');const _0x13667f=_0x457ba2['commands']['get']('deleteForward');_0x1722dd['enableCommand']('deleteForward',(_0x416f99,_0x46cbbe={})=>{const _0x415b15=_0x457ba2['model']['createSelection'](_0x457ba2['model']['document']['selection']);_0x415b15['isCollapsed']&&_0x457ba2['model']['modifySelection'](_0x415b15,{'direction':'forward','unit':_0x46cbbe['unit']});const _0x201cd0=_0x415b15['getFirstRange'](),_0x32529e=_0x7e27aa['fromRange'](_0x201cd0);let _0x331fda;_0x416f99(_0x46cbbe),_0x331fda='$graveyard'==_0x32529e['root']['rootName']?_0x457ba2['model']['createRange'](_0x201cd0['start']):_0x457ba2['model']['createRange'](_0x32529e['start'],_0x32529e['end']),_0x32529e['detach'](),_0x457ba2['model']['enqueueChange'](_0x13667f['buffer']['batch'],_0x64e5ca=>{_0x13667f['buffer']['lock'](),_0x64e5ca['setSelection'](_0x64e5ca['createRange'](_0x331fda['end'])),_0x13667f['buffer']['unlock']();});});}}class W extends _0x21c11d{['afterInit'](){const _0x300781=this['editor'];if(!_0x300781['plugins']['has']('ListEditing'))return;const _0x50ea01=_0x300781['locale'],_0x5b1627=_0x300781['plugins']['get']('TrackChangesEditing'),_0x476527=_0x300781['plugins']['has']('TodoListEditing'),_0x1096ca=!!_0x300781['config']['get']('list.multiBlock');function _0x573665(_0x868360){return{'type':'format','content':''+o(_0x50ea01,'*Set\x20format:*\x20%0',_0x868360)};}function _0x3ad612(_0x3a09ff){return{'type':'format','content':''+o(_0x50ea01,'*Remove\x20format:*\x20%0',_0x3a09ff)};}_0x5b1627['enableDefaultAttributesIntegration']('numberedList'),_0x5b1627['enableDefaultAttributesIntegration']('bulletedList'),_0x5b1627['enableDefaultAttributesIntegration']('customNumberedList'),_0x5b1627['enableDefaultAttributesIntegration']('customBulletedList'),_0x5b1627['enableDefaultAttributesIntegration']('indentList'),_0x5b1627['enableDefaultAttributesIntegration']('outdentList'),_0x5b1627['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5b1627['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1096ca&&(_0x5b1627['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5b1627['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x476527&&(_0x5b1627['enableDefaultAttributesIntegration']('todoList'),_0x5b1627['enableDefaultAttributesIntegration']('checkTodoList'),_0x5b1627['descriptionFactory']['registerDescriptionCallback'](_0xcd7a70=>{const {data:_0x3254de}=_0xcd7a70;if(_0x3254de&&'todoListChecked'==_0x3254de['key'])return{'type':'format','content':_0x3254de['newValue']?o(_0x50ea01,'*Check\x20item*'):o(_0x50ea01,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xae5f63=>{if(_0xae5f63['batch']['isUndo'])return!0x1;let _0x4f2ba7=!0x1;const _0x50065f=_0x5b1627['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x183e36=>'todoListChecked'===_0x5b1627['_getAttributeKey'](_0x183e36));for(const _0x3ed67c of _0x50065f){'todo'!=_0x3ed67c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5b1627['_findSuggestions'](_0x3ed67c['getFirstRange'](),'attribute')['find'](_0x12cd16=>'listType'===_0x5b1627['_getAttributeKey'](_0x12cd16['suggestion']))||(_0xae5f63['removeMarker'](_0x3ed67c['getFirstMarker']()),_0x4f2ba7=!0x0));}return _0x4f2ba7;})),_0x5b1627['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x50ea01,'FORMAT_INDENT'));const _0x311dc2={'type':'format','content':''};_0x5b1627['descriptionFactory']['registerDescriptionCallback'](_0x5e7359=>{const {data:_0xa9e67b}=_0x5e7359;if(!_0xa9e67b||'listType'!=_0xa9e67b['key'])return;let _0x2fef07=_0x5e7359['head'];for(;_0x2fef07;){if(_0x2fef07['data']&&(('listStyle'==_0x2fef07['data']['key']||'listMarkerStyle'==_0x2fef07['data']['key'])&&(_0x2fef07['data']['newValue']&&'default'!=_0x2fef07['data']['newValue']||'default'!=_0x2fef07['data']['oldValue']&&!_0xa9e67b['newValue'])||!_0x1096ca&&_0x2fef07['data']['key']==m))return _0x311dc2;_0x2fef07=_0x2fef07['next'];}if(null==_0xa9e67b['newValue'])switch(_0xa9e67b['oldValue']){case'bulleted':return _0x3ad612(o(_0x50ea01,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ad612(o(_0x50ea01,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ad612(o(_0x50ea01,'ELEMENT_TODO_LIST'));}switch(_0xa9e67b['newValue']){case'bulleted':return _0x573665(o(_0x50ea01,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x573665(o(_0x50ea01,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x573665(o(_0x50ea01,'ELEMENT_TODO_LIST'));}}),_0x5b1627['descriptionFactory']['registerDescriptionCallback'](_0x187638=>{const {data:_0x541989}=_0x187638;if(_0x541989&&'listIndent'==_0x541989['key'])return null==_0x541989['newValue']||null==_0x541989['oldValue']&&0x0==_0x541989['newValue']?_0x311dc2:void 0x0;}),_0x5b1627['descriptionFactory']['registerDescriptionCallback'](_0x2d05a9=>{if('attribute'!=_0x2d05a9['type'])return;const {data:_0x6d82bb}=_0x2d05a9;if(!_0x6d82bb||'listItemId'!=_0x6d82bb['key'])return;const _0x1f75a4=Te(_0x2d05a9);return'newValue'==_0x1f75a4?{'type':'format','content':o(_0x50ea01,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1f75a4?{'type':'format','content':o(_0x50ea01,'*Split:*\x20list\x20item')}:_0x311dc2;}),_0x300781['model']['document']['registerPostFixer'](_0x1dc619=>this['listItemIdFixer'](_0x1dc619)),_0x300781['model']['document']['registerPostFixer'](_0x4185cb=>this['noTrackChangesFixer'](_0x4185cb)),_0x300781['model']['document']['on']('change:data',(_0x83cd97,_0x41b760)=>{if(_0x41b760['isUndo']||!_0x41b760['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xd4be2a){if(_0xd4be2a['batch']['isUndo']||!_0xd4be2a['batch']['isLocal'])return!0x1;let _0x404724=!0x1;const _0x293b91=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a806b=>_0x4a806b['data']&&'listItemId'==_0x4a806b['data']['key'])['filter'](_0x4124ce=>_0x4124ce['data']['newValue']&&_0x4124ce['data']['oldValue']);for(const _0x96c183 of _0x293b91)Te(_0x96c183)||(_0xd4be2a['removeMarker'](_0x96c183['getFirstMarker']()),_0x404724=!0x0);return _0x404724;}['noTrackChangesFixer'](_0x3ad896){if(_0x3ad896['batch']['isUndo']||!_0x3ad896['batch']['isLocal'])return!0x1;const _0x2d134d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d134d['trackChangesCommand']['value'])return!0x1;let _0x11e1a5=!0x1;const _0x499235=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x438313=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4cd167=>'attribute'==_0x4cd167['type'])['filter'](_0x58aa5e=>_0x499235['includes'](_0x58aa5e['attributeKey']));if(0x0==_0x438313['length'])return _0x11e1a5;for(const _0x4ebec5 of _0x438313){const _0x4fa17d=_0x2d134d['_findSuggestions'](_0x4ebec5['range'],'attribute')['filter'](_0x4705fe=>!_0x4705fe['meta']['isNextTo'])['map'](_0xc0bf4b=>_0xc0bf4b['suggestion'])['filter'](_0x1a4b85=>{const _0x544cec=_0x2d134d['_getAttributeKey'](_0x1a4b85);return _0x499235['includes'](_0x544cec);});if(_0x4fa17d['length']){for(const _0x101bd4 of _0x4fa17d)_0x3ad896['removeMarker'](_0x101bd4['getFirstMarker']());_0x11e1a5=!0x0;}}return _0x11e1a5;}['assureChains'](){const _0x208aa6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3393d6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1c3174;const _0x4db897=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x213cbb=>{if(_0x213cbb['data']['oldRange']||!_0x213cbb['data']['newRange'])return null;if(!_0x213cbb['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x29ab41}=_0x208aa6['_splitMarkerName'](_0x213cbb['name']);if(!_0x208aa6['hasSuggestion'](_0x29ab41))return null;const _0xfaeb0c=_0x208aa6['getSuggestion'](_0x29ab41);return _0x3393d6['includes'](_0xfaeb0c['data']['key']);})['map'](_0x358c69=>{const {id:_0x3cecc3}=_0x208aa6['_splitMarkerName'](_0x358c69['name']),_0x360064=_0x208aa6['getSuggestion'](_0x3cecc3);return _0x1c3174=_0x360064['attributes']['groupId'],_0x360064['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4db897['size'])return;const _0x1bb471=_0x208aa6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e23a0=>'attribute'==_0x2e23a0['type']&&_0x2e23a0['data']&&_0x3393d6['includes'](_0x2e23a0['data']['key'])&&_0x2e23a0['attributes']['groupId']!=_0x1c3174)['map'](_0x355707=>({'listItem':_0x355707['getFirstRange']()['start']['nodeAfter'],'groupId':_0x355707['attributes']['groupId']})),_0x3e8092=new Set();for(const {groupId:_0x3226b1,listItem:_0x297749}of _0x1bb471)_0x4db897['has'](_0x297749)&&_0x3e8092['add'](_0x3226b1);for(const _0x1ef5cd of _0x208aa6['getSuggestions']())_0x3e8092['has'](_0x1ef5cd['attributes']['groupId'])&&_0x1ef5cd['setAttribute']('groupId',_0x1c3174);}['_supportLegacySuggestions'](){const _0x332bbf=this['editor'],_0x1d4241=_0x332bbf['locale'],_0x4d6beb=_0x332bbf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4d6beb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xa32570,_0x29964d){const _0x341cb8=[];for(let _0x2355ff of _0xa32570)_0x2355ff['start']['nodeAfter']===_0x2355ff['end']['parent']&&(_0x2355ff=_0x332bbf['model']['createRange'](_0x332bbf['model']['createPositionAt'](_0x2355ff['start']['nodeAfter'],0x0))),_0x341cb8['push'](_0x2355ff);_0x332bbf['model']['change'](_0x3521e9=>{const _0x39e4f8=_0x332bbf['model']['document']['selection'],_0x48677a=Array['from'](_0x39e4f8['getRanges']())['map'](_0x43d457=>_0x7e27aa['fromRange'](_0x43d457));_0x3521e9['setSelection'](_0x341cb8),_0x332bbf['commands']['get'](_0x29964d['commandName'])['refresh'](),_0x29964d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x332bbf['execute'](_0x29964d['commandName'],..._0x29964d['commandParams']),_0x3521e9['setSelection'](_0x48677a);for(const _0x41192b of _0x48677a)_0x41192b['detach']();});}),_0x4d6beb['descriptionFactory']['registerElementLabel'](function(_0x5df56e){const _0x4ba1c7=!_0x332bbf['model']['schema']['isObject'](_0x5df56e),_0x281104=_0x5df56e['previousSibling'],_0x4c88c8=_0x5df56e['nextSibling'],_0x10da02=_0x5df56e['getAttribute']('listItemId'),_0x1c283f=!_0x281104||_0x281104['getAttribute']('listItemId')!==_0x10da02,_0x2a60a0=!_0x4c88c8||_0x4c88c8['getAttribute']('listItemId')!==_0x10da02;return _0x4ba1c7&&Boolean(_0x10da02)&&_0x1c283f&&_0x2a60a0;},_0x597905=>o(_0x1d4241,'ELEMENT_LIST_ITEM',_0x597905));}['_registerLegacyDescription'](){const _0x1e96b0=this['editor'],_0xd36d57=_0x1e96b0['locale'];function _0x187178(_0x3ea415){const _0x4fb4f1=_0x1e96b0['commands']['get']('bulletedList')['value'],_0x48037d=_0x1e96b0['commands']['get']('numberedList')['value'];return'numberedList'===_0x3ea415?_0x4fb4f1:_0x48037d;}_0x1e96b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4787b0){if('formatBlock'!=_0x4787b0['type'])return;const {data:_0x496c05}=_0x4787b0;if(!_0x496c05)return;let _0x41722f,_0x15158b,_0x216c71,_0x1983cb;switch(_0x496c05['commandName']){case'bulletedList':_0x216c71=_0x496c05['commandParams'][0x0]['forceValue'],_0x1983cb=_0x187178(_0x496c05['commandName']),_0x41722f=_0x216c71?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1983cb&&_0x1e96b0['config']['get']('list.multiBlock')||(_0x41722f='*Change\x20to:*\x20%0'),_0x15158b={'type':'format','content':o(_0xd36d57,_0x41722f,o(_0xd36d57,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x216c71=_0x496c05['commandParams'][0x0]['forceValue'],_0x1983cb=_0x187178(_0x496c05['commandName']),_0x41722f=_0x216c71?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1983cb&&_0x1e96b0['config']['get']('list.multiBlock')||(_0x41722f='*Change\x20to:*\x20%0'),_0x15158b={'type':'format','content':o(_0xd36d57,_0x41722f,o(_0xd36d57,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x41722f='*Indent:*\x20%0',_0x15158b={'type':'format','content':o(_0xd36d57,_0x41722f,o(_0xd36d57,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x41722f=function(_0x3898eb){const _0x3232f2=_0x3898eb['getFirstRange']();let _0x5467ed=_0x3232f2['start']['nodeAfter'];for(;_0x5467ed&&_0x3232f2['containsItem'](_0x5467ed);){if(_0x5467ed['getAttribute']('listIndent')>0x0)return!0x1;_0x5467ed=_0x5467ed['nextSibling'];}return!0x0;}(_0x4787b0)?o(_0xd36d57,'*Format:*\x20remove\x20from\x20%0',o(_0xd36d57,function(_0x37cbc9){return'ELEMENT_'+_0x37cbc9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4787b0))):o(_0xd36d57,'*Outdent:*\x20%0',o(_0xd36d57,'ELEMENT_LIST_ITEM')),_0x15158b={'type':'format','content':_0x41722f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x496c05['multipleBlocks']&&(_0x41722f='*Merge:*\x20%0',_0x15158b={'type':'deletion','content':o(_0xd36d57,_0x41722f,o(_0xd36d57,'ELEMENT_LIST_ITEM'))});}return _0x15158b;});}}function Te(_0x2eab6b){let _0x594925=_0x2eab6b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x594925;){const _0x28c98a=_0x594925['getAttribute']('listItemId');if(!_0x28c98a)return!0x1;if(_0x28c98a==_0x2eab6b['data']['newValue'])return'newValue';if(_0x28c98a==_0x2eab6b['data']['oldValue'])return'oldValue';_0x594925=_0x594925['previousSibling'];}return!0x1;}class H extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xad5487=this['editor']['config']['get']('list.properties'),_0x5e683a=this['editor']['plugins']['get']('TrackChangesEditing');_0xad5487['styles']&&_0x5e683a['enableDefaultAttributesIntegration']('listStyle'),_0xad5487['reversed']&&_0x5e683a['enableDefaultAttributesIntegration']('listReversed'),_0xad5487['startIndex']&&_0x5e683a['enableDefaultAttributesIntegration']('listStart');const _0x514371={'type':'format','content':''};_0x5e683a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5bca05=this['editor']['locale'];_0x5e683a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5bca05,'FORMAT_LIST_REVERSED')),_0x5e683a['descriptionFactory']['registerDescriptionCallback'](_0x21ae72=>{const {data:_0x4f52c5}=_0x21ae72;if(_0x4f52c5&&'listReversed'==_0x4f52c5['key'])return null==_0x4f52c5['newValue']||0x0==_0x4f52c5['newValue']&&null==_0x4f52c5['oldValue']?_0x514371:void 0x0;}),_0x5e683a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5bca05,'FORMAT_LIST_START')),_0x5e683a['descriptionFactory']['registerDescriptionCallback'](_0x45d759=>{const {data:_0x2c7f30}=_0x45d759;if(_0x2c7f30&&'listStart'==_0x2c7f30['key'])return null==_0x2c7f30['newValue']||0x1==_0x2c7f30['newValue']&&null==_0x2c7f30['oldValue']?_0x514371:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a85ea=>{if(_0x1a85ea['batch']['isUndo'])return!0x1;let _0x4d9607=!0x1;const _0x46a33f=_0x5e683a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x539457=>{const _0x5a75a3=_0x5e683a['_getAttributeKey'](_0x539457);return'listStart'==_0x5a75a3||'listReversed'==_0x5a75a3;});for(const _0xc33224 of _0x46a33f){const _0x754a5b=_0xc33224['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x754a5b||'customNumbered'==_0x754a5b)continue;_0x5e683a['_findSuggestions'](_0xc33224['getFirstRange'](),'attribute')['find'](_0x35fdc6=>'listType'==_0x5e683a['_getAttributeKey'](_0x35fdc6['suggestion']))||(_0x1a85ea['removeMarker'](_0xc33224['getFirstMarker']()),_0x4d9607=!0x0);}return _0x4d9607;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x122d7e){const _0x1616f6=this['editor']['locale'],{data:_0x456cdd}=_0x122d7e,_0x3a276f={'type':'format','content':''};if(!_0x456cdd||'listStyle'!=_0x456cdd['key'])return;if(!_0x456cdd['oldValue'])return'default'==_0x456cdd['newValue']?_0x3a276f:{'type':'format','content':''+o(_0x1616f6,'*Set\x20format:*\x20%0',o(_0x1616f6,this['_getTranslationKeyForListStyle'](_0x456cdd['newValue'])))};if(!_0x456cdd['newValue']){if('default'==_0x456cdd['oldValue'])return _0x3a276f;let _0xf6ac28=_0x122d7e['head'];for(;_0xf6ac28;){if(_0xf6ac28['data']&&'listType'==_0xf6ac28['data']['key']&&_0xf6ac28['data']['newValue'])return _0x3a276f;_0xf6ac28=_0xf6ac28['next'];}return{'type':'format','content':''+o(_0x1616f6,'*Remove\x20format:*\x20%0',o(_0x1616f6,this['_getTranslationKeyForListStyle'](_0x456cdd['oldValue'])))};}if('default'!=_0x456cdd['newValue'])return{'type':'format','content':''+o(_0x1616f6,'*Set\x20format:*\x20%0',o(_0x1616f6,this['_getTranslationKeyForListStyle'](_0x456cdd['newValue'])))};let _0x5d2253=_0x122d7e['head'];for(;_0x5d2253;){if(_0x5d2253['data']&&'listType'==_0x5d2253['data']['key']&&_0x5d2253['data']['newValue']&&_0x5d2253['data']['oldValue'])return _0x3a276f;_0x5d2253=_0x5d2253['next'];}return{'type':'format','content':o(_0x1616f6,'*Set\x20format:*\x20%0',o(_0x1616f6,'ELEMENT_'+_0x122d7e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x12f21a=this['editor'],_0xb9a369=_0x12f21a['locale'];_0x12f21a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x316077=>{if('formatBlock'!=_0x316077['type'])return;const {data:_0x5568b6}=_0x316077;if(!_0x5568b6)return;let _0x4b62de,_0x2162cf;switch(_0x5568b6['commandName']){case'listStyle':_0x4b62de='*Change\x20to:*\x20%0',_0x2162cf={'type':'format','content':o(_0xb9a369,_0x4b62de,o(_0xb9a369,this['_getTranslationKeyForListStyle'](_0x5568b6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b62de=_0x5568b6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2162cf={'type':'format','content':o(_0xb9a369,_0x4b62de)};break;case'listStart':_0x4b62de='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2162cf={'type':'format','content':o(_0xb9a369,_0x4b62de,_0x5568b6['commandParams'][0x0]['startIndex'])};}return _0x2162cf;});}['_getTranslationKeyForListStyle'](_0x5173f7){return'ELEMENT_'+function(_0x429a6c){if(ye['includes'](_0x429a6c))return'bulleted';if(Se['includes'](_0x429a6c))return'numbered';return null;}(_0x5173f7)['toUpperCase']()+'_LIST_'+_0x5173f7['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x21c11d{['afterInit'](){const _0x7364ab=this['editor'];_0x7364ab['commands']['get']('emoji')&&_0x7364ab['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x21c11d{static get['requires'](){return[_0x72dd8d];}['init'](){const _0x17a87b=this['editor'],_0x4db917=_0x17a87b['plugins']['get']('TrackChangesEditing'),_0x4850d9=_0x17a87b['commands']['get']('enter');_0x4db917['enableCommand']('enter',()=>{_0x17a87b['model']['change'](_0x20a6dd=>{const _0x23be68=_0x17a87b['model']['document']['selection'],_0x3ee6cc=_0x23be68['getFirstPosition'](),_0x5ef86a=_0x7e27aa['fromRange'](_0x23be68['getFirstRange']());if(_0x4850d9['enterBlock'](_0x20a6dd)){const _0xd104d4=_0x17a87b['model']['createPositionAt'](_0x3ee6cc['parent']['nextSibling'],0x0),_0x58f4e1=_0x20a6dd['createRange'](_0x3ee6cc,_0xd104d4);_0x4db917['markInsertion'](_0x58f4e1);}else _0x20a6dd['setSelection'](_0x20a6dd['createRange'](_0x5ef86a['end']));_0x5ef86a['detach'](),_0x4850d9['fire']('afterExecute',{'writer':_0x20a6dd});});});}}class Y extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xd94088=this['editor']['plugins']['get']('TrackChangesEditing');_0xd94088['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xd94088['enableCommand']('findNext'),_0xd94088['enableCommand']('findPrevious'),_0xd94088['enableCommand']('replace'),_0xd94088['enableCommand']('replaceAll');}['handleFindCommand'](_0x294bb8,_0x56ad6f,_0x1b53e8={}){const _0x4c22af=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x294bb8(_0x41d2ad=>{let _0x5a9fd8=('string'==typeof _0x56ad6f?_0x4c22af['findByTextCallback'](_0x56ad6f,_0x1b53e8):_0x56ad6f)(_0x41d2ad);Array['isArray'](_0x5a9fd8)&&(_0x5a9fd8={'results':_0x5a9fd8,'searchText':'string'==typeof _0x56ad6f?_0x56ad6f:''});const _0x2621ea=_0x5a9fd8['results']['filter'](_0xfca3b3=>!0x1===this['_isInDeletionRange'](_0xfca3b3,_0x41d2ad['item']));return{..._0x5a9fd8,'results':_0x2621ea};},_0x1b53e8);}['_isInDeletionRange'](_0x60db5c,_0x13e6e9){const _0x335c26=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x13e6e9,_0x60db5c['start']),this['editor']['model']['createPositionAt'](_0x13e6e9,_0x60db5c['end']));for(const _0x5e6990 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x335c26['getIntersection'](_0x5e6990['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x21c11d{['afterInit'](){const _0xdb6803=this['editor']['locale'],_0x1774e4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xccb381,commandName:_0x2cb962}of eo)this['editor']['plugins']['has'](_0xccb381)&&_0x1774e4['enableDefaultAttributesIntegration'](_0x2cb962);_0x1774e4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xdb6803,'FORMAT_FONT_SIZE')),_0x1774e4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xdb6803,'FORMAT_FONT_FAMILY')),_0x1774e4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xdb6803,'FORMAT_FONT_COLOR')),_0x1774e4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xdb6803,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c2d7=this['editor'],_0x3ba41d=_0x3c2d7['locale'];_0x3c2d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54fbfb=>{const _0x3e8ccf=_0x3ba41d['t'];if('formatInline'!=_0x54fbfb['type'])return;const {data:_0x5b47fa}=_0x54fbfb;if(null!=_0x5b47fa){if('fontSize'==_0x5b47fa['commandName']){const _0x1c6e55=_0x5b47fa['commandParams'][0x0]['value'];if(_0x1c6e55){const _0x49b3bf=_0x3e8ccf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe9eec=>_0xe9eec['model']==_0x1c6e55)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3ba41d,'*Set\x20font\x20size:*\x20%0',_0x49b3bf)};}return{'type':'format','content':o(_0x3ba41d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5b47fa['commandName']){const _0x393624=_0x5b47fa['commandParams'][0x0]['value'];return _0x393624?{'type':'format','content':o(_0x3ba41d,'*Set\x20font\x20family:*\x20%0',_0x393624)}:{'type':'format','content':o(_0x3ba41d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5b47fa['commandName']){const _0x464753=_0x5b47fa['commandParams'][0x0]['value'];if(_0x464753){const _0x97a3e6=_0x260430(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f371f=>_0x5f371f['model']==_0x464753);let _0x219239=_0x464753,_0x188dd0='';return _0x97a3e6&&(_0x219239=_0x97a3e6['label'],_0x188dd0=_0x3e8ccf(_0x219239)['toLowerCase']()),{'type':'format','content':o(_0x3ba41d,'*Set\x20font\x20color:*\x20%0',_0x188dd0)['trim'](),'color':{'value':_0x464753,'title':_0x188dd0||_0x219239}};}return{'type':'format','content':o(_0x3ba41d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5b47fa['commandName']){const _0x3006bb=_0x5b47fa['commandParams'][0x0]['value'];if(_0x3006bb){const _0x4047e8=_0x260430(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x148548=>_0x148548['model']==_0x3006bb);let _0x453678=_0x3006bb,_0x27ec2b='';return _0x4047e8&&(_0x453678=_0x4047e8['label'],_0x27ec2b=_0x3e8ccf(_0x453678)['toLowerCase']()),{'type':'format','content':o(_0x3ba41d,'*Set\x20font\x20background\x20color:*\x20%0',_0x27ec2b)['trim'](),'color':{'value':_0x3006bb,'title':_0x27ec2b||_0x453678}};}return{'type':'format','content':o(_0x3ba41d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x21c11d{['afterInit'](){const {plugins:_0x56e56b}=this['editor'];_0x56e56b['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x56e56b['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x381a64,plugins:_0x5e1ef5,commands:_0x478216}=this['editor'],_0x239641=_0x5e1ef5['get']('TrackChangesEditing');_0x478216['get']('footnotesStyle')&&_0x239641['enableDefaultAttributesIntegration']('footnotesStyle'),_0x478216['get']('footnotesStart')&&_0x239641['enableDefaultAttributesIntegration']('footnotesStart'),_0x239641['registerBlockAttribute']('footnotesListStyle'),_0x239641['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x381a64,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x239641['registerBlockAttribute']('footnotesListStart'),_0x239641['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x381a64,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x327495=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x433172,commands:_0x53f7bc}=this['editor'];_0x53f7bc['get']('insertFootnote')&&_0x327495['enableCommand']('insertFootnote'),_0x327495['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1f3c07=>o(_0x433172,'ELEMENT_FOOTNOTE_REF',_0x1f3c07)),_0x327495['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1fdd24=>o(_0x433172,'ELEMENT_FOOTNOTE_DEFINITION',_0x1fdd24)),_0x327495['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3604dd=>o(_0x433172,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3604dd));}}class nt extends _0x21c11d{['afterInit'](){const _0x10ae45=this['editor'],_0x579f3d=_0x10ae45['plugins']['get']('TrackChangesEditing'),_0x2604de=_0x10ae45['commands']['get']('copyFormat'),_0x2fa25a=_0x10ae45['commands']['get']('pasteFormat');_0x2604de&&_0x2fa25a&&(_0x579f3d['enableDefaultAttributesIntegration']('pasteFormat'),_0x579f3d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x390eb3=this['editor'],_0x3c6217=_0x390eb3['locale'];_0x390eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x576bfd=>{if('formatBlock'!=_0x576bfd['type']&&'formatInline'!=_0x576bfd['type'])return;const {data:_0x2c1994}=_0x576bfd;if(_0x2c1994&&'pasteFormat'===_0x2c1994['commandName']){const _0x17fb0e=[],_0x4b0d52=_0x2c1994['commandParams'][0x0];for(const [_0x5b4b53,_0x436080]of Object['entries'](_0x4b0d52))_0x17fb0e['push'](ro(_0x390eb3,_0x5b4b53,_0x436080));return _0x17fb0e['length']?{'type':'format','content':o(_0x3c6217,'*Set\x20format\x20to:*\x20%0',_0x17fb0e['join'](',\x20'))}:{'type':'format','content':o(_0x3c6217,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1b58d6,_0x5000d6,_0x3c5da8){const _0x3c73c9=_0x1b58d6['locale']['t'],_0x2ab15a=_0x5000d6['split'](/(?=[A-Z])/)['join']('\x20'),_0x412cad=_0x3c73c9(_0x2ab15a['charAt'](0x0)['toUpperCase']()+_0x2ab15a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3c5da8)return _0x412cad;if('fontColor'===_0x5000d6||'fontBackgroundColor'===_0x5000d6){const _0xbe00b1=_0x260430(_0x1b58d6['config']['get']('fontColor.colors'))['find'](_0x1740ed=>_0x1740ed['model']==_0x3c5da8);return _0x412cad+'\x20('+(_0xbe00b1?_0x3c73c9(_0xbe00b1['label'])['toLowerCase']():_0x3c5da8)+')';}if('fontSize'===_0x5000d6&&isNaN(parseFloat(_0x3c5da8))){const _0x32b11b=_0x1b58d6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b58d6['config']['get']('fontSize.options'))['find'](_0x5177ca=>_0x5177ca['model']==_0x3c5da8);return _0x412cad+'\x20('+(_0x32b11b?_0x3c73c9(_0x32b11b['title'])['toLowerCase']():_0x3c5da8)+')';}return _0x412cad+'\x20('+_0x3c5da8+')';}class it extends _0x21c11d{['_headingOptions'];['afterInit'](){const _0x3247e4=this['editor'];if(!_0x3247e4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3247e4['config']['get']('heading.options');const _0x59e422=_0x3247e4['locale'],_0x14d8b8=_0x3247e4['plugins']['get']('TrackChangesEditing');_0x14d8b8['enableDefaultAttributesIntegration']('heading');for(const _0x73b616 of this['_headingOptions'])'paragraph'!=_0x73b616['model']&&_0x14d8b8['descriptionFactory']['registerElementLabel'](_0x73b616['model'],_0x3e85d1=>{const _0x6fb0fb=this['_getHeadingLevel'](_0x73b616['model']);return null!==_0x6fb0fb?_0x54283e(_0x3e85d1,_0x6fb0fb):_0x5c21f4(_0x3e85d1,_0x73b616['title']);});function _0x54283e(_0x3e00ce,_0x1851aa){return o(_0x59e422,'ELEMENT_HEADING',[_0x3e00ce,_0x1851aa]);}function _0x5c21f4(_0x2b46a2,_0x1d34de){return o(_0x59e422,'ELEMENT_HEADING_CUSTOM',[_0x2b46a2,_0x1d34de]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0975=this['editor'],_0x5b7d67=_0x4c0975['locale'];function _0x543c09(_0x1c9361,_0x5029a0){return o(_0x5b7d67,'ELEMENT_HEADING_CUSTOM',[_0x1c9361,_0x5029a0]);}_0x4c0975['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dde9c=>{if('formatBlock'!=_0x4dde9c['type'])return;const {data:_0xf79039}=_0x4dde9c;if(_0xf79039&&'heading'==_0xf79039['commandName']){const _0x5f2f45=_0xf79039['commandParams'][0x0]['value'],_0x3cb419=this['_getHeadingLevel'](_0x5f2f45);if(null!==_0x3cb419)return{'type':'format','content':o(_0x5b7d67,'*Change\x20to:*\x20%0',(_0x5f783a=0x1,_0x39c575=_0x3cb419,o(_0x5b7d67,'ELEMENT_HEADING',[_0x5f783a,_0x39c575])))};const _0x41dd54=this['_headingOptions']['find'](_0x5ca187=>_0x5ca187['model']===_0x5f2f45)['title'];return{'type':'format','content':o(_0x5b7d67,'*Change\x20to:*\x20%0',_0x543c09(0x1,_0x41dd54))};}var _0x5f783a,_0x39c575;});}['_getHeadingLevel'](_0x302c68){const _0x4373b7=_0x302c68['match'](/^heading(\d+)/);if(_0x4373b7)return _0x4373b7[0x1];const _0x417e4d=this['_headingOptions']?.['find'](_0x54c147=>_0x54c147['model']==_0x302c68);if(_0x417e4d&&_0x417e4d['view']){const _0x614439=_0x417e4d['view'],_0x2f6fca=(_0x614439['name']??_0x614439)['match'](/^h(\d+)/);if(_0x2f6fca)return _0x2f6fca[0x1];}return null;}}class et extends _0x21c11d{['afterInit'](){const _0x20a084=this['editor'];if(!_0x20a084['plugins']['has']('HighlightEditing'))return;const _0x5f3f9e=_0x20a084['plugins']['get']('TrackChangesEditing'),_0x278e35=_0x20a084['locale'];_0x5f3f9e['enableDefaultAttributesIntegration']('highlight'),_0x5f3f9e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x278e35,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e899=this['editor'],_0x1ab45d=_0x58e899['locale'];_0x58e899['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b83f0=>{if('formatInline'!=_0x1b83f0['type'])return;const {data:_0x234fe9}=_0x1b83f0;if(_0x234fe9&&'highlight'==_0x234fe9['commandName']){const _0x56a307=_0x1ab45d['t'],_0x1f26f6=_0x234fe9['commandParams'][0x0]['value'];if(_0x1f26f6){const _0x2b8e2f=_0x58e899['config']['get']('highlight.options')['find'](_0x34f9d1=>_0x34f9d1['model']==_0x1f26f6),_0x2fc8bd=_0x56a307(_0x2b8e2f['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ab45d,'*Set\x20highlight:*\x20%0',_0x2fc8bd),'color':{'value':_0x2b8e2f['color'],'title':_0x2b8e2f['title']}};}return{'type':'format','content':o(_0x1ab45d,'*Remove\x20highlight*',o(_0x1ab45d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x21c11d{['afterInit'](){const _0x1b4976=this['editor'];if(!_0x1b4976['plugins']['has']('HorizontalLineEditing'))return;_0x1b4976['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x309556=_0x1b4976['plugins']['get']('TrackChangesEditing'),_0x49bc4a=_0x1b4976['locale'];_0x309556['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4e2f23=>o(_0x49bc4a,'ELEMENT_HORIZONTAL_LINE',_0x4e2f23));}}class ot extends _0x21c11d{['afterInit'](){const _0x2b07cd=this['editor'];if(!_0x2b07cd['plugins']['has']('HtmlEmbed'))return;const _0x35703f=_0x2b07cd['plugins']['get']('TrackChangesEditing'),_0x56fa0a=_0x2b07cd['locale'];_0x35703f['descriptionFactory']['registerElementLabel']('rawHtml',_0x29325f=>o(_0x56fa0a,'ELEMENT_HTML_EMBED',_0x29325f)),_0x35703f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x35703f['descriptionFactory']['registerDescriptionCallback'](_0x5138eb=>{if('attribute'!=_0x5138eb['type'])return;const {data:_0x3fd35a}=_0x5138eb;if(_0x3fd35a&&'value'==_0x3fd35a['key']&&_0x5138eb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4a5181=o(_0x56fa0a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x56fa0a,'*Change\x20%0\x20content*',_0x4a5181)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41d9c6=this['editor'],_0x46007f=_0x41d9c6['locale'];_0x41d9c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2531=>{if('formatBlock'!=_0x5d2531['type'])return;const {data:_0x465364}=_0x5d2531;if(_0x465364&&'htmlEmbed'==_0x465364['commandName']){const _0x5621d1=o(_0x46007f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x46007f,'*Change\x20%0\x20content*',_0x5621d1)};}});}}class rt extends _0x21c11d{['afterInit'](){const _0xdcb08d=this['editor'];if(!_0xdcb08d['plugins']['has']('ImageEditing'))return;const _0x26a999=_0xdcb08d['plugins']['get']('TrackChangesEditing'),_0x5b42ca=_0xdcb08d['plugins']['get']('ImageUtils'),_0x28ae15=_0xdcb08d['locale'];_0x26a999['enableCommand']('insertImage'),_0x26a999['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e75e9=>o(_0x28ae15,'ELEMENT_IMAGE',_0x5e75e9)),_0x26a999['descriptionFactory']['registerElementLabel']('imageInline',_0xd4e5bc=>o(_0x28ae15,'ELEMENT_INLINE_IMAGE',_0xd4e5bc)),_0x26a999['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x28ae15,'ELEMENT_CAPTION')),_0xdcb08d['plugins']['has']('ImageUploadEditing')&&_0x26a999['enableCommand']('uploadImage'),_0xdcb08d['plugins']['has']('ImageBlockEditing')&&_0xdcb08d['plugins']['has']('ImageInlineEditing')&&(_0x26a999['enableCommand']('imageTypeInline',(_0x5558c9,_0x557c32)=>{const _0x26256a=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']);_0xdcb08d['model']['change'](()=>{_0x26a999['markBlockFormat'](_0x26256a,{'commandName':'imageTypeInline','commandParams':[_0x557c32]},[],'convertBlockImageToInline');});}),_0x26a999['enableCommand']('imageTypeBlock',(_0x18ab0a,_0x20bfc9)=>{_0xdcb08d['model']['change'](_0x599f34=>{let _0x579f8c=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']),_0x51d451=_0x599f34['createRangeOn'](_0x579f8c);const _0x3060c9=_0x27204c['fromPosition'](_0x51d451['start'],'toPrevious'),_0xf80985=_0x27204c['fromPosition'](_0x51d451['end'],'toNext');_0x26a999['forceDefaultExecution'](()=>_0x18ab0a(_0x20bfc9)),_0x579f8c=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']),_0x51d451=_0x599f34['createRangeOn'](_0x579f8c);const _0x199f75=_0x599f34['createRange'](_0x3060c9,_0xf80985);_0x3060c9['detach'](),_0xf80985['detach'](),_0x26a999['markBlockFormat'](_0x579f8c,{'commandName':'imageTypeInline','commandParams':[_0x20bfc9]},[],'convertInlineImageToBlock'),_0x199f75['start']['isBefore'](_0x51d451['start'])&&_0x26a999['markInsertion'](_0x599f34['createRange'](_0x199f75['start'],_0x51d451['start']),'convertInlineImageToBlock'),_0x51d451['end']['isBefore'](_0x199f75['end'])&&_0x26a999['markInsertion'](_0x599f34['createRange'](_0x51d451['end'],_0x199f75['end']),'convertInlineImageToBlock');});}),_0x26a999['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x26a999['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x26a999['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x26a999['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x26a999['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x26a999['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x27b5d4])=>{const _0x3f07a8=_0x26a999['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x200108=_0x27b5d4['start'],_0x3a6bb4=_0x27b5d4['end'];const _0x2438d0=_0xdcb08d['model']['schema']['getNearestSelectionRange'](_0x200108,'backward'),_0x14ca18=_0xdcb08d['model']['schema']['getNearestSelectionRange'](_0x3a6bb4,'forward');_0x2438d0['isCollapsed']&&(_0x200108=_0x2438d0['start']),_0x14ca18['isCollapsed']&&(_0x3a6bb4=_0x14ca18['end']),_0x3f07a8([_0xdcb08d['model']['createRange'](_0x200108,_0x3a6bb4)]);}),_0x26a999['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2db437),_0x26a999['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2db437)),_0xdcb08d['plugins']['has']('ImageCaptionEditing')&&(_0x26a999['enableCommand']('toggleImageCaption',(_0x12a52d,_0x1e4f40)=>{const _0x1dfa3c=_0xdcb08d['plugins']['get']('ImageCaptionUtils');let _0x45eb73=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']),_0x959fbf=_0x1dfa3c['getCaptionFromImageModelElement'](_0x45eb73);_0xdcb08d['model']['change'](()=>{if(_0x959fbf)return void _0x26a999['markDeletion'](_0xdcb08d['model']['createRangeOn'](_0x959fbf));const _0x6bf4f6=_0x5b42ca['isBlockImage'](_0x45eb73);_0x12a52d(_0x1e4f40),_0x45eb73=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']),_0x959fbf=_0x1dfa3c['getCaptionFromImageModelElement'](_0x45eb73),_0x26a999['markInsertion'](_0xdcb08d['model']['createRangeOn'](_0x959fbf),_0x6bf4f6?null:'imageCaption');});}),_0x26a999['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2db437));const _0x2ea066=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x185418(_0x1c61db,_0x3c401f){const _0x2c46ed=_0x2ea066['findIndex'](({type:_0x49ee7e,subType:_0x2af573})=>_0x1c61db['type']==_0x49ee7e&&_0x1c61db['subType']==_0x2af573),_0x4bb664=_0x2ea066['findIndex'](({type:_0x4457f2,subType:_0x49bf0b})=>_0x3c401f['type']==_0x4457f2&&_0x3c401f['subType']==_0x49bf0b);if(_0x2c46ed<0x0||_0x4bb664<0x0)return!0x1;const _0x4eace7=_0x1c61db['getFirstRange'](),_0x11c691=_0x3c401f['getFirstRange']();if((0x0==_0x2c46ed||0x1==_0x2c46ed)&&0x2==_0x4bb664&&_0x4eace7['isIntersecting'](_0x11c691))return!0x0;if(0x2==_0x2c46ed&&0x3==_0x4bb664){const _0x401403=_0x26a999['_findSuggestions'](_0x4eace7,'insertion')['filter'](({suggestion:_0x4df3e8,meta:_0x40fd80})=>_0x40fd80['isOwn']&&'convertInlineImageToBlock'==_0x4df3e8['subType']);if(_0x401403['length']>0x1&&_0x11c691['end']['isEqual'](_0x4eace7['start']))return!0x0;if(0x1==_0x401403['length']&&(_0x4eace7['start']['isEqual'](_0x11c691['end'])||_0x4eace7['end']['isEqual'](_0x11c691['start'])))return!0x0;}if(0x3==_0x2c46ed&&0x3==_0x4bb664&&_0x4eace7['start']['isBefore'](_0x11c691['start'])){const _0x53d511=_0x4eace7['end']['nodeAfter'],_0x353ef3=_0x11c691['start']['nodeBefore'];return _0x5b42ca['isBlockImage'](_0x53d511)&&_0x53d511===_0x353ef3;}return!0x1;}function _0x2db437(_0x5d6fbc,_0x490d6c){return _0x185418(_0x5d6fbc,_0x490d6c)?[_0x5d6fbc,_0x490d6c]:_0x185418(_0x490d6c,_0x5d6fbc)?[_0x490d6c,_0x5d6fbc]:null;}_0xdcb08d['plugins']['has']('ImageResize')&&(_0x26a999['enableDefaultAttributesIntegration']('resizeImage'),_0x26a999['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x28ae15,'FORMAT_IMAGE_SIZE'))),_0xdcb08d['plugins']['has']('ImageTextAlternativeEditing')&&_0x26a999['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xdcb08d['plugins']['has']('PictureEditing')&&_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0x3859fa=>{if('attribute'!=_0x3859fa['type'])return;const {data:_0x46166e}=_0x3859fa;return _0x46166e&&'sources'==_0x46166e['key']?{'type':'format','content':''}:void 0x0;}),_0xdcb08d['plugins']['has']('ImageSizeAttributes')&&_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0xd2c181=>{if('attribute'!=_0xd2c181['type'])return;const {data:_0x436591}=_0xd2c181;return!_0x436591||'width'!=_0x436591['key']&&'height'!=_0x436591['key']?void 0x0:{'type':'format','content':''};}),_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0xea9ec5=>{if(!!_0x2ea066['find'](({type:_0x5a042e,subType:_0x20e193})=>_0xea9ec5['type']==_0x5a042e&&_0xea9ec5['subType']==_0x20e193))return _0xea9ec5['previous']?{}:void 0x0;}),_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0x24adb5=>{if('insertion'==_0x24adb5['type']||'deletion'==_0x24adb5['type']){const _0x3df41c=_0x24adb5['getContainedElement']();if(_0x3df41c&&_0x3df41c['is']('element','caption'))return{'type':'insertion'==_0x24adb5['type']?'addObject':'removeObject','element':_0x3df41c,'quantity':0x1};}}),_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0x9805c0=>'formatBlock'==_0x9805c0['type']&&'convertInlineImageToBlock'==_0x9805c0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x9805c0['type']&&'convertBlockImageToInline'==_0x9805c0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0x38c23e=>{if('attribute'!=_0x38c23e['type'])return;const {data:_0x14f495}=_0x38c23e;if(!_0x14f495||'alt'!=_0x14f495['key'])return;const _0x4b215a=_0x14f495['newValue'];return _0x4b215a?{'type':'format','content':o(_0x28ae15,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b215a+'\x22')}:{'type':'format','content':o(_0x28ae15,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24c7dd=this['editor'],_0x3a8ccc=_0x24c7dd['locale'];_0x24c7dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd80b=>{if('formatBlock'!=_0x4fd80b['type']&&'formatInline'!=_0x4fd80b['type'])return;const {data:_0xe26a71}=_0x4fd80b;if(_0xe26a71){if('imageTextAlternative'==_0xe26a71['commandName']){const _0x3824ad=_0xe26a71['commandParams'][0x0]['newValue'];return _0x3824ad?{'type':'format','content':o(_0x3a8ccc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3824ad+'\x22')}:{'type':'format','content':o(_0x3a8ccc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe26a71['commandName']){const _0x2441e9=_0xe26a71['commandParams'][0x0]['width'];return _0x2441e9?{'type':'format','content':o(_0x3a8ccc,'*Set\x20image\x20width:*\x20%0',_0x2441e9)}:{'type':'format','content':o(_0x3a8ccc,'*Reset\x20image\x20width*')};}}});}}class at extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3d0acf=this['editor']['locale'],_0x39dbc4=this['editor']['plugins']['get']('TrackChangesEditing');_0x39dbc4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x39dbc4['descriptionFactory']['registerDescriptionCallback'](_0x4f7903=>{if('attribute'!=_0x4f7903['type'])return;const {data:_0x22b916}=_0x4f7903;return _0x22b916&&'src'==_0x22b916['key']?_0x22b916['newValue']&&_0x22b916['oldValue']?{'type':'format','content':o(_0x3d0acf,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5d27aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d27aa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5d27aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d27aa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5d27aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46b82e=this['editor'],_0x2a7368=_0x46b82e['locale'];_0x46b82e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45cf4e=>{if('formatBlock'!=_0x45cf4e['type']&&'formatInline'!=_0x45cf4e['type'])return;const {data:_0x5bfb70}=_0x45cf4e;if(!_0x5bfb70||'replaceImageSource'!=_0x5bfb70['commandName'])return;return{'type':'format','content':o(_0x2a7368,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x21c11d{['afterInit'](){const _0x146b38=this['editor'];if(!_0x146b38['plugins']['has']('ImageStyleEditing'))return;const _0x4cc6f7=_0x146b38['plugins']['get']('TrackChangesEditing'),_0x1403e6=_0x146b38['plugins']['get']('ImageUtils'),_0x4f6a55={};_0x4cc6f7['enableCommand']('imageStyle',(_0x2fbd81,_0x4de0d7)=>{const _0x87466a=_0x146b38['plugins']['get']('Users')['me'],_0x29a503=_0x146b38['commands']['get']('imageStyle');let _0x955a7d=_0x1403e6['getClosestSelectedImageElement'](_0x146b38['model']['document']['selection']),_0x256db1=_0x146b38['model']['createRangeOn'](_0x955a7d),_0x5453e9=_0x29a503['value'];if(_0x5453e9==_0x4de0d7['value'])return;const _0x167b53={'commandName':'imageStyle','commandParams':[_0x4de0d7],'formatGroupId':_0x49bc9e()};_0x146b38['model']['change'](()=>{if(_0x4cc6f7['getSuggestions']()['filter'](_0x50c25f=>_0x50c25f['isInContent']&&_0x87466a==_0x50c25f['author']&&('formatBlock'==_0x50c25f['type']||'formatInline'==_0x50c25f['type'])&&('imageStylePreApply'==_0x50c25f['subType']||'imageStylePostApply'==_0x50c25f['subType'])&&_0x50c25f['getFirstRange']()['isEqual'](_0x256db1))['forEach'](_0x17f21c=>_0x4cc6f7['discardSuggestion'](_0x17f21c['head'])),_0x955a7d=_0x1403e6['getClosestSelectedImageElement'](_0x146b38['model']['document']['selection']),_0x256db1=_0x146b38['model']['createRangeOn'](_0x955a7d),_0x29a503['refresh'](),_0x146b38['commands']['get']('imageTypeInline')['refresh'](),_0x146b38['commands']['get']('imageTypeBlock')['refresh'](),_0x5453e9=_0x29a503['value'],_0x5453e9!=_0x4de0d7['value'])return _0x1403e6['isInlineImage'](_0x955a7d)&&_0x29a503['shouldConvertImageType'](_0x4de0d7['value'],_0x955a7d)?(_0x2fbd81({..._0x4de0d7,'setImageSizes':!0x1}),_0x955a7d=_0x1403e6['getClosestSelectedImageElement'](_0x146b38['model']['document']['selection']),void _0x4cc6f7['markBlockFormat'](_0x955a7d,{..._0x167b53,'commandReversedParams':[{'value':_0x5453e9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1403e6['isBlockImage'](_0x955a7d)?_0x4cc6f7['markBlockFormat'](_0x955a7d,_0x167b53,[],'imageStylePostApply'):_0x4cc6f7['markInlineFormat'](_0x256db1,_0x167b53,'imageStylePostApply'));});});for(const _0x3b24e7 of _0x146b38['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f6a55[_0x3b24e7['name']]=_0x3b24e7['title']['toLowerCase']();_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x9f2f07])=>{_0x1403e6['setImageNaturalSizeAttributes'](_0x9f2f07['getContainedElement']());}),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2cd3e4,_0x4b7b92)=>{_0x4cc6f7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2cd3e4,{'commandName':_0x4b7b92['commandName'],'commandParams':_0x4b7b92['commandReversedParams']});}),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5e86a5,_0x18c063){if(_0x42cae4(_0x5e86a5,_0x18c063))return[_0x5e86a5,_0x18c063];if(_0x42cae4(_0x18c063,_0x5e86a5))return[_0x18c063,_0x5e86a5];return null;});const _0x2e179c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42cae4(_0x143c85,_0x4dfdbc){const _0x3625a9=_0x2e179c['findIndex'](({type:_0x978f6d,subType:_0x4b89bd})=>_0x143c85['type']==_0x978f6d&&_0x143c85['subType']==_0x4b89bd),_0x57f03f=_0x2e179c['findIndex'](({type:_0x5e9285,subType:_0xe2ca8b})=>_0x4dfdbc['type']==_0x5e9285&&_0x4dfdbc['subType']==_0xe2ca8b);if(_0x3625a9<0x0||_0x57f03f<0x0)return!0x1;const _0x5269c0=_0x143c85['getFirstRange'](),_0x15c240=_0x4dfdbc['getFirstRange']();if((0x0==_0x3625a9||0x1==_0x3625a9)&&0x2==_0x57f03f&&_0x5269c0['isIntersecting'](_0x15c240))return!0x0;if(0x2==_0x3625a9&&0x3==_0x57f03f){const _0x3cf3ff=_0x4cc6f7['_findSuggestions'](_0x5269c0,'insertion')['filter'](({suggestion:_0x4a609d,meta:_0x14a820})=>_0x14a820['isOwn']&&'convertInlineImageToBlock'==_0x4a609d['subType']);if(_0x3cf3ff['length']>0x1&&_0x15c240['end']['isEqual'](_0x5269c0['start']))return!0x0;if(0x1==_0x3cf3ff['length']&&(_0x5269c0['start']['isEqual'](_0x15c240['end'])||_0x5269c0['end']['isEqual'](_0x15c240['start'])))return!0x0;}if(0x3==_0x3625a9&&0x3==_0x57f03f&&_0x5269c0['start']['isBefore'](_0x15c240['start'])){const _0x391ca9=_0x5269c0['end']['nodeAfter'],_0x45face=_0x15c240['start']['nodeBefore'];return _0x1403e6['isBlockImage'](_0x391ca9)&&_0x391ca9===_0x45face;}return!0x1;}_0x146b38['model']['document']['registerPostFixer'](()=>{let _0x8dd212=!0x1;const _0x25752d=Array['from'](_0x146b38['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51246f,data:_0x157065}of _0x25752d){const {group:_0x587122,type:_0x459195,subType:_0x32e036,id:_0x83fcb6}=_0x4cc6f7['_splitMarkerName'](_0x51246f);if('suggestion'==_0x587122&&_0x4cc6f7['hasSuggestion'](_0x83fcb6)){if('formatBlock'==_0x459195&&('imageStylePreApply'==_0x32e036||'imageStylePostApply'==_0x32e036)){const _0x442a7e=_0x4cc6f7['getSuggestion'](_0x83fcb6);if(_0x157065['newRange']){const _0x48c834=_0x442a7e['getFirstRange']()['getContainedElement']();if(_0x1403e6['isBlockImage'](_0x48c834))continue;_0x4cc6f7['discardSuggestion'](_0x442a7e),_0x8dd212=!0x0;}}if('insertion'==_0x459195&&'imageCaption'==_0x32e036&&!_0x157065['newRange']){const _0x358360=_0x4cc6f7['getSuggestion'](_0x83fcb6);_0x358360['next']&&_0x358360['next']['isInContent']&&(_0x4cc6f7['discardSuggestion'](_0x358360['next']),_0x8dd212=!0x0);}}}return _0x8dd212;}),this['_registerLegacyDescription'](_0x4f6a55);}['_registerLegacyDescription'](_0x228e33){const _0x478272=this['editor'],_0x425224=_0x478272['locale'];_0x478272['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32ee27=>{if('formatBlock'!=_0x32ee27['type']&&'formatInline'!=_0x32ee27['type'])return;const {data:_0x59f182}=_0x32ee27;if(!_0x59f182||'imageStyle'!=_0x59f182['commandName'])return;const _0x2bec8c=_0x59f182['commandParams'][0x0]['value'];return _0x676e6e('side'===_0x2bec8c?o(_0x425224,'FORMAT_SIDE_IMAGE'):_0x228e33[_0x2bec8c]||_0x2bec8c);function _0x676e6e(_0x5e292c){return{'type':'format','content':o(_0x425224,'*Format:*\x20%0',_0x5e292c)};}});}}class ut extends _0x21c11d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5d91ee){super(_0x5d91ee),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x30a856=this['editor'],_0x3d6f62=_0x30a856['commands']['get']('importWord'),_0x5936fa=_0x30a856['commands']['get']('trackChanges');_0x3d6f62&&(_0x3d6f62['on']('execute',(_0x4ce6bc,[,_0x21ca9a])=>{this['_trackChangesValueDuringImport']=_0x5936fa['value'],_0x21ca9a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3d6f62,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3d6f62,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5936fa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x30a856['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3f0135,_0x1f1f3a){const {suggestions:_0x30cfea}=_0x1f1f3a,_0x25c600=this['editor']['commands']['get']('trackChanges'),_0x1314d2=_0x25c600['value'];this['_trackChangesValueDuringImport']!==_0x1314d2&&(_0x25c600['execute'](),this['_trackChangesExecuted']=!0x0),_0x30cfea&&_0x30cfea['forEach'](({id:_0x3f2150,type:_0x48fc4a,author:_0x285bac,created_at:_0x13192f})=>{const _0x37f1d5={'id':_0x3f2150,'type':_0x48fc4a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x285bac,'createdAt':_0x13192f?new Date(_0x13192f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x37f1d5);});}}class ft extends _0x21c11d{['afterInit'](){const _0x396a29=this['editor'],_0x1e0fa0=_0x396a29['plugins']['get']('TrackChangesEditing');if(_0x396a29['plugins']['has']('IndentEditing')&&(_0x1e0fa0['enableCommand']('indent'),_0x1e0fa0['enableCommand']('outdent')),_0x396a29['plugins']['has']('IndentBlock')){for(const _0x4c2dd2 of['indentBlock','outdentBlock'])_0x1e0fa0['enableDefaultAttributesIntegration'](_0x4c2dd2);}const _0x44d260=_0x396a29['locale'];_0x1e0fa0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x44d260,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xca957=this['editor'],_0x5cca6f=_0xca957['locale'],_0x213047=_0xca957['plugins']['get']('TrackChangesEditing');_0x213047['descriptionFactory']['registerDescriptionCallback'](_0x4370e6=>{if('formatBlock'!=_0x4370e6['type'])return;const {data:_0x29c78d}=_0x4370e6;if(!_0x29c78d)return;if('indentBlock'!=_0x29c78d['commandName']&&'outdentBlock'!=_0x29c78d['commandName'])return;const _0x104a2a=_0x4370e6['getItems']()[0x0],_0x491785=_0x213047['descriptionFactory']['getItemLabel'](_0x104a2a);return'indentBlock'==_0x29c78d['commandName']?{'type':'format','content':o(_0x5cca6f,'*Indent:*\x20%0',_0x491785)}:'outdentBlock'==_0x29c78d['commandName']?{'type':'format','content':o(_0x5cca6f,'*Outdent:*\x20%0',_0x491785)}:void 0x0;});}}class ht extends _0x21c11d{static get['requires'](){return[_0x98a46];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x21c11d{['afterInit'](){const _0x3a009e=this['editor'];if(!_0x3a009e['plugins']['has']('LinkEditing'))return;const _0x420fc7=_0x3a009e['plugins']['get']('TrackChangesEditing'),_0x40fabb=_0x3a009e['commands']['get']('link');_0x420fc7['enableDefaultAttributesIntegration']('link'),_0x420fc7['enableDefaultAttributesIntegration']('unlink');for(const _0x3a3e2 of _0x40fabb['manualDecorators'])_0x420fc7['descriptionFactory']['registerAttributeLabel'](_0x3a3e2['id'],'link\x20('+_0x3a3e2['label']['toLowerCase']()+')');_0x420fc7['descriptionFactory']['registerDescriptionCallback'](_0x42ef7f=>{if('attribute'!=_0x42ef7f['type'])return;const {data:_0x222050}=_0x42ef7f;if(!_0x222050||'linkHref'!=_0x222050['key'])return;const _0x51c237=_0x222050['newValue'],_0x542313=_0x3a009e['locale'];return{'type':'format','content':null==_0x51c237?o(_0x542313,'*Remove\x20link*'):o(_0x542313,'*Set\x20link:*\x20%0','\x22'+_0x51c237+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55e20b=this['editor'],_0x745bb2=_0x55e20b['locale'];_0x55e20b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x208e6c=>{if('formatInline'!=_0x208e6c['type'])return;const {data:_0x30bfb0}=_0x208e6c;if(_0x30bfb0){if('link'==_0x30bfb0['commandName']){const _0x3775aa=_0x30bfb0['commandParams'][0x0];return{'type':'format','content':o(_0x745bb2,'*Set\x20link:*\x20%0','\x22'+_0x3775aa+'\x22')};}return'unlink'==_0x30bfb0['commandName']?{'type':'format','content':o(_0x745bb2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x21c11d{['afterInit'](){const _0x19f495=this['editor'],_0x52e120=_0x19f495['locale'];if(!_0x19f495['plugins']['has']('LegacyListEditing'))return;const _0x2fb5e1=_0x19f495['plugins']['get']('TrackChangesEditing'),_0x2404eb=_0x19f495['plugins']['has']('LegacyTodoListEditing');function _0x22fcb6(_0x3a2299){return()=>{const _0x340c66=_0x19f495['model']['document']['selection'],_0x4e7c0b=_0x19f495['commands']['get'](_0x3a2299);if(_0x4e7c0b['value'])return void _0x19f495['execute']('paragraph',{});const _0x3355b9=_0x3a2299['slice'](0x0,-0x4),_0x1d84c0=function(_0x27fd9e,_0x59954a,_0x32a177){let _0x1766ec=Array['from'](_0x27fd9e)['filter'](_0x3f3c02=>function(_0x46cc9d,_0x591f4f){return _0x591f4f['checkChild'](_0x46cc9d['parent'],'listItem')&&!_0x591f4f['isObject'](_0x46cc9d);}(_0x3f3c02,_0x32a177));_0x1766ec=_0x1766ec['filter'](_0x58937f=>!_0x58937f['is']('element','listItem')||_0x58937f['getAttribute']('listType')!=_0x59954a);const _0x516a95=new Set();for(const _0x24ad56 of _0x1766ec)_0x24ad56['is']('element','listItem')?_0x516a95['add'](Le(_0x24ad56)):_0x516a95['add'](_0x24ad56);return Array['from'](_0x516a95);}(_0x340c66['getSelectedBlocks'](),_0x3355b9,_0x19f495['model']['schema']);_0x19f495['model']['change'](()=>{for(const _0x40e0f of _0x1d84c0)_0x2fb5e1['markBlockFormat'](_0x40e0f,{'commandName':_0x3a2299,'commandParams':[{'forceValue':!_0x4e7c0b['value']}],'formatGroupId':'blockName'},Ee(_0x40e0f));});};}function _0x526095(_0x16f575){return()=>{const _0x151fef=function(_0x3a74d7){let _0x48cd3c=Array['from'](_0x3a74d7);const _0x51d8c4=_0x48cd3c['findIndex'](_0xc928a0=>'listItem'!=_0xc928a0['name']);return _0x51d8c4>-0x1&&(_0x48cd3c=_0x48cd3c['slice'](0x0,_0x51d8c4)),_0x48cd3c;}(_0x19f495['model']['document']['selection']['getSelectedBlocks']()),_0x574384=_0x19f495['model']['createRange'](_0x19f495['model']['createPositionAt'](_0x151fef[0x0],'before'),_0x19f495['model']['createPositionAt'](_0x151fef[_0x151fef['length']-0x1],'end'));_0x19f495['model']['change'](()=>{_0x2fb5e1['markBlockFormat'](_0x574384,{'commandName':_0x16f575,'commandParams':[],'formatGroupId':'listIndent'},function(_0x403d0a){const _0x3908d2=new Set();for(const _0x1e1cd8 of _0x403d0a){let _0xfcdbb8=_0x1e1cd8['nextSibling'];for(;_0xfcdbb8&&_0xfcdbb8['getAttribute']('listIndent')>_0x1e1cd8['getAttribute']('listIndent');)_0x3908d2['add'](_0xfcdbb8),_0xfcdbb8=_0xfcdbb8['nextSibling'];}return Array['from'](_0x3908d2);}(_0x151fef));});};}_0x2fb5e1['enableCommand']('numberedList',_0x22fcb6('numberedList')),_0x2fb5e1['enableCommand']('bulletedList',_0x22fcb6('bulletedList')),_0x2404eb&&_0x2fb5e1['enableCommand']('todoList',_0x22fcb6('todoList')),_0x2fb5e1['enableCommand']('indentList',_0x526095('indentList')),_0x2fb5e1['enableCommand']('outdentList',_0x526095('outdentList')),_0x2404eb&&_0x2fb5e1['enableCommand']('checkTodoList',()=>{const _0x22bc7a=_0x19f495['commands']['get']('checkTodoList'),_0x38406e=Array['from'](_0x22bc7a['_selectedElements']);_0x38406e['filter'](_0x307b78=>_0x307b78['getAttribute']('todoListChecked')!=_0x22bc7a['value']),_0x19f495['model']['change'](()=>{for(const _0x47efb6 of _0x38406e)_0x2fb5e1['markBlockFormat'](_0x47efb6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x22bc7a['value']}]});});}),_0x2fb5e1['descriptionFactory']['registerElementLabel']('listItem',_0x46c620=>o(_0x52e120,'ELEMENT_LIST_ITEM',_0x46c620)),_0x2fb5e1['descriptionFactory']['registerDescriptionCallback'](_0x2b284d=>{if('formatBlock'!=_0x2b284d['type']&&'formatInline'!=_0x2b284d['type'])return;const {data:_0x5ab17c}=_0x2b284d;if(_0x5ab17c){if('numberedList'==_0x5ab17c['commandName']||'bulletedList'==_0x5ab17c['commandName']||'todoList'==_0x5ab17c['commandName'])switch(_0x5ab17c['commandName']['replace']('List','')){case'bulleted':return _0x52ef0f(o(_0x52e120,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52ef0f(o(_0x52e120,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52ef0f(o(_0x52e120,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5ab17c['commandName'])return{'type':'format','content':o(_0x52e120,'*Indent:*\x20%0',o(_0x52e120,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5ab17c['commandName'])return{'type':'format','content':o(_0x52e120,'*Outdent:*\x20%0',o(_0x52e120,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5ab17c['commandName'])return _0x5ab17c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52e120,'*Check\x20item*')}:{'type':'format','content':o(_0x52e120,'*Uncheck\x20item*')};}function _0x52ef0f(_0x4c6155){return{'type':'format','content':o(_0x52e120,'*Change\x20to:*\x20%0',_0x4c6155)};}});}}function Le(_0x19d2ac){const _0x1114a9=_0x19d2ac['getAttribute']('listIndent');if(0x0==_0x1114a9)return _0x19d2ac;let _0xe93667=_0x19d2ac;for(;_0x19d2ac['previousSibling']&&_0x19d2ac['previousSibling']['is']('element','listItem');){const _0x10b8df=_0x19d2ac['previousSibling']['getAttribute']('listIndent');if(_0x10b8df==_0x1114a9)_0xe93667=_0x19d2ac['previousSibling'];else{if(_0x10b8df<_0x1114a9)break;}_0x19d2ac=_0x19d2ac['previousSibling'];}return _0xe93667;}function Ee(_0x3f4ab2){const _0x436973=[];if(_0x3f4ab2['is']('element','listItem')&&_0x3f4ab2['getAttribute']('listIndent')>0x0){let _0x467232=_0x3f4ab2['nextSibling'];for(;_0x467232&&'listItem'==_0x467232['name']&&_0x467232['getAttribute']('listIndent')==_0x3f4ab2['getAttribute']('listIndent');)_0x436973['push'](_0x467232),_0x467232=_0x467232['nextSibling'];}return _0x436973;}class mt extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3a6ef0=this['editor']['config']['get']('list.properties'),_0x1c48b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a6ef0['styles']&&_0x1c48b8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3a6ef0['reversed']&&_0x1c48b8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3a6ef0['startIndex']&&_0x1c48b8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c48b8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x537bdb,_0x1cf8bb={}){const _0x30a342=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17dfa9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x30a342['markMultiRangeBlockFormat'](_0x17dfa9,{'commandName':'listStyle','commandParams':[{'type':_0x1cf8bb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x7d4547,_0x110c0b={}){const _0xcb2659=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b0537=this['_getSuggestionBlocks'](_0x17656b=>_0x17656b['is']('element','listItem')&&'numbered'===_0x17656b['getAttribute']('listType'));if(_0x2b0537['length']<0x1)return;const _0x63360f=_0x2b0537['map'](_0x752d51=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x752d51,'before'),this['editor']['model']['createPositionAt'](_0x752d51,0x0)));this['editor']['model']['change'](()=>{_0xcb2659['markMultiRangeBlockFormat'](_0x63360f,{'commandName':'listReversed','commandParams':[{'reversed':_0x110c0b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x32970e,_0x22b7f5={}){const _0x5f02fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12d608=this['_getSuggestionBlocks'](_0x1fe80d=>_0x1fe80d['is']('element','listItem')&&'numbered'===_0x1fe80d['getAttribute']('listType'));if(_0x12d608['length']<0x1)return;const _0x276348=_0x12d608['map'](_0x10eb7a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10eb7a,'before'),this['editor']['model']['createPositionAt'](_0x10eb7a,0x0)));this['editor']['model']['change'](()=>{_0x5f02fc['markMultiRangeBlockFormat'](_0x276348,{'commandName':'listStart','commandParams':[{'startIndex':_0x22b7f5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x32b079){if('formatBlock'!=_0x32b079['type']&&'formatInline'!=_0x32b079['type'])return;const _0x3a6630=this['editor']['locale'],{data:_0x4b08a5}=_0x32b079;if(!_0x4b08a5)return;let _0x26e759,_0x3380f1;switch(_0x4b08a5['commandName']){case'listStyle':_0x26e759='*Change\x20to:*\x20%0',_0x3380f1={'type':'format','content':o(_0x3a6630,_0x26e759,o(_0x3a6630,this['_getTranslationKeyForListStyle'](_0x4b08a5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26e759=_0x4b08a5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3380f1={'type':'format','content':o(_0x3a6630,_0x26e759)};break;case'listStart':_0x26e759='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3380f1={'type':'format','content':o(_0x3a6630,_0x26e759,_0x4b08a5['commandParams'][0x0]['startIndex'])};}return _0x3380f1;}['_getSuggestionBlocksForListStyle'](){const _0x4a4d67=this['editor']['plugins']['get']('LegacyListUtils');let _0x74dc0e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x74dc0e[0x0]?.['is']('element','listItem')&&_0x74dc0e['unshift'](..._0x4a4d67['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x74dc0e[_0x74dc0e['length']-0x1]?.['is']('element','listItem')&&_0x74dc0e['push'](..._0x4a4d67['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x74dc0e=[...new Set(_0x74dc0e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x74dc0e=_0x74dc0e['filter'](_0x9e13aa=>_0x9e13aa['is']('element','listItem'))),_0x74dc0e;}['_getSuggestionBlocks'](_0x246656){const _0x30e235=this['editor']['plugins']['get']('LegacyListUtils');let _0x340bd2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x246656)['map'](_0x566c76=>{const _0x5414a6=this['editor']['model']['createPositionAt'](_0x566c76,0x0);return[..._0x30e235['getSiblingNodes'](_0x5414a6,'backward'),..._0x30e235['getSiblingNodes'](_0x5414a6,'forward')];})['flat']();return _0x340bd2=[...new Set(_0x340bd2)],_0x340bd2;}['_getTranslationKeyForListStyle'](_0x5eb185){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5eb185)||'default')['toUpperCase']()+'_LIST_'+_0x5eb185['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x21c11d{['afterInit'](){const _0x38a624=this['editor'];if(!_0x38a624['plugins']['has']('MediaEmbedEditing'))return;const _0x4f95fa=_0x38a624['plugins']['get']('TrackChangesEditing'),_0x151b23=_0x38a624['locale'];_0x4f95fa['enableCommand']('mediaEmbed'),_0x4f95fa['descriptionFactory']['registerElementLabel']('media',_0x5230d9=>o(_0x151b23,'ELEMENT_MEDIA',_0x5230d9));}}class pt extends _0x21c11d{['afterInit'](){const _0x234fd5=this['editor'];_0x234fd5['plugins']['has']('MentionEditing')&&_0x234fd5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x21c11d{['afterInit'](){const _0xb840b5=this['editor'];if(!_0xb840b5['plugins']['has']('MergeFieldsEditing'))return;const _0x5e4341=_0xb840b5['plugins']['get']('TrackChangesEditing'),_0x1f53f4=_0xb840b5['locale'];_0x5e4341['enableCommand']('insertMergeField'),_0x5e4341['enableCommand']('insertMergeFieldBlock'),_0x5e4341['enableCommand']('insertMergeFieldImage'),_0x5e4341['descriptionFactory']['registerElementLabel']('mergeField',_0x505846=>o(_0x1f53f4,'ELEMENT_MERGE_FIELD',_0x505846)),_0x5e4341['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xd72652=>o(_0x1f53f4,'ELEMENT_MERGE_FIELD',_0xd72652)),_0x5e4341['descriptionFactory']['registerDescriptionCallback'](_0x4c9019=>{if('insertion'!=_0x4c9019['type']&&'deletion'!=_0x4c9019['type'])return;const _0x806fdb=_0x4c9019['getContainedElement']();if(null==_0x806fdb)return;const _0x38b92c=_0xb840b5['plugins']['get']('MergeFieldsEditing');let _0x14e226;switch(_0x38b92c['getMergeFieldType'](_0x806fdb)){case null:return;case'image':{const _0x1b951a=_0x38b92c['unwrapAffixes'](_0x806fdb['getAttribute']('src'));_0x14e226=_0x38b92c['getLabel'](_0x1b951a)||_0x1b951a;break;}default:{const _0x2c8b40=_0x806fdb['getAttribute']('id');_0x14e226=_0x38b92c['getLabel'](_0x2c8b40)||_0x2c8b40;break;}}return'insertion'==_0x4c9019['type']?{'type':'insertion','content':o(_0x1f53f4,'*Insert:*\x20%0','\x22'+_0x14e226+'\x22\x20'+o(_0x1f53f4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1f53f4,'*Remove:*\x20%0','\x22'+_0x14e226+'\x22\x20'+o(_0x1f53f4,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x21c11d{['afterInit'](){const _0x568013=this['editor'],_0x26016a=_0x568013['plugins']['get']('TrackChangesEditing');_0x568013['plugins']['has']('MultiLevelList')&&(_0x26016a['enableDefaultAttributesIntegration']('multiLevelList'),_0x26016a['descriptionFactory']['registerDescriptionCallback'](_0x5ac8c3=>this['handleDescriptions'](_0x5ac8c3)));}['handleDescriptions'](_0x50d754){const _0x2aff35=this['editor']['locale'],{data:_0x31d097}=_0x50d754,_0x133a62={'type':'format','content':''};if(_0x31d097&&'listMarkerStyle'==_0x31d097['key']){if(!_0x31d097['oldValue'])return{'type':'format','content':o(_0x2aff35,'*Set\x20format:*\x20%0',o(_0x2aff35,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31d097['newValue']+')'};if(!_0x31d097['newValue']){let _0x564861=_0x50d754['head'];for(;_0x564861;){if(_0x564861['data']&&'listType'==_0x564861['data']['key']&&_0x564861['data']['newValue'])return _0x133a62;_0x564861=_0x564861['next'];}return{'type':'format','content':o(_0x2aff35,'*Remove\x20format:*\x20%0',o(_0x2aff35,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31d097['oldValue']+')'};}}}}class bt extends _0x21c11d{['afterInit'](){const _0x36eb82=this['editor'];if(!_0x36eb82['plugins']['has']('PageBreakEditing'))return;_0x36eb82['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x565da7=_0x36eb82['plugins']['get']('TrackChangesEditing'),_0xf32d5b=_0x36eb82['locale'];_0x565da7['descriptionFactory']['registerElementLabel']('pageBreak',_0x48edea=>o(_0xf32d5b,'ELEMENT_PAGE_BREAK',_0x48edea));}}class yt extends _0x21c11d{['afterInit'](){const _0x1b81db=this['editor'];if(!_0x1b81db['plugins']['has']('Paragraph'))return;const _0x483d54=_0x1b81db['locale'],_0x2e5d63=_0x1b81db['plugins']['get']('TrackChangesEditing');_0x2e5d63['descriptionFactory']['registerElementLabel']('paragraph',_0x584f51=>o(_0x483d54,'ELEMENT_PARAGRAPH',_0x584f51)),_0x2e5d63['enableDefaultAttributesIntegration']('paragraph'),_0x2e5d63['enableCommand']('insertParagraph');const _0x74a733=_0x2e5d63['descriptionFactory'];_0x74a733['registerDescriptionCallback'](_0x44b805=>{if('insertion'!==_0x44b805['type'])return;const {start:_0x4868a2,end:_0x3f2b98}=_0x44b805['getFirstRange']();if(!_0x4868a2['isTouching'](_0x3f2b98)||!_0x4868a2['nodeAfter'])return;const _0x515223=_0x1b81db['model']['schema'],_0xc025a2=_0x4868a2['nodeAfter'];return _0x515223['isBlock'](_0xc025a2)&&!_0x515223['isLimit'](_0xc025a2)&&_0x515223['checkChild'](_0xc025a2,'$text')?{'type':'insertion','content':o(_0x483d54,'*Insert:*\x20%0',_0x74a733['getItemLabel'](_0xc025a2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x71f79b=this['editor'],_0x430add=_0x71f79b['locale'];_0x71f79b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13d8d2=>{if('formatBlock'!=_0x13d8d2['type'])return;const {data:_0x2d31c0}=_0x13d8d2;return _0x2d31c0&&'paragraph'==_0x2d31c0['commandName']?{'type':'format','content':o(_0x430add,'*Change\x20to:*\x20%0',o(_0x430add,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x21c11d{['afterInit'](){const _0x2c98eb=this['editor'];_0x2c98eb['commands']['get']('replaceSource')&&_0x2c98eb['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x21c11d{['afterInit'](){const _0x29f9b7=this['editor'];if(!_0x29f9b7['plugins']['has']('RemoveFormatEditing'))return;_0x29f9b7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d0606=this['editor'];_0x3d0606['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6fca04=>{if('formatBlock'!=_0x6fca04['type']&&'formatInline'!=_0x6fca04['type'])return;const {data:_0x964ede}=_0x6fca04;return _0x964ede&&'removeFormat'==_0x964ede['commandName']?{'type':'format','content':o(_0x3d0606['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x21c11d{['afterInit'](){const _0x475f3d=this['editor'];if(!_0x475f3d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x47464e=_0x475f3d['plugins']['get']('TrackChangesEditing');_0x47464e['enableCommand']('goToPreviousRestrictedEditingException'),_0x47464e['enableCommand']('goToNextRestrictedEditingException');const _0x15267d=_0x475f3d['plugins']['get']('RestrictedEditingModeEditing');_0x15267d['enableCommand']('trackChanges'),_0x15267d['enableCommand']('acceptSuggestion'),_0x15267d['enableCommand']('discardSuggestion'),_0x15267d['enableCommand']('acceptAllSuggestions'),_0x15267d['enableCommand']('discardAllSuggestions'),_0x15267d['enableCommand']('acceptSelectedSuggestions'),_0x15267d['enableCommand']('discardSelectedSuggestions');}}class At extends _0x21c11d{['afterInit'](){const _0x11f14c=this['editor'];if(!_0x11f14c['plugins']['has']('ShiftEnter'))return;const _0x2ed0ba=_0x11f14c['plugins']['get']('TrackChangesEditing');_0x2ed0ba['enableCommand']('shiftEnter'),_0x2ed0ba['descriptionFactory']['registerElementLabel']('softBreak',_0x4c459f=>o(_0x11f14c['locale'],'ELEMENT_LINE_BREAK',_0x4c459f));}}function an(_0x10c3ba,_0x32a23b,_0x392b51){const _0x5b4ce6=[];for(const _0x361c79 of _0x32a23b['getItems']())_0x361c79['hasAttribute'](_0x10c3ba)&&_0x5b4ce6['push'](_0x392b51['createRangeOn'](_0x361c79));return _0x5b4ce6;}class _t extends _0x21c11d{['afterInit'](){const _0x5b7b6f=this['editor'],_0x1404b=_0x5b7b6f['plugins']['get']('TrackChangesEditing');_0x5b7b6f['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1404b['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x16e86f=this['editor'],_0x34bca9=_0x16e86f['model'],_0x20b1de=_0x16e86f['locale'],_0x3cfaf4=_0x16e86f['plugins']['get']('TrackChangesEditing'),_0x1536a7='restrictedEditingException',_0x4795a6=_0x16e86f['commands']['get'](_0x1536a7);_0x3cfaf4['enableCommand'](_0x1536a7,(_0x1fd529,_0x166aa9={})=>{const _0x49d980=_0x34bca9['document']['selection'];if(_0x49d980['isCollapsed'])return void _0x1fd529(_0x166aa9);const _0x4a48a4=void 0x0!==_0x166aa9['forceValue']?_0x166aa9['forceValue']:!_0x4795a6['value'];_0x34bca9['change'](()=>{const _0x264827=Array['from'](_0x49d980['getRanges']());for(const _0x29b842 of _0x264827){const _0x56acab=_0x4a48a4?[_0x29b842]:an(_0x1536a7,_0x29b842,_0x34bca9);for(const _0x350c21 of _0x56acab)_0x3cfaf4['markInlineFormat'](_0x350c21,{'commandName':_0x1536a7,'commandParams':[{'forceValue':_0x4a48a4}]});}});}),_0x3cfaf4['descriptionFactory']['registerDescriptionCallback'](_0x5b8891=>{if('formatBlock'!=_0x5b8891['type']&&'formatInline'!=_0x5b8891['type'])return;const {data:_0x4f778f}=_0x5b8891;return _0x4f778f&&_0x4f778f['commandName']==_0x1536a7?_0x4f778f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20b1de,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x20b1de,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xc245a1=this['editor'],_0x1b1cd9=_0xc245a1['locale'],_0x36a25d=_0xc245a1['plugins']['get']('TrackChangesEditing'),_0x4e5045='restrictedEditingExceptionBlock',_0x358185=this['editor']['commands']['get'](_0x4e5045);_0x36a25d['enableCommand'](_0x4e5045,(_0x34e6fe,_0x164ea6={})=>{const _0x5ab7c0=this['editor']['model']['document']['selection'],_0x213fde=_0x164ea6&&void 0x0!==_0x164ea6['forceValue']?_0x164ea6['forceValue']:!_0x358185['value'];let _0x1536fd=[];if(_0x213fde){const _0x5acd1b=Array['from'](_0x5ab7c0['getSelectedBlocks']())['filter'](_0x5d216c=>function(_0x512cbf){return!!_0x512cbf['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x5d216c)||function(_0x5daa42,_0x12717f){const _0x464a74=_0x12717f['createContext'](_0x5daa42['parent']);if(!_0x12717f['checkChild'](_0x464a74,'restrictedEditingException'))return!0x1;if(!_0x12717f['checkChild'](_0x464a74['push']('restrictedEditingException'),_0x5daa42))return!0x1;return!0x0;}(_0x5d216c,this['editor']['model']['schema']));_0x1536fd=to(_0x5acd1b,_0xc245a1['model']);}else{const _0x381fba=Array['from'](_0x5ab7c0['getSelectedBlocks']())['map'](_0x59f0d1=>function(_0x27cd5c){let _0x1d95bf=_0x27cd5c;for(;_0x1d95bf['parent'];){if('restrictedEditingException'==_0x1d95bf['parent']['name'])return _0x1d95bf;_0x1d95bf=_0x1d95bf['parent'];}return null;}(_0x59f0d1))['filter'](_0x1dc5b6=>!!_0x1dc5b6);_0x1536fd=to(_0x381fba,_0xc245a1['model']);}_0xc245a1['model']['change'](()=>{for(const _0x599a30 of _0x1536fd)_0x36a25d['markBlockFormat'](_0x599a30,{'commandName':_0x4e5045,'commandParams':[{'forceValue':_0x213fde}]});});}),_0x36a25d['descriptionFactory']['registerDescriptionCallback'](_0x549415=>{const {data:_0x3077a9}=_0x549415;if(_0x3077a9&&_0x3077a9['commandName']==_0x4e5045)return _0x3077a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b1cd9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1b1cd9,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x21c11d{['afterInit'](){const _0xc61dfa=this['editor'];if(!_0xc61dfa['plugins']['has']('Style')||!_0xc61dfa['plugins']['has']('DataSchema'))return;const _0x54dfa0=_0xc61dfa['plugins']['get']('TrackChangesEditing'),_0x2ed0f5=_0xc61dfa['locale'],_0x5404f8=_0xc61dfa['config']['get']('style')||{},_0x584604=_0xc61dfa['plugins']['get']('GeneralHtmlSupport'),_0x2019aa=_0xc61dfa['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc61dfa['plugins']['get']('DataSchema'),_0x5404f8['definitions']);_0x54dfa0['enableDefaultAttributesIntegration']('style');const _0x3bece8=new Set();for(const _0x3d84a7 of _0x2019aa['block']){const _0x4e6c27=_0x584604['getGhsAttributeNameForElement'](_0x3d84a7['element']);_0x3bece8['add'](_0x4e6c27);}const _0x402431=new Set();for(const _0x8ab1b9 of _0x2019aa['inline']){const _0x376b15=_0x584604['getGhsAttributeNameForElement'](_0x8ab1b9['element']);_0x402431['add'](_0x376b15);for(const _0x2e0cb9 of _0x8ab1b9['ghsAttributes'])_0x402431['add'](_0x2e0cb9);}for(const _0x5e4fda of _0x3bece8)_0x54dfa0['descriptionFactory']['registerAttributeLabel'](_0x5e4fda,o(_0x2ed0f5,'FORMAT_STYLE'));for(const _0x1482bf of _0x402431)_0x54dfa0['descriptionFactory']['registerAttributeLabel'](_0x1482bf,o(_0x2ed0f5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a53d=this['editor'],_0x223fd0=_0x13a53d['locale'];_0x13a53d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eff1a=>{if('formatBlock'!=_0x4eff1a['type']&&'formatInline'!=_0x4eff1a['type'])return;const {data:_0x4cbbef}=_0x4eff1a;return _0x4cbbef&&'style'===_0x4cbbef['commandName']?_0x4cbbef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x223fd0,'*Set\x20format:*\x20%0',_0x4cbbef['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x223fd0,'*Remove\x20format:*\x20%0',_0x4cbbef['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x21c11d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x40cd87){super(_0x40cd87),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x479b2c=this['editor'],_0x3c3c2c=_0x479b2c['model']['document']['selection'];if(!_0x479b2c['plugins']['has']('TableEditing'))return;const _0x34406b=_0x479b2c['locale'],_0x355329=_0x479b2c['plugins']['get']('TrackChangesEditing'),_0x455788=_0x479b2c['plugins']['get']('TableUtils');_0x355329['descriptionFactory']['registerElementLabel']('table',_0x1365cf=>o(_0x34406b,'ELEMENT_TABLE',_0x1365cf)),this['_setupColumnsRowsFixing'](),_0x355329['enableCommand']('insertTable'),_0x355329['enableCommand']('selectTableRow'),_0x355329['enableCommand']('selectTableColumn');for(const _0x2dfccd of['insertTableRowAbove','insertTableRowBelow']){const _0x143af0=_0x479b2c['commands']['get'](_0x2dfccd);_0x355329['enableCommand'](_0x2dfccd,_0x48c8dc=>{_0x479b2c['model']['change'](_0x3dcd1d=>{_0x48c8dc();const _0x10cbac='above'===_0x143af0['order'],_0x2dbb51=_0x455788['getSelectionAffectedTableCells'](_0x3c3c2c),_0x1266c1=_0x455788['getRowIndexes'](_0x2dbb51),_0xed4103=_0x10cbac?_0x1266c1['first']-0x1:_0x1266c1['last']+0x1,_0x6b8bc2=_0x2dbb51[0x0]['findAncestor']('table'),_0x3c4820=_0x455788['createTableWalker'](_0x6b8bc2,{'startRow':_0xed4103,'endRow':_0xed4103}),_0x408ee4=Array['from'](_0x3c4820)['map'](_0x29ed59=>_0x3dcd1d['createRangeOn'](_0x29ed59['cell']));_0x355329['markMultiRangeInsertion'](_0x408ee4,'tableRow');});});}for(const _0x274085 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3ca0bd=_0x479b2c['commands']['get'](_0x274085);_0x355329['enableCommand'](_0x274085,_0x2bc489=>{_0x479b2c['model']['change'](_0x595d07=>{_0x2bc489();const _0x134671='left'===_0x3ca0bd['order'],_0x41c991=_0x455788['getSelectionAffectedTableCells'](_0x3c3c2c),_0x797c21=_0x455788['getColumnIndexes'](_0x41c991),_0x4c4b7e=_0x134671?_0x797c21['first']-0x1:_0x797c21['last']+0x1,_0xfc2018=_0x41c991[0x0]['findAncestor']('table'),_0x2636a6=_0x455788['createTableWalker'](_0xfc2018,{'startRow':0x0,'column':_0x4c4b7e,'includeAllSlots':!0x1}),_0x13730e=Array['from'](_0x2636a6)['map'](_0x43271c=>_0x595d07['createRangeOn'](_0x43271c['cell']));_0x355329['markMultiRangeInsertion'](_0x13730e,'tableColumn');});});}for(const _0x3ffd08 of['removeTableRow','removeTableColumn']){const _0x171f75=_0x3ffd08['substr'](0xb),_0x14285b=_0x171f75['toLowerCase'](),_0x4527a5=_0x14285b['substr'](0x0,0x3)+'span',_0x44fd5f='table'+_0x171f75,_0x27c2b8='min'+_0x171f75,_0x5793a3='max'+_0x171f75;_0x355329['enableCommand'](_0x3ffd08,()=>{_0x479b2c['model']['change'](_0x49fd34=>{const _0x4e69be=_0x455788['getSelectionAffectedTableCells'](_0x3c3c2c),_0x111991=_0x4e69be[0x0]['findAncestor']('table');let _0x29b60d;if('removeTableRow'==_0x3ffd08){const _0x37e446=_0x455788['getRowIndexes'](_0x4e69be);_0x29b60d={'startRow':_0x37e446['first'],'endRow':_0x37e446['last'],'includeAllSlots':!0x0};}else{const _0x7c6e27=_0x455788['getColumnIndexes'](_0x4e69be);_0x29b60d={'startColumn':_0x7c6e27['first'],'endColumn':_0x7c6e27['last'],'includeAllSlots':!0x0};}const _0x60dfd9=_0x455788['createTableWalker'](_0x111991,_0x29b60d),_0x380dd7=Array['from'](_0x60dfd9)['map'](({cell:_0x4cc120})=>_0x4cc120),_0x193c13=_e(_0x380dd7['filter'](_0x50cfd2=>_0x50cfd2['hasAttribute'](_0x4527a5))),_0x26328a=_e(_0x380dd7['filter'](_0x316de0=>!_0x316de0['hasAttribute'](_0x4527a5)))['map'](_0x516aba=>_0x49fd34['createRangeOn'](_0x516aba)),_0x1e1ddc=_0x355329['markMultiRangeDeletion'](_0x26328a,_0x44fd5f);if(_0x1e1ddc&&('tableRow'==_0x1e1ddc['subType']||'tableColumn'==_0x1e1ddc['subType'])){const _0x5f22cb=this['_getSuggestionCoords'](_0x1e1ddc);for(const _0x317e9d of _0x193c13){const _0x5d8d1f=_0x49fd34['createRangeOn'](_0x317e9d),_0x3aa2e0=_0x455788['getCellLocation'](_0x317e9d),_0x3f26d4=_0x317e9d['getAttribute'](_0x4527a5)-0x1,_0x111b5e=_0x5f22cb[_0x27c2b8],_0x1a5200=_0x5f22cb[_0x5793a3];_0x111b5e<=_0x3aa2e0[_0x14285b]&&_0x3aa2e0[_0x14285b]+_0x3f26d4<=_0x1a5200&&_0x1e1ddc['addRange'](_0x5d8d1f);}}});});}function _0x2287ff(_0x45c14a){const _0x147c1c=Array['from'](_0x3c3c2c['getRanges']())['map'](_0x2e98bf=>_0x7e27aa['fromRange'](_0x2e98bf));_0x479b2c['model']['change'](_0x417cc9=>{const _0x2e2b2d=_0x417cc9['batch'];_0x45c14a=_0x45c14a['filter'](_0x604e7c=>'$graveyard'!=_0x604e7c['root']['rootName']),_0x417cc9['setSelection'](_0x45c14a),_0x479b2c['commands']['get']('removeTableRow')['refresh'](),_0x479b2c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x479b2c['model']['enqueueChange'](()=>{_0x479b2c['model']['enqueueChange'](_0x2e2b2d,_0x31a1a7=>{const _0x16a5d3=_0x147c1c['filter'](_0x5d4299=>'$graveyard'!=_0x5d4299['root']['rootName']);_0x16a5d3['length']>0x0&&_0x31a1a7['setSelection'](_0x16a5d3);for(const _0x423a61 of _0x147c1c)_0x423a61['detach']();});});});}function _0x35def2(_0x2e8ef3){_0x479b2c['model']['change'](_0x539d93=>{const _0x52b881=Array['from'](_0x3c3c2c['getRanges']())['map'](_0x2d416b=>_0x7e27aa['fromRange'](_0x2d416b)),_0x30b327=[];for(const _0x2b83c1 of _0x2e8ef3)for(const _0xfbfbb3 of _0x2b83c1['getItems']({'shallow':!0x0}))_0x30b327['push'](_0xfbfbb3);for(const _0x123f18 of _0x30b327)'$graveyard'!=_0x123f18['root']['rootName']&&(_0x539d93['setSelection'](_0x539d93['createPositionAt'](_0x123f18,0x0)),_0x479b2c['commands']['get']('removeTableColumn')['refresh'](),_0x479b2c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x162667=_0x52b881['filter'](_0x32e132=>'$graveyard'!=_0x32e132['root']['rootName']);_0x162667['length']>0x0&&_0x539d93['setSelection'](_0x162667);for(const _0x2dd4df of _0x52b881)_0x2dd4df['detach']();});}function _0x4e5a3e(_0x471bec,_0x2bd82e){return _0x2bd82e['every'](_0x21a168=>_0x471bec['some'](_0xc5bca0=>_0xc5bca0['end']['isEqual'](_0x21a168['start'])||_0x21a168['end']['isEqual'](_0xc5bca0['start'])));}function _0x4291df(_0x3476fe,_0x413aef){return!_0x3476fe['some'](_0x23d61b=>_0x413aef['some'](_0xef5589=>_0x23d61b['isIntersecting'](_0xef5589)))&&_0x3476fe['some'](_0x557102=>_0x413aef['some'](_0x1d41ea=>_0x557102['end']['isTouching'](_0x1d41ea['start'])));}_0x355329['descriptionFactory']['registerDescriptionCallback'](_0x555121=>{if('insertion'!=_0x555121['type']&&'deletion'!=_0x555121['type'])return;const _0xcae823=_0x555121['getContainedElement']();if(null!=_0xcae823&&_0xcae823['is']('element','table')){if('insertion'==_0x555121['type']){const _0x3ff11a=_0x555121['getItems']()['filter'](_0x403aa9=>_0x403aa9['is']('$textProxy'))['map'](_0x2e0ae2=>_0x2e0ae2['data']);if(_0x3ff11a['length'])return{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ff11a['join']('\x20')+'\x22'))};}if('deletion'==_0x555121['type']){const _0x2e306d=_0x555121['getItems']()['filter'](_0x4e2dc4=>_0x4e2dc4['is']('$textProxy'))['map'](_0xd73036=>_0xd73036['data']);if(_0x2e306d['length'])return{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2e306d['join']('\x20')+'\x22'))};}}}),_0x355329['descriptionFactory']['registerDescriptionCallback'](_0x2a4371=>{if('tableRow'==_0x2a4371['subType']){const _0x41678b=_0x2a4371['getItems']()['filter'](_0x54cb36=>_0x54cb36['is']('$textProxy'))['map'](_0x52d842=>_0x52d842['data']),_0x31037f=this['_getSuggestionCoords'](_0x2a4371),_0x3e5550=_0x31037f['maxRow']-_0x31037f['minRow']+0x1;if('insertion'==_0x2a4371['type'])return _0x41678b['length']?{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e5550,'\x22'+_0x41678b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_ROW',_0x3e5550))};if('deletion'==_0x2a4371['type'])return _0x41678b['length']?{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e5550,'\x22'+_0x41678b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_ROW',_0x3e5550))};}if('tableColumn'==_0x2a4371['subType']){const _0x5b597d=_0x2a4371['getItems']()['filter'](_0x58999d=>_0x58999d['is']('$textProxy'))['map'](_0x3cfb72=>_0x3cfb72['data']),_0x22fb22=this['_getSuggestionCoords'](_0x2a4371),_0x286148=_0x22fb22['maxColumn']-_0x22fb22['minColumn']+0x1;if('insertion'==_0x2a4371['type'])return _0x5b597d['length']?{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x286148,'\x22'+_0x5b597d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_COLUMN',_0x286148))};if('deletion'==_0x2a4371['type'])return _0x5b597d['length']?{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x286148,'\x22'+_0x5b597d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_COLUMN',_0x286148))};}}),_0x355329['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2287ff),_0x355329['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2287ff),_0x355329['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x35def2),_0x355329['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x35def2),_0x355329['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e5a3e),_0x355329['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e5a3e),_0x355329['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4291df),_0x355329['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4291df);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3d00ae=this['editor'],_0x5ba9e1=_0x3d00ae['model']['document']['selection'];return(_0x4b02fc,_0x421e6c)=>{_0x3d00ae['model']['change'](_0x758c3f=>{const {commandName:_0xe1103c,commandParams:_0x120562}=_0x421e6c;let _0x8dd406=_0x4b02fc[0x0]['end']['nodeBefore'];_0x120562&&_0x120562[0x0]&&!0x1===_0x120562[0x0]['forceValue']&&(_0x8dd406=_0x4b02fc[0x0]['start']['nodeAfter']);const _0xe177ff=_0x758c3f['createRangeIn'](_0x8dd406);if('$graveyard'==_0xe177ff['root']['rootName'])return;const _0x3cf78c=Array['from'](_0x5ba9e1['getRanges']())['map'](_0xe3320e=>_0x7e27aa['fromRange'](_0xe3320e));_0x758c3f['setSelection'](_0xe177ff),_0x3d00ae['commands']['get'](_0xe1103c)['refresh'](),_0x120562['push']({'forceDefaultExecution':!0x0}),_0x3d00ae['execute'](_0xe1103c,..._0x120562);const _0xb0e470=_0x3cf78c['filter'](_0x3d15b5=>'$graveyard'!=_0x3d15b5['root']['rootName']);_0xb0e470['length']>0x0&&_0x758c3f['setSelection'](_0xb0e470);for(const _0x235e06 of _0x3cf78c)_0x235e06['detach']();});};}['_getCoordsForCells'](_0x32f1cc){const _0x44c721=this['editor']['plugins']['get']('TableUtils');let _0x54f07d=Number['MAX_SAFE_INTEGER'],_0x459dac=Number['MIN_SAFE_INTEGER'],_0x1e9a98=Number['MAX_SAFE_INTEGER'],_0x1c6cbd=Number['MIN_SAFE_INTEGER'];for(const _0x42263a of _0x32f1cc){if('$graveyard'==_0x42263a['root']['rootName'])continue;const {row:_0x2c3cfb,column:_0x2a6c9a}=_0x44c721['getCellLocation'](_0x42263a),_0xbcdcef=_0x42263a['hasAttribute']('rowspan')?_0x42263a['getAttribute']('rowspan')-0x1:0x0,_0x56a260=_0x42263a['hasAttribute']('colspan')?_0x42263a['getAttribute']('colspan')-0x1:0x0;_0x54f07d=_0x2c3cfb<_0x54f07d?_0x2c3cfb:_0x54f07d,_0x459dac=_0x2c3cfb+_0xbcdcef>_0x459dac?_0x2c3cfb+_0xbcdcef:_0x459dac,_0x1e9a98=_0x2a6c9a<_0x1e9a98?_0x2a6c9a:_0x1e9a98,_0x1c6cbd=_0x2a6c9a+_0x56a260>_0x1c6cbd?_0x2a6c9a+_0x56a260:_0x1c6cbd;}return{'minRow':_0x54f07d,'maxRow':_0x459dac,'minColumn':_0x1e9a98,'maxColumn':_0x1c6cbd};}['_setupColumnsRowsFixing'](){const _0x4d6f93=this['editor'],_0x22744a=_0x4d6f93['plugins']['get']('TrackChangesEditing'),_0x3150f0=_0x4d6f93['plugins']['get']('TableUtils');_0x4d6f93['model']['document']['on']('change:data',()=>{const _0x1e288c=Array['from'](_0x4d6f93['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cf3c7,data:_0x39b278}of _0x1e288c){const {group:_0x177735,id:_0x915a2f,subType:_0x1b8b74}=_0x22744a['_splitMarkerName'](_0x1cf3c7);if('suggestion'!=_0x177735)continue;if(null!=_0x39b278['oldRange'])continue;const _0xd1a27c=_0x22744a['getSuggestion'](_0x915a2f);this['_tablePostFixingSubtypes']['includes'](_0x1b8b74)&&this['_tableSuggestions']['add'](_0xd1a27c);}},{'priority':'low'});const _0x4ad6f5=(_0x1777dd,_0x571cc6)=>{let _0x5846cd=!0x1;const _0x383c3d=_0x571cc6['createRangeOn'](_0x1777dd),_0x2907f2=_0x1777dd['findAncestor']('table'),_0x2b9844=_0x3150f0['getCellLocation'](_0x1777dd);for(const _0x1abb05 of this['_tableSuggestions']){const _0x15e29d=_0x1abb05['subType'],_0x28087d=_0x15e29d['startsWith']('tablePaste'),_0x55e64b=_0x15e29d['substr'](_0x28087d?0xa:0x5),_0x10dd7e=_0x55e64b['toLowerCase'](),_0x44d8ca=_0x10dd7e['substr'](0x0,0x3)+'span',_0x4b2bb0='min'+_0x55e64b,_0x55d01f='max'+_0x55e64b;if(!_0x1abb05['isInContent'])continue;if(_0x2907f2!=_0x1abb05['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1abb05['isIntersectingWithRange'](_0x383c3d))continue;const _0x5ce4f7=_0x1777dd['hasAttribute'](_0x44d8ca)?_0x1777dd['getAttribute'](_0x44d8ca)-0x1:0x0,_0x2f3fd3=this['_getSuggestionCoords'](_0x1abb05),_0x3a0ab6=_0x2f3fd3[_0x4b2bb0],_0x1964e7=_0x2f3fd3[_0x55d01f];_0x3a0ab6<=_0x2b9844[_0x10dd7e]&&_0x2b9844[_0x10dd7e]+_0x5ce4f7<=_0x1964e7&&(_0x1abb05['addRange'](_0x383c3d),_0x5846cd=!0x0);}return _0x5846cd;};_0x4d6f93['model']['document']['registerPostFixer'](_0x199992=>{let _0x4844d0=!0x1;for(const _0x1461c4 of _0x4d6f93['model']['document']['differ']['getChanges']())if('insert'==_0x1461c4['type']){if('tableRow'==_0x1461c4['name']){for(const _0x5b7d42 of _0x1461c4['position']['nodeAfter']['getChildren']())_0x4844d0=_0x4844d0||_0x4ad6f5(_0x5b7d42,_0x199992);}else'tableCell'==_0x1461c4['name']&&(_0x4844d0=_0x4844d0||_0x4ad6f5(_0x1461c4['position']['nodeAfter'],_0x199992));}return _0x4844d0;});}['_getSuggestionCoords'](_0x1b57b5){return this['_getCoordsForCells'](_0x1b57b5['getRanges']()['map'](_0x7e11a1=>_0x7e11a1['start']['nodeAfter']));}}function _e(_0x11260a){return Array['from'](new Set(_0x11260a)['values']());}class $t extends _0x21c11d{static get['requires'](){return[Nt];}['afterInit'](){const _0x5e8f9e=this['editor'],_0x13ed72=_0x5e8f9e['model']['document']['selection'],_0x5b7f0d=_0x5e8f9e['locale'];if(!_0x5e8f9e['plugins']['has']('TableEditing'))return;const _0x1ab398=_0x5e8f9e['plugins']['get']('TrackChangesEditing'),_0x58da7b=_0x5e8f9e['plugins']['get']('TableUtils'),_0x50ac3f=_0x5e8f9e['plugins']['get'](Nt);_0x50ac3f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ab398['enableCommand']('mergeTableCells',()=>{const _0x16a788=_0x58da7b['getSelectionAffectedTableCells'](_0x5e8f9e['model']['document']['selection']);_0x5e8f9e['model']['change'](()=>{_0x1ab398['markMultiRangeBlockFormat'](_0x16a788,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5e8f9e['commands']['get']('mergeTableCells')['on']('execute',(_0x1c6a74,_0x45a1b5)=>{_0x5e8f9e['commands']['get']('trackChanges')['value']&&(_0x45a1b5['length']>0x0&&_0x45a1b5[_0x45a1b5['length']-0x1]&&_0x45a1b5[_0x45a1b5['length']-0x1]['forceDefaultExecution']||_0x1ab398['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1c6a74['stop']());},{'priority':'highest'});for(const _0x25ed37 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xdd6cc6=_0x5e8f9e['commands']['get'](_0x25ed37);_0x1ab398['enableCommand'](_0x25ed37,()=>{const _0x4760a4=_0x5e8f9e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8b721c=>_0x8b721c['is']('element','tableCell')),_0x1ca055=_0xdd6cc6['value'];_0x5e8f9e['model']['change'](()=>{_0x1ab398['markMultiRangeBlockFormat']([_0x4760a4,_0x1ca055],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x593375 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1604c3=_0x5e8f9e['commands']['get'](_0x593375);_0x1ab398['enableCommand'](_0x593375,()=>{const _0x5bf6c5=_0x58da7b['getSelectionAffectedTableCells'](_0x5e8f9e['model']['document']['selection'])[0x0],_0xfdb4e2=_0x5bf6c5['findAncestor']('table'),{column:_0x3315f7,row:_0x362013}=_0x58da7b['getCellLocation'](_0x5bf6c5);let _0x484955=[];if('horizontally'==_0x1604c3['direction']){const _0x4929ba=_0x58da7b['createTableWalker'](_0xfdb4e2,{'startRow':_0x362013,'endRow':_0x362013,'includeAllSlots':!0x0});_0x484955=Array['from'](_0x4929ba)['map'](_0x5f25de=>_0x5f25de['cell']);}else{const _0x4466ec=_0x58da7b['createTableWalker'](_0xfdb4e2,{'column':_0x3315f7,'includeAllSlots':!0x0});_0x484955=Array['from'](_0x4466ec)['map'](_0x16a47d=>_0x16a47d['cell']);}_0x5e8f9e['model']['change'](_0x38e156=>{_0x1ab398['markBlockFormat'](_0x38e156['createRangeOn'](_0x5bf6c5),{'commandName':_0x593375,'commandParams':[]},_0x484955,_0x593375);});});}_0x1ab398['descriptionFactory']['registerDescriptionCallback'](_0x3d931f=>{if('formatBlock'!=_0x3d931f['type']&&'formatInline'!=_0x3d931f['type'])return;const {data:_0x3fcedb}=_0x3d931f;return _0x3fcedb&&'mergeTableCells'==_0x3fcedb['commandName']?{'type':'format','content':o(_0x5b7f0d,'*Merge\x20cells*')}:void 0x0;}),_0x1ab398['descriptionFactory']['registerDescriptionCallback'](_0x33ff14=>{if('formatBlock'!=_0x33ff14['type']&&'formatInline'!=_0x33ff14['type'])return;const {data:_0x1cdb98}=_0x33ff14;return _0x1cdb98?'splitTableCellVertically'==_0x1cdb98['commandName']?{'type':'format','content':o(_0x5b7f0d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1cdb98['commandName']?{'type':'format','content':o(_0x5b7f0d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x34cf74=_0x50ac3f['_acceptFormatSuggestionCallbackFactory']();for(const _0x56da61 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ab398['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56da61,'accept',_0x34cf74);for(const _0x44da94 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ab398['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44da94,'accept',_0x34cf74);_0x1ab398['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x252b18=>{_0x5e8f9e['model']['change'](_0x41f96b=>{const _0x59beb9=Array['from'](_0x13ed72['getRanges']())['map'](_0x30cf7f=>_0x7e27aa['fromRange'](_0x30cf7f));_0x41f96b['setSelection'](_0x252b18),_0x5e8f9e['commands']['get']('mergeTableCells')['refresh'](),_0x5e8f9e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xe6825b=_0x59beb9['filter'](_0x2f9647=>'$graveyard'!=_0x2f9647['root']['rootName']);_0xe6825b['length']>0x0&&_0x41f96b['setSelection'](_0xe6825b);for(const _0x390034 of _0x59beb9)_0x390034['detach']();});});for(const _0x439e1d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x463157=_0x5e8f9e['commands']['get'](_0x439e1d);_0x463157['on']('set:isEnabled',(_0x12ca7b,_0x50e477,_0x22c5ee)=>{if(_0x22c5ee){const _0x2e8db6=_0x5e8f9e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4034b7=>_0x4034b7['is']('element','tableCell'));this['_areMergableCells'](_0x463157['value'],_0x2e8db6)||(_0x12ca7b['return']=!0x1,_0x12ca7b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1db092=this['editor']['commands']['get']('mergeTableCells'),_0x6277e4=this['editor']['plugins']['get']('TableUtils');if(!_0x1db092['isEnabled'])return!0x1;const _0x19b2a6=_0x6277e4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1dd05d of _0x19b2a6)for(const _0x3213ad of _0x19b2a6)if(_0x1dd05d!=_0x3213ad&&!this['_areMergableCells'](_0x1dd05d,_0x3213ad))return!0x1;return!0x0;}['_areMergableCells'](_0x5bcf8a,_0x41ebcd){const _0x3d2e08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x436731=this['editor']['model']['createRangeOn'](_0x5bcf8a),_0x5d6003=this['editor']['model']['createRangeOn'](_0x41ebcd),_0x3b6fde=new Set(),_0xa41004=new Set();for(const _0xe51401 of _0x3d2e08['getSuggestions']())if(('insertion'==_0xe51401['type']||'deletion'==_0xe51401['type']||'mergeTableCells'==_0xe51401['subType'])&&_0xe51401['isInContent']){for(const _0xeefe7b of _0xe51401['getRanges']())_0xeefe7b['containsRange'](_0x436731,!0x0)&&_0x3b6fde['add'](_0xe51401['type']+':'+_0xe51401['author']['id']),_0xeefe7b['containsRange'](_0x5d6003,!0x0)&&_0xa41004['add'](_0xe51401['type']+':'+_0xe51401['author']['id']);}if(_0x3b6fde['size']!=_0xa41004['size'])return!0x1;for(const _0x5bd970 of _0x3b6fde)if(!_0xa41004['has'](_0x5bd970))return!0x1;return!0x0;}}class vt extends _0x21c11d{static get['requires'](){return[Nt];}['afterInit'](){const _0x3fe22b=this['editor'];if(!_0x3fe22b['plugins']['has']('TableEditing'))return;const _0x2e59a1=_0x3fe22b['locale'],_0x176a2b=_0x3fe22b['plugins']['get']('TrackChangesEditing');_0x176a2b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x176a2b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x176a2b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2e59a1,'FORMAT_HEADER_ROW')),_0x176a2b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2e59a1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1136bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15d645=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x1136bd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x15d645),_0x1136bd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x15d645),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x17531a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3de971=this['editor']['plugins']['get']('TableUtils');function _0x86a7d({showActiveMarker:_0x20a0a0=!0x0,setDataAttribute:_0x2f879b=!0x0}={}){return(_0x1886a3,_0x226e49,_0x28f86a)=>{const {type:_0x2bc56c,id:_0x34e04d}=_0x17531a['_splitMarkerName'](_0x226e49['markerName']);if(!_0x17531a['hasSuggestion'](_0x34e04d))return;const _0x551ffd=_0x17531a['getSuggestion'](_0x34e04d),_0x599047=_0x551ffd['data'];if('formatBlock'!=_0x551ffd['type']||!_0x599047||'setTableColumnHeader'!=_0x599047['commandName'])return;if(_0x226e49['item'])return void _0x1886a3['stop']();if(!_0x28f86a['consumable']['consume'](_0x226e49['markerRange'],_0x1886a3['name']))return;const _0x437b65=_0x226e49['markerRange']['start']['nodeAfter'],_0x30efce=_0x226e49['markerRange']['end']['nodeBefore'],_0x104467=_0x437b65['parent']['parent'],{column:_0x2814e2}=_0x3de971['getCellLocation'](_0x437b65),{column:_0x23d3b0}=_0x3de971['getCellLocation'](_0x30efce);for(let _0x477103=_0x2814e2;_0x477103<=_0x23d3b0;_0x477103++){const _0x33df07=_0x3de971['createTableWalker'](_0x104467,{'column':_0x477103,'includeAllSlots':!0x1});for(const _0xec5686 of _0x33df07){const _0x231ddc=_0xec5686['cell'],_0x174a12=_0x28f86a['mapper']['toViewElement'](_0x231ddc);_0x28f86a['writer']['addClass']('ck-suggestion-marker-'+_0x2bc56c,_0x174a12),_0x2f879b&&_0x28f86a['writer']['setAttribute']('data-suggestion',_0x34e04d,_0x174a12),_0x28f86a['mapper']['bindElementToMarker'](_0x174a12,_0x226e49['markerName']),_0x20a0a0&&(_0x17531a['activeMarkers']['includes'](_0x226e49['markerName'])?_0x28f86a['writer']['addClass']('ck-suggestion-marker--active',_0x174a12):_0x28f86a['writer']['removeClass']('ck-suggestion-marker--active',_0x174a12));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x86a7d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7cfda6,_0xa3c256,_0x2f797c)=>{_0x2f797c['options']['showSuggestionHighlights']&&_0x86a7d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x7cfda6,_0xa3c256,_0x2f797c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x17c0c4,_0x1341ce,_0x26e765)=>{const {type:_0x349222,id:_0x58de74}=_0x17531a['_splitMarkerName'](_0x1341ce['markerName']);if(!_0x17531a['hasSuggestion'](_0x58de74))return;const _0x117d9d=_0x17531a['getSuggestion'](_0x58de74),_0x17123b=_0x117d9d['data'];if('formatBlock'!=_0x117d9d['type']||!_0x17123b||'setTableColumnHeader'!=_0x17123b['commandName'])return;const _0x7cc373=_0x26e765['mapper']['markerNameToElements'](_0x1341ce['markerName']);if(_0x7cc373){for(const _0x3219ea of _0x7cc373)_0x26e765['writer']['removeClass']('ck-suggestion-marker-'+_0x349222,_0x3219ea),_0x26e765['writer']['removeClass']('ck-suggestion-marker--active',_0x3219ea),_0x26e765['writer']['removeAttribute']('data-suggestion',_0x3219ea),_0x26e765['mapper']['unbindElementFromMarkerName'](_0x3219ea,_0x1341ce['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x56525c=this['editor'],_0xd0d224=_0x56525c['locale'];function _0x335967(_0x3d941b){return{'type':'format','content':o(_0xd0d224,'*Format:*\x20%0',_0x3d941b)};}_0x56525c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308d12=>{if('formatBlock'!=_0x308d12['type'])return;const {data:_0x365353}=_0x308d12;if(_0x365353){if('setTableRowHeader'==_0x365353['commandName']){const _0x595aa8=_0x365353['commandParams'][0x0]['forceValue'];return _0x335967(o(_0xd0d224,_0x595aa8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x365353['commandName']){const _0x5db95f=_0x365353['commandParams'][0x0]['forceValue'];return _0x335967(o(_0xd0d224,_0x5db95f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x21c11d{['afterInit'](){const _0x303a8d=this['editor'],_0x45e54b=_0x303a8d['locale'],_0x51cabc=_0x303a8d['plugins']['get']('TrackChangesEditing');function _0x1e2e1b(_0x1079b1){return{'type':'format','content':''+o(_0x45e54b,'*Set\x20table\x20type:*\x20%0',_0x1079b1)};}_0x303a8d['plugins']['has']('TableLayout')&&(_0x51cabc['enableCommand']('insertTableLayout'),_0x51cabc['enableDefaultAttributesIntegration']('tableType'),_0x51cabc['descriptionFactory']['registerElementLabel'](_0x5ead4b=>_0x5ead4b['is']('element','table')&&'layout'===_0x5ead4b['getAttribute']('tableType'),_0x10992f=>o(_0x45e54b,'ELEMENT_LAYOUT_TABLE',_0x10992f)),_0x51cabc['descriptionFactory']['registerDescriptionCallback'](_0x492ffb=>{const {data:_0x311a74}=_0x492ffb;if(_0x311a74&&'tableType'==_0x311a74['key'])switch(_0x311a74['newValue']){case'layout':return _0x1e2e1b(o(_0x45e54b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1e2e1b(o(_0x45e54b,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x336fdc=>[_0x336fdc,null]));class Bt extends _0x21c11d{static get['requires'](){return[Nt];}['afterInit'](){const _0x42692a=this['editor'];if(!_0x42692a['plugins']['has']('TableClipboard'))return;const _0x4b376d=_0x42692a['plugins']['get']('TrackChangesEditing'),_0x3b4c0b=_0x42692a['plugins']['get']('TableUtils'),_0x52ef4e=_0x42692a['plugins']['get'](Nt),_0x253c95=_0x42692a['plugins']['get']('TableClipboard'),_0x7b7e7=_0x42692a['plugins']['get']('TableSelection'),_0x344e33=_0x42692a['plugins']['get'](_0x389491);_0x52ef4e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42692a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42692a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5dfa82=null,_0x3c0a01=!0x1;_0x344e33['on']('contentInsertion',(_0x558785,_0x5ebfa8)=>{_0x3c0a01='paste'===_0x5ebfa8['method'];}),_0x42692a['model']['on']('insertContent',(_0x50a759,_0x41ebd9)=>{if(!_0x3c0a01&&null===_0x7b7e7['getSelectedTableCells']())return;const [_0x3a98a5,_0x25dfe8]=_0x41ebd9,_0x4baecf=_0x41ebd9[_0x41ebd9['length']-0x1];_0x4baecf&&_0x4baecf['forceDefaultExecution']||_0x4b376d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x18bbcf,_0x58c59f,_0x49e695,_0x6e50e9,_0x261493){if(_0x58c59f&&!_0x58c59f['is']('documentSelection'))return!0x1;const _0x1536b9=_0x261493['getTableIfOnlyTableInContent'](_0x18bbcf,_0x49e695);if(!_0x1536b9||!Oe(_0x1536b9,void 0x0,_0x6e50e9))return!0x1;const _0x2e4298=_0x6e50e9['getSelectionAffectedTableCells'](_0x49e695['document']['selection']);if(!_0x2e4298['length'])return!0x1;const _0x5c2054=_0x2e4298[0x0]['findAncestor']('table'),_0x37fd3d=_0x6e50e9['getRowIndexes'](_0x2e4298),_0x30d64d=_0x6e50e9['getColumnIndexes'](_0x2e4298),_0x800ad={'startRow':_0x37fd3d['first'],'endRow':_0x37fd3d['last'],'startColumn':_0x30d64d['first'],'endColumn':_0x30d64d['last']};return 0x1==_0x2e4298['length']&&(_0x800ad['endRow']+=_0x6e50e9['getRows'](_0x1536b9)-0x1,_0x800ad['endColumn']+=_0x6e50e9['getColumns'](_0x1536b9)-0x1),Oe(_0x5c2054,_0x800ad,_0x6e50e9);}(_0x3a98a5,_0x25dfe8,_0x42692a['model'],_0x3b4c0b,_0x253c95)&&(_0x50a759['stop'](),_0x5dfa82={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42692a['model']['change'](()=>{_0x42692a['model']['insertContent'](_0x41ebd9[0x0],_0x41ebd9[0x1],_0x41ebd9[0x2],{'forceDefaultExecution':!0x0});const _0x264097=_0x49bc9e(),{rowInsertionRanges:_0x3a1e43,columnInsertionRanges:_0x1b1397,insertionRanges:_0x182214,deletionRanges:_0x2873f3,cells:_0x2f94a2}=_0x5dfa82;_0x3a1e43['length']&&_0x4b376d['markMultiRangeInsertion'](_0x3a1e43,'tablePasteRow',{'tablePasteChainId':_0x264097}),_0x1b1397['length']&&_0x4b376d['markMultiRangeInsertion'](_0x1b1397,'tablePasteColumn',{'tablePasteChainId':_0x264097}),_0x182214['length']&&(_0x4b376d['markMultiRangeInsertion'](_0x182214,'tablePaste',{'tablePasteChainId':_0x264097,'skipNestingCheck':!0x0}),_0x182214['forEach'](_0x22812b=>_0x22812b['detach']?.())),_0x2873f3['length']&&(_0x4b376d['markMultiRangeDeletion'](_0x2873f3,'tablePaste',{'tablePasteChainId':_0x264097,'skipNestingCheck':!0x0}),_0x2873f3['forEach'](_0x4fbb80=>_0x4fbb80['detach']?.()));const _0x8d2661=_0x4b376d['markMultiRangeBlockFormat'](_0x2f94a2['map'](({element:_0x372da6})=>_0x372da6),{'formatGroupId':_0x49bc9e()},[],'tablePasteCell',{'tablePasteChainId':_0x264097});if(_0x8d2661){const _0x435704=_0x8d2661['getMarkers'](),_0x287ddb=[];for(const {element:_0x22fcbc,attributes:_0x25e645}of _0x2f94a2){if(!_0x25e645)continue;const _0x1e186f=_0x42692a['model']['createRangeOn'](_0x22fcbc),_0x3e05ed=_0x435704['find'](_0x45237b=>_0x45237b['getRange']()['isEqual'](_0x1e186f));_0x3e05ed&&_0x287ddb['push']([_0x3e05ed['name'],_0x25e645]);}_0x287ddb['length']&&_0x8d2661['setAttribute']('markerAttributes',Object['fromEntries'](_0x287ddb));}_0x5dfa82=null;}));},{'priority':_0x1b8846['high']+0xa}),_0x344e33['on']('contentInsertion',()=>{_0x3c0a01=!0x1;},{'priority':'lowest'}),_0x42692a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4f5a45,_0x3fab2d)=>{const [_0x5ab3fa,_0x7cd71c,,_0x47aaa8]=_0x3fab2d;if(!_0x5dfa82)return;_0x4f5a45['stop']();const _0x241293=_0x5ab3fa['cell'],_0x316234=_0x7cd71c,_0x2a009b=Be(_0x241293),_0x25f88c=Be(_0x316234);_0x4f5a45['return']=_0x241293;let _0x448f0c=null,_0x161675=null;if(_0x25f88c||_0x2a009b){if(_0x2a009b&&!_0x25f88c){_0x47aaa8['remove'](_0x241293['getChild'](0x0));for(const _0x23f396 of Array['from'](_0x316234['getChildren']()))_0x47aaa8['insert'](_0x23f396,_0x241293,'end');const _0x3558a3=_0x5dfa82['rowInsertionIndexes']['includes'](_0x5ab3fa['row']),_0x190f56=_0x5dfa82['columnInsertionIndexes']['includes'](_0x5ab3fa['column']);_0x3558a3||_0x190f56||(_0x448f0c=_0x7e27aa['fromRange'](_0x47aaa8['createRangeIn'](_0x241293)));}else _0x25f88c&&!_0x2a009b&&(_0x161675=_0x47aaa8['createRangeIn'](_0x241293));}else{const _0x2ae1ee=_0x47aaa8['createElement']('tableCellSuggestion'),_0x173c3a=_0x47aaa8['createElement']('tableCellSuggestion');_0x47aaa8['wrap'](_0x47aaa8['createRangeIn'](_0x241293),_0x173c3a),_0x47aaa8['insert'](_0x2ae1ee,_0x241293,0x0);for(const _0x588c27 of Array['from'](_0x316234['getChildren']()))_0x47aaa8['insert'](_0x588c27,_0x2ae1ee,'end');_0x448f0c=_0x7e27aa['fromRange'](_0x47aaa8['createRangeOn'](_0x2ae1ee)),_0x161675=_0x7e27aa['fromRange'](_0x47aaa8['createRangeOn'](_0x173c3a));}const _0x5bdaa5=Array['from'](_0x316234['getAttributes']())['filter'](([_0x2a8236])=>Re['includes'](_0x2a8236));_0x5dfa82['cells']['push']({'element':_0x241293,'attributes':_0x5bdaa5['length']?Object['fromEntries'](_0x5bdaa5):null}),_0x448f0c&&_0x5dfa82['insertionRanges']['push'](_0x448f0c),_0x161675&&_0x5dfa82['deletionRanges']['push'](_0x161675);},{'priority':'high'}),_0x3b4c0b['on']('insertColumns',(_0x20f9cf,_0x6606b3)=>{const [_0x3bd93e,_0x1aa643={}]=_0x6606b3;if(!_0x5dfa82)return;const _0x2954be=_0x1aa643['at']||0x0,_0x13e91f=_0x1aa643['columns']||0x1;_0x5dfa82['columnInsertionIndexes']=new Array(_0x13e91f)['fill'](_0x2954be)['map']((_0x2056d1,_0x4d34c9)=>_0x2056d1+_0x4d34c9);for(const {cell:_0x65585b}of _0x3b4c0b['createTableWalker'](_0x3bd93e,{'startColumn':_0x2954be,'endColumn':_0x2954be+_0x13e91f-0x1}))_0x5dfa82['columnInsertionRanges']['push'](_0x42692a['model']['createRangeOn'](_0x65585b));},{'priority':'low'}),_0x3b4c0b['on']('insertRows',(_0xdf4f9e,_0x54ab61)=>{const [_0x28385b,_0x24b5a7={}]=_0x54ab61;if(!_0x5dfa82)return;const _0xee626d=_0x24b5a7['at']||0x0,_0x5b5b33=_0x24b5a7['rows']||0x1;_0x5dfa82['rowInsertionIndexes']=new Array(_0x5b5b33)['fill'](_0xee626d)['map']((_0x4866c6,_0x25183c)=>_0x4866c6+_0x25183c);for(const {cell:_0x2b1bbc}of _0x3b4c0b['createTableWalker'](_0x28385b,{'startRow':_0xee626d,'endRow':_0xee626d+_0x5b5b33-0x1}))_0x5dfa82['rowInsertionRanges']['push'](_0x42692a['model']['createRangeOn'](_0x2b1bbc));},{'priority':'low'}),_0x4b376d['descriptionFactory']['registerDescriptionCallback'](_0x5aac38=>{if(_0x5aac38['subType']&&_0x5aac38['subType']['startsWith']('tablePaste'))return _0x5aac38['previous']?{}:{'type':'insertion','content':o(_0x42692a['locale'],'*Replace\x20table\x20cells*')};});const _0xf21ac0=()=>!0x1;for(const _0x27875d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b376d['_suggestionFactory']['registerCustomCallback']('insertion',_0x27875d,'join',_0xf21ac0),_0x4b376d['_suggestionFactory']['registerCustomCallback']('deletion',_0x27875d,'join',_0xf21ac0),_0x4b376d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27875d,'join',_0xf21ac0);_0x4b376d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xf21ac0),_0x4b376d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5bc518,_0x2eb289,_0x492a59)=>{const _0x1be0c9=_0x5bc518['map'](_0x21c2fa=>_0x21c2fa['getContainedElement']())['filter'](_0x136a9f=>_0x136a9f),_0x4c49b0=new Map(_0x1be0c9['map'](_0xffa5f4=>[_0xffa5f4,null]));if(_0x5dfa82){for(const {element:_0x3b763f,attributes:_0x5ae526}of _0x5dfa82['cells'])_0x5ae526&&_0x4c49b0['set'](_0x3b763f,_0x5ae526);}else{if(_0x492a59&&_0x492a59['markerAttributes'])for(const [_0x50cc47,_0xbdec90]of Object['entries'](_0x492a59['markerAttributes'])){const _0x4c2cef=_0x42692a['model']['markers']['get'](_0x50cc47),_0x3badab=_0x4c2cef?_0x4c2cef['getRange']()['getContainedElement']():null;_0x3badab&&_0x4c49b0['set'](_0x3badab,_0xbdec90);}}_0x42692a['model']['change'](_0x39b119=>{for(const [_0x4c049a,_0x5352aa]of _0x4c49b0)_0x39b119['setAttributes']({...Ae,..._0x5352aa},_0x4c049a);});});const _0x31f035=(_0x358631,_0x331b28)=>{_0x4b376d['_suggestionFactory']['registerCustomCallback'](_0x358631,'tablePaste',_0x331b28,(_0x5f184c,_0x1be136,_0x172a2f)=>{_0x42692a['model']['change'](_0x149a8e=>{const _0x512129=[];for(const _0xbb1973 of _0x5f184c){const _0x39025b=_0xbb1973['start']['nodeAfter'];_0x39025b['is']('element','tableCellSuggestion')&&_0x512129['push'](_0x39025b);}_0x4b376d['_suggestionFactory']['getSuggestionCallback'](_0x358631,null,_0x331b28)(_0x5f184c,_0x1be136,_0x172a2f);for(const _0x420bc8 of _0x512129)'$graveyard'!=_0x420bc8['root']['rootName']&&_0x149a8e['unwrap'](_0x420bc8);});});};_0x31f035('insertion','accept'),_0x31f035('insertion','discard'),_0x31f035('deletion','accept'),_0x31f035('deletion','discard'),_0x4b376d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x315721=>{const _0x327a89=_0x315721['map'](_0x2a4e2f=>_0x2a4e2f['getContainedElement']()),_0x379d93=_0x327a89[0x0]['findAncestor']('table'),{minRow:_0x11023e,maxRow:_0xcfca24}=_0x52ef4e['_getCoordsForCells'](_0x327a89);_0x3b4c0b['removeRows'](_0x379d93,{'at':_0x11023e,'rows':_0xcfca24-_0x11023e+0x1});}),_0x4b376d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e9449=>{const _0x4741d5=_0x2e9449['map'](_0x4f4fa4=>_0x4f4fa4['getContainedElement']()),_0x365230=_0x4741d5[0x0]['findAncestor']('table'),{minColumn:_0x17f3b2,maxColumn:_0x39b4c6}=_0x52ef4e['_getCoordsForCells'](_0x4741d5);_0x3b4c0b['removeColumns'](_0x365230,{'at':_0x17f3b2,'columns':_0x39b4c6-_0x17f3b2+0x1});});const _0xea97f6=(_0x2f5028,_0x28d1d8)=>{if(!_0x28d1d8['subType']||!_0x28d1d8['subType']['startsWith']('tablePaste'))return;const _0x5c8342=_0x28d1d8['attributes']['tablePasteChainId'],_0x38d58c=_0x4b376d['getSuggestions']()['filter'](_0x3998d6=>_0x3998d6['isInContent']&&_0x3998d6['attributes']&&_0x3998d6['attributes']['tablePasteChainId']==_0x5c8342);_0x38d58c['length']&&_0x28d1d8['getAllAdjacentSuggestions']()['length']!=_0x38d58c['length']&&_0x38d58c['reduce']((_0x338365,_0x1bfce2)=>(_0x338365['next']=_0x1bfce2,_0x1bfce2['previous']=_0x338365,_0x1bfce2));};function _0x430ecd(_0x23a980,_0x31d449=!0x0){const {id:_0x10cde6,authorId:_0x39b670}=_0x4b376d['_splitMarkerName'](_0x23a980['markerName']),_0x1a2e8d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x38a258=_0x4b376d['activeMarkers']['includes'](_0x23a980['markerName']);return _0x38a258&&_0x1a2e8d['push']('ck-suggestion-marker--active'),{'classes':_0x1a2e8d,'attributes':{'data-suggestion':_0x10cde6,'data-author-id':_0x39b670},'priority':_0x38a258&&_0x31d449?0xbc2:0xbb8};}_0x4b376d['on']('suggestionLoaded',_0xea97f6,{'priority':'high'}),_0x4b376d['on']('suggestionUnloaded',_0xea97f6,{'priority':'high'}),_0x42692a['model']['document']['registerPostFixer'](()=>{let _0x3bf1d6=!0x1;const _0x2d4122=Array['from'](_0x42692a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bad57,data:_0x5f013e}of _0x2d4122){const {group:_0x1a71dd,type:_0x39ded7,id:_0x24858b}=_0x4b376d['_splitMarkerName'](_0x2bad57);if('suggestion'!=_0x1a71dd||'deletion'!=_0x39ded7||_0x5f013e['oldRange'])continue;if(!_0x4b376d['hasSuggestion'](_0x24858b))continue;const _0x1ce166=_0x4b376d['getSuggestion'](_0x24858b)['getRanges'](),_0x40755f=_0x42692a['plugins']['get']('Users')['me'];for(const _0x43f79d of _0x4b376d['getSuggestions']()){if(!_0x43f79d['isInContent']||_0x43f79d['author']!=_0x40755f)continue;if('formatBlock'!=_0x43f79d['type']||'tablePasteCell'!=_0x43f79d['subType'])continue;if(_0x43f79d['getRanges']()['every'](_0x4d4f90=>_0x1ce166['some'](_0x307dfc=>_0x307dfc['containsRange'](_0x4d4f90,!0x0)))){for(const _0x3ff33e of _0x43f79d['getAllAdjacentSuggestions']())_0x3ff33e['isInContent']&&(_0x3ff33e['discard'](),_0x3bf1d6=!0x0);}}}return _0x3bf1d6;}),_0x42692a['model']['document']['registerPostFixer'](_0x37f3a4=>{const _0x55dd79=_0x42692a['commands']['get']('redo');if(!_0x55dd79||!_0x55dd79['_createdBatches']['has'](_0x37f3a4['batch']))return!0x1;let _0x49b050=!0x1;const _0x1e2118=_0x42692a['plugins']['get']('Users')['me'],_0x3339a5=_0x42692a['model']['document']['differ']['getChanges'](),_0xd5eee5=Array['from'](_0x42692a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38300c,data:_0x40ac74})=>{const {group:_0x3a1517,subType:_0x1b3c5b,authorId:_0x223c89}=_0x4b376d['_splitMarkerName'](_0x38300c);return'suggestion'==_0x3a1517&&'tablePaste'==_0x1b3c5b&&_0x223c89==_0x1e2118['id']&&!_0x40ac74['oldRange'];});for(const _0x2e19d4 of _0x3339a5){if('insert'!=_0x2e19d4['type']||'tableCellSuggestion'!=_0x2e19d4['name']||0x1!=_0x2e19d4['length'])continue;const _0x5436ae=_0x37f3a4['createRange'](_0x2e19d4['position'],_0x2e19d4['position']['getShiftedBy'](0x1));if(!_0xd5eee5['find'](({data:_0x50424c})=>_0x50424c['newRange']['isEqual'](_0x5436ae))){for(const {name:_0x3939f2,data:_0x35472c}of _0xd5eee5)if(_0x5436ae['containsRange'](_0x35472c['newRange'])){_0x37f3a4['updateMarker'](_0x3939f2,{'range':_0x5436ae}),_0x49b050=!0x0;break;}}}return _0x49b050;}),_0x42692a['model']['document']['registerPostFixer'](_0x380d6d=>{let _0xc506f8=!0x1;const _0x1f3b0d=_0x42692a['plugins']['get']('Users')['me'],_0xd3ae5f=_0x4b376d['getSuggestions']()['filter'](_0x3e62ae=>_0x3e62ae['isInContent']&&_0x3e62ae['author']==_0x1f3b0d),_0x2abebb=new Set(),_0xb0116e=new Set();for(const _0x3348e3 of _0xd3ae5f)if('tablePaste'==_0x3348e3['subType'])for(const _0x233392 of _0x3348e3['getMarkers']()){const _0x2ad59a=_0x233392['getRange']()['getContainedElement']();if(_0x2ad59a){if(_0x2ad59a['is']('element','tableCellSuggestion')&&Be(_0x2ad59a)){_0x3348e3['removeMarker'](_0x233392['name']),_0x2abebb['add'](_0x2ad59a),_0xc506f8=!0x0;const _0x4f41df=_0x2ad59a['nextSibling'],_0x39f2c4=_0x2ad59a['previousSibling'],_0x4640ac=_0x4f41df&&_0x4f41df['is']('element','tableCellSuggestion'),_0x38ae72=_0x39f2c4&&_0x39f2c4['is']('element','tableCellSuggestion');_0x4640ac&&!_0x2abebb['has'](_0x4f41df)&&_0xb0116e['add'](_0x4f41df),_0x38ae72&&!_0x2abebb['has'](_0x39f2c4)&&_0xb0116e['add'](_0x39f2c4);}else _0x2ad59a['is']('element','paragraph')&&_0x2ad59a['isEmpty']&&(_0x3348e3['removeMarker'](_0x233392['name']),_0xc506f8=!0x0);}}else{if('tablePasteCell'==_0x3348e3['subType']){if(!_0x3348e3['attributes']||!_0x3348e3['attributes']['tablePasteChainId'])continue;const _0x9313f1=_0x3348e3['attributes']['markerAttributes'];if(_0x9313f1&&Object['keys'](_0x9313f1)['length'])continue;const _0x9337f5=_0x3348e3['attributes']['tablePasteChainId'];let _0x1b3919=!0x0,_0x2006d0=!0x0;for(const _0x1d04b5 of _0xd3ae5f)if(_0x1d04b5['subType']&&_0x1d04b5['subType']['startsWith']('tablePaste')){if(!_0x1d04b5['attributes']['tablePasteChainId']){_0x2006d0=!0x1;break;}if(_0x1d04b5['id']!=_0x3348e3['id']&&_0x1d04b5['attributes']['tablePasteChainId']==_0x9337f5){_0x1b3919=!0x1;break;}}_0x2006d0&&_0x1b3919&&(_0x3348e3['removeMarkers'](),_0xc506f8=!0x0);}}for(const _0xe6445b of _0x2abebb)_0x380d6d['remove'](_0xe6445b);for(const _0x3503f3 of _0xb0116e)_0x380d6d['unwrap'](_0x3503f3);return _0xc506f8;}),_0x42692a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x428708=>_0x430ecd(_0x428708),'converterPriority':'high'}),_0x42692a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e5eff,_0xbc9d55)=>_0xbc9d55['options']['showSuggestionHighlights']?_0x430ecd(_0x5e5eff,!0x1):null,'converterPriority':'high'});const _0x3da9e1=_0x42692a['editing']['view'];this['listenTo'](_0x3da9e1['document'],'clipboardOutput',(_0x395865,_0x1144cc)=>{const _0x1f9acb=[];for(const _0x1702fa of _0x3da9e1['createRangeIn'](_0x1144cc['content'])['getItems']())_0x1702fa['is']('element','suggestion-td')&&_0x1f9acb['push'](_0x1702fa);_0x3da9e1['change'](_0x41e8d3=>{for(const _0x4d8249 of _0x1f9acb)_0x41e8d3['move'](_0x41e8d3['createRangeIn'](_0x4d8249),_0x41e8d3['createPositionBefore'](_0x4d8249)),_0x41e8d3['remove'](_0x4d8249);});});}}function Be(_0x5e2369){if(_0x5e2369['isEmpty'])return!0x0;const _0x342f5b=_0x5e2369['getChild'](0x0);return _0x342f5b['is']('element','paragraph')&&_0x342f5b['isEmpty'];}function Oe(_0x239d71,_0x51c738={},_0x475372){for(const {isAnchor:_0x14d224,cellHeight:_0x1066c0,cellWidth:_0x125d4d}of _0x475372['createTableWalker'](_0x239d71,{'includeAllSlots':!0x0,..._0x51c738}))if(!_0x14d224||0x1!=_0x1066c0||0x1!=_0x125d4d)return!0x1;return!0x0;}class Ot extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33eae4=this['editor']['plugins']['get']('TrackChangesEditing');_0x33eae4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33eae4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33eae4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33eae4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33eae4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33eae4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x421b17,_0x1a507e){const _0x1ff2be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2da19c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1012b5=_0x1a507e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x17632e=_0x2da19c['getColumnGroupElement'](_0x1012b5);let _0x3e8c63=_0x17632e?_0x2da19c['getTableColumnsWidths'](_0x17632e):null,_0x194b54=_0x1012b5['getAttribute']('tableWidth')||null;const _0x4ee959=_0x1a507e['tableWidth']||_0x194b54,_0x4a5dc2=_0x1a507e['columnWidths']||_0x3e8c63,_0x37e53c=this['editor']['plugins']['get']('Users')['me'];for(const _0x223932 of _0x1ff2be['getSuggestions']()){const _0x2caa74=_0x223932['getContainedElement']();if('resizeTable'===_0x223932['subType']&&_0x2caa74===_0x1012b5){_0x223932['author']!==_0x37e53c&&_0x223932['discard']();const _0x11db55=_0x223932['data']['commandParams'];_0x194b54=_0x11db55[0x0]['tableWidth'],_0x3e8c63=_0x11db55[0x0]['columnWidths'];break;}}_0x421b17({'table':_0x1012b5,'tableWidth':_0x4ee959,'columnWidths':_0x4a5dc2}),_0x1ff2be['markBlockFormat'](_0x1012b5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x194b54,'columnWidths':_0x3e8c63}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x8a98d){if('formatBlock'!=_0x8a98d['type']&&'formatInline'!=_0x8a98d['type'])return;const {data:_0x73c42b}=_0x8a98d;if(_0x73c42b&&'resizeTable'===_0x73c42b['formatGroupId']){const _0x444e52='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x444e52)};}}}class xt extends _0x21c11d{['afterInit'](){const _0x4941d2=this['editor'];_0x4941d2['plugins']['has']('Template')&&_0x4941d2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x21c11d{['afterInit'](){const _0x483287=this['editor'];if(!_0x483287['commands']['get']('insertTableOfContents'))return;_0x483287['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x338ddc=_0x483287['plugins']['get']('TrackChangesEditing'),_0x34cff3=_0x483287['locale'];_0x338ddc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x318bee=>o(_0x34cff3,'ELEMENT_TABLE_OF_CONTENTS',_0x318bee));}}class Rt extends _0x21c11d{['afterInit'](){const _0x5412e0=this['editor'];if(!_0x5412e0['plugins']['has']('Title'))return;const _0x67e498=_0x5412e0['plugins']['get']('TrackChangesEditing');_0x67e498['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5412e0['locale'],'ELEMENT_TITLE')),_0x5412e0['model']['document']['registerPostFixer'](_0x31f451=>{let _0x14f101=!0x1;const _0x164872=Array['from'](_0x5412e0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23e26d,data:_0x3b9a4f}of _0x164872){const {group:_0x2337b1}=_0x67e498['_splitMarkerName'](_0x23e26d);if('suggestion'!==_0x2337b1||!_0x3b9a4f['newRange'])continue;const _0x60bfac=_0x3b9a4f['newRange'],_0x5d37fb=_0x60bfac['end']['nodeBefore'];if(!_0x5d37fb||!_0x5d37fb['is']('element','title-content'))continue;if(!_0x60bfac['start']['isTouching'](_0x60bfac['end']))continue;const _0x5c166a=_0x5412e0['model']['schema']['getNearestSelectionRange'](_0x60bfac['end'],'forward');if(_0x5c166a&&_0x5c166a['isCollapsed']){const _0x2211b3=_0x31f451['createRange'](_0x60bfac['start'],_0x5c166a['start']);_0x2211b3['isEqual'](_0x60bfac)||(_0x31f451['updateMarker'](_0x23e26d,{'range':_0x2211b3}),_0x14f101=!0x0);}_0x14f101||(_0x31f451['removeMarker'](_0x23e26d),_0x14f101=!0x0);}return _0x14f101;});}}class Tt extends _0x21c11d{['afterInit'](){const _0x365232=this['editor'],_0x47ca80=_0x365232['plugins']['get']('TrackChangesEditing');_0x365232['plugins']['has']('Uploadcare')&&(_0x47ca80['enableCommand']('uploadcare'),_0x365232['plugins']['has']('UploadcareImageEdit')&&(_0x47ca80['enableCommand']('uploadcareImageEdit'),_0x47ca80['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x47ca80['descriptionFactory']['registerDescriptionCallback'](_0x4adbdf=>{if('attribute'!=_0x4adbdf['type'])return;const {data:_0x24f960}=_0x4adbdf;return _0x24f960&&'uploadcareImageId'==_0x24f960['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x21c11d{['afterInit'](){const _0x346d11=this['editor'],_0x4f181=_0x346d11['plugins']['get']('TrackChangesEditing');_0x346d11['plugins']['has']('UndoEditing')&&(_0x4f181['enableCommand']('undo'),_0x4f181['enableCommand']('redo'));}}class Ut extends _0x21c11d{static get['requires'](){return[Nt];}['afterInit'](){const _0x132535=this['editor'];if(!_0x132535['plugins']['has']('TableCaptionEditing'))return;_0x132535['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x21c11d{['tableProperties'];['tableCellProperties'];constructor(_0x3f643e){super(_0x3f643e),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 _0x2fd4bf=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa8542d of this['tableProperties'])_0x2fd4bf['enableCommand'](_0xa8542d,(_0x352208,_0x3a5e0a)=>{const _0x55f892=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa8542d,[_0x55f892],this['tableProperties'],'tableProperties',_0x352208,_0x3a5e0a);});_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2fd4bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1f3a7e,_0x358543)=>this['handleDiscardAction'](this['tableProperties'],_0x1f3a7e,_0x358543)),_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x37d052 of this['tableCellProperties'])_0x2fd4bf['enableCommand'](_0x37d052,(_0x320930,_0x34df81)=>{const _0x3531ff=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x37d052,_0x3531ff,this['tableCellProperties'],'tableCellProperties',_0x320930,_0x34df81);});_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2fd4bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x29f849,_0x29168f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x29f849,_0x29168f)),_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2fd4bf['descriptionFactory']['registerDescriptionCallback'](_0x198f6c=>this['handleSuggestionDescription'](_0x198f6c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x15d411,_0x40c08,_0x183a95,_0x10d46f,_0x37d91b,_0x2feb09){const _0x437d39=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2feb09['batch'],()=>{for(const _0x46af9c of _0x40c08){if(this['_getSuggestion'](_0x46af9c,_0x10d46f))_0x37d91b(_0x2feb09);else{const _0x4a4dfd={};for(const _0x27ea2f of _0x183a95){const _0x341594=_0x46af9c['getAttribute'](_0x27ea2f);void 0x0!==_0x341594&&(_0x4a4dfd[_0x27ea2f]=_0x341594);}_0x37d91b(_0x2feb09),_0x437d39['markBlockFormat'](_0x46af9c,{'commandParams':[_0x4a4dfd]},[],_0x10d46f);}}});}['handleDiscardAction'](_0x5236d0,_0x446cc0,_0x11338a){const _0x54173a=_0x446cc0[0x0]['start']['nodeAfter'],_0x2fb95f=_0x11338a['commandParams'][0x0];this['editor']['model']['change'](_0x4bf6ba=>{for(const _0x50da2c of _0x5236d0)void 0x0!==_0x2fb95f[_0x50da2c]?_0x4bf6ba['setAttribute'](_0x50da2c,_0x2fb95f[_0x50da2c],_0x54173a):_0x4bf6ba['removeAttribute'](_0x50da2c,_0x54173a);});}['handleSuggestionDescription'](_0x43d944){if(_0x43d944['data'])switch(_0x43d944['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'](_0x3e1e31,_0x4ca505){const _0x53eb23=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2ed51f of _0x53eb23['getSuggestions']({'skipNotAttached':!0x0})){const _0x218bff=_0x2ed51f['getContainedElement']();if(_0x2ed51f['subType']===_0x4ca505&&_0x218bff===_0x3e1e31)return _0x2ed51f;}return null;}['_registerTablePropertiesAttributes'](){const _0x4d8e39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x176d2f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x819a2b of _0x176d2f){const _0x31e0fa=_0x819a2b['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4d8e39['descriptionFactory']['registerAttributeLabel'](_0x819a2b,o(this['editor']['locale'],'FORMAT_'+_0x31e0fa));}}}class Ft extends _0x21c11d{['afterInit'](){const _0x475d22=this['editor'];if(!_0x475d22['plugins']['has']('LineHeight'))return;const _0x3be7c6=_0x475d22['plugins']['get']('TrackChangesEditing'),_0x4933de=_0x475d22['locale'];_0x3be7c6['enableDefaultAttributesIntegration']('lineHeight'),_0x3be7c6['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4933de,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x21c11d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x5b5ec3,_0x16bf98,_0x49fb4a,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37574e){super(_0x37574e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3aeb57,_0x69fee1,_0x56de5,_0x52d1d0)=>{this['_model']['change'](()=>{for(const _0x13e6a2 of[..._0x52d1d0,..._0x56de5])this['_model']['markers']['has'](_0x13e6a2)&&_0x37574e['editing']['reconvertMarker'](_0x13e6a2);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x37574e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x37574e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x37574e['config']['get']('trackChanges.trackFormatChanges'),_0x37574e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x37574e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x37574e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x208b8f=this['editor'];_0x208b8f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x453c35,{writer:_0x42ea74})=>{let _0x21ae40='suggestion:'+_0x453c35['getAttribute']('suggestion-type')+':'+_0x453c35['getAttribute']('id');return _0x453c35['getAttribute']('marker-count')&&(_0x21ae40+=':'+_0x453c35['getAttribute']('marker-count')),_0x42ea74['createElement']('$marker',{'data-name':_0x21ae40});}}),_0x208b8f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x208b8f['model']['document']['registerPostFixer'](_0x7fb325=>{let _0x3241f7=!0x1;const _0x22d476=Array['from'](_0x208b8f['model']['document']['differ']['getChangedMarkers']()),_0x4701a5=new Set();for(const {name:_0x490929,data:_0x4b62c2}of _0x22d476){const {group:_0x4fe884,type:_0x1bd99e,subType:_0xe115c9,id:_0x3ddd71}=this['_splitMarkerName'](_0x490929);if('suggestion'!==_0x4fe884)continue;const _0x2d2be3=_0xe115c9?'suggestion:'+_0x1bd99e+':'+_0xe115c9+':'+_0x3ddd71:'suggestion:'+_0x1bd99e+':'+_0x3ddd71,_0x2a5afc=_0x208b8f['model']['markers']['getMarkersGroup'](_0x2d2be3),_0x2c7c1a=_0x208b8f['model']['markers']['get'](_0x490929),_0x15c795=this['_suggestions']['get'](_0x3ddd71);if(null!=_0x4b62c2['newRange']){'formatInline'==_0x1bd99e&&(_0x3241f7=_0x3241f7||Wt(_0x4b62c2['newRange'],_0x490929,_0x7fb325,_0x208b8f['model']['schema']));const _0x18a1e2='attribute'==_0x1bd99e&&this['_isBlockAttribute'](_0xe115c9['split']('|')[0x0]),_0x2baa24='attribute'==_0x1bd99e&&this['_isInlineAttribute'](_0xe115c9['split']('|')[0x0]);if(_0x4b62c2['newRange']['isCollapsed']||'$graveyard'==_0x4b62c2['newRange']['root']['rootName']||'formatBlock'==_0x1bd99e&&!Qt(_0x4b62c2['newRange'])||_0x18a1e2&&!Qt(_0x4b62c2['newRange'])||_0x2baa24&&Xt(_0x4b62c2['newRange'])||'deletion'==_0x1bd99e&&Xt(_0x4b62c2['newRange'])||_0x2c7c1a&&Yt(_0x2c7c1a,_0x2a5afc))_0x7fb325['removeMarker'](_0x490929),_0x3241f7=!0x0;else{if(!_0x15c795||!_0x15c795['isInContent'])continue;if(_0x4b62c2['newRange']&&_0x4b62c2['oldRange']&&_0x4b62c2['newRange']['isEqual'](_0x4b62c2['oldRange']))continue;_0x4701a5['add'](_0x15c795);}}}return _0x4701a5['size']>0x0&&(_0x3241f7=!!this['_joinWithAdjacentSuggestions'](_0x4701a5)||_0x3241f7),_0x3241f7;}),_0x208b8f['model']['document']['registerPostFixer'](_0x5acece=>{let _0x24d6d5=!0x1;for(const _0x2a70ec of _0x208b8f['model']['document']['differ']['getChanges']())if('insert'==_0x2a70ec['type'])for(const _0x56850a of this['_suggestions']['values']()){if(_0x56850a['isMultiRange']||!_0x56850a['isInContent'])continue;const _0x832adc='formatBlock'==_0x56850a['type'],_0x4a372a=this['_getAttributeKey'](_0x56850a),_0x90afa4=_0x4a372a&&this['_isBlockAttribute'](_0x4a372a);if(!_0x832adc&&!_0x90afa4)continue;const _0x4b97a9=_0x56850a['getFirstRange']();if(_0x4b97a9['start']['parent']!=_0x4b97a9['end']['parent']&&!_0x4b97a9['end']['isAtEnd']){const _0x4b9b78=_0x208b8f['model']['createPositionAt'](_0x4b97a9['start']['nodeAfter'],'end'),_0x1d7dc5=_0x208b8f['model']['createRange'](_0x4b97a9['start'],_0x4b9b78);_0x5acece['updateMarker'](_0x56850a['getFirstMarker'](),{'range':_0x1d7dc5}),_0x24d6d5=!0x0;}}return _0x24d6d5;}),_0x208b8f['model']['document']['registerPostFixer'](_0x32bd75=>this['_processAttributeChanges'](_0x32bd75)),_0x208b8f['model']['document']['registerPostFixer'](_0x3dca75=>!_0x3dca75['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3dca75)),_0x208b8f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x208b8f['model']['document']['on']('change:data',(_0x59a3f7,_0x28660b)=>{if(!_0x28660b['isLocal']||_0x28660b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xbdfb85=_0x208b8f['model']['document']['differ']['getChanges']();if(0x0==_0xbdfb85['length'])return;const _0x2b078c=[],_0x352901=_0xbdfb85['filter'](_0x31982c=>'attribute'==_0x31982c['type']),_0x534c32=_0xbdfb85['filter'](_0x4174ab=>'insert'==_0x4174ab['type']&&'$text'!=_0x4174ab['name']);for(const _0x1b141f of _0x352901)this['_isRegisteredAttribute'](_0x1b141f['attributeKey'])&&_0x2b078c['push']({'key':_0x1b141f['attributeKey'],'newValue':_0x1b141f['attributeNewValue'],'oldValue':_0x1b141f['attributeOldValue'],'range':Zt(_0x1b141f['range'],_0x208b8f['model'])});for(const _0x247ede of _0x534c32){if('rename'!=_0x247ede['action']&&'refresh'!=_0x247ede['action'])continue;const _0x1c65ff=tn(_0x247ede['position']['nodeAfter'],_0x208b8f['model']),_0x3fc768=_0x247ede['before'];'rename'==_0x247ede['action']&&_0x2b078c['push']({'key':m,'newValue':_0x247ede['name'],'oldValue':_0x3fc768['name'],'range':_0x1c65ff});for(const [_0x1ce64a,_0x4703b8]of _0x3fc768['attributes']){if(!this['_isRegisteredAttribute'](_0x1ce64a))continue;const _0x16281a=_0x247ede['attributes']['get'](_0x1ce64a);_0x4703b8!==_0x16281a&&_0x2b078c['push']({'key':_0x1ce64a,'newValue':_0x16281a,'oldValue':_0x4703b8,'range':_0x1c65ff});}for(const [_0x3e7522,_0x415e17]of _0x247ede['attributes'])this['_isRegisteredAttribute'](_0x3e7522)&&(_0x3fc768['attributes']['has'](_0x3e7522)||_0x2b078c['push']({'key':_0x3e7522,'newValue':_0x415e17,'oldValue':null,'range':_0x1c65ff}));}0x0!=_0x2b078c['length']&&_0x208b8f['model']['enqueueChange'](_0x28660b,_0x27faa7=>{const _0x53040e=_0x49bc9e();for(const {range:_0x36b2f1,key:_0x2d7c61,oldValue:_0x3570ba,newValue:_0x388d4d}of _0x2b078c)this['markAttributeChange'](_0x36b2f1,_0x2d7c61,_0x3570ba,_0x388d4d,{'groupId':_0x53040e});this['_reduceExistingSuggestions'](_0x27faa7,_0x2b078c);});},{'priority':'lowest'}),_0x208b8f['model']['markers']['on']('update:suggestion',(_0x47e114,_0x13938d,_0x16d027)=>{if(null==_0x16d027){const {id:_0x433404}=this['_splitMarkerName'](_0x13938d['name']),_0x241154=this['_suggestions']['get'](_0x433404);_0x241154&&_0x241154['addMarkerName'](_0x13938d['name']);}}),_0x208b8f['model']['document']['on']('change:data',()=>{const _0xad91ba=Array['from'](_0x208b8f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ecada=>'suggestion'===this['_splitMarkerName'](_0x2ecada['name'])['group']);if(0x0===_0xad91ba['length'])return;_0xad91ba['sort']((_0x37d049,_0x41ee88)=>{const _0x24fd3b=_0x37d049['data']['oldRange'],_0x5c128c=_0x41ee88['data']['oldRange'];return null===_0x24fd3b&&null===_0x5c128c?0x0:null===_0x24fd3b&&null!==_0x5c128c?-0x1:null!==_0x24fd3b&&null===_0x5c128c?0x1:_0x24fd3b['start']['isBefore'](_0x5c128c['start'])?-0x1:0x1;});const _0x4b6670=new Set(),_0x5a6a75=new Set();for(const {name:_0x4a1ba4,data:_0x2d1f8f}of _0xad91ba){const {id:_0x10cfcb}=this['_splitMarkerName'](_0x4a1ba4);if(null===_0x2d1f8f['oldRange']){const _0x20de61=this['_handleNewSuggestionMarker'](_0x4a1ba4);_0x5a6a75['add'](_0x20de61);}else{const _0x148a08=this['_suggestions']['get'](_0x10cfcb);null!==_0x2d1f8f['newRange']||_0x148a08['isInContent']?(_0x4b6670['add'](_0x148a08['head']),_0x5a6a75['add'](_0x148a08)):this['_removeSuggestion'](_0x148a08);}}_0x5a6a75['size']>0x0&&this['_refreshSuggestionsChain'](_0x5a6a75);for(const _0x5a8aa7 of _0x4b6670)this['fire']('suggestionChanged',_0x5a8aa7);}),_0x208b8f['model']['on']('applyOperation',(_0x2e52b0,_0x1670fc)=>{const _0x4dab68=_0x1670fc[0x0];if(!this['_suggestions']['size'])return;if(!_0x4dab68['isDocumentOperation'])return;if(_0x4dab68['batch']['isUndo']||!_0x4dab68['batch']['isLocal'])return;let _0x55b682,_0x51249d;switch(_0x4dab68['type']){case'insert':_0x55b682=_0x208b8f['model']['createPositionAt'](_0x4dab68['position']),_0x51249d=_0x55b682['getShiftedBy'](_0x4dab68['howMany']);break;case'split':_0x55b682=_0x208b8f['model']['createPositionAt'](_0x4dab68['splitPosition']),_0x51249d=_0x208b8f['model']['createPositionAt'](_0x4dab68['moveTargetPosition']);break;case'move':_0x55b682=_0x208b8f['model']['createPositionAt'](_0x4dab68['targetPosition']),_0x51249d=_0x55b682['getShiftedBy'](_0x4dab68['howMany']);break;default:return;}const _0x4707c8=_0x208b8f['model']['createRange'](_0x55b682,_0x51249d);_0x208b8f['model']['change'](()=>{for(const {suggestion:_0x39afb2,meta:_0x54857d}of this['_findSuggestions'](_0x4707c8)){if(_0x39afb2['isMultiRange'])continue;if('formatInline'==_0x39afb2['type'])continue;const _0x4fceae=this['_getAttributeKey'](_0x39afb2);if(_0x4fceae&&this['_isBlockAttribute'](_0x4fceae)&&'split'!=_0x4dab68['type'])continue;const _0x144abc=_0x39afb2['data']&&_0x39afb2['data']['multipleBlocks'];('formatBlock'!=_0x39afb2['type']||'split'==_0x4dab68['type']&&!_0x144abc)&&(_0x54857d['containsRangeInObject']||'insertion'==_0x39afb2['type']&&_0x54857d['isOwn']||_0x39afb2['getFirstRange']()['containsRange'](_0x4707c8)&&this['_breakSuggestionMarker'](_0x39afb2,_0x55b682,_0x51249d));}});},{'priority':'lowest'}),_0x208b8f['model']['on']('deleteContent',(_0x2ba638,_0x2043c8)=>{const _0x2efc38=_0x2043c8[0x0],_0x4d57e1=_0x2043c8[0x1];if(_0x4d57e1&&_0x4d57e1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2efc38['isCollapsed'])return;const _0x54178c=_0x208b8f['model']['schema'],{start:_0x596899,end:_0x5280d4}=_0x2efc38['getFirstRange'](),_0x58c06a=_0x596899['nodeAfter']&&_0x54178c['isLimit'](_0x596899['nodeAfter'])?null:_0x54178c['getNearestSelectionRange'](_0x596899,'forward'),_0x279b4e=_0x5280d4['nodeBefore']&&_0x54178c['isLimit'](_0x5280d4['nodeBefore'])?null:_0x54178c['getNearestSelectionRange'](_0x5280d4,'backward'),_0x40cfa6=_0x208b8f['model']['createRange'](_0x58c06a?_0x58c06a['start']:_0x596899,_0x279b4e?_0x279b4e['end']:_0x5280d4);_0x208b8f['model']['change'](_0x10390e=>{this['markDeletion'](_0x40cfa6);const _0x1a739d=_0x208b8f['model']['schema']['getNearestSelectionRange'](_0x40cfa6['start']);_0x2efc38['is']('documentSelection')?_0x10390e['setSelection'](_0x1a739d):_0x2efc38['setTo'](_0x1a739d);}),_0x2ba638['stop']();},{'priority':_0x1b8846['normal']+0xa}),_0x208b8f['model']['on']('insertContent',(_0x54d4e5,_0x529ab6)=>{const _0x213c2c=_0x529ab6[_0x529ab6['length']-0x1];_0x213c2c&&_0x213c2c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x208b8f['model']['change'](()=>{let _0x5c2154=_0x208b8f['model']['insertContent'](_0x529ab6[0x0],_0x529ab6[0x1],_0x529ab6[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c2154)return;_0x54d4e5['return']=_0x5c2154['clone']();const _0x333d1b=_0x5c2154['end']['nodeBefore'],_0x416f6a=_0x208b8f['model']['schema'];_0x333d1b&&_0x416f6a['isBlock'](_0x333d1b)&&!_0x416f6a['isObject'](_0x333d1b)&&(_0x5c2154=_0x208b8f['model']['createRange'](_0x5c2154['start'],_0x208b8f['model']['createPositionAt'](_0x333d1b,'end'))),this['markInsertion'](_0x5c2154);}),_0x54d4e5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5af7db=new v(_0x208b8f,this['_suggestions']);_0x208b8f['commands']['add']('acceptSuggestion',_0x5af7db),this['enableCommand']('acceptSuggestion');const _0x2febc4=new D(_0x208b8f,this['_suggestions']);_0x208b8f['commands']['add']('discardSuggestion',_0x2febc4),this['enableCommand']('discardSuggestion'),_0x208b8f['commands']['add']('acceptAllSuggestions',new B(_0x208b8f,_0x5af7db,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x208b8f['commands']['add']('discardAllSuggestions',new B(_0x208b8f,_0x2febc4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x208b8f['commands']['add']('acceptSelectedSuggestions',new O(_0x208b8f,_0x5af7db,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x208b8f['commands']['add']('discardSelectedSuggestions',new O(_0x208b8f,_0x2febc4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x420294=_0x208b8f['plugins']['get']('CommentsRepository');this['listenTo'](_0x420294,'addComment',(_0x5314fd,{threadId:_0x1524db})=>{const _0x54d89d=this['_suggestions']['get'](_0x1524db);_0x54d89d&&_0x54d89d['commentThread']&&0x1===_0x54d89d['commentThread']['length']&&this['_updateSuggestionData'](_0x1524db,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x420294,'removeComment',(_0x137d31,{threadId:_0x303a7c})=>{const _0x54200e=this['_suggestions']['get'](_0x303a7c);_0x54200e&&_0x54200e['commentThread']&&!_0x54200e['commentThread']['length']&&this['_updateSuggestionData'](_0x303a7c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5e13e2){const _0x2c8a7f=_0x44ea70([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5850a1=0x3d8d0df,_0x1cf2b4=0x3dfaabf^_0x5850a1,_0x5a701a=window[_0x44ea70([0x44,0x61,0x74,0x65])][_0x44ea70([0x6e,0x6f,0x77])](),_0x1cc650=_0x5e13e2[_0x44ea70([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x288dae=new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f3fb2=>{_0x1cc650[_0x44ea70([0x6f,0x6e,0x63,0x65])](_0x44ea70([0x72,0x65,0x61,0x64,0x79]),_0x1f3fb2);}),_0x54563d={[_0x44ea70([0x6b,0x74,0x79])]:_0x44ea70([0x45,0x43]),[_0x44ea70([0x75,0x73,0x65])]:_0x44ea70([0x73,0x69,0x67]),[_0x44ea70([0x63,0x72,0x76])]:_0x44ea70([0x50,0x2d,0x32,0x35,0x36]),[_0x44ea70([0x78])]:_0x44ea70([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]),[_0x44ea70([0x79])]:_0x44ea70([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]),[_0x44ea70([0x61,0x6c,0x67])]:_0x44ea70([0x45,0x53,0x32,0x35,0x36])},_0xe3b31=_0x1cc650[_0x44ea70([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44ea70([0x67,0x65,0x74])](_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x65de9a(){let _0x48565e,_0x534166=null,_0x17aee9=null;try{if(_0xe3b31==_0x44ea70([0x47,0x50,0x4c]))return _0x44ea70([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48565e=_0x1cefdd(),!_0x48565e)return _0x44ea70([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48565e[_0x44ea70([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17aee9=_0x1d347b(_0x48565e[_0x44ea70([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48565e[_0x44ea70([0x6a,0x74,0x69])])),await _0x253bc4()?_0xec6150()?_0x4beade()?_0x44ea70([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e9e30()?(_0x48565e[_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44ea70([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x534166=_0x463437(_0x44ea70([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48565e[_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44ea70([0x74,0x72,0x69,0x61,0x6c])&&(_0x534166=_0x463437(_0x44ea70([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x195ee2()):_0x44ea70([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44ea70([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44ea70([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x44ea70([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4beade(){const _0x18ee68=[_0x44ea70([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44ea70([0x74,0x72,0x69,0x61,0x6c])][_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48565e[_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a701a/0x3e8:0xe10*_0x1cf2b4;return _0x48565e[_0x44ea70([0x65,0x78,0x70])]<_0x18ee68;}function _0xec6150(){const _0x427c25=_0x48565e[_0x44ea70([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x427c25)return!0x1;if(_0x427c25[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ea70([0x2a])))return!0x0;if(_0x427c25[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ea70([0x54,0x43])))return!0x0;if(_0x427c25[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ea70([0x52,0x54,0x43]))){if(_0x339d8d())return!0x0;if(_0x3725e6()||_0x2674d9())return!0x0;}return!0x1;}function _0x3e9e30(){const _0x443ea2=_0x48565e[_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x443ea2||0x0==_0x443ea2[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1124b1}=new URL(window[_0x44ea70([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x443ea2[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1124b1))return!0x0;const _0x29f3e5=_0x1124b1[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])](_0x44ea70([0x2e]));return _0x443ea2[_0x44ea70([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5318b6=>_0x5318b6[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ea70([0x2a])))[_0x44ea70([0x6d,0x61,0x70])](_0x4b49e3=>_0x4b49e3[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])](_0x44ea70([0x2e])))[_0x44ea70([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40d8de=>_0x40d8de[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29f3e5[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44ea70([0x6d,0x61,0x70])](_0x289f23=>Array(_0x29f3e5[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x289f23[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44ea70([0x66,0x69,0x6c,0x6c])](_0x289f23[0x0]===_0x44ea70([0x2a])?_0x44ea70([0x2a]):'')[_0x44ea70([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x289f23))[_0x44ea70([0x73,0x6f,0x6d,0x65])](_0x5309b3=>_0x29f3e5[_0x44ea70([0x65,0x76,0x65,0x72,0x79])]((_0x5e38a5,_0x19254c)=>_0x5309b3[_0x19254c]===_0x5e38a5||_0x5309b3[_0x19254c]===_0x44ea70([0x2a])));}function _0x195ee2(){return _0x534166&&_0x17aee9?new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a058b,_0x47d971)=>{_0x534166[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x2a058b,_0x47d971),_0x17aee9[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x91388=>{_0x91388!=_0x44ea70([0x56,0x61,0x6c,0x69,0x64])&&_0x2a058b(_0x91388);},_0x47d971);}):_0x534166||_0x17aee9||_0x44ea70([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d347b(_0x5b8847,_0x8786b6){return new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8445a2=>{if(_0x3474cf())return _0x8445a2(_0x44ea70([0x56,0x61,0x6c,0x69,0x64]));_0x52e6e2(),_0x1cc650[_0x44ea70([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44ea70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36c308=!0x1;const _0x119ea0=_0x49bc9e();function _0x43227f(_0x44ad71){return!!_0x44ad71&&(typeof _0x44ad71===_0x44ea70([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x44ad71===_0x44ea70([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x44ad71[_0x44ea70([0x74,0x68,0x65,0x6e])]===_0x44ea70([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x44ad71[_0x44ea70([0x63,0x61,0x74,0x63,0x68])]===_0x44ea70([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e8014(_0x3f0709){_0x198671(_0x3f0709)[_0x44ea70([0x74,0x68,0x65,0x6e])](_0xc50d87=>{if(!_0xc50d87||_0xc50d87[_0x44ea70([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44ea70([0x6f,0x6b]))return _0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14edea(_0x5e5d22(_0x119ea0+_0x8786b6))!=_0xc50d87[_0x44ea70([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44ea70([0x56,0x61,0x6c,0x69,0x64]);})[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x23fc77=>(_0x2d6d5f(),_0x23fc77),()=>{const _0x2d89c0=_0x135c1b();return null==_0x2d89c0?(_0x2d6d5f(),_0x44ea70([0x56,0x61,0x6c,0x69,0x64])):_0x44ea70(_0x5a701a-_0x2d89c0>(0x27d454df^_0x5850a1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x8445a2)[_0x44ea70([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8445a2(_0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x415c94=0x3ee3e5f^_0x5850a1;function _0x2d6d5f(){const _0x231314=_0x44ea70([0x6c,0x6c,0x63,0x74,0x2d])+_0x14edea(_0x5e5d22(_0x5b8847)),_0x2918ce=_0x5a60cf(_0x14edea(window[_0x44ea70([0x4d,0x61,0x74,0x68])][_0x44ea70([0x63,0x65,0x69,0x6c])](_0x5a701a/_0x415c94)));window[_0x44ea70([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44ea70([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x231314,_0x2918ce);}function _0x135c1b(){const _0x27fe7a=_0x44ea70([0x6c,0x6c,0x63,0x74,0x2d])+_0x14edea(_0x5e5d22(_0x5b8847)),_0x55c868=window[_0x44ea70([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44ea70([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27fe7a);return _0x55c868?window[_0x44ea70([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a60cf(_0x55c868),0x10)*_0x415c94:null;}function _0x198671(_0x448117){return new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33e58f,_0x59064e)=>{_0x448117[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x33e58f,_0x59064e),window[_0x44ea70([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59064e,0x3d9041f^_0x5850a1);});}}_0x1cc650[_0x44ea70([0x6f,0x6e])](_0x44ea70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x198c3f,_0x34b37f)=>{if(_0x34b37f[0x0]!=_0x5b8847)return _0x8445a2(_0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34b37f[0x1]={..._0x34b37f[0x1],[_0x44ea70([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x119ea0};},{[_0x44ea70([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44ea70([0x68,0x69,0x67,0x68])}),_0x1cc650[_0x44ea70([0x6f,0x6e])](_0x44ea70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb882d3=>{_0x43227f(_0xb882d3[_0x44ea70([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36c308=!0x0,_0x4e8014(_0xb882d3[_0x44ea70([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44ea70([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44ea70([0x6c,0x6f,0x77])}),_0x288dae[_0x44ea70([0x74,0x68,0x65,0x6e])](()=>{_0x36c308||_0x8445a2(_0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3474cf(){return _0x1cc650[_0x44ea70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44ea70([0x76,0x69,0x65,0x77])][_0x44ea70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44ea70([0x61,0x75,0x74,0x6f]);}function _0x52e6e2(){_0x1cc650[_0x44ea70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44ea70([0x76,0x69,0x65,0x77])][_0x44ea70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44ea70([0x61,0x75,0x74,0x6f]);}}function _0x463437(_0x414c8f){const _0x4e92f0=[new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x519156=>setTimeout(_0x519156,0x3d1ee13^_0x5850a1)),_0x288dae[_0x44ea70([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25a8ea=>{let _0x40bf5a=0x0;_0x1cc650[_0x44ea70([0x6d,0x6f,0x64,0x65,0x6c])][_0x44ea70([0x6f,0x6e])](_0x44ea70([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43f394,_0x4ec3de)=>{_0x4ec3de[0x0][_0x44ea70([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40bf5a++,_0x40bf5a==(0x3d8d127^_0x5850a1)&&(_0x25a8ea(),_0x43f394[_0x44ea70([0x6f,0x66,0x66])]());});}))];return window[_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44ea70([0x72,0x61,0x63,0x65])](_0x4e92f0)[_0x44ea70([0x74,0x68,0x65,0x6e])](()=>_0x414c8f);}async function _0x2ab06c(){await _0x288dae,_0x1cc650[_0x44ea70([0x6d,0x6f,0x64,0x65,0x6c])][_0x44ea70([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20a6f7,_0x1cc650[_0x44ea70([0x6d,0x6f,0x64,0x65,0x6c])][_0x44ea70([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20a6f7,_0x1cc650[_0x44ea70([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44ea70([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x339d8d(){return _0x39f546(_0x44ea70([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x305a24(_0x44ea70([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x44ea70([0x73,0x74,0x61,0x74,0x65])]==_0x44ea70([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3725e6(){return _0x39f546(_0x44ea70([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 _0x2674d9(){return _0x39f546(_0x44ea70([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e787d(_0x11c650){const _0x5de725=_0x2a5f19();_0x1cc650[_0x5de725]=_0x44ea70([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11c650,_0x11c650!=_0x44ea70([0x56,0x61,0x6c,0x69,0x64])&&_0x2ab06c();}function _0x2a5f19(){const _0x59fc9c=window[_0x44ea70([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44ea70([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44ea70([0x6e,0x6f,0x77])]())[_0x44ea70([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44ea70([0x2e]),'');let _0x1f3084=_0x44ea70([0x52]);for(let _0x5d78e2=0x0;_0x5d78e2<_0x59fc9c[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d78e2+=0x2){let _0x22f8e8=window[_0x44ea70([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59fc9c[_0x44ea70([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d78e2,_0x5d78e2+0x2));_0x22f8e8>=_0x2c8a7f[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22f8e8-=_0x2c8a7f[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f3084+=_0x2c8a7f[_0x22f8e8];}return _0x1f3084;}function _0x1cefdd(){const _0x33e2d8=_0xe3b31[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])](_0x44ea70([0x2e]));if(0x3!=_0x33e2d8[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52c2b4(_0x33e2d8[0x1]);function _0x52c2b4(_0x18782c){const _0x470448=_0x194880(_0x18782c);return _0x470448&&_0x35fa6e()?_0x470448:null;function _0x35fa6e(){const _0xe9a1cc=_0x470448[_0x44ea70([0x6a,0x74,0x69])],_0x31890b=window[_0x44ea70([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe9a1cc[_0x44ea70([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe9a1cc[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b69c3={..._0x470448,[_0x44ea70([0x6a,0x74,0x69])]:_0xe9a1cc[_0x44ea70([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe9a1cc[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b69c3[_0x44ea70([0x76,0x63])],_0x5e5d22(_0x2b69c3)==_0x31890b;}}}async function _0x253bc4(){let _0x49b3ad=!0x0;try{const _0x34fad8=_0xe3b31[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])](_0x44ea70([0x2e])),[_0x18d2f3,_0x3d2273,_0x2db09f]=_0x34fad8;return _0x2798ff(_0x18d2f3),await _0x2769bb(_0x18d2f3,_0x3d2273,_0x2db09f),_0x49b3ad;}catch{return!0x1;}function _0x2798ff(_0x7c6370){const _0x5eef11=_0x194880(_0x7c6370);_0x5eef11&&_0x5eef11[_0x44ea70([0x61,0x6c,0x67])]==_0x44ea70([0x45,0x53,0x32,0x35,0x36])||(_0x49b3ad=!0x1);}async function _0x2769bb(_0x56cb03,_0x3db02b,_0x5e23ba){const _0x273413=window[_0x44ea70([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44ea70([0x66,0x72,0x6f,0x6d])](_0x40e33b(_0x5e23ba),_0x542af3=>_0x542af3[_0x44ea70([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1196f0=new window[(_0x44ea70([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44ea70([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56cb03+_0x44ea70([0x2e])+_0x3db02b),_0x33c7c5=window[_0x44ea70([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44ea70([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33c7c5)return;const _0x4a11d6=await _0x33c7c5[_0x44ea70([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44ea70([0x6a,0x77,0x6b]),_0x54563d,{[_0x44ea70([0x6e,0x61,0x6d,0x65])]:_0x44ea70([0x45,0x43,0x44,0x53,0x41]),[_0x44ea70([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44ea70([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44ea70([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33c7c5[_0x44ea70([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44ea70([0x6e,0x61,0x6d,0x65])]:_0x44ea70([0x45,0x43,0x44,0x53,0x41]),[_0x44ea70([0x68,0x61,0x73,0x68])]:{[_0x44ea70([0x6e,0x61,0x6d,0x65])]:_0x44ea70([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a11d6,_0x273413,_0x1196f0)||(_0x49b3ad=!0x1);}}function _0x194880(_0x38de67){return _0x38de67[_0x44ea70([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44ea70([0x65,0x79]))?JSON[_0x44ea70([0x70,0x61,0x72,0x73,0x65])](_0x40e33b(_0x38de67)):null;}function _0x40e33b(_0x41db86){return window[_0x44ea70([0x61,0x74,0x6f,0x62])](_0x41db86[_0x44ea70([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44ea70([0x2b]))[_0x44ea70([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44ea70([0x2f])));}function _0x5e5d22(_0x3191ea){let _0x2c7d2d=0x1505;function _0x4f5f21(_0x40dbf9){for(let _0x3407e2=0x0;_0x3407e2<_0x40dbf9[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3407e2++){const _0xe1bf96=_0x40dbf9[_0x44ea70([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3407e2);_0x2c7d2d=(_0x2c7d2d<<0x5)+_0x2c7d2d+_0xe1bf96,_0x2c7d2d&=_0x2c7d2d;}}function _0x2b55cb(_0x11099e){Array[_0x44ea70([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11099e)?_0x11099e[_0x44ea70([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b55cb):_0x11099e&&typeof _0x11099e==_0x44ea70([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44ea70([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11099e)[_0x44ea70([0x73,0x6f,0x72,0x74])]()[_0x44ea70([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e4f13,_0x3692d8])=>{_0x4f5f21(_0x2e4f13),_0x2b55cb(_0x3692d8);}):_0x4f5f21(window[_0x44ea70([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11099e));}return _0x2b55cb(_0x3191ea),_0x2c7d2d>>>0x0;}function _0x14edea(_0x30e990){return _0x30e990[_0x44ea70([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44ea70([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44ea70([0x30]));}function _0x5a60cf(_0x3ee53c){return _0x3ee53c[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44ea70([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44ea70([0x6a,0x6f,0x69,0x6e])]('');}function _0x39f546(_0x1ee735){return _0x1cc650[_0x44ea70([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44ea70([0x68,0x61,0x73])](_0x1ee735);}function _0x305a24(_0x46490e){return _0x1cc650[_0x44ea70([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44ea70([0x67,0x65,0x74])](_0x46490e);}function _0x20a6f7(){}function _0x44ea70(_0x3e0018){return _0x3e0018['map'](_0x590437=>String['fromCharCode'](_0x590437))['join']('');}_0x1e787d(await _0x65de9a());}(this);}set['adapter'](_0xb5aca8){if(this['_adapter'])throw new _0x3229f3('track-changes-adapter-already-set',this);this['_adapter']=_0xb5aca8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3ca6b8=!0x1,toJSON:_0xeec64b=!0x1}={}){const _0x30e7f1=[];for(const _0x56056e of this['_suggestions']['values']())_0x3ca6b8&&!_0x56056e['isInContent']||_0x30e7f1['push'](_0x56056e);return _0xeec64b?_0x30e7f1['map'](_0x426962=>_0x426962['toJSON']()):_0x30e7f1;}['getSuggestion'](_0x22c4a0){const _0x34de04=this['_suggestions']['get'](_0x22c4a0);if(!_0x34de04)throw new _0x3229f3('track-changes-suggestion-not-found',this);return _0x34de04;}['hasSuggestion'](_0x291b41){return this['_suggestions']['has'](_0x291b41);}['addSuggestionData'](_0x3b100b){const {authorId:_0x2e9d93,id:_0x235f29,originalSuggestionId:_0x1dc7d2,attributes:_0x2797e4}=_0x3b100b,[_0x3a9bd0,_0x1c9143]=_0x3b100b['type']['split'](':'),_0x4c2d58=this['_suggestions']['get'](_0x235f29)||this['_createSuggestion'](_0x3a9bd0,_0x1c9143,_0x235f29,_0x2e9d93,_0x2797e4,_0x1dc7d2);if(this['_addThreadToSuggestion'](_0x4c2d58),this['_checkSuggestionCorrectness'](_0x4c2d58,_0x3a9bd0,_0x1c9143||null,_0x2e9d93),_0x4c2d58['createdAt']=_0x3b100b['createdAt'],_0x4c2d58['_isDataLoaded']=!0x0,_0x2797e4&&_0x2797e4['@external']){const _0x431201=_0x2797e4['@external'],_0x4c152e=this['_getExternalAuthor'](_0x431201['authorName']);_0x4c2d58['authoredAt']=_0x431201['createdAt'],_0x4c2d58['author']=_0x4c152e,_0x4c2d58['isExternal']=!0x0;}else _0x4c2d58['authoredAt']=_0x3b100b['createdAt'];switch(_0x3b100b['data']&&(_0x4c2d58['data']=_0x3b100b['data']),_0x3b100b['attributes']&&(_0x4c2d58['attributes']=_0x3b100b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4c2d58['_saved']=!0x0),this['_suggestionState']['get'](_0x4c2d58)){case'notReady':this['_suggestionState']['set'](_0x4c2d58,'dataReady');break;case'markerReady':_0x4c2d58['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c2d58])),this['_refreshSuggestionsChain'](new Set([_0x4c2d58])),this['_suggestionState']['set'](_0x4c2d58,'ready'),this['fire']('suggestionLoaded',_0x4c2d58)):this['_suggestionState']['set'](_0x4c2d58,'removed');}return _0x4c2d58;}['acceptSuggestion'](_0x5c2cd7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x74ee76 of _0x5c2cd7['getAllAdjacentSuggestions']())_0x74ee76['accept']();});});}['discardSuggestion'](_0x1e9f8f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e4785 of _0x1e9f8f['getAllAdjacentSuggestions']())_0x3e4785['discard']();});});}['enableCommand'](_0x7cd19f,_0x2bcc72){const _0x2ab955=this['editor']['commands']['get'](_0x7cd19f);if(!_0x2ab955)throw new _0x3229f3('track-changes-command-not-found',this,{'commandName':_0x7cd19f});if(this['_enabledCommands']['has'](_0x2ab955))throw new _0x3229f3('track-changes-enable-command-twice',this,{'commandName':_0x7cd19f});this['_enabledCommands']['add'](_0x2ab955),_0x2bcc72&&_0x2ab955['on']('execute',(_0x580685,_0x304b42)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x304b42['length']>0x0&&_0x304b42[_0x304b42['length']-0x1]&&_0x304b42[_0x304b42['length']-0x1]['forceDefaultExecution']?_0x304b42['pop']():(_0x580685['return']=_0x2bcc72((..._0x3f461e)=>_0x2ab955['execute'](..._0x3f461e,{'forceDefaultExecution':!0x0}),..._0x304b42),_0x580685['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x35ec19){let _0x3a2372,_0x46fb84;const _0x13afb7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3a2372=_0x35ec19();}catch(_0x4eeb1c){_0x46fb84=_0x4eeb1c;}return _0x13afb7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x46fb84&&_0x3229f3['rethrowUnexpectedError'](_0x46fb84,this),_0x3a2372;}['markInsertion'](_0x123126,_0x5c02c0=null,_0x56b23e={}){if(_0x123126['isCollapsed'])return null;const _0x110e2e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x56b23e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x155c00,meta:_0x5cd91a}of this['_findSuggestions'](_0x123126,'insertion'))if(_0x5cd91a['isOwn']){if(!_0x5cd91a['isNextTo']){if(_0x5cd91a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x155c00,_0x56b23e))continue;return _0x155c00;}if(sn(_0x155c00,_0x56b23e))return _0x155c00;this['_breakSuggestionMarker'](_0x155c00,_0x123126['start'],_0x123126['end']);break;}if(_0x5c02c0==_0x155c00['subType']&&sn(_0x155c00,_0x56b23e)){const _0x4e08f9=_0x155c00['getFirstRange']();return _0x4e08f9['start']['isEqual'](_0x123126['end'])?this['_setSuggestionRange'](_0x155c00,this['_model']['createRange'](_0x123126['start'],_0x4e08f9['end'])):this['_setSuggestionRange'](_0x155c00,this['_model']['createRange'](_0x4e08f9['start'],_0x123126['end'])),_0x155c00;}}const _0x45629e=_0x49bc9e(),_0x979a56=_0x110e2e['id'],_0x413e5b=_0x5c02c0?'insertion:'+_0x5c02c0:'insertion',_0x25b4e3=this['_setSuggestionData']({'id':_0x45629e,'type':_0x413e5b,'createdAt':new Date(),'authorId':_0x979a56,'attributes':_0x56b23e});return this['_addSuggestionMarker'](_0x413e5b,_0x45629e,_0x979a56,_0x123126),_0x25b4e3;}['markMultiRangeInsertion'](_0xe05497,_0x3c3045='multi',_0xab8436={}){const _0x59b681=this['editor']['plugins']['get']('Users')['me'],_0xb225c0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c3045,'join');this['_trackingSessionId']&&(_0xab8436['trackingSessionId']=this['_trackingSessionId']);for(const _0x17bd0c of this['getSuggestions']())if(_0x17bd0c['author']['id']==_0x59b681['id']&&'insertion'==_0x17bd0c['type']&&_0x17bd0c['subType']==_0x3c3045&&sn(_0x17bd0c,_0xab8436)&&(_0xb225c0(_0x17bd0c['getRanges'](),_0xe05497)||_0xb225c0(_0xe05497,_0x17bd0c['getRanges']()))){for(const _0x4a256e of _0xe05497)_0x17bd0c['addRange'](_0x4a256e);return _0x17bd0c;}for(const {suggestion:_0x1b2a55,meta:_0x234912}of this['_findSuggestions'](_0xe05497,'insertion')){if(!_0x234912['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x234912['containsRangeInObject'])continue;if(!sn(_0x1b2a55,_0xab8436))continue;let _0x4425b9=!0x0;for(const _0x34e2a0 of _0x1b2a55['getRanges']())for(const _0x380555 of _0xe05497)if(!_0x34e2a0['containsRange'](_0x380555)){_0x4425b9=!0x1;break;}if(_0x4425b9)return _0x1b2a55;}const _0x5b5fa7=_0x49bc9e(),_0x3f5410=_0x59b681['id'],_0x363a00='insertion:'+_0x3c3045,_0x55aec2=this['_setSuggestionData']({'id':_0x5b5fa7,'type':_0x363a00,'createdAt':new Date(),'authorId':_0x3f5410,'attributes':_0xab8436});for(const _0x112bcc of _0xe05497)this['_addSuggestionMarker'](_0x363a00,_0x5b5fa7,_0x3f5410,_0x112bcc,x['getMultiRangeId']());return _0x55aec2;}['markInlineFormat'](_0xf3a681,_0x4734e5,_0x27be02=null,_0x714712={}){if(_0x27be02=_0x27be02||Ht(_0x4734e5),_0xf3a681['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x714712['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x29faf7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27be02,'accept');return this['forceDefaultExecution'](()=>_0x29faf7([_0xf3a681],_0x4734e5,_0x714712)),null;}const _0x5f0289=this['editor']['plugins']['get']('Users')['me'],_0x34ecee=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x36154a,meta:_0x3a6b77}of this['_findSuggestions'](_0xf3a681,'insertion'))_0x3a6b77['isOwn']&&!_0x3a6b77['isInsideObject']&&_0x34ecee['push'](..._0x36154a['getRanges']());}const _0x542264=function(_0x259d55,_0x5080dd){const _0x4829b7=[];for(const _0x3739b3 of _0x5080dd){const _0xe78939=_0x259d55['getIntersection'](_0x3739b3);_0xe78939&&_0x4829b7['push'](_0xe78939);}return _0x4829b7;}(_0xf3a681,_0x34ecee),_0x52c947=function(_0x5bdad8,_0x46dc46){const _0x328cd3=[_0x5bdad8];for(const _0x418f80 of _0x46dc46){let _0x2ffb82=0x0;for(;_0x2ffb82<_0x328cd3['length'];){const _0x1a439c=_0x328cd3[_0x2ffb82]['getDifference'](_0x418f80);_0x328cd3['splice'](_0x2ffb82,0x1,..._0x1a439c),_0x2ffb82+=_0x1a439c['length'];}}return _0x328cd3;}(_0xf3a681,_0x34ecee);_0x542264['length']&&this['_model']['change'](()=>{for(const _0x18ea9e of _0x542264){const _0x2d78bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27be02,'accept');this['forceDefaultExecution'](()=>_0x2d78bd([_0x18ea9e],_0x4734e5,_0x714712));}});for(const _0x5a34f2 of _0x52c947){let _0x14a5a9=null,_0x3bbe80=_0x5a34f2['start'],_0xfcaf75=_0x5a34f2['end'];for(const {suggestion:_0x54ff07,meta:_0x2eeadb}of this['_findSuggestions'](_0x5a34f2,'formatInline')){if(!_0x2eeadb['isOwn'])continue;if(_0x54ff07['subType']!=_0x27be02)continue;if(!sn(_0x54ff07,_0x714712))continue;const _0x474e79=_0x54ff07['getFirstRange']();if(_0x474e79['containsRange'](_0x5a34f2,!0x0))return null;_0x3bbe80=_0x3bbe80['isBefore'](_0x474e79['start'])?_0x3bbe80:_0x474e79['start'],_0xfcaf75=_0xfcaf75['isAfter'](_0x474e79['end'])?_0xfcaf75:_0x474e79['end'],_0x14a5a9?_0x474e79['start']['isBefore'](_0x14a5a9['getFirstRange']()['start'])?(_0x14a5a9['removeMarkers'](),_0x14a5a9=_0x54ff07):_0x54ff07['removeMarkers']():_0x14a5a9=_0x54ff07;}const _0x4d200b=this['_model']['createRange'](_0x3bbe80,_0xfcaf75);if(_0x14a5a9)this['_setSuggestionRange'](_0x14a5a9,_0x4d200b);else{const _0x178c6b=_0x49bc9e(),_0x31fecf=_0x5f0289['id'];this['_setSuggestionData']({'id':_0x178c6b,'type':'formatInline:'+_0x27be02,'data':_0x4734e5,'createdAt':new Date(),'authorId':_0x31fecf,'attributes':_0x714712}),this['_addSuggestionMarker']('formatInline:'+_0x27be02,_0x178c6b,_0x31fecf,_0x4d200b);}}return null;}['markBlockFormat'](_0x5dafa2,_0x3e01e1,_0x2cc0ce=[],_0x1651ed=null,_0x173a0b={}){_0x3e01e1['formatGroupId']||(_0x3e01e1['formatGroupId']=_0x3e01e1['commandName']),_0x3e01e1['multipleBlocks']=_0x5dafa2['is']('range'),_0x1651ed=_0x1651ed||Ht(_0x3e01e1);const _0x87f9f1=_0x2cc0ce['map'](_0x12ca01=>tn(_0x12ca01,this['_model'])),_0x22c649=_0x5dafa2['is']('range')?_0x5dafa2:tn(_0x5dafa2,this['_model']);if(this['_trackingSessionId']&&(_0x173a0b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x33161e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1651ed,'accept');return this['forceDefaultExecution'](()=>_0x33161e([_0x22c649],_0x3e01e1,_0x173a0b)),null;}_0x87f9f1['push'](_0x22c649);let _0x5386d8=!0x0;for(const _0x43c79d of _0x87f9f1)if(!this['_rangeIsInLocalUserInsertion'](_0x43c79d)){_0x5386d8=!0x1;break;}if(_0x5386d8&&'always'!==this['_trackFormatChanges']){const _0x5c4232=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1651ed,'accept');return this['forceDefaultExecution'](()=>_0x5c4232([_0x22c649],_0x3e01e1,_0x173a0b)),null;}let _0x13f947=null,_0x90f9c6=_0x22c649['start'],_0x406b65=_0x22c649['end'];for(const {suggestion:_0x302314,meta:_0x3259ef}of this['_findSuggestions'](_0x22c649,'formatBlock')){if(!_0x3259ef['isOwn'])continue;if(_0x3259ef['isNextTo']||_0x3259ef['containsRangeInObject']||_0x3259ef['isInsideObject'])continue;if(_0x302314['data']['formatGroupId']!=_0x3e01e1['formatGroupId'])continue;if(!sn(_0x302314,_0x173a0b))continue;const _0x380dd2=_0x302314['getFirstRange']();if(_0x302314['subType']==_0x1651ed){if(_0x380dd2['containsRange'](_0x22c649,!0x0))return null;_0x90f9c6=_0x90f9c6['isBefore'](_0x380dd2['start'])?_0x90f9c6:_0x380dd2['start'],_0x406b65=_0x406b65['isAfter'](_0x380dd2['end'])?_0x406b65:_0x380dd2['end'],_0x13f947?_0x380dd2['start']['isBefore'](_0x13f947['getFirstRange']()['start'])?(_0x13f947['removeMarkers'](),_0x13f947=_0x302314):_0x302314['removeMarkers']():_0x13f947=_0x302314;}else{const _0x5bd1e5=_0x22c649['getIntersection'](_0x380dd2);this['_cutOutSuggestionMarker'](_0x302314,_0x5bd1e5);}}const _0x1e1ceb=this['editor']['plugins']['get']('Users')['me'],_0x51f0d8=_0x49bc9e(),_0x2ed7fe=_0x1e1ceb['id'];if(_0x13f947)return this['_setSuggestionRange'](_0x13f947,this['_model']['createRange'](_0x90f9c6,_0x406b65)),_0x13f947;{const _0xf62b20=this['_setSuggestionData']({'id':_0x51f0d8,'type':'formatBlock:'+_0x1651ed,'data':_0x3e01e1,'createdAt':new Date(),'authorId':_0x2ed7fe,'attributes':_0x173a0b});return this['_addSuggestionMarker']('formatBlock:'+_0x1651ed,_0x51f0d8,_0x2ed7fe,this['_model']['createRange'](_0x90f9c6,_0x406b65)),_0xf62b20;}}['markMultiRangeBlockFormat'](_0x30bb19,_0x26708a,_0x1238c0=[],_0x20e4a2=null,_0x291515={}){_0x26708a['formatGroupId']||(_0x26708a['formatGroupId']=_0x26708a['commandName']);const _0x2651b8=_0x30bb19[0x0];_0x26708a['multipleBlocks']=_0x2651b8['is']('range'),_0x20e4a2=_0x20e4a2||Ht(_0x26708a);const _0x3ada8e=_0x1238c0['map'](_0x356ab0=>tn(_0x356ab0,this['_model'])),_0xecb2c2=_0x2651b8['is']('range')?_0x30bb19:_0x30bb19['map'](_0x3cfd88=>tn(_0x3cfd88,this['_model']));if(this['_trackingSessionId']&&(_0x291515['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x195fa0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20e4a2,'accept');return this['forceDefaultExecution'](()=>_0x195fa0(_0xecb2c2,_0x26708a,_0x291515)),null;}_0x3ada8e['push'](..._0xecb2c2);let _0x2f8cf6=!0x0;for(const _0x1496b6 of _0x3ada8e)if(!this['_rangeIsInLocalUserInsertion'](_0x1496b6)){_0x2f8cf6=!0x1;break;}if(_0x2f8cf6&&'always'!==this['_trackFormatChanges']){const _0x3bc16e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20e4a2,'accept');return this['forceDefaultExecution'](()=>_0x3bc16e(_0xecb2c2,_0x26708a,_0x291515)),null;}const _0x323313=this['editor']['plugins']['get']('Users')['me'];for(const _0x2d0fc7 of this['getSuggestions']()){const _0x13d096=_0x2d0fc7['data'];if(_0x2d0fc7['author']['id']!=_0x323313['id'])continue;if('formatBlock'!=_0x2d0fc7['type']||_0x13d096['formatGroupId']!=_0x26708a['formatGroupId'])continue;if(!sn(_0x2d0fc7,_0x291515))continue;const _0x454f5b=_0x2d0fc7['subType']==_0x20e4a2;for(let _0x4b988a=0x0;_0x4b988a<_0xecb2c2['length'];_0x4b988a++){const _0xd09824=_0xecb2c2[_0x4b988a];for(const _0x432ac4 of _0x2d0fc7['getMarkers']()){const _0x1d4dc0=_0x432ac4['getRange']();if(_0xd09824['isEqual'](_0x1d4dc0)){_0x454f5b?(_0xecb2c2['splice'](_0x4b988a,0x1),_0x4b988a--):_0x2d0fc7['removeMarker'](_0x432ac4['name']);break;}}}}if(0x0==_0xecb2c2['length'])return null;const _0x28ea2a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20e4a2,'join');for(const _0x5569bc of this['getSuggestions']()){const _0x15e6a0=_0x5569bc['data'];if(_0x5569bc['author']['id']==_0x323313['id']&&('formatBlock'==_0x5569bc['type']&&_0x15e6a0['formatGroupId']==_0x26708a['formatGroupId']&&_0x5569bc['subType']==_0x20e4a2&&sn(_0x5569bc,_0x291515)&&(_0x28ea2a(_0x5569bc['getRanges'](),_0xecb2c2)||_0x28ea2a(_0xecb2c2,_0x5569bc['getRanges']())))){for(const _0x963daa of _0xecb2c2)_0x5569bc['addRange'](_0x963daa);return _0x5569bc;}}const _0x976502=_0x49bc9e(),_0x25925b=_0x323313['id'],_0x55e33e='formatBlock:'+_0x20e4a2,_0x439ece=this['_setSuggestionData']({'id':_0x976502,'type':_0x55e33e,'data':_0x26708a,'createdAt':new Date(),'authorId':_0x25925b,'attributes':_0x291515});for(const _0x58dbe0 of _0xecb2c2)this['_addSuggestionMarker'](_0x55e33e,_0x976502,_0x25925b,_0x58dbe0,x['getMultiRangeId']());return _0x439ece;}['markDeletion'](_0x3297f9,_0xd19bdc=null,_0x2178c7={}){if(_0x3297f9['isCollapsed'])return null;const _0xbd0b0c=this['editor']['plugins']['get']('Users')['me'],_0x1488bc=new _0x7e27aa(_0x3297f9['start'],_0x3297f9['end']);this['_trackingSessionId']&&(_0x2178c7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3bb5cc,meta:_0x4f2b8e}of this['_findSuggestions'](_0x1488bc,'insertion'))if(_0x4f2b8e['isOwn']&&!_0x4f2b8e['isNextTo']){if(_0x3bb5cc['isMultiRange']){const _0x8d502=_0x3bb5cc['getRanges']()['filter'](_0x52d31f=>'$graveyard'!=_0x52d31f['root']['rootName']);_0x8d502['every'](_0x5c9f5a=>_0x1488bc['containsRange'](_0x5c9f5a,!0x0))&&_0x3bb5cc['discard']();if(_0x8d502['some'](_0x23bc43=>_0x23bc43['containsRange'](_0x1488bc,!0x0))){const _0x255b6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd19bdc,'accept');return this['forceDefaultExecution'](()=>_0x255b6b([_0x1488bc],null,_0x2178c7)),null;}}else{const _0x49ce06=_0x1488bc['getIntersection'](_0x3bb5cc['getFirstRange']());null!==_0x49ce06&&_0x3bb5cc['_onDiscard']([_0x49ce06],null,_0x2178c7);}}if(_0x1488bc['detach'](),_0x1488bc['isCollapsed']||'$graveyard'==_0x1488bc['root']['rootName'])return null;let _0x2ca0a9=null,_0x524cb1=_0x1488bc['start'],_0x19de6e=_0x1488bc['end'];const _0x20e561=this['_findSuggestions'](_0x1488bc,'deletion');for(const {suggestion:_0x2661cc,meta:_0x3e1722}of _0x20e561){const _0x237eae=this['_model']['createRange'](_0x524cb1,_0x19de6e);if(_0x3e1722['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e1722['containsRangeInObject']&&!_0x3e1722['isInsideObject'])){if(_0x2661cc['isMultiRange']){if(!sn(_0x2661cc,_0x2178c7))continue;let _0x15b25c=!0x0;for(const _0x25f09d of _0x2661cc['getRanges']()){if(_0x25f09d['containsRange'](_0x237eae,!0x0))return _0x2661cc;_0x237eae['containsRange'](_0x25f09d)||(_0x15b25c=!0x1);}_0x15b25c&&_0x2661cc['discard']();}else{const _0x383992=_0x2661cc['getFirstRange']();if(_0x383992['containsRange'](_0x237eae,!0x0))return _0x2661cc;if(!sn(_0x2661cc,_0x2178c7)){_0x237eae['containsRange'](_0x383992)?_0x2661cc['removeMarkers']():_0x383992['containsPosition'](_0x524cb1)?_0x524cb1=_0x383992['end']:_0x383992['containsPosition'](_0x19de6e)&&(_0x19de6e=_0x383992['start']);continue;}_0x524cb1=_0x524cb1['isBefore'](_0x383992['start'])?_0x524cb1:_0x383992['start'],_0x19de6e=_0x19de6e['isAfter'](_0x383992['end'])?_0x19de6e:_0x383992['end'],_0x2178c7=Object['assign']({},_0x2661cc['attributes']),_0x2ca0a9?_0x383992['start']['isBefore'](_0x2ca0a9['getFirstRange']()['start'])?(_0x2ca0a9['removeMarkers'](),_0x2ca0a9=_0x2661cc):_0x2661cc['removeMarkers']():_0x2ca0a9=_0x2661cc;}}}if(_0x2ca0a9)return this['_setSuggestionRange'](_0x2ca0a9,this['_model']['createRange'](_0x524cb1,_0x19de6e)),_0x2ca0a9;{const _0x1b532f=_0x49bc9e(),_0x275779=this['_model']['createRange'](_0x524cb1,_0x19de6e),_0x46344a=_0xbd0b0c['id'],_0x23dada=_0xd19bdc?'deletion:'+_0xd19bdc:'deletion',_0x36b974=this['_setSuggestionData']({'id':_0x1b532f,'type':_0x23dada,'createdAt':new Date(),'authorId':_0x46344a,'attributes':_0x2178c7});return this['_addSuggestionMarker'](_0x23dada,_0x1b532f,_0x46344a,_0x275779),_0x36b974;}}['markMultiRangeDeletion'](_0x293b7a,_0x1a8afe='multi',_0x55bd39={}){const _0x4a234c=this['editor']['plugins']['get']('Users')['me'],_0x1ff93c=_0x293b7a['map'](_0x1beb4c=>new _0x7e27aa(_0x1beb4c['start'],_0x1beb4c['end'])),_0x13923b=new Set();this['_trackingSessionId']&&(_0x55bd39['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xf26964,meta:_0x19bc1d}of this['_findSuggestions'](_0x1ff93c,'insertion'))_0x19bc1d['isOwn']&&!_0x19bc1d['isNextTo']&&_0x13923b['add'](_0xf26964);for(const _0x33442b of _0x13923b)if(_0x33442b['isMultiRange']){const _0x50f87a=_0x33442b['getRanges']();(!_0x33442b['attributes']||!_0x33442b['attributes']['skipNestingCheck'])&&(_0x50f87a['every'](_0x301497=>_0x1ff93c['some'](_0x3c41f4=>_0x3c41f4['containsRange'](_0x301497,!0x0)))&&_0x33442b['discard']());if(_0x1ff93c['every'](_0x57e135=>_0x50f87a['some'](_0xe18321=>_0xe18321['containsRange'](_0x57e135,!0x0)))){const _0x5349f6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a8afe,'accept');return this['forceDefaultExecution'](()=>_0x5349f6(_0x293b7a,null,_0x55bd39)),null;}}else{const _0x1d0487=_0x33442b['getFirstRange']();_0x1ff93c['some'](_0x5cfb80=>_0x5cfb80['containsRange'](_0x1d0487,!0x0))&&_0x33442b['discard']();if(_0x1ff93c['every'](_0x3c8136=>_0x1d0487['containsRange'](_0x3c8136,!0x0))){const _0x591d91=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a8afe,'accept');return this['forceDefaultExecution'](()=>_0x591d91(_0x1ff93c,null,_0x55bd39)),null;}}const _0xec13a0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a8afe,'join');let _0x48ccf3=null;for(const _0x2fbf8c of this['getSuggestions']())if(_0x2fbf8c['author']['id']==_0x4a234c['id']&&_0x2fbf8c['isInContent']&&'deletion'==_0x2fbf8c['type']&&_0x2fbf8c['subType']==_0x1a8afe&&sn(_0x2fbf8c,_0x55bd39)&&(_0xec13a0(_0x2fbf8c['getRanges'](),_0x1ff93c)||_0xec13a0(_0x1ff93c,_0x2fbf8c['getRanges']()))){if(_0x48ccf3){if(_0x2fbf8c['commentThread']&&_0x2fbf8c['commentThread']['length'])continue;for(const _0x23e39f of _0x2fbf8c['getRanges']())_0x48ccf3['isIntersectingWithRange'](_0x23e39f)||_0x48ccf3['addRange'](_0x23e39f);_0x2fbf8c['removeMarkers']();}else{_0x48ccf3=_0x2fbf8c;for(const _0x2c2698 of _0x1ff93c)_0x2fbf8c['isIntersectingWithRange'](_0x2c2698)||_0x2fbf8c['addRange'](_0x2c2698);}}if(_0x48ccf3)return _0x48ccf3;_0x13923b['clear']();for(const {suggestion:_0x17c4ce,meta:_0x305216}of this['_findSuggestions'](_0x1ff93c,'deletion'))_0x305216['isOwn']&&(this['_mergeNestedSuggestions']||!_0x305216['containsRangeInObject']&&!_0x305216['isInsideObject'])&&sn(_0x17c4ce,_0x55bd39)&&_0x13923b['add'](_0x17c4ce);for(const _0x46d5b2 of _0x13923b){const _0x428ed1=_0x46d5b2['getRanges']();if(!_0x55bd39||!_0x55bd39['skipNestingCheck']){if(_0x1ff93c['every'](_0x57701d=>_0x428ed1['some'](_0x3647c7=>_0x3647c7['containsRange'](_0x57701d,!0x0))))return _0x46d5b2;}(!_0x46d5b2['attributes']||!_0x46d5b2['attributes']['skipNestingCheck'])&&(_0x428ed1['every'](_0x2062dd=>_0x1ff93c['some'](_0x235af6=>_0x235af6['containsRange'](_0x2062dd,!0x0)))&&_0x46d5b2['discard']());}const _0xe47acb=_0x49bc9e(),_0x6bc9f9=_0x4a234c['id'],_0x1b88d4='deletion:'+_0x1a8afe,_0x521b31=this['_setSuggestionData']({'id':_0xe47acb,'type':_0x1b88d4,'createdAt':new Date(),'authorId':_0x6bc9f9,'attributes':_0x55bd39});for(const _0x21d9db of _0x1ff93c)_0x21d9db['detach'](),_0x21d9db['isCollapsed']||'$graveyard'==_0x21d9db['root']['rootName']||this['_addSuggestionMarker'](_0x1b88d4,_0xe47acb,_0x6bc9f9,_0x21d9db,x['getMultiRangeId']());return _0x521b31;}['markAttributeChange'](_0x462684,_0x1c953f,_0x5a0d8d,_0x2da92a,_0x310e6f){if(_0x462684['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5d32e7=this['editor']['plugins']['get']('Users')['me']['id'],_0xc67912=Array['from'](this['_suggestions']['values']())['filter'](_0x42430a=>'attribute'==_0x42430a['type']&&_0x42430a['data']['key']==_0x1c953f&&_0x42430a['isIntersectingWithRange'](_0x462684));if(this['_trackingSessionId']&&(_0x310e6f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x14294e=this['_findSuggestions'](_0x462684,'insertion')['filter'](({meta:_0x3bd8f0})=>_0x3bd8f0['isOwn']&&!_0x3bd8f0['isInsideObject']&&!_0x3bd8f0['isNextTo'])['map'](({suggestion:_0x1abb18})=>_0x1abb18);_0xc67912['unshift'](..._0x14294e);}const _0x2be1ea=new Map([[_0x462684,_0x5a0d8d]]);for(const _0x37d0ec of _0xc67912){const _0x30dd7='attribute'==_0x37d0ec['type']?_0x37d0ec['data']['oldValue']:void 0x0,_0x233e38=_0x37d0ec['getFirstRange'](),_0x1e9ecd=Array['from'](_0x2be1ea['keys']())['find'](_0x29b8a1=>_0x29b8a1['isIntersecting'](_0x233e38));if(!_0x1e9ecd)continue;const _0x3a9c38=_0x1e9ecd['getDifference'](_0x233e38);this['_isBlockAttribute'](_0x1c953f)&&'insertion'==_0x37d0ec['type']&&0x0!=_0x3a9c38['length']||(_0x2be1ea['delete'](_0x1e9ecd),_0x3a9c38['forEach'](_0x5f1c3b=>{_0x2be1ea['set'](_0x5f1c3b,_0x5a0d8d);}),'insertion'!=_0x37d0ec['type']&&_0x30dd7!=_0x2da92a&&_0x2be1ea['set'](_0x1e9ecd['getIntersection'](_0x233e38),_0x30dd7));}const _0x2a6d1f=[];for(const [_0xa4e657,_0x416e4c]of _0x2be1ea){const _0x64d80d=_0x49bc9e(),_0x1a0996={'key':_0x1c953f,'oldValue':_0x416e4c,'newValue':_0x2da92a};_0x1c953f['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':_0x1c953f});const _0x35c94e=('attribute:'+(_0x1c953f+'|'+Ht({'newValue':_0x2da92a})))['substring'](0x0,0x3c),_0x103c98=this['_setSuggestionData']({'id':_0x64d80d,'type':_0x35c94e,'data':_0x1a0996,'createdAt':new Date(),'authorId':_0x5d32e7,'attributes':_0x310e6f});_0x2a6d1f['push'](_0x103c98),this['_addSuggestionMarker'](_0x35c94e,_0x64d80d,_0x5d32e7,_0xa4e657);}return _0x2a6d1f;}['enableDefaultAttributesIntegration'](_0x3dbe8e){this['enableCommand'](_0x3dbe8e,(_0x3945c7,..._0x3369bb)=>{this['recordAttributeChanges'](()=>{_0x3945c7(..._0x3369bb);});});}['registerBlockAttribute'](_0x28435e){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x28435e);}['registerInlineAttribute'](_0x1a2be9){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1a2be9);}['startTrackingSession'](_0x3ab0c2){return this['_trackingSessionId']=void 0x0!==_0x3ab0c2?_0x3ab0c2:_0x49bc9e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x56a786){return'attribute'==_0x56a786['type']?_0x56a786['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x13e09b){if(0x0==_0x13e09b['length'])return;const _0x56af2f=this['editor'],_0x8ed299=_0x56af2f['plugins']['get'](_0x49fb4a),_0x475660=[];_0x56af2f['model']['change'](_0x544999=>{for(let _0x91a1c7=0x0;_0x91a1c7<_0x13e09b['length'];_0x91a1c7++){const _0x27f134=_0x13e09b[_0x91a1c7];if(_0x27f134['baseVersion']=_0x56af2f['model']['document']['version'],_0x27f134['isDocumentOperation']=!0x0,_0x8ed299['isMarkedRemoveOperation'](_0x27f134)){const _0x13102c=Lt(_0x27f134['newRange'],_0x56af2f['model']);_0x475660['unshift'](_0x7e27aa['fromRange'](_0x13102c));}else switch(_0x27f134['type']){case'rename':{const _0xa23f07=_0x27f134['oldName'],_0x32258e=_0x27f134['newName'];if(_0xa23f07==_0x32258e)break;_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);const _0x4336cd='$elementName',_0x5a9a70=_0x27f134['position'],_0x4b033e=_0x56af2f['model']['createRange'](_0x5a9a70,_0x56af2f['model']['createPositionAt'](_0x5a9a70['nodeAfter'],'end'));this['markAttributeChange'](_0x4b033e,_0x4336cd,_0xa23f07,_0x32258e,{'groupId':_0x49bc9e()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2bceef=_0x27f134['oldValue'],_0x522031=_0x27f134['newValue'];if(_0x2bceef==_0x522031)break;_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);const _0x4d4b29=_0x27f134['key'];if(!this['_isRegisteredAttribute'](_0x4d4b29))break;const _0x5cdde5=Lt(_0x27f134['range'],_0x56af2f['model']);this['markAttributeChange'](_0x5cdde5,_0x4d4b29,_0x2bceef,_0x522031,{'groupId':_0x49bc9e()});break;}case'insert':{_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);if(_0x13e09b[_0x91a1c7+0x1]&&'move'==_0x13e09b[_0x91a1c7+0x1]['type'])break;const _0x7361b2=_0x27f134['position'],_0x5cbb6a=_0x27f134['howMany'],_0x51089c=Lt(_0x56af2f['model']['createRange'](_0x7361b2,_0x7361b2['getShiftedBy'](_0x5cbb6a)),_0x56af2f['model']);this['markInsertion'](_0x51089c);break;}case'split':{_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);const _0x13b0f=_0x27f134['splitPosition'],_0x4a3618=_0x27f134['moveTargetPosition'];this['markInsertion'](_0x56af2f['model']['createRange'](_0x13b0f,_0x4a3618));break;}case'move':case'remove':_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);}}for(const _0x3baeae of _0x475660)_0x3baeae['detach'](),this['markDeletion'](_0x3baeae);});}['_setSuggestionRange'](_0x4e12f9,_0x303868){const _0x55e287=_0x4e12f9['getFirstMarker']();this['_model']['change'](_0x147057=>{_0x147057['updateMarker'](_0x55e287,{'range':_0x303868});});}['_addThreadToSuggestion'](_0x46d222){const _0x565546=_0x46d222['id'],_0x339936=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x565546)||this['_commentsRepository']['addCommentThread']({'channelId':_0x339936,'threadId':_0x565546,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c01d5=this['_commentsRepository']['getCommentThread'](_0x565546);_0x1c01d5['unbind']('isRemovable'),_0x1c01d5['isRemovable']=!0x1,_0x46d222['commentThread']=_0x1c01d5;}['_checkSuggestionCorrectness'](_0x225d91,_0x206e28,_0x3a1ddd,_0x48dc28){if(_0x225d91['type']!=_0x206e28||_0x225d91['subType']!=_0x3a1ddd||_0x225d91['creator']['id']!=_0x48dc28)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3229f3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x41e746,_0x465c60){const _0x3dd3c6=_0x41e746['getFirstRange']();if(_0x465c60['isEqual'](_0x3dd3c6))_0x41e746['removeMarkers']();else{if(_0x3dd3c6['containsRange'](_0x465c60)){const _0x29b93c=this['_model']['createPositionAt'](_0x465c60['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41e746,this['_model']['createRange'](_0x3dd3c6['start'],_0x29b93c));const _0x4c7ecb=_0x49bc9e(),_0x2c2084=_0x41e746['creator']['id'],_0x3aaab7=_0x41e746['type']+':'+_0x41e746['subType'];this['_setSuggestionData']({'id':_0x4c7ecb,'type':_0x3aaab7,'createdAt':new Date(),'authorId':_0x2c2084,'data':_0x41e746['data'],'attributes':_0x41e746['attributes']});const _0x27ed0f=this['_model']['createPositionAt'](_0x465c60['end']['parent'],'after'),_0x429dbc=this['_model']['createRange'](_0x27ed0f,_0x3dd3c6['end']);this['_addSuggestionMarker'](_0x3aaab7,_0x4c7ecb,_0x2c2084,_0x429dbc);}else{if(_0x3dd3c6['containsPosition'](_0x465c60['start'])){const _0x5d8ed1=this['_model']['createPositionAt'](_0x465c60['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41e746,this['_model']['createRange'](_0x3dd3c6['start'],_0x5d8ed1));}else{const _0x3f19c7=this['_model']['createPositionAt'](_0x465c60['end']['parent'],'after');this['_setSuggestionRange'](_0x41e746,this['_model']['createRange'](_0x3f19c7,_0x3dd3c6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4589f2){for(const {suggestion:_0x2347b3,meta:_0x1aa606}of this['_findSuggestions'](_0x4589f2,'insertion')){if(!_0x1aa606['isOwn'])continue;const _0x3639ec=_0x2347b3['getRanges']();for(const _0x20c364 of _0x3639ec)if(!_0x4589f2['getDifference'](_0x20c364)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1fefeb){return this['editor']['plugins']['get']('Users')['getUser'](_0x1fefeb);}['_getExternalAuthor'](_0x1dac81){const _0x301c1d=this['editor']['plugins']['get']('Users'),_0x15ae93=_0xa821ed('external:'+_0x1dac81),_0x1e128a=_0x301c1d['getUser'](_0x15ae93);return _0x1e128a||_0x301c1d['addUser']({'id':_0x15ae93,'name':_0x1dac81});}['_createSuggestion'](_0x4dc51f,_0x15b841,_0x43d977,_0x50c37d,_0x355bf4,_0x246e71){const _0x313a8c=this['_getAuthorFromId'](_0x50c37d);if(!_0x313a8c)throw new _0x3229f3('track-changes-user-not-found',this,{'authorId':_0x50c37d,'suggestionId':_0x43d977});const _0x517772=this['_suggestionFactory']['buildSuggestion'](_0x4dc51f,_0x15b841,_0x43d977,_0x313a8c,_0x355bf4,_0x41c3cf=>{this['_updateSuggestionData'](_0x43d977,{'attributes':_0x41c3cf});const _0x3f3bcb=this['getSuggestion'](_0x43d977);this['_joinWithAdjacentSuggestions'](new Set([_0x3f3bcb])),this['_refreshSuggestionsChain'](new Set([_0x3f3bcb]));},_0x246e71);return this['listenTo'](_0x517772,'accept',()=>{this['_updateSuggestionData'](_0x43d977,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x517772,'discard',()=>{this['_updateSuggestionData'](_0x43d977,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x43d977,_0x517772),this['_suggestionState']['set'](_0x517772,'notReady'),_0x517772;}['_splitMarkerName'](_0x29cda1){return Gt(_0x29cda1);}['_breakSuggestionMarker'](_0x3b73ec,_0x561bba,_0x2f4c4b){const _0x197c6c=_0x3b73ec['getFirstRange'](),_0x5c7d49=_0x197c6c['start'],_0x3f6c0a=_0x197c6c['end'];this['_setSuggestionRange'](_0x3b73ec,this['_model']['createRange'](_0x5c7d49,_0x561bba));const _0x3ee0dc=_0x49bc9e(),_0x1089e5=_0x3b73ec['creator']['id'],_0x7c8cdc=_0x3b73ec['type']+(_0x3b73ec['subType']?':'+_0x3b73ec['subType']:'');this['_setSuggestionData']({'id':_0x3ee0dc,'type':_0x7c8cdc,'createdAt':new Date(),'authorId':_0x1089e5,'originalSuggestionId':_0x3b73ec['_originalSuggestionId']||_0x3b73ec['id'],'attributes':_0x3b73ec['attributes'],'data':_0x3b73ec['data']});const _0x37461c=this['_getAttributeKey'](_0x3b73ec);('formatBlock'==_0x3b73ec['type']||_0x37461c&&this['_isBlockAttribute'](_0x37461c))&&(_0x2f4c4b=this['_model']['createPositionBefore'](_0x2f4c4b['parent'])),this['_addSuggestionMarker'](_0x7c8cdc,_0x3ee0dc,_0x1089e5,this['_model']['createRange'](_0x2f4c4b,_0x3f6c0a));}['_findSuggestions'](_0x17daa7,_0x25736e=null){const _0x5d63a8=[],_0x575e5d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x17daa7)||(_0x17daa7=[_0x17daa7]);for(const _0x29b400 of this['getSuggestions']()){if(!_0x29b400['isInContent'])continue;if(_0x25736e&&_0x29b400['type']!=_0x25736e)continue;let _0x24d58a=!0x1;for(const _0x4f0ece of _0x29b400['getRanges']()){for(const _0x3a9c23 of _0x17daa7){const _0x3dbf83=_0x3a9c23['start']['isEqual'](_0x4f0ece['end'])||_0x3a9c23['end']['isEqual'](_0x4f0ece['start']);if(_0x3dbf83||_0x3a9c23['getIntersection'](_0x4f0ece)){const _0x5bcb24=_0x3a9c23['containsRange'](_0x4f0ece)&&zt(this['_model']['schema'],_0x4f0ece['start'],_0x3a9c23),_0x3b4efd=_0x4f0ece['containsRange'](_0x3a9c23)&&zt(this['_model']['schema'],_0x3a9c23['start'],_0x4f0ece);_0x5d63a8['push']({'suggestion':_0x29b400,'meta':{'isOwn':_0x575e5d==_0x29b400['author'],'isNextTo':_0x3dbf83,'isInsideObject':_0x5bcb24,'containsRangeInObject':_0x3b4efd}}),_0x24d58a=!0x0;break;}}if(_0x24d58a)break;}}return _0x5d63a8;}['_addSuggestionMarker'](_0x34465a,_0x2f682b,_0x25066d,_0x50914c,_0x41d9a7){this['_model']['change'](_0x2b709c=>{let _0xd2a710='suggestion:'+_0x34465a+':'+_0x2f682b+':'+_0x25066d;_0x41d9a7&&(_0xd2a710=_0xd2a710+':'+_0x41d9a7),_0x2b709c['addMarker'](_0xd2a710,{'range':_0x50914c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1ec23b){const _0x5d2423=_0x1ec23b['previous'],_0x2e269b=_0x1ec23b['next'];_0x1ec23b['previous']=null,_0x1ec23b['next']=null,null!=_0x5d2423&&_0x5d2423['next']==_0x1ec23b&&(_0x5d2423['next']=_0x2e269b),null!=_0x2e269b&&_0x2e269b['previous']==_0x1ec23b&&(_0x2e269b['previous']=_0x5d2423),'ready'==this['_suggestionState']['get'](_0x1ec23b)&&(this['_suggestionState']['set'](_0x1ec23b,'removed'),this['fire']('suggestionUnloaded',_0x1ec23b,_0x5d2423,_0x2e269b));}['_setSuggestionData'](_0x3d5276){const _0x58e9a8=_0x3d5276['id'],_0x127124=this['addSuggestionData'](_0x3d5276);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f9d81=this['editor']['plugins']['get']('PendingActions'),_0x45af81=_0x127124['hasComments'],_0x377108=_0x127124['subType']?_0x127124['type']+':'+_0x127124['subType']:_0x127124['type'],_0x5bf10b=this['editor']['locale'],_0x27e2eb=_0x1f9d81['add'](o(_0x5bf10b,'PENDING_ACTION_SUGGESTION')),_0x43a9a1={'id':_0x58e9a8,'type':_0x377108,'hasComments':_0x45af81,'data':_0x3d5276['data']||null,'originalSuggestionId':_0x3d5276['originalSuggestionId']||null,'attributes':_0x127124['attributes']};this['_adapter']['addSuggestion'](_0x43a9a1)['then'](_0xe68ccc=>{_0x127124['_saved']=!0x0,_0x1f9d81['remove'](_0x27e2eb),_0xe68ccc&&_0xe68ccc['createdAt']&&(this['_suggestions']['get'](_0x58e9a8)['createdAt']=_0xe68ccc['createdAt']);})['catch'](_0x573951=>{throw _0x2c240d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x127124['discard']();}),_0x127124['stopListening'](),this['_suggestions']['delete'](_0x127124['id']),this['_suggestionState']['delete'](_0x127124),_0x573951;});}return _0x127124;}['_isBlockAttribute'](_0x24db2c){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x24db2c);}['_isInlineAttribute'](_0x5644df){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x5644df);}['_updateSuggestionData'](_0x40c8a1,_0x4a3505){const _0x5808d2=this['editor']['plugins']['get']('PendingActions'),_0x1961b2=this['getSuggestion'](_0x40c8a1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1961b2['_saved']){const _0x2c8f19=_0x5808d2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x40c8a1,_0x4a3505)['then'](()=>{_0x5808d2['remove'](_0x2c8f19);});}else _0x1961b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x40c8a1,_0x4a3505);});}}['_getSuggestionData'](_0x10ef3a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3229f3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x10ef3a);}['_handleNewSuggestionMarker'](_0x39c445){const {id:_0x4c2548,type:_0xa4a902,subType:_0x11949e,authorId:_0x2030aa}=this['_splitMarkerName'](_0x39c445),_0x2b9d12=this['_suggestions']['get'](_0x4c2548)||this['_createSuggestion'](_0xa4a902,_0x11949e,_0x4c2548,_0x2030aa,{});switch(this['_checkSuggestionCorrectness'](_0x2b9d12,_0xa4a902,_0x11949e,_0x2030aa),this['_suggestionState']['get'](_0x2b9d12)){case'notReady':this['_getSuggestionData'](_0x4c2548)['then'](_0x1e2471=>{let _0x1b897e=Promise['resolve']();_0x1e2471['hasComments']&&(_0x1b897e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4c2548})),_0x1b897e['then'](()=>{this['addSuggestionData'](_0x1e2471)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2b9d12,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4c2548,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2b9d12,'ready'),this['fire']('suggestionLoaded',_0x2b9d12);break;case'ready':this['fire']('suggestionChanged',_0x2b9d12);}return _0x2b9d12['addMarkerName'](_0x39c445),_0x2b9d12;}['_refreshSuggestionsChain'](_0x5607be){const _0x7fbe3a=Array['from'](_0x5607be),_0x3295eb=_0x7fbe3a['filter'](_0x3bed4d=>'attribute'==_0x3bed4d['type']);this['_refreshAttributeSuggestionsChain'](_0x3295eb);const _0x5aed93=_0x7fbe3a['filter'](_0x32f906=>!_0x32f906['isMultiRange']&&'attribute'!=_0x32f906['type']),_0x4a8b44=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xefdfa6=>!_0xefdfa6['isMultiRange']&&'attribute'!=_0xefdfa6['type']),_0x238109=_0x4a8b44['filter'](_0x58fa6e=>!_0x5607be['has'](_0x58fa6e)),_0x221995=new Map(_0x4a8b44['map'](_0x24e9c6=>[_0x24e9c6,this['_suggestionFactory']['getSuggestionCallback'](_0x24e9c6['type'],_0x24e9c6['subType'],'chain')])),_0x3886fd=new Map(_0x4a8b44['map'](_0x1e5878=>[_0x1e5878,_0x1e5878['getFirstRange']()])),_0x35a42c=new Set(),_0x3567cd=new Set();for(let _0x21867a=0x0;_0x21867a<_0x5aed93['length'];_0x21867a++)_0x5e9568(_0x5aed93[_0x21867a],_0x5aed93,_0x21867a+0x1);for(let _0x1b0deb=0x0;_0x1b0deb<_0x5aed93['length'];_0x1b0deb++)_0x5e9568(_0x5aed93[_0x1b0deb],_0x238109,0x0);const _0x2b0766=new Set();for(let _0x1c7fa3=0x0;_0x1c7fa3<_0x5aed93['length'];_0x1c7fa3++){const _0x591451=_0x5aed93[_0x1c7fa3];!_0x3567cd['has'](_0x591451)&&_0x591451['previous']&&(_0x2b0766['add'](_0x591451['previous']),_0x591451['previous']['next']===_0x591451&&(_0x591451['previous']['next']=null),_0x591451['previous']=null),!_0x35a42c['has'](_0x591451)&&_0x591451['next']&&(_0x2b0766['add'](_0x591451['next']),_0x591451['next']['previous']===_0x591451&&(_0x591451['next']['previous']=null),_0x591451['next']=null);}function _0x5e9568(_0x576f22,_0x4f7597,_0x54ff37){for(let _0x10999d=_0x54ff37;_0x10999d<_0x4f7597['length'];_0x10999d++){const _0x42febc=_0x3c40a4(_0x576f22,_0x4f7597[_0x10999d]);_0x42febc&&(_0x42febc[0x0]['next']=_0x42febc[0x1],_0x42febc[0x1]['previous']=_0x42febc[0x0],_0x35a42c['add'](_0x42febc[0x0]),_0x3567cd['add'](_0x42febc[0x1]));}}function _0x3c40a4(_0x39630f,_0x249eab){if(_0x39630f['author']['id']!==_0x249eab['author']['id'])return null;const _0x15a072=_0x221995['get'](_0x39630f)(_0x39630f,_0x249eab,_0x3886fd['get'](_0x39630f),_0x3886fd['get'](_0x249eab));if(!_0x15a072)return null;return _0x221995['get'](_0x249eab)(_0x39630f,_0x249eab,_0x3886fd['get'](_0x39630f),_0x3886fd['get'](_0x249eab))?_0x15a072[0x1]['commentThread']&&_0x15a072[0x1]['commentThread']['length']?null:_0x15a072:null;}_0x2b0766['size']&&this['_refreshSuggestionsChain'](_0x2b0766);}['_refreshAttributeSuggestionsChain'](_0x58d5b3){if(0x0==_0x58d5b3['length'])return;const _0x1abc17=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13525c=>'attribute'==_0x13525c['type']&&_0x13525c['_isDataLoaded']),_0x84fbf5=[],_0x151153=new Map();for(const _0x4895b6 of _0x1abc17){const _0x406a0c=_0xa821ed(_0x4895b6['attributes']);_0x151153['has'](_0x406a0c)||(_0x151153['set'](_0x406a0c,_0x84fbf5['length']),_0x84fbf5['push']([]));const _0x17332e=_0x151153['get'](_0x406a0c);_0x84fbf5[_0x17332e]['push'](_0x4895b6);}!(function(){_0x84fbf5['sort']((_0x42825f,_0x1d2e8a)=>{const _0x4ea11c=_0x42825f[0x0]['createdAt'],_0x1f3217=_0x1d2e8a[0x0]['createdAt'];return _0x4ea11c==_0x1f3217?_0x42825f[0x0]['attributes']['groupId']<_0x1d2e8a[0x0]['attributes']['groupId']?-0x1:0x1:_0x4ea11c<_0x1f3217?-0x1:0x1;});for(const _0x1075ea of _0x84fbf5)_0x1075ea['sort']((_0x289c1e,_0x30dea9)=>_0x289c1e['id']<_0x30dea9['id']?-0x1:0x1);}());for(let _0x266fad=0x0;_0x266fad<_0x84fbf5['length'];_0x266fad++){if(0x0==_0x84fbf5[_0x266fad]['length'])continue;const _0x498416=[];for(let _0xdb07f0=_0x266fad+0x1;_0xdb07f0<_0x84fbf5['length'];_0xdb07f0++)0x0!=_0x84fbf5[_0xdb07f0]['length']&&_0x5b56f1(_0x84fbf5[_0x266fad],_0x84fbf5[_0xdb07f0])&&_0x498416['push'](_0xdb07f0);for(const _0x5f32c3 of _0x498416)_0x84fbf5[_0x266fad]=_0x84fbf5[_0x266fad]['concat'](_0x84fbf5[_0x5f32c3]),_0x84fbf5[_0x5f32c3]=[];}for(const _0x3d4123 of _0x84fbf5)for(let _0x53f7fc=0x0;_0x53f7fc<_0x3d4123['length'];_0x53f7fc++){const _0xbcfbb2=_0x3d4123[_0x53f7fc+0x1]||null;_0x3d4123[_0x53f7fc]['next']!==_0xbcfbb2&&(_0x3d4123[_0x53f7fc]['next']=_0xbcfbb2);}for(const _0x268a29 of _0x84fbf5)for(let _0x52685b=0x0;_0x52685b<_0x268a29['length'];_0x52685b++){const _0x5142f8=_0x268a29[_0x52685b-0x1]||null;_0x268a29[_0x52685b]['previous']!==_0x5142f8&&(_0x268a29[_0x52685b]['previous']=_0x5142f8);}function _0x5b56f1(_0x5b3d59,_0x396522){if(_0x5b3d59[0x0]['attributes']['groupId']!==_0x396522[0x0]['attributes']['groupId']&&_0x5b3d59[0x0]['author']!==_0x396522[0x0]['author'])return!0x1;if(!function(_0x22239e,_0x21022b){if(!_0x22239e['hasComments']&&!_0x21022b['hasComments'])return!0x0;if(_0x22239e['hasComments']&&_0x21022b['hasComments'])return!0x1;if(_0x22239e['hasComments']&&_0x21022b['createdAt']<_0x22239e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x21022b['hasComments']&&_0x22239e['createdAt']<_0x21022b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b3d59[0x0],_0x396522[0x0]))return!0x1;const _0xc3ac91=Pt(_0x5b3d59[0x0]['attributes'],['groupId','trackingSessionId']),_0x57009c=Pt(_0x396522[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4eaf57(_0xc3ac91,_0x57009c))return!0x1;if(_0x5b3d59[0x0]['attributes']['groupId']==_0x396522[0x0]['attributes']['groupId'])return!0x0;if(_0x5b3d59[0x0]['attributes']['trackingSessionId']!==_0x396522[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5b3d59['every'](_0x5d476e=>_0x396522['some'](_0x13cde6=>_0x5d476e['getFirstRange']()['isEqual'](_0x13cde6['getFirstRange']())))&&_0x396522['every'](_0x5b93b8=>_0x5b3d59['some'](_0x274a66=>_0x5b93b8['getFirstRange']()['isEqual'](_0x274a66['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xb1e58c){const _0x289c8b=Array['from'](_0xb1e58c),_0x379246=this['getSuggestions']({'skipNotAttached':!0x0}),_0x230407=_0x379246['filter'](_0x35dc0b=>!_0xb1e58c['has'](_0x35dc0b)),_0x53011b=new Map(_0x289c8b['map'](_0x14b753=>[_0x14b753,this['_suggestionFactory']['getSuggestionCallback'](_0x14b753['type'],_0x14b753['subType'],'join')])),_0x39a949=new Map(_0x379246['map'](_0x177b4a=>[_0x177b4a,_0x177b4a['getRanges']()]));for(let _0x1c9ed3=0x0;_0x1c9ed3<_0x289c8b['length'];_0x1c9ed3++){if(_0x5da690(this,_0x289c8b[_0x1c9ed3],_0x289c8b,_0x1c9ed3+0x1))return!0x0;}for(let _0x459940=0x0;_0x459940<_0x289c8b['length'];_0x459940++){if(_0x5da690(this,_0x289c8b[_0x459940],_0x230407,0x0))return!0x0;}return!0x1;function _0x5da690(_0x5de1d6,_0x1f9962,_0x21ec4f,_0x546050){for(let _0x4ecfd2=_0x546050;_0x4ecfd2<_0x21ec4f['length'];_0x4ecfd2++){const _0x5a7393=_0x21ec4f[_0x4ecfd2];if(_0x5a7393['type']!==_0x1f9962['type']||_0x5a7393['author']['id']!==_0x1f9962['author']['id']||_0x5a7393['subType']!==_0x1f9962['subType'])continue;if(!en(_0x1f9962,_0x5a7393))continue;if('attribute'==_0x1f9962['type']&&_0x1f9962['data']['oldValue']!=_0x5a7393['data']['oldValue'])continue;if('attribute'==_0x1f9962['type']&&_0x5de1d6['_isBlockAttribute'](_0x1f9962['data']['key']))continue;if('formatBlock'==_0x1f9962['type']){const _0x88bd31=_0x5de1d6['editor']['model'],_0x1eed67=_0x1f9962['getContainedElement']();if(_0x1eed67&&(_0x88bd31['schema']['isObject'](_0x1eed67)||_0x88bd31['schema']['isLimit'](_0x1eed67)))continue;}const _0x52f999=_0x53011b['get'](_0x1f9962),_0x163489=_0x39a949['get'](_0x1f9962),_0x4cdf64=_0x39a949['get'](_0x5a7393),_0x3b2d45=_0x1f9962['commentThread']&&_0x1f9962['commentThread']['length'],_0x2b7398=_0x5a7393['commentThread']&&_0x5a7393['commentThread']['length'];if(!_0x3b2d45&&_0x52f999(_0x4cdf64,_0x163489))return _0x5de1d6['_joinSuggestions'](_0x5a7393,_0x1f9962),_0x39a949['delete'](_0x1f9962),!0x0;if(!_0x2b7398&&_0x52f999(_0x163489,_0x4cdf64))return _0x5de1d6['_joinSuggestions'](_0x1f9962,_0x5a7393),_0x39a949['delete'](_0x5a7393),!0x0;}return!0x1;}}['_joinSuggestions'](_0x40599f,_0x566bfe){if(_0x40599f['isMultiRange']){for(const _0x5d25a0 of _0x566bfe['getRanges']())_0x40599f['addRange'](_0x5d25a0);}else{const _0x1689a2=_0x566bfe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x40599f,this['_model']['createRange'](_0x40599f['getFirstRange']()['start'],_0x1689a2));}_0x566bfe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4f3367,_0x2f9a6e,_0x136bf1){const _0x483d63=_0x4f3367['startsWith']('format')||_0x4f3367['startsWith']('attribute')?'FORMATTING':_0x4f3367['toUpperCase']();return o(this['editor']['locale'],_0x2f9a6e+'_'+_0x483d63+'_SUGGESTION_ANNOUNCEMENT',_0x136bf1);}['_initAriaMarkerChangeAnnouncements'](){const _0x11ed84=this['editor'];if(!_0x11ed84['ui'])return;const {ariaLiveAnnouncer:_0x5e2891}=_0x11ed84['ui'];_0x5c2db1(this['_model'],({left:_0x69930c,entered:_0x2a21fd})=>{for(const _0x573109 of _0x69930c){const {group:_0x37adf5,type:_0x5b2d0d}=this['_splitMarkerName'](_0x573109['name']);if('suggestion'===_0x37adf5){_0x5e2891['announce'](this['_getMarkerAnnouncementText'](_0x5b2d0d,'LEAVE'));break;}}for(const _0x56b41d of _0x2a21fd){const {group:_0x369423,type:_0x15ca16}=this['_splitMarkerName'](_0x56b41d['name']);if('suggestion'===_0x369423){_0x5e2891['announce'](this['_getMarkerAnnouncementText'](_0x15ca16,'ENTER',_0x5e9bd4(_0x25e28a)));break;}}});}['_processAttributeChanges'](_0x36e116){if(this['_recordAttributeSuggestions'])return!0x1;const _0x387fa3=this['editor'],_0x6aba66=_0x387fa3['model']['document']['differ']['getChanges']();if(0x0==_0x6aba66['length'])return!0x1;const _0x105845=[],_0x21cfd0=_0x6aba66['filter'](_0x5345ab=>'attribute'==_0x5345ab['type']),_0x58450d=_0x6aba66['filter'](_0x398558=>'insert'==_0x398558['type']&&'$text'!=_0x398558['name']),_0x4eec2d=_0x6aba66['filter'](_0x4cee5f=>'remove'==_0x4cee5f['type']&&'$text'!=_0x4cee5f['name']);for(const _0x4305c7 of _0x21cfd0)_0x105845['push']({'key':_0x4305c7['attributeKey'],'newValue':_0x4305c7['attributeNewValue'],'oldValue':_0x4305c7['attributeOldValue'],'range':Zt(_0x4305c7['range'],_0x387fa3['model'])});for(const _0xd9cc88 of _0x58450d){const _0x4596dd=_0x4eec2d['find'](_0x37a452=>_0x37a452['position']['isEqual'](_0xd9cc88['position']));_0x4596dd&&_0x105845['push']({'key':m,'newValue':_0xd9cc88['name'],'oldValue':_0x4596dd['name'],'range':_0x387fa3['model']['createRangeOn'](_0xd9cc88['position']['nodeAfter'])});}return 0x0!=_0x105845['length']&&this['_reduceExistingSuggestions'](_0x36e116,_0x105845);}['_processAttributeSuggestions'](_0x3af5fc){let _0x44834b=!0x1;const _0x3f6317=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3c3245=>_0x3c3245['data']['newRange']&&_0x3c3245['name']['startsWith']('suggestion:attribute:'));for(const _0x9ac0a of _0x3f6317){const {subType:_0x2c5f0b,id:_0x526d0a}=this['_splitMarkerName'](_0x9ac0a['name']),_0x2d86a7=_0x2c5f0b['split']('|')[0x0];for(const _0x4316a0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4316a0['id']!=_0x526d0a&&'attribute'==_0x4316a0['type']&&_0x4316a0['data']&&_0x4316a0['data']['key']==_0x2d86a7&&_0x4316a0['getFirstRange']()['isIntersecting'](_0x9ac0a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4316a0,_0x9ac0a['data']['newRange'],_0x3af5fc),_0x44834b=!0x0);}return _0x44834b;}['recordAttributeChanges'](_0x1d0a70){this['_recordAttributeSuggestions']=!0x0,_0x1d0a70();}['_isRegisteredAttribute'](_0x592fa1){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x592fa1);}['_reduceExistingSuggestions'](_0x3059f1,_0x296d16){if(0x0==_0x296d16['length'])return!0x1;let _0x4a87c6=!0x1;for(const _0x202f21 of _0x296d16){const _0x5c7697=this['_findSuggestions'](_0x202f21['range'],'attribute')['filter'](_0x5b587d=>!_0x5b587d['meta']['isNextTo'])['map'](_0xd2e071=>_0xd2e071['suggestion']),_0x138e3f=_0xa821ed({'newValue':_0x202f21['newValue']});_0x5c7697['filter'](_0x1b0fdb=>{const [_0x40a9cb,_0xd90314]=_0x1b0fdb['subType']['split']('|');return _0x40a9cb==_0x202f21['key']&&_0xd90314!=_0x138e3f;})['forEach'](_0x3fa992=>{this['_reduceSuggestionAttributeRange'](_0x3fa992,_0x202f21['range'],_0x3059f1),_0x4a87c6=!0x0;});}return _0x4a87c6;}['_reduceSuggestionAttributeRange'](_0x304f9c,_0x3ea831,_0x4b037b){const _0x3a8d19=_0x304f9c['getFirstRange']()['getDifference'](_0x3ea831);0x0!==_0x3a8d19['length']?0x1!==_0x3a8d19['length']?this['_breakSuggestionMarker'](_0x304f9c,_0x3ea831['start'],_0x3ea831['end']):this['_setSuggestionRange'](_0x304f9c,_0x3a8d19[0x0]):_0x4b037b['removeMarker'](_0x304f9c['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3d76f2){this['_editor']=_0x3d76f2,this['_model']=_0x3d76f2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x754452,_0xc3a672,_0x49f68a,_0x520c22,_0x4875b1,_0x3aba1d,_0x565d35){return new x(this['_model'],{'type':_0x754452,'subType':_0xc3a672,'id':_0x49f68a,'originalSuggestionId':_0x565d35,'author':_0x520c22,'creator':_0x520c22,'attributes':_0x4875b1,'onAttributesChange':_0x3aba1d,'onAccept':(..._0x4ccfb1)=>this['getSuggestionCallback'](_0x754452,_0xc3a672,'accept')(..._0x4ccfb1),'onDiscard':(..._0x5dfa3d)=>this['getSuggestionCallback'](_0x754452,_0xc3a672,'discard')(..._0x5dfa3d)});}['registerCustomCallback'](_0xc0e6cf,_0x35f9cd,_0x432e78,_0x4e2757){const _0x469831=_0xc0e6cf+':'+_0x35f9cd+':'+_0x432e78;this['_customCallbacks']['set'](_0x469831,_0x4e2757);}['getSuggestionCallback'](_0x3aba46,_0x2d9260,_0x26a0af){const _0x416ad9=_0x3aba46+':'+_0x2d9260+':'+_0x26a0af;return this['_customCallbacks']['get'](_0x416ad9)||this['_defaultCallbacks']['get'](_0x3aba46+':'+_0x26a0af);}['_registerDefaultCallbacks'](){const _0xbb7c1=()=>!0x1,_0x1a18ed=_0x47d521=>{_0x47d521['sort']((_0x2a83a7,_0x1669e8)=>_0x2a83a7['start']['isBefore'](_0x1669e8['start'])?0x1:-0x1),this['_model']['change'](_0x40aed2=>{for(const _0x3f0936 of _0x47d521){let _0x43001c;_0x43001c=_0x3f0936['end']['isAtEnd']&&_0x3f0936['end']['parent']==_0x3f0936['start']['nodeAfter']?_0x40aed2['createSelection'](_0x3f0936['start']['nodeAfter'],'on'):_0x40aed2['createSelection'](_0x3f0936),this['_model']['deleteContent'](_0x43001c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xfd9f8c=(_0x2bddeb,_0x1fcd9c)=>{_0x1fcd9c&&this['_model']['change'](_0x56969a=>{const {commandName:_0x1ff82a,commandParams:_0x2c0f8c=[]}=_0x1fcd9c,_0x47a964=_0x2bddeb['map'](_0x4d6f50=>(Kt(_0x4d6f50)&&(_0x4d6f50=this['_model']['createRange'](_0x4d6f50['end'])),_0x4d6f50))['filter'](_0x584ca0=>'$graveyard'!==_0x584ca0['root']['rootName']);if(_0x47a964['length']<0x1)return;const _0x2e62dd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x57d77c=>_0x7e27aa['fromRange'](_0x57d77c));_0x56969a['setSelection'](_0x47a964);for(const _0x45a714 of this['_editor']['commands']['commands']())_0x45a714['refresh']();_0x2c0f8c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1ff82a,..._0x2c0f8c);const _0x171c9a=_0x2e62dd['filter'](_0x14b57d=>'$graveyard'!=_0x14b57d['root']['rootName']);_0x171c9a['length']>0x0&&_0x56969a['setSelection'](_0x171c9a);for(const _0x3d7ccf of _0x2e62dd)_0x3d7ccf['detach']();});},_0x330bb2=(_0x416400,_0x4fefa3)=>0x1==_0x416400['length']&&0x1==_0x4fefa3['length']&&_0x416400[0x0]['end']['isEqual'](_0x4fefa3[0x0]['start']),_0x526850=(_0x5346ca,_0x5ba1db,_0x25d686,_0x1f7cd2)=>nn(_0x5346ca,_0x5ba1db,_0x25d686,_0x1f7cd2)?[_0x5346ca,_0x5ba1db]:nn(_0x5ba1db,_0x5346ca,_0x1f7cd2,_0x25d686)?[_0x5ba1db,_0x5346ca]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xbb7c1),this['_defaultCallbacks']['set']('insertion:discard',_0x1a18ed),this['_defaultCallbacks']['set']('insertion:join',_0x330bb2),this['_defaultCallbacks']['set']('insertion:chain',_0x526850),this['_defaultCallbacks']['set']('deletion:accept',_0x1a18ed),this['_defaultCallbacks']['set']('deletion:discard',_0xbb7c1),this['_defaultCallbacks']['set']('deletion:join',_0x330bb2),this['_defaultCallbacks']['set']('deletion:chain',_0x526850),this['_defaultCallbacks']['set']('formatInline:accept',_0xfd9f8c),this['_defaultCallbacks']['set']('formatInline:discard',_0xbb7c1),this['_defaultCallbacks']['set']('formatInline:join',_0x330bb2),this['_defaultCallbacks']['set']('formatInline:chain',_0xbb7c1),this['_defaultCallbacks']['set']('formatBlock:accept',_0xfd9f8c),this['_defaultCallbacks']['set']('formatBlock:discard',_0xbb7c1),this['_defaultCallbacks']['set']('formatBlock:join',_0x330bb2),this['_defaultCallbacks']['set']('formatBlock:chain',_0xbb7c1),this['_defaultCallbacks']['set']('attribute:accept',_0xbb7c1),this['_defaultCallbacks']['set']('attribute:discard',(_0x187b28,_0x15f52b)=>{if(!_0x15f52b)return;const _0x2cb6f5=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x395c93=>{if(_0x15f52b['key']==m)for(const _0x470579 of _0x187b28){const _0x6bcbb2=_0x470579['start']['nodeAfter'],_0x136349=_0x15f52b['oldValue'];_0x395c93['rename'](_0x6bcbb2,_0x136349);}else{if(_0x2cb6f5['_isBlockAttribute'](_0x15f52b['key'])){for(const _0x309aeb of _0x187b28)void 0x0!==_0x15f52b['oldValue']?_0x395c93['setAttribute'](_0x15f52b['key'],_0x15f52b['oldValue'],_0x309aeb['start']['nodeAfter']):_0x395c93['removeAttribute'](_0x15f52b['key'],_0x309aeb['start']['nodeAfter']);}else{for(const _0x3384f9 of _0x187b28)_0x15f52b['oldValue']?_0x395c93['setAttribute'](_0x15f52b['key'],_0x15f52b['oldValue'],_0x3384f9):_0x395c93['removeAttribute'](_0x15f52b['key'],_0x3384f9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x330bb2);}}function zt(_0x3c30d8,_0x275ee9,_0x3eb3b0){for(const _0x1c3743 of _0x275ee9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c3743['root']==_0x1c3743)return!0x1;if(!_0x3eb3b0['containsItem'](_0x1c3743))return!0x1;if(_0x3c30d8['isObject'](_0x1c3743)||_0x3c30d8['isLimit'](_0x1c3743))return!0x0;}return!0x1;}function Kt(_0x2e00f1){return _0x2e00f1['end']['parent']==_0x2e00f1['start']['nodeAfter']&&_0x2e00f1['end']['isAtStart'];}function Wt(_0x59a726,_0x58194b,_0x423214,_0x3eb63c){const _0x56b2c7=_0x553be2=>!_0x553be2['item']['is']('$textProxy')&&!_0x3eb63c['isObject'](_0x553be2['item']),_0x1bf7a7=_0x59a726['start']['getLastMatchingPosition'](_0x56b2c7),_0x2c7343=_0x59a726['end']['getLastMatchingPosition'](_0x56b2c7,{'direction':'backward'});return(!_0x59a726['start']['isEqual'](_0x1bf7a7)||!_0x59a726['end']['isEqual'](_0x2c7343))&&(_0x1bf7a7['isBefore'](_0x2c7343)?_0x423214['updateMarker'](_0x58194b,{'range':_0x423214['createRange'](_0x1bf7a7,_0x2c7343)}):_0x423214['removeMarker'](_0x58194b),!0x0);}function Ht(_0x2a61d3){return _0xa821ed(_0x2a61d3);}function Qt(_0x4693ab){const _0x23c5cd=_0x4693ab['start']['nodeAfter'];return _0x23c5cd&&_0x23c5cd['is']('element');}function Xt(_0x394307){return Kt(_0x394307)||function(_0x6e9a8b){return _0x6e9a8b['start']['parent']==_0x6e9a8b['end']['nodeBefore']&&_0x6e9a8b['start']['isAtEnd'];}(_0x394307);}function Yt(_0x54ae0d,_0xe42cca){try{const _0x13b25c=_0x54ae0d['getRange']();for(const _0x464e7e of _0xe42cca)if(_0x54ae0d!==_0x464e7e&&_0x13b25c&&_0x13b25c['isIntersecting'](_0x464e7e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x3228b9,_0x356430){return null==_0x3228b9['end']['nodeBefore']&&_0x3228b9['end']['parent']==_0x3228b9['start']['nodeAfter']?tn(_0x3228b9['start']['nodeAfter'],_0x356430):_0x3228b9;}function tn(_0x36a7d7,_0x5ee2ec){const _0xc5b112=_0x5ee2ec['schema']['isObject'](_0x36a7d7)||_0x5ee2ec['schema']['isSelectable'](_0x36a7d7);return _0x5ee2ec['createRange'](_0x5ee2ec['createPositionAt'](_0x36a7d7,'before'),_0xc5b112?_0x5ee2ec['createPositionAfter'](_0x36a7d7):_0x5ee2ec['createPositionAt'](_0x36a7d7,'end'));}function nn(_0x15da0f,_0xcbd801,_0x58ce12,_0x26f456){return!!en(_0x15da0f,_0xcbd801)&&_0x58ce12['end']['isEqual'](_0x26f456['start']);}function en(_0x2dd340,_0x19f53d){if(!_0x2dd340['_isDataLoaded']||!_0x19f53d['_isDataLoaded'])return!0x1;const _0x52838d=new Set(Object['keys'](_0x2dd340['attributes'])),_0x2ff259=new Set(Object['keys'](_0x19f53d['attributes']));if(_0x52838d['delete']('groupId'),_0x2ff259['delete']('groupId'),0x0==_0x52838d['size']&&0x0==_0x2ff259['size'])return!0x0;if(_0x52838d['size']!=_0x2ff259['size'])return!0x1;const _0x2d006e={..._0x2dd340['attributes']},_0x28d393={..._0x19f53d['attributes']};return delete _0x2d006e['groupId'],delete _0x28d393['groupId'],JSON['stringify'](_0x2d006e)==JSON['stringify'](_0x28d393);}function sn(_0x4e5157,_0x585e1f){const _0x4443f5=on(_0x4e5157['attributes']),_0x2cb583=on(_0x585e1f);if(!_0x4e5157['_isDataLoaded'])return!0x1;for(const _0x12b336 of Object['keys'](_0x2cb583))if(!_0x4eaf57(_0x4443f5[_0x12b336],_0x2cb583[_0x12b336]))return!0x1;return!0x0;}function on(_0x52e78a){const _0x4087b0=Object['assign']({},_0x52e78a);return delete _0x4087b0['skipNestingCheck'],delete _0x4087b0['tablePasteChainId'],_0x4087b0;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x16f996(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4efab9,_0x396701,_0x53d805,_0x1b67bb){super(),this['model']=_0x396701,this['view']=_0x53d805,this['commentThreadController']=_0x1b67bb,this['_editor']=_0x4efab9,this['_acceptCommand']=_0x4efab9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4efab9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ad407,_0x235522)=>_0x4ad407||_0x235522),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x178625=>_0x178625&&this['_editor']['model']['canEditAt'](_0x396701['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3c1d72=>_0x3c1d72&&this['_editor']['model']['canEditAt'](_0x396701['getRanges']())),this['_pendingAction']=null,_0x53d805['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x53d805,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x53d805,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x53d805,'change:isDirty',()=>{_0x53d805['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 _0x538e07=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x538e07);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x29b676{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x281403,_0x20917c,_0x16bcad,_0x513140){super(_0x281403),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x414b2b(_0x281403,o(_0x281403,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x20917c['authoredAt']),this['bind']('authoredAt')['to'](_0x20917c),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',_0x20917c,'authoredAt',this,'descriptionParts',(_0x4d1517,_0x1b71a9,_0x2f3d3e)=>{const _0x199fd6=_0x2f3d3e['map'](_0x2378fc=>ls(_0x2378fc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d1517-0x1,_0x20917c['author']['name'],_0x1b71a9?_0x513140['formatDateTime'](_0x1b71a9):'',new DOMParser()['parseFromString'](_0x199fd6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3961f9(),this['focusTracker']=new _0x463116(),this['keystrokes']=new _0x16ca75(),this['focusCycler']=new _0x2f6372({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x7daf80=>_0x7daf80['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x20917c,this['_localUser']=_0x16bcad,this['_config']=_0x513140,_0x513140['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x58c0c6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x18c7b0}=this['_config'];this['commentsListView']=new _0x18c7b0(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',_0x3050c4=>_0x3050c4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x27d7f6,_0x5ac2d2)=>_0x27d7f6||!!_0x5ac2d2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x74be1d}=this['_config'],_0xb18a9b=new _0x74be1d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5be6e5=_0xb18a9b['commentInputView'];return _0xb18a9b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5be6e5,'value',(_0x1a69e3,_0x1f6812,_0x17fa8c)=>!!_0x17fa8c||_0x1a69e3&&!_0x1f6812),_0x5be6e5['on']('submit',(_0x3a2413,_0x13fba0)=>{this['fire']('addComment',_0x13fba0),_0x5be6e5['editor']['setData']('');}),_0x5be6e5['on']('cancel',()=>this['focus']()),_0x5be6e5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb18a9b;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x36290e,_0x40535b,_0x10a941,_0x404dd6){super(_0x36290e,_0x40535b,_0x10a941,_0x404dd6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10e63c=>_0x10e63c&&_0x10e63c[0x0]?_0x10e63c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x365ebb,_0x12b906)=>{let _0x316660='';for(const _0x363e78 of _0x365ebb)_0x316660+='<p>'+ls(_0x363e78['content'],_0x363e78['color'])+'</p>';return _0x12b906?_0x316660:_0x163b64(_0x316660,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x404dd6['SuggestionView'](_0x36290e,_0x40535b,{'formatDateTime':_0x404dd6['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 _0x2b9fec=this['bindTemplate'],_0x22eb87=[this['suggestionView']];return this['commentsListView']&&_0x22eb87['push'](this['commentsListView']),this['commentThreadInputView']&&_0x22eb87['push'](this['commentThreadInputView']),_0x22eb87['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2b9fec['if']('isActive','ck-suggestion-wrapper--active'),_0x2b9fec['to']('type',_0x2ea030=>'ck-suggestion-'+_0x2ea030),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':_0x2b9fec['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x22eb87};}['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 _0x29b676{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x24a1bb,_0x166f78,_0x31a22b){super(_0x24a1bb),this['_model']=_0x166f78,this['_config']=_0x31a22b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x166f78),this['acceptButton']=this['_createButton'](o(_0x24a1bb,'Accept\x20suggestion'),_0x2e5731,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x24a1bb,'Discard\x20suggestion'),_0x5d7595,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x114de8(_0x24a1bb,_0x166f78['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3961f9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x463116(),this['keystrokes']=new _0x16ca75(),this['focusCycler']=new _0x2f6372({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2b54f7=>_0x2b54f7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x30af1c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x30af1c['innerHTML']=this['description'],this['on']('change:description',(_0x428996,_0x4979c9,_0x1ccad4)=>{_0x30af1c['innerHTML']=_0x1ccad4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4f5654=this['bindTemplate'],_0x5a4ae7=[{'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':_0x4f5654['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4f5654['to']('authoredAt',_0x54af34=>this['_config']['formatDateTime'](_0x54af34))}]}]},{'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']&&_0x5a4ae7['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':_0x5a4ae7}]};}['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'](_0x1933d4,_0x14bf5a,_0x47d7a9,_0x4db16d,_0x527a33){const _0x99fbd5=new _0x1c4684(this['locale']);return _0x99fbd5['set']({'label':_0x1933d4,'icon':_0x14bf5a,'tooltip':!0x0,'tooltipPosition':_0x527a33}),_0x99fbd5['extendTemplate']({'attributes':{'class':_0x47d7a9}}),_0x99fbd5['on']('execute',()=>{this['fire'](_0x4db16d,this['_model']['id']);}),_0x99fbd5;}['_setupKeyboardNavigation'](){const _0x5627ad=this['element'];this['keystrokes']['listenTo'](_0x5627ad);for(const _0x12076f of this['focusables'])this['focusTracker']['add'](_0x12076f['element']),this['keystrokes']['listenTo'](_0x12076f['element']);this['keystrokes']['set']('enter',(_0x4e1447,_0x3a2ea5)=>{_0x5627ad===_0x4e1447['target']&&(this['focusCycler']['focusFirst'](),_0x3a2ea5());}),this['keystrokes']['set']('esc',(_0x4669d3,_0x2bfcda)=>{_0x5627ad!==_0x4669d3['target']&&(this['focus'](),_0x2bfcda());});}}class u extends _0x21c11d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5b5ec3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb1bafd){super(_0xb1bafd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x14c9bc=this['editor']['config'];_0x14c9bc['define']('trackChanges.SuggestionThreadView',fe),_0x14c9bc['define']('trackChanges.SuggestionView',we),_0x14c9bc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x14c9bc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3b022b,_0x1150ce){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3113f4,_0x51e801]of this['_handleControllerBuffer']){const _0x51bd28=this['_suggestionToController']['has'](_0x3113f4);_0x51bd28||_0x51e801?_0x51bd28&&_0x51e801&&this['_destroyController'](_0x3113f4):this['_initializeController'](_0x3113f4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3b022b,_0x1150ce);}['init'](){const _0xe3873=this['editor'],_0x4d9f51=_0xe3873['plugins']['get']('TrackChangesEditing'),_0x1a7bc9=_0xe3873['plugins']['get']('Annotations'),_0x340b44=_0xe3873['plugins']['get']('EditorAnnotations'),_0x48d921=_0xe3873['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x340b44['addSourceCollector'](()=>{const _0x45dbd6=[];for(const [_0x24b184,_0x373589]of Array['from'](this['_suggestionToController'])){const _0x132bd9=_0x24b184['getAllAdjacentSuggestions'](),_0x57d821=[];for(const _0x598df8 of _0x132bd9){if(!_0x598df8['isInContent'])continue;if(_0x598df8['isMultiRange']){_0x57d821['push'](..._0x598df8['getRanges']());continue;}const _0x1e162d=_0x598df8['getFirstRange']();if(_0x57d821['length']>0x0){const _0x22a04e=_0x57d821[0x0]['getJoined'](_0x1e162d);if(_0x22a04e){_0x57d821[0x0]=_0x22a04e;continue;}}_0x57d821['push'](_0x1e162d);}_0x45dbd6['push']([_0x373589['view'],_0x57d821]);}return _0x45dbd6;}),this['listenTo'](_0x4d9f51,'suggestionLoaded',(_0x12b004,_0x6d7bf3)=>{this['listenTo'](_0x6d7bf3,'change:previous',(_0x4812ba,_0x226902,_0x46a645,_0x5577fa)=>{_0x6d7bf3['isInContent']&&(null==_0x46a645?(this['_updateController'](_0x5577fa['head']),this['_handleSuggestionControllerDelayed'](_0x6d7bf3,!0x1)):(this['_updateController'](_0x46a645['head']),null==_0x5577fa&&this['_handleSuggestionControllerDelayed'](_0x6d7bf3,!0x0)));}),null!==_0x6d7bf3['previous']?this['_updateController'](_0x6d7bf3['head']):this['_handleSuggestionControllerDelayed'](_0x6d7bf3,!0x1);}),this['listenTo'](_0x4d9f51,'suggestionUnloaded',(_0x496e5c,_0x3bea9f,_0x4a1dc2)=>{this['stopListening'](_0x3bea9f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3bea9f),this['_suggestionToController']['has'](_0x3bea9f)&&this['_destroyController'](_0x3bea9f),_0x4a1dc2&&this['_updateController'](_0x4a1dc2['head']);}),this['listenTo'](_0x4d9f51,'suggestionChanged',(_0x22806b,_0x48b163)=>{this['_updateController'](_0x48b163);}),this['listenTo'](_0x1a7bc9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x48d921,'addComment',(_0x5966ed,{threadId:_0x3c18d9,isFromAdapter:_0x33c6ab})=>{if(_0x33c6ab||!_0x4d9f51['hasSuggestion'](_0x3c18d9))return;const _0x1c473a=_0x4d9f51['getSuggestion'](_0x3c18d9);this['_suggestionToController']['get'](_0x1c473a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43b1af=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23fb7e;for(const _0x5a4433 in _0x43b1af){const _0x528b45=_0x5a4433,_0x174aaa=_0x43b1af[_0x528b45];if('trackChangesLicenseKeyValid'==_0x174aaa||'trackChangesLicenseKeyInvalid'==_0x174aaa||'trackChangesLicenseKeyExpired'==_0x174aaa||'trackChangesLicenseKeyDomainLimit'==_0x174aaa||'trackChangesLicenseKeyNotAllowed'==_0x174aaa||'trackChangesLicenseKeyEvaluationLimit'==_0x174aaa||'trackChangesLicenseKeyTrialLimit'==_0x174aaa||'trackChangesLicenseKeyUsageLimit'==_0x174aaa){delete _0x43b1af[_0x528b45],_0x23fb7e=_0x174aaa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x23fb7e&&_0x43b1af['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x23fb7e&&_0x43b1af['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x23fb7e&&_0x43b1af['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x23fb7e&&_0x43b1af['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x23fb7e&&_0x43b1af['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x23fb7e&&_0x43b1af['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x23fb7e&&_0x43b1af['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x15a1c3){const _0x367714=this['_suggestionToController']['get'](_0x15a1c3);if(!_0x367714)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x367714['view'])||null;}['getSuggestionForAnnotation'](_0x3a9d41){const _0x6d55e6=this['_viewToController']['get'](_0x3a9d41['innerView']);return _0x6d55e6?_0x6d55e6['model']:null;}['_refreshActiveMarkers'](){const _0x49c8fc=this['editor']['plugins']['get']('Annotations'),_0xbd1b80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x327dd8=Array['from'](_0x49c8fc['activeAnnotations'],_0x28d657=>_0x28d657['innerView'])['filter'](_0x27e462=>this['_viewToController']['has'](_0x27e462)),_0xdad6bc=[];for(const _0x379e64 of _0x327dd8){const _0x2192ff=this['_viewToController']['get'](_0x379e64)['model']['getAllAdjacentSuggestions']();_0xdad6bc['push'](..._0x2192ff['reduce']((_0x131d34,_0x4623c5)=>[..._0x131d34,..._0x4623c5['getMarkerNames']()],[]));}_0xbd1b80['activeMarkers']=_0xdad6bc;}['_addUIComponentsToFactory'](){const _0x1fb84a=this['editor'],_0x429c2f=_0x1fb84a['locale'],_0x118a99=o(_0x429c2f,'Track\x20changes'),_0x596a43=new _0x7ca091([{'type':'switchbutton','model':new _0x60db5a({'withText':!0x0,'isToggleable':!0x0,'label':_0x118a99,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1fb84a['plugins']['has']('TrackChangesPreview')&&_0x596a43['addMany']([{'type':'separator'},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5ffe25 of _0x596a43)if(ke(_0x5ffe25)){const _0x3335f0=_0x1fb84a['commands']['get'](_0x5ffe25['model']['commandName']);_0x5ffe25['model']['bind']('isOn','isEnabled')['to'](_0x3335f0,'value','isEnabled');}_0x1fb84a['ui']['componentFactory']['add']('trackChanges',_0x937c05=>this['_createToolbarButton'](_0x937c05,_0x596a43,_0x118a99)),_0x1fb84a['ui']['componentFactory']['add']('menuBar:trackChanges',_0xced086=>this['_createMenuBarMenu'](_0xced086,_0x596a43,_0x118a99));}['_createToolbarButton'](_0x47c8b8,_0x1bb539,_0x10b8a8){const _0x36123e=_0x22945d(_0x47c8b8,_0x210506),_0x5b04fb=this['editor']['commands']['get']('trackChanges');_0x36123e['buttonView']['set']({'tooltip':_0x10b8a8,'label':_0x10b8a8,'icon':_0x37b8d5}),_0x36123e['buttonView']['bind']('isOn')['to'](_0x5b04fb,'value'),_0x36123e['buttonView']['on']('execute',()=>{_0x5b04fb['execute'](),this['editor']['editing']['view']['focus']();}),_0x2be475(_0x36123e,_0x1bb539,{'role':'menu'});const _0x46b0f9=[];for(const _0x414230 of _0x1bb539)ke(_0x414230)&&_0x46b0f9['push'](this['editor']['commands']['get'](_0x414230['model']['commandName']));const _0xb2a0a8=_0x36123e['buttonView'];return _0xb2a0a8['actionView']['unbind']('isEnabled'),_0xb2a0a8['arrowView']['unbind']('isEnabled'),_0xb2a0a8['actionView']['bind']('isEnabled')['to'](_0x5b04fb,'isEnabled'),_0xb2a0a8['arrowView']['bind']('isEnabled')['toMany'](_0x46b0f9,'isEnabled',(..._0x3634fa)=>_0x3634fa['some'](_0x490cd0=>_0x490cd0)),_0x36123e['on']('execute',_0x2a45d3=>{this['editor']['execute'](_0x2a45d3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x36123e;}['_createMenuBarMenu'](_0x1680e1,_0x2ed233,_0x1c6c26){const _0x3cab01=new _0x968339(_0x1680e1),_0x5b7eca=this['editor']['commands']['get']('trackChanges');_0x3cab01['buttonView']['set']({'label':_0x1c6c26,'icon':_0x37b8d5});const _0x3577a1=new _0x528ccd(_0x1680e1);for(const _0x1f8bdd of _0x2ed233){if('separator'==_0x1f8bdd['type']){_0x3577a1['items']['add'](new _0x12fc9d(_0x1680e1));continue;}const _0x510b53=new _0xddc8e2(_0x1680e1,_0x3cab01),_0x143386=new _0xd0fae4(_0x1680e1),_0x452f2d=_0x1f8bdd['model'];_0x143386['bind'](...Object['keys'](_0x452f2d))['to'](_0x452f2d),_0x143386['delegate']('execute')['to'](_0x3cab01),_0x143386['on']('execute',()=>{this['editor']['execute'](_0x452f2d['commandName']),this['editor']['editing']['view']['focus']();}),_0x510b53['children']['add'](_0x143386),_0x3577a1['items']['add'](_0x510b53);}return _0x3cab01['bind']('isEnabled')['to'](_0x5b7eca,'isEnabled'),_0x3cab01['panelView']['children']['add'](_0x3577a1),_0x3cab01;}['_initializeController'](_0x153728){const _0x36c7cd=this['editor'],_0x78764d=_0x36c7cd['config'],_0x58a9b2=_0x36c7cd['plugins']['get']('Annotations'),_0x10fc99=_0x36c7cd['plugins']['get']('CommentsRepository'),_0x3c24a2=_0x36c7cd['plugins']['get']('EditorAnnotations'),_0x274c52=_0x36c7cd['plugins']['get'](_0x5b5ec3)['me'],_0x1d5264=_0x78764d['get']('trackChanges')['SuggestionThreadView'],_0x5539ff=_0x78764d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x121f67,CommentThreadInputView:_0x1888df}=_0x36c7cd['plugins']['get']('CommentsUI');let _0xd66c1,_0x30bacb,_0x92057;this['_annotationViews']['has'](_0x153728['id'])?(_0x30bacb=this['_annotationViews']['get'](_0x153728['id']),_0xd66c1=_0x30bacb['mainView']):(_0xd66c1=new _0x1d5264(_0x36c7cd['locale'],_0x153728,_0x274c52,{'disableComments':this['_disableComments'],'editorConfig':{..._0x78764d['get']('comments.editorConfig'),'licenseKey':_0x78764d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x78764d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x78764d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x78764d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25842c(_0x78764d['get']('locale'),_0x36c7cd['locale']),'CommentView':_0x78764d['get']('comments')['CommentView'],'CommentsListView':_0x121f67,'CommentThreadInputView':_0x1888df,'SuggestionView':_0x5539ff}),_0xd66c1['suggestionView']['acceptButton']['on']('execute',()=>{_0x36c7cd['editing']['view']['focus']();}),_0xd66c1['suggestionView']['discardButton']['on']('execute',()=>{_0x36c7cd['editing']['view']['focus']();}),_0x30bacb=_0x58a9b2['createAnnotationView'](this['editor']['locale'],_0xd66c1),_0x30bacb['bind']('isDirty')['to'](_0xd66c1,'isDirty'),_0x30bacb['bind']('length')['to'](_0xd66c1),_0x30bacb['bind']('type')['to'](_0xd66c1,'type',_0x53456f=>'suggestion-'+_0x53456f),_0xd66c1['on']('escape',()=>{_0x92057['fire']('escape');}),this['_annotationViews']['set'](_0x153728['id'],_0x30bacb));const _0x44e6de=_0x10fc99['createCommentThreadController'](_0x153728['commentThread'],_0xd66c1),_0x39632d=new pe(_0x36c7cd,_0x153728,_0xd66c1,_0x44e6de),_0x4fcf6f=_0x153728['getAllAdjacentSuggestions']()['filter'](_0x332564=>_0x332564['isInContent']);_0xd66c1['descriptionParts']=_0x36c7cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4fcf6f),this['_suggestionToController']['set'](_0x153728,_0x39632d),this['_viewToController']['set'](_0xd66c1,_0x39632d);const _0x3a65e5=()=>{const _0x3cc2ae=[],_0x497480=_0x153728['getAllAdjacentSuggestions']()['filter'](_0x29abd5=>_0x29abd5['isInContent']);for(const _0x46cebe of _0x497480)_0x3cc2ae['push'](..._0x46cebe['getMarkers']());return _0x3ccfe5(_0x36c7cd['editing'],_0x3cc2ae);};_0x92057=_0x58a9b2['createAnnotation']({'view':_0x30bacb,'target':_0x3a65e5,'type':()=>'suggestion-'+_0x39632d['view']['type'],'isVisible':!!_0x3a65e5()}),_0x10fc99['_bindAnnotationToEditors'](_0xd66c1,_0x92057),_0x58a9b2['add'](_0x92057),_0x3c24a2['registerAnnotation'](_0x92057);}['_destroyController'](_0x3b2547){const _0x24152f=this['editor']['plugins']['get']('CommentsRepository'),_0xd440e4=this['editor']['plugins']['get']('Annotations'),_0x90eb36=this['_suggestionToController']['get'](_0x3b2547),_0x223b35=_0x90eb36['view'],_0x54989e=_0xd440e4['getByInnerView'](_0x223b35);_0x24152f['_unbindEditors'](_0x223b35),_0x54989e&&_0xd440e4['remove'](_0x54989e),this['_suggestionToController']['delete'](_0x3b2547),this['_viewToController']['delete'](_0x223b35),_0x90eb36['destroy']();}['_updateController'](_0x9b6840){if(!_0x9b6840['isInContent']||!this['_suggestionToController']['has'](_0x9b6840))return;const _0x419f94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c8e10=this['_suggestionToController']['get'](_0x9b6840),_0x1e6021=_0x9b6840['getAllAdjacentSuggestions']();_0x1c8e10['view']['descriptionParts']=_0x419f94['descriptionFactory']['getDescriptions'](_0x1e6021);}['destroy'](){for(const _0x2e1e4e of this['_suggestionToController']['keys']())this['_destroyController'](_0x2e1e4e);for(const _0x5b4c2c of this['_annotationViews']['values']())_0x5b4c2c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14c317){return'model'in _0x14c317;}class Ne extends _0x21c11d{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x360bc4){this['editor']['plugins']['get'](d)['adapter']=_0x360bc4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x53179e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x53179e);}['getSuggestions']({skipNotAttached:_0x4f1c47=!0x1,toJSON:_0x406418=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4f1c47,'toJSON':_0x406418});}['getSuggestion'](_0x83a26b){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x83a26b);}}const p=['Pagination'];class re extends _0x21c11d{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5a5817=this['editor'];if(_0x5a5817['config']['define']('trackChangesData.editorCreator',_0x2479da=>{const _0x5ded8b=_0x5a5817['model']['document']['getRootNames']()['reduce']((_0x4af926,_0x32333d)=>(_0x4af926[_0x32333d]='',_0x4af926),{});return _0x5a5817['constructor']['create'](_0x5ded8b,_0x2479da);}),'function'!=typeof _0x5a5817['config']['get']('trackChangesData')['editorCreator'])throw new _0x3229f3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2a4e42){return P(this['editor'],!0x0,_0x2a4e42);}['getDataWithDiscardedSuggestions'](_0x5eb8c5){return P(this['editor'],!0x1,_0x5eb8c5);}}class Fe extends _0x21c11d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2560f5){function _0x2a955d(_0x12a0b0){return _0x12a0b0['map'](_0x2e2652=>String['fromCharCode'](_0x2e2652))['join']('');}super(_0x2560f5),this['result']='end',_0x2560f5[_0x2a955d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a955d([0x76,0x69,0x65,0x77])][_0x2a955d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a955d([0x61,0x75,0x74,0x6f]),_0x2560f5[_0x2a955d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2a955d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a955d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2a955d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2a955d([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 De(_0x2afe0e){return void 0x0!==_0x2afe0e['getRootsAttributes'];}async function P(_0x5987fb,_0x5d4fe9,_0x316739){const _0x86e43=_0x71d4(_0x5987fb,p);_0x86e43['plugins']['push'](d,Fe),_0x86e43['rootsAttributes']=De(_0x5987fb)?_0x5987fb['getRootsAttributes']():void 0x0;const _0x47877c=document['createDocumentFragment'](),_0x22e9e4=_0x5987fb['config']['get']('trackChangesData')['editorCreator'],_0x19f74d=await _0x22e9e4(_0x86e43,()=>function(_0x18e424){const _0x48e76a=document['createElement']('div');return _0x18e424['appendChild'](_0x48e76a),_0x48e76a;}(_0x47877c));!function(_0x4041f4,_0x909265){const _0x4f5cca=_0x4041f4['model']['document']['getRootNames']()['reduce']((_0x458015,_0x16a1ae)=>(_0x458015[_0x16a1ae]=_0x4041f4['data']['get']({'rootName':_0x16a1ae}),_0x458015),{}),_0x51be4b=_0x4041f4['plugins']['get']('Users')['users']['map'](_0x4602e4=>({'id':_0x4602e4['id'],'name':_0x4602e4['name']})),_0x4eaf43=_0x4041f4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x48dda1=_0x4041f4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x99234e=_0x909265['plugins']['get']('Users'),_0x453db3=_0x909265['plugins']['get']('TrackChangesEditing'),_0x1c20d2=_0x909265['plugins']['get']('CommentsRepository');for(const _0x1ea85a of _0x1c20d2['getCommentThreads']())_0x1ea85a['remove']();for(const _0x18aac8 of _0x51be4b)_0x99234e['getUser'](_0x18aac8['id'])||_0x99234e['addUser'](_0x18aac8);_0x99234e['me']||_0x99234e['useAnonymousUser']();for(const _0x28dc51 of _0x48dda1)_0x1c20d2['addCommentThread'](_0x28dc51);for(const _0x1ee536 of _0x4eaf43)_0x453db3['addSuggestionData'](_0x1ee536);_0x909265['data']['set'](_0x4f5cca);}(_0x5987fb,_0x19f74d),_0x19f74d['execute'](_0x5d4fe9?'acceptAllSuggestions':'discardAllSuggestions');const _0x17cb14=De(_0x19f74d)?_0x19f74d['getFullData'](_0x316739):_0x19f74d['data']['get'](_0x316739);return await _0x19f74d['destroy'](),_0x17cb14;}class Me extends _0x29b676{['options'];constructor(_0x4794f3,_0xf237ca){super(_0x4794f3),this['options']=_0xf237ca,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'](_0x11afe9,_0x5ca479){if(!this['element'])return;const _0x50b2f0=[];for(const [_0x20253c,_0x2c57a0]of _0x11afe9){const _0x4867b1=document['createElement']('div');_0x4867b1['setAttribute']('data-ck-root-name',_0x20253c),_0x4867b1['className']=_0x2c57a0['classes']+'\x20ck-track-changes-preview__root-container',_0x4867b1['innerHTML']=_0x2c57a0['content'],_0x50b2f0['push'](_0x4867b1);}_0x5ca479(this['element'],_0x50b2f0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x31a038{constructor(_0x547408){super(_0x547408),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2cb666=this['editor'],_0x1649ee=_0x2cb666['locale'],_0x2006d8=_0x2cb666['plugins']['get']('Dialog');let _0x47c60e;const _0x57d105=function(_0x543ba9){const _0x19f15a={};if('editables'in _0x543ba9['ui']['view']){for(const [_0x59b373,_0x5e0ae1]of Object['entries'](_0x543ba9['ui']['view']['editables']))_0x19f15a[_0x59b373]=_0x5e0ae1['element'];}else _0x19f15a[_0x543ba9['model']['document']['getRootNames']()[0x0]]=_0x543ba9['ui']['view']['editable']['element'];return _0x19f15a;}(_0x2cb666),_0x39791e=function(_0x4ed863){let _0x17b73e=0x0;for(const _0x207121 of Object['values'](_0x4ed863))_0x17b73e=Math['max'](_0x17b73e,_0x207121['getBoundingClientRect']()['width']);let _0xd9211d=0x0;for(const _0x49ee80 of Object['values'](_0x4ed863))_0xd9211d+=_0x49ee80['getBoundingClientRect']()['height'];const _0x417a30=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x6c671a=Math['min'](_0xd9211d,_0x417a30);return{'width':_0x17b73e,'height':_0x6c671a};}(_0x57d105);_0x2006d8['show']({'id':'finalContentPreview','title':o(_0x1649ee,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1649ee,{'dialogRects':_0x39791e}),'onHide':()=>{_0x47c60e['detachFromDom']();},'onShow':()=>{_0x2cb666['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x42582d=>{const _0x5130d4=this['_standarizeRootsData'](_0x42582d,_0x2cb666,_0x57d105);_0x2006d8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5130d4,_0x2cb666['config']['get']('trackChanges.preview.renderFunction'));}),_0x47c60e=new _0x49435d(_0x1649ee,[_0x2006d8['view']]),_0x47c60e['attachToDom'](),_0x47c60e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2cb666['once']('destroy',()=>{_0x47c60e['detachFromDom']();});const _0x5b0dd0=_0x2006d8['view']['headerView']['class'];_0x2006d8['view']['headerView']['class']=_0x5b0dd0?_0x5b0dd0+'\x20ck-reset_all':'ck-reset_all',_0x2006d8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2006d8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2d94d3=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4328c5=_0x2d94d3['previewMode'],_0x4d7e3b={};if('$labels'===_0x4328c5){for(const _0x1658fa of _0x2d94d3['getMergeFieldsIds']())_0x4d7e3b[_0x1658fa]=_0x2d94d3['getLabel'](_0x1658fa)||_0x1658fa;}else{const _0x2d3401='$defaultValues'===_0x4328c5?_0x2d94d3['getDefaultValues']():_0x2d94d3['getDataSetValues'](_0x4328c5,!0x0);for(const _0x4c52fc of Object['entries'](_0x2d3401)){const [_0x467767,_0x265bab]=_0x4c52fc;_0x4d7e3b[_0x467767]=null!==_0x265bab?_0x265bab:_0x2d94d3['getLabel'](_0x467767)||_0x467767;}}return{'mergeFieldsData':_0x4d7e3b};}['_standarizeRootsData'](_0x56ae33,_0x3902e8,_0x1441b0){let _0x1ea25e;if('string'==typeof _0x56ae33){const _0x3085ce=_0x3902e8['model']['document']['getRootNames']()[0x0];_0x1ea25e={[_0x3085ce]:_0x56ae33};}else _0x1ea25e=_0x56ae33;const _0x582f49=this['_fixMediaEmbeds'](_0x1ea25e,_0x3902e8),_0x1706ff=function(_0x25a1ef,_0x4e0270){for(const [_0x55fb5b,_0x260ded]of _0x25a1ef)_0x260ded['classes']=_0x4e0270[_0x55fb5b]['classList']['value']['replace']('ck-focused','');return _0x25a1ef;}(this['_sortRoots'](_0x3902e8)['reduce']((_0x355e80,_0x34063d)=>(_0x355e80['push']([_0x34063d,{'content':_0x582f49[_0x34063d],'classes':''}]),_0x355e80),[]),_0x1441b0);return _0x1706ff;}['_fixMediaEmbeds'](_0x1d97e1,_0x615040){if(!_0x615040['plugins']['has']('MediaEmbedEditing'))return _0x1d97e1;const _0x4ede87=_0x615040['plugins']['get']('MediaEmbedEditing');for(const [_0x499fc4,_0x4fee5d]of Object['entries'](_0x1d97e1)){const _0x39e2f8=document['createElement']('div');_0x39e2f8['innerHTML']=_0x4fee5d,(_0x39e2f8['querySelectorAll']('figure.media')['forEach'](_0x1d3bf4=>{const _0x1a77f0=_0x1d3bf4['querySelector']('oembed');if(_0x1a77f0){const _0x495acb=_0x1a77f0['getAttribute']('url');if(_0x495acb){const _0x444692=_0x4ede87['registry']['getMediaViewElement'](new _0x3441f2(_0x615040['editing']['view']['document']),_0x495acb,{'elementName':'','renderForEditingView':!0x0}),_0x4b52b7=document['createElement']('div');_0x4b52b7['classList']['add']('ck-media__wrapper'),_0x444692['render'](_0x4b52b7,_0x615040['editing']['view']['domConverter']),_0x1a77f0['replaceWith'](_0x4b52b7);}}}),_0x1d97e1[_0x499fc4]=_0x39e2f8['innerHTML']);}return _0x1d97e1;}['_sortRoots'](_0x256f98){if(!function(_0x5c608b){return void 0x0!==_0x5c608b['getRootsAttributes'];}(_0x256f98))return _0x256f98['model']['document']['getRootNames']();const _0x32de4d=[],_0x4500a2=new Map();for(const _0x4db894 of _0x256f98['model']['document']['getRootNames']()){const _0x50f88f=_0x256f98['editing']['view']['getDomRoot'](_0x4db894)['getClientRects']()['item'](0x0);_0x32de4d['push'](_0x4db894),_0x4500a2['set'](_0x4db894,_0x50f88f);}return _0x32de4d['sort']((_0x3906df,_0x573010)=>{const _0xcbebf7=_0x4500a2['get'](_0x3906df),_0x215742=_0x4500a2['get'](_0x573010);return _0xcbebf7['y']-_0x215742['y']||_0xcbebf7['x']-_0x215742['x'];}),_0x32de4d;}}class Ue extends _0x21c11d{static get['requires'](){return[re,_0x368a72];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46930d){super(_0x46930d),_0x46930d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x46930d['config']['define']('trackChanges.preview.renderFunction',(_0x3bec78,_0x457497)=>{for(const _0x2ee20c of _0x457497)_0x3bec78['appendChild'](_0x2ee20c);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};