@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240927.0 → 0.0.0-nightly-20240929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +10 -10
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/mergefields.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/ui/view/suggestionview.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x55f69e,PendingActions as _0x43cbca,icons as _0x22e7cf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27812c,ObservableMixin as _0x3c9868,uid as _0x55f5c8,insertToPriorityArray as _0x20cd94,priorities as _0x4d60ea,logWarning as _0x3fdb3b,getEnvKeystrokeText as _0x25e90c,FocusTracker as _0x15157f,KeystrokeHandler as _0x266d37,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4730ad,View as _0x294ed2,ViewCollection as _0x23c8b8,FocusCycler as _0x1b6047,ViewModel as _0x220d45,createDropdown as Qt,SplitButtonView as _0xb37fff,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5c9be1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x96452c,hashObject as _0xf1b1f,surroundingMarkersDetector as _0x571476,FOCUS_ANNOTATION_KEYSTROKE as _0x5eb0b4,AriaDescriptionView as _0x26ba2b,setupThreadKeyboardNavigation as _0x57141b,trimHtml as _0x1f8706,UserView as _0x4be92a,LateFocusButtonView as _0x2c0a2b,getDateTimeFormatter as _0x3b1251,getAllMarkersDomElementsSorted as _0x5910c7,sanitizeEditorConfig as _0x41993e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xc1b524,LiveRange as _0x46da37,LivePosition as _0x82d64c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x42a791,toWidget as _0x146003}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2874d9,set as _0x3b5b90,isEqual as _0x4b5161,unset as _0x369aef,omit as Tt}from'lodash-es';import{Delete as _0x6be264,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33b193,ShiftEnter as _0x3fff9f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2df938,_0x182cde){super(_0x2df938),this['_enabledCommands']=_0x182cde,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 _0x3497db of this['editor']['commands']['commands']())_0x3497db['affectsData']&&!this['_enabledCommands']['has'](_0x3497db)&&_0x3497db['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x571d5f of this['editor']['commands']['commands']())_0x571d5f['affectsData']&&!this['_enabledCommands']['has'](_0x571d5f)&&_0x571d5f['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x572b58,_0x35ed7b){super(_0x572b58),this['_suggestions']=_0x35ed7b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x44b657){const _0xd45e09=this['_suggestions']['get'](_0x44b657);if(!_0xd45e09)throw new _0x27812c('track-changes-accept-suggestion-not-found',this);const _0x347042=_0xd45e09['getRanges']();this['editor']['model']['canEditAt'](_0x347042)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd45e09);}}class R extends ts{['_suggestions'];constructor(_0x37da28,_0x1836e1){super(_0x37da28),this['_suggestions']=_0x1836e1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x26c750){const _0x185903=this['_suggestions']['get'](_0x26c750);if(!_0x185903)throw new _0x27812c('track-changes-discard-suggestion-not-found',this);const _0x4135d0=_0x185903['getRanges']();this['editor']['model']['canEditAt'](_0x4135d0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x185903);}}function ls(_0x569b9c,_0x231663){let _0x5c77e7='';return _0x5c77e7+=_0x569b9c['split']('*')['map']((_0x269d58,_0x27bb7d)=>_0x27bb7d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x269d58)+'</span>':nn(_0x269d58))['join'](''),_0x231663&&(_0x5c77e7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x231663['value']+'\x22\x20title=\x22'+_0x231663['title']+'\x22></span>'),_0x5c77e7;}function nn(_0x317480){const _0x1ba63f=document['createElement']('span');return _0x1ba63f['innerText']=_0x317480,_0x1ba63f['innerHTML'];}function ss(_0x428d62){return _0x428d62['sort']((_0x2094ee,_0x4f2e56)=>'deletion'==_0x2094ee['type']&&'deletion'!=_0x4f2e56['type']?-0x1:'deletion'!=_0x2094ee['type']&&'deletion'==_0x4f2e56['type']?0x1:0x0);}function to(_0x21f34a,_0x1b720e){let _0xa0f005,_0x1b227f=0x0;const _0x517436=[],_0x3ca313=_0x1b720e['schema'];for(;_0x1b227f<_0x21f34a['length'];){const _0x4c144a=_0x21f34a[_0x1b227f],_0x485cce=_0x21f34a[_0x1b227f+0x1];_0xa0f005||(_0xa0f005=_0x1b720e['createPositionBefore'](_0x4c144a)),on(_0x1b720e,_0x4c144a,_0x485cce)||(_0x517436['push'](_0x1b720e['createRange'](_0xa0f005,_0x3ca313['isObject'](_0x4c144a)?_0x1b720e['createPositionAfter'](_0x4c144a):_0x1b720e['createPositionAt'](_0x4c144a,'end'))),_0xa0f005=null),_0x1b227f++;}return _0x517436;}function on(_0xa96e47,_0x479f8d,_0x267006){if(!_0x267006)return!0x1;const _0x30cd47=_0xa96e47['createPositionAfter'](_0x479f8d),_0x158efe=_0xa96e47['createPositionBefore'](_0x267006);return _0x30cd47['isTouching'](_0x158efe);}function rs(_0x438735,_0xbe6e87,_0x18386c){for(;_0x18386c['length'];){const _0x5df9d1=_0x18386c['splice'](0x0,0x64);_0x438735['change'](()=>{for(const _0x38f3aa of _0x5df9d1)_0x38f3aa['isInContent']&&_0xbe6e87['execute'](_0x38f3aa['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x569a76,_0x8e870a,_0x5bd964){super(_0x569a76),this['_command']=_0x8e870a,this['_suggestions']=_0x5bd964,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f0ffc=Array['from'](this['_suggestions']['values']())['some'](_0x2a55f8=>_0x2a55f8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2f0ffc;}['execute'](){const _0x29c1e7=ss(Array['from'](this['_suggestions']['values']()));for(const _0x463564 of _0x29c1e7){const _0xff6bc3=_0x463564['getRanges']();if(!this['editor']['model']['canEditAt'](_0xff6bc3))return;}rs(this['editor']['model'],this['_command'],_0x29c1e7);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x220112,_0x4e14f2,_0x1707ca){super(_0x220112),this['_command']=_0x4e14f2,this['_suggestions']=_0x1707ca,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x49fff5=this['editor']['model']['document']['selection'],_0x59cc45=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3a4fd5,_0x38a296){const _0x2f9e17=Array['from'](_0x3a4fd5['getRanges']()),_0x1b11bb=new Set();for(const _0x557e9c of _0x38a296)if(_0x557e9c['isInContent']){for(const _0x4eb7e6 of _0x2f9e17)for(const _0x32f39b of _0x557e9c['getRanges']())(_0x4eb7e6['isIntersecting'](_0x32f39b)||_0x3a4fd5['isCollapsed']&&!_0x557e9c['isMultiRange']&&_0x557e9c['next']&&_0x32f39b['end']['isTouching'](_0x4eb7e6['start']))&&_0x1b11bb['add'](_0x557e9c);}return _0x1b11bb;}(_0x49fff5,_0x59cc45),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3cf4a9=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1de3f1 of _0x3cf4a9){const _0x3e4205=_0x1de3f1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e4205))return;}rs(this['editor']['model'],this['_command'],_0x3cf4a9);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x3c9868(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4529fa,_0x735d29){super(),this['id']=_0x735d29['id'],this['type']=_0x735d29['type'],this['subType']=_0x735d29['subType']||null,this['author']=_0x735d29['author'],this['creator']=_0x735d29['creator']||_0x735d29['author'],this['isExternal']=Boolean(_0x735d29['attributes']&&_0x735d29['attributes']['@external']),this['data']=null,this['_model']=_0x4529fa,this['_onAccept']=_0x735d29['onAccept'],this['_onDiscard']=_0x735d29['onDiscard'],this['_onAttributesChange']=_0x735d29['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x735d29['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 _0x548ef9=this;for(;_0x548ef9['previous'];)_0x548ef9=_0x548ef9['previous'];return _0x548ef9;}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'](_0x13ed81){this['_markerNames']['add'](_0x13ed81);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x35cc58=>this['_model']['markers']['get'](_0x35cc58))['filter'](_0x2d0dd1=>_0x2d0dd1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32da7e=>{for(const _0x40b552 of this['getMarkers']())_0x32da7e['removeMarker'](_0x40b552);}),this['_markerNames']['clear']();}['removeMarker'](_0x5521ef){this['_model']['change'](_0x5b652b=>{_0x5b652b['removeMarker'](_0x5521ef);}),this['_markerNames']['delete'](_0x5521ef);}['addRange'](_0x8360c0){const _0x534935='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x534935),this['_model']['change'](_0x25f9fa=>{_0x25f9fa['addMarker'](_0x534935,{'range':_0x8360c0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5467ee){for(const _0x46e665 of this['getRanges']())if(_0x46e665['isIntersecting'](_0x5467ee))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1bcf9c=>_0x1bcf9c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x459cd1,_0x35b33f)=>[..._0x459cd1,..._0x35b33f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x36f680=this['getRanges']();if(0x1!=_0x36f680['length'])return null;const _0x4bef24=_0x36f680[0x0],_0x396f36=_0x4bef24['start']['nodeAfter'],_0x2232e4=_0x4bef24['end']['nodeBefore'];return _0x396f36 instanceof _0xc1b524?_0x396f36!=_0x2232e4?null:_0x396f36: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 _0x678ffc=[];let _0x52f363=this['head'];for(;_0x52f363;)_0x678ffc['push'](_0x52f363),_0x52f363=_0x52f363['next'];return _0x678ffc;}['setAttribute'](_0x1e490e,_0xbd4946){const _0x2c937c=_0x2874d9(this['attributes']);_0x3b5b90(_0x2c937c,_0x1e490e,_0xbd4946),_0x4b5161(_0x2c937c,this['attributes'])||(this['attributes']=_0x2c937c,this['_onAttributesChange'](_0x2c937c));}['removeAttribute'](_0x3046de){const _0x46bac9=_0x2874d9(this['attributes']);_0x369aef(_0x46bac9,_0x3046de),_0x4b5161(_0x46bac9,this['attributes'])||(this['attributes']=_0x46bac9,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 _0x55f5c8()['substr'](0x1,0x5);}}function o(_0x3aac38,_0x5b4f3c,_0x5d8372){const t=_0x3aac38['t'];switch(_0x5b4f3c){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5d8372);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d8372);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d8372);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d8372);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d8372);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',_0x5d8372);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d8372);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d8372);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d8372);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d8372);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d8372);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d8372);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d8372);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d8372);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d8372);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d8372);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d8372);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d8372);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d8372);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d8372);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d8372);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d8372);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d8372);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'},_0x5d8372);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d8372);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d8372);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d8372);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d8372);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d8372);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d8372);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d8372);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d8372);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'},_0x5d8372);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5d8372);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d8372);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d8372);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'},_0x5d8372);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d8372);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d8372);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d8372);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'},_0x5d8372);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'},_0x5d8372);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'},_0x5d8372);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5b4f3c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5346b7,_0x23d5c5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5346b7,this['_locale']=_0x23d5c5;}['getDescriptions'](_0x437081){const _0x397f4e=[],_0x4e84b4=new Set(),_0x4e765e=new Set();for(let _0x3ed62c=0x0;_0x3ed62c<_0x437081['length'];_0x3ed62c++){const _0x4dadca=_0x437081[_0x3ed62c];if(!_0x4dadca['isInContent'])continue;const _0x1bb5df=this['_handleCustomCallbackDescription'](_0x4dadca);if(_0x1bb5df){if(null!=_0x4dadca['subType']){if(_0x4e84b4['has'](_0x4dadca['subType']))continue;_0x4e84b4['add'](_0x4dadca['subType']);}_0x397f4e['push'](_0x1bb5df);}else{if('attribute'!=_0x4dadca['type'])'insertion'!=_0x4dadca['type']&&'deletion'!=_0x4dadca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x397f4e,_0x4dadca,_0x437081[_0x3ed62c+0x1]);else{const _0x3f87a9=_0x4dadca['data']['key'];if(_0x4e765e['has'](_0x3f87a9))continue;_0x4e765e['add'](_0x4dadca['data']['key']),_0x3f87a9==m?this['_handleRenameSuggestionDescription'](_0x397f4e,_0x4dadca):this['_handleAttributeSuggestionDescription'](_0x397f4e,_0x4dadca);}}}return this['_resolveDescriptionItems'](_0x397f4e);}['registerDescriptionCallback'](_0x406d5e){this['_customCallbacks']['push'](_0x406d5e);}['registerElementLabel'](_0x25d229,_0x10b3f2,_0x1202b9=_0x4d60ea['normal']){'function'==typeof _0x25d229?_0x20cd94(this['_itemLabelsCallbacks'],{'matchingCallback':_0x25d229,'label':_0x10b3f2,'priority':_0x1202b9}):this['_itemLabels']['set'](_0x25d229,_0x10b3f2);}['registerAttributeLabel'](_0x1f9e36,_0x16b173){this['_attributeLabels']['set'](_0x1f9e36,_0x16b173);}['getItemLabel'](_0x11393a,_0x1aa6eb=0x1){let _0x1c405d;for(const _0xd1cd0a of this['_itemLabelsCallbacks'])if(_0xd1cd0a['matchingCallback'](_0x11393a)){_0x1c405d=_0xd1cd0a['label'];break;}return _0x1c405d||(_0x1c405d=this['_itemLabels']['get'](_0x11393a['name'])),_0x1c405d?_0x1c405d(_0x1aa6eb):0x1!==_0x1aa6eb?_0x1aa6eb+'\x20'+_0x11393a['name']+'s':''+_0x11393a['name'];}['_addDescriptionItems'](_0x1a243f,_0x40d890){const _0x1ff690=_0x40d890['getFirstRange']()['getWalker'](),_0x609de5='insertion'==_0x40d890['type']?'add':'remove';for(const _0x43258e of _0x1ff690){const _0x4f3320=_0x43258e['item'],_0x56e118=_0x1a243f[_0x1a243f['length']-0x1];if(_0x4f3320['is']('$textProxy'))_0x56e118&&_0x56e118['type']['indexOf']('Container')>-0x1&&_0x1a243f['pop'](),_0x56e118&&'text'==_0x56e118['type']?_0x56e118[_0x609de5]+=_0x4f3320['data']:_0x1a243f['push']({'type':'text','add':'add'==_0x609de5?_0x4f3320['data']:'','remove':'remove'==_0x609de5?_0x4f3320['data']:''});else{if(this['_schema']['isObject'](_0x4f3320)){const _0x3b5099=_0x4f3320;if(_0x56e118&&_0x56e118['type']['indexOf']('Container')>-0x1&&_0x1a243f['pop'](),'elementEnd'==_0x43258e['type'])continue;_0x56e118&&_0x56e118['type']==_0x609de5+'Object'&&_0x56e118['element']['name']==_0x3b5099['name']?_0x56e118['quantity']++:_0x1a243f['push']({'type':_0x609de5+'Object','element':_0x3b5099,'quantity':0x1}),_0x1ff690['skip'](_0x3f03fa=>!('elementEnd'==_0x3f03fa['type']&&_0x3f03fa['item']==_0x4f3320));}else{if(this['_schema']['checkChild'](_0x4f3320,'$text')||_0x4f3320['is']('element','softBreak')){const _0x2ed072=_0x4f3320;if('add'==_0x609de5&&'elementStart'==_0x43258e['type']||'remove'==_0x609de5&&'elementEnd'==_0x43258e['type'])continue;if(_0x56e118&&-0x1==_0x56e118['type']['indexOf']('Container')){'text'==_0x56e118['type']&&(_0x56e118[_0x609de5]+='\x0a');continue;}let _0x3adbdf;if(_0x3adbdf='add'==_0x609de5?_0x2ed072['nextSibling']&&!this['_schema']['isObject'](_0x2ed072['nextSibling'])?_0x2ed072['nextSibling']:null:_0x2ed072['previousSibling']&&!this['_schema']['isObject'](_0x2ed072['previousSibling'])?_0x2ed072['previousSibling']:null,_0x2ed072['isEmpty']||_0x3adbdf&&_0x3adbdf['isEmpty']){const _0x201c10=_0x3adbdf&&_0x3adbdf['isEmpty']?_0x3adbdf:_0x2ed072;_0x56e118&&_0x56e118['type']==_0x609de5+'EmptyContainer'&&_0x56e118['element']['name']==_0x201c10['name']?_0x56e118['quantity']++:_0x1a243f['push']({'type':_0x609de5+'EmptyContainer','element':_0x201c10,'quantity':0x1});}else _0x1a243f['push']({'type':_0x609de5+'Container','element':_0x2ed072});}}}}}['_resolveDescriptionItems'](_0x1cda94){const _0x551af8=this['_locale'],_0x2b370d=[],_0x1caef8=[],_0x23dfa0=[];for(const _0x343694 of _0x1cda94)switch(_0x343694['type']){case'text':if(_0x343694['add']=_0x343694['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x343694['remove']=_0x343694['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x343694['add']&&''!=_0x343694['remove']){_0x2b370d['push']({'type':'replace','content':o(_0x551af8,'REPLACE_TEXT',['\x22'+_0x343694['remove']+'\x22','\x22'+_0x343694['add']+'\x22'])});continue;}if(null!=_0x343694['add']['match'](/^ +$/)){_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Insert:*\x20%0',o(_0x551af8,'ELEMENT_SPACE',_0x343694['add']['length']))});continue;}if(null!=_0x343694['remove']['match'](/^ +$/)){_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Remove:*\x20%0',o(_0x551af8,'ELEMENT_SPACE',_0x343694['remove']['length']))});continue;}if(''!=_0x343694['add']){_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Insert:*\x20%0','\x22'+_0x343694['add']+'\x22')});continue;}_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Remove:*\x20%0','\x22'+_0x343694['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Insert:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Remove:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'addContainer':_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Split:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'removeContainer':_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Merge:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'addFormat':_0x1caef8['push'](_0x343694['key']);continue;case'removeFormat':_0x23dfa0['push'](_0x343694['key']);continue;default:_0x2b370d['push'](_0x343694);}if(_0x1caef8['length']){const _0x1b8969=_0x1caef8['map'](_0x438df8=>this['_attributeLabels']['has'](_0x438df8)?this['_attributeLabels']['get'](_0x438df8):_0x438df8)['join'](',\x20');_0x2b370d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1b8969)});}if(_0x23dfa0['length']){const _0x5dc89c=_0x23dfa0['map'](_0x4034df=>this['_attributeLabels']['has'](_0x4034df)?this['_attributeLabels']['get'](_0x4034df):_0x4034df)['join'](',\x20');_0x2b370d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5dc89c)});}return _0x2b370d;}['_handleCustomCallbackDescription'](_0xe1e033){for(const _0x43bb43 of this['_customCallbacks']){const _0x58a143=_0x43bb43(_0xe1e033);if(_0x58a143&&'type'in _0x58a143)return _0x58a143;}}['_handleAttributeSuggestionDescription'](_0x5ca85c,_0x555e2c){const _0x50bda6=_0x555e2c['data'],_0x500752=void 0x0===_0x50bda6['newValue']?'removeFormat':'addFormat';_0x5ca85c['push']({'type':_0x500752,'key':_0x50bda6['key']});}['_handleRenameSuggestionDescription'](_0x208bc4,_0x1645d3){_0x208bc4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1645d3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57fb95,_0x18f469,_0x42911a){if(this['_addDescriptionItems'](_0x57fb95,_0x18f469),_0x42911a&&_0x42911a['getFirstRange']()&&!_0x18f469['getFirstRange']()['end']['isEqual'](_0x42911a['getFirstRange']()['start'])){const _0x5c7778=_0x57fb95[_0x57fb95['length']-0x1],_0x3d48ec='insertion'==_0x18f469['type']?'add':'remove';_0x5c7778&&'text'==_0x5c7778['type']&&(_0x5c7778[_0x3d48ec]+='\x0a');}}}class V extends _0x55f69e{['afterInit'](){const _0x4d499e=this['editor'],_0xa4f83b=_0x4d499e['plugins']['get']('TrackChangesEditing');_0x4d499e['commands']['get']('showAIAssistant')&&_0xa4f83b['enableCommand']('showAIAssistant');}}class U extends _0x55f69e{['afterInit'](){const _0x36eb8f=this['editor'],_0x404091=_0x36eb8f['locale'];if(!_0x36eb8f['plugins']['has']('AlignmentEditing'))return;const _0x23a91b=_0x36eb8f['plugins']['get']('TrackChangesEditing');_0x23a91b['enableDefaultAttributesIntegration']('alignment'),_0x23a91b['registerBlockAttribute']('alignment'),_0x23a91b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x404091,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35bb2f=this['editor'],_0x149739=_0x35bb2f['locale'];_0x35bb2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x341b95=>{if('formatBlock'!=_0x341b95['type'])return;const {data:_0x4cb1c5}=_0x341b95;if(_0x4cb1c5&&'alignment'==_0x4cb1c5['commandName']){const _0x1ee541=_0x4cb1c5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x149739,'*Format:*\x20%0',function(_0x3dceba){switch(_0x3dceba){case'left':return o(_0x149739,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x149739,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x149739,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x149739,'FORMAT_JUSTIFY_TEXT');}}(_0x1ee541))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x55f69e{['afterInit'](){const _0x1c8dfd=this['editor'],_0x19433e=_0x1c8dfd['plugins']['get']('TrackChangesEditing'),_0x2175fd=_0x1c8dfd['locale'];for(const _0xd40f08 of ti){if(!_0x1c8dfd['plugins']['has'](_0xd40f08))continue;const _0x22d6bc=_0xd40f08['slice'](0x0,-0x7)['toLowerCase'](),_0x107c92='FORMAT_'+_0x22d6bc['toUpperCase']();_0x19433e['enableDefaultAttributesIntegration'](_0x22d6bc),_0x19433e['registerInlineAttribute'](_0x22d6bc),_0x19433e['descriptionFactory']['registerAttributeLabel'](_0x22d6bc,o(_0x2175fd,_0x107c92));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x172d52=this['editor'],_0xfbcac1=_0x172d52['locale'],_0x3065cf=_0x172d52['plugins']['get']('TrackChangesEditing');function _0x24e65f(_0x3f45e6,_0x3d428b){_0x3065cf['descriptionFactory']['registerDescriptionCallback'](_0x44622d=>{if('formatInline'!=_0x44622d['type'])return;const {data:_0x9e6fb4}=_0x44622d;return _0x9e6fb4&&_0x9e6fb4['commandName']===_0x3f45e6?_0x9e6fb4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfbcac1,'*Format:*\x20%0',_0x3d428b)}:{'type':'format','content':o(_0xfbcac1,'*Remove\x20format:*\x20%0',_0x3d428b)}:void 0x0;});}_0x24e65f('bold',o(_0xfbcac1,'FORMAT_BOLD')),_0x24e65f('italic',o(_0xfbcac1,'FORMAT_ITALIC')),_0x24e65f('underline',o(_0xfbcac1,'FORMAT_UNDERLINE')),_0x24e65f('code',o(_0xfbcac1,'FORMAT_CODE')),_0x24e65f('strikethrough',o(_0xfbcac1,'FORMAT_STRIKETHROUGH')),_0x24e65f('subscript',o(_0xfbcac1,'FORMAT_SUBSCRIPT')),_0x24e65f('superscript',o(_0xfbcac1,'FORMAT_SUPERSCRIPT'));}}class F extends _0x55f69e{['afterInit'](){const _0x519257=this['editor'],_0x150cc3=_0x519257['locale'];if(!_0x519257['plugins']['has']('BlockQuoteEditing'))return;const _0x200ce2=_0x519257['plugins']['get']('TrackChangesEditing'),_0x12d9e8=this['editor']['commands']['get']('blockQuote');_0x200ce2['enableCommand']('blockQuote',(_0x2869cc,_0x5a7ea1={})=>{const _0x29857e=this['editor']['model']['document']['selection'],_0xc4dd3=_0x5a7ea1&&void 0x0!==_0x5a7ea1['forceValue']?_0x5a7ea1['forceValue']:!_0x12d9e8['value'];let _0xcc5cd7=[];if(_0xc4dd3){const _0x42b791=Array['from'](_0x29857e['getSelectedBlocks']())['filter'](_0x289238=>oo(_0x289238)||function(_0x10f5e1,_0x170a92){const _0x41e8b7=_0x170a92['checkChild'](_0x10f5e1['parent'],'blockQuote'),_0x44c743=_0x170a92['checkChild'](['$root','blockQuote'],_0x10f5e1);return _0x41e8b7&&_0x44c743;}(_0x289238,this['editor']['model']['schema']));_0xcc5cd7=to(_0x42b791,_0x519257['model']);}else{const _0x1c4189=Array['from'](_0x29857e['getSelectedBlocks']())['filter'](_0x2dc12e=>oo(_0x2dc12e));_0xcc5cd7=to(_0x1c4189,_0x519257['model']);}_0x519257['model']['change'](()=>{for(const _0x82595 of _0xcc5cd7)_0x200ce2['markBlockFormat'](_0x82595,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xc4dd3}]});});}),_0x200ce2['descriptionFactory']['registerDescriptionCallback'](_0x1f62dd=>{const {data:_0x50ca89}=_0x1f62dd;if(_0x50ca89&&'blockQuote'==_0x50ca89['commandName']){const _0x4f052b=o(_0x150cc3,'ELEMENT_BLOCK_QUOTE');return _0x50ca89['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x150cc3,'*Set\x20format:*\x20%0',_0x4f052b)}:{'type':'format','content':o(_0x150cc3,'*Remove\x20format:*\x20%0',_0x4f052b)};}});}}function oo(_0xfde184){return'blockQuote'==_0xfde184['parent']['name'];}class L extends _0x55f69e{['afterInit'](){const _0xf5847e=this['editor'];_0xf5847e['plugins']['has']('CaseChange')&&(_0xf5847e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xf5847e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xf5847e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x55f69e{['afterInit'](){const _0x158c68=this['editor'];_0x158c68['commands']['get']('ckbox')&&_0x158c68['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x55f69e{['afterInit'](){const _0x5dbb90=this['editor'];if(!_0x5dbb90['plugins']['has']('CodeBlock'))return;const _0x183a76=_0x5dbb90['plugins']['get']('TrackChangesEditing'),_0x3e5e50=_0x5dbb90['locale'],_0x12de00=_0x5dbb90['config']['get']('codeBlock')['languages'],_0x30ee00=_0x5dbb90['commands']['get']('codeBlock');_0x183a76['enableCommand']('indentCodeBlock'),_0x183a76['enableCommand']('outdentCodeBlock'),_0x183a76['enableCommand']('codeBlock',(_0x4ef05f,_0x80a3ec={})=>{const _0x3f65eb=_0x5dbb90['model'],_0x45b705=_0x5dbb90['model']['document']['selection'],_0x54896c=_0x80a3ec&&void 0x0!==_0x80a3ec['forceValue']?_0x80a3ec['forceValue']:!_0x30ee00['value'];let _0x823a19;_0x80a3ec['language']||(_0x80a3ec['language']=_0x12de00[0x0]['language']),_0x823a19=_0x54896c?Array['from'](_0x45b705['getSelectedBlocks']())['filter'](_0x4d09c0=>eo(_0x4d09c0)||function(_0x2dd16a,_0xa83832){if(_0x2dd16a['is']('rootElement')||_0xa83832['isLimit'](_0x2dd16a))return!0x1;return _0xa83832['checkChild'](_0x2dd16a['parent'],'codeBlock');}(_0x4d09c0,_0x3f65eb['schema'])):Array['from'](_0x45b705['getSelectedBlocks']())['filter'](_0xd213d4=>eo(_0xd213d4));const _0x2c29d3=to(_0x823a19,_0x3f65eb);_0x3f65eb['change'](()=>{for(const _0x26325c of _0x2c29d3)_0x183a76['markBlockFormat'](_0x26325c,{'commandName':'codeBlock','commandParams':[{..._0x80a3ec,'forceValue':_0x54896c}],'formatGroupId':'blockName'});});}),(_0x183a76['descriptionFactory']['registerElementLabel']('codeBlock',_0xc179e7=>o(_0x3e5e50,'ELEMENT_CODE_BLOCK',_0xc179e7)),_0x183a76['descriptionFactory']['registerDescriptionCallback'](_0x796fd1=>{if('formatBlock'!=_0x796fd1['type'])return;const _0x45bf0b=_0x3e5e50['t'],{data:_0x2b4fc3}=_0x796fd1;if(!_0x2b4fc3||'codeBlock'!=_0x2b4fc3['commandName'])return;const _0xb39e3e=_0x2b4fc3['commandParams'][0x0]['language'],_0x4f54b8=_0x45bf0b(_0x12de00['find'](_0x5d1e9c=>_0x5d1e9c['language']===_0xb39e3e)['label'])['toLowerCase']();return _0x2b4fc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e5e50,'*Set\x20format:*\x20%0',o(_0x3e5e50,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4f54b8+')')}:{'type':'format','content':o(_0x3e5e50,'*Remove\x20format:*\x20%0',o(_0x3e5e50,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5ac74c){return'codeBlock'==_0x5ac74c['name'];}class q extends _0x55f69e{['afterInit'](){const _0x5ef2b9=this['editor'];if(!_0x5ef2b9['plugins']['has']('CommentsEditing'))return;_0x5ef2b9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x44b7e3,_0x220856,_0x38ed63){const _0x2f4e6a=[];for(const _0x4fc085 of _0x220856['getItems']())_0x4fc085['hasAttribute'](_0x44b7e3)&&_0x2f4e6a['push'](_0x38ed63['createRangeOn'](_0x4fc085));return _0x2f4e6a;}function _e(_0x10b1eb,_0x2cb4ca,{showActiveMarker:_0x5a4e2e=!0x0}={}){const _0x1c6b71=_0x10b1eb['plugins']['get']('TrackChangesEditing');return(_0x2e3e7d,_0x32e340,_0x5ce2d2)=>{if(!_0x5ce2d2['consumable']['test'](_0x32e340['markerRange'],_0x2e3e7d['name']))return;const _0x237aa2=_0x32e340['markerRange']['getWalker'](),_0x6bed2f=_0x32e340['markerRange']['start'],_0x1707f9=_0x10b1eb['model']['schema'];let _0x1fb07e=null,_0x5209d7=null,_0x3c23c8=!0x1,_0x43e747=!0x1;for(const _0x3bde64 of _0x237aa2){const _0x335ce8=_0x3bde64['item'];_0x3c23c8=_0x3c23c8||_0x1707f9['isContent'](_0x335ce8);const _0x4f50c8=_0x5ce2d2['mapper']['toViewElement'](_0x335ce8);if(_0x4f50c8&&_0x4f50c8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3bde64['type']&&(_0x1707f9['isBlock'](_0x335ce8)&&!_0x1707f9['isLimit'](_0x335ce8)&&(_0x335ce8['nextSibling']||_0x6bed2f['isAtEnd']?_0x1fb07e&&_0x1fb07e['parent']==_0x335ce8||(_0x1fb07e=_0x335ce8,_0x19546c(_0x3bde64['previousPosition']),_0x43e747=!0x0):_0x5209d7=_0x5209d7||_0x3bde64['previousPosition']));}function _0x19546c(_0xce47a4){const {authorId:_0x26a1c9}=_0x1c6b71['_splitMarkerName'](_0x32e340['markerName']),_0x35a277=_0x5ce2d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cb4ca,'data-author-id':_0x26a1c9}),_0x10d72b=_0x5ce2d2['mapper']['toViewPosition'](_0xce47a4);_0x5a4e2e&&_0x1c6b71['activeMarkers']['includes'](_0x32e340['markerName'])&&_0x5ce2d2['writer']['addClass']('ck-suggestion-marker--active',_0x35a277),_0x5ce2d2['writer']['insert'](_0x10d72b,_0x35a277),_0x5ce2d2['mapper']['bindElementToMarker'](_0x35a277,_0x32e340['markerName']);}_0x3c23c8||_0x43e747||!_0x5209d7||_0x19546c(_0x5209d7);};}class z extends _0x55f69e{static get['requires'](){return[_0x6be264];}['init'](){const _0x5be670=this['editor'],_0x5b772f=_0x5be670['plugins']['get']('TrackChangesEditing');_0x5b772f['enableCommand']('delete');const _0x14d836=_0x5be670['commands']['get']('deleteForward');_0x5b772f['enableCommand']('deleteForward',(_0x1026b7,_0x8c51d7={})=>{const _0x38f5c8=_0x5be670['model']['createSelection'](_0x5be670['model']['document']['selection']);_0x38f5c8['isCollapsed']&&_0x5be670['model']['modifySelection'](_0x38f5c8,{'direction':'forward','unit':_0x8c51d7['unit']});const _0x21d47f=_0x38f5c8['getFirstRange'](),_0x5823c1=_0x46da37['fromRange'](_0x21d47f);let _0x4806cf;_0x1026b7(_0x8c51d7),_0x4806cf='$graveyard'==_0x5823c1['root']['rootName']?_0x5be670['model']['createRange'](_0x21d47f['start']):_0x5be670['model']['createRange'](_0x5823c1['start'],_0x5823c1['end']),_0x5823c1['detach'](),_0x5be670['model']['enqueueChange'](_0x14d836['buffer']['batch'],_0x11a5a2=>{_0x14d836['buffer']['lock'](),_0x11a5a2['setSelection'](_0x11a5a2['createRange'](_0x4806cf['end'])),_0x14d836['buffer']['unlock']();});}),_0x5be670['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5be670,'merge'),{'priority':'high'}),_0x5be670['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x42e456,_0x5edc3a,_0x2eb244)=>{_0x2eb244['options']['showSuggestionHighlights']&&_e(_0x5be670,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x42e456,_0x5edc3a,_0x2eb244);},{'priority':'high'}),_0x5be670['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fa2c1,_0x1698d9,_0x2517db)=>{const _0xc6d955=_0x2517db['mapper']['markerNameToElements'](_0x1698d9['markerName']);if(_0xc6d955){for(const _0xc9b80 of _0xc6d955)_0xc9b80['is']('uiElement')&&(_0x2517db['mapper']['unbindElementFromMarkerName'](_0xc9b80,_0x1698d9['markerName']),_0x2517db['writer']['remove'](_0xc9b80));}},{'priority':'high'});}}class K extends _0x55f69e{['afterInit'](){const _0x13e17a=this['editor'];if(!_0x13e17a['plugins']['has']('ListEditing'))return;const _0x11df1f=_0x13e17a['locale'],_0x29910b=_0x13e17a['plugins']['get']('TrackChangesEditing'),_0x5cea6a=_0x13e17a['plugins']['has']('TodoListEditing'),_0x3adf7b=!!_0x13e17a['config']['get']('list.multiBlock');function _0x82a76c(_0x3512bd){return{'type':'format','content':''+o(_0x11df1f,'*Set\x20format:*\x20%0',_0x3512bd)};}function _0x4b74c0(_0x30954f){return{'type':'format','content':''+o(_0x11df1f,'*Remove\x20format:*\x20%0',_0x30954f)};}_0x29910b['enableDefaultAttributesIntegration']('numberedList'),_0x29910b['enableDefaultAttributesIntegration']('bulletedList'),_0x29910b['enableDefaultAttributesIntegration']('customNumberedList'),_0x29910b['enableDefaultAttributesIntegration']('customBulletedList'),_0x29910b['enableDefaultAttributesIntegration']('indentList'),_0x29910b['enableDefaultAttributesIntegration']('outdentList'),_0x29910b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x29910b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x29910b['registerBlockAttribute']('listItemId'),_0x29910b['registerBlockAttribute']('listType'),_0x29910b['registerBlockAttribute']('listIndent'),_0x3adf7b&&(_0x29910b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x29910b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5cea6a&&(_0x29910b['enableDefaultAttributesIntegration']('todoList'),_0x29910b['enableDefaultAttributesIntegration']('checkTodoList'),_0x29910b['registerBlockAttribute']('todoListChecked'),_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0xd6d7b1=>{const {data:_0x54f543}=_0xd6d7b1;if(_0x54f543&&'todoListChecked'==_0x54f543['key'])return{'type':'format','content':_0x54f543['newValue']?o(_0x11df1f,'*Check\x20item*'):o(_0x11df1f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d14cb=>{if(_0x2d14cb['batch']['isUndo'])return!0x1;let _0x1ccf6b=!0x1;const _0x5c7d13=_0x29910b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e5bc9=>'todoListChecked'===_0x29910b['_getAttributeKey'](_0x1e5bc9));for(const _0x1b48d7 of _0x5c7d13){'todo'!=_0x1b48d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x29910b['_findSuggestions'](_0x1b48d7['getFirstRange'](),'attribute')['find'](_0x4acccb=>'listType'===_0x29910b['_getAttributeKey'](_0x4acccb['suggestion']))||(_0x2d14cb['removeMarker'](_0x1b48d7['getFirstMarker']()),_0x1ccf6b=!0x0));}return _0x1ccf6b;})),_0x29910b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x11df1f,'FORMAT_INDENT'));const _0x3c25bb={'type':'format','content':''};_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0x51ca39=>{const {data:_0x5f0038}=_0x51ca39;if(!_0x5f0038||'listType'!=_0x5f0038['key'])return;let _0x45e103=_0x51ca39['head'];for(;_0x45e103;){if(_0x45e103['data']&&(('listStyle'==_0x45e103['data']['key']||'listMarkerStyle'==_0x45e103['data']['key'])&&(_0x45e103['data']['newValue']&&'default'!=_0x45e103['data']['newValue']||'default'!=_0x45e103['data']['oldValue']&&!_0x5f0038['newValue'])||!_0x3adf7b&&_0x45e103['data']['key']==m))return _0x3c25bb;_0x45e103=_0x45e103['next'];}if(null==_0x5f0038['newValue'])switch(_0x5f0038['oldValue']){case'bulleted':return _0x4b74c0(o(_0x11df1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b74c0(o(_0x11df1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b74c0(o(_0x11df1f,'ELEMENT_TODO_LIST'));}switch(_0x5f0038['newValue']){case'bulleted':return _0x82a76c(o(_0x11df1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x82a76c(o(_0x11df1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x82a76c(o(_0x11df1f,'ELEMENT_TODO_LIST'));}}),_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0x21854a=>{const {data:_0x117dc3}=_0x21854a;if(_0x117dc3&&'listIndent'==_0x117dc3['key'])return null==_0x117dc3['newValue']||null==_0x117dc3['oldValue']&&0x0==_0x117dc3['newValue']?_0x3c25bb:void 0x0;}),_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0x4ca8b9=>{if('attribute'!=_0x4ca8b9['type'])return;const {data:_0x291919}=_0x4ca8b9;if(!_0x291919||'listItemId'!=_0x291919['key'])return;const _0x1282e1=Ee(_0x4ca8b9);return'newValue'==_0x1282e1?{'type':'format','content':o(_0x11df1f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1282e1?{'type':'format','content':o(_0x11df1f,'*Split:*\x20list\x20item')}:_0x3c25bb;}),_0x13e17a['model']['document']['registerPostFixer'](_0x367eaf=>this['listItemIdFixer'](_0x367eaf)),_0x13e17a['model']['document']['registerPostFixer'](_0x235422=>this['noTrackChangesFixer'](_0x235422)),_0x13e17a['model']['document']['on']('change:data',(_0x1f06bf,_0x54cdfd)=>{if(_0x54cdfd['isUndo']||!_0x54cdfd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb315d3){if(_0xb315d3['batch']['isUndo']||!_0xb315d3['batch']['isLocal'])return!0x1;let _0x4f96f5=!0x1;const _0x17ae5e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a4951=>_0x5a4951['data']&&'listItemId'==_0x5a4951['data']['key'])['filter'](_0x5250c7=>_0x5250c7['data']['newValue']&&_0x5250c7['data']['oldValue']);for(const _0x1b6fd3 of _0x17ae5e)Ee(_0x1b6fd3)||(_0xb315d3['removeMarker'](_0x1b6fd3['getFirstMarker']()),_0x4f96f5=!0x0);return _0x4f96f5;}['noTrackChangesFixer'](_0xd5ae2e){if(_0xd5ae2e['batch']['isUndo']||!_0xd5ae2e['batch']['isLocal'])return!0x1;const _0x5ea689=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5ea689['trackChangesCommand']['value'])return!0x1;let _0x3333fe=!0x1;const _0x35fad3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2d6764=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2474ee=>'attribute'==_0x2474ee['type'])['filter'](_0x2ebff6=>_0x35fad3['includes'](_0x2ebff6['attributeKey']));if(0x0==_0x2d6764['length'])return _0x3333fe;for(const _0x528add of _0x2d6764){const _0x1928bb=_0x5ea689['_findSuggestions'](_0x528add['range'],'attribute')['filter'](_0x3432f3=>!_0x3432f3['meta']['isNextTo'])['map'](_0xe70e76=>_0xe70e76['suggestion'])['filter'](_0x1682a8=>{const _0x1ad513=_0x5ea689['_getAttributeKey'](_0x1682a8);return _0x35fad3['includes'](_0x1ad513);});if(_0x1928bb['length']){for(const _0x2bed8f of _0x1928bb)_0xd5ae2e['removeMarker'](_0x2bed8f['getFirstMarker']());_0x3333fe=!0x0;}}return _0x3333fe;}['assureChains'](){const _0x30cc5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55662d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c298b;const _0x5e7a50=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xbc2071=>{if(_0xbc2071['data']['oldRange']||!_0xbc2071['data']['newRange'])return null;if(!_0xbc2071['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2c9159}=_0x30cc5b['_splitMarkerName'](_0xbc2071['name']);if(!_0x30cc5b['hasSuggestion'](_0x2c9159))return null;const _0x180fa8=_0x30cc5b['getSuggestion'](_0x2c9159);return _0x55662d['includes'](_0x180fa8['data']['key']);})['map'](_0x56937d=>{const {id:_0x3a2211}=_0x30cc5b['_splitMarkerName'](_0x56937d['name']),_0x4e88bd=_0x30cc5b['getSuggestion'](_0x3a2211);return _0x5c298b=_0x4e88bd['attributes']['groupId'],_0x4e88bd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5e7a50['size'])return;const _0x554bf0=_0x30cc5b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19b72b=>'attribute'==_0x19b72b['type']&&_0x19b72b['data']&&_0x55662d['includes'](_0x19b72b['data']['key'])&&_0x19b72b['attributes']['groupId']!=_0x5c298b)['map'](_0xaecc77=>({'listItem':_0xaecc77['getFirstRange']()['start']['nodeAfter'],'groupId':_0xaecc77['attributes']['groupId']})),_0x5485bb=new Set();for(const {groupId:_0xbdb4b0,listItem:_0x4337cd}of _0x554bf0)_0x5e7a50['has'](_0x4337cd)&&_0x5485bb['add'](_0xbdb4b0);for(const _0x115a2b of _0x30cc5b['getSuggestions']())_0x5485bb['has'](_0x115a2b['attributes']['groupId'])&&_0x115a2b['setAttribute']('groupId',_0x5c298b);}['_supportLegacySuggestions'](){const _0x20722a=this['editor'],_0x23a84c=_0x20722a['locale'],_0x5c532c=_0x20722a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5c532c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x57f863,_0xb4e1b9){const _0x479eef=[];for(let _0x367dac of _0x57f863)_0x367dac['start']['nodeAfter']===_0x367dac['end']['parent']&&(_0x367dac=_0x20722a['model']['createRange'](_0x20722a['model']['createPositionAt'](_0x367dac['start']['nodeAfter'],0x0))),_0x479eef['push'](_0x367dac);_0x20722a['model']['change'](_0x4a7073=>{const _0x2da782=_0x20722a['model']['document']['selection'],_0x39c68b=Array['from'](_0x2da782['getRanges']())['map'](_0x29aea2=>_0x46da37['fromRange'](_0x29aea2));_0x4a7073['setSelection'](_0x479eef),_0x20722a['commands']['get'](_0xb4e1b9['commandName'])['refresh'](),_0xb4e1b9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x20722a['execute'](_0xb4e1b9['commandName'],..._0xb4e1b9['commandParams']),_0x4a7073['setSelection'](_0x39c68b);for(const _0x4c5938 of _0x39c68b)_0x4c5938['detach']();});}),_0x5c532c['descriptionFactory']['registerElementLabel'](function(_0x5f12c2){const _0x1a4f86=!_0x20722a['model']['schema']['isObject'](_0x5f12c2),_0x437071=_0x5f12c2['previousSibling'],_0x310b29=_0x5f12c2['nextSibling'],_0x4f9a84=_0x5f12c2['getAttribute']('listItemId'),_0x185bc7=!_0x437071||_0x437071['getAttribute']('listItemId')!==_0x4f9a84,_0x3d8fb4=!_0x310b29||_0x310b29['getAttribute']('listItemId')!==_0x4f9a84;return _0x1a4f86&&Boolean(_0x4f9a84)&&_0x185bc7&&_0x3d8fb4;},_0x5697e3=>o(_0x23a84c,'ELEMENT_LIST_ITEM',_0x5697e3));}['_registerLegacyDescription'](){const _0x575eb6=this['editor'],_0x216783=_0x575eb6['locale'];function _0x475cf1(_0x342cd6){const _0x28b4dd=_0x575eb6['commands']['get']('bulletedList')['value'],_0x4b8316=_0x575eb6['commands']['get']('numberedList')['value'];return'numberedList'===_0x342cd6?_0x28b4dd:_0x4b8316;}_0x575eb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3688f3){if('formatBlock'!=_0x3688f3['type'])return;const {data:_0x548ade}=_0x3688f3;if(!_0x548ade)return;let _0x3da306,_0xd08753,_0x24283a,_0x5d283f;switch(_0x548ade['commandName']){case'bulletedList':_0x24283a=_0x548ade['commandParams'][0x0]['forceValue'],_0x5d283f=_0x475cf1(_0x548ade['commandName']),_0x3da306=_0x24283a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d283f&&_0x575eb6['config']['get']('list.multiBlock')||(_0x3da306='*Change\x20to:*\x20%0'),_0xd08753={'type':'format','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24283a=_0x548ade['commandParams'][0x0]['forceValue'],_0x5d283f=_0x475cf1(_0x548ade['commandName']),_0x3da306=_0x24283a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d283f&&_0x575eb6['config']['get']('list.multiBlock')||(_0x3da306='*Change\x20to:*\x20%0'),_0xd08753={'type':'format','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3da306='*Indent:*\x20%0',_0xd08753={'type':'format','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3da306=function(_0x3aad6a){const _0x558e33=_0x3aad6a['getFirstRange']();let _0x2588e6=_0x558e33['start']['nodeAfter'];for(;_0x2588e6&&_0x558e33['containsItem'](_0x2588e6);){if(_0x2588e6['getAttribute']('listIndent')>0x0)return!0x1;_0x2588e6=_0x2588e6['nextSibling'];}return!0x0;}(_0x3688f3)?o(_0x216783,'*Format:*\x20remove\x20from\x20%0',o(_0x216783,function(_0x18bedd){return'ELEMENT_'+_0x18bedd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3688f3))):o(_0x216783,'*Outdent:*\x20%0',o(_0x216783,'ELEMENT_LIST_ITEM')),_0xd08753={'type':'format','content':_0x3da306};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x548ade['multipleBlocks']&&(_0x3da306='*Merge:*\x20%0',_0xd08753={'type':'deletion','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_LIST_ITEM'))});}return _0xd08753;});}}function Ee(_0x3029db){let _0x10520c=_0x3029db['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10520c;){const _0x5a973f=_0x10520c['getAttribute']('listItemId');if(!_0x5a973f)return!0x1;if(_0x5a973f==_0x3029db['data']['newValue'])return'newValue';if(_0x5a973f==_0x3029db['data']['oldValue'])return'oldValue';_0x10520c=_0x10520c['previousSibling'];}return!0x1;}class pe extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x252072=this['editor']['config']['get']('list.properties'),_0x3be6b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x252072['styles']&&(_0x3be6b5['enableDefaultAttributesIntegration']('listStyle'),_0x3be6b5['registerBlockAttribute']('listStyle')),_0x252072['reversed']&&(_0x3be6b5['enableDefaultAttributesIntegration']('listReversed'),_0x3be6b5['registerBlockAttribute']('listReversed')),_0x252072['startIndex']&&(_0x3be6b5['enableDefaultAttributesIntegration']('listStart'),_0x3be6b5['registerBlockAttribute']('listStart'));const _0x292c68={'type':'format','content':''};_0x3be6b5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xc6cf4d=this['editor']['locale'];_0x3be6b5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xc6cf4d,'FORMAT_LIST_REVERSED')),_0x3be6b5['descriptionFactory']['registerDescriptionCallback'](_0x4a540f=>{const {data:_0x3933b5}=_0x4a540f;if(_0x3933b5&&'listReversed'==_0x3933b5['key'])return null==_0x3933b5['newValue']||0x0==_0x3933b5['newValue']&&null==_0x3933b5['oldValue']?_0x292c68:void 0x0;}),_0x3be6b5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xc6cf4d,'FORMAT_LIST_START')),_0x3be6b5['descriptionFactory']['registerDescriptionCallback'](_0x426edf=>{const {data:_0x44d7db}=_0x426edf;if(_0x44d7db&&'listStart'==_0x44d7db['key'])return null==_0x44d7db['newValue']||0x1==_0x44d7db['newValue']&&null==_0x44d7db['oldValue']?_0x292c68:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xaddd27=>{if(_0xaddd27['batch']['isUndo'])return!0x1;let _0x406dd3=!0x1;const _0x5023ae=_0x3be6b5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33db70=>{const _0x2aa0d7=_0x3be6b5['_getAttributeKey'](_0x33db70);return'listStart'==_0x2aa0d7||'listReversed'==_0x2aa0d7;});for(const _0x14c0a7 of _0x5023ae){const _0x53dd75=_0x14c0a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x53dd75||'customNumbered'==_0x53dd75)continue;_0x3be6b5['_findSuggestions'](_0x14c0a7['getFirstRange'](),'attribute')['find'](_0x3e1631=>'listType'==_0x3be6b5['_getAttributeKey'](_0x3e1631['suggestion']))||(_0xaddd27['removeMarker'](_0x14c0a7['getFirstMarker']()),_0x406dd3=!0x0);}return _0x406dd3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xe07e06){const _0x18b648=this['editor']['locale'],{data:_0x52a424}=_0xe07e06,_0x4381c9={'type':'format','content':''};if(!_0x52a424||'listStyle'!=_0x52a424['key'])return;if(!_0x52a424['oldValue'])return'default'==_0x52a424['newValue']?_0x4381c9:{'type':'format','content':''+o(_0x18b648,'*Set\x20format:*\x20%0',o(_0x18b648,this['_getTranslationKeyForListStyle'](_0x52a424['newValue'])))};if(!_0x52a424['newValue']){if('default'==_0x52a424['oldValue'])return _0x4381c9;let _0x4ed406=_0xe07e06['head'];for(;_0x4ed406;){if(_0x4ed406['data']&&'listType'==_0x4ed406['data']['key']&&_0x4ed406['data']['newValue'])return _0x4381c9;_0x4ed406=_0x4ed406['next'];}return{'type':'format','content':''+o(_0x18b648,'*Remove\x20format:*\x20%0',o(_0x18b648,this['_getTranslationKeyForListStyle'](_0x52a424['oldValue'])))};}if('default'!=_0x52a424['newValue'])return{'type':'format','content':''+o(_0x18b648,'*Set\x20format:*\x20%0',o(_0x18b648,this['_getTranslationKeyForListStyle'](_0x52a424['newValue'])))};let _0x5a04f3=_0xe07e06['head'];for(;_0x5a04f3;){if(_0x5a04f3['data']&&'listType'==_0x5a04f3['data']['key']&&_0x5a04f3['data']['newValue']&&_0x5a04f3['data']['oldValue'])return _0x4381c9;_0x5a04f3=_0x5a04f3['next'];}return{'type':'format','content':o(_0x18b648,'*Set\x20format:*\x20%0',o(_0x18b648,'ELEMENT_'+_0xe07e06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x30623c=this['editor'],_0xa2d080=_0x30623c['locale'];_0x30623c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3150e6=>{if('formatBlock'!=_0x3150e6['type'])return;const {data:_0x4c3d03}=_0x3150e6;if(!_0x4c3d03)return;let _0x3bdc6d,_0x4c667f;switch(_0x4c3d03['commandName']){case'listStyle':_0x3bdc6d='*Change\x20to:*\x20%0',_0x4c667f={'type':'format','content':o(_0xa2d080,_0x3bdc6d,o(_0xa2d080,this['_getTranslationKeyForListStyle'](_0x4c3d03['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bdc6d=_0x4c3d03['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c667f={'type':'format','content':o(_0xa2d080,_0x3bdc6d)};break;case'listStart':_0x3bdc6d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c667f={'type':'format','content':o(_0xa2d080,_0x3bdc6d,_0x4c3d03['commandParams'][0x0]['startIndex'])};}return _0x4c667f;});}['_getTranslationKeyForListStyle'](_0x18f81b){return'ELEMENT_'+function(_0x498a59){if(ye['includes'](_0x498a59))return'bulleted';if(Se['includes'](_0x498a59))return'numbered';return null;}(_0x18f81b)['toUpperCase']()+'_LIST_'+_0x18f81b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x55f69e{static get['requires'](){return[_0x33b193];}['init'](){const _0x43ed94=this['editor'],_0x1746ea=_0x43ed94['plugins']['get']('TrackChangesEditing'),_0x439d85=_0x43ed94['commands']['get']('enter');_0x1746ea['enableCommand']('enter',()=>{_0x43ed94['model']['change'](_0xc5bd93=>{const _0x352f51=_0x43ed94['model']['document']['selection'],_0x46887e=_0x352f51['getFirstPosition'](),_0x4e2775=_0x46da37['fromRange'](_0x352f51['getFirstRange']());if(_0x439d85['enterBlock'](_0xc5bd93)){const _0xafb5a4=_0x43ed94['model']['createPositionAt'](_0x46887e['parent']['nextSibling'],0x0),_0xeccce4=_0xc5bd93['createRange'](_0x46887e,_0xafb5a4);_0x1746ea['markInsertion'](_0xeccce4);}else _0xc5bd93['setSelection'](_0xc5bd93['createRange'](_0x4e2775['end']));_0x4e2775['detach'](),_0x439d85['fire']('afterExecute',{'writer':_0xc5bd93});});}),_0x43ed94['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x43ed94,'split'),{'priority':'high'}),_0x43ed94['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xb4cfe1,_0x457e75,_0x46e23b)=>{const _0x552e0b=_0x46e23b['mapper']['markerNameToElements'](_0x457e75['markerName']);if(_0x552e0b){for(const _0x366075 of _0x552e0b)_0x366075['hasClass']('ck-suggestion-marker-split')&&(_0x46e23b['mapper']['unbindElementFromMarkerName'](_0x366075,_0x457e75['markerName']),_0x46e23b['writer']['remove'](_0x366075));}},{'priority':'high'}),_0x43ed94['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd4290e,_0x10d024,_0x305609)=>{_0x305609['options']['showSuggestionHighlights']&&_e(_0x43ed94,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xd4290e,_0x10d024,_0x305609);},{'priority':'high'});}}class X extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3e7f24=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e7f24['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3e7f24['enableCommand']('findNext'),_0x3e7f24['enableCommand']('findPrevious'),_0x3e7f24['enableCommand']('replace'),_0x3e7f24['enableCommand']('replaceAll');}['handleFindCommand'](_0x21d6d7,_0x3a4dc0,_0xeb178f={}){const _0x307483=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x21d6d7(_0x269214=>{let _0x7c5c09=('string'==typeof _0x3a4dc0?_0x307483['findByTextCallback'](_0x3a4dc0,_0xeb178f):_0x3a4dc0)(_0x269214);Array['isArray'](_0x7c5c09)&&(_0x7c5c09={'results':_0x7c5c09,'searchText':'string'==typeof _0x3a4dc0?_0x3a4dc0:''});const _0x58f22b=_0x7c5c09['results']['filter'](_0x368558=>!0x1===this['_isInDeletionRange'](_0x368558,_0x269214['item']));return{..._0x7c5c09,'results':_0x58f22b};},_0xeb178f);}['_isInDeletionRange'](_0x34f1c8,_0x34c809){const _0x424671=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34c809,_0x34f1c8['start']),this['editor']['model']['createPositionAt'](_0x34c809,_0x34f1c8['end']));for(const _0x217750 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x424671['getIntersection'](_0x217750['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x55f69e{['afterInit'](){const _0x4e21f2=this['editor']['locale'],_0x589086=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x464f70,commandName:_0x470144}of ro)this['editor']['plugins']['has'](_0x464f70)&&(_0x589086['enableDefaultAttributesIntegration'](_0x470144),_0x589086['registerInlineAttribute'](_0x470144));_0x589086['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4e21f2,'FORMAT_FONT_SIZE')),_0x589086['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4e21f2,'FORMAT_FONT_FAMILY')),_0x589086['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4e21f2,'FORMAT_FONT_COLOR')),_0x589086['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4e21f2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ccd8=this['editor'],_0x5bb51a=_0x37ccd8['locale'];_0x37ccd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x458d54=>{const _0x350328=_0x5bb51a['t'];if('formatInline'!=_0x458d54['type'])return;const {data:_0x461dc3}=_0x458d54;if(null!=_0x461dc3){if('fontSize'==_0x461dc3['commandName']){const _0x2b6fe7=_0x461dc3['commandParams'][0x0]['value'];if(_0x2b6fe7){const _0x3ae2d3=_0x350328(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x62c91d=>_0x62c91d['model']==_0x2b6fe7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20size:*\x20%0',_0x3ae2d3)};}return{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x461dc3['commandName']){const _0x5337c1=_0x461dc3['commandParams'][0x0]['value'];return _0x5337c1?{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20family:*\x20%0',_0x5337c1)}:{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x461dc3['commandName']){const _0x5ddfa1=_0x461dc3['commandParams'][0x0]['value'];if(_0x5ddfa1){const _0x2f44a0=_0x4730ad(this['editor']['config']['get']('fontColor.colors'))['find'](_0x30eeb8=>_0x30eeb8['model']==_0x5ddfa1);let _0x8e5e47=_0x5ddfa1,_0x557111='';return _0x2f44a0&&(_0x8e5e47=_0x2f44a0['label'],_0x557111=_0x350328(_0x8e5e47)['toLowerCase']()),{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20color:*\x20%0',_0x557111)['trim'](),'color':{'value':_0x5ddfa1,'title':_0x557111||_0x8e5e47}};}return{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x461dc3['commandName']){const _0x477c68=_0x461dc3['commandParams'][0x0]['value'];if(_0x477c68){const _0x58f192=_0x4730ad(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49d2de=>_0x49d2de['model']==_0x477c68);let _0x3facd3=_0x477c68,_0x3d4623='';return _0x58f192&&(_0x3facd3=_0x58f192['label'],_0x3d4623=_0x350328(_0x3facd3)['toLowerCase']()),{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d4623)['trim'](),'color':{'value':_0x477c68,'title':_0x3d4623||_0x3facd3}};}return{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x55f69e{['afterInit'](){const _0x3c90a3=this['editor'],_0x2c3f56=_0x3c90a3['plugins']['get']('TrackChangesEditing'),_0x9e7a55=_0x3c90a3['commands']['get']('copyFormat'),_0x5978e2=_0x3c90a3['commands']['get']('pasteFormat');_0x9e7a55&&_0x5978e2&&(_0x2c3f56['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c3f56['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4be309=this['editor'],_0x46a6f9=_0x4be309['locale'];_0x4be309['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f33a5=>{if('formatBlock'!=_0x4f33a5['type']&&'formatInline'!=_0x4f33a5['type'])return;const {data:_0x439f1a}=_0x4f33a5;if(_0x439f1a&&'pasteFormat'===_0x439f1a['commandName']){const _0x19937d=[],_0x285c5f=_0x439f1a['commandParams'][0x0];for(const [_0x4020f9,_0x51b1de]of Object['entries'](_0x285c5f))_0x19937d['push'](so(_0x4be309,_0x4020f9,_0x51b1de));return _0x19937d['length']?{'type':'format','content':o(_0x46a6f9,'*Set\x20format\x20to:*\x20%0',_0x19937d['join'](',\x20'))}:{'type':'format','content':o(_0x46a6f9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2d9fc4,_0x58f9a8,_0x1bd704){const _0x1ab73e=_0x2d9fc4['locale']['t'],_0x4b50c6=_0x58f9a8['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e14a4=_0x1ab73e(_0x4b50c6['charAt'](0x0)['toUpperCase']()+_0x4b50c6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1bd704)return _0x5e14a4;if('fontColor'===_0x58f9a8||'fontBackgroundColor'===_0x58f9a8){const _0x191978=_0x4730ad(_0x2d9fc4['config']['get']('fontColor.colors'))['find'](_0x53609a=>_0x53609a['model']==_0x1bd704);return _0x5e14a4+'\x20('+(_0x191978?_0x1ab73e(_0x191978['label'])['toLowerCase']():_0x1bd704)+')';}if('fontSize'===_0x58f9a8&&isNaN(parseFloat(_0x1bd704))){const _0x45203a=_0x2d9fc4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2d9fc4['config']['get']('fontSize.options'))['find'](_0x59b734=>_0x59b734['model']==_0x1bd704);return _0x5e14a4+'\x20('+(_0x45203a?_0x1ab73e(_0x45203a['title'])['toLowerCase']():_0x1bd704)+')';}return _0x5e14a4+'\x20('+_0x1bd704+')';}class tt extends _0x55f69e{['_headingOptions'];['afterInit'](){const _0x24e6e6=this['editor'];if(!_0x24e6e6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24e6e6['config']['get']('heading.options');const _0x1c44cd=_0x24e6e6['locale'],_0x5aca18=_0x24e6e6['plugins']['get']('TrackChangesEditing');_0x5aca18['enableDefaultAttributesIntegration']('heading');for(const _0x2a3cea of this['_headingOptions'])'paragraph'!=_0x2a3cea['model']&&_0x5aca18['descriptionFactory']['registerElementLabel'](_0x2a3cea['model'],_0x37dc1c=>{const _0x2505de=this['_getHeadingLevel'](_0x2a3cea['model']);return null!==_0x2505de?_0x224401(_0x37dc1c,_0x2505de):_0x4179a6(_0x37dc1c,_0x2a3cea['title']);});function _0x224401(_0x3c1601,_0x456945){return o(_0x1c44cd,'ELEMENT_HEADING',[_0x3c1601,_0x456945]);}function _0x4179a6(_0xce40dd,_0x49784b){return o(_0x1c44cd,'ELEMENT_HEADING_CUSTOM',[_0xce40dd,_0x49784b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5344af=this['editor'],_0x170aff=_0x5344af['locale'];function _0x3d87f4(_0x4c5318,_0x44f19a){return o(_0x170aff,'ELEMENT_HEADING_CUSTOM',[_0x4c5318,_0x44f19a]);}_0x5344af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb27c=>{if('formatBlock'!=_0x3bb27c['type'])return;const {data:_0x445ad6}=_0x3bb27c;if(_0x445ad6&&'heading'==_0x445ad6['commandName']){const _0x415441=_0x445ad6['commandParams'][0x0]['value'],_0x48846d=this['_getHeadingLevel'](_0x415441);if(null!==_0x48846d)return{'type':'format','content':o(_0x170aff,'*Change\x20to:*\x20%0',(_0x236334=0x1,_0x240e3f=_0x48846d,o(_0x170aff,'ELEMENT_HEADING',[_0x236334,_0x240e3f])))};const _0x4f46b6=this['_headingOptions']['find'](_0x45b4b4=>_0x45b4b4['model']===_0x415441)['title'];return{'type':'format','content':o(_0x170aff,'*Change\x20to:*\x20%0',_0x3d87f4(0x1,_0x4f46b6))};}var _0x236334,_0x240e3f;});}['_getHeadingLevel'](_0x107cdc){const _0x347f2e=_0x107cdc['match'](/^heading(\d+)/);if(_0x347f2e)return _0x347f2e[0x1];const _0x3d270e=this['_headingOptions']?.['find'](_0x408689=>_0x408689['model']==_0x107cdc);if(_0x3d270e&&_0x3d270e['view']){const _0x16ae09=_0x3d270e['view'],_0xaf5fc4=(_0x16ae09['name']??_0x16ae09)['match'](/^h(\d+)/);if(_0xaf5fc4)return _0xaf5fc4[0x1];}return null;}}class et extends _0x55f69e{['afterInit'](){const _0xfef51a=this['editor'];if(!_0xfef51a['plugins']['has']('HighlightEditing'))return;const _0x49bb97=_0xfef51a['plugins']['get']('TrackChangesEditing'),_0x381de4=_0xfef51a['locale'];_0x49bb97['enableDefaultAttributesIntegration']('highlight'),_0x49bb97['registerInlineAttribute']('highlight'),_0x49bb97['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x381de4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2af9a6=this['editor'],_0x3fae57=_0x2af9a6['locale'];_0x2af9a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5595a9=>{if('formatInline'!=_0x5595a9['type'])return;const {data:_0x2084ce}=_0x5595a9;if(_0x2084ce&&'highlight'==_0x2084ce['commandName']){const _0x515e42=_0x3fae57['t'],_0x1a363e=_0x2084ce['commandParams'][0x0]['value'];if(_0x1a363e){const _0x5dbdb3=_0x2af9a6['config']['get']('highlight.options')['find'](_0x1bfd12=>_0x1bfd12['model']==_0x1a363e),_0x2e4136=_0x515e42(_0x5dbdb3['title'])['toLowerCase']();return{'type':'format','content':o(_0x3fae57,'*Set\x20highlight:*\x20%0',_0x2e4136),'color':{'value':_0x5dbdb3['color'],'title':_0x5dbdb3['title']}};}return{'type':'format','content':o(_0x3fae57,'*Remove\x20highlight*',o(_0x3fae57,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x55f69e{['afterInit'](){const _0x2fbc92=this['editor'];if(!_0x2fbc92['plugins']['has']('HorizontalLineEditing'))return;_0x2fbc92['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x31d411=_0x2fbc92['plugins']['get']('TrackChangesEditing'),_0x50fc88=_0x2fbc92['locale'];_0x31d411['descriptionFactory']['registerElementLabel']('horizontalLine',_0xe1952a=>o(_0x50fc88,'ELEMENT_HORIZONTAL_LINE',_0xe1952a)),_0x2fbc92['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x37b54f,{writer:_0x6b7e3f,options:_0x549b7f})=>{if(!_0x549b7f['showSuggestionHighlights'])return null;const _0x1eeb7f=_0x6b7e3f['createContainerElement']('div'),_0x41b211=_0x6b7e3f['createEmptyElement']('hr');return _0x6b7e3f['addClass']('ck-horizontal-line',_0x1eeb7f),_0x6b7e3f['insert'](_0x6b7e3f['createPositionAt'](_0x1eeb7f,0x0),_0x41b211),_0x1eeb7f;},'converterPriority':'high'});}}class st extends _0x55f69e{['afterInit'](){const _0x464a82=this['editor'];if(!_0x464a82['plugins']['has']('HtmlEmbed'))return;const _0x3f574d=_0x464a82['plugins']['get']('TrackChangesEditing'),_0x238f34=_0x464a82['locale'];_0x3f574d['descriptionFactory']['registerElementLabel']('rawHtml',_0x4b88c0=>o(_0x238f34,'ELEMENT_HTML_EMBED',_0x4b88c0)),_0x3f574d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3f574d['registerBlockAttribute']('value'),_0x3f574d['descriptionFactory']['registerDescriptionCallback'](_0x165445=>{if('attribute'!=_0x165445['type'])return;const {data:_0x2e86d3}=_0x165445;if(_0x2e86d3&&'value'==_0x2e86d3['key']&&_0x165445['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x121bbc=o(_0x238f34,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x238f34,'*Change\x20%0\x20content*',_0x121bbc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1691db=this['editor'],_0x33b0ca=_0x1691db['locale'];_0x1691db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575c73=>{if('formatBlock'!=_0x575c73['type'])return;const {data:_0x3b95b3}=_0x575c73;if(_0x3b95b3&&'htmlEmbed'==_0x3b95b3['commandName']){const _0x5637a8=o(_0x33b0ca,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x33b0ca,'*Change\x20%0\x20content*',_0x5637a8)};}});}}class nt extends _0x55f69e{['afterInit'](){const _0x2ca4dc=this['editor'];if(!_0x2ca4dc['plugins']['has']('ImageEditing'))return;const _0x3d4290=_0x2ca4dc['plugins']['get']('TrackChangesEditing'),_0x17cf72=_0x2ca4dc['plugins']['get']('ImageUtils'),_0x3ec782=_0x2ca4dc['locale'];_0x3d4290['enableCommand']('insertImage'),_0x3d4290['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e4737=>o(_0x3ec782,'ELEMENT_IMAGE',_0x5e4737)),_0x3d4290['descriptionFactory']['registerElementLabel']('imageInline',_0x32dbe2=>o(_0x3ec782,'ELEMENT_INLINE_IMAGE',_0x32dbe2)),_0x3d4290['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3ec782,'ELEMENT_CAPTION')),_0x2ca4dc['plugins']['has']('ImageUploadEditing')&&_0x3d4290['enableCommand']('uploadImage'),_0x2ca4dc['plugins']['has']('ImageBlockEditing')&&_0x2ca4dc['plugins']['has']('ImageInlineEditing')&&(_0x3d4290['enableCommand']('imageTypeInline',(_0x1c5092,_0x3050fd)=>{const _0x2b186a=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']);_0x2ca4dc['model']['change'](()=>{_0x3d4290['markBlockFormat'](_0x2b186a,{'commandName':'imageTypeInline','commandParams':[_0x3050fd]},[],'convertBlockImageToInline');});}),_0x3d4290['enableCommand']('imageTypeBlock',(_0x43ae0f,_0x33785)=>{_0x2ca4dc['model']['change'](_0x405c19=>{let _0x1d5b31=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x59ad14=_0x405c19['createRangeOn'](_0x1d5b31);const _0x10a8f4=_0x82d64c['fromPosition'](_0x59ad14['start'],'toPrevious'),_0x5d5e4e=_0x82d64c['fromPosition'](_0x59ad14['end'],'toNext');_0x3d4290['forceDefaultExecution'](()=>_0x43ae0f(_0x33785)),_0x1d5b31=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x59ad14=_0x405c19['createRangeOn'](_0x1d5b31);const _0xc1a865=_0x405c19['createRange'](_0x10a8f4,_0x5d5e4e);_0x10a8f4['detach'](),_0x5d5e4e['detach'](),_0x3d4290['markBlockFormat'](_0x1d5b31,{'commandName':'imageTypeInline','commandParams':[_0x33785]},[],'convertInlineImageToBlock'),_0xc1a865['start']['isBefore'](_0x59ad14['start'])&&_0x3d4290['markInsertion'](_0x405c19['createRange'](_0xc1a865['start'],_0x59ad14['start']),'convertInlineImageToBlock'),_0x59ad14['end']['isBefore'](_0xc1a865['end'])&&_0x3d4290['markInsertion'](_0x405c19['createRange'](_0x59ad14['end'],_0xc1a865['end']),'convertInlineImageToBlock');});}),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d4290['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4cf8e5])=>{const _0x3062a2=_0x3d4290['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x42709c=_0x4cf8e5['start'],_0x15cffb=_0x4cf8e5['end'];const _0x31f4ee=_0x2ca4dc['model']['schema']['getNearestSelectionRange'](_0x42709c,'backward'),_0x3bb25f=_0x2ca4dc['model']['schema']['getNearestSelectionRange'](_0x15cffb,'forward');_0x31f4ee['isCollapsed']&&(_0x42709c=_0x31f4ee['start']),_0x3bb25f['isCollapsed']&&(_0x15cffb=_0x3bb25f['end']),_0x3062a2([_0x2ca4dc['model']['createRange'](_0x42709c,_0x15cffb)]);}),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa2826),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa2826)),_0x2ca4dc['plugins']['has']('ImageCaptionEditing')&&(_0x3d4290['enableCommand']('toggleImageCaption',(_0x36f4e4,_0x474e05)=>{const _0x1e8419=_0x2ca4dc['plugins']['get']('ImageCaptionUtils');let _0x71e49d=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x175b1f=_0x1e8419['getCaptionFromImageModelElement'](_0x71e49d);_0x2ca4dc['model']['change'](()=>{if(_0x175b1f)return void _0x3d4290['markDeletion'](_0x2ca4dc['model']['createRangeOn'](_0x175b1f));const _0x159916=_0x17cf72['isBlockImage'](_0x71e49d);_0x36f4e4(_0x474e05),_0x71e49d=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x175b1f=_0x1e8419['getCaptionFromImageModelElement'](_0x71e49d),_0x3d4290['markInsertion'](_0x2ca4dc['model']['createRangeOn'](_0x175b1f),_0x159916?null:'imageCaption');});}),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa2826));const _0x2aeee2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xc7382b(_0xecf472,_0x23a027){const _0x240d79=_0x2aeee2['findIndex'](({type:_0x3e87ff,subType:_0x1048d6})=>_0xecf472['type']==_0x3e87ff&&_0xecf472['subType']==_0x1048d6),_0x51874d=_0x2aeee2['findIndex'](({type:_0x426928,subType:_0x1e15f1})=>_0x23a027['type']==_0x426928&&_0x23a027['subType']==_0x1e15f1);if(_0x240d79<0x0||_0x51874d<0x0)return!0x1;const _0x499b22=_0xecf472['getFirstRange'](),_0x32c56e=_0x23a027['getFirstRange']();if((0x0==_0x240d79||0x1==_0x240d79)&&0x2==_0x51874d&&_0x499b22['isIntersecting'](_0x32c56e))return!0x0;if(0x2==_0x240d79&&0x3==_0x51874d){const _0x53ffa2=_0x3d4290['_findSuggestions'](_0x499b22,'insertion')['filter'](({suggestion:_0x37ac81,meta:_0x2176c0})=>_0x2176c0['isOwn']&&'convertInlineImageToBlock'==_0x37ac81['subType']);if(_0x53ffa2['length']>0x1&&_0x32c56e['end']['isEqual'](_0x499b22['start']))return!0x0;if(0x1==_0x53ffa2['length']&&(_0x499b22['start']['isEqual'](_0x32c56e['end'])||_0x499b22['end']['isEqual'](_0x32c56e['start'])))return!0x0;}if(0x3==_0x240d79&&0x3==_0x51874d&&_0x499b22['start']['isBefore'](_0x32c56e['start'])){const _0x243e0c=_0x499b22['end']['nodeAfter'],_0x472d7f=_0x32c56e['start']['nodeBefore'];return _0x17cf72['isBlockImage'](_0x243e0c)&&_0x243e0c===_0x472d7f;}return!0x1;}function _0xa2826(_0x5a3405,_0x214689){return _0xc7382b(_0x5a3405,_0x214689)?[_0x5a3405,_0x214689]:_0xc7382b(_0x214689,_0x5a3405)?[_0x214689,_0x5a3405]:null;}_0x2ca4dc['plugins']['has']('ImageResize')&&(_0x3d4290['enableDefaultAttributesIntegration']('resizeImage'),_0x3d4290['registerBlockAttribute']('resizedWidth'),_0x3d4290['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3ec782,'FORMAT_IMAGE_SIZE'))),_0x2ca4dc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d4290['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d4290['registerBlockAttribute']('alt')),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x5a3c24=>{if(!!_0x2aeee2['find'](({type:_0x1d2e3d,subType:_0x69d7a2})=>_0x5a3c24['type']==_0x1d2e3d&&_0x5a3c24['subType']==_0x69d7a2))return _0x5a3c24['previous']?{}:void 0x0;}),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x81cf24=>{if('insertion'==_0x81cf24['type']||'deletion'==_0x81cf24['type']){const _0x113b9a=_0x81cf24['getContainedElement']();if(_0x113b9a&&_0x113b9a['is']('element','caption'))return{'type':'insertion'==_0x81cf24['type']?'addObject':'removeObject','element':_0x113b9a,'quantity':0x1};}}),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x53b863=>'formatBlock'==_0x53b863['type']&&'convertInlineImageToBlock'==_0x53b863['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x53b863['type']&&'convertBlockImageToInline'==_0x53b863['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x2bb478=>{if('attribute'!=_0x2bb478['type'])return;const {data:_0x3c4660}=_0x2bb478;if(!_0x3c4660||'alt'!=_0x3c4660['key'])return;const _0x3b2fbc=_0x3c4660['newValue'];return _0x3b2fbc?{'type':'format','content':o(_0x3ec782,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b2fbc+'\x22')}:{'type':'format','content':o(_0x3ec782,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41e0ca=this['editor'],_0x4c6e61=_0x41e0ca['locale'];_0x41e0ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a659=>{if('formatBlock'!=_0x47a659['type']&&'formatInline'!=_0x47a659['type'])return;const {data:_0x2040f6}=_0x47a659;if(_0x2040f6){if('imageTextAlternative'==_0x2040f6['commandName']){const _0x3b07db=_0x2040f6['commandParams'][0x0]['newValue'];return _0x3b07db?{'type':'format','content':o(_0x4c6e61,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b07db+'\x22')}:{'type':'format','content':o(_0x4c6e61,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2040f6['commandName']){const _0x1e8211=_0x2040f6['commandParams'][0x0]['width'];return _0x1e8211?{'type':'format','content':o(_0x4c6e61,'*Set\x20image\x20width:*\x20%0',_0x1e8211)}:{'type':'format','content':o(_0x4c6e61,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x34c55a=this['editor']['locale'],_0x4c9c7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c9c7b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c9c7b['registerBlockAttribute']('src'),_0x4c9c7b['descriptionFactory']['registerDescriptionCallback'](_0x259105=>{if('attribute'!=_0x259105['type'])return;const {data:_0x27067d}=_0x259105;return _0x27067d&&'src'==_0x27067d['key']?_0x27067d['newValue']&&_0x27067d['oldValue']?{'type':'format','content':o(_0x34c55a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2c7594=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c7594['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2c7594['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c7594['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2c7594['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x82a6b3=this['editor'],_0x48b54b=_0x82a6b3['locale'];_0x82a6b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4841ef=>{if('formatBlock'!=_0x4841ef['type']&&'formatInline'!=_0x4841ef['type'])return;const {data:_0x12ce22}=_0x4841ef;if(!_0x12ce22||'replaceImageSource'!=_0x12ce22['commandName'])return;return{'type':'format','content':o(_0x48b54b,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x55f69e{['afterInit'](){const _0x2f910d=this['editor'];if(!_0x2f910d['plugins']['has']('ImageStyleEditing'))return;const _0x2eeb59=_0x2f910d['plugins']['get']('TrackChangesEditing'),_0x4ff60f=_0x2f910d['plugins']['get']('ImageUtils'),_0x1af0b1={};_0x2eeb59['enableCommand']('imageStyle',(_0x129dfa,_0x49630c)=>{const _0x2e20be=_0x2f910d['plugins']['get']('Users')['me'],_0x43fbe0=_0x2f910d['commands']['get']('imageStyle');let _0x14c422=_0x4ff60f['getClosestSelectedImageElement'](_0x2f910d['model']['document']['selection']),_0x366cb3=_0x2f910d['model']['createRangeOn'](_0x14c422),_0x481899=_0x43fbe0['value'];if(_0x481899==_0x49630c['value'])return;const _0x560f23={'commandName':'imageStyle','commandParams':[_0x49630c],'formatGroupId':_0x55f5c8()};_0x2f910d['model']['change'](()=>{if(_0x2eeb59['getSuggestions']()['filter'](_0xf01e40=>_0xf01e40['isInContent']&&_0x2e20be==_0xf01e40['author']&&('formatBlock'==_0xf01e40['type']||'formatInline'==_0xf01e40['type'])&&('imageStylePreApply'==_0xf01e40['subType']||'imageStylePostApply'==_0xf01e40['subType'])&&_0xf01e40['getFirstRange']()['isEqual'](_0x366cb3))['forEach'](_0x215337=>_0x2eeb59['discardSuggestion'](_0x215337['head'])),_0x14c422=_0x4ff60f['getClosestSelectedImageElement'](_0x2f910d['model']['document']['selection']),_0x366cb3=_0x2f910d['model']['createRangeOn'](_0x14c422),_0x43fbe0['refresh'](),_0x2f910d['commands']['get']('imageTypeInline')['refresh'](),_0x2f910d['commands']['get']('imageTypeBlock')['refresh'](),_0x481899=_0x43fbe0['value'],_0x481899!=_0x49630c['value'])return _0x4ff60f['isInlineImage'](_0x14c422)&&_0x43fbe0['shouldConvertImageType'](_0x49630c['value'],_0x14c422)?(_0x129dfa({..._0x49630c,'setImageSizes':!0x1}),_0x14c422=_0x4ff60f['getClosestSelectedImageElement'](_0x2f910d['model']['document']['selection']),void _0x2eeb59['markBlockFormat'](_0x14c422,{..._0x560f23,'commandReversedParams':[{'value':_0x481899||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ff60f['isBlockImage'](_0x14c422)?_0x2eeb59['markBlockFormat'](_0x14c422,_0x560f23,[],'imageStylePostApply'):_0x2eeb59['markInlineFormat'](_0x366cb3,_0x560f23,'imageStylePostApply'));});});for(const _0x11288d of _0x2f910d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1af0b1[_0x11288d['name']]=_0x11288d['title']['toLowerCase']();_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5502a9])=>{_0x4ff60f['setImageNaturalSizeAttributes'](_0x5502a9['getContainedElement']());}),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x106b17,_0x9e63ee)=>{_0x2eeb59['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x106b17,{'commandName':_0x9e63ee['commandName'],'commandParams':_0x9e63ee['commandReversedParams']});}),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x276191,_0x3473ee){if(_0x314424(_0x276191,_0x3473ee))return[_0x276191,_0x3473ee];if(_0x314424(_0x3473ee,_0x276191))return[_0x3473ee,_0x276191];return null;});const _0x3edc5b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x314424(_0x49f8be,_0x547a7b){const _0x4548b5=_0x3edc5b['findIndex'](({type:_0x3dcaa0,subType:_0x17c8ba})=>_0x49f8be['type']==_0x3dcaa0&&_0x49f8be['subType']==_0x17c8ba),_0x80b834=_0x3edc5b['findIndex'](({type:_0x350a83,subType:_0x2d84ce})=>_0x547a7b['type']==_0x350a83&&_0x547a7b['subType']==_0x2d84ce);if(_0x4548b5<0x0||_0x80b834<0x0)return!0x1;const _0x3ed690=_0x49f8be['getFirstRange'](),_0x1f36c9=_0x547a7b['getFirstRange']();if((0x0==_0x4548b5||0x1==_0x4548b5)&&0x2==_0x80b834&&_0x3ed690['isIntersecting'](_0x1f36c9))return!0x0;if(0x2==_0x4548b5&&0x3==_0x80b834){const _0x5733dd=_0x2eeb59['_findSuggestions'](_0x3ed690,'insertion')['filter'](({suggestion:_0x3903ad,meta:_0x1ca51d})=>_0x1ca51d['isOwn']&&'convertInlineImageToBlock'==_0x3903ad['subType']);if(_0x5733dd['length']>0x1&&_0x1f36c9['end']['isEqual'](_0x3ed690['start']))return!0x0;if(0x1==_0x5733dd['length']&&(_0x3ed690['start']['isEqual'](_0x1f36c9['end'])||_0x3ed690['end']['isEqual'](_0x1f36c9['start'])))return!0x0;}if(0x3==_0x4548b5&&0x3==_0x80b834&&_0x3ed690['start']['isBefore'](_0x1f36c9['start'])){const _0x5b8271=_0x3ed690['end']['nodeAfter'],_0x4141aa=_0x1f36c9['start']['nodeBefore'];return _0x4ff60f['isBlockImage'](_0x5b8271)&&_0x5b8271===_0x4141aa;}return!0x1;}_0x2f910d['model']['document']['registerPostFixer'](()=>{let _0x553d36=!0x1;const _0x5b0599=Array['from'](_0x2f910d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50a8f0,data:_0x265a11}of _0x5b0599){const {group:_0x56b599,type:_0x13e1e5,subType:_0x1b822b,id:_0x298b4b}=_0x2eeb59['_splitMarkerName'](_0x50a8f0);if('suggestion'==_0x56b599&&_0x2eeb59['hasSuggestion'](_0x298b4b)){if('formatBlock'==_0x13e1e5&&('imageStylePreApply'==_0x1b822b||'imageStylePostApply'==_0x1b822b)){const _0x39fa76=_0x2eeb59['getSuggestion'](_0x298b4b);if(_0x265a11['newRange']){const _0x3a703a=_0x39fa76['getFirstRange']()['getContainedElement']();if(_0x4ff60f['isBlockImage'](_0x3a703a))continue;_0x2eeb59['discardSuggestion'](_0x39fa76),_0x553d36=!0x0;}}if('insertion'==_0x13e1e5&&'imageCaption'==_0x1b822b&&!_0x265a11['newRange']){const _0x485efe=_0x2eeb59['getSuggestion'](_0x298b4b);_0x485efe['next']&&_0x485efe['next']['isInContent']&&(_0x2eeb59['discardSuggestion'](_0x485efe['next']),_0x553d36=!0x0);}}}return _0x553d36;}),this['_registerLegacyDescription'](_0x1af0b1);}['_registerLegacyDescription'](_0x5be0d2){const _0x4eb0bd=this['editor'],_0x5d1816=_0x4eb0bd['locale'];_0x4eb0bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158e71=>{if('formatBlock'!=_0x158e71['type']&&'formatInline'!=_0x158e71['type'])return;const {data:_0x34c214}=_0x158e71;if(!_0x34c214||'imageStyle'!=_0x34c214['commandName'])return;const _0x281331=_0x34c214['commandParams'][0x0]['value'];return _0x25d006('side'===_0x281331?o(_0x5d1816,'FORMAT_SIDE_IMAGE'):_0x5be0d2[_0x281331]||_0x281331);function _0x25d006(_0x179f58){return{'type':'format','content':o(_0x5d1816,'*Format:*\x20%0',_0x179f58)};}});}}class at extends _0x55f69e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x46961f){super(_0x46961f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x568d26=this['editor'],_0xd84261=_0x568d26['commands']['get']('importWord'),_0x223bb1=_0x568d26['commands']['get']('trackChanges');_0xd84261&&(_0xd84261['on']('execute',(_0x5eb707,[,_0x5e9d6d])=>{this['_trackChangesValueDuringImport']=_0x223bb1['value'],_0x5e9d6d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd84261,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd84261,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x223bb1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x568d26['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x330e8f,_0x52477e){const {suggestions:_0x1ff8d2}=_0x52477e,_0x369e73=this['editor']['commands']['get']('trackChanges'),_0x12390a=_0x369e73['value'];this['_trackChangesValueDuringImport']!==_0x12390a&&(_0x369e73['execute'](),this['_trackChangesExecuted']=!0x0),_0x1ff8d2&&_0x1ff8d2['forEach'](({id:_0x4b8f4d,type:_0x3cbbff,author:_0x1a2857,created_at:_0xa45d1b})=>{const _0x1e83e5={'id':_0x4b8f4d,'type':_0x3cbbff,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a2857,'createdAt':_0xa45d1b?new Date(_0xa45d1b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1e83e5);});}}class ct extends _0x55f69e{['afterInit'](){const _0x247e60=this['editor'],_0xe7e9f0=_0x247e60['plugins']['get']('TrackChangesEditing');if(_0x247e60['plugins']['has']('IndentEditing')&&(_0xe7e9f0['enableCommand']('indent'),_0xe7e9f0['enableCommand']('outdent')),_0x247e60['plugins']['has']('IndentBlock')){for(const _0x55d461 of['indentBlock','outdentBlock'])_0xe7e9f0['enableDefaultAttributesIntegration'](_0x55d461);}const _0x41e3a2=_0x247e60['locale'];_0xe7e9f0['registerBlockAttribute']('blockIndent'),_0xe7e9f0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x41e3a2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ab7b=this['editor'],_0x117329=_0x28ab7b['locale'],_0x3fb882=_0x28ab7b['plugins']['get']('TrackChangesEditing');_0x3fb882['descriptionFactory']['registerDescriptionCallback'](_0x4b47dd=>{if('formatBlock'!=_0x4b47dd['type'])return;const {data:_0xc232f0}=_0x4b47dd;if(!_0xc232f0)return;if('indentBlock'!=_0xc232f0['commandName']&&'outdentBlock'!=_0xc232f0['commandName'])return;const _0xd7e67=_0x4b47dd['getItems']()[0x0],_0x3f142f=_0x3fb882['descriptionFactory']['getItemLabel'](_0xd7e67);return'indentBlock'==_0xc232f0['commandName']?{'type':'format','content':o(_0x117329,'*Indent:*\x20%0',_0x3f142f)}:'outdentBlock'==_0xc232f0['commandName']?{'type':'format','content':o(_0x117329,'*Outdent:*\x20%0',_0x3f142f)}:void 0x0;});}}class ut extends _0x55f69e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x55f69e{['afterInit'](){const _0x14e443=this['editor'];if(!_0x14e443['plugins']['has']('LinkEditing'))return;const _0x3babc2=_0x14e443['plugins']['get']('TrackChangesEditing'),_0xf3944f=_0x14e443['commands']['get']('link');_0x3babc2['enableDefaultAttributesIntegration']('link'),_0x3babc2['enableDefaultAttributesIntegration']('unlink'),_0x3babc2['registerInlineAttribute']('linkHref');for(const _0x142438 of _0xf3944f['manualDecorators'])_0x3babc2['registerInlineAttribute'](_0x142438['id']),_0x3babc2['descriptionFactory']['registerAttributeLabel'](_0x142438['id'],'link\x20('+_0x142438['label']['toLowerCase']()+')');_0x3babc2['descriptionFactory']['registerDescriptionCallback'](_0x2c1f66=>{if('attribute'!=_0x2c1f66['type'])return;const {data:_0x228e87}=_0x2c1f66;if(!_0x228e87||'linkHref'!=_0x228e87['key'])return;const _0xf32ca8=_0x228e87['newValue'],_0x494436=_0x14e443['locale'];return{'type':'format','content':null==_0xf32ca8?o(_0x494436,'*Remove\x20link*'):o(_0x494436,'*Set\x20link:*\x20%0','\x22'+_0xf32ca8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x267a92=this['editor'],_0x4348ae=_0x267a92['locale'];_0x267a92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50368f=>{if('formatInline'!=_0x50368f['type'])return;const {data:_0x5260e2}=_0x50368f;if(_0x5260e2){if('link'==_0x5260e2['commandName']){const _0x333844=_0x5260e2['commandParams'][0x0];return{'type':'format','content':o(_0x4348ae,'*Set\x20link:*\x20%0','\x22'+_0x333844+'\x22')};}return'unlink'==_0x5260e2['commandName']?{'type':'format','content':o(_0x4348ae,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x55f69e{['afterInit'](){const _0x267830=this['editor'],_0x53307a=_0x267830['locale'];if(!_0x267830['plugins']['has']('LegacyListEditing'))return;const _0x725e5b=_0x267830['plugins']['get']('TrackChangesEditing'),_0x59e0c3=_0x267830['plugins']['has']('LegacyTodoListEditing');function _0x24fa42(_0x1bf81c){return()=>{const _0x15202b=_0x267830['model']['document']['selection'],_0x59c669=_0x267830['commands']['get'](_0x1bf81c);if(_0x59c669['value'])return void _0x267830['execute']('paragraph',{});const _0xbbcb3b=_0x1bf81c['slice'](0x0,-0x4),_0x28cd9d=function(_0x5ba307,_0x5762d8,_0x1a8eb8){let _0x52f0a6=Array['from'](_0x5ba307)['filter'](_0x3c67d9=>function(_0x321b12,_0x2cf62f){return _0x2cf62f['checkChild'](_0x321b12['parent'],'listItem')&&!_0x2cf62f['isObject'](_0x321b12);}(_0x3c67d9,_0x1a8eb8));_0x52f0a6=_0x52f0a6['filter'](_0x429c01=>!_0x429c01['is']('element','listItem')||_0x429c01['getAttribute']('listType')!=_0x5762d8);const _0x359256=new Set();for(const _0x2fbd71 of _0x52f0a6)_0x2fbd71['is']('element','listItem')?_0x359256['add'](fe(_0x2fbd71)):_0x359256['add'](_0x2fbd71);return Array['from'](_0x359256);}(_0x15202b['getSelectedBlocks'](),_0xbbcb3b,_0x267830['model']['schema']);_0x267830['model']['change'](()=>{for(const _0x4af0bd of _0x28cd9d)_0x725e5b['markBlockFormat'](_0x4af0bd,{'commandName':_0x1bf81c,'commandParams':[{'forceValue':!_0x59c669['value']}],'formatGroupId':'blockName'},ue(_0x4af0bd));});};}function _0x27a33c(_0x17b93f){return()=>{const _0x909fb0=function(_0xf7cc69){let _0x3e9d35=Array['from'](_0xf7cc69);const _0x199513=_0x3e9d35['findIndex'](_0x31e7b9=>'listItem'!=_0x31e7b9['name']);return _0x199513>-0x1&&(_0x3e9d35=_0x3e9d35['slice'](0x0,_0x199513)),_0x3e9d35;}(_0x267830['model']['document']['selection']['getSelectedBlocks']()),_0x5a2ea4=_0x267830['model']['createRange'](_0x267830['model']['createPositionAt'](_0x909fb0[0x0],'before'),_0x267830['model']['createPositionAt'](_0x909fb0[_0x909fb0['length']-0x1],'end'));_0x267830['model']['change'](()=>{_0x725e5b['markBlockFormat'](_0x5a2ea4,{'commandName':_0x17b93f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x906fd0){const _0xc7d35b=new Set();for(const _0x5b7317 of _0x906fd0){let _0x207518=_0x5b7317['nextSibling'];for(;_0x207518&&_0x207518['getAttribute']('listIndent')>_0x5b7317['getAttribute']('listIndent');)_0xc7d35b['add'](_0x207518),_0x207518=_0x207518['nextSibling'];}return Array['from'](_0xc7d35b);}(_0x909fb0));});};}_0x725e5b['enableCommand']('numberedList',_0x24fa42('numberedList')),_0x725e5b['enableCommand']('bulletedList',_0x24fa42('bulletedList')),_0x59e0c3&&_0x725e5b['enableCommand']('todoList',_0x24fa42('todoList')),_0x725e5b['enableCommand']('indentList',_0x27a33c('indentList')),_0x725e5b['enableCommand']('outdentList',_0x27a33c('outdentList')),_0x59e0c3&&_0x725e5b['enableCommand']('checkTodoList',()=>{const _0x2d6ae1=_0x267830['commands']['get']('checkTodoList'),_0x47c068=Array['from'](_0x2d6ae1['_selectedElements']);_0x47c068['filter'](_0x256784=>_0x256784['getAttribute']('todoListChecked')!=_0x2d6ae1['value']),_0x267830['model']['change'](()=>{for(const _0x5877a5 of _0x47c068)_0x725e5b['markBlockFormat'](_0x5877a5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d6ae1['value']}]});});}),_0x725e5b['descriptionFactory']['registerElementLabel']('listItem',_0x846f52=>o(_0x53307a,'ELEMENT_LIST_ITEM',_0x846f52)),_0x725e5b['descriptionFactory']['registerDescriptionCallback'](_0x1a2f0d=>{if('formatBlock'!=_0x1a2f0d['type']&&'formatInline'!=_0x1a2f0d['type'])return;const {data:_0x4bd05d}=_0x1a2f0d;if(_0x4bd05d){if('numberedList'==_0x4bd05d['commandName']||'bulletedList'==_0x4bd05d['commandName']||'todoList'==_0x4bd05d['commandName'])switch(_0x4bd05d['commandName']['replace']('List','')){case'bulleted':return _0x8cd4cc(o(_0x53307a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8cd4cc(o(_0x53307a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8cd4cc(o(_0x53307a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4bd05d['commandName'])return{'type':'format','content':o(_0x53307a,'*Indent:*\x20%0',o(_0x53307a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4bd05d['commandName'])return{'type':'format','content':o(_0x53307a,'*Outdent:*\x20%0',o(_0x53307a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4bd05d['commandName'])return _0x4bd05d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53307a,'*Check\x20item*')}:{'type':'format','content':o(_0x53307a,'*Uncheck\x20item*')};}function _0x8cd4cc(_0x5097e5){return{'type':'format','content':o(_0x53307a,'*Change\x20to:*\x20%0',_0x5097e5)};}});}}function fe(_0x5e03ec){const _0x5b1499=_0x5e03ec['getAttribute']('listIndent');if(0x0==_0x5b1499)return _0x5e03ec;let _0x4d4391=_0x5e03ec;for(;_0x5e03ec['previousSibling']&&_0x5e03ec['previousSibling']['is']('element','listItem');){const _0x2b3f2f=_0x5e03ec['previousSibling']['getAttribute']('listIndent');if(_0x2b3f2f==_0x5b1499)_0x4d4391=_0x5e03ec['previousSibling'];else{if(_0x2b3f2f<_0x5b1499)break;}_0x5e03ec=_0x5e03ec['previousSibling'];}return _0x4d4391;}function ue(_0x15ee4a){const _0x362b29=[];if(_0x15ee4a['is']('element','listItem')&&_0x15ee4a['getAttribute']('listIndent')>0x0){let _0x4c55b7=_0x15ee4a['nextSibling'];for(;_0x4c55b7&&'listItem'==_0x4c55b7['name']&&_0x4c55b7['getAttribute']('listIndent')==_0x15ee4a['getAttribute']('listIndent');)_0x362b29['push'](_0x4c55b7),_0x4c55b7=_0x4c55b7['nextSibling'];}return _0x362b29;}class W extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x938a46=this['editor']['config']['get']('list.properties'),_0x2db39a=this['editor']['plugins']['get']('TrackChangesEditing');_0x938a46['styles']&&_0x2db39a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x938a46['reversed']&&_0x2db39a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x938a46['startIndex']&&_0x2db39a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2db39a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4eab38,_0x54bae3={}){const _0x4f1a4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cd697=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4f1a4e['markMultiRangeBlockFormat'](_0x1cd697,{'commandName':'listStyle','commandParams':[{'type':_0x54bae3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x209e51,_0x58b0ef={}){const _0x6a960b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28cfca=this['_getSuggestionBlocks'](_0x378fe8=>_0x378fe8['is']('element','listItem')&&'numbered'===_0x378fe8['getAttribute']('listType'));if(_0x28cfca['length']<0x1)return;const _0x4139ad=_0x28cfca['map'](_0x405db5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x405db5,'before'),this['editor']['model']['createPositionAt'](_0x405db5,0x0)));this['editor']['model']['change'](()=>{_0x6a960b['markMultiRangeBlockFormat'](_0x4139ad,{'commandName':'listReversed','commandParams':[{'reversed':_0x58b0ef['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x391d30,_0x5b2410={}){const _0x4c7e41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x848cb0=this['_getSuggestionBlocks'](_0x2fddf3=>_0x2fddf3['is']('element','listItem')&&'numbered'===_0x2fddf3['getAttribute']('listType'));if(_0x848cb0['length']<0x1)return;const _0x293e55=_0x848cb0['map'](_0x44cd37=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44cd37,'before'),this['editor']['model']['createPositionAt'](_0x44cd37,0x0)));this['editor']['model']['change'](()=>{_0x4c7e41['markMultiRangeBlockFormat'](_0x293e55,{'commandName':'listStart','commandParams':[{'startIndex':_0x5b2410['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5efe31){if('formatBlock'!=_0x5efe31['type']&&'formatInline'!=_0x5efe31['type'])return;const _0x1a133e=this['editor']['locale'],{data:_0x467903}=_0x5efe31;if(!_0x467903)return;let _0x21b8a2,_0x2e84f9;switch(_0x467903['commandName']){case'listStyle':_0x21b8a2='*Change\x20to:*\x20%0',_0x2e84f9={'type':'format','content':o(_0x1a133e,_0x21b8a2,o(_0x1a133e,this['_getTranslationKeyForListStyle'](_0x467903['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21b8a2=_0x467903['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e84f9={'type':'format','content':o(_0x1a133e,_0x21b8a2)};break;case'listStart':_0x21b8a2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e84f9={'type':'format','content':o(_0x1a133e,_0x21b8a2,_0x467903['commandParams'][0x0]['startIndex'])};}return _0x2e84f9;}['_getSuggestionBlocksForListStyle'](){const _0x3df2eb=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ac7f2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3ac7f2[0x0]?.['is']('element','listItem')&&_0x3ac7f2['unshift'](..._0x3df2eb['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3ac7f2[_0x3ac7f2['length']-0x1]?.['is']('element','listItem')&&_0x3ac7f2['push'](..._0x3df2eb['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3ac7f2=[...new Set(_0x3ac7f2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3ac7f2=_0x3ac7f2['filter'](_0x1a634e=>_0x1a634e['is']('element','listItem'))),_0x3ac7f2;}['_getSuggestionBlocks'](_0x1bb4d0){const _0x5bb953=this['editor']['plugins']['get']('LegacyListUtils');let _0x46f257=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1bb4d0)['map'](_0x2b0686=>{const _0x105d62=this['editor']['model']['createPositionAt'](_0x2b0686,0x0);return[..._0x5bb953['getSiblingNodes'](_0x105d62,'backward'),..._0x5bb953['getSiblingNodes'](_0x105d62,'forward')];})['flat']();return _0x46f257=[...new Set(_0x46f257)],_0x46f257;}['_getTranslationKeyForListStyle'](_0x24ac73){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24ac73)||'default')['toUpperCase']()+'_LIST_'+_0x24ac73['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x55f69e{['afterInit'](){const _0x1f0044=this['editor'];if(!_0x1f0044['plugins']['has']('MediaEmbedEditing'))return;const _0x4bfa1e=_0x1f0044['plugins']['get']('TrackChangesEditing'),_0x44e07e=_0x1f0044['locale'];_0x4bfa1e['enableCommand']('mediaEmbed'),_0x4bfa1e['descriptionFactory']['registerElementLabel']('media',_0x502aa4=>o(_0x44e07e,'ELEMENT_MEDIA',_0x502aa4)),_0x1f0044['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x267bad,{writer:_0xd129a6,options:_0x3275a7})=>{if(_0x3275a7['showSuggestionHighlights'])return _0xd129a6['createEmptyElement']('div');},'converterPriority':'high'}),_0x1f0044['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3c2f10,_0x3cf74d,_0x17285d)=>{_0x17285d['options']['showSuggestionHighlights']&&_0x3c2f10['stop']();},{'priority':'high'});}}class mt extends _0x55f69e{['afterInit'](){const _0x4c2394=this['editor'];_0x4c2394['plugins']['has']('MentionEditing')&&_0x4c2394['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x55f69e{['afterInit'](){const _0x13c038=this['editor'];if(!_0x13c038['plugins']['has']('MergeFieldsEditing'))return;_0x13c038['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x13c038['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1562f6=_0x13c038['plugins']['get']('TrackChangesEditing'),_0x2ed187=_0x13c038['locale'];_0x1562f6['descriptionFactory']['registerElementLabel']('mergeField',_0x1320a3=>o(_0x2ed187,'ELEMENT_MERGE_FIELD',_0x1320a3)),_0x1562f6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x315d82=>o(_0x2ed187,'ELEMENT_MERGE_FIELD',_0x315d82)),_0x1562f6['descriptionFactory']['registerDescriptionCallback'](_0x4b28d6=>{if('insertion'!=_0x4b28d6['type']&&'deletion'!=_0x4b28d6['type'])return;const _0x28d558=_0x4b28d6['getContainedElement']();if(null==_0x28d558)return;if(!_0x28d558['is']('element','mergeField')&&!_0x28d558['is']('element','mergeFieldBlock'))return;const _0x321bdd=_0x13c038['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x28d558['getAttribute']('id'));return'insertion'==_0x4b28d6['type']?{'type':'insertion','content':o(_0x2ed187,'*Insert:*\x20%0','\x22'+_0x321bdd+'\x22\x20'+o(_0x2ed187,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2ed187,'*Remove:*\x20%0','\x22'+_0x321bdd+'\x22\x20'+o(_0x2ed187,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x55f69e{['afterInit'](){const _0x2eade3=this['editor'],_0x2110ec=_0x2eade3['plugins']['get']('TrackChangesEditing');_0x2eade3['plugins']['has']('MultiLevelList')&&(_0x2110ec['enableDefaultAttributesIntegration']('multiLevelList'),_0x2110ec['registerBlockAttribute']('listMarkerStyle'),_0x2110ec['descriptionFactory']['registerDescriptionCallback'](_0x46a87a=>this['handleDescriptions'](_0x46a87a)));}['handleDescriptions'](_0x5eb122){const _0x3a8526=this['editor']['locale'],{data:_0x3a02c4}=_0x5eb122,_0x10b61a={'type':'format','content':''};if(_0x3a02c4&&'listMarkerStyle'==_0x3a02c4['key']){if(!_0x3a02c4['oldValue'])return{'type':'format','content':o(_0x3a8526,'*Set\x20format:*\x20%0',o(_0x3a8526,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a02c4['newValue']+')'};if(!_0x3a02c4['newValue']){let _0x49b01c=_0x5eb122['head'];for(;_0x49b01c;){if(_0x49b01c['data']&&'listType'==_0x49b01c['data']['key']&&_0x49b01c['data']['newValue'])return _0x10b61a;_0x49b01c=_0x49b01c['next'];}return{'type':'format','content':o(_0x3a8526,'*Remove\x20format:*\x20%0',o(_0x3a8526,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a02c4['oldValue']+')'};}}}}class kt extends _0x55f69e{['afterInit'](){const _0x3ede09=this['editor'];if(!_0x3ede09['plugins']['has']('PageBreakEditing'))return;_0x3ede09['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x40edd5=_0x3ede09['plugins']['get']('TrackChangesEditing'),_0x4549b2=_0x3ede09['locale'];_0x40edd5['descriptionFactory']['registerElementLabel']('pageBreak',_0x3bbf85=>o(_0x4549b2,'ELEMENT_PAGE_BREAK',_0x3bbf85));}}class bt extends _0x55f69e{['afterInit'](){const _0x54ba78=this['editor'];if(!_0x54ba78['plugins']['has']('Paragraph'))return;const _0x58c746=_0x54ba78['locale'],_0x40b91c=_0x54ba78['plugins']['get']('TrackChangesEditing');_0x40b91c['descriptionFactory']['registerElementLabel']('paragraph',_0x48c130=>o(_0x58c746,'ELEMENT_PARAGRAPH',_0x48c130)),_0x40b91c['enableDefaultAttributesIntegration']('paragraph'),_0x40b91c['enableCommand']('insertParagraph'),_0x54ba78['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x54ba78),{'priority':'highest'}),_0x54ba78['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ea22,_0x351883,_0x2f1dc6)=>{_0x2f1dc6['options']['showSuggestionHighlights']&&nr(_0x54ba78,{'showActiveMarker':!0x1})(_0x5ea22,_0x351883,_0x2f1dc6);},{'priority':'highest'});const _0x5f428d=_0x40b91c['descriptionFactory'];_0x5f428d['registerDescriptionCallback'](_0x2127cb=>{if('insertion'!==_0x2127cb['type'])return;const {start:_0x234009,end:_0xd1cc5e}=_0x2127cb['getFirstRange']();if(!_0x234009['isTouching'](_0xd1cc5e)||!_0x234009['nodeAfter'])return;const _0x36c81d=_0x54ba78['model']['schema'],_0x23dd1f=_0x234009['nodeAfter'];return _0x36c81d['isBlock'](_0x23dd1f)&&!_0x36c81d['isLimit'](_0x23dd1f)&&_0x36c81d['checkChild'](_0x23dd1f,'$text')?{'type':'insertion','content':o(_0x58c746,'*Insert:*\x20%0',_0x5f428d['getItemLabel'](_0x23dd1f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5222d4=this['editor'],_0x34f6e9=_0x5222d4['locale'];_0x5222d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295e72=>{if('formatBlock'!=_0x295e72['type'])return;const {data:_0x13f8c2}=_0x295e72;return _0x13f8c2&&'paragraph'==_0x13f8c2['commandName']?{'type':'format','content':o(_0x34f6e9,'*Change\x20to:*\x20%0',o(_0x34f6e9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x49858b,{showActiveMarker:_0x37b3bb=!0x0}={}){return(_0x3e0263,_0x546405,_0x538c99)=>{const _0x5261d4=_0x49858b['plugins']['get']('TrackChangesEditing'),_0x2f912f=_0x546405['markerRange']['start'],_0x57255e=_0x546405['markerRange']['end'],_0x2f2d43=_0x49858b['model']['schema'];if(!_0x2f912f['isTouching'](_0x57255e)||!_0x2f912f['nodeAfter'])return;const _0x38935c=_0x2f912f['nodeAfter'];if(_0x2f2d43['isBlock'](_0x38935c)&&!_0x2f2d43['isLimit'](_0x38935c)&&_0x2f2d43['checkChild'](_0x38935c,'$text')){if(!_0x538c99['consumable']['consume'](_0x546405['markerRange'],_0x3e0263['name']))return;const {authorId:_0x3dd6f1}=_0x5261d4['_splitMarkerName'](_0x546405['markerName']),_0x4605b6=_0x538c99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3dd6f1}),_0x584cda=_0x538c99['mapper']['toViewPosition'](_0x57255e);_0x37b3bb&&_0x5261d4['activeMarkers']['includes'](_0x546405['markerName'])&&_0x538c99['writer']['addClass']('ck-suggestion-marker--active',_0x4605b6),_0x538c99['writer']['insert'](_0x584cda,_0x4605b6),_0x538c99['mapper']['bindElementToMarker'](_0x4605b6,_0x546405['markerName']);}};}class wt extends _0x55f69e{['afterInit'](){const _0x5b179c=this['editor'];if(!_0x5b179c['plugins']['has']('RemoveFormatEditing'))return;_0x5b179c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b00c1=this['editor'];_0x4b00c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ac41c=>{if('formatBlock'!=_0x3ac41c['type']&&'formatInline'!=_0x3ac41c['type'])return;const {data:_0x565de1}=_0x3ac41c;return _0x565de1&&'removeFormat'==_0x565de1['commandName']?{'type':'format','content':o(_0x4b00c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x55f69e{['afterInit'](){const _0x6e2bf7=this['editor'];if(!_0x6e2bf7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x30efac=_0x6e2bf7['plugins']['get']('TrackChangesEditing');_0x30efac['enableCommand']('goToPreviousRestrictedEditingException'),_0x30efac['enableCommand']('goToNextRestrictedEditingException');const _0x45a502=_0x6e2bf7['plugins']['get']('RestrictedEditingModeEditing');_0x45a502['enableCommand']('trackChanges'),_0x45a502['enableCommand']('acceptSuggestion'),_0x45a502['enableCommand']('discardSuggestion'),_0x45a502['enableCommand']('acceptAllSuggestions'),_0x45a502['enableCommand']('discardAllSuggestions'),_0x45a502['enableCommand']('acceptSelectedSuggestions'),_0x45a502['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x55f69e{static get['requires'](){return[_0x3fff9f];}['init'](){const _0x202e5b=this['editor'],_0x25ded0=_0x202e5b['plugins']['get']('TrackChangesEditing');_0x25ded0['enableCommand']('shiftEnter'),_0x202e5b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x202e5b),{'priority':'high'}),_0x202e5b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x202e5b),{'priority':'high'}),_0x202e5b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9edc6,_0x50e1cb,_0x2e9427)=>{_0x2e9427['options']['showSuggestionHighlights']&&ge(_0x202e5b,{'showActiveMarker':!0x1})(_0x9edc6,_0x50e1cb,_0x2e9427);}),_0x25ded0['descriptionFactory']['registerElementLabel']('softBreak',_0x97cc06=>o(_0x202e5b['locale'],'ELEMENT_LINE_BREAK',_0x97cc06));}}function ge(_0x4ca2fd,{showActiveMarker:_0x249441=!0x0}={}){return(_0x375255,_0x1a966d,_0x9f7b61)=>{const _0x122bf3=_0x4ca2fd['plugins']['get']('TrackChangesEditing');if(!_0x9f7b61['consumable']['test'](_0x1a966d['markerRange'],_0x375255['name']))return;const _0x18acae=_0x4ca2fd['model'];for(const _0x573574 of _0x1a966d['markerRange']['getItems']()){if(!_0x573574['is']('element','softBreak'))continue;const _0x4cd3f7='deletion'==_0x1a966d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4f0642}=_0x122bf3['_splitMarkerName'](_0x1a966d['markerName']),_0x38ba69=_0x9f7b61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4cd3f7,'data-author-id':_0x4f0642}),_0x36b90e=_0x9f7b61['mapper']['toViewPosition'](_0x18acae['createPositionBefore'](_0x573574));_0x249441&&_0x122bf3['activeMarkers']['includes'](_0x1a966d['markerName'])&&_0x9f7b61['writer']['addClass']('ck-suggestion-marker--active',_0x38ba69),_0x9f7b61['writer']['insert'](_0x36b90e,_0x38ba69),_0x9f7b61['mapper']['bindElementToMarker'](_0x38ba69,_0x1a966d['markerName']);}};}class St extends _0x55f69e{['afterInit'](){const _0x44d8a2=this['editor'],_0x1f440c=_0x44d8a2['model'],_0x34ed36=_0x44d8a2['locale'];if(!_0x44d8a2['plugins']['has']('StandardEditingModeEditing'))return;const _0x262411=_0x44d8a2['plugins']['get']('TrackChangesEditing'),_0x4fab05='restrictedEditingException',_0x1b3539=_0x44d8a2['commands']['get'](_0x4fab05);_0x262411['enableCommand'](_0x4fab05,(_0x16e075,_0x2ae3e4={})=>{const _0x4a5e01=_0x1f440c['document']['selection'];if(_0x4a5e01['isCollapsed'])return void _0x16e075(_0x2ae3e4);const _0x44486c=void 0x0!==_0x2ae3e4['forceValue']?_0x2ae3e4['forceValue']:!_0x1b3539['value'];_0x1f440c['change'](()=>{const _0x2f34a0=Array['from'](_0x4a5e01['getRanges']());for(const _0x4edb11 of _0x2f34a0){const _0x40b965=_0x44486c?[_0x4edb11]:io(_0x4fab05,_0x4edb11,_0x1f440c);for(const _0x5254b0 of _0x40b965)_0x262411['markInlineFormat'](_0x5254b0,{'commandName':_0x4fab05,'commandParams':[{'forceValue':_0x44486c}]});}});}),_0x262411['descriptionFactory']['registerDescriptionCallback'](_0x4b49f9=>{if('formatBlock'!=_0x4b49f9['type']&&'formatInline'!=_0x4b49f9['type'])return;const {data:_0x1f2f53}=_0x4b49f9;return _0x1f2f53&&_0x1f2f53['commandName']==_0x4fab05?_0x1f2f53['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34ed36,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x34ed36,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x55f69e{['afterInit'](){const _0x50d320=this['editor'];if(!_0x50d320['plugins']['has']('Style')||!_0x50d320['plugins']['has']('DataSchema'))return;const _0x4e6dd7=_0x50d320['plugins']['get']('TrackChangesEditing'),_0x5d5f4f=_0x50d320['locale'],_0x38fdae=_0x50d320['config']['get']('style')||{},_0x2676c8=_0x50d320['plugins']['get']('GeneralHtmlSupport'),_0x41fb78=_0x50d320['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50d320['plugins']['get']('DataSchema'),_0x38fdae['definitions']);_0x4e6dd7['enableDefaultAttributesIntegration']('style');const _0x24fd7d=new Set();for(const _0x4f217d of _0x41fb78['block']){const _0x4e67f4=_0x2676c8['getGhsAttributeNameForElement'](_0x4f217d['element']);_0x24fd7d['add'](_0x4e67f4);}const _0x3c25b3=new Set();for(const _0x40ac18 of _0x41fb78['inline']){const _0x46d3fb=_0x2676c8['getGhsAttributeNameForElement'](_0x40ac18['element']);_0x3c25b3['add'](_0x46d3fb);for(const _0x24f4eb of _0x40ac18['ghsAttributes'])_0x3c25b3['add'](_0x24f4eb);}for(const _0x3d3f73 of _0x24fd7d)_0x4e6dd7['registerBlockAttribute'](_0x3d3f73),_0x4e6dd7['descriptionFactory']['registerAttributeLabel'](_0x3d3f73,o(_0x5d5f4f,'FORMAT_STYLE'));for(const _0x482841 of _0x3c25b3)_0x4e6dd7['registerInlineAttribute'](_0x482841),_0x4e6dd7['descriptionFactory']['registerAttributeLabel'](_0x482841,o(_0x5d5f4f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x160873=this['editor'],_0x19e946=_0x160873['locale'];_0x160873['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46f68f=>{if('formatBlock'!=_0x46f68f['type']&&'formatInline'!=_0x46f68f['type'])return;const {data:_0x16dd41}=_0x46f68f;return _0x16dd41&&'style'===_0x16dd41['commandName']?_0x16dd41['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19e946,'*Set\x20format:*\x20%0',_0x16dd41['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x19e946,'*Remove\x20format:*\x20%0',_0x16dd41['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x55f69e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x478ea4){super(_0x478ea4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4fe35a=this['editor'],_0x1fbd5c=_0x4fe35a['model']['document']['selection'];if(!_0x4fe35a['plugins']['has']('TableEditing'))return;const _0x2dd60a=_0x4fe35a['locale'],_0xb69975=_0x4fe35a['plugins']['get']('TrackChangesEditing'),_0x2ce51e=_0x4fe35a['plugins']['get']('TableUtils');_0xb69975['descriptionFactory']['registerElementLabel']('table',_0x1ca8f7=>o(_0x2dd60a,'ELEMENT_TABLE',_0x1ca8f7)),this['_setupColumnsRowsFixing'](),_0xb69975['enableCommand']('insertTable'),_0xb69975['enableCommand']('selectTableRow'),_0xb69975['enableCommand']('selectTableColumn');for(const _0x4e02cf of['insertTableRowAbove','insertTableRowBelow']){const _0x325fa9=_0x4fe35a['commands']['get'](_0x4e02cf);_0xb69975['enableCommand'](_0x4e02cf,_0x55b6b0=>{_0x4fe35a['model']['change'](_0x40506b=>{_0x55b6b0();const _0x5070b8='above'===_0x325fa9['order'],_0x38a232=_0x2ce51e['getSelectionAffectedTableCells'](_0x1fbd5c),_0x13608e=_0x2ce51e['getRowIndexes'](_0x38a232),_0x200448=_0x5070b8?_0x13608e['first']-0x1:_0x13608e['last']+0x1,_0x52e791=_0x38a232[0x0]['findAncestor']('table'),_0x1ec8ad=_0x2ce51e['createTableWalker'](_0x52e791,{'startRow':_0x200448,'endRow':_0x200448}),_0x1cc51c=Array['from'](_0x1ec8ad)['map'](_0x36ed04=>_0x40506b['createRangeOn'](_0x36ed04['cell']));_0xb69975['markMultiRangeInsertion'](_0x1cc51c,'tableRow');});});}for(const _0x43d1eb of['insertTableColumnLeft','insertTableColumnRight']){const _0x14be76=_0x4fe35a['commands']['get'](_0x43d1eb);_0xb69975['enableCommand'](_0x43d1eb,_0x101ee7=>{_0x4fe35a['model']['change'](_0x137c52=>{_0x101ee7();const _0xe4fe74='left'===_0x14be76['order'],_0x192dfe=_0x2ce51e['getSelectionAffectedTableCells'](_0x1fbd5c),_0x27708e=_0x2ce51e['getColumnIndexes'](_0x192dfe),_0x53281f=_0xe4fe74?_0x27708e['first']-0x1:_0x27708e['last']+0x1,_0x5c1f0f=_0x192dfe[0x0]['findAncestor']('table'),_0xc3deb8=_0x2ce51e['createTableWalker'](_0x5c1f0f,{'startRow':0x0,'column':_0x53281f,'includeAllSlots':!0x1}),_0x5a1e99=Array['from'](_0xc3deb8)['map'](_0x3adffe=>_0x137c52['createRangeOn'](_0x3adffe['cell']));_0xb69975['markMultiRangeInsertion'](_0x5a1e99,'tableColumn');});});}for(const _0x5dd87a of['removeTableRow','removeTableColumn']){const _0x2ea53a=_0x5dd87a['substr'](0xb),_0x3ecd19=_0x2ea53a['toLowerCase'](),_0x49ad68=_0x3ecd19['substr'](0x0,0x3)+'span',_0x442733='table'+_0x2ea53a,_0x3e5316='min'+_0x2ea53a,_0x14a3d9='max'+_0x2ea53a;_0xb69975['enableCommand'](_0x5dd87a,()=>{_0x4fe35a['model']['change'](_0x31910b=>{const _0xe4826c=_0x2ce51e['getSelectionAffectedTableCells'](_0x1fbd5c),_0x103bdb=_0xe4826c[0x0]['findAncestor']('table');let _0x20f362;if('removeTableRow'==_0x5dd87a){const _0xc9d27=_0x2ce51e['getRowIndexes'](_0xe4826c);_0x20f362={'startRow':_0xc9d27['first'],'endRow':_0xc9d27['last'],'includeAllSlots':!0x0};}else{const _0x4f8a74=_0x2ce51e['getColumnIndexes'](_0xe4826c);_0x20f362={'startColumn':_0x4f8a74['first'],'endColumn':_0x4f8a74['last'],'includeAllSlots':!0x0};}const _0x565f78=_0x2ce51e['createTableWalker'](_0x103bdb,_0x20f362),_0x72ca3a=Array['from'](_0x565f78)['map'](({cell:_0x137ad6})=>_0x137ad6),_0x28bc7b=be(_0x72ca3a['filter'](_0x272288=>_0x272288['hasAttribute'](_0x49ad68))),_0x1d2774=be(_0x72ca3a['filter'](_0x555885=>!_0x555885['hasAttribute'](_0x49ad68)))['map'](_0x3c0b04=>_0x31910b['createRangeOn'](_0x3c0b04)),_0xf52ed6=_0xb69975['markMultiRangeDeletion'](_0x1d2774,_0x442733);if(_0xf52ed6&&('tableRow'==_0xf52ed6['subType']||'tableColumn'==_0xf52ed6['subType'])){const _0x58a83a=this['_getSuggestionCoords'](_0xf52ed6);for(const _0x3d6bc4 of _0x28bc7b){const _0x5d4050=_0x31910b['createRangeOn'](_0x3d6bc4),_0x33aa81=_0x2ce51e['getCellLocation'](_0x3d6bc4),_0x3e7a4c=_0x3d6bc4['getAttribute'](_0x49ad68)-0x1,_0x29a2ac=_0x58a83a[_0x3e5316],_0x41e136=_0x58a83a[_0x14a3d9];_0x29a2ac<=_0x33aa81[_0x3ecd19]&&_0x33aa81[_0x3ecd19]+_0x3e7a4c<=_0x41e136&&_0xf52ed6['addRange'](_0x5d4050);}}});});}function _0x9016f7(_0x4f777f){const _0x2f7060=Array['from'](_0x1fbd5c['getRanges']())['map'](_0x206e9f=>_0x46da37['fromRange'](_0x206e9f));_0x4fe35a['model']['change'](_0x4c43c5=>{const _0x2f17e0=_0x4c43c5['batch'];_0x4f777f=_0x4f777f['filter'](_0x41e05e=>'$graveyard'!=_0x41e05e['root']['rootName']),_0x4c43c5['setSelection'](_0x4f777f),_0x4fe35a['commands']['get']('removeTableRow')['refresh'](),_0x4fe35a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4fe35a['model']['enqueueChange'](()=>{_0x4fe35a['model']['enqueueChange'](_0x2f17e0,_0x3151b0=>{const _0x1fede7=_0x2f7060['filter'](_0xe23ed3=>'$graveyard'!=_0xe23ed3['root']['rootName']);_0x1fede7['length']>0x0&&_0x3151b0['setSelection'](_0x1fede7);for(const _0x37f834 of _0x2f7060)_0x37f834['detach']();});});});}function _0x16012c(_0x49dbea){_0x4fe35a['model']['change'](_0x1efb7e=>{const _0x5d5f9b=Array['from'](_0x1fbd5c['getRanges']())['map'](_0x1685ff=>_0x46da37['fromRange'](_0x1685ff)),_0x42ae2b=[];for(const _0x1de4d0 of _0x49dbea)for(const _0x37facb of _0x1de4d0['getItems']({'shallow':!0x0}))_0x42ae2b['push'](_0x37facb);for(const _0x1b1b12 of _0x42ae2b)'$graveyard'!=_0x1b1b12['root']['rootName']&&(_0x1efb7e['setSelection'](_0x1efb7e['createPositionAt'](_0x1b1b12,0x0)),_0x4fe35a['commands']['get']('removeTableColumn')['refresh'](),_0x4fe35a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x39784b=_0x5d5f9b['filter'](_0x343a50=>'$graveyard'!=_0x343a50['root']['rootName']);_0x39784b['length']>0x0&&_0x1efb7e['setSelection'](_0x39784b);for(const _0x10db17 of _0x5d5f9b)_0x10db17['detach']();});}function _0x3d0978(_0x23faab,_0x31236d){return _0x31236d['every'](_0x5d66e6=>_0x23faab['some'](_0x4eb166=>_0x4eb166['end']['isEqual'](_0x5d66e6['start'])||_0x5d66e6['end']['isEqual'](_0x4eb166['start'])));}function _0x2a4a12(_0x859918,_0x31c9f1){return!_0x859918['some'](_0x237d3d=>_0x31c9f1['some'](_0x3fb5d7=>_0x237d3d['isIntersecting'](_0x3fb5d7)))&&_0x859918['some'](_0x450eff=>_0x31c9f1['some'](_0x8983c9=>_0x450eff['end']['isTouching'](_0x8983c9['start'])));}_0x4fe35a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x577f78,_0x4723fb,_0x2bf26b)=>{if(!_0x2bf26b['options']['showSuggestionHighlights'])return;const _0x6713c3=_0x4723fb['item'];if(!_0x6713c3)return;const _0x2bd62a=_0x2bf26b['mapper']['toViewElement'](_0x6713c3);function _0x3e3e6a(_0x1aa88b){return Array['isArray'](_0x1aa88b)?_0x1aa88b:[_0x1aa88b];}_0x2bd62a&&'tableCell'===_0x6713c3['name']&&_0x42a791(_0x2bd62a,_0x2bf26b['writer'],(_0x4c8cc2,_0x3bae5b,_0x26ca51)=>_0x26ca51['addClass'](_0x3e3e6a(_0x3bae5b['classes']),_0x4c8cc2),(_0x357020,_0x294a21,_0x402144)=>_0x402144['removeClass'](_0x3e3e6a(_0x294a21['classes']),_0x357020));},{'priority':'highest'}),_0xb69975['descriptionFactory']['registerDescriptionCallback'](_0x5f859c=>{if('insertion'!=_0x5f859c['type']&&'deletion'!=_0x5f859c['type'])return;const _0x1a61af=_0x5f859c['getContainedElement']();if(null!=_0x1a61af&&_0x1a61af['is']('element','table')){if('insertion'==_0x5f859c['type']){const _0x36d63a=_0x5f859c['getItems']()['filter'](_0xc28a16=>_0xc28a16['is']('$textProxy'))['map'](_0x48149c=>_0x48149c['data']);if(_0x36d63a['length'])return{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36d63a['join']('\x20')+'\x22'))};}if('deletion'==_0x5f859c['type']){const _0x398a19=_0x5f859c['getItems']()['filter'](_0x544d8=>_0x544d8['is']('$textProxy'))['map'](_0x5bfa78=>_0x5bfa78['data']);if(_0x398a19['length'])return{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x398a19['join']('\x20')+'\x22'))};}}}),_0xb69975['descriptionFactory']['registerDescriptionCallback'](_0x46b844=>{if('tableRow'==_0x46b844['subType']){const _0x50ab2a=_0x46b844['getItems']()['filter'](_0x4122a3=>_0x4122a3['is']('$textProxy'))['map'](_0x3a071e=>_0x3a071e['data']),_0xe97552=this['_getSuggestionCoords'](_0x46b844),_0x2a818c=_0xe97552['maxRow']-_0xe97552['minRow']+0x1;if('insertion'==_0x46b844['type'])return _0x50ab2a['length']?{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a818c,'\x22'+_0x50ab2a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW',_0x2a818c))};if('deletion'==_0x46b844['type'])return _0x50ab2a['length']?{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a818c,'\x22'+_0x50ab2a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW',_0x2a818c))};}if('tableColumn'==_0x46b844['subType']){const _0x2dcc66=_0x46b844['getItems']()['filter'](_0xad7c41=>_0xad7c41['is']('$textProxy'))['map'](_0x3eb74f=>_0x3eb74f['data']),_0x4396c4=this['_getSuggestionCoords'](_0x46b844),_0x387b29=_0x4396c4['maxColumn']-_0x4396c4['minColumn']+0x1;if('insertion'==_0x46b844['type'])return _0x2dcc66['length']?{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x387b29,'\x22'+_0x2dcc66['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN',_0x387b29))};if('deletion'==_0x46b844['type'])return _0x2dcc66['length']?{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x387b29,'\x22'+_0x2dcc66['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN',_0x387b29))};}}),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9016f7),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9016f7),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x16012c),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x16012c),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d0978),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d0978),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2a4a12),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2a4a12);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5676a5=this['editor'],_0x481e0d=_0x5676a5['model']['document']['selection'];return(_0x38be17,_0x21462e)=>{_0x5676a5['model']['change'](_0x3b4496=>{const {commandName:_0x346dbb,commandParams:_0x4e40e4}=_0x21462e;let _0x6afde8=_0x38be17[0x0]['end']['nodeBefore'];_0x4e40e4&&_0x4e40e4[0x0]&&!0x1===_0x4e40e4[0x0]['forceValue']&&(_0x6afde8=_0x38be17[0x0]['start']['nodeAfter']);const _0x3ce9cb=_0x3b4496['createRangeIn'](_0x6afde8);if('$graveyard'==_0x3ce9cb['root']['rootName'])return;const _0x3342ed=Array['from'](_0x481e0d['getRanges']())['map'](_0x9f1bb4=>_0x46da37['fromRange'](_0x9f1bb4));_0x3b4496['setSelection'](_0x3ce9cb),_0x5676a5['commands']['get'](_0x346dbb)['refresh'](),_0x4e40e4['push']({'forceDefaultExecution':!0x0}),_0x5676a5['execute'](_0x346dbb,..._0x4e40e4);const _0x2e6dd8=_0x3342ed['filter'](_0x3ea0e2=>'$graveyard'!=_0x3ea0e2['root']['rootName']);_0x2e6dd8['length']>0x0&&_0x3b4496['setSelection'](_0x2e6dd8);for(const _0x329c9e of _0x3342ed)_0x329c9e['detach']();});};}['_getCoordsForCells'](_0x30d6ce){const _0x4731ca=this['editor']['plugins']['get']('TableUtils');let _0x3a0198=Number['MAX_SAFE_INTEGER'],_0x307a46=Number['MIN_SAFE_INTEGER'],_0x2b77fa=Number['MAX_SAFE_INTEGER'],_0x11d981=Number['MIN_SAFE_INTEGER'];for(const _0x46151c of _0x30d6ce){if('$graveyard'==_0x46151c['root']['rootName'])continue;const {row:_0x126861,column:_0x28e3fa}=_0x4731ca['getCellLocation'](_0x46151c),_0x143dd0=_0x46151c['hasAttribute']('rowspan')?_0x46151c['getAttribute']('rowspan')-0x1:0x0,_0x43d38c=_0x46151c['hasAttribute']('colspan')?_0x46151c['getAttribute']('colspan')-0x1:0x0;_0x3a0198=_0x126861<_0x3a0198?_0x126861:_0x3a0198,_0x307a46=_0x126861+_0x143dd0>_0x307a46?_0x126861+_0x143dd0:_0x307a46,_0x2b77fa=_0x28e3fa<_0x2b77fa?_0x28e3fa:_0x2b77fa,_0x11d981=_0x28e3fa+_0x43d38c>_0x11d981?_0x28e3fa+_0x43d38c:_0x11d981;}return{'minRow':_0x3a0198,'maxRow':_0x307a46,'minColumn':_0x2b77fa,'maxColumn':_0x11d981};}['_setupColumnsRowsFixing'](){const _0x27cca4=this['editor'],_0xda5b66=_0x27cca4['plugins']['get']('TrackChangesEditing'),_0x4d9f4e=_0x27cca4['plugins']['get']('TableUtils');_0x27cca4['model']['document']['on']('change:data',()=>{const _0x54bf2e=Array['from'](_0x27cca4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10b960,data:_0x38dbcf}of _0x54bf2e){const {group:_0x57037e,id:_0x1576fa,subType:_0x1e7f38}=_0xda5b66['_splitMarkerName'](_0x10b960);if('suggestion'!=_0x57037e)continue;if(null!=_0x38dbcf['oldRange'])continue;const _0x2a40d2=_0xda5b66['getSuggestion'](_0x1576fa);this['_tablePostFixingSubtypes']['includes'](_0x1e7f38)&&this['_tableSuggestions']['add'](_0x2a40d2);}},{'priority':'low'});const _0x50a155=(_0x54cf44,_0x1de660)=>{let _0x4153d1=!0x1;const _0x264be3=_0x1de660['createRangeOn'](_0x54cf44),_0x67e666=_0x54cf44['findAncestor']('table'),_0x28a90f=_0x4d9f4e['getCellLocation'](_0x54cf44);for(const _0xbde1b6 of this['_tableSuggestions']){const _0x214bd5=_0xbde1b6['subType'],_0x389eeb=_0x214bd5['startsWith']('tablePaste'),_0x1557ad=_0x214bd5['substr'](_0x389eeb?0xa:0x5),_0x3f012e=_0x1557ad['toLowerCase'](),_0x3abc4b=_0x3f012e['substr'](0x0,0x3)+'span',_0xe01532='min'+_0x1557ad,_0x1a3a9d='max'+_0x1557ad;if(!_0xbde1b6['isInContent'])continue;if(_0x67e666!=_0xbde1b6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xbde1b6['isIntersectingWithRange'](_0x264be3))continue;const _0x3e726f=_0x54cf44['hasAttribute'](_0x3abc4b)?_0x54cf44['getAttribute'](_0x3abc4b)-0x1:0x0,_0x2fab34=this['_getSuggestionCoords'](_0xbde1b6),_0x1d7891=_0x2fab34[_0xe01532],_0x258741=_0x2fab34[_0x1a3a9d];_0x1d7891<=_0x28a90f[_0x3f012e]&&_0x28a90f[_0x3f012e]+_0x3e726f<=_0x258741&&(_0xbde1b6['addRange'](_0x264be3),_0x4153d1=!0x0);}return _0x4153d1;};_0x27cca4['model']['document']['registerPostFixer'](_0x313856=>{let _0x1cf919=!0x1;for(const _0x2360fa of _0x27cca4['model']['document']['differ']['getChanges']())if('insert'==_0x2360fa['type']){if('tableRow'==_0x2360fa['name']){for(const _0x673a59 of _0x2360fa['position']['nodeAfter']['getChildren']())_0x1cf919=_0x1cf919||_0x50a155(_0x673a59,_0x313856);}else'tableCell'==_0x2360fa['name']&&(_0x1cf919=_0x1cf919||_0x50a155(_0x2360fa['position']['nodeAfter'],_0x313856));}return _0x1cf919;});}['_getSuggestionCoords'](_0x431a4b){return this['_getCoordsForCells'](_0x431a4b['getRanges']()['map'](_0x3f142d=>_0x3f142d['start']['nodeAfter']));}}function be(_0x5a00de){return Array['from'](new Set(_0x5a00de)['values']());}class vt extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x135187=this['editor'],_0x4702e6=_0x135187['model']['document']['selection'],_0x3c4ab5=_0x135187['locale'];if(!_0x135187['plugins']['has']('TableEditing'))return;const _0x34229f=_0x135187['plugins']['get']('TrackChangesEditing'),_0x3d5522=_0x135187['plugins']['get']('TableUtils'),_0x250e55=_0x135187['plugins']['get'](It);_0x250e55['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x34229f['enableCommand']('mergeTableCells',()=>{const _0x108b70=_0x3d5522['getSelectionAffectedTableCells'](_0x135187['model']['document']['selection']);_0x135187['model']['change'](()=>{_0x34229f['markMultiRangeBlockFormat'](_0x108b70,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x135187['commands']['get']('mergeTableCells')['on']('execute',(_0x3d268b,_0x18add3)=>{_0x135187['commands']['get']('trackChanges')['value']&&(_0x18add3['length']>0x0&&_0x18add3[_0x18add3['length']-0x1]&&_0x18add3[_0x18add3['length']-0x1]['forceDefaultExecution']||_0x34229f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3d268b['stop']());},{'priority':'highest'});for(const _0x4bba91 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50e30d=_0x135187['commands']['get'](_0x4bba91);_0x34229f['enableCommand'](_0x4bba91,()=>{const _0x20ba57=_0x135187['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ca8d1=>_0x3ca8d1['is']('element','tableCell')),_0x2bd071=_0x50e30d['value'];_0x135187['model']['change'](()=>{_0x34229f['markMultiRangeBlockFormat']([_0x20ba57,_0x2bd071],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x6b1fd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x661bcb=_0x135187['commands']['get'](_0x6b1fd);_0x34229f['enableCommand'](_0x6b1fd,()=>{const _0x55bef8=_0x3d5522['getSelectionAffectedTableCells'](_0x135187['model']['document']['selection'])[0x0],_0x2c2b1f=_0x55bef8['findAncestor']('table'),{column:_0x1443cc,row:_0x5d942c}=_0x3d5522['getCellLocation'](_0x55bef8);let _0x3ef81c=[];if('horizontally'==_0x661bcb['direction']){const _0x1f84be=_0x3d5522['createTableWalker'](_0x2c2b1f,{'startRow':_0x5d942c,'endRow':_0x5d942c,'includeAllSlots':!0x0});_0x3ef81c=Array['from'](_0x1f84be)['map'](_0xd8b2d1=>_0xd8b2d1['cell']);}else{const _0x484281=_0x3d5522['createTableWalker'](_0x2c2b1f,{'column':_0x1443cc,'includeAllSlots':!0x0});_0x3ef81c=Array['from'](_0x484281)['map'](_0x3e4bb6=>_0x3e4bb6['cell']);}_0x135187['model']['change'](_0x2dfb3b=>{_0x34229f['markBlockFormat'](_0x2dfb3b['createRangeOn'](_0x55bef8),{'commandName':_0x6b1fd,'commandParams':[]},_0x3ef81c,_0x6b1fd);});});}_0x34229f['descriptionFactory']['registerDescriptionCallback'](_0x22c489=>{if('formatBlock'!=_0x22c489['type']&&'formatInline'!=_0x22c489['type'])return;const {data:_0x29ff6e}=_0x22c489;return _0x29ff6e&&'mergeTableCells'==_0x29ff6e['commandName']?{'type':'format','content':o(_0x3c4ab5,'*Merge\x20cells*')}:void 0x0;}),_0x34229f['descriptionFactory']['registerDescriptionCallback'](_0x2e4c87=>{if('formatBlock'!=_0x2e4c87['type']&&'formatInline'!=_0x2e4c87['type'])return;const {data:_0x1adf2b}=_0x2e4c87;return _0x1adf2b?'splitTableCellVertically'==_0x1adf2b['commandName']?{'type':'format','content':o(_0x3c4ab5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1adf2b['commandName']?{'type':'format','content':o(_0x3c4ab5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x261575=_0x250e55['_acceptFormatSuggestionCallbackFactory']();for(const _0x118bad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x34229f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x118bad,'accept',_0x261575);for(const _0x1df3cf of['splitTableCellVertically','splitTableCellHorizontally'])_0x34229f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1df3cf,'accept',_0x261575);_0x34229f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x304784=>{_0x135187['model']['change'](_0x5693e4=>{const _0x5e6fad=Array['from'](_0x4702e6['getRanges']())['map'](_0x1280eb=>_0x46da37['fromRange'](_0x1280eb));_0x5693e4['setSelection'](_0x304784),_0x135187['commands']['get']('mergeTableCells')['refresh'](),_0x135187['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5da8c6=_0x5e6fad['filter'](_0x1ed8dc=>'$graveyard'!=_0x1ed8dc['root']['rootName']);_0x5da8c6['length']>0x0&&_0x5693e4['setSelection'](_0x5da8c6);for(const _0x1aad79 of _0x5e6fad)_0x1aad79['detach']();});});for(const _0x5be488 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c19d9=_0x135187['commands']['get'](_0x5be488);_0x5c19d9['on']('set:isEnabled',(_0x2de3ae,_0x1a13a3,_0x7bc4d5)=>{if(_0x7bc4d5){const _0x531655=_0x135187['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf9ee91=>_0xf9ee91['is']('element','tableCell'));this['_areMergableCells'](_0x5c19d9['value'],_0x531655)||(_0x2de3ae['return']=!0x1,_0x2de3ae['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x59820e=this['editor']['commands']['get']('mergeTableCells'),_0x847a43=this['editor']['plugins']['get']('TableUtils');if(!_0x59820e['isEnabled'])return!0x1;const _0x423807=_0x847a43['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x46c075 of _0x423807)for(const _0x532aa7 of _0x423807)if(_0x46c075!=_0x532aa7&&!this['_areMergableCells'](_0x46c075,_0x532aa7))return!0x1;return!0x0;}['_areMergableCells'](_0x698db5,_0x34758a){const _0x11eef1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a2178=this['editor']['model']['createRangeOn'](_0x698db5),_0x3a4362=this['editor']['model']['createRangeOn'](_0x34758a),_0x475a3a=new Set(),_0x1496ea=new Set();for(const _0x291955 of _0x11eef1['getSuggestions']())if(('insertion'==_0x291955['type']||'deletion'==_0x291955['type']||'mergeTableCells'==_0x291955['subType'])&&_0x291955['isInContent']){for(const _0x24ab8e of _0x291955['getRanges']())_0x24ab8e['containsRange'](_0x2a2178,!0x0)&&_0x475a3a['add'](_0x291955['type']+':'+_0x291955['author']['id']),_0x24ab8e['containsRange'](_0x3a4362,!0x0)&&_0x1496ea['add'](_0x291955['type']+':'+_0x291955['author']['id']);}if(_0x475a3a['size']!=_0x1496ea['size'])return!0x1;for(const _0x2ab320 of _0x475a3a)if(!_0x1496ea['has'](_0x2ab320))return!0x1;return!0x0;}}class Ct extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x4a6a10=this['editor'];if(!_0x4a6a10['plugins']['has']('TableEditing'))return;const _0x18c0a5=_0x4a6a10['locale'],_0x288eb6=_0x4a6a10['plugins']['get']('TrackChangesEditing');_0x288eb6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x288eb6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x288eb6['registerBlockAttribute']('headingRows'),_0x288eb6['registerBlockAttribute']('headingColumns'),_0x288eb6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x18c0a5,'FORMAT_HEADER_ROW')),_0x288eb6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x18c0a5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4276f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1412f4=this['editor']['plugins']['get']('TableUtils'),_0x2cadc4=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4cae6e({showActiveMarker:_0x859df3=!0x0,setDataAttribute:_0xf62213=!0x0}={}){return(_0x1f9ce4,_0x1f25ba,_0x2bdc3b)=>{const {type:_0x4c6372,id:_0x427521}=_0x4276f9['_splitMarkerName'](_0x1f25ba['markerName']),_0xed776c=_0x4276f9['getSuggestion'](_0x427521),_0x5e1fba=_0xed776c['data'];if('formatBlock'!=_0xed776c['type']||!_0x5e1fba||'setTableColumnHeader'!=_0x5e1fba['commandName'])return;if(_0x1f25ba['item'])return void _0x1f9ce4['stop']();if(!_0x2bdc3b['consumable']['consume'](_0x1f25ba['markerRange'],_0x1f9ce4['name']))return;const _0x31d4db=_0x1f25ba['markerRange']['start']['nodeAfter'],_0x301932=_0x1f25ba['markerRange']['end']['nodeBefore'],_0x57ec2e=_0x31d4db['parent']['parent'],{column:_0x3440b9}=_0x1412f4['getCellLocation'](_0x31d4db),{column:_0x208753}=_0x1412f4['getCellLocation'](_0x301932);for(let _0x2ef464=_0x3440b9;_0x2ef464<=_0x208753;_0x2ef464++){const _0x5294b5=_0x1412f4['createTableWalker'](_0x57ec2e,{'column':_0x2ef464,'includeAllSlots':!0x1});for(const _0x43c822 of _0x5294b5){const _0x4fd7ed=_0x43c822['cell'],_0x8f1b8e=_0x2bdc3b['mapper']['toViewElement'](_0x4fd7ed);_0x2bdc3b['writer']['addClass']('ck-suggestion-marker-'+_0x4c6372,_0x8f1b8e),_0xf62213&&_0x2bdc3b['writer']['setAttribute']('data-suggestion',_0x427521,_0x8f1b8e),_0x2bdc3b['mapper']['bindElementToMarker'](_0x8f1b8e,_0x1f25ba['markerName']),_0x859df3&&(_0x4276f9['activeMarkers']['includes'](_0x1f25ba['markerName'])?_0x2bdc3b['writer']['addClass']('ck-suggestion-marker--active',_0x8f1b8e):_0x2bdc3b['writer']['removeClass']('ck-suggestion-marker--active',_0x8f1b8e));}}};}_0x4276f9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2cadc4),_0x4276f9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2cadc4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4cae6e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b0061,_0x43e523,_0x23db88)=>{_0x23db88['options']['showSuggestionHighlights']&&_0x4cae6e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b0061,_0x43e523,_0x23db88);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x145a93,_0x12cb24,_0x5bb158)=>{const {type:_0x35b598,id:_0x4a48ec}=_0x4276f9['_splitMarkerName'](_0x12cb24['markerName']),_0x1b2d64=_0x4276f9['getSuggestion'](_0x4a48ec),_0x5a637f=_0x1b2d64['data'];if('formatBlock'!=_0x1b2d64['type']||!_0x5a637f||'setTableColumnHeader'!=_0x5a637f['commandName'])return;const _0x592508=_0x5bb158['mapper']['markerNameToElements'](_0x12cb24['markerName']);if(_0x592508){for(const _0xaab1b9 of _0x592508)_0x5bb158['writer']['removeClass']('ck-suggestion-marker-'+_0x35b598,_0xaab1b9),_0x5bb158['writer']['removeClass']('ck-suggestion-marker--active',_0xaab1b9),_0x5bb158['writer']['removeAttribute']('data-suggestion',_0xaab1b9),_0x5bb158['mapper']['unbindElementFromMarkerName'](_0xaab1b9,_0x12cb24['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5582d6=this['editor'],_0x4804bc=_0x5582d6['locale'];function _0x4c2273(_0x3e1030){return{'type':'format','content':o(_0x4804bc,'*Format:*\x20%0',_0x3e1030)};}_0x5582d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7bafef=>{if('formatBlock'!=_0x7bafef['type'])return;const {data:_0x4011b4}=_0x7bafef;if(_0x4011b4){if('setTableRowHeader'==_0x4011b4['commandName']){const _0x331107=_0x4011b4['commandParams'][0x0]['forceValue'];return _0x4c2273(o(_0x4804bc,_0x331107?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4011b4['commandName']){const _0x30dadd=_0x4011b4['commandParams'][0x0]['forceValue'];return _0x4c2273(o(_0x4804bc,_0x30dadd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x50850f=>[_0x50850f,null]));class _t extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x5ea86a=this['editor'];if(!_0x5ea86a['plugins']['has']('TableClipboard'))return;const _0x26fd90=_0x5ea86a['plugins']['get']('TrackChangesEditing'),_0x4525a9=_0x5ea86a['plugins']['get']('TableUtils'),_0x4f8586=_0x5ea86a['plugins']['get'](It),_0x45f495=_0x5ea86a['plugins']['get']('TableClipboard');_0x4f8586['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5ea86a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5ea86a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f61fc=null;_0x5ea86a['model']['on']('insertContent',(_0x54d329,_0x331189)=>{const [_0x385d3e,_0x574afd]=_0x331189,_0x25a7fa=_0x331189[_0x331189['length']-0x1];_0x25a7fa&&_0x25a7fa['forceDefaultExecution']||_0x26fd90['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x13f945,_0x4655a1,_0x590c0f,_0x1ae20a,_0x3e39b3){if(_0x4655a1&&!_0x4655a1['is']('documentSelection'))return!0x1;const _0x349ceb=_0x3e39b3['getTableIfOnlyTableInContent'](_0x13f945,_0x590c0f);if(!_0x349ceb||!Re(_0x349ceb,void 0x0,_0x1ae20a))return!0x1;const _0x203ef7=_0x1ae20a['getSelectionAffectedTableCells'](_0x590c0f['document']['selection']);if(!_0x203ef7['length'])return!0x1;const _0x37690b=_0x203ef7[0x0]['findAncestor']('table'),_0x50dae0=_0x1ae20a['getRowIndexes'](_0x203ef7),_0x16b0a2=_0x1ae20a['getColumnIndexes'](_0x203ef7),_0x4ff621={'startRow':_0x50dae0['first'],'endRow':_0x50dae0['last'],'startColumn':_0x16b0a2['first'],'endColumn':_0x16b0a2['last']};return 0x1==_0x203ef7['length']&&(_0x4ff621['endRow']+=_0x1ae20a['getRows'](_0x349ceb)-0x1,_0x4ff621['endColumn']+=_0x1ae20a['getColumns'](_0x349ceb)-0x1),Re(_0x37690b,_0x4ff621,_0x1ae20a);}(_0x385d3e,_0x574afd,_0x5ea86a['model'],_0x4525a9,_0x45f495)&&(_0x54d329['stop'](),_0x2f61fc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5ea86a['model']['change'](()=>{_0x5ea86a['model']['insertContent'](_0x331189[0x0],_0x331189[0x1],_0x331189[0x2],{'forceDefaultExecution':!0x0});const _0x3863a3=_0x55f5c8(),{rowInsertionRanges:_0x578e55,columnInsertionRanges:_0x2e66f1,insertionRanges:_0x243f1a,deletionRanges:_0x45fbcf,cells:_0x353e77}=_0x2f61fc;_0x578e55['length']&&_0x26fd90['markMultiRangeInsertion'](_0x578e55,'tablePasteRow',{'tablePasteChainId':_0x3863a3}),_0x2e66f1['length']&&_0x26fd90['markMultiRangeInsertion'](_0x2e66f1,'tablePasteColumn',{'tablePasteChainId':_0x3863a3}),_0x243f1a['length']&&(_0x26fd90['markMultiRangeInsertion'](_0x243f1a,'tablePaste',{'tablePasteChainId':_0x3863a3,'skipNestingCheck':!0x0}),_0x243f1a['forEach'](_0x4585cb=>_0x4585cb['detach']?.())),_0x45fbcf['length']&&(_0x26fd90['markMultiRangeDeletion'](_0x45fbcf,'tablePaste',{'tablePasteChainId':_0x3863a3,'skipNestingCheck':!0x0}),_0x45fbcf['forEach'](_0x1a0811=>_0x1a0811['detach']?.()));const _0x300f5d=_0x26fd90['markMultiRangeBlockFormat'](_0x353e77['map'](({element:_0x5886ba})=>_0x5886ba),{'formatGroupId':_0x55f5c8()},[],'tablePasteCell',{'tablePasteChainId':_0x3863a3});if(_0x300f5d){const _0x7e6a3a=_0x300f5d['getMarkers'](),_0x6a7207=[];for(const {element:_0x44829a,attributes:_0xb398f3}of _0x353e77){if(!_0xb398f3)continue;const _0x5b234b=_0x5ea86a['model']['createRangeOn'](_0x44829a),_0x379402=_0x7e6a3a['find'](_0xff80d4=>_0xff80d4['getRange']()['isEqual'](_0x5b234b));_0x379402&&_0x6a7207['push']([_0x379402['name'],_0xb398f3]);}_0x6a7207['length']&&_0x300f5d['setAttribute']('markerAttributes',Object['fromEntries'](_0x6a7207));}_0x2f61fc=null;}));},{'priority':_0x4d60ea['high']+0xa}),_0x5ea86a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42051a,_0x9b8f8f)=>{const [_0x126ada,_0x4a85c0,,_0x5aca7a]=_0x9b8f8f;if(!_0x2f61fc)return;_0x42051a['stop']();const _0xb250a3=_0x126ada['cell'],_0x436b30=_0x4a85c0,_0x3d6741=ke(_0xb250a3),_0x361f3e=ke(_0x436b30);_0x42051a['return']=_0xb250a3;let _0x2e0d50=null,_0x1a0fba=null;if(_0x361f3e||_0x3d6741){if(_0x3d6741&&!_0x361f3e){_0x5aca7a['remove'](_0xb250a3['getChild'](0x0));for(const _0x5ee21e of Array['from'](_0x436b30['getChildren']()))_0x5aca7a['insert'](_0x5ee21e,_0xb250a3,'end');const _0x322cc8=_0x2f61fc['rowInsertionIndexes']['includes'](_0x126ada['row']),_0x1e4b06=_0x2f61fc['columnInsertionIndexes']['includes'](_0x126ada['column']);_0x322cc8||_0x1e4b06||(_0x2e0d50=_0x46da37['fromRange'](_0x5aca7a['createRangeIn'](_0xb250a3)));}else _0x361f3e&&!_0x3d6741&&(_0x1a0fba=_0x5aca7a['createRangeIn'](_0xb250a3));}else{const _0x2d0369=_0x5aca7a['createElement']('tableCellSuggestion'),_0x4cc88d=_0x5aca7a['createElement']('tableCellSuggestion');_0x5aca7a['wrap'](_0x5aca7a['createRangeIn'](_0xb250a3),_0x4cc88d),_0x5aca7a['insert'](_0x2d0369,_0xb250a3,0x0);for(const _0x3db441 of Array['from'](_0x436b30['getChildren']()))_0x5aca7a['insert'](_0x3db441,_0x2d0369,'end');_0x2e0d50=_0x46da37['fromRange'](_0x5aca7a['createRangeOn'](_0x2d0369)),_0x1a0fba=_0x46da37['fromRange'](_0x5aca7a['createRangeOn'](_0x4cc88d));}const _0x22a9b2=Array['from'](_0x436b30['getAttributes']())['filter'](([_0x123385])=>Pe['includes'](_0x123385));_0x2f61fc['cells']['push']({'element':_0xb250a3,'attributes':_0x22a9b2['length']?Object['fromEntries'](_0x22a9b2):null}),_0x2e0d50&&_0x2f61fc['insertionRanges']['push'](_0x2e0d50),_0x1a0fba&&_0x2f61fc['deletionRanges']['push'](_0x1a0fba);},{'priority':'high'}),_0x4525a9['on']('insertColumns',(_0x3a0128,_0x49d961)=>{const [_0x39fbf9,_0x3c7af1={}]=_0x49d961;if(!_0x2f61fc)return;const _0x22270e=_0x3c7af1['at']||0x0,_0x5d6788=_0x3c7af1['columns']||0x1;_0x2f61fc['columnInsertionIndexes']=new Array(_0x5d6788)['fill'](_0x22270e)['map']((_0x437df7,_0x3b1a2c)=>_0x437df7+_0x3b1a2c);for(const {cell:_0x45237b}of _0x4525a9['createTableWalker'](_0x39fbf9,{'startColumn':_0x22270e,'endColumn':_0x22270e+_0x5d6788-0x1}))_0x2f61fc['columnInsertionRanges']['push'](_0x5ea86a['model']['createRangeOn'](_0x45237b));},{'priority':'low'}),_0x4525a9['on']('insertRows',(_0x11fd44,_0xf5e54b)=>{const [_0x2fff8d,_0xd65f2c={}]=_0xf5e54b;if(!_0x2f61fc)return;const _0x22fbe2=_0xd65f2c['at']||0x0,_0x590ba1=_0xd65f2c['rows']||0x1;_0x2f61fc['rowInsertionIndexes']=new Array(_0x590ba1)['fill'](_0x22fbe2)['map']((_0x5553f4,_0x160648)=>_0x5553f4+_0x160648);for(const {cell:_0x17b097}of _0x4525a9['createTableWalker'](_0x2fff8d,{'startRow':_0x22fbe2,'endRow':_0x22fbe2+_0x590ba1-0x1}))_0x2f61fc['rowInsertionRanges']['push'](_0x5ea86a['model']['createRangeOn'](_0x17b097));},{'priority':'low'}),_0x26fd90['descriptionFactory']['registerDescriptionCallback'](_0x1c0acd=>{if(_0x1c0acd['subType']&&_0x1c0acd['subType']['startsWith']('tablePaste'))return _0x1c0acd['previous']?{}:{'type':'insertion','content':o(_0x5ea86a['locale'],'*Replace\x20table\x20cells*')};});const _0x291f51=()=>!0x1;for(const _0x5ac2d2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x26fd90['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ac2d2,'join',_0x291f51),_0x26fd90['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ac2d2,'join',_0x291f51),_0x26fd90['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ac2d2,'join',_0x291f51);_0x26fd90['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x291f51),_0x26fd90['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d09af,_0xcbdbc,_0x369f72)=>{const _0x3e1ced=_0x1d09af['map'](_0x3078e9=>_0x3078e9['getContainedElement']())['filter'](_0x181f2c=>_0x181f2c),_0x4d8809=new Map(_0x3e1ced['map'](_0x161021=>[_0x161021,null]));if(_0x2f61fc){for(const {element:_0x5813ed,attributes:_0x68a1a7}of _0x2f61fc['cells'])_0x68a1a7&&_0x4d8809['set'](_0x5813ed,_0x68a1a7);}else{if(_0x369f72&&_0x369f72['markerAttributes'])for(const [_0x46b0d9,_0x465f0]of Object['entries'](_0x369f72['markerAttributes'])){const _0x380d12=_0x5ea86a['model']['markers']['get'](_0x46b0d9),_0x6f6fb9=_0x380d12?_0x380d12['getRange']()['getContainedElement']():null;_0x6f6fb9&&_0x4d8809['set'](_0x6f6fb9,_0x465f0);}}_0x5ea86a['model']['change'](_0xecc5e8=>{for(const [_0xcb802d,_0x2de413]of _0x4d8809)_0xecc5e8['setAttributes']({...we,..._0x2de413},_0xcb802d);});});const _0x1e3e62=(_0x38003a,_0x644fdd)=>{_0x26fd90['_suggestionFactory']['registerCustomCallback'](_0x38003a,'tablePaste',_0x644fdd,(_0x427fd5,_0x3e3151,_0x22a875)=>{_0x5ea86a['model']['change'](_0x20ba1e=>{const _0x81c22e=[];for(const _0x18c555 of _0x427fd5){const _0xbd8542=_0x18c555['start']['nodeAfter'];_0xbd8542['is']('element','tableCellSuggestion')&&_0x81c22e['push'](_0xbd8542);}_0x26fd90['_suggestionFactory']['getSuggestionCallback'](_0x38003a,null,_0x644fdd)(_0x427fd5,_0x3e3151,_0x22a875);for(const _0x21ecb1 of _0x81c22e)'$graveyard'!=_0x21ecb1['root']['rootName']&&_0x20ba1e['unwrap'](_0x21ecb1);});});};_0x1e3e62('insertion','accept'),_0x1e3e62('insertion','discard'),_0x1e3e62('deletion','accept'),_0x1e3e62('deletion','discard'),_0x26fd90['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x435bb7=>{const _0x107aa2=_0x435bb7['map'](_0x492ce1=>_0x492ce1['getContainedElement']()),_0x513ab4=_0x107aa2[0x0]['findAncestor']('table'),{minRow:_0x44375e,maxRow:_0xe239fb}=_0x4f8586['_getCoordsForCells'](_0x107aa2);_0x4525a9['removeRows'](_0x513ab4,{'at':_0x44375e,'rows':_0xe239fb-_0x44375e+0x1});}),_0x26fd90['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x32fb8b=>{const _0x3f9bda=_0x32fb8b['map'](_0x361118=>_0x361118['getContainedElement']()),_0x512913=_0x3f9bda[0x0]['findAncestor']('table'),{minColumn:_0x262c76,maxColumn:_0x29447d}=_0x4f8586['_getCoordsForCells'](_0x3f9bda);_0x4525a9['removeColumns'](_0x512913,{'at':_0x262c76,'columns':_0x29447d-_0x262c76+0x1});});const _0x6d5d9c=(_0x185681,_0x5ad887)=>{if(!_0x5ad887['subType']||!_0x5ad887['subType']['startsWith']('tablePaste'))return;const _0x4365de=_0x5ad887['attributes']['tablePasteChainId'],_0x27b025=_0x26fd90['getSuggestions']()['filter'](_0xd9a47=>_0xd9a47['isInContent']&&_0xd9a47['attributes']&&_0xd9a47['attributes']['tablePasteChainId']==_0x4365de);_0x27b025['length']&&_0x5ad887['getAllAdjacentSuggestions']()['length']!=_0x27b025['length']&&_0x27b025['reduce']((_0x1dc326,_0x34bbba)=>(_0x1dc326['next']=_0x34bbba,_0x34bbba['previous']=_0x1dc326,_0x34bbba));};function _0x505be4(_0x1e054c,_0x490212=!0x0){const {id:_0x1bd3ae,authorId:_0x1df454}=_0x26fd90['_splitMarkerName'](_0x1e054c['markerName']),_0x5ecb34=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4842a4=_0x26fd90['activeMarkers']['includes'](_0x1e054c['markerName']);return _0x4842a4&&_0x5ecb34['push']('ck-suggestion-marker--active'),{'classes':_0x5ecb34,'attributes':{'data-suggestion':_0x1bd3ae,'data-author-id':_0x1df454},'priority':_0x4842a4&&_0x490212?0xbc2:0xbb8};}_0x26fd90['on']('suggestionLoaded',_0x6d5d9c,{'priority':'high'}),_0x26fd90['on']('suggestionUnloaded',_0x6d5d9c,{'priority':'high'}),_0x5ea86a['model']['document']['registerPostFixer'](()=>{let _0x538e8c=!0x1;const _0x3ebe73=Array['from'](_0x5ea86a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ab746,data:_0xc7fa17}of _0x3ebe73){const {group:_0x4eefbd,type:_0x5ad98a,id:_0x1967db}=_0x26fd90['_splitMarkerName'](_0x2ab746);if('suggestion'!=_0x4eefbd||'deletion'!=_0x5ad98a||_0xc7fa17['oldRange'])continue;if(!_0x26fd90['hasSuggestion'](_0x1967db))continue;const _0x22583a=_0x26fd90['getSuggestion'](_0x1967db)['getRanges'](),_0x3c7910=_0x5ea86a['plugins']['get']('Users')['me'];for(const _0x2b4cb1 of _0x26fd90['getSuggestions']()){if(!_0x2b4cb1['isInContent']||_0x2b4cb1['author']!=_0x3c7910)continue;if('formatBlock'!=_0x2b4cb1['type']||'tablePasteCell'!=_0x2b4cb1['subType'])continue;if(_0x2b4cb1['getRanges']()['every'](_0x479241=>_0x22583a['some'](_0x4ce685=>_0x4ce685['containsRange'](_0x479241,!0x0)))){for(const _0x13ee99 of _0x2b4cb1['getAllAdjacentSuggestions']())_0x13ee99['isInContent']&&(_0x13ee99['discard'](),_0x538e8c=!0x0);}}}return _0x538e8c;}),_0x5ea86a['model']['document']['registerPostFixer'](_0x582587=>{const _0x386174=_0x5ea86a['commands']['get']('redo');if(!_0x386174||!_0x386174['_createdBatches']['has'](_0x582587['batch']))return!0x1;let _0x3c4945=!0x1;const _0x1b1084=_0x5ea86a['plugins']['get']('Users')['me'],_0x52ead7=_0x5ea86a['model']['document']['differ']['getChanges'](),_0x174bb6=Array['from'](_0x5ea86a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x136070,data:_0x4245a5})=>{const {group:_0x25b073,subType:_0x2fd1c1,authorId:_0x35a8f8}=_0x26fd90['_splitMarkerName'](_0x136070);return'suggestion'==_0x25b073&&'tablePaste'==_0x2fd1c1&&_0x35a8f8==_0x1b1084['id']&&!_0x4245a5['oldRange'];});for(const _0x49fc12 of _0x52ead7){if('insert'!=_0x49fc12['type']||'tableCellSuggestion'!=_0x49fc12['name']||0x1!=_0x49fc12['length'])continue;const _0xb91725=_0x582587['createRange'](_0x49fc12['position'],_0x49fc12['position']['getShiftedBy'](0x1));if(!_0x174bb6['find'](({data:_0x4d15ca})=>_0x4d15ca['newRange']['isEqual'](_0xb91725))){for(const {name:_0x2ca548,data:_0x2f3284}of _0x174bb6)if(_0xb91725['containsRange'](_0x2f3284['newRange'])){_0x582587['updateMarker'](_0x2ca548,{'range':_0xb91725}),_0x3c4945=!0x0;break;}}}return _0x3c4945;}),_0x5ea86a['model']['document']['registerPostFixer'](_0x14a8e6=>{let _0x41cd0c=!0x1;const _0x51868e=_0x5ea86a['plugins']['get']('Users')['me'],_0x2a271d=_0x26fd90['getSuggestions']()['filter'](_0x1d40f0=>_0x1d40f0['isInContent']&&_0x1d40f0['author']==_0x51868e),_0x507a9f=new Set(),_0x440173=new Set();for(const _0x2ba733 of _0x2a271d)if('tablePaste'==_0x2ba733['subType'])for(const _0x3f5bcd of _0x2ba733['getMarkers']()){const _0xe10d77=_0x3f5bcd['getRange']()['getContainedElement']();if(_0xe10d77){if(_0xe10d77['is']('element','tableCellSuggestion')&&ke(_0xe10d77)){_0x2ba733['removeMarker'](_0x3f5bcd['name']),_0x507a9f['add'](_0xe10d77),_0x41cd0c=!0x0;const _0x309dd5=_0xe10d77['nextSibling'],_0x2cdd67=_0xe10d77['previousSibling'],_0x2cf80d=_0x309dd5&&_0x309dd5['is']('element','tableCellSuggestion'),_0x211751=_0x2cdd67&&_0x2cdd67['is']('element','tableCellSuggestion');_0x2cf80d&&!_0x507a9f['has'](_0x309dd5)&&_0x440173['add'](_0x309dd5),_0x211751&&!_0x507a9f['has'](_0x2cdd67)&&_0x440173['add'](_0x2cdd67);}else _0xe10d77['is']('element','paragraph')&&_0xe10d77['isEmpty']&&(_0x2ba733['removeMarker'](_0x3f5bcd['name']),_0x41cd0c=!0x0);}}else{if('tablePasteCell'==_0x2ba733['subType']){if(!_0x2ba733['attributes']||!_0x2ba733['attributes']['tablePasteChainId'])continue;const _0x1effdd=_0x2ba733['attributes']['markerAttributes'];if(_0x1effdd&&Object['keys'](_0x1effdd)['length'])continue;const _0x501f46=_0x2ba733['attributes']['tablePasteChainId'];let _0x185aff=!0x0,_0x399947=!0x0;for(const _0x3d5e9d of _0x2a271d)if(_0x3d5e9d['subType']&&_0x3d5e9d['subType']['startsWith']('tablePaste')){if(!_0x3d5e9d['attributes']['tablePasteChainId']){_0x399947=!0x1;break;}if(_0x3d5e9d['id']!=_0x2ba733['id']&&_0x3d5e9d['attributes']['tablePasteChainId']==_0x501f46){_0x185aff=!0x1;break;}}_0x399947&&_0x185aff&&(_0x2ba733['removeMarkers'](),_0x41cd0c=!0x0);}}for(const _0xc17259 of _0x507a9f)_0x14a8e6['remove'](_0xc17259);for(const _0x53a217 of _0x440173)_0x14a8e6['unwrap'](_0x53a217);return _0x41cd0c;}),_0x5ea86a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x63c95d=>_0x505be4(_0x63c95d),'converterPriority':'high'}),_0x5ea86a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29bad9,_0x48db81)=>_0x48db81['options']['showSuggestionHighlights']?_0x505be4(_0x29bad9,!0x1):null,'converterPriority':'high'});const _0x298fc5=_0x5ea86a['editing']['view'];this['listenTo'](_0x298fc5['document'],'clipboardOutput',(_0x337cda,_0x1706ac)=>{const _0x20d4a9=[];for(const _0x537727 of _0x298fc5['createRangeIn'](_0x1706ac['content'])['getItems']())_0x537727['is']('element','suggestion-td')&&_0x20d4a9['push'](_0x537727);_0x298fc5['change'](_0x4610d2=>{for(const _0x50bd61 of _0x20d4a9)_0x4610d2['move'](_0x4610d2['createRangeIn'](_0x50bd61),_0x4610d2['createPositionBefore'](_0x50bd61)),_0x4610d2['remove'](_0x50bd61);});});}}function ke(_0xebcaa1){if(_0xebcaa1['isEmpty'])return!0x0;const _0x4ea600=_0xebcaa1['getChild'](0x0);return _0x4ea600['is']('element','paragraph')&&_0x4ea600['isEmpty'];}function Re(_0x1403bf,_0x4ffc78={},_0x56898e){for(const {isAnchor:_0x1f4a9a,cellHeight:_0x479cd6,cellWidth:_0x224306}of _0x56898e['createTableWalker'](_0x1403bf,{'includeAllSlots':!0x0,..._0x4ffc78}))if(!_0x1f4a9a||0x1!=_0x479cd6||0x1!=_0x224306)return!0x1;return!0x0;}class Nt extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x476ca2=this['editor']['plugins']['get']('TrackChangesEditing');_0x476ca2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x476ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x476ca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x476ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x476ca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x476ca2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2c7b67,_0x5d7228){const _0x2d4c8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x470dd1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5b7f02=_0x5d7228['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x32eb73=_0x470dd1['getColumnGroupElement'](_0x5b7f02);let _0x491999=_0x32eb73?_0x470dd1['getTableColumnsWidths'](_0x32eb73):null,_0x220efe=_0x5b7f02['getAttribute']('tableWidth')||null;const _0x1e3241=_0x5d7228['tableWidth']||_0x220efe,_0x1468bf=_0x5d7228['columnWidths']||_0x491999,_0xb72405=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d430a of _0x2d4c8c['getSuggestions']()){const _0x315523=_0x1d430a['getContainedElement']();if('resizeTable'===_0x1d430a['subType']&&_0x315523===_0x5b7f02){_0x1d430a['author']!==_0xb72405&&_0x1d430a['discard']();const _0x78e56=_0x1d430a['data']['commandParams'];_0x220efe=_0x78e56[0x0]['tableWidth'],_0x491999=_0x78e56[0x0]['columnWidths'];break;}}_0x2c7b67({'table':_0x5b7f02,'tableWidth':_0x1e3241,'columnWidths':_0x1468bf}),_0x2d4c8c['markBlockFormat'](_0x5b7f02,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x220efe,'columnWidths':_0x491999}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xb67fe5){if('formatBlock'!=_0xb67fe5['type']&&'formatInline'!=_0xb67fe5['type'])return;const {data:_0x361022}=_0xb67fe5;if(_0x361022&&'resizeTable'===_0x361022['formatGroupId']){const _0x552a45='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x552a45)};}}}class Dt extends _0x55f69e{['afterInit'](){const _0x3f15bf=this['editor'];_0x3f15bf['plugins']['has']('Template')&&_0x3f15bf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x55f69e{['afterInit'](){const _0x444e88=this['editor'];if(!_0x444e88['commands']['get']('insertTableOfContents'))return;_0x444e88['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1234b3=_0x444e88['plugins']['get']('TrackChangesEditing'),_0x44a332=_0x444e88['locale'];_0x1234b3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x437e83=>o(_0x44a332,'ELEMENT_TABLE_OF_CONTENTS',_0x437e83));}}class $t extends _0x55f69e{['afterInit'](){const _0x173cb4=this['editor'];if(!_0x173cb4['plugins']['has']('Title'))return;const _0x3fe835=_0x173cb4['plugins']['get']('TrackChangesEditing');_0x3fe835['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x173cb4['locale'],'ELEMENT_TITLE')),_0x173cb4['model']['document']['registerPostFixer'](_0xd6b0ad=>{let _0x3d64a6=!0x1;const _0x317527=Array['from'](_0x173cb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x116910,data:_0x5e69e1}of _0x317527){const {group:_0x40eca0}=_0x3fe835['_splitMarkerName'](_0x116910);if('suggestion'!==_0x40eca0||!_0x5e69e1['newRange'])continue;const _0x357c8c=_0x5e69e1['newRange'],_0x25f2a0=_0x357c8c['end']['nodeBefore'];if(!_0x25f2a0||!_0x25f2a0['is']('element','title-content'))continue;if(!_0x357c8c['start']['isTouching'](_0x357c8c['end']))continue;const _0x207f1c=_0x173cb4['model']['schema']['getNearestSelectionRange'](_0x357c8c['end'],'forward');if(_0x207f1c&&_0x207f1c['isCollapsed']){const _0x1f8d4f=_0xd6b0ad['createRange'](_0x357c8c['start'],_0x207f1c['start']);_0x1f8d4f['isEqual'](_0x357c8c)||(_0xd6b0ad['updateMarker'](_0x116910,{'range':_0x1f8d4f}),_0x3d64a6=!0x0);}_0x3d64a6||(_0xd6b0ad['removeMarker'](_0x116910),_0x3d64a6=!0x0);}return _0x3d64a6;});}}class Bt extends _0x55f69e{['afterInit'](){const _0x9a4da4=this['editor'],_0x5e4ea1=_0x9a4da4['plugins']['get']('TrackChangesEditing');_0x9a4da4['plugins']['has']('UndoEditing')&&(_0x5e4ea1['enableCommand']('undo'),_0x5e4ea1['enableCommand']('redo'));}}class xt extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x26dc29=this['editor'];if(!_0x26dc29['plugins']['has']('TableCaptionEditing'))return;_0x26dc29['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x55f69e{['tableProperties'];['tableCellProperties'];constructor(_0x5dd72e){super(_0x5dd72e),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';}['afterInit'](){const _0x260b5c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xd2c754 of this['tableProperties'])_0x260b5c['enableCommand'](_0xd2c754,(_0x3892d1,_0x4f123f)=>{const _0x3d961a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xd2c754,[_0x3d961a],this['tableProperties'],'tableProperties',_0x3892d1,_0x4f123f);});_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x260b5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41f056,_0x3a5033)=>this['handleDiscardAction'](this['tableProperties'],_0x41f056,_0x3a5033)),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46e86e of this['tableCellProperties'])_0x260b5c['enableCommand'](_0x46e86e,(_0x5847f7,_0x22195b)=>{const _0x2d100e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46e86e,_0x2d100e,this['tableCellProperties'],'tableCellProperties',_0x5847f7,_0x22195b);});_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x260b5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x35bc3b,_0x69b14f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x35bc3b,_0x69b14f)),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x260b5c['descriptionFactory']['registerDescriptionCallback'](_0x13f23d=>this['handleSuggestionDescription'](_0x13f23d));}['_handlePropertyChange'](_0x47ed6b,_0x52322d,_0x437478,_0x8ad59a,_0x1e4e9e,_0x585788){const _0x4fac54=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x585788['batch'],()=>{for(const _0x38c1df of _0x52322d){if(this['_getSuggestion'](_0x38c1df,_0x8ad59a))_0x1e4e9e(_0x585788);else{const _0xcfbfe7={};for(const _0x567ba8 of _0x437478){const _0x4412cb=_0x38c1df['getAttribute'](_0x567ba8);void 0x0!==_0x4412cb&&(_0xcfbfe7[_0x567ba8]=_0x4412cb);}_0x1e4e9e(_0x585788),_0x4fac54['markBlockFormat'](_0x38c1df,{'commandParams':[_0xcfbfe7]},[],_0x8ad59a);}}});}['handleDiscardAction'](_0x58fac6,_0x1b19b0,_0x119254){const _0xc1af95=_0x1b19b0[0x0]['start']['nodeAfter'],_0x319af6=_0x119254['commandParams'][0x0];this['editor']['model']['change'](_0x301b65=>{for(const _0x45bc8a of _0x58fac6)void 0x0!==_0x319af6[_0x45bc8a]?_0x301b65['setAttribute'](_0x45bc8a,_0x319af6[_0x45bc8a],_0xc1af95):_0x301b65['removeAttribute'](_0x45bc8a,_0xc1af95);});}['handleSuggestionDescription'](_0x289f6b){if(_0x289f6b['data'])switch(_0x289f6b['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'](_0x1f8b38,_0x5baa63){const _0x3c6a4e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x6e9214 of _0x3c6a4e['getSuggestions']({'skipNotAttached':!0x0})){const _0x39172e=_0x6e9214['getContainedElement']();if(_0x6e9214['subType']===_0x5baa63&&_0x39172e===_0x1f8b38)return _0x6e9214;}return null;}}const m='$elementName';class p extends _0x55f69e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x96452c,_0x43cbca,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5f4f12){function _0x52a928(_0x3eefff){return _0x3eefff['map'](_0x130a33=>String['fromCharCode'](_0x130a33))['join']('');}super(_0x5f4f12),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x34f522,_0x2029e4,_0x555c49,_0x8fda6f)=>{this['_model']['change'](()=>{for(const _0x1564a9 of[..._0x8fda6f,..._0x555c49])this['_model']['markers']['has'](_0x1564a9)&&_0x5f4f12['editing']['reconvertMarker'](_0x1564a9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5f4f12['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5f4f12['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5f4f12['config']['get']('trackChanges.trackFormatChanges'),_0x5f4f12['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5f4f12['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5f4f12,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x52a928([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x52a928([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x34]);}['init'](){const _0x2d89fa=this['editor'],_0x4365f9=(_0x2d2480,_0x40babf)=>{if('attribute'!=_0x2d2480)return'ck-suggestion-marker-'+_0x2d2480;const _0x151487=_0x40babf['split']('|')[0x0];return this['_isBlockAttribute'](_0x151487)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2d89fa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2053b2=>{const {id:_0x2f05b6,authorId:_0x330c7f,type:_0x2ddb94,subType:_0x41b710}=this['_splitMarkerName'](_0x2053b2['markerName']),_0x3d4680=['ck-suggestion-marker',_0x4365f9(_0x2ddb94,_0x41b710)];let _0x18022f=0xbb8;return this['activeMarkers']['includes'](_0x2053b2['markerName'])&&(_0x3d4680['push']('ck-suggestion-marker--active'),_0x18022f=0xbc2),'deletion'==_0x2ddb94&&(_0x18022f+=0x5),{'classes':_0x3d4680,'attributes':{'data-suggestion':_0x2f05b6,'data-author-id':_0x330c7f},'priority':_0x18022f};}}),_0x2d89fa['conversion']['for']('dataDowncast')['add'](_0x40c9e6=>{_0x40c9e6['on']('addMarker:suggestion',(_0x21b635,_0x1f2f0a,_0x333d2e)=>{if(!_0x333d2e['options']['showSuggestionHighlights'])return;const _0x32d7fd=_0x1f2f0a['item'];if(!_0x32d7fd)return;const _0x35bc=_0x333d2e['mapper']['toViewElement'](_0x32d7fd);_0x2d89fa['model']['schema']['isObject'](_0x32d7fd)&&_0x35bc&&!_0x35bc['getCustomProperty']('widget')&&_0x35bc['is']('containerElement')&&_0x146003(_0x35bc,_0x333d2e['writer']);},{'priority':'high'});}),_0x2d89fa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x31d0b4,_0x26ee4d)=>{if(!_0x26ee4d['options']['showSuggestionHighlights'])return null;const {type:_0x4c8cf8,subType:_0x1e62ed}=this['_splitMarkerName'](_0x31d0b4['markerName']);return{'classes':['ck-suggestion-marker',_0x4365f9(_0x4c8cf8,_0x1e62ed)],'priority':0xbb8};}});const _0x43c805=({showActiveMarkers:_0x10f225=!0x0,isAttributeSuggestion:_0x2f3ee2=!0x1}={})=>(_0x2f12fe,_0x3334ac,_0x4979cc)=>{if(!_0x3334ac['item'])return;const {id:_0x2e2f41,authorId:_0x11ac16}=this['_splitMarkerName'](_0x3334ac['markerName']);if(_0x2f3ee2){const _0x55189b=this['_suggestions']['get'](_0x2e2f41),_0x102b8b=this['_getAttributeKey'](_0x55189b);if(!this['_isBlockAttribute'](_0x102b8b))return;}if(_0x3334ac['item']['is']('selection'))return void _0x4979cc['consumable']['consume'](_0x3334ac['item'],_0x2f12fe['name']);const _0x252466=_0x4979cc['mapper']['toViewElement'](_0x3334ac['item']);if(_0x3334ac['item']['is']('element')&&_0x2d89fa['model']['schema']['isBlock'](_0x3334ac['item'])&&!_0x252466['getCustomProperty']('addHighlight')){_0x4979cc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x252466),_0x4979cc['writer']['setAttribute']('data-suggestion',_0x2e2f41,_0x252466),_0x4979cc['writer']['setAttribute']('data-author-id',_0x11ac16,_0x252466),_0x4979cc['mapper']['bindElementToMarker'](_0x252466,_0x3334ac['markerName']),_0x10f225&&(this['activeMarkers']['includes'](_0x3334ac['markerName'])?_0x4979cc['writer']['addClass']('ck-suggestion-marker--active',_0x252466):_0x4979cc['writer']['removeClass']('ck-suggestion-marker--active',_0x252466));for(const _0x1574ce of _0x2d89fa['model']['createRangeIn'](_0x3334ac['item'])['getItems']())_0x4979cc['consumable']['consume'](_0x1574ce,_0x2f12fe['name']);_0x4979cc['consumable']['consume'](_0x3334ac['item'],_0x2f12fe['name']);}};_0x2d89fa['conversion']['for']('dataDowncast')['add'](_0x503592=>{_0x503592['on']('addMarker:suggestion:formatBlock',(_0x1f1c40,_0x36969b,_0x29ce96)=>{_0x29ce96['options']['showSuggestionHighlights']&&_0x43c805({'showActiveMarkers':!0x1})(_0x1f1c40,_0x36969b,_0x29ce96);},{'priority':'highest'});}),_0x2d89fa['conversion']['for']('dataDowncast')['add'](_0x261492=>{_0x261492['on']('addMarker:suggestion:attribute',(_0x56c640,_0x2c2cc0,_0x363c3f)=>{_0x363c3f['options']['showSuggestionHighlights']&&_0x43c805({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x56c640,_0x2c2cc0,_0x363c3f);},{'priority':'highest'});}),_0x2d89fa['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x28f3a3,_0x36a247)=>_0x36a247['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x28f3a3['substr'](0xb)}}),_0x2d89fa['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x551aba,{writer:_0x46154b})=>{let _0x3ae220='suggestion:'+_0x551aba['getAttribute']('suggestion-type')+':'+_0x551aba['getAttribute']('id');return _0x551aba['getAttribute']('marker-count')&&(_0x3ae220+=':'+_0x551aba['getAttribute']('marker-count')),_0x46154b['createElement']('$marker',{'data-name':_0x3ae220});}}),_0x2d89fa['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x3ccfb4=>{_0x3ccfb4['on']('addMarker:suggestion:formatBlock',_0x43c805(),{'priority':'high'});}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x5b879d=>{_0x5b879d['on']('addMarker:suggestion:attribute',_0x43c805({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x915aab=>{_0x915aab['on']('removeMarker:suggestion:formatBlock',(_0x234737,_0x3c6718,_0x3ec955)=>{const _0x2fbb5f=_0x3ec955['mapper']['markerNameToElements'](_0x3c6718['markerName']);if(_0x2fbb5f){for(const _0x97747a of _0x2fbb5f)_0x97747a['getCustomProperty']('addHighlight')||(_0x3ec955['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x97747a),_0x3ec955['writer']['removeAttribute']('data-suggestion',_0x97747a),_0x3ec955['writer']['removeAttribute']('data-author-id',_0x97747a),_0x3ec955['mapper']['unbindElementFromMarkerName'](_0x97747a,_0x3c6718['markerName']));}},{'priority':'high'});}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x3eb290=>{_0x3eb290['on']('removeMarker:suggestion:attribute',(_0x4adee3,_0x15dd09,_0xe37896)=>{const _0x4f96d3=_0xe37896['mapper']['markerNameToElements'](_0x15dd09['markerName']);if(!_0x4f96d3)return;const {id:_0x3c3f5d}=this['_splitMarkerName'](_0x15dd09['markerName']),_0x2a8749=this['_suggestions']['get'](_0x3c3f5d),_0x25273a=this['_getAttributeKey'](_0x2a8749);if(this['_isBlockAttribute'](_0x25273a)){for(const _0xb5a7f0 of _0x4f96d3)_0xb5a7f0['getCustomProperty']('addHighlight')||(_0xe37896['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xb5a7f0),_0xe37896['writer']['removeAttribute']('data-suggestion',_0xb5a7f0),_0xe37896['writer']['removeAttribute']('data-author-id',_0xb5a7f0),_0xe37896['mapper']['unbindElementFromMarkerName'](_0xb5a7f0,_0x15dd09['markerName']));}},{'priority':'high'});}),_0x2d89fa['model']['document']['registerPostFixer'](_0x2ea580=>{let _0x42b49b=!0x1;const _0x18f19b=Array['from'](_0x2d89fa['model']['document']['differ']['getChangedMarkers']()),_0x464220=new Set();for(const {name:_0x4a8a2d,data:_0x47389b}of _0x18f19b){const {group:_0x2acd97,type:_0x5ab620,subType:_0x24e3bb,id:_0x1a6125}=this['_splitMarkerName'](_0x4a8a2d);if('suggestion'!==_0x2acd97)continue;const _0x5eed72=this['_suggestions']['get'](_0x1a6125);if(null!=_0x47389b['newRange']){'formatInline'==_0x5ab620&&(_0x42b49b=_0x42b49b||Ut(_0x47389b['newRange'],_0x4a8a2d,_0x2ea580,_0x2d89fa['model']['schema']));const _0x12e1cd='attribute'==_0x5ab620&&this['_isBlockAttribute'](_0x24e3bb['split']('|')[0x0]);if(_0x47389b['newRange']['isCollapsed']||'$graveyard'==_0x47389b['newRange']['root']['rootName']||'formatBlock'==_0x5ab620&&!Ft(_0x47389b['newRange'])||_0x12e1cd&&!Ft(_0x47389b['newRange'])||'deletion'==_0x5ab620&&!(!Vt(_0x256fbe=_0x47389b['newRange'])&&!function(_0x34a0d5){return _0x34a0d5['start']['parent']==_0x34a0d5['end']['nodeBefore']&&_0x34a0d5['start']['isAtEnd'];}(_0x256fbe)))_0x2ea580['removeMarker'](_0x4a8a2d),_0x42b49b=!0x0;else{if(!_0x5eed72||!_0x5eed72['isInContent'])continue;if(_0x47389b['newRange']&&_0x47389b['oldRange']&&_0x47389b['newRange']['isEqual'](_0x47389b['oldRange']))continue;_0x464220['add'](_0x5eed72);}}}var _0x256fbe;return _0x464220['size']>0x0&&(_0x42b49b=!!this['_joinWithAdjacentSuggestions'](_0x464220)||_0x42b49b),_0x42b49b;}),_0x2d89fa['model']['document']['registerPostFixer'](_0x5c0137=>{let _0x3e393a=!0x1;for(const _0x4e0280 of _0x2d89fa['model']['document']['differ']['getChanges']())if('insert'==_0x4e0280['type'])for(const _0x163667 of this['_suggestions']['values']()){if(_0x163667['isMultiRange']||!_0x163667['isInContent'])continue;const _0x4a2a77='formatBlock'==_0x163667['type'],_0x1a734c=this['_getAttributeKey'](_0x163667),_0x4d8cb5=_0x1a734c&&this['_isBlockAttribute'](_0x1a734c);if(!_0x4a2a77&&!_0x4d8cb5)continue;const _0x284d63=_0x163667['getFirstRange']();if(_0x284d63['start']['parent']!=_0x284d63['end']['parent']&&!_0x284d63['end']['isAtEnd']){const _0x12da16=_0x2d89fa['model']['createPositionAt'](_0x284d63['start']['nodeAfter'],'end'),_0x4e44ab=_0x2d89fa['model']['createRange'](_0x284d63['start'],_0x12da16);_0x5c0137['updateMarker'](_0x163667['getFirstMarker'](),{'range':_0x4e44ab}),_0x3e393a=!0x0;}}return _0x3e393a;}),_0x2d89fa['model']['document']['registerPostFixer'](_0x41d826=>this['_processAttributeChanges'](_0x41d826)),_0x2d89fa['model']['document']['registerPostFixer'](_0x4d0c63=>!_0x4d0c63['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d0c63)),_0x2d89fa['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2d89fa['model']['document']['on']('change:data',(_0x1be88b,_0x29d299)=>{if(!_0x29d299['isLocal']||_0x29d299['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x247a09=_0x2d89fa['model']['document']['differ']['getChanges']();if(0x0==_0x247a09['length'])return;const _0x11b55b=[],_0x3a9d29=_0x247a09['filter'](_0x46c72b=>'attribute'==_0x46c72b['type']),_0x3ed86a=_0x247a09['filter'](_0x35fc9e=>'insert'==_0x35fc9e['type']&&'$text'!=_0x35fc9e['name']);for(const _0x336158 of _0x3a9d29)this['_isRegisteredAttribute'](_0x336158['attributeKey'])&&_0x11b55b['push']({'key':_0x336158['attributeKey'],'newValue':_0x336158['attributeNewValue'],'oldValue':_0x336158['attributeOldValue'],'range':Pt(_0x336158['range'],_0x2d89fa['model'])});for(const _0x5c90b5 of _0x3ed86a){if('rename'!=_0x5c90b5['action']&&'refresh'!=_0x5c90b5['action'])continue;const _0xedbcb4=Lt(_0x5c90b5['position']['nodeAfter'],_0x2d89fa['model']),_0x4ce723=_0x5c90b5['before'];'rename'==_0x5c90b5['action']&&_0x11b55b['push']({'key':m,'newValue':_0x5c90b5['name'],'oldValue':_0x4ce723['name'],'range':_0xedbcb4});for(const [_0x226db0,_0x320ce8]of _0x4ce723['attributes']){if(!this['_isRegisteredAttribute'](_0x226db0))continue;const _0x2c3e90=_0x5c90b5['attributes']['get'](_0x226db0);_0x320ce8!==_0x2c3e90&&_0x11b55b['push']({'key':_0x226db0,'newValue':_0x2c3e90,'oldValue':_0x320ce8,'range':_0xedbcb4});}for(const [_0x37c649,_0x30a6ed]of _0x5c90b5['attributes'])this['_isRegisteredAttribute'](_0x37c649)&&(_0x4ce723['attributes']['has'](_0x37c649)||_0x11b55b['push']({'key':_0x37c649,'newValue':_0x30a6ed,'oldValue':null,'range':_0xedbcb4}));}0x0!=_0x11b55b['length']&&_0x2d89fa['model']['enqueueChange'](_0x29d299,_0x1086be=>{const _0x50a57b=_0x55f5c8();for(const {range:_0x5ee070,key:_0x48bffb,oldValue:_0x33cfb8,newValue:_0x32bcb1}of _0x11b55b)this['markAttributeChange'](_0x5ee070,_0x48bffb,_0x33cfb8,_0x32bcb1,{'groupId':_0x50a57b});this['_reduceExistingSuggestions'](_0x1086be,_0x11b55b);});},{'priority':'lowest'}),_0x2d89fa['model']['markers']['on']('update:suggestion',(_0x490ace,_0x2d6a45,_0x2add07)=>{if(null==_0x2add07){const {id:_0xc3c3fd}=this['_splitMarkerName'](_0x2d6a45['name']),_0x132095=this['_suggestions']['get'](_0xc3c3fd);_0x132095&&_0x132095['addMarkerName'](_0x2d6a45['name']);}}),_0x2d89fa['model']['document']['on']('change:data',()=>{const _0x2cfe53=Array['from'](_0x2d89fa['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b6ecc=>'suggestion'===this['_splitMarkerName'](_0x4b6ecc['name'])['group']);if(0x0===_0x2cfe53['length'])return;_0x2cfe53['sort']((_0x396e2e,_0x31aca2)=>{const _0x48dc30=_0x396e2e['data']['oldRange'],_0x4673f4=_0x31aca2['data']['oldRange'];return null===_0x48dc30&&null===_0x4673f4?0x0:null===_0x48dc30&&null!==_0x4673f4?-0x1:null!==_0x48dc30&&null===_0x4673f4?0x1:_0x48dc30['start']['isBefore'](_0x4673f4['start'])?-0x1:0x1;});const _0x20a476=new Set(),_0x389f8f=new Set();for(const {name:_0x5b5051,data:_0x51f8dc}of _0x2cfe53){const {id:_0x1a8ef5}=this['_splitMarkerName'](_0x5b5051);if(null===_0x51f8dc['oldRange']){const _0x33fe44=this['_handleNewSuggestionMarker'](_0x5b5051);_0x389f8f['add'](_0x33fe44);}else{const _0x243c74=this['_suggestions']['get'](_0x1a8ef5);null!==_0x51f8dc['newRange']||_0x243c74['isInContent']?(_0x20a476['add'](_0x243c74['head']),_0x389f8f['add'](_0x243c74)):this['_removeSuggestion'](_0x243c74);}}_0x389f8f['size']>0x0&&this['_refreshSuggestionsChain'](_0x389f8f);for(const _0x1597d2 of _0x20a476)this['fire']('suggestionChanged',_0x1597d2);}),_0x2d89fa['model']['on']('applyOperation',(_0x11c23e,_0xf63fe0)=>{const _0x4ebbf0=_0xf63fe0[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ebbf0['isDocumentOperation'])return;if(_0x4ebbf0['batch']['isUndo']||!_0x4ebbf0['batch']['isLocal'])return;let _0x5e8dad,_0x32540a;switch(_0x4ebbf0['type']){case'insert':_0x5e8dad=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['position']),_0x32540a=_0x5e8dad['getShiftedBy'](_0x4ebbf0['howMany']);break;case'split':_0x5e8dad=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['splitPosition']),_0x32540a=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['moveTargetPosition']);break;case'move':_0x5e8dad=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['targetPosition']),_0x32540a=_0x5e8dad['getShiftedBy'](_0x4ebbf0['howMany']);break;default:return;}const _0x20a195=_0x2d89fa['model']['createRange'](_0x5e8dad,_0x32540a);_0x2d89fa['model']['change'](()=>{for(const {suggestion:_0x55c1ba,meta:_0x40b29c}of this['_findSuggestions'](_0x20a195)){if(_0x55c1ba['isMultiRange'])continue;if('formatInline'==_0x55c1ba['type'])continue;const _0x310840=this['_getAttributeKey'](_0x55c1ba);if(_0x310840&&this['_isBlockAttribute'](_0x310840)&&'split'!=_0x4ebbf0['type'])continue;const _0x48c3df=_0x55c1ba['data']&&_0x55c1ba['data']['multipleBlocks'];('formatBlock'!=_0x55c1ba['type']||'split'==_0x4ebbf0['type']&&!_0x48c3df)&&(_0x40b29c['containsRangeInObject']||'insertion'==_0x55c1ba['type']&&_0x40b29c['isOwn']||_0x55c1ba['getFirstRange']()['containsRange'](_0x20a195)&&this['_breakSuggestionMarker'](_0x55c1ba,_0x5e8dad,_0x32540a));}});},{'priority':'lowest'}),_0x2d89fa['model']['on']('deleteContent',(_0x131317,_0x4ef64e)=>{const _0x1d7f6c=_0x4ef64e[0x0],_0x4bde5c=_0x4ef64e[0x1];if(_0x4bde5c&&_0x4bde5c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1d7f6c['isCollapsed'])return;const _0x279a5d=_0x2d89fa['model']['schema'],{start:_0x5ae218,end:_0x3f886d}=_0x1d7f6c['getFirstRange'](),_0x846dbb=_0x5ae218['nodeAfter']&&_0x279a5d['isLimit'](_0x5ae218['nodeAfter'])?null:_0x279a5d['getNearestSelectionRange'](_0x5ae218,'forward'),_0x28067d=_0x3f886d['nodeBefore']&&_0x279a5d['isLimit'](_0x3f886d['nodeBefore'])?null:_0x279a5d['getNearestSelectionRange'](_0x3f886d,'backward'),_0xde6cd8=_0x2d89fa['model']['createRange'](_0x846dbb?_0x846dbb['start']:_0x5ae218,_0x28067d?_0x28067d['end']:_0x3f886d);_0x2d89fa['model']['change'](_0x3fd075=>{this['markDeletion'](_0xde6cd8);const _0x1f68d5=_0x2d89fa['model']['schema']['getNearestSelectionRange'](_0xde6cd8['start']);_0x1d7f6c['is']('documentSelection')?_0x3fd075['setSelection'](_0x1f68d5):_0x1d7f6c['setTo'](_0x1f68d5);}),_0x131317['stop']();},{'priority':_0x4d60ea['normal']+0xa}),_0x2d89fa['model']['on']('insertContent',(_0x4e395c,_0x13f6fd)=>{const _0x1cd4df=_0x13f6fd[_0x13f6fd['length']-0x1];_0x1cd4df&&_0x1cd4df['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2d89fa['model']['change'](()=>{let _0x9892d0=_0x2d89fa['model']['insertContent'](_0x13f6fd[0x0],_0x13f6fd[0x1],_0x13f6fd[0x2],{'forceDefaultExecution':!0x0});if(!_0x9892d0)return;_0x4e395c['return']=_0x9892d0['clone']();const _0x1bb81f=_0x9892d0['end']['nodeBefore'],_0x4311b7=_0x2d89fa['model']['schema'];_0x1bb81f&&_0x4311b7['isBlock'](_0x1bb81f)&&!_0x4311b7['isObject'](_0x1bb81f)&&(_0x9892d0=_0x2d89fa['model']['createRange'](_0x9892d0['start'],_0x2d89fa['model']['createPositionAt'](_0x1bb81f,'end'))),this['markInsertion'](_0x9892d0);}),_0x4e395c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1fca9c=new x(_0x2d89fa,this['_suggestions']);_0x2d89fa['commands']['add']('acceptSuggestion',_0x1fca9c),this['enableCommand']('acceptSuggestion');const _0x54a498=new R(_0x2d89fa,this['_suggestions']);_0x2d89fa['commands']['add']('discardSuggestion',_0x54a498),this['enableCommand']('discardSuggestion'),_0x2d89fa['commands']['add']('acceptAllSuggestions',new E(_0x2d89fa,_0x1fca9c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2d89fa['commands']['add']('discardAllSuggestions',new E(_0x2d89fa,_0x54a498,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2d89fa['commands']['add']('acceptSelectedSuggestions',new O(_0x2d89fa,_0x1fca9c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2d89fa['commands']['add']('discardSelectedSuggestions',new O(_0x2d89fa,_0x54a498,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b9560=_0x2d89fa['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b9560,'addComment',(_0x537ced,{threadId:_0xf77fee})=>{const _0x4a51dc=this['_suggestions']['get'](_0xf77fee);_0x4a51dc&&_0x4a51dc['commentThread']&&0x1===_0x4a51dc['commentThread']['length']&&this['_updateSuggestionData'](_0xf77fee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b9560,'removeComment',(_0xe6432,{threadId:_0x47bf1d})=>{const _0x47693c=this['_suggestions']['get'](_0x47bf1d);_0x47693c&&_0x47693c['commentThread']&&!_0x47693c['commentThread']['length']&&this['_updateSuggestionData'](_0x47bf1d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4cb63e){if(this['_adapter'])throw new _0x27812c('track-changes-adapter-already-set',this);this['_adapter']=_0x4cb63e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3574b9=!0x1,toJSON:_0x55bad5=!0x1}={}){const _0x1bf7a6=[];for(const _0x128812 of this['_suggestions']['values']())_0x3574b9&&!_0x128812['isInContent']||_0x1bf7a6['push'](_0x128812);return _0x55bad5?_0x1bf7a6['map'](_0x1da278=>_0x1da278['toJSON']()):_0x1bf7a6;}['getSuggestion'](_0x3b5710){const _0x3beee0=this['_suggestions']['get'](_0x3b5710);if(!_0x3beee0)throw new _0x27812c('track-changes-suggestion-not-found',this);return _0x3beee0;}['hasSuggestion'](_0x59384a){return this['_suggestions']['has'](_0x59384a);}['addSuggestionData'](_0x1e3870){const {authorId:_0x2244ff,id:_0x1360b9,attributes:_0x1eb72}=_0x1e3870,[_0x4fd358,_0x519b1c]=_0x1e3870['type']['split'](':'),_0x2d0347=this['_suggestions']['get'](_0x1360b9)||this['_createSuggestion'](_0x4fd358,_0x519b1c,_0x1360b9,_0x2244ff,_0x1eb72);if(this['_addThreadToSuggestion'](_0x2d0347),this['_checkSuggestionCorrectness'](_0x2d0347,_0x4fd358,_0x519b1c||null,_0x2244ff),_0x2d0347['createdAt']=_0x1e3870['createdAt'],_0x2d0347['_isDataLoaded']=!0x0,_0x1eb72&&_0x1eb72['@external']){const _0x5bf0db=_0x1eb72['@external'],_0x40e810=this['_getExternalAuthor'](_0x5bf0db['authorName']);_0x2d0347['authoredAt']=_0x5bf0db['createdAt'],_0x2d0347['author']=_0x40e810,_0x2d0347['isExternal']=!0x0;}else _0x2d0347['authoredAt']=_0x1e3870['createdAt'];switch(_0x1e3870['data']&&(_0x2d0347['data']=_0x1e3870['data']),_0x1e3870['attributes']&&(_0x2d0347['attributes']=_0x1e3870['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2d0347['_saved']=!0x0),this['_suggestionState']['get'](_0x2d0347)){case'notReady':this['_suggestionState']['set'](_0x2d0347,'dataReady');break;case'markerReady':_0x2d0347['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2d0347])),this['_refreshSuggestionsChain'](new Set([_0x2d0347])),this['_suggestionState']['set'](_0x2d0347,'ready'),this['fire']('suggestionLoaded',_0x2d0347)):this['_suggestionState']['set'](_0x2d0347,'removed');}return _0x2d0347;}['acceptSuggestion'](_0x202c86){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ce773 of _0x202c86['getAllAdjacentSuggestions']())_0x5ce773['accept']();});});}['discardSuggestion'](_0x3c6f79){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2db053 of _0x3c6f79['getAllAdjacentSuggestions']())_0x2db053['discard']();});});}['enableCommand'](_0x383110,_0x52fec7){const _0x26568c=this['editor']['commands']['get'](_0x383110);if(!_0x26568c)throw new _0x27812c('track-changes-command-not-found',this,{'commandName':_0x383110});if(this['_enabledCommands']['has'](_0x26568c))throw new _0x27812c('track-changes-enable-command-twice',this,{'commandName':_0x383110});this['_enabledCommands']['add'](_0x26568c),_0x52fec7&&_0x26568c['on']('execute',(_0x5993a7,_0x34cb42)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x34cb42['length']>0x0&&_0x34cb42[_0x34cb42['length']-0x1]&&_0x34cb42[_0x34cb42['length']-0x1]['forceDefaultExecution']?_0x34cb42['pop']():(_0x5993a7['return']=_0x52fec7((..._0x3a1b7c)=>_0x26568c['execute'](..._0x3a1b7c,{'forceDefaultExecution':!0x0}),..._0x34cb42),_0x5993a7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x355567){let _0x46feac,_0x2c27bc;const _0x3225ec=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46feac=_0x355567();}catch(_0x4978f5){_0x2c27bc=_0x4978f5;}return _0x3225ec||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c27bc&&_0x27812c['rethrowUnexpectedError'](_0x2c27bc,this),_0x46feac;}['markInsertion'](_0x46a4b1,_0x13bace=null,_0x846df5={}){if(_0x46a4b1['isCollapsed'])return null;const _0x5bc3c4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xebf2ae,meta:_0x489d7f}of this['_findSuggestions'](_0x46a4b1,'insertion'))if(_0x489d7f['isOwn']){if(!_0x489d7f['isNextTo']){if(_0x489d7f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0xebf2ae,_0x846df5))continue;return _0xebf2ae;}if(qt(_0xebf2ae,_0x846df5))return _0xebf2ae;this['_breakSuggestionMarker'](_0xebf2ae,_0x46a4b1['start'],_0x46a4b1['end']);break;}if(_0x13bace==_0xebf2ae['subType']&&qt(_0xebf2ae,_0x846df5)){const _0x5bd67d=_0xebf2ae['getFirstRange']();return _0x5bd67d['start']['isEqual'](_0x46a4b1['end'])?this['_setSuggestionRange'](_0xebf2ae,this['_model']['createRange'](_0x46a4b1['start'],_0x5bd67d['end'])):this['_setSuggestionRange'](_0xebf2ae,this['_model']['createRange'](_0x5bd67d['start'],_0x46a4b1['end'])),_0xebf2ae;}}const _0x1d77f8=_0x55f5c8(),_0x4bec98=_0x5bc3c4['id'],_0x52aaa4=_0x13bace?'insertion:'+_0x13bace:'insertion',_0x560054=this['_setSuggestionData']({'id':_0x1d77f8,'type':_0x52aaa4,'createdAt':new Date(),'authorId':_0x4bec98,'attributes':_0x846df5});return this['_addSuggestionMarker'](_0x52aaa4,_0x1d77f8,_0x4bec98,_0x46a4b1),_0x560054;}['markMultiRangeInsertion'](_0x48977e,_0x815c5d='multi',_0x1c7485={}){const _0x2def6b=this['editor']['plugins']['get']('Users')['me'],_0x19908b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x815c5d,'join');for(const _0x4f84b6 of this['getSuggestions']())if(_0x4f84b6['author']['id']==_0x2def6b['id']&&'insertion'==_0x4f84b6['type']&&_0x4f84b6['subType']==_0x815c5d&&qt(_0x4f84b6,_0x1c7485)&&(_0x19908b(_0x4f84b6['getRanges'](),_0x48977e)||_0x19908b(_0x48977e,_0x4f84b6['getRanges']()))){for(const _0xf4072e of _0x48977e)_0x4f84b6['addRange'](_0xf4072e);return _0x4f84b6;}for(const {suggestion:_0x3239d5,meta:_0x4215e6}of this['_findSuggestions'](_0x48977e,'insertion')){if(!_0x4215e6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4215e6['containsRangeInObject'])continue;if(!qt(_0x3239d5,_0x1c7485))continue;let _0x4e2b1f=!0x0;for(const _0x30dd3f of _0x3239d5['getRanges']())for(const _0x179ac5 of _0x48977e)if(!_0x30dd3f['containsRange'](_0x179ac5)){_0x4e2b1f=!0x1;break;}if(_0x4e2b1f)return _0x3239d5;}const _0xbbbf8f=_0x55f5c8(),_0x127ae6=_0x2def6b['id'],_0x178afa='insertion:'+_0x815c5d,_0x59c5ea=this['_setSuggestionData']({'id':_0xbbbf8f,'type':_0x178afa,'createdAt':new Date(),'authorId':_0x127ae6,'attributes':_0x1c7485});for(const _0x1bac0c of _0x48977e)this['_addSuggestionMarker'](_0x178afa,_0xbbbf8f,_0x127ae6,_0x1bac0c,u['getMultiRangeId']());return _0x59c5ea;}['markInlineFormat'](_0x5114ff,_0xd0e2c6,_0x2a76d2=null,_0x5d7064={}){if(_0x2a76d2=_0x2a76d2||Gt(_0xd0e2c6),_0x5114ff['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5b1534=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a76d2,'accept');return this['forceDefaultExecution'](()=>_0x5b1534([_0x5114ff],_0xd0e2c6,_0x5d7064)),null;}const _0x12119c=this['editor']['plugins']['get']('Users')['me'],_0x1914e4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a386d,meta:_0x49da37}of this['_findSuggestions'](_0x5114ff,'insertion'))_0x49da37['isOwn']&&!_0x49da37['isInsideObject']&&_0x1914e4['push'](..._0x5a386d['getRanges']());}const _0x262191=function(_0x2a4d6c,_0x3bf159){const _0x22012b=[];for(const _0x32f6b4 of _0x3bf159){const _0x124cd2=_0x2a4d6c['getIntersection'](_0x32f6b4);_0x124cd2&&_0x22012b['push'](_0x124cd2);}return _0x22012b;}(_0x5114ff,_0x1914e4),_0x5cdf96=function(_0x5215c9,_0x39bf5d){const _0x31c6e8=[_0x5215c9];for(const _0x291d92 of _0x39bf5d){let _0x56a242=0x0;for(;_0x56a242<_0x31c6e8['length'];){const _0x132a51=_0x31c6e8[_0x56a242]['getDifference'](_0x291d92);_0x31c6e8['splice'](_0x56a242,0x1,..._0x132a51),_0x56a242+=_0x132a51['length'];}}return _0x31c6e8;}(_0x5114ff,_0x1914e4);_0x262191['length']&&this['_model']['change'](()=>{for(const _0x1a469d of _0x262191){const _0x1e048b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a76d2,'accept');this['forceDefaultExecution'](()=>_0x1e048b([_0x1a469d],_0xd0e2c6,_0x5d7064));}});for(const _0x81377c of _0x5cdf96){let _0x455e73=null,_0x58ef14=_0x81377c['start'],_0x2e672e=_0x81377c['end'];for(const {suggestion:_0x26e424,meta:_0xf51dcc}of this['_findSuggestions'](_0x81377c,'formatInline')){if(!_0xf51dcc['isOwn'])continue;if(_0x26e424['subType']!=_0x2a76d2)continue;if(!qt(_0x26e424,_0x5d7064))continue;const _0x1a65f2=_0x26e424['getFirstRange']();if(_0x1a65f2['containsRange'](_0x81377c,!0x0))return null;_0x58ef14=_0x58ef14['isBefore'](_0x1a65f2['start'])?_0x58ef14:_0x1a65f2['start'],_0x2e672e=_0x2e672e['isAfter'](_0x1a65f2['end'])?_0x2e672e:_0x1a65f2['end'],_0x455e73?_0x1a65f2['start']['isBefore'](_0x455e73['getFirstRange']()['start'])?(_0x455e73['removeMarkers'](),_0x455e73=_0x26e424):_0x26e424['removeMarkers']():_0x455e73=_0x26e424;}const _0x3ca836=this['_model']['createRange'](_0x58ef14,_0x2e672e);if(_0x455e73)this['_setSuggestionRange'](_0x455e73,_0x3ca836);else{const _0x13e899=_0x55f5c8(),_0x2f7af7=_0x12119c['id'];this['_setSuggestionData']({'id':_0x13e899,'type':'formatInline:'+_0x2a76d2,'data':_0xd0e2c6,'createdAt':new Date(),'authorId':_0x2f7af7,'attributes':_0x5d7064}),this['_addSuggestionMarker']('formatInline:'+_0x2a76d2,_0x13e899,_0x2f7af7,_0x3ca836);}}return null;}['markBlockFormat'](_0x54870e,_0x2a2381,_0x25a856=[],_0x45b2f5=null,_0x1e6f90={}){_0x2a2381['formatGroupId']||(_0x2a2381['formatGroupId']=_0x2a2381['commandName']),_0x2a2381['multipleBlocks']=_0x54870e['is']('range'),_0x45b2f5=_0x45b2f5||Gt(_0x2a2381);const _0x2d6033=_0x25a856['map'](_0x3cdd57=>Lt(_0x3cdd57,this['_model'])),_0xe09f9e=_0x54870e['is']('range')?_0x54870e:Lt(_0x54870e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x38a5b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b2f5,'accept');return this['forceDefaultExecution'](()=>_0x38a5b5([_0xe09f9e],_0x2a2381,_0x1e6f90)),null;}_0x2d6033['push'](_0xe09f9e);let _0x10c84d=!0x0;for(const _0xf018ed of _0x2d6033)if(!this['_rangeIsInLocalUserInsertion'](_0xf018ed)){_0x10c84d=!0x1;break;}if(_0x10c84d&&'always'!==this['_trackFormatChanges']){const _0x202172=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b2f5,'accept');return this['forceDefaultExecution'](()=>_0x202172([_0xe09f9e],_0x2a2381,_0x1e6f90)),null;}let _0x1352fd=null,_0x334d6a=_0xe09f9e['start'],_0x5bd17b=_0xe09f9e['end'];for(const {suggestion:_0x3dc2a4,meta:_0x4443a9}of this['_findSuggestions'](_0xe09f9e,'formatBlock')){if(!_0x4443a9['isOwn'])continue;if(_0x4443a9['isNextTo']||_0x4443a9['containsRangeInObject']||_0x4443a9['isInsideObject'])continue;if(_0x3dc2a4['data']['formatGroupId']!=_0x2a2381['formatGroupId'])continue;if(!qt(_0x3dc2a4,_0x1e6f90))continue;const _0x1244b4=_0x3dc2a4['getFirstRange']();if(_0x3dc2a4['subType']==_0x45b2f5){if(_0x1244b4['containsRange'](_0xe09f9e,!0x0))return null;_0x334d6a=_0x334d6a['isBefore'](_0x1244b4['start'])?_0x334d6a:_0x1244b4['start'],_0x5bd17b=_0x5bd17b['isAfter'](_0x1244b4['end'])?_0x5bd17b:_0x1244b4['end'],_0x1352fd?_0x1244b4['start']['isBefore'](_0x1352fd['getFirstRange']()['start'])?(_0x1352fd['removeMarkers'](),_0x1352fd=_0x3dc2a4):_0x3dc2a4['removeMarkers']():_0x1352fd=_0x3dc2a4;}else{const _0x234908=_0xe09f9e['getIntersection'](_0x1244b4);this['_cutOutSuggestionMarker'](_0x3dc2a4,_0x234908);}}const _0x12bb8a=this['editor']['plugins']['get']('Users')['me'],_0x4af2ad=_0x55f5c8(),_0x40c62c=_0x12bb8a['id'];if(_0x1352fd)return this['_setSuggestionRange'](_0x1352fd,this['_model']['createRange'](_0x334d6a,_0x5bd17b)),_0x1352fd;{const _0x1bfff4=this['_setSuggestionData']({'id':_0x4af2ad,'type':'formatBlock:'+_0x45b2f5,'data':_0x2a2381,'createdAt':new Date(),'authorId':_0x40c62c,'attributes':_0x1e6f90});return this['_addSuggestionMarker']('formatBlock:'+_0x45b2f5,_0x4af2ad,_0x40c62c,this['_model']['createRange'](_0x334d6a,_0x5bd17b)),_0x1bfff4;}}['markMultiRangeBlockFormat'](_0x154b84,_0xbbb3f,_0x117695=[],_0x1dc52e=null,_0x202537={}){_0xbbb3f['formatGroupId']||(_0xbbb3f['formatGroupId']=_0xbbb3f['commandName']);const _0x1b642e=_0x154b84[0x0];_0xbbb3f['multipleBlocks']=_0x1b642e['is']('range'),_0x1dc52e=_0x1dc52e||Gt(_0xbbb3f);const _0x4a81d0=_0x117695['map'](_0x4f95b9=>Lt(_0x4f95b9,this['_model'])),_0x53e661=_0x1b642e['is']('range')?_0x154b84:_0x154b84['map'](_0x39f5ce=>Lt(_0x39f5ce,this['_model']));if('never'===this['_trackFormatChanges']){const _0x25881a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dc52e,'accept');return this['forceDefaultExecution'](()=>_0x25881a(_0x53e661,_0xbbb3f,_0x202537)),null;}_0x4a81d0['push'](..._0x53e661);let _0x150055=!0x0;for(const _0x40d80e of _0x4a81d0)if(!this['_rangeIsInLocalUserInsertion'](_0x40d80e)){_0x150055=!0x1;break;}if(_0x150055&&'always'!==this['_trackFormatChanges']){const _0x2b03a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dc52e,'accept');return this['forceDefaultExecution'](()=>_0x2b03a8(_0x53e661,_0xbbb3f,_0x202537)),null;}const _0x5cb00f=this['editor']['plugins']['get']('Users')['me'];for(const _0xaaa347 of this['getSuggestions']()){if(_0xaaa347['author']['id']!=_0x5cb00f['id'])continue;if('formatBlock'!=_0xaaa347['type']||_0xaaa347['data']['formatGroupId']!=_0xbbb3f['formatGroupId'])continue;if(!qt(_0xaaa347,_0x202537))continue;const _0x542e2e=_0xaaa347['subType']==_0x1dc52e;for(let _0x217f2d=0x0;_0x217f2d<_0x53e661['length'];_0x217f2d++){const _0x17ad42=_0x53e661[_0x217f2d];for(const _0x505f3e of _0xaaa347['getMarkers']()){const _0x42ae46=_0x505f3e['getRange']();if(_0x17ad42['isEqual'](_0x42ae46)){_0x542e2e?(_0x53e661['splice'](_0x217f2d,0x1),_0x217f2d--):_0xaaa347['removeMarker'](_0x505f3e['name']);break;}}}}if(0x0==_0x53e661['length'])return null;const _0x5dc05e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dc52e,'join');for(const _0x40dcf5 of this['getSuggestions']())if(_0x40dcf5['author']['id']==_0x5cb00f['id']&&'formatBlock'==_0x40dcf5['type']&&_0x40dcf5['data']['formatGroupId']==_0xbbb3f['formatGroupId']&&_0x40dcf5['subType']==_0x1dc52e&&qt(_0x40dcf5,_0x202537)&&(_0x5dc05e(_0x40dcf5['getRanges'](),_0x53e661)||_0x5dc05e(_0x53e661,_0x40dcf5['getRanges']()))){for(const _0xb3545d of _0x53e661)_0x40dcf5['addRange'](_0xb3545d);return _0x40dcf5;}const _0x3bcc27=_0x55f5c8(),_0x1fdaa0=_0x5cb00f['id'],_0x52c7d6='formatBlock:'+_0x1dc52e,_0x3a6c2c=this['_setSuggestionData']({'id':_0x3bcc27,'type':_0x52c7d6,'data':_0xbbb3f,'createdAt':new Date(),'authorId':_0x1fdaa0,'attributes':_0x202537});for(const _0x1adad7 of _0x53e661)this['_addSuggestionMarker'](_0x52c7d6,_0x3bcc27,_0x1fdaa0,_0x1adad7,u['getMultiRangeId']());return _0x3a6c2c;}['markDeletion'](_0x5f3341,_0x3498ec=null,_0x2243c1={}){if(_0x5f3341['isCollapsed'])return null;const _0x38b6c5=this['editor']['plugins']['get']('Users')['me'],_0x34aa62=new _0x46da37(_0x5f3341['start'],_0x5f3341['end']);for(const {suggestion:_0x2ef1de,meta:_0x5ed844}of this['_findSuggestions'](_0x34aa62,'insertion'))if(_0x5ed844['isOwn']&&!_0x5ed844['isNextTo']){if(_0x2ef1de['isMultiRange']){const _0x4ba639=_0x2ef1de['getRanges']()['filter'](_0x5b7765=>'$graveyard'!=_0x5b7765['root']['rootName']);_0x4ba639['every'](_0x49e379=>_0x34aa62['containsRange'](_0x49e379,!0x0))&&_0x2ef1de['discard']();if(_0x4ba639['some'](_0x20a9d9=>_0x20a9d9['containsRange'](_0x34aa62,!0x0))){const _0x1365d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3498ec,'accept');return this['forceDefaultExecution'](()=>_0x1365d6([_0x34aa62],null,_0x2243c1)),null;}}else{const _0x56af8c=_0x34aa62['getIntersection'](_0x2ef1de['getFirstRange']());null!==_0x56af8c&&_0x2ef1de['_onDiscard']([_0x56af8c],null,_0x2243c1);}}if(_0x34aa62['detach'](),_0x34aa62['isCollapsed']||'$graveyard'==_0x34aa62['root']['rootName'])return null;let _0x1522df=null,_0x2152b6=_0x34aa62['start'],_0xcfbfd9=_0x34aa62['end'];const _0x2084cd=this['_findSuggestions'](_0x34aa62,'deletion');for(const {suggestion:_0x1960e9,meta:_0x53bf69}of _0x2084cd){const _0x575f64=this['_model']['createRange'](_0x2152b6,_0xcfbfd9);if(_0x53bf69['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53bf69['containsRangeInObject']&&!_0x53bf69['isInsideObject'])){if(_0x1960e9['isMultiRange']){if(!qt(_0x1960e9,_0x2243c1))continue;let _0x15a1ad=!0x0;for(const _0x1278a2 of _0x1960e9['getRanges']()){if(_0x1278a2['containsRange'](_0x575f64,!0x0))return _0x1960e9;_0x575f64['containsRange'](_0x1278a2)||(_0x15a1ad=!0x1);}_0x15a1ad&&_0x1960e9['discard']();}else{const _0x3259d1=_0x1960e9['getFirstRange']();if(_0x3259d1['containsRange'](_0x575f64,!0x0))return _0x1960e9;if(!qt(_0x1960e9,_0x2243c1)){_0x575f64['containsRange'](_0x3259d1)?_0x1960e9['removeMarkers']():_0x3259d1['containsPosition'](_0x2152b6)?_0x2152b6=_0x3259d1['end']:_0x3259d1['containsPosition'](_0xcfbfd9)&&(_0xcfbfd9=_0x3259d1['start']);continue;}_0x2152b6=_0x2152b6['isBefore'](_0x3259d1['start'])?_0x2152b6:_0x3259d1['start'],_0xcfbfd9=_0xcfbfd9['isAfter'](_0x3259d1['end'])?_0xcfbfd9:_0x3259d1['end'],_0x2243c1=Object['assign']({},_0x1960e9['attributes']),_0x1522df?_0x3259d1['start']['isBefore'](_0x1522df['getFirstRange']()['start'])?(_0x1522df['removeMarkers'](),_0x1522df=_0x1960e9):_0x1960e9['removeMarkers']():_0x1522df=_0x1960e9;}}}if(_0x1522df)return this['_setSuggestionRange'](_0x1522df,this['_model']['createRange'](_0x2152b6,_0xcfbfd9)),_0x1522df;{const _0x36ede9=_0x55f5c8(),_0x766233=this['_model']['createRange'](_0x2152b6,_0xcfbfd9),_0x650915=_0x38b6c5['id'],_0x1c5fdf=_0x3498ec?'deletion:'+_0x3498ec:'deletion',_0x7cdf6e=this['_setSuggestionData']({'id':_0x36ede9,'type':_0x1c5fdf,'createdAt':new Date(),'authorId':_0x650915,'attributes':_0x2243c1});return this['_addSuggestionMarker'](_0x1c5fdf,_0x36ede9,_0x650915,_0x766233),_0x7cdf6e;}}['markMultiRangeDeletion'](_0x104a40,_0x2f0ecf='multi',_0x2b3086={}){const _0x1a78d6=this['editor']['plugins']['get']('Users')['me'],_0x14a5bd=_0x104a40['map'](_0x458997=>new _0x46da37(_0x458997['start'],_0x458997['end'])),_0x1610d5=new Set();for(const {suggestion:_0x49a576,meta:_0x41ea1f}of this['_findSuggestions'](_0x14a5bd,'insertion'))_0x41ea1f['isOwn']&&!_0x41ea1f['isNextTo']&&_0x1610d5['add'](_0x49a576);for(const _0x1883f7 of _0x1610d5)if(_0x1883f7['isMultiRange']){const _0x2e725b=_0x1883f7['getRanges']();(!_0x1883f7['attributes']||!_0x1883f7['attributes']['skipNestingCheck'])&&(_0x2e725b['every'](_0x36fa9e=>_0x14a5bd['some'](_0x228b76=>_0x228b76['containsRange'](_0x36fa9e,!0x0)))&&_0x1883f7['discard']());if(_0x14a5bd['every'](_0x49a69e=>_0x2e725b['some'](_0x16f8df=>_0x16f8df['containsRange'](_0x49a69e,!0x0)))){const _0x26e585=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ecf,'accept');return this['forceDefaultExecution'](()=>_0x26e585(_0x104a40,null,_0x2b3086)),null;}}else{const _0x1c85bc=_0x1883f7['getFirstRange']();_0x14a5bd['some'](_0x31dfa4=>_0x31dfa4['containsRange'](_0x1c85bc,!0x0))&&_0x1883f7['discard']();if(_0x14a5bd['every'](_0x351138=>_0x1c85bc['containsRange'](_0x351138,!0x0))){const _0x20e5d2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ecf,'accept');return this['forceDefaultExecution'](()=>_0x20e5d2(_0x14a5bd,null,_0x2b3086)),null;}}const _0x23664c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ecf,'join');let _0x57a792=null;for(const _0x5aa611 of this['getSuggestions']())if(_0x5aa611['author']['id']==_0x1a78d6['id']&&_0x5aa611['isInContent']&&'deletion'==_0x5aa611['type']&&_0x5aa611['subType']==_0x2f0ecf&&qt(_0x5aa611,_0x2b3086)&&(_0x23664c(_0x5aa611['getRanges'](),_0x14a5bd)||_0x23664c(_0x14a5bd,_0x5aa611['getRanges']()))){if(_0x57a792){if(_0x5aa611['commentThread']&&_0x5aa611['commentThread']['length'])continue;for(const _0x49b2a1 of _0x5aa611['getRanges']())_0x57a792['isIntersectingWithRange'](_0x49b2a1)||_0x57a792['addRange'](_0x49b2a1);_0x5aa611['removeMarkers']();}else{_0x57a792=_0x5aa611;for(const _0x4c7307 of _0x14a5bd)_0x5aa611['isIntersectingWithRange'](_0x4c7307)||_0x5aa611['addRange'](_0x4c7307);}}if(_0x57a792)return _0x57a792;_0x1610d5['clear']();for(const {suggestion:_0x575eef,meta:_0x2e15ab}of this['_findSuggestions'](_0x14a5bd,'deletion'))_0x2e15ab['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e15ab['containsRangeInObject']&&!_0x2e15ab['isInsideObject'])&&qt(_0x575eef,_0x2b3086)&&_0x1610d5['add'](_0x575eef);for(const _0x426b39 of _0x1610d5){const _0x499eda=_0x426b39['getRanges']();if(!_0x2b3086||!_0x2b3086['skipNestingCheck']){if(_0x14a5bd['every'](_0x2892c4=>_0x499eda['some'](_0x2b37af=>_0x2b37af['containsRange'](_0x2892c4,!0x0))))return _0x426b39;}(!_0x426b39['attributes']||!_0x426b39['attributes']['skipNestingCheck'])&&(_0x499eda['every'](_0xaf77dc=>_0x14a5bd['some'](_0x380291=>_0x380291['containsRange'](_0xaf77dc,!0x0)))&&_0x426b39['discard']());}const _0x2153d3=_0x55f5c8(),_0x3c499c=_0x1a78d6['id'],_0xaed2ac='deletion:'+_0x2f0ecf,_0xb1619d=this['_setSuggestionData']({'id':_0x2153d3,'type':_0xaed2ac,'createdAt':new Date(),'authorId':_0x3c499c,'attributes':_0x2b3086});for(const _0x46c11d of _0x14a5bd)_0x46c11d['detach'](),_0x46c11d['isCollapsed']||'$graveyard'==_0x46c11d['root']['rootName']||this['_addSuggestionMarker'](_0xaed2ac,_0x2153d3,_0x3c499c,_0x46c11d,u['getMultiRangeId']());return _0xb1619d;}['markAttributeChange'](_0xf7ab2e,_0x1d3faa,_0x4500cd,_0x2a0f75,_0x5fdf55){if(_0xf7ab2e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf4297d=this['editor']['plugins']['get']('Users')['me']['id'],_0x59f535=Array['from'](this['_suggestions']['values']())['filter'](_0x48bad6=>'attribute'==_0x48bad6['type']&&_0x48bad6['data']['key']==_0x1d3faa&&_0x48bad6['isIntersectingWithRange'](_0xf7ab2e));if('default'===this['_trackFormatChanges']){const _0x10cde2=this['_findSuggestions'](_0xf7ab2e,'insertion')['filter'](({meta:_0x597d3c})=>_0x597d3c['isOwn']&&!_0x597d3c['isInsideObject']&&!_0x597d3c['isNextTo'])['map'](({suggestion:_0x2a96af})=>_0x2a96af);_0x59f535['unshift'](..._0x10cde2);}const _0x460ccc=new Map([[_0xf7ab2e,_0x4500cd]]);for(const _0x2cf3cc of _0x59f535){const _0x4fd52c='attribute'==_0x2cf3cc['type']?_0x2cf3cc['data']['oldValue']:void 0x0,_0x3cb7d6=_0x2cf3cc['getFirstRange'](),_0x558e90=Array['from'](_0x460ccc['keys']())['find'](_0x27ea08=>_0x27ea08['isIntersecting'](_0x3cb7d6));if(!_0x558e90)continue;const _0x590a35=_0x558e90['getDifference'](_0x3cb7d6);this['_isBlockAttribute'](_0x1d3faa)&&'insertion'==_0x2cf3cc['type']&&0x0!=_0x590a35['length']||(_0x460ccc['delete'](_0x558e90),_0x590a35['forEach'](_0x124627=>{_0x460ccc['set'](_0x124627,_0x4500cd);}),'insertion'!=_0x2cf3cc['type']&&_0x4fd52c!=_0x2a0f75&&_0x460ccc['set'](_0x558e90['getIntersection'](_0x3cb7d6),_0x4fd52c));}const _0x1ebbb6=[];for(const [_0x52b91b,_0x57d729]of _0x460ccc){const _0x472ca9=_0x55f5c8(),_0x3544ea={'key':_0x1d3faa,'oldValue':_0x57d729,'newValue':_0x2a0f75};_0x1d3faa['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':_0x1d3faa});const _0x202da5=('attribute:'+(_0x1d3faa+'|'+Gt({'newValue':_0x2a0f75})))['substring'](0x0,0x3c),_0x1f17ce=this['_setSuggestionData']({'id':_0x472ca9,'type':_0x202da5,'data':_0x3544ea,'createdAt':new Date(),'authorId':_0xf4297d,'attributes':_0x5fdf55});_0x1ebbb6['push'](_0x1f17ce),this['_addSuggestionMarker'](_0x202da5,_0x472ca9,_0xf4297d,_0x52b91b);}return _0x1ebbb6;}['enableDefaultAttributesIntegration'](_0x589f1e){this['enableCommand'](_0x589f1e,(_0x19051d,..._0x4b252a)=>{this['_recordAttributeChanges'](()=>{_0x19051d(..._0x4b252a);});});}['registerBlockAttribute'](_0x2d4749){this['_blockAttributeKeys']['add'](_0x2d4749);}['registerInlineAttribute'](_0x48ee0e){this['_inlineAttributeKeys']['add'](_0x48ee0e);}['_getAttributeKey'](_0x83d8a3){return'attribute'==_0x83d8a3['type']?_0x83d8a3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x44434d,_0x23cfb6){const _0x1bd919=_0x44434d['getFirstMarker']();this['_model']['change'](_0x58f054=>{_0x58f054['updateMarker'](_0x1bd919,{'range':_0x23cfb6});});}['_addThreadToSuggestion'](_0x25f036){const _0x27919d=_0x25f036['id'],_0x5281c8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x27919d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5281c8,'threadId':_0x27919d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x642b2d=this['_commentsRepository']['getCommentThread'](_0x27919d);_0x642b2d['unbind']('isRemovable'),_0x642b2d['isRemovable']=!0x1,_0x25f036['commentThread']=_0x642b2d;}['_checkSuggestionCorrectness'](_0x4593b6,_0xc85595,_0x1d8e68,_0x28e419){if(_0x4593b6['type']!=_0xc85595||_0x4593b6['subType']!=_0x1d8e68||_0x4593b6['creator']['id']!=_0x28e419)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27812c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xd17da3,_0x52f851){const _0x3a9100=_0xd17da3['getFirstRange']();if(_0x52f851['isEqual'](_0x3a9100))_0xd17da3['removeMarkers']();else{if(_0x3a9100['containsRange'](_0x52f851)){const _0x204b76=this['_model']['createPositionAt'](_0x52f851['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd17da3,this['_model']['createRange'](_0x3a9100['start'],_0x204b76));const _0x25cf29=_0x55f5c8(),_0x277f53=_0xd17da3['creator']['id'],_0x1bb4fa=_0xd17da3['type']+':'+_0xd17da3['subType'];this['_setSuggestionData']({'id':_0x25cf29,'type':_0x1bb4fa,'createdAt':new Date(),'authorId':_0x277f53,'data':_0xd17da3['data'],'attributes':_0xd17da3['attributes']});const _0x47f981=this['_model']['createPositionAt'](_0x52f851['end']['parent'],'after'),_0x58d797=this['_model']['createRange'](_0x47f981,_0x3a9100['end']);this['_addSuggestionMarker'](_0x1bb4fa,_0x25cf29,_0x277f53,_0x58d797);}else{if(_0x3a9100['containsPosition'](_0x52f851['start'])){const _0x488e2d=this['_model']['createPositionAt'](_0x52f851['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd17da3,this['_model']['createRange'](_0x3a9100['start'],_0x488e2d));}else{const _0xa8461=this['_model']['createPositionAt'](_0x52f851['end']['parent'],'after');this['_setSuggestionRange'](_0xd17da3,this['_model']['createRange'](_0xa8461,_0x3a9100['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x783932){for(const {suggestion:_0x41d1a2,meta:_0xa967b}of this['_findSuggestions'](_0x783932,'insertion')){if(!_0xa967b['isOwn'])continue;const _0x359485=_0x41d1a2['getRanges']();for(const _0x4f0164 of _0x359485)if(!_0x783932['getDifference'](_0x4f0164)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x147381){const _0x5d02d7=this['editor']['plugins']['get']('Users')['getUser'](_0x147381);if(!_0x5d02d7)throw new _0x27812c('track-changes-user-not-found',this);return _0x5d02d7;}['_getExternalAuthor'](_0x33939e){const _0x1d7e0b=this['editor']['plugins']['get']('Users'),_0x18eeb2=_0xf1b1f('external:'+_0x33939e),_0x55cf82=_0x1d7e0b['getUser'](_0x18eeb2);return _0x55cf82||_0x1d7e0b['addUser']({'id':_0x18eeb2,'name':_0x33939e});}['_createSuggestion'](_0x5696db,_0x192587,_0x2e817f,_0x24b3f7,_0x300e66){const _0x214c8e=this['_getAuthorFromId'](_0x24b3f7),_0x1ddafe=this['_suggestionFactory']['buildSuggestion'](_0x5696db,_0x192587,_0x2e817f,_0x214c8e,_0x300e66,_0x555f90=>{this['_updateSuggestionData'](_0x2e817f,{'attributes':_0x555f90});const _0x1f7ba2=this['getSuggestion'](_0x2e817f);this['_joinWithAdjacentSuggestions'](new Set([_0x1f7ba2])),this['_refreshSuggestionsChain'](new Set([_0x1f7ba2]));});return this['listenTo'](_0x1ddafe,'accept',()=>{this['_updateSuggestionData'](_0x2e817f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1ddafe,'discard',()=>{this['_updateSuggestionData'](_0x2e817f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2e817f,_0x1ddafe),this['_suggestionState']['set'](_0x1ddafe,'notReady'),_0x1ddafe;}['_splitMarkerName'](_0x1231ad){const _0x35c981=_0x1231ad['split'](':');return{'group':_0x35c981[0x0],'type':_0x35c981[0x1],'subType':_0x35c981['length']>=0x5?_0x35c981[0x2]:null,'id':_0x35c981['length']<0x5?_0x35c981[0x2]:_0x35c981[0x3],'authorId':_0x35c981['length']<0x5?_0x35c981[0x3]:_0x35c981[0x4],'markerCount':0x6==_0x35c981['length']?_0x35c981[0x5]:null};}['_breakSuggestionMarker'](_0x2db3e5,_0x406f5a,_0x18c695){const _0x597b9c=_0x2db3e5['getFirstRange'](),_0x3a5733=_0x597b9c['start'],_0x52fc5d=_0x597b9c['end'];this['_setSuggestionRange'](_0x2db3e5,this['_model']['createRange'](_0x3a5733,_0x406f5a));const _0x3293ed=_0x55f5c8(),_0x5d7474=_0x2db3e5['creator']['id'],_0x2206d8=_0x2db3e5['type']+(_0x2db3e5['subType']?':'+_0x2db3e5['subType']:'');this['_setSuggestionData']({'id':_0x3293ed,'type':_0x2206d8,'createdAt':new Date(),'authorId':_0x5d7474,'originalSuggestionId':_0x2db3e5['id'],'attributes':_0x2db3e5['attributes'],'data':_0x2db3e5['data']});const _0x1f206b=this['_getAttributeKey'](_0x2db3e5);('formatBlock'==_0x2db3e5['type']||_0x1f206b&&this['_isBlockAttribute'](_0x1f206b))&&(_0x18c695=this['_model']['createPositionBefore'](_0x18c695['parent'])),this['_addSuggestionMarker'](_0x2206d8,_0x3293ed,_0x5d7474,this['_model']['createRange'](_0x18c695,_0x52fc5d));}['_findSuggestions'](_0x5ae102,_0x4d4254=null){const _0x3968a3=[],_0x3faab2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5ae102)||(_0x5ae102=[_0x5ae102]);for(const _0x38f24e of this['getSuggestions']()){if(!_0x38f24e['isInContent'])continue;if(_0x4d4254&&_0x38f24e['type']!=_0x4d4254)continue;let _0xafdd68=!0x1;for(const _0x2907db of _0x38f24e['getRanges']()){for(const _0x56bb6c of _0x5ae102){const _0x428583=_0x56bb6c['start']['isEqual'](_0x2907db['end'])||_0x56bb6c['end']['isEqual'](_0x2907db['start']);if(_0x428583||_0x56bb6c['getIntersection'](_0x2907db)){const _0x56f6cc=_0x56bb6c['containsRange'](_0x2907db)&&Ot(this['_model']['schema'],_0x2907db['start'],_0x56bb6c),_0x484f55=_0x2907db['containsRange'](_0x56bb6c)&&Ot(this['_model']['schema'],_0x56bb6c['start'],_0x2907db);_0x3968a3['push']({'suggestion':_0x38f24e,'meta':{'isOwn':_0x3faab2==_0x38f24e['author'],'isNextTo':_0x428583,'isInsideObject':_0x56f6cc,'containsRangeInObject':_0x484f55}}),_0xafdd68=!0x0;break;}}if(_0xafdd68)break;}}return _0x3968a3;}['_addSuggestionMarker'](_0x13f0f7,_0x3fd644,_0x5d0a89,_0x2fbc2c,_0x579cd4){this['_model']['change'](_0x258b7a=>{let _0x53ad0f='suggestion:'+_0x13f0f7+':'+_0x3fd644+':'+_0x5d0a89;_0x579cd4&&(_0x53ad0f=_0x53ad0f+':'+_0x579cd4),_0x258b7a['addMarker'](_0x53ad0f,{'range':_0x2fbc2c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2c25cb){const _0x1fa856=_0x2c25cb['previous'],_0x5bdc81=_0x2c25cb['next'];_0x2c25cb['previous']=null,_0x2c25cb['next']=null,null!=_0x1fa856&&_0x1fa856['next']==_0x2c25cb&&(_0x1fa856['next']=_0x5bdc81),null!=_0x5bdc81&&_0x5bdc81['previous']==_0x2c25cb&&(_0x5bdc81['previous']=_0x1fa856),'ready'==this['_suggestionState']['get'](_0x2c25cb)&&(this['_suggestionState']['set'](_0x2c25cb,'removed'),this['fire']('suggestionUnloaded',_0x2c25cb,_0x1fa856,_0x5bdc81));}['_setSuggestionData'](_0x18e41f){const _0x4d6df7=_0x18e41f['id'],_0x4cf951=this['addSuggestionData'](_0x18e41f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x9bfad3=this['editor']['plugins']['get']('PendingActions'),_0x414e29=_0x4cf951['hasComments'],_0x49d68b=_0x4cf951['subType']?_0x4cf951['type']+':'+_0x4cf951['subType']:_0x4cf951['type'],_0x20148c=this['editor']['locale'],_0x17e2dd=_0x9bfad3['add'](o(_0x20148c,'PENDING_ACTION_SUGGESTION')),_0x2bfd3b={'id':_0x4d6df7,'type':_0x49d68b,'hasComments':_0x414e29,'data':_0x18e41f['data']||null,'originalSuggestionId':_0x18e41f['originalSuggestionId']||null,'attributes':_0x4cf951['attributes']};this['_adapter']['addSuggestion'](_0x2bfd3b)['then'](_0x24e7cd=>{_0x4cf951['_saved']=!0x0,_0x9bfad3['remove'](_0x17e2dd),_0x24e7cd&&_0x24e7cd['createdAt']&&(this['_suggestions']['get'](_0x4d6df7)['createdAt']=_0x24e7cd['createdAt']);})['catch'](_0x22ff9c=>{throw _0x3fdb3b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4cf951['discard']();}),_0x4cf951['stopListening'](),this['_suggestions']['delete'](_0x4cf951['id']),this['_suggestionState']['delete'](_0x4cf951),_0x22ff9c;});}return _0x4cf951;}['_isBlockAttribute'](_0x9b3997){return this['_blockAttributeKeys']['has'](_0x9b3997);}['_updateSuggestionData'](_0x345943,_0x3b7b46){const _0x285c73=this['editor']['plugins']['get']('PendingActions'),_0x3cdb86=this['getSuggestion'](_0x345943);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3cdb86['_saved']){const _0x6d3f73=_0x285c73['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x345943,_0x3b7b46)['then'](()=>{_0x285c73['remove'](_0x6d3f73);});}else _0x3cdb86['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x345943,_0x3b7b46);});}}['_getSuggestionData'](_0x1bef22){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27812c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1bef22);}['_handleNewSuggestionMarker'](_0xb2b447){const {id:_0x11183a,type:_0xa72b43,subType:_0xd5bf43,authorId:_0x19f79}=this['_splitMarkerName'](_0xb2b447),_0x52571c=this['_suggestions']['get'](_0x11183a)||this['_createSuggestion'](_0xa72b43,_0xd5bf43,_0x11183a,_0x19f79,{});switch(this['_checkSuggestionCorrectness'](_0x52571c,_0xa72b43,_0xd5bf43,_0x19f79),this['_suggestionState']['get'](_0x52571c)){case'notReady':this['_getSuggestionData'](_0x11183a)['then'](_0x57bce3=>{let _0x32df7f=Promise['resolve']();_0x57bce3['hasComments']&&(_0x32df7f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x11183a})),_0x32df7f['then'](()=>{this['addSuggestionData'](_0x57bce3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x52571c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x11183a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x52571c,'ready'),this['fire']('suggestionLoaded',_0x52571c);break;case'ready':this['fire']('suggestionChanged',_0x52571c);}return _0x52571c['addMarkerName'](_0xb2b447),_0x52571c;}['_refreshSuggestionsChain'](_0x46f22d){const _0x56a0d0=Array['from'](_0x46f22d),_0x5b7633=_0x56a0d0['filter'](_0x98cfce=>'attribute'==_0x98cfce['type']);this['_refreshAttributeSuggestionsChain'](_0x5b7633);const _0x7c7225=_0x56a0d0['filter'](_0x11f79e=>!_0x11f79e['isMultiRange']&&'attribute'!=_0x11f79e['type']),_0xd0a9e0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40082d=>!_0x40082d['isMultiRange']&&'attribute'!=_0x40082d['type']),_0x148f71=_0xd0a9e0['filter'](_0x5c111c=>!_0x46f22d['has'](_0x5c111c)),_0x1799a3=new Map(_0xd0a9e0['map'](_0xe965d9=>[_0xe965d9,this['_suggestionFactory']['getSuggestionCallback'](_0xe965d9['type'],_0xe965d9['subType'],'chain')])),_0x4b9325=new Map(_0xd0a9e0['map'](_0x9170bd=>[_0x9170bd,_0x9170bd['getFirstRange']()])),_0xcd3562=new Set(),_0x214460=new Set();for(let _0x260df4=0x0;_0x260df4<_0x7c7225['length'];_0x260df4++)_0x597bad(_0x7c7225[_0x260df4],_0x7c7225,_0x260df4+0x1);for(let _0x50cbb6=0x0;_0x50cbb6<_0x7c7225['length'];_0x50cbb6++)_0x597bad(_0x7c7225[_0x50cbb6],_0x148f71,0x0);const _0x51b26e=new Set();for(let _0x3fb561=0x0;_0x3fb561<_0x7c7225['length'];_0x3fb561++){const _0x187c08=_0x7c7225[_0x3fb561];!_0x214460['has'](_0x187c08)&&_0x187c08['previous']&&(_0x51b26e['add'](_0x187c08['previous']),_0x187c08['previous']['next']===_0x187c08&&(_0x187c08['previous']['next']=null),_0x187c08['previous']=null),!_0xcd3562['has'](_0x187c08)&&_0x187c08['next']&&(_0x51b26e['add'](_0x187c08['next']),_0x187c08['next']['previous']===_0x187c08&&(_0x187c08['next']['previous']=null),_0x187c08['next']=null);}function _0x597bad(_0x1a14a3,_0x2291f7,_0x1250a8){for(let _0x39f7bc=_0x1250a8;_0x39f7bc<_0x2291f7['length'];_0x39f7bc++){const _0x116048=_0x19a718(_0x1a14a3,_0x2291f7[_0x39f7bc]);_0x116048&&(_0x116048[0x0]['next']=_0x116048[0x1],_0x116048[0x1]['previous']=_0x116048[0x0],_0xcd3562['add'](_0x116048[0x0]),_0x214460['add'](_0x116048[0x1]));}}function _0x19a718(_0x3e1cc5,_0x24f344){if(_0x3e1cc5['author']['id']!==_0x24f344['author']['id'])return null;const _0x5f42ee=_0x1799a3['get'](_0x3e1cc5)(_0x3e1cc5,_0x24f344,_0x4b9325['get'](_0x3e1cc5),_0x4b9325['get'](_0x24f344));if(!_0x5f42ee)return null;return _0x1799a3['get'](_0x24f344)(_0x3e1cc5,_0x24f344,_0x4b9325['get'](_0x3e1cc5),_0x4b9325['get'](_0x24f344))?_0x5f42ee[0x1]['commentThread']&&_0x5f42ee[0x1]['commentThread']['length']?null:_0x5f42ee:null;}_0x51b26e['size']&&this['_refreshSuggestionsChain'](_0x51b26e);}['_refreshAttributeSuggestionsChain'](_0x22e163){if(0x0==_0x22e163['length'])return;const _0x3d28d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b6ce9=>'attribute'==_0x3b6ce9['type']&&_0x3b6ce9['_isDataLoaded']),_0x473953=[],_0x4355f5=new Map();for(const _0x3a9744 of _0x3d28d1){const _0x55a9d6=_0xf1b1f(_0x3a9744['attributes']);_0x4355f5['has'](_0x55a9d6)||(_0x4355f5['set'](_0x55a9d6,_0x473953['length']),_0x473953['push']([]));const _0x46bdf4=_0x4355f5['get'](_0x55a9d6);_0x473953[_0x46bdf4]['push'](_0x3a9744);}!(function(){_0x473953['sort']((_0x21a87a,_0x5c37a1)=>{const _0x3f4127=_0x21a87a[0x0]['createdAt'],_0x419ffc=_0x5c37a1[0x0]['createdAt'];return _0x3f4127==_0x419ffc?_0x21a87a[0x0]['attributes']['groupId']<_0x5c37a1[0x0]['attributes']['groupId']?-0x1:0x1:_0x3f4127<_0x419ffc?-0x1:0x1;});for(const _0x226279 of _0x473953)_0x226279['sort']((_0x11abfe,_0x29006a)=>_0x11abfe['id']<_0x29006a['id']?-0x1:0x1);}());for(let _0x23e3a2=0x0;_0x23e3a2<_0x473953['length'];_0x23e3a2++){if(0x0==_0x473953[_0x23e3a2]['length'])continue;const _0x25d28e=[];for(let _0x41f3dd=_0x23e3a2+0x1;_0x41f3dd<_0x473953['length'];_0x41f3dd++)0x0!=_0x473953[_0x41f3dd]['length']&&_0x63dc3a(_0x473953[_0x23e3a2],_0x473953[_0x41f3dd])&&_0x25d28e['push'](_0x41f3dd);for(const _0x2f6cc2 of _0x25d28e)_0x473953[_0x23e3a2]=_0x473953[_0x23e3a2]['concat'](_0x473953[_0x2f6cc2]),_0x473953[_0x2f6cc2]=[];}for(const _0x2fd11a of _0x473953)for(let _0x15078e=0x0;_0x15078e<_0x2fd11a['length'];_0x15078e++){const _0xf8e12a=_0x2fd11a[_0x15078e+0x1]||null;_0x2fd11a[_0x15078e]['next']!==_0xf8e12a&&(_0x2fd11a[_0x15078e]['next']=_0xf8e12a);}for(const _0x558431 of _0x473953)for(let _0x54963b=0x0;_0x54963b<_0x558431['length'];_0x54963b++){const _0x5f3bd7=_0x558431[_0x54963b-0x1]||null;_0x558431[_0x54963b]['previous']!==_0x5f3bd7&&(_0x558431[_0x54963b]['previous']=_0x5f3bd7);}function _0x63dc3a(_0x2c6dff,_0x4f7ec8){if(_0x2c6dff[0x0]['attributes']['groupId']!==_0x4f7ec8[0x0]['attributes']['groupId']&&_0x2c6dff[0x0]['author']!==_0x4f7ec8[0x0]['author'])return!0x1;if(!function(_0x244415,_0xc77089){if(!_0x244415['hasComments']&&!_0xc77089['hasComments'])return!0x0;if(_0x244415['hasComments']&&_0xc77089['hasComments'])return!0x1;if(_0x244415['hasComments']&&_0xc77089['createdAt']<_0x244415['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xc77089['hasComments']&&_0x244415['createdAt']<_0xc77089['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c6dff[0x0],_0x4f7ec8[0x0]))return!0x1;const _0x290ab9=Tt(_0x2c6dff[0x0]['attributes'],'groupId'),_0x1fe236=Tt(_0x4f7ec8[0x0]['attributes'],'groupId');if(!_0x4b5161(_0x290ab9,_0x1fe236))return!0x1;return!!_0x2c6dff['every'](_0x32a6a4=>_0x4f7ec8['some'](_0x3decb2=>_0x32a6a4['getFirstRange']()['isEqual'](_0x3decb2['getFirstRange']())))&&_0x4f7ec8['every'](_0x52ba9d=>_0x2c6dff['some'](_0x30076d=>_0x52ba9d['getFirstRange']()['isEqual'](_0x30076d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46f30a){const _0x476661=Array['from'](_0x46f30a),_0x547935=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1df928=_0x547935['filter'](_0x325b8b=>!_0x46f30a['has'](_0x325b8b)),_0x5a56d8=new Map(_0x476661['map'](_0x427618=>[_0x427618,this['_suggestionFactory']['getSuggestionCallback'](_0x427618['type'],_0x427618['subType'],'join')])),_0x2298e9=new Map(_0x547935['map'](_0x1b7b5e=>[_0x1b7b5e,_0x1b7b5e['getRanges']()]));for(let _0x86b726=0x0;_0x86b726<_0x476661['length'];_0x86b726++){if(_0x1a0557(this,_0x476661[_0x86b726],_0x476661,_0x86b726+0x1))return!0x0;}for(let _0x5449fc=0x0;_0x5449fc<_0x476661['length'];_0x5449fc++){if(_0x1a0557(this,_0x476661[_0x5449fc],_0x1df928,0x0))return!0x0;}return!0x1;function _0x1a0557(_0x4f5209,_0x522d28,_0x2a9cc8,_0x8a4d3f){for(let _0x22520b=_0x8a4d3f;_0x22520b<_0x2a9cc8['length'];_0x22520b++){const _0x3a9406=_0x2a9cc8[_0x22520b];if(_0x3a9406['type']!==_0x522d28['type']||_0x3a9406['author']['id']!==_0x522d28['author']['id']||_0x3a9406['subType']!==_0x522d28['subType'])continue;if(!Jt(_0x522d28,_0x3a9406))continue;if('attribute'==_0x522d28['type']&&_0x522d28['data']['oldValue']!=_0x3a9406['data']['oldValue'])continue;if('attribute'==_0x522d28['type']&&_0x4f5209['_isBlockAttribute'](_0x522d28['data']['key']))continue;if('formatBlock'==_0x522d28['type']){const _0x51d577=_0x4f5209['editor']['model'],_0x384141=_0x522d28['getContainedElement']();if(_0x384141&&(_0x51d577['schema']['isObject'](_0x384141)||_0x51d577['schema']['isLimit'](_0x384141)))continue;}const _0x4842fe=_0x5a56d8['get'](_0x522d28),_0x3cf00c=_0x2298e9['get'](_0x522d28),_0x14e2c7=_0x2298e9['get'](_0x3a9406),_0x8d8e03=_0x522d28['commentThread']&&_0x522d28['commentThread']['length'],_0x155b2d=_0x3a9406['commentThread']&&_0x3a9406['commentThread']['length'];if(!_0x8d8e03&&_0x4842fe(_0x14e2c7,_0x3cf00c))return _0x4f5209['_joinSuggestions'](_0x3a9406,_0x522d28),_0x2298e9['delete'](_0x522d28),!0x0;if(!_0x155b2d&&_0x4842fe(_0x3cf00c,_0x14e2c7))return _0x4f5209['_joinSuggestions'](_0x522d28,_0x3a9406),_0x2298e9['delete'](_0x3a9406),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2331ba,_0x52ee54){if(_0x2331ba['isMultiRange']){for(const _0x2ff7fe of _0x52ee54['getRanges']())_0x2331ba['addRange'](_0x2ff7fe);}else{const _0x26729b=_0x52ee54['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2331ba,this['_model']['createRange'](_0x2331ba['getFirstRange']()['start'],_0x26729b));}_0x52ee54['removeMarkers']();}['_getMarkerAnnouncementText'](_0x402625,_0x58b6da,_0x6f79db){const _0x1cedca=_0x402625['startsWith']('format')||_0x402625['startsWith']('attribute')?'FORMATTING':_0x402625['toUpperCase']();return o(this['editor']['locale'],_0x58b6da+'_'+_0x1cedca+'_SUGGESTION_ANNOUNCEMENT',_0x6f79db);}['_initAriaMarkerChangeAnnouncements'](){const _0x15d795=this['editor'];if(!_0x15d795['ui'])return;const {ariaLiveAnnouncer:_0x142b0c}=_0x15d795['ui'];_0x571476(this['_model'],({left:_0x19a7aa,entered:_0x58caa7})=>{for(const _0x1bd730 of _0x19a7aa){const {group:_0x122c38,type:_0x25affe}=this['_splitMarkerName'](_0x1bd730['name']);if('suggestion'===_0x122c38){_0x142b0c['announce'](this['_getMarkerAnnouncementText'](_0x25affe,'LEAVE'));break;}}for(const _0x49e48b of _0x58caa7){const {group:_0x543efc,type:_0x4c16ee}=this['_splitMarkerName'](_0x49e48b['name']);if('suggestion'===_0x543efc){_0x142b0c['announce'](this['_getMarkerAnnouncementText'](_0x4c16ee,'ENTER',_0x25e90c(_0x5eb0b4)));break;}}});}['_processAttributeChanges'](_0x62e9c0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3dc7db=this['editor'],_0x2a9c52=_0x3dc7db['model']['document']['differ']['getChanges']();if(0x0==_0x2a9c52['length'])return!0x1;const _0x19e698=[],_0x5c270d=_0x2a9c52['filter'](_0x10b315=>'attribute'==_0x10b315['type']),_0x5f510a=_0x2a9c52['filter'](_0x6835ef=>'insert'==_0x6835ef['type']&&'$text'!=_0x6835ef['name']),_0x4215ac=_0x2a9c52['filter'](_0x2c6c7e=>'remove'==_0x2c6c7e['type']&&'$text'!=_0x2c6c7e['name']);for(const _0x47a699 of _0x5c270d)_0x19e698['push']({'key':_0x47a699['attributeKey'],'newValue':_0x47a699['attributeNewValue'],'oldValue':_0x47a699['attributeOldValue'],'range':Pt(_0x47a699['range'],_0x3dc7db['model'])});for(const _0x585742 of _0x5f510a){const _0x2dcc63=_0x4215ac['find'](_0x560785=>_0x560785['position']['isEqual'](_0x585742['position']));_0x2dcc63&&_0x19e698['push']({'key':m,'newValue':_0x585742['name'],'oldValue':_0x2dcc63['name'],'range':_0x3dc7db['model']['createRangeOn'](_0x585742['position']['nodeAfter'])});}return 0x0!=_0x19e698['length']&&this['_reduceExistingSuggestions'](_0x62e9c0,_0x19e698);}['_processAttributeSuggestions'](_0x5883ef){let _0x3b2e9=!0x1;const _0x327aea=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x50182f=>_0x50182f['data']['newRange']&&_0x50182f['name']['startsWith']('suggestion:attribute:'));for(const _0x4d733e of _0x327aea){const {subType:_0xb0448f,id:_0x249dc4}=this['_splitMarkerName'](_0x4d733e['name']),_0x544698=_0xb0448f['split']('|')[0x0];for(const _0x2293d2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2293d2['id']!=_0x249dc4&&'attribute'==_0x2293d2['type']&&_0x2293d2['data']&&_0x2293d2['data']['key']==_0x544698&&_0x2293d2['getFirstRange']()['isIntersecting'](_0x4d733e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2293d2,_0x4d733e['data']['newRange'],_0x5883ef),_0x3b2e9=!0x0);}return _0x3b2e9;}['_recordAttributeChanges'](_0x477474){this['_recordAttributeSuggestions']=!0x0,_0x477474();}['_isRegisteredAttribute'](_0x1768bd){const _0x202d22=this['_isBlockAttribute'](_0x1768bd),_0x3a8071=this['_inlineAttributeKeys']['has'](_0x1768bd);return _0x202d22||_0x3a8071;}['_reduceExistingSuggestions'](_0x326259,_0x3d4d86){if(0x0==_0x3d4d86['length'])return!0x1;let _0x42cc3b=!0x1;for(const _0x3e901d of _0x3d4d86){const _0x590656=this['_findSuggestions'](_0x3e901d['range'],'attribute')['filter'](_0x2f2135=>!_0x2f2135['meta']['isNextTo'])['map'](_0x586625=>_0x586625['suggestion']),_0x57224a=_0xf1b1f({'newValue':_0x3e901d['newValue']});_0x590656['filter'](_0x5e684f=>{const [_0xd3fa33,_0x2a9a92]=_0x5e684f['subType']['split']('|');return _0xd3fa33==_0x3e901d['key']&&_0x2a9a92!=_0x57224a;})['forEach'](_0x4ade68=>{this['_reduceSuggestionAttributeRange'](_0x4ade68,_0x3e901d['range'],_0x326259),_0x42cc3b=!0x0;});}return _0x42cc3b;}['_reduceSuggestionAttributeRange'](_0x45ab1e,_0x5b1727,_0x2b2bfa){const _0x1efdb1=_0x45ab1e['getFirstRange']()['getDifference'](_0x5b1727);0x0!==_0x1efdb1['length']?0x1!==_0x1efdb1['length']?this['_breakSuggestionMarker'](_0x45ab1e,_0x5b1727['start'],_0x5b1727['end']):this['_setSuggestionRange'](_0x45ab1e,_0x1efdb1[0x0]):_0x2b2bfa['removeMarker'](_0x45ab1e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d20c3){this['_editor']=_0x4d20c3,this['_model']=_0x4d20c3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22daad,_0x71197d,_0x1071da,_0x22fef5,_0x16aaeb,_0x41618b){return new u(this['_model'],{'type':_0x22daad,'subType':_0x71197d,'id':_0x1071da,'author':_0x22fef5,'creator':_0x22fef5,'attributes':_0x16aaeb,'onAttributesChange':_0x41618b,'onAccept':(..._0x5d8d95)=>this['getSuggestionCallback'](_0x22daad,_0x71197d,'accept')(..._0x5d8d95),'onDiscard':(..._0x4ec654)=>this['getSuggestionCallback'](_0x22daad,_0x71197d,'discard')(..._0x4ec654)});}['registerCustomCallback'](_0x47247d,_0xae605d,_0x1b0539,_0x73d709){const _0x58f00d=_0x47247d+':'+_0xae605d+':'+_0x1b0539;this['_customCallbacks']['set'](_0x58f00d,_0x73d709);}['getSuggestionCallback'](_0x33f950,_0x2d2ca4,_0x326cb9){const _0x2ab9ae=_0x33f950+':'+_0x2d2ca4+':'+_0x326cb9;return this['_customCallbacks']['get'](_0x2ab9ae)||this['_defaultCallbacks']['get'](_0x33f950+':'+_0x326cb9);}['_registerDefaultCallbacks'](){const _0x599756=()=>!0x1,_0x4aaee4=_0x10c46c=>{_0x10c46c['sort']((_0xaacc89,_0x551984)=>_0xaacc89['start']['isBefore'](_0x551984['start'])?0x1:-0x1),this['_model']['change'](_0x417662=>{for(const _0x3d29ca of _0x10c46c){let _0x1f9911;_0x1f9911=_0x3d29ca['end']['isAtEnd']&&_0x3d29ca['end']['parent']==_0x3d29ca['start']['nodeAfter']?_0x417662['createSelection'](_0x3d29ca['start']['nodeAfter'],'on'):_0x417662['createSelection'](_0x3d29ca),this['_model']['deleteContent'](_0x1f9911,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1054d7=(_0xab26e4,_0x2099d6)=>{_0x2099d6&&this['_model']['change'](_0x1205e7=>{const {commandName:_0x38665f,commandParams:_0x358adb=[]}=_0x2099d6,_0x49960a=_0xab26e4['map'](_0x23c21a=>(Vt(_0x23c21a)&&(_0x23c21a=this['_model']['createRange'](_0x23c21a['end'])),_0x23c21a))['filter'](_0x59f1f7=>'$graveyard'!==_0x59f1f7['root']['rootName']);if(_0x49960a['length']<0x1)return;const _0x5517d2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x436459=>_0x46da37['fromRange'](_0x436459));_0x1205e7['setSelection'](_0x49960a);for(const _0x552ae9 of this['_editor']['commands']['commands']())_0x552ae9['refresh']();_0x358adb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x38665f,..._0x358adb);const _0x10df7a=_0x5517d2['filter'](_0x14a50a=>'$graveyard'!=_0x14a50a['root']['rootName']);_0x10df7a['length']>0x0&&_0x1205e7['setSelection'](_0x10df7a);for(const _0x2298c2 of _0x5517d2)_0x2298c2['detach']();});},_0x355e03=(_0x111cb1,_0x2e9f89)=>0x1==_0x111cb1['length']&&0x1==_0x2e9f89['length']&&_0x111cb1[0x0]['end']['isEqual'](_0x2e9f89[0x0]['start']),_0x5a324a=(_0x2b9dd0,_0x446a85,_0x1a1202,_0x959f15)=>Ht(_0x2b9dd0,_0x446a85,_0x1a1202,_0x959f15,this['_model'])?[_0x2b9dd0,_0x446a85]:Ht(_0x446a85,_0x2b9dd0,_0x959f15,_0x1a1202,this['_model'])?[_0x446a85,_0x2b9dd0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x599756),this['_defaultCallbacks']['set']('insertion:discard',_0x4aaee4),this['_defaultCallbacks']['set']('insertion:join',_0x355e03),this['_defaultCallbacks']['set']('insertion:chain',_0x5a324a),this['_defaultCallbacks']['set']('deletion:accept',_0x4aaee4),this['_defaultCallbacks']['set']('deletion:discard',_0x599756),this['_defaultCallbacks']['set']('deletion:join',_0x355e03),this['_defaultCallbacks']['set']('deletion:chain',_0x5a324a),this['_defaultCallbacks']['set']('formatInline:accept',_0x1054d7),this['_defaultCallbacks']['set']('formatInline:discard',_0x599756),this['_defaultCallbacks']['set']('formatInline:join',_0x355e03),this['_defaultCallbacks']['set']('formatInline:chain',_0x599756),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1054d7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x599756),this['_defaultCallbacks']['set']('formatBlock:join',_0x355e03),this['_defaultCallbacks']['set']('formatBlock:chain',_0x599756),this['_defaultCallbacks']['set']('attribute:accept',_0x599756),this['_defaultCallbacks']['set']('attribute:discard',(_0x180744,_0x5c136a)=>{if(!_0x5c136a)return;const _0x1d1b68=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x343d91=>{if(_0x5c136a['key']==m)for(const _0x56646f of _0x180744){const _0x2f62e7=_0x56646f['start']['nodeAfter'],_0x4a21a3=_0x5c136a['oldValue'];_0x343d91['rename'](_0x2f62e7,_0x4a21a3);}else{if(_0x1d1b68['_isBlockAttribute'](_0x5c136a['key'])){for(const _0x37e0da of _0x180744)void 0x0!==_0x5c136a['oldValue']?_0x343d91['setAttribute'](_0x5c136a['key'],_0x5c136a['oldValue'],_0x37e0da['start']['nodeAfter']):_0x343d91['removeAttribute'](_0x5c136a['key'],_0x37e0da['start']['nodeAfter']);}else{for(const _0x126bf9 of _0x180744)_0x5c136a['oldValue']?_0x343d91['setAttribute'](_0x5c136a['key'],_0x5c136a['oldValue'],_0x126bf9):_0x343d91['removeAttribute'](_0x5c136a['key'],_0x126bf9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x355e03);}}function Ot(_0x5b2295,_0x13fa6c,_0x3ee20f){for(const _0x130dc3 of _0x13fa6c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x130dc3['root']==_0x130dc3)return!0x1;if(!_0x3ee20f['containsItem'](_0x130dc3))return!0x1;if(_0x5b2295['isObject'](_0x130dc3)||_0x5b2295['isLimit'](_0x130dc3))return!0x0;}return!0x1;}function Vt(_0x572bf6){return _0x572bf6['end']['parent']==_0x572bf6['start']['nodeAfter']&&_0x572bf6['end']['isAtStart'];}function Ut(_0x51d465,_0x1bfba1,_0x18d2ef,_0x5108a9){const _0x101908=_0x5e6d87=>!_0x5e6d87['item']['is']('$textProxy')&&!_0x5108a9['isObject'](_0x5e6d87['item']),_0x4eeae7=_0x51d465['start']['getLastMatchingPosition'](_0x101908),_0x1d8c31=_0x51d465['end']['getLastMatchingPosition'](_0x101908,{'direction':'backward'});return(!_0x51d465['start']['isEqual'](_0x4eeae7)||!_0x51d465['end']['isEqual'](_0x1d8c31))&&(_0x4eeae7['isBefore'](_0x1d8c31)?_0x18d2ef['updateMarker'](_0x1bfba1,{'range':_0x18d2ef['createRange'](_0x4eeae7,_0x1d8c31)}):_0x18d2ef['removeMarker'](_0x1bfba1),!0x0);}function Gt(_0x25bd5a){return _0xf1b1f(_0x25bd5a);}function Ft(_0x3983b8){const _0x35632d=_0x3983b8['start']['nodeAfter'];return _0x35632d&&_0x35632d['is']('element');}function Pt(_0x1fffdd,_0x10f942){return null==_0x1fffdd['end']['nodeBefore']&&_0x1fffdd['end']['parent']==_0x1fffdd['start']['nodeAfter']?Lt(_0x1fffdd['start']['nodeAfter'],_0x10f942):_0x1fffdd;}function Lt(_0xae7fd1,_0x67fa72){const _0x1c55f3=_0x67fa72['schema']['isObject'](_0xae7fd1)||_0x67fa72['schema']['isSelectable'](_0xae7fd1);return _0x67fa72['createRange'](_0x67fa72['createPositionAt'](_0xae7fd1,'before'),_0x1c55f3?_0x67fa72['createPositionAfter'](_0xae7fd1):_0x67fa72['createPositionAt'](_0xae7fd1,'end'));}function Ht(_0xe2325f,_0x52de22,_0x3a08df,_0xb10597,_0x368b53){if(_0xe2325f['next'])return!0x1;if(!Jt(_0xe2325f,_0x52de22))return!0x1;if(_0x3a08df['end']['isEqual'](_0xb10597['start']))return!0x0;if(_0xe2325f['type']!=_0x52de22['type'])return!0x1;if(!_0x3a08df['end']['isTouching'](_0xb10597['start']))return!0x1;const _0x11531f=_0x368b53['createRange'](_0x3a08df['end'],_0xb10597['start'])['getWalker']();for(const _0x9e3c49 of _0x11531f)if(['elementStart','elementEnd']['includes'](_0x9e3c49['type'])&&_0x368b53['schema']['isLimit'](_0x9e3c49['item']))return!0x1;return!0x0;}function Jt(_0x239c67,_0x1b9804){if(!_0x239c67['_isDataLoaded']||!_0x1b9804['_isDataLoaded'])return!0x1;const _0x1b42a9=new Set(Object['keys'](_0x239c67['attributes'])),_0x1b91e0=new Set(Object['keys'](_0x1b9804['attributes']));if(_0x1b42a9['delete']('groupId'),_0x1b91e0['delete']('groupId'),0x0==_0x1b42a9['size']&&0x0==_0x1b91e0['size'])return!0x0;if(_0x1b42a9['size']!=_0x1b91e0['size'])return!0x1;const _0x1485cf={..._0x239c67['attributes']},_0x131dcf={..._0x1b9804['attributes']};return delete _0x1485cf['groupId'],delete _0x131dcf['groupId'],JSON['stringify'](_0x1485cf)==JSON['stringify'](_0x131dcf);}function qt(_0x1ef200,_0x744458){const _0x433d1f=zt(_0x1ef200['attributes']),_0x687706=zt(_0x744458);if(!_0x1ef200['_isDataLoaded'])return!0x1;for(const _0x1cb1c7 of Object['keys'](_0x687706))if(!_0x4b5161(_0x433d1f[_0x1cb1c7],_0x687706[_0x1cb1c7]))return!0x1;return!0x0;}function zt(_0x25b768){const _0x424e32=Object['assign']({},_0x25b768);return delete _0x424e32['skipNestingCheck'],delete _0x424e32['tablePasteChainId'],_0x424e32;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x3c9868(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xf2a20c,_0x4e1950,_0x263b13,_0x12b876){super(),this['model']=_0x4e1950,this['view']=_0x263b13,this['commentThreadController']=_0x12b876,this['_editor']=_0xf2a20c,this['_acceptCommand']=_0xf2a20c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xf2a20c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d220b,_0x4f42a1)=>_0x5d220b||_0x4f42a1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd27fa2=>_0xd27fa2&&this['_editor']['model']['canEditAt'](_0x4e1950['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ab065=>_0x4ab065&&this['_editor']['model']['canEditAt'](_0x4e1950['getRanges']())),this['_pendingAction']=null,_0x263b13['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x263b13,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x263b13,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x263b13,'change:isDirty',()=>{_0x263b13['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 _0x531a0b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x531a0b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x294ed2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3fed01,_0x20c378,_0x1445bc,_0x2cc66c){super(_0x3fed01),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x26ba2b(_0x3fed01,o(_0x3fed01,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x20c378['authoredAt']),this['bind']('authoredAt')['to'](_0x20c378),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',_0x20c378,'authoredAt',this,'descriptionParts',(_0x2f5e00,_0x4e7c8a,_0x5e4627)=>{const _0x4377d5=_0x5e4627['map'](_0x53c93c=>ls(_0x53c93c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2f5e00-0x1,_0x20c378['author']['name'],_0x4e7c8a?_0x2cc66c['formatDateTime'](_0x4e7c8a):'',new DOMParser()['parseFromString'](_0x4377d5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x23c8b8(),this['focusTracker']=new _0x15157f(),this['keystrokes']=new _0x266d37(),this['focusCycler']=new _0x1b6047({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x46aa24=>_0x46aa24['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x20c378,this['_localUser']=_0x1445bc,this['_config']=_0x2cc66c,_0x2cc66c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x57141b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1e77a9}=this['_config'];this['commentsListView']=new _0x1e77a9(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',_0x4653dc=>_0x4653dc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5c542d,_0x2345c5)=>_0x5c542d||!!_0x2345c5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x196046}=this['_config'],_0x40967e=new _0x196046(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x378e7a=_0x40967e['commentInputView'];return _0x40967e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x378e7a,'value',(_0x420490,_0x12fb90,_0x294cec)=>!!_0x294cec||_0x420490&&!_0x12fb90),_0x378e7a['on']('submit',(_0x2e2e14,_0x3bc4b9)=>{this['fire']('addComment',_0x3bc4b9),_0x378e7a['editor']['setData']('');}),_0x378e7a['on']('cancel',()=>this['focus']()),_0x378e7a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x40967e;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x57e1fb,_0x146e69,_0x37493f,_0x34884d){super(_0x57e1fb,_0x146e69,_0x37493f,_0x34884d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5dfaf5=>_0x5dfaf5&&_0x5dfaf5[0x0]?_0x5dfaf5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x551b3f,_0x409c2a)=>{let _0x12f4f2='';for(const _0x269c20 of _0x551b3f)_0x12f4f2+='<p>'+ls(_0x269c20['content'],_0x269c20['color'])+'</p>';return _0x409c2a?_0x12f4f2:_0x1f8706(_0x12f4f2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x34884d['SuggestionView'](_0x57e1fb,_0x146e69,{'formatDateTime':_0x34884d['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 _0x1fdfcc=this['bindTemplate'],_0x4ff3b8=[this['suggestionView']];return this['commentsListView']&&_0x4ff3b8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4ff3b8['push'](this['commentThreadInputView']),_0x4ff3b8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1fdfcc['if']('isActive','ck-suggestion-wrapper--active'),_0x1fdfcc['to']('type',_0xc3997a=>'ck-suggestion-'+_0xc3997a),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':_0x1fdfcc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4ff3b8};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x294ed2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x520237,_0x32f52e,_0x2b2767){super(_0x520237),this['_model']=_0x32f52e,this['_config']=_0x2b2767,this['set']('description',''),this['bind']('authoredAt')['to'](_0x32f52e),this['acceptButton']=this['_createButton'](o(_0x520237,'Accept\x20suggestion'),_0x22e7cf['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x520237,'Discard\x20suggestion'),_0x22e7cf['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4be92a(_0x520237,_0x32f52e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x23c8b8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x15157f(),this['keystrokes']=new _0x266d37(),this['focusCycler']=new _0x1b6047({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x275519=>_0x275519['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3e66fb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3e66fb['innerHTML']=this['description'],this['on']('change:description',(_0x3db852,_0x3b988d,_0x41e93a)=>{_0x3e66fb['innerHTML']=_0x41e93a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x7da130=this['bindTemplate'],_0x1dec07=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x7da130['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x7da130['to']('authoredAt',_0xfa3dc9=>this['_config']['formatDateTime'](_0xfa3dc9))}]}]},{'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']&&_0x1dec07['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':_0x1dec07}]};}['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'](_0x110893,_0x4634f9,_0x6e7250,_0x53f17c,_0x1ebd65){const _0x1c59c4=new _0x2c0a2b(this['locale']);return _0x1c59c4['set']({'label':_0x110893,'icon':_0x4634f9,'tooltip':!0x0,'tooltipPosition':_0x1ebd65}),_0x1c59c4['extendTemplate']({'attributes':{'class':_0x6e7250}}),_0x1c59c4['on']('execute',()=>{this['fire'](_0x53f17c,this['_model']['id']);}),_0x1c59c4;}['_setupKeyboardNavigation'](){const _0x15c790=this['element'];this['keystrokes']['listenTo'](_0x15c790);for(const _0xf19246 of this['focusables'])this['focusTracker']['add'](_0xf19246['element']),this['keystrokes']['listenTo'](_0xf19246['element']);this['keystrokes']['set']('enter',(_0x562aa5,_0x34ae93)=>{_0x15c790===_0x562aa5['target']&&(this['focusCycler']['focusFirst'](),_0x34ae93());}),this['keystrokes']['set']('esc',(_0x4ce3d3,_0x5c8fcc)=>{_0x15c790!==_0x4ce3d3['target']&&(this['focus'](),_0x5c8fcc());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x55f69e{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x96452c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4173c4){super(_0x4173c4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3a42cd=this['editor']['config'];_0x3a42cd['define']('trackChanges.SuggestionThreadView',re),_0x3a42cd['define']('trackChanges.SuggestionView',ce),_0x3a42cd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3a42cd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x523b68,_0x34002c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xa81e08,_0x258059]of this['_handleControllerBuffer']){const _0x205809=this['_suggestionToController']['has'](_0xa81e08);_0x205809||_0x258059?_0x205809&&_0x258059&&this['_destroyController'](_0xa81e08):this['_initializeController'](_0xa81e08);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x523b68,_0x34002c);}['init'](){const _0x45d1f3=this['editor'],_0x1e9580=_0x45d1f3['plugins']['get']('TrackChangesEditing'),_0x32bc41=_0x45d1f3['plugins']['get']('Annotations'),_0x23d712=_0x45d1f3['plugins']['get']('EditorAnnotations'),_0x511f92=_0x45d1f3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x23d712['addSourceCollector'](()=>{const _0xb23c4a=[];for(const [_0x5116a9,_0x23e566]of Array['from'](this['_suggestionToController'])){const _0x7b479f=_0x5116a9['getAllAdjacentSuggestions'](),_0x4e7bbd=[];for(const _0x36bdb1 of _0x7b479f){if(!_0x36bdb1['isInContent'])continue;if(_0x36bdb1['isMultiRange']){_0x4e7bbd['push'](..._0x36bdb1['getRanges']());continue;}const _0x5727ab=_0x36bdb1['getFirstRange']();if(_0x4e7bbd['length']>0x0){const _0x338c62=_0x4e7bbd[0x0]['getJoined'](_0x5727ab);if(_0x338c62){_0x4e7bbd[0x0]=_0x338c62;continue;}}_0x4e7bbd['push'](_0x5727ab);}_0xb23c4a['push']([_0x23e566['view'],_0x4e7bbd]);}return _0xb23c4a;}),this['listenTo'](_0x1e9580,'suggestionLoaded',(_0x424454,_0x11425e)=>{this['listenTo'](_0x11425e,'change:previous',(_0x21fe10,_0x23390a,_0x20a07f,_0x4447ce)=>{_0x11425e['isInContent']&&(null==_0x20a07f?(this['_updateController'](_0x4447ce['head']),this['_handleSuggestionControllerDelayed'](_0x11425e,!0x1)):(this['_updateController'](_0x20a07f['head']),null==_0x4447ce&&this['_handleSuggestionControllerDelayed'](_0x11425e,!0x0)));}),null!==_0x11425e['previous']?this['_updateController'](_0x11425e['head']):this['_handleSuggestionControllerDelayed'](_0x11425e,!0x1);}),this['listenTo'](_0x1e9580,'suggestionUnloaded',(_0x147cae,_0x166098,_0x469515)=>{this['stopListening'](_0x166098,'change:previous'),this['_handleControllerBuffer']['delete'](_0x166098),this['_suggestionToController']['has'](_0x166098)&&this['_destroyController'](_0x166098),_0x469515&&this['_updateController'](_0x469515['head']);}),this['listenTo'](_0x1e9580,'suggestionChanged',(_0x15ba72,_0x44969c)=>{this['_updateController'](_0x44969c);}),this['listenTo'](_0x32bc41,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x511f92,'addComment',(_0xd8b265,{threadId:_0x4bacd2,isFromAdapter:_0x5b198b})=>{if(_0x5b198b||!_0x1e9580['hasSuggestion'](_0x4bacd2))return;const _0x3727d6=_0x1e9580['getSuggestion'](_0x4bacd2);this['_suggestionToController']['get'](_0x3727d6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x476d94=this['editor']['plugins']['get']('Annotations'),_0x478e31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da87d=Array['from'](_0x476d94['activeAnnotations'],_0x46348d=>_0x46348d['innerView'])['filter'](_0x5c0b4d=>this['_viewToController']['has'](_0x5c0b4d)),_0x2633b0=[];for(const _0x38c67f of _0x3da87d){const _0x2a5673=this['_viewToController']['get'](_0x38c67f)['model']['getAllAdjacentSuggestions']();_0x2633b0['push'](..._0x2a5673['reduce']((_0x39767b,_0x24ca3c)=>[..._0x39767b,..._0x24ca3c['getMarkerNames']()],[]));}_0x478e31['activeMarkers']=_0x2633b0;}['_addUIComponentsToFactory'](){const _0x32e947=this['editor'],_0x31d5c2=_0x32e947['locale'],_0xa499d6=o(_0x31d5c2,'Track\x20changes'),_0x2a4e15=new Wt([{'type':'switchbutton','model':new _0x220d45({'withText':!0x0,'isToggleable':!0x0,'label':_0xa499d6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x28036a of _0x2a4e15)if(me(_0x28036a)){const _0xe7592f=_0x32e947['commands']['get'](_0x28036a['model']['commandName']);_0x28036a['model']['bind']('isOn','isEnabled')['to'](_0xe7592f,'value','isEnabled');}_0x32e947['ui']['componentFactory']['add']('trackChanges',_0x30208e=>this['_createToolbarButton'](_0x30208e,_0x2a4e15,_0xa499d6)),_0x32e947['ui']['componentFactory']['add']('menuBar:trackChanges',_0x29d920=>this['_createMenuBarMenu'](_0x29d920,_0x2a4e15,_0xa499d6));}['_createToolbarButton'](_0x258529,_0x2a62ba,_0x10c605){const _0x22d175=Qt(_0x258529,_0xb37fff),_0x22f32c=this['editor']['commands']['get']('trackChanges');_0x22d175['buttonView']['set']({'tooltip':_0x10c605,'label':_0x10c605,'icon':he}),_0x22d175['buttonView']['bind']('isOn')['to'](_0x22f32c,'value'),_0x22d175['buttonView']['on']('execute',()=>{_0x22f32c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x22d175,_0x2a62ba,{'role':'menu'});const _0x3e16f5=[];for(const _0x1693e8 of _0x2a62ba)me(_0x1693e8)&&_0x3e16f5['push'](this['editor']['commands']['get'](_0x1693e8['model']['commandName']));const _0x2baa56=_0x22d175['buttonView'];return _0x2baa56['actionView']['unbind']('isEnabled'),_0x2baa56['arrowView']['unbind']('isEnabled'),_0x2baa56['actionView']['bind']('isEnabled')['to'](_0x22f32c,'isEnabled'),_0x2baa56['arrowView']['bind']('isEnabled')['toMany'](_0x3e16f5,'isEnabled',(..._0x3ae9ab)=>_0x3ae9ab['some'](_0x20c0f9=>_0x20c0f9)),_0x22d175['on']('execute',_0x2a7f6b=>{this['editor']['execute'](_0x2a7f6b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x22d175;}['_createMenuBarMenu'](_0xfe3a4f,_0x3fa837,_0x213380){const _0x7c5f9b=new Yt(_0xfe3a4f),_0x5bac43=this['editor']['commands']['get']('trackChanges');_0x7c5f9b['buttonView']['set']({'label':_0x213380,'icon':he});const _0x7eedaa=new Zt(_0xfe3a4f);for(const _0x36b4b1 of _0x3fa837){if('separator'==_0x36b4b1['type']){_0x7eedaa['items']['add'](new Xt(_0xfe3a4f));continue;}const _0x1444b4=new te(_0xfe3a4f,_0x7c5f9b),_0xb06a02=new _0x5c9be1(_0xfe3a4f),_0x441b7b=_0x36b4b1['model'];_0xb06a02['bind'](...Object['keys'](_0x441b7b))['to'](_0x441b7b),_0xb06a02['delegate']('execute')['to'](_0x7c5f9b),_0xb06a02['on']('execute',()=>{this['editor']['execute'](_0x441b7b['commandName']),this['editor']['editing']['view']['focus']();}),_0x1444b4['children']['add'](_0xb06a02),_0x7eedaa['items']['add'](_0x1444b4);}return _0x7c5f9b['bind']('isEnabled')['to'](_0x5bac43,'isEnabled'),_0x7c5f9b['panelView']['children']['add'](_0x7eedaa),_0x7c5f9b;}['_initializeController'](_0x463c00){const _0x3b23fa=this['editor'],_0x599c5a=_0x3b23fa['config'],_0x2defd3=_0x3b23fa['plugins']['get']('Annotations'),_0x58deac=_0x3b23fa['plugins']['get']('CommentsRepository'),_0xab72c9=_0x3b23fa['plugins']['get']('EditorAnnotations'),_0x529c33=_0x3b23fa['plugins']['get'](_0x96452c)['me'],_0x4fcd83=_0x599c5a['get']('trackChanges')['SuggestionThreadView'],_0x17661d=_0x599c5a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2d8637,CommentThreadInputView:_0x49f9c8}=_0x3b23fa['plugins']['get']('CommentsUI');let _0x24bb04,_0x357459,_0x10db80;this['_annotationViews']['has'](_0x463c00['id'])?(_0x357459=this['_annotationViews']['get'](_0x463c00['id']),_0x24bb04=_0x357459['mainView']):(_0x24bb04=new _0x4fcd83(_0x3b23fa['locale'],_0x463c00,_0x529c33,{'disableComments':this['_disableComments'],'editorConfig':_0x599c5a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x599c5a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x599c5a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x599c5a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3b1251(_0x599c5a['get']('locale')),'CommentView':_0x599c5a['get']('comments')['CommentView'],'CommentsListView':_0x2d8637,'CommentThreadInputView':_0x49f9c8,'SuggestionView':_0x17661d}),_0x24bb04['suggestionView']['acceptButton']['on']('execute',()=>{_0x3b23fa['editing']['view']['focus']();}),_0x24bb04['suggestionView']['discardButton']['on']('execute',()=>{_0x3b23fa['editing']['view']['focus']();}),_0x357459=_0x2defd3['createAnnotationView'](this['editor']['locale'],_0x24bb04),_0x357459['bind']('isDirty')['to'](_0x24bb04,'isDirty'),_0x357459['bind']('length')['to'](_0x24bb04),_0x357459['bind']('type')['to'](_0x24bb04,'type',_0x281a87=>'suggestion-'+_0x281a87),_0x24bb04['on']('escape',()=>{_0x10db80['fire']('escape');}),this['_annotationViews']['set'](_0x463c00['id'],_0x357459));const _0x4d73f5=_0x58deac['createCommentThreadController'](_0x463c00['commentThread'],_0x24bb04),_0x57cc98=new ae(_0x3b23fa,_0x463c00,_0x24bb04,_0x4d73f5),_0x2820ee=_0x463c00['getAllAdjacentSuggestions']()['filter'](_0x58bbe0=>_0x58bbe0['isInContent']);_0x24bb04['descriptionParts']=_0x3b23fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2820ee),this['_suggestionToController']['set'](_0x463c00,_0x57cc98),this['_viewToController']['set'](_0x24bb04,_0x57cc98),_0x10db80=_0x2defd3['createAnnotation']({'view':_0x357459,'target':()=>{const _0x2d4bc1=[],_0x311877=_0x463c00['getAllAdjacentSuggestions']()['filter'](_0x2dfd4d=>_0x2dfd4d['isInContent']);for(const _0xd0d500 of _0x311877)_0x2d4bc1['push'](..._0xd0d500['getMarkers']());return _0x5910c7(_0x3b23fa['editing'],_0x2d4bc1);},'type':()=>'suggestion-'+_0x57cc98['view']['type']}),_0x58deac['_bindAnnotationToEditors'](_0x24bb04,_0x10db80),_0x2defd3['add'](_0x10db80),_0xab72c9['registerAnnotation'](_0x10db80);}['_destroyController'](_0x2cea65){const _0x8f71a9=this['editor']['plugins']['get']('CommentsRepository'),_0x39a534=this['editor']['plugins']['get']('Annotations'),_0x1d098f=this['_suggestionToController']['get'](_0x2cea65),_0x406489=_0x1d098f['view'],_0x407886=_0x39a534['getByInnerView'](_0x406489);_0x8f71a9['_unbindEditors'](_0x406489),_0x407886&&_0x39a534['remove'](_0x407886),this['_suggestionToController']['delete'](_0x2cea65),this['_viewToController']['delete'](_0x406489),_0x1d098f['destroy']();}['_updateController'](_0x503412){if(!_0x503412['isInContent']||!this['_suggestionToController']['has'](_0x503412))return;const _0x34ce06=this['editor']['plugins']['get']('TrackChangesEditing'),_0x524ada=this['_suggestionToController']['get'](_0x503412),_0x422c99=_0x503412['getAllAdjacentSuggestions']();_0x524ada['view']['descriptionParts']=_0x34ce06['descriptionFactory']['getDescriptions'](_0x422c99);}['destroy'](){for(const _0x588d26 of this['_suggestionToController']['keys']())this['_destroyController'](_0x588d26);for(const _0x349392 of this['_annotationViews']['values']())_0x349392['mainView']['destroy']();super['destroy']();}}function me(_0x4cb678){return'model'in _0x4cb678;}class k extends _0x55f69e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x445249){this['editor']['plugins']['get'](p)['adapter']=_0x445249;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3ed1f7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3ed1f7);}['getSuggestions']({skipNotAttached:_0x565ce8=!0x1,toJSON:_0x57573d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x565ce8,'toJSON':_0x57573d});}['getSuggestion'](_0xeac6ef){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xeac6ef);}}const T=['Pagination'];class P extends _0x55f69e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x274c1d=this['editor'];if(_0x274c1d['config']['define']('trackChangesData.editorCreator',_0x3c7be8=>{const _0x533a32=_0x274c1d['model']['document']['getRootNames']()['reduce']((_0x255035,_0x14e9b6)=>(_0x255035[_0x14e9b6]='',_0x255035),{});return _0x274c1d['constructor']['create'](_0x533a32,_0x3c7be8);}),'function'!=typeof _0x274c1d['config']['get']('trackChangesData')['editorCreator'])throw new _0x27812c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xfc9a11){return N(this['editor'],!0x0,_0xfc9a11);}['getDataWithDiscardedSuggestions'](_0x584eba){return N(this['editor'],!0x1,_0x584eba);}}class D extends _0x55f69e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x51bdbf){super(_0x51bdbf),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x48c7cd){return void 0x0!==_0x48c7cd['getRootsAttributes'];}async function N(_0x2763c2,_0x34e25f,_0x1a38c7){const _0x21da5d=_0x41993e(_0x2763c2,T);_0x21da5d['plugins']['push'](p,D),_0x21da5d['rootsAttributes']=v(_0x2763c2)?_0x2763c2['getRootsAttributes']():void 0x0;const _0x142cee=document['createDocumentFragment'](),_0x45f73e=_0x2763c2['config']['get']('trackChangesData')['editorCreator'],_0x48a5f5=await _0x45f73e(_0x21da5d,()=>function(_0x1c0f98){const _0x15ae71=document['createElement']('div');return _0x1c0f98['appendChild'](_0x15ae71),_0x15ae71;}(_0x142cee));!function(_0x23d697,_0x302c71){const _0x38ea76=_0x23d697['model']['document']['getRootNames']()['reduce']((_0xb08049,_0xba9d2b)=>(_0xb08049[_0xba9d2b]=_0x23d697['data']['get']({'rootName':_0xba9d2b}),_0xb08049),{}),_0x3083b3=_0x23d697['plugins']['get']('Users')['users']['map'](_0x850dd9=>({'id':_0x850dd9['id'],'name':_0x850dd9['name']})),_0x46e5c6=_0x23d697['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x200b97=_0x23d697['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3130e6=_0x302c71['plugins']['get']('Users'),_0x5e973=_0x302c71['plugins']['get']('TrackChangesEditing'),_0x1990c8=_0x302c71['plugins']['get']('CommentsRepository');for(const _0x3d6b82 of _0x1990c8['getCommentThreads']())_0x3d6b82['remove']();for(const _0x38b1ba of _0x3083b3)_0x3130e6['getUser'](_0x38b1ba['id'])||_0x3130e6['addUser'](_0x38b1ba);_0x3130e6['me']||_0x3130e6['useAnonymousUser']();for(const _0x547384 of _0x200b97)_0x1990c8['addCommentThread'](_0x547384);for(const _0x27c6f2 of _0x46e5c6)_0x5e973['addSuggestionData'](_0x27c6f2);_0x302c71['data']['set'](_0x38ea76);}(_0x2763c2,_0x48a5f5),_0x48a5f5['execute'](_0x34e25f?'acceptAllSuggestions':'discardAllSuggestions');const _0xc1cc6b=v(_0x48a5f5)?_0x48a5f5['getFullData'](_0x1a38c7):_0x48a5f5['data']['get'](_0x1a38c7);return await _0x48a5f5['destroy'](),_0xc1cc6b;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x1530f7,PendingActions as _0x3a8f2,icons as _0x2fd808}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x36031a,ObservableMixin as _0xcb731d,uid as _0x5042b,insertToPriorityArray as _0x388e07,priorities as _0x1bc495,logWarning as _0x4ead58,getEnvKeystrokeText as _0x3b5acf,FocusTracker as _0x159e05,KeystrokeHandler as _0x27e8f6,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2fd6d3,View as _0x210b86,ViewCollection as _0x13f084,FocusCycler as _0x308ce9,ViewModel as _0x22e58a,createDropdown as Qt,SplitButtonView as _0x41b49a,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x38d913}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d313f,hashObject as _0x3d1af3,surroundingMarkersDetector as _0x15d99f,FOCUS_ANNOTATION_KEYSTROKE as _0x347009,AriaDescriptionView as _0x2b28de,setupThreadKeyboardNavigation as _0x236c2c,trimHtml as _0x44c8a5,UserView as _0x49cf17,LateFocusButtonView as _0x2a38fe,getDateTimeFormatter as _0x131ec3,getAllMarkersDomElementsSorted as _0x418d9a,sanitizeEditorConfig as _0x55d533}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3d037d,LiveRange as _0x5018e8,LivePosition as _0x5a10b9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3654b8,toWidget as _0x39e06e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x425877,set as _0x5654ce,isEqual as _0x8956aa,unset as _0x4bd1fe,omit as Tt}from'lodash-es';import{Delete as _0xc27c33,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d68a7,ShiftEnter as _0x18aeaf}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x345452,_0x53501c){super(_0x345452),this['_enabledCommands']=_0x53501c,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 _0x31eaf2 of this['editor']['commands']['commands']())_0x31eaf2['affectsData']&&!this['_enabledCommands']['has'](_0x31eaf2)&&_0x31eaf2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3fb84b of this['editor']['commands']['commands']())_0x3fb84b['affectsData']&&!this['_enabledCommands']['has'](_0x3fb84b)&&_0x3fb84b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x960c6,_0xddda3c){super(_0x960c6),this['_suggestions']=_0xddda3c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x346d34){const _0x13786b=this['_suggestions']['get'](_0x346d34);if(!_0x13786b)throw new _0x36031a('track-changes-accept-suggestion-not-found',this);const _0x22b0dd=_0x13786b['getRanges']();this['editor']['model']['canEditAt'](_0x22b0dd)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x13786b);}}class R extends ts{['_suggestions'];constructor(_0x4c9b90,_0x5c4ef9){super(_0x4c9b90),this['_suggestions']=_0x5c4ef9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x38030c){const _0x51e74d=this['_suggestions']['get'](_0x38030c);if(!_0x51e74d)throw new _0x36031a('track-changes-discard-suggestion-not-found',this);const _0x583e6a=_0x51e74d['getRanges']();this['editor']['model']['canEditAt'](_0x583e6a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x51e74d);}}function ls(_0x3ad7a8,_0x26993a){let _0x1fe41c='';return _0x1fe41c+=_0x3ad7a8['split']('*')['map']((_0x348503,_0x88dd68)=>_0x88dd68%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x348503)+'</span>':nn(_0x348503))['join'](''),_0x26993a&&(_0x1fe41c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x26993a['value']+'\x22\x20title=\x22'+_0x26993a['title']+'\x22></span>'),_0x1fe41c;}function nn(_0x5aa336){const _0x25667c=document['createElement']('span');return _0x25667c['innerText']=_0x5aa336,_0x25667c['innerHTML'];}function ss(_0x51dfb7){return _0x51dfb7['sort']((_0x4d5a06,_0xcc47d3)=>'deletion'==_0x4d5a06['type']&&'deletion'!=_0xcc47d3['type']?-0x1:'deletion'!=_0x4d5a06['type']&&'deletion'==_0xcc47d3['type']?0x1:0x0);}function to(_0x36072f,_0x46ffe5){let _0x98bf9a,_0x2d2a65=0x0;const _0x25ebae=[],_0x2acada=_0x46ffe5['schema'];for(;_0x2d2a65<_0x36072f['length'];){const _0x10ae34=_0x36072f[_0x2d2a65],_0x34e0e0=_0x36072f[_0x2d2a65+0x1];_0x98bf9a||(_0x98bf9a=_0x46ffe5['createPositionBefore'](_0x10ae34)),on(_0x46ffe5,_0x10ae34,_0x34e0e0)||(_0x25ebae['push'](_0x46ffe5['createRange'](_0x98bf9a,_0x2acada['isObject'](_0x10ae34)?_0x46ffe5['createPositionAfter'](_0x10ae34):_0x46ffe5['createPositionAt'](_0x10ae34,'end'))),_0x98bf9a=null),_0x2d2a65++;}return _0x25ebae;}function on(_0x27b63c,_0x2735fc,_0x19171f){if(!_0x19171f)return!0x1;const _0x45de82=_0x27b63c['createPositionAfter'](_0x2735fc),_0x372992=_0x27b63c['createPositionBefore'](_0x19171f);return _0x45de82['isTouching'](_0x372992);}function rs(_0x4473d6,_0x4b8196,_0xf511d7){for(;_0xf511d7['length'];){const _0x3d2cc1=_0xf511d7['splice'](0x0,0x64);_0x4473d6['change'](()=>{for(const _0x4a4fd5 of _0x3d2cc1)_0x4a4fd5['isInContent']&&_0x4b8196['execute'](_0x4a4fd5['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x21e090,_0x36e3ad,_0x17041c){super(_0x21e090),this['_command']=_0x36e3ad,this['_suggestions']=_0x17041c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x180933=Array['from'](this['_suggestions']['values']())['some'](_0x128287=>_0x128287['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x180933;}['execute'](){const _0x16d22d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5454f6 of _0x16d22d){const _0xcafcc7=_0x5454f6['getRanges']();if(!this['editor']['model']['canEditAt'](_0xcafcc7))return;}rs(this['editor']['model'],this['_command'],_0x16d22d);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf99259,_0x422772,_0x5657de){super(_0xf99259),this['_command']=_0x422772,this['_suggestions']=_0x5657de,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1dd9d7=this['editor']['model']['document']['selection'],_0x50861e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x580b92,_0x391da0){const _0x369501=Array['from'](_0x580b92['getRanges']()),_0x318331=new Set();for(const _0x4c72d1 of _0x391da0)if(_0x4c72d1['isInContent']){for(const _0x493355 of _0x369501)for(const _0x4ed978 of _0x4c72d1['getRanges']())(_0x493355['isIntersecting'](_0x4ed978)||_0x580b92['isCollapsed']&&!_0x4c72d1['isMultiRange']&&_0x4c72d1['next']&&_0x4ed978['end']['isTouching'](_0x493355['start']))&&_0x318331['add'](_0x4c72d1);}return _0x318331;}(_0x1dd9d7,_0x50861e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x16fc36=ss(Array['from'](this['_selectedSuggestions']));for(const _0x238c37 of _0x16fc36){const _0x2b8896=_0x238c37['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b8896))return;}rs(this['editor']['model'],this['_command'],_0x16fc36);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xcb731d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x49f4aa,_0x34c179){super(),this['id']=_0x34c179['id'],this['type']=_0x34c179['type'],this['subType']=_0x34c179['subType']||null,this['author']=_0x34c179['author'],this['creator']=_0x34c179['creator']||_0x34c179['author'],this['isExternal']=Boolean(_0x34c179['attributes']&&_0x34c179['attributes']['@external']),this['data']=null,this['_model']=_0x49f4aa,this['_onAccept']=_0x34c179['onAccept'],this['_onDiscard']=_0x34c179['onDiscard'],this['_onAttributesChange']=_0x34c179['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x34c179['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 _0x30e9e4=this;for(;_0x30e9e4['previous'];)_0x30e9e4=_0x30e9e4['previous'];return _0x30e9e4;}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'](_0x7ece7){this['_markerNames']['add'](_0x7ece7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5c5212=>this['_model']['markers']['get'](_0x5c5212))['filter'](_0x27e56f=>_0x27e56f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c8ac2=>{for(const _0xa604da of this['getMarkers']())_0x3c8ac2['removeMarker'](_0xa604da);}),this['_markerNames']['clear']();}['removeMarker'](_0x35d778){this['_model']['change'](_0x22e113=>{_0x22e113['removeMarker'](_0x35d778);}),this['_markerNames']['delete'](_0x35d778);}['addRange'](_0x5839ca){const _0x80c24f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x80c24f),this['_model']['change'](_0x498214=>{_0x498214['addMarker'](_0x80c24f,{'range':_0x5839ca,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x265328){for(const _0x4e54f8 of this['getRanges']())if(_0x4e54f8['isIntersecting'](_0x265328))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8d4454=>_0x8d4454['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x128cc4,_0x4cf355)=>[..._0x128cc4,..._0x4cf355['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x582ac9=this['getRanges']();if(0x1!=_0x582ac9['length'])return null;const _0x400db4=_0x582ac9[0x0],_0x4adf7a=_0x400db4['start']['nodeAfter'],_0xdb38=_0x400db4['end']['nodeBefore'];return _0x4adf7a instanceof _0x3d037d?_0x4adf7a!=_0xdb38?null:_0x4adf7a: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 _0x17e0aa=[];let _0xc6ec8b=this['head'];for(;_0xc6ec8b;)_0x17e0aa['push'](_0xc6ec8b),_0xc6ec8b=_0xc6ec8b['next'];return _0x17e0aa;}['setAttribute'](_0x181e94,_0x3f8c84){const _0x6f9ba4=_0x425877(this['attributes']);_0x5654ce(_0x6f9ba4,_0x181e94,_0x3f8c84),_0x8956aa(_0x6f9ba4,this['attributes'])||(this['attributes']=_0x6f9ba4,this['_onAttributesChange'](_0x6f9ba4));}['removeAttribute'](_0x21b4a3){const _0x492ffe=_0x425877(this['attributes']);_0x4bd1fe(_0x492ffe,_0x21b4a3),_0x8956aa(_0x492ffe,this['attributes'])||(this['attributes']=_0x492ffe,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 _0x5042b()['substr'](0x1,0x5);}}function o(_0x4e0dbb,_0x1f1dd8,_0x469f35){const t=_0x4e0dbb['t'];switch(_0x1f1dd8){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x469f35);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x469f35);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x469f35);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x469f35);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x469f35);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',_0x469f35);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x469f35);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x469f35);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x469f35);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x469f35);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x469f35);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x469f35);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x469f35);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x469f35);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x469f35);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x469f35);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x469f35);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x469f35);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x469f35);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x469f35);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x469f35);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x469f35);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x469f35);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'},_0x469f35);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x469f35);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x469f35);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x469f35);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x469f35);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x469f35);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'},_0x469f35);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x469f35);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x469f35);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x469f35);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x469f35);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'},_0x469f35);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x469f35);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'},_0x469f35);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x469f35);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x469f35);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'},_0x469f35);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x469f35);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'},_0x469f35);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x469f35);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x469f35);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'},_0x469f35);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x469f35);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x469f35);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x469f35);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'},_0x469f35);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'},_0x469f35);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'},_0x469f35);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1f1dd8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x29247e,_0x1eaac3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x29247e,this['_locale']=_0x1eaac3;}['getDescriptions'](_0x31c91f){const _0x403942=[],_0x3f5d06=new Set(),_0x3f9591=new Set();for(let _0x915749=0x0;_0x915749<_0x31c91f['length'];_0x915749++){const _0x58aeac=_0x31c91f[_0x915749];if(!_0x58aeac['isInContent'])continue;const _0x177454=this['_handleCustomCallbackDescription'](_0x58aeac);if(_0x177454){if(null!=_0x58aeac['subType']){if(_0x3f5d06['has'](_0x58aeac['subType']))continue;_0x3f5d06['add'](_0x58aeac['subType']);}_0x403942['push'](_0x177454);}else{if('attribute'!=_0x58aeac['type'])'insertion'!=_0x58aeac['type']&&'deletion'!=_0x58aeac['type']||this['_handleInsertRemoveSuggestionDescription'](_0x403942,_0x58aeac,_0x31c91f[_0x915749+0x1]);else{const _0x1c0a95=_0x58aeac['data']['key'];if(_0x3f9591['has'](_0x1c0a95))continue;_0x3f9591['add'](_0x58aeac['data']['key']),_0x1c0a95==m?this['_handleRenameSuggestionDescription'](_0x403942,_0x58aeac):this['_handleAttributeSuggestionDescription'](_0x403942,_0x58aeac);}}}return this['_resolveDescriptionItems'](_0x403942);}['registerDescriptionCallback'](_0x19f8ca){this['_customCallbacks']['push'](_0x19f8ca);}['registerElementLabel'](_0x274746,_0x813982,_0x59ac5e=_0x1bc495['normal']){'function'==typeof _0x274746?_0x388e07(this['_itemLabelsCallbacks'],{'matchingCallback':_0x274746,'label':_0x813982,'priority':_0x59ac5e}):this['_itemLabels']['set'](_0x274746,_0x813982);}['registerAttributeLabel'](_0x2ed9cb,_0x37d1c0){this['_attributeLabels']['set'](_0x2ed9cb,_0x37d1c0);}['getItemLabel'](_0x5cb8c4,_0x7a284c=0x1){let _0x26f84a;for(const _0x54a632 of this['_itemLabelsCallbacks'])if(_0x54a632['matchingCallback'](_0x5cb8c4)){_0x26f84a=_0x54a632['label'];break;}return _0x26f84a||(_0x26f84a=this['_itemLabels']['get'](_0x5cb8c4['name'])),_0x26f84a?_0x26f84a(_0x7a284c):0x1!==_0x7a284c?_0x7a284c+'\x20'+_0x5cb8c4['name']+'s':''+_0x5cb8c4['name'];}['_addDescriptionItems'](_0x1bf077,_0x106e90){const _0x20f017=_0x106e90['getFirstRange']()['getWalker'](),_0x1acb3c='insertion'==_0x106e90['type']?'add':'remove';for(const _0x14a645 of _0x20f017){const _0x38bb06=_0x14a645['item'],_0x73c233=_0x1bf077[_0x1bf077['length']-0x1];if(_0x38bb06['is']('$textProxy'))_0x73c233&&_0x73c233['type']['indexOf']('Container')>-0x1&&_0x1bf077['pop'](),_0x73c233&&'text'==_0x73c233['type']?_0x73c233[_0x1acb3c]+=_0x38bb06['data']:_0x1bf077['push']({'type':'text','add':'add'==_0x1acb3c?_0x38bb06['data']:'','remove':'remove'==_0x1acb3c?_0x38bb06['data']:''});else{if(this['_schema']['isObject'](_0x38bb06)){const _0x59bdb9=_0x38bb06;if(_0x73c233&&_0x73c233['type']['indexOf']('Container')>-0x1&&_0x1bf077['pop'](),'elementEnd'==_0x14a645['type'])continue;_0x73c233&&_0x73c233['type']==_0x1acb3c+'Object'&&_0x73c233['element']['name']==_0x59bdb9['name']?_0x73c233['quantity']++:_0x1bf077['push']({'type':_0x1acb3c+'Object','element':_0x59bdb9,'quantity':0x1}),_0x20f017['skip'](_0x167cb8=>!('elementEnd'==_0x167cb8['type']&&_0x167cb8['item']==_0x38bb06));}else{if(this['_schema']['checkChild'](_0x38bb06,'$text')||_0x38bb06['is']('element','softBreak')){const _0x1e4e8e=_0x38bb06;if('add'==_0x1acb3c&&'elementStart'==_0x14a645['type']||'remove'==_0x1acb3c&&'elementEnd'==_0x14a645['type'])continue;if(_0x73c233&&-0x1==_0x73c233['type']['indexOf']('Container')){'text'==_0x73c233['type']&&(_0x73c233[_0x1acb3c]+='\x0a');continue;}let _0x3c086c;if(_0x3c086c='add'==_0x1acb3c?_0x1e4e8e['nextSibling']&&!this['_schema']['isObject'](_0x1e4e8e['nextSibling'])?_0x1e4e8e['nextSibling']:null:_0x1e4e8e['previousSibling']&&!this['_schema']['isObject'](_0x1e4e8e['previousSibling'])?_0x1e4e8e['previousSibling']:null,_0x1e4e8e['isEmpty']||_0x3c086c&&_0x3c086c['isEmpty']){const _0x171cf7=_0x3c086c&&_0x3c086c['isEmpty']?_0x3c086c:_0x1e4e8e;_0x73c233&&_0x73c233['type']==_0x1acb3c+'EmptyContainer'&&_0x73c233['element']['name']==_0x171cf7['name']?_0x73c233['quantity']++:_0x1bf077['push']({'type':_0x1acb3c+'EmptyContainer','element':_0x171cf7,'quantity':0x1});}else _0x1bf077['push']({'type':_0x1acb3c+'Container','element':_0x1e4e8e});}}}}}['_resolveDescriptionItems'](_0x5a9f31){const _0x1024f4=this['_locale'],_0x43c8c3=[],_0x4d2d7c=[],_0x4ec4e9=[];for(const _0x4a004d of _0x5a9f31)switch(_0x4a004d['type']){case'text':if(_0x4a004d['add']=_0x4a004d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a004d['remove']=_0x4a004d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a004d['add']&&''!=_0x4a004d['remove']){_0x43c8c3['push']({'type':'replace','content':o(_0x1024f4,'REPLACE_TEXT',['\x22'+_0x4a004d['remove']+'\x22','\x22'+_0x4a004d['add']+'\x22'])});continue;}if(null!=_0x4a004d['add']['match'](/^ +$/)){_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Insert:*\x20%0',o(_0x1024f4,'ELEMENT_SPACE',_0x4a004d['add']['length']))});continue;}if(null!=_0x4a004d['remove']['match'](/^ +$/)){_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Remove:*\x20%0',o(_0x1024f4,'ELEMENT_SPACE',_0x4a004d['remove']['length']))});continue;}if(''!=_0x4a004d['add']){_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Insert:*\x20%0','\x22'+_0x4a004d['add']+'\x22')});continue;}_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Remove:*\x20%0','\x22'+_0x4a004d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Insert:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Remove:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'addContainer':_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Split:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'removeContainer':_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Merge:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'addFormat':_0x4d2d7c['push'](_0x4a004d['key']);continue;case'removeFormat':_0x4ec4e9['push'](_0x4a004d['key']);continue;default:_0x43c8c3['push'](_0x4a004d);}if(_0x4d2d7c['length']){const _0x4731ba=_0x4d2d7c['map'](_0x5311a1=>this['_attributeLabels']['has'](_0x5311a1)?this['_attributeLabels']['get'](_0x5311a1):_0x5311a1)['join'](',\x20');_0x43c8c3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4731ba)});}if(_0x4ec4e9['length']){const _0x343bda=_0x4ec4e9['map'](_0xfb1c1=>this['_attributeLabels']['has'](_0xfb1c1)?this['_attributeLabels']['get'](_0xfb1c1):_0xfb1c1)['join'](',\x20');_0x43c8c3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x343bda)});}return _0x43c8c3;}['_handleCustomCallbackDescription'](_0xfdcfdd){for(const _0x1d0b3a of this['_customCallbacks']){const _0x2e0e86=_0x1d0b3a(_0xfdcfdd);if(_0x2e0e86&&'type'in _0x2e0e86)return _0x2e0e86;}}['_handleAttributeSuggestionDescription'](_0x12c804,_0x17a673){const _0x112a57=_0x17a673['data'],_0x3ad6c0=void 0x0===_0x112a57['newValue']?'removeFormat':'addFormat';_0x12c804['push']({'type':_0x3ad6c0,'key':_0x112a57['key']});}['_handleRenameSuggestionDescription'](_0x44a3dc,_0x5f4364){_0x44a3dc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5f4364['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3d6304,_0x5e753a,_0x10a7ec){if(this['_addDescriptionItems'](_0x3d6304,_0x5e753a),_0x10a7ec&&_0x10a7ec['getFirstRange']()&&!_0x5e753a['getFirstRange']()['end']['isEqual'](_0x10a7ec['getFirstRange']()['start'])){const _0x3dc84c=_0x3d6304[_0x3d6304['length']-0x1],_0x1f23cb='insertion'==_0x5e753a['type']?'add':'remove';_0x3dc84c&&'text'==_0x3dc84c['type']&&(_0x3dc84c[_0x1f23cb]+='\x0a');}}}class V extends _0x1530f7{['afterInit'](){const _0x40f164=this['editor'],_0x5b9d98=_0x40f164['plugins']['get']('TrackChangesEditing');_0x40f164['commands']['get']('showAIAssistant')&&_0x5b9d98['enableCommand']('showAIAssistant');}}class U extends _0x1530f7{['afterInit'](){const _0x14bf7b=this['editor'],_0x3ab295=_0x14bf7b['locale'];if(!_0x14bf7b['plugins']['has']('AlignmentEditing'))return;const _0x4b18bf=_0x14bf7b['plugins']['get']('TrackChangesEditing');_0x4b18bf['enableDefaultAttributesIntegration']('alignment'),_0x4b18bf['registerBlockAttribute']('alignment'),_0x4b18bf['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3ab295,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4992fa=this['editor'],_0x1289c3=_0x4992fa['locale'];_0x4992fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24bc1a=>{if('formatBlock'!=_0x24bc1a['type'])return;const {data:_0x4c6cbd}=_0x24bc1a;if(_0x4c6cbd&&'alignment'==_0x4c6cbd['commandName']){const _0x3d6b52=_0x4c6cbd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1289c3,'*Format:*\x20%0',function(_0xcf921d){switch(_0xcf921d){case'left':return o(_0x1289c3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1289c3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1289c3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1289c3,'FORMAT_JUSTIFY_TEXT');}}(_0x3d6b52))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1530f7{['afterInit'](){const _0x48621d=this['editor'],_0x53e1c9=_0x48621d['plugins']['get']('TrackChangesEditing'),_0x2ae356=_0x48621d['locale'];for(const _0x35d4b2 of ti){if(!_0x48621d['plugins']['has'](_0x35d4b2))continue;const _0x1df5ea=_0x35d4b2['slice'](0x0,-0x7)['toLowerCase'](),_0x207a32='FORMAT_'+_0x1df5ea['toUpperCase']();_0x53e1c9['enableDefaultAttributesIntegration'](_0x1df5ea),_0x53e1c9['registerInlineAttribute'](_0x1df5ea),_0x53e1c9['descriptionFactory']['registerAttributeLabel'](_0x1df5ea,o(_0x2ae356,_0x207a32));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a5666=this['editor'],_0x42bc65=_0x5a5666['locale'],_0x3c3182=_0x5a5666['plugins']['get']('TrackChangesEditing');function _0x11d82b(_0x1f3891,_0x566c49){_0x3c3182['descriptionFactory']['registerDescriptionCallback'](_0x3096d8=>{if('formatInline'!=_0x3096d8['type'])return;const {data:_0x16745b}=_0x3096d8;return _0x16745b&&_0x16745b['commandName']===_0x1f3891?_0x16745b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42bc65,'*Format:*\x20%0',_0x566c49)}:{'type':'format','content':o(_0x42bc65,'*Remove\x20format:*\x20%0',_0x566c49)}:void 0x0;});}_0x11d82b('bold',o(_0x42bc65,'FORMAT_BOLD')),_0x11d82b('italic',o(_0x42bc65,'FORMAT_ITALIC')),_0x11d82b('underline',o(_0x42bc65,'FORMAT_UNDERLINE')),_0x11d82b('code',o(_0x42bc65,'FORMAT_CODE')),_0x11d82b('strikethrough',o(_0x42bc65,'FORMAT_STRIKETHROUGH')),_0x11d82b('subscript',o(_0x42bc65,'FORMAT_SUBSCRIPT')),_0x11d82b('superscript',o(_0x42bc65,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1530f7{['afterInit'](){const _0x27e53f=this['editor'],_0x2de02b=_0x27e53f['locale'];if(!_0x27e53f['plugins']['has']('BlockQuoteEditing'))return;const _0x2fd19e=_0x27e53f['plugins']['get']('TrackChangesEditing'),_0x2b7d6d=this['editor']['commands']['get']('blockQuote');_0x2fd19e['enableCommand']('blockQuote',(_0x283649,_0xf6f2c5={})=>{const _0x2e01bb=this['editor']['model']['document']['selection'],_0x1774a1=_0xf6f2c5&&void 0x0!==_0xf6f2c5['forceValue']?_0xf6f2c5['forceValue']:!_0x2b7d6d['value'];let _0x5c5842=[];if(_0x1774a1){const _0x586f77=Array['from'](_0x2e01bb['getSelectedBlocks']())['filter'](_0x4356b9=>oo(_0x4356b9)||function(_0x46a19a,_0x3965aa){const _0x438ded=_0x3965aa['checkChild'](_0x46a19a['parent'],'blockQuote'),_0x31b4b0=_0x3965aa['checkChild'](['$root','blockQuote'],_0x46a19a);return _0x438ded&&_0x31b4b0;}(_0x4356b9,this['editor']['model']['schema']));_0x5c5842=to(_0x586f77,_0x27e53f['model']);}else{const _0x2f1fb8=Array['from'](_0x2e01bb['getSelectedBlocks']())['filter'](_0x55fcfb=>oo(_0x55fcfb));_0x5c5842=to(_0x2f1fb8,_0x27e53f['model']);}_0x27e53f['model']['change'](()=>{for(const _0x25994b of _0x5c5842)_0x2fd19e['markBlockFormat'](_0x25994b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1774a1}]});});}),_0x2fd19e['descriptionFactory']['registerDescriptionCallback'](_0x86115=>{const {data:_0x48c621}=_0x86115;if(_0x48c621&&'blockQuote'==_0x48c621['commandName']){const _0x23b4dd=o(_0x2de02b,'ELEMENT_BLOCK_QUOTE');return _0x48c621['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2de02b,'*Set\x20format:*\x20%0',_0x23b4dd)}:{'type':'format','content':o(_0x2de02b,'*Remove\x20format:*\x20%0',_0x23b4dd)};}});}}function oo(_0xf00316){return'blockQuote'==_0xf00316['parent']['name'];}class L extends _0x1530f7{['afterInit'](){const _0x283131=this['editor'];_0x283131['plugins']['has']('CaseChange')&&(_0x283131['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x283131['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x283131['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1530f7{['afterInit'](){const _0x58a232=this['editor'];_0x58a232['commands']['get']('ckbox')&&_0x58a232['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x1530f7{['afterInit'](){const _0x2e08ef=this['editor'];if(!_0x2e08ef['plugins']['has']('CodeBlock'))return;const _0x2e45cf=_0x2e08ef['plugins']['get']('TrackChangesEditing'),_0x29c5ff=_0x2e08ef['locale'],_0x33e52a=_0x2e08ef['config']['get']('codeBlock')['languages'],_0x5d9c13=_0x2e08ef['commands']['get']('codeBlock');_0x2e45cf['enableCommand']('indentCodeBlock'),_0x2e45cf['enableCommand']('outdentCodeBlock'),_0x2e45cf['enableCommand']('codeBlock',(_0x2e653d,_0x4f2a99={})=>{const _0x322ed1=_0x2e08ef['model'],_0x2035f0=_0x2e08ef['model']['document']['selection'],_0x33c37b=_0x4f2a99&&void 0x0!==_0x4f2a99['forceValue']?_0x4f2a99['forceValue']:!_0x5d9c13['value'];let _0x16cab3;_0x4f2a99['language']||(_0x4f2a99['language']=_0x33e52a[0x0]['language']),_0x16cab3=_0x33c37b?Array['from'](_0x2035f0['getSelectedBlocks']())['filter'](_0x4da1ce=>eo(_0x4da1ce)||function(_0x5014ba,_0x2f2b6b){if(_0x5014ba['is']('rootElement')||_0x2f2b6b['isLimit'](_0x5014ba))return!0x1;return _0x2f2b6b['checkChild'](_0x5014ba['parent'],'codeBlock');}(_0x4da1ce,_0x322ed1['schema'])):Array['from'](_0x2035f0['getSelectedBlocks']())['filter'](_0x21faf1=>eo(_0x21faf1));const _0x2c4b57=to(_0x16cab3,_0x322ed1);_0x322ed1['change'](()=>{for(const _0x23bd2a of _0x2c4b57)_0x2e45cf['markBlockFormat'](_0x23bd2a,{'commandName':'codeBlock','commandParams':[{..._0x4f2a99,'forceValue':_0x33c37b}],'formatGroupId':'blockName'});});}),(_0x2e45cf['descriptionFactory']['registerElementLabel']('codeBlock',_0x3e45b6=>o(_0x29c5ff,'ELEMENT_CODE_BLOCK',_0x3e45b6)),_0x2e45cf['descriptionFactory']['registerDescriptionCallback'](_0xd33544=>{if('formatBlock'!=_0xd33544['type'])return;const _0x4bde52=_0x29c5ff['t'],{data:_0x65237a}=_0xd33544;if(!_0x65237a||'codeBlock'!=_0x65237a['commandName'])return;const _0x151ead=_0x65237a['commandParams'][0x0]['language'],_0x3083ce=_0x4bde52(_0x33e52a['find'](_0x1a435f=>_0x1a435f['language']===_0x151ead)['label'])['toLowerCase']();return _0x65237a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29c5ff,'*Set\x20format:*\x20%0',o(_0x29c5ff,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3083ce+')')}:{'type':'format','content':o(_0x29c5ff,'*Remove\x20format:*\x20%0',o(_0x29c5ff,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x74af1f){return'codeBlock'==_0x74af1f['name'];}class q extends _0x1530f7{['afterInit'](){const _0x51e677=this['editor'];if(!_0x51e677['plugins']['has']('CommentsEditing'))return;_0x51e677['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23a4db,_0x21d680,_0x331eef){const _0x231c58=[];for(const _0x152180 of _0x21d680['getItems']())_0x152180['hasAttribute'](_0x23a4db)&&_0x231c58['push'](_0x331eef['createRangeOn'](_0x152180));return _0x231c58;}function _e(_0x517083,_0x4471f4,{showActiveMarker:_0x18c715=!0x0}={}){const _0x35524c=_0x517083['plugins']['get']('TrackChangesEditing');return(_0x3de231,_0x465ef6,_0x45cd36)=>{if(!_0x45cd36['consumable']['test'](_0x465ef6['markerRange'],_0x3de231['name']))return;const _0x34d96e=_0x465ef6['markerRange']['getWalker'](),_0x267dd5=_0x465ef6['markerRange']['start'],_0xb0081b=_0x517083['model']['schema'];let _0x51fb1b=null,_0x23a934=null,_0x42283a=!0x1,_0x4ef7a0=!0x1;for(const _0x163427 of _0x34d96e){const _0x1f3095=_0x163427['item'];_0x42283a=_0x42283a||_0xb0081b['isContent'](_0x1f3095);const _0xc242e0=_0x45cd36['mapper']['toViewElement'](_0x1f3095);if(_0xc242e0&&_0xc242e0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x163427['type']&&(_0xb0081b['isBlock'](_0x1f3095)&&!_0xb0081b['isLimit'](_0x1f3095)&&(_0x1f3095['nextSibling']||_0x267dd5['isAtEnd']?_0x51fb1b&&_0x51fb1b['parent']==_0x1f3095||(_0x51fb1b=_0x1f3095,_0x4ed45d(_0x163427['previousPosition']),_0x4ef7a0=!0x0):_0x23a934=_0x23a934||_0x163427['previousPosition']));}function _0x4ed45d(_0x32a964){const {authorId:_0xcdc292}=_0x35524c['_splitMarkerName'](_0x465ef6['markerName']),_0x59c631=_0x45cd36['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4471f4,'data-author-id':_0xcdc292}),_0x2e8096=_0x45cd36['mapper']['toViewPosition'](_0x32a964);_0x18c715&&_0x35524c['activeMarkers']['includes'](_0x465ef6['markerName'])&&_0x45cd36['writer']['addClass']('ck-suggestion-marker--active',_0x59c631),_0x45cd36['writer']['insert'](_0x2e8096,_0x59c631),_0x45cd36['mapper']['bindElementToMarker'](_0x59c631,_0x465ef6['markerName']);}_0x42283a||_0x4ef7a0||!_0x23a934||_0x4ed45d(_0x23a934);};}class z extends _0x1530f7{static get['requires'](){return[_0xc27c33];}['init'](){const _0xdd6e0c=this['editor'],_0x2ac4f8=_0xdd6e0c['plugins']['get']('TrackChangesEditing');_0x2ac4f8['enableCommand']('delete');const _0x1e8e5a=_0xdd6e0c['commands']['get']('deleteForward');_0x2ac4f8['enableCommand']('deleteForward',(_0x75919d,_0x5136a4={})=>{const _0x2a0870=_0xdd6e0c['model']['createSelection'](_0xdd6e0c['model']['document']['selection']);_0x2a0870['isCollapsed']&&_0xdd6e0c['model']['modifySelection'](_0x2a0870,{'direction':'forward','unit':_0x5136a4['unit']});const _0x7dca81=_0x2a0870['getFirstRange'](),_0x1e47b0=_0x5018e8['fromRange'](_0x7dca81);let _0x561bcb;_0x75919d(_0x5136a4),_0x561bcb='$graveyard'==_0x1e47b0['root']['rootName']?_0xdd6e0c['model']['createRange'](_0x7dca81['start']):_0xdd6e0c['model']['createRange'](_0x1e47b0['start'],_0x1e47b0['end']),_0x1e47b0['detach'](),_0xdd6e0c['model']['enqueueChange'](_0x1e8e5a['buffer']['batch'],_0x72903e=>{_0x1e8e5a['buffer']['lock'](),_0x72903e['setSelection'](_0x72903e['createRange'](_0x561bcb['end'])),_0x1e8e5a['buffer']['unlock']();});}),_0xdd6e0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xdd6e0c,'merge'),{'priority':'high'}),_0xdd6e0c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xe09993,_0x94b34c,_0x85bc3e)=>{_0x85bc3e['options']['showSuggestionHighlights']&&_e(_0xdd6e0c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xe09993,_0x94b34c,_0x85bc3e);},{'priority':'high'}),_0xdd6e0c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4bb8d2,_0x204397,_0x5e684f)=>{const _0x2979f1=_0x5e684f['mapper']['markerNameToElements'](_0x204397['markerName']);if(_0x2979f1){for(const _0x7ba2b3 of _0x2979f1)_0x7ba2b3['is']('uiElement')&&(_0x5e684f['mapper']['unbindElementFromMarkerName'](_0x7ba2b3,_0x204397['markerName']),_0x5e684f['writer']['remove'](_0x7ba2b3));}},{'priority':'high'});}}class K extends _0x1530f7{['afterInit'](){const _0x17581b=this['editor'];if(!_0x17581b['plugins']['has']('ListEditing'))return;const _0x4f806a=_0x17581b['locale'],_0x45ab87=_0x17581b['plugins']['get']('TrackChangesEditing'),_0x2fb0a5=_0x17581b['plugins']['has']('TodoListEditing'),_0x385db8=!!_0x17581b['config']['get']('list.multiBlock');function _0x22a54d(_0x1a8542){return{'type':'format','content':''+o(_0x4f806a,'*Set\x20format:*\x20%0',_0x1a8542)};}function _0x54ea83(_0x2303ae){return{'type':'format','content':''+o(_0x4f806a,'*Remove\x20format:*\x20%0',_0x2303ae)};}_0x45ab87['enableDefaultAttributesIntegration']('numberedList'),_0x45ab87['enableDefaultAttributesIntegration']('bulletedList'),_0x45ab87['enableDefaultAttributesIntegration']('customNumberedList'),_0x45ab87['enableDefaultAttributesIntegration']('customBulletedList'),_0x45ab87['enableDefaultAttributesIntegration']('indentList'),_0x45ab87['enableDefaultAttributesIntegration']('outdentList'),_0x45ab87['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x45ab87['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x45ab87['registerBlockAttribute']('listItemId'),_0x45ab87['registerBlockAttribute']('listType'),_0x45ab87['registerBlockAttribute']('listIndent'),_0x385db8&&(_0x45ab87['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x45ab87['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2fb0a5&&(_0x45ab87['enableDefaultAttributesIntegration']('todoList'),_0x45ab87['enableDefaultAttributesIntegration']('checkTodoList'),_0x45ab87['registerBlockAttribute']('todoListChecked'),_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x35b02a=>{const {data:_0x12cdf4}=_0x35b02a;if(_0x12cdf4&&'todoListChecked'==_0x12cdf4['key'])return{'type':'format','content':_0x12cdf4['newValue']?o(_0x4f806a,'*Check\x20item*'):o(_0x4f806a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31129b=>{if(_0x31129b['batch']['isUndo'])return!0x1;let _0x163641=!0x1;const _0x267d7a=_0x45ab87['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x371070=>'todoListChecked'===_0x45ab87['_getAttributeKey'](_0x371070));for(const _0xa852b0 of _0x267d7a){'todo'!=_0xa852b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x45ab87['_findSuggestions'](_0xa852b0['getFirstRange'](),'attribute')['find'](_0x1831d0=>'listType'===_0x45ab87['_getAttributeKey'](_0x1831d0['suggestion']))||(_0x31129b['removeMarker'](_0xa852b0['getFirstMarker']()),_0x163641=!0x0));}return _0x163641;})),_0x45ab87['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4f806a,'FORMAT_INDENT'));const _0x43be6c={'type':'format','content':''};_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x23533a=>{const {data:_0x1a740c}=_0x23533a;if(!_0x1a740c||'listType'!=_0x1a740c['key'])return;let _0x408316=_0x23533a['head'];for(;_0x408316;){if(_0x408316['data']&&(('listStyle'==_0x408316['data']['key']||'listMarkerStyle'==_0x408316['data']['key'])&&(_0x408316['data']['newValue']&&'default'!=_0x408316['data']['newValue']||'default'!=_0x408316['data']['oldValue']&&!_0x1a740c['newValue'])||!_0x385db8&&_0x408316['data']['key']==m))return _0x43be6c;_0x408316=_0x408316['next'];}if(null==_0x1a740c['newValue'])switch(_0x1a740c['oldValue']){case'bulleted':return _0x54ea83(o(_0x4f806a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54ea83(o(_0x4f806a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54ea83(o(_0x4f806a,'ELEMENT_TODO_LIST'));}switch(_0x1a740c['newValue']){case'bulleted':return _0x22a54d(o(_0x4f806a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22a54d(o(_0x4f806a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22a54d(o(_0x4f806a,'ELEMENT_TODO_LIST'));}}),_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x5436d9=>{const {data:_0x386aa0}=_0x5436d9;if(_0x386aa0&&'listIndent'==_0x386aa0['key'])return null==_0x386aa0['newValue']||null==_0x386aa0['oldValue']&&0x0==_0x386aa0['newValue']?_0x43be6c:void 0x0;}),_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x2c0c80=>{if('attribute'!=_0x2c0c80['type'])return;const {data:_0x27f994}=_0x2c0c80;if(!_0x27f994||'listItemId'!=_0x27f994['key'])return;const _0x584acf=Ee(_0x2c0c80);return'newValue'==_0x584acf?{'type':'format','content':o(_0x4f806a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x584acf?{'type':'format','content':o(_0x4f806a,'*Split:*\x20list\x20item')}:_0x43be6c;}),_0x17581b['model']['document']['registerPostFixer'](_0xc712ea=>this['listItemIdFixer'](_0xc712ea)),_0x17581b['model']['document']['registerPostFixer'](_0xdcc79c=>this['noTrackChangesFixer'](_0xdcc79c)),_0x17581b['model']['document']['on']('change:data',(_0x455ceb,_0x2531a8)=>{if(_0x2531a8['isUndo']||!_0x2531a8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x205d37){if(_0x205d37['batch']['isUndo']||!_0x205d37['batch']['isLocal'])return!0x1;let _0x33f71c=!0x1;const _0x403844=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34bfda=>_0x34bfda['data']&&'listItemId'==_0x34bfda['data']['key'])['filter'](_0x3ab3e2=>_0x3ab3e2['data']['newValue']&&_0x3ab3e2['data']['oldValue']);for(const _0x4f5aaf of _0x403844)Ee(_0x4f5aaf)||(_0x205d37['removeMarker'](_0x4f5aaf['getFirstMarker']()),_0x33f71c=!0x0);return _0x33f71c;}['noTrackChangesFixer'](_0x295959){if(_0x295959['batch']['isUndo']||!_0x295959['batch']['isLocal'])return!0x1;const _0x239dbd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x239dbd['trackChangesCommand']['value'])return!0x1;let _0x3f2dcc=!0x1;const _0x20045d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x30a061=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x13a06b=>'attribute'==_0x13a06b['type'])['filter'](_0x37b7ee=>_0x20045d['includes'](_0x37b7ee['attributeKey']));if(0x0==_0x30a061['length'])return _0x3f2dcc;for(const _0x4f381b of _0x30a061){const _0x472aee=_0x239dbd['_findSuggestions'](_0x4f381b['range'],'attribute')['filter'](_0x38b585=>!_0x38b585['meta']['isNextTo'])['map'](_0x2ca1c6=>_0x2ca1c6['suggestion'])['filter'](_0xc5621=>{const _0x2241ad=_0x239dbd['_getAttributeKey'](_0xc5621);return _0x20045d['includes'](_0x2241ad);});if(_0x472aee['length']){for(const _0x4b5db3 of _0x472aee)_0x295959['removeMarker'](_0x4b5db3['getFirstMarker']());_0x3f2dcc=!0x0;}}return _0x3f2dcc;}['assureChains'](){const _0x1eb795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54f5f9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x41fe7c;const _0x5a2ff3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x115b46=>{if(_0x115b46['data']['oldRange']||!_0x115b46['data']['newRange'])return null;if(!_0x115b46['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4b4dcc}=_0x1eb795['_splitMarkerName'](_0x115b46['name']);if(!_0x1eb795['hasSuggestion'](_0x4b4dcc))return null;const _0x8dce2d=_0x1eb795['getSuggestion'](_0x4b4dcc);return _0x54f5f9['includes'](_0x8dce2d['data']['key']);})['map'](_0x28715d=>{const {id:_0x181f7c}=_0x1eb795['_splitMarkerName'](_0x28715d['name']),_0x3337c8=_0x1eb795['getSuggestion'](_0x181f7c);return _0x41fe7c=_0x3337c8['attributes']['groupId'],_0x3337c8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a2ff3['size'])return;const _0x422f62=_0x1eb795['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43ae9d=>'attribute'==_0x43ae9d['type']&&_0x43ae9d['data']&&_0x54f5f9['includes'](_0x43ae9d['data']['key'])&&_0x43ae9d['attributes']['groupId']!=_0x41fe7c)['map'](_0x3f2855=>({'listItem':_0x3f2855['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3f2855['attributes']['groupId']})),_0x111c21=new Set();for(const {groupId:_0x4a2289,listItem:_0x293dc0}of _0x422f62)_0x5a2ff3['has'](_0x293dc0)&&_0x111c21['add'](_0x4a2289);for(const _0x2ff00d of _0x1eb795['getSuggestions']())_0x111c21['has'](_0x2ff00d['attributes']['groupId'])&&_0x2ff00d['setAttribute']('groupId',_0x41fe7c);}['_supportLegacySuggestions'](){const _0x26d254=this['editor'],_0x2fa11b=_0x26d254['locale'],_0x1c2299=_0x26d254['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1c2299['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x21ad32,_0x410a96){const _0x37abd8=[];for(let _0x10ab84 of _0x21ad32)_0x10ab84['start']['nodeAfter']===_0x10ab84['end']['parent']&&(_0x10ab84=_0x26d254['model']['createRange'](_0x26d254['model']['createPositionAt'](_0x10ab84['start']['nodeAfter'],0x0))),_0x37abd8['push'](_0x10ab84);_0x26d254['model']['change'](_0x178247=>{const _0x1844cc=_0x26d254['model']['document']['selection'],_0x2c63c7=Array['from'](_0x1844cc['getRanges']())['map'](_0x2a6878=>_0x5018e8['fromRange'](_0x2a6878));_0x178247['setSelection'](_0x37abd8),_0x26d254['commands']['get'](_0x410a96['commandName'])['refresh'](),_0x410a96['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x26d254['execute'](_0x410a96['commandName'],..._0x410a96['commandParams']),_0x178247['setSelection'](_0x2c63c7);for(const _0x138f86 of _0x2c63c7)_0x138f86['detach']();});}),_0x1c2299['descriptionFactory']['registerElementLabel'](function(_0x5dbec0){const _0x20d18f=!_0x26d254['model']['schema']['isObject'](_0x5dbec0),_0x303c1c=_0x5dbec0['previousSibling'],_0x25a455=_0x5dbec0['nextSibling'],_0x9de7fc=_0x5dbec0['getAttribute']('listItemId'),_0x994f85=!_0x303c1c||_0x303c1c['getAttribute']('listItemId')!==_0x9de7fc,_0xbaf2a3=!_0x25a455||_0x25a455['getAttribute']('listItemId')!==_0x9de7fc;return _0x20d18f&&Boolean(_0x9de7fc)&&_0x994f85&&_0xbaf2a3;},_0x1f3a44=>o(_0x2fa11b,'ELEMENT_LIST_ITEM',_0x1f3a44));}['_registerLegacyDescription'](){const _0xa628ea=this['editor'],_0x49cea7=_0xa628ea['locale'];function _0x5bd76c(_0x3b2cb0){const _0x26624d=_0xa628ea['commands']['get']('bulletedList')['value'],_0x473f02=_0xa628ea['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b2cb0?_0x26624d:_0x473f02;}_0xa628ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xbb345d){if('formatBlock'!=_0xbb345d['type'])return;const {data:_0x330082}=_0xbb345d;if(!_0x330082)return;let _0x509e27,_0x144026,_0x4e591f,_0x2ffad5;switch(_0x330082['commandName']){case'bulletedList':_0x4e591f=_0x330082['commandParams'][0x0]['forceValue'],_0x2ffad5=_0x5bd76c(_0x330082['commandName']),_0x509e27=_0x4e591f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ffad5&&_0xa628ea['config']['get']('list.multiBlock')||(_0x509e27='*Change\x20to:*\x20%0'),_0x144026={'type':'format','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4e591f=_0x330082['commandParams'][0x0]['forceValue'],_0x2ffad5=_0x5bd76c(_0x330082['commandName']),_0x509e27=_0x4e591f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ffad5&&_0xa628ea['config']['get']('list.multiBlock')||(_0x509e27='*Change\x20to:*\x20%0'),_0x144026={'type':'format','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x509e27='*Indent:*\x20%0',_0x144026={'type':'format','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x509e27=function(_0x52ce39){const _0x3cbada=_0x52ce39['getFirstRange']();let _0x50188d=_0x3cbada['start']['nodeAfter'];for(;_0x50188d&&_0x3cbada['containsItem'](_0x50188d);){if(_0x50188d['getAttribute']('listIndent')>0x0)return!0x1;_0x50188d=_0x50188d['nextSibling'];}return!0x0;}(_0xbb345d)?o(_0x49cea7,'*Format:*\x20remove\x20from\x20%0',o(_0x49cea7,function(_0x50e575){return'ELEMENT_'+_0x50e575['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xbb345d))):o(_0x49cea7,'*Outdent:*\x20%0',o(_0x49cea7,'ELEMENT_LIST_ITEM')),_0x144026={'type':'format','content':_0x509e27};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x330082['multipleBlocks']&&(_0x509e27='*Merge:*\x20%0',_0x144026={'type':'deletion','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_LIST_ITEM'))});}return _0x144026;});}}function Ee(_0x334f12){let _0x40f396=_0x334f12['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40f396;){const _0x343ca8=_0x40f396['getAttribute']('listItemId');if(!_0x343ca8)return!0x1;if(_0x343ca8==_0x334f12['data']['newValue'])return'newValue';if(_0x343ca8==_0x334f12['data']['oldValue'])return'oldValue';_0x40f396=_0x40f396['previousSibling'];}return!0x1;}class pe extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ce83d=this['editor']['config']['get']('list.properties'),_0x5a3520=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ce83d['styles']&&(_0x5a3520['enableDefaultAttributesIntegration']('listStyle'),_0x5a3520['registerBlockAttribute']('listStyle')),_0x1ce83d['reversed']&&(_0x5a3520['enableDefaultAttributesIntegration']('listReversed'),_0x5a3520['registerBlockAttribute']('listReversed')),_0x1ce83d['startIndex']&&(_0x5a3520['enableDefaultAttributesIntegration']('listStart'),_0x5a3520['registerBlockAttribute']('listStart'));const _0x442ff7={'type':'format','content':''};_0x5a3520['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1712cd=this['editor']['locale'];_0x5a3520['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1712cd,'FORMAT_LIST_REVERSED')),_0x5a3520['descriptionFactory']['registerDescriptionCallback'](_0x196900=>{const {data:_0x3eca48}=_0x196900;if(_0x3eca48&&'listReversed'==_0x3eca48['key'])return null==_0x3eca48['newValue']||0x0==_0x3eca48['newValue']&&null==_0x3eca48['oldValue']?_0x442ff7:void 0x0;}),_0x5a3520['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1712cd,'FORMAT_LIST_START')),_0x5a3520['descriptionFactory']['registerDescriptionCallback'](_0x53c2a4=>{const {data:_0x3b342c}=_0x53c2a4;if(_0x3b342c&&'listStart'==_0x3b342c['key'])return null==_0x3b342c['newValue']||0x1==_0x3b342c['newValue']&&null==_0x3b342c['oldValue']?_0x442ff7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5afb70=>{if(_0x5afb70['batch']['isUndo'])return!0x1;let _0x5e7cd3=!0x1;const _0x1bec2a=_0x5a3520['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x395063=>{const _0x28ca4b=_0x5a3520['_getAttributeKey'](_0x395063);return'listStart'==_0x28ca4b||'listReversed'==_0x28ca4b;});for(const _0x737d38 of _0x1bec2a){const _0x2415f0=_0x737d38['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2415f0||'customNumbered'==_0x2415f0)continue;_0x5a3520['_findSuggestions'](_0x737d38['getFirstRange'](),'attribute')['find'](_0x7a7bc0=>'listType'==_0x5a3520['_getAttributeKey'](_0x7a7bc0['suggestion']))||(_0x5afb70['removeMarker'](_0x737d38['getFirstMarker']()),_0x5e7cd3=!0x0);}return _0x5e7cd3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x210e59){const _0x3eaf2f=this['editor']['locale'],{data:_0x16e3e0}=_0x210e59,_0x42cb1a={'type':'format','content':''};if(!_0x16e3e0||'listStyle'!=_0x16e3e0['key'])return;if(!_0x16e3e0['oldValue'])return'default'==_0x16e3e0['newValue']?_0x42cb1a:{'type':'format','content':''+o(_0x3eaf2f,'*Set\x20format:*\x20%0',o(_0x3eaf2f,this['_getTranslationKeyForListStyle'](_0x16e3e0['newValue'])))};if(!_0x16e3e0['newValue']){if('default'==_0x16e3e0['oldValue'])return _0x42cb1a;let _0x10cb9a=_0x210e59['head'];for(;_0x10cb9a;){if(_0x10cb9a['data']&&'listType'==_0x10cb9a['data']['key']&&_0x10cb9a['data']['newValue'])return _0x42cb1a;_0x10cb9a=_0x10cb9a['next'];}return{'type':'format','content':''+o(_0x3eaf2f,'*Remove\x20format:*\x20%0',o(_0x3eaf2f,this['_getTranslationKeyForListStyle'](_0x16e3e0['oldValue'])))};}if('default'!=_0x16e3e0['newValue'])return{'type':'format','content':''+o(_0x3eaf2f,'*Set\x20format:*\x20%0',o(_0x3eaf2f,this['_getTranslationKeyForListStyle'](_0x16e3e0['newValue'])))};let _0x382603=_0x210e59['head'];for(;_0x382603;){if(_0x382603['data']&&'listType'==_0x382603['data']['key']&&_0x382603['data']['newValue']&&_0x382603['data']['oldValue'])return _0x42cb1a;_0x382603=_0x382603['next'];}return{'type':'format','content':o(_0x3eaf2f,'*Set\x20format:*\x20%0',o(_0x3eaf2f,'ELEMENT_'+_0x210e59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5b3526=this['editor'],_0x2f2861=_0x5b3526['locale'];_0x5b3526['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e5ea7=>{if('formatBlock'!=_0x1e5ea7['type'])return;const {data:_0x422cdc}=_0x1e5ea7;if(!_0x422cdc)return;let _0x274439,_0xf337ca;switch(_0x422cdc['commandName']){case'listStyle':_0x274439='*Change\x20to:*\x20%0',_0xf337ca={'type':'format','content':o(_0x2f2861,_0x274439,o(_0x2f2861,this['_getTranslationKeyForListStyle'](_0x422cdc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x274439=_0x422cdc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf337ca={'type':'format','content':o(_0x2f2861,_0x274439)};break;case'listStart':_0x274439='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf337ca={'type':'format','content':o(_0x2f2861,_0x274439,_0x422cdc['commandParams'][0x0]['startIndex'])};}return _0xf337ca;});}['_getTranslationKeyForListStyle'](_0x28a963){return'ELEMENT_'+function(_0x355995){if(ye['includes'](_0x355995))return'bulleted';if(Se['includes'](_0x355995))return'numbered';return null;}(_0x28a963)['toUpperCase']()+'_LIST_'+_0x28a963['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1530f7{static get['requires'](){return[_0x4d68a7];}['init'](){const _0x5e6611=this['editor'],_0xe0c9b3=_0x5e6611['plugins']['get']('TrackChangesEditing'),_0x52ae4f=_0x5e6611['commands']['get']('enter');_0xe0c9b3['enableCommand']('enter',()=>{_0x5e6611['model']['change'](_0xe6435f=>{const _0x4b4282=_0x5e6611['model']['document']['selection'],_0x19013b=_0x4b4282['getFirstPosition'](),_0x444fe2=_0x5018e8['fromRange'](_0x4b4282['getFirstRange']());if(_0x52ae4f['enterBlock'](_0xe6435f)){const _0x30d3cc=_0x5e6611['model']['createPositionAt'](_0x19013b['parent']['nextSibling'],0x0),_0x3335e5=_0xe6435f['createRange'](_0x19013b,_0x30d3cc);_0xe0c9b3['markInsertion'](_0x3335e5);}else _0xe6435f['setSelection'](_0xe6435f['createRange'](_0x444fe2['end']));_0x444fe2['detach'](),_0x52ae4f['fire']('afterExecute',{'writer':_0xe6435f});});}),_0x5e6611['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5e6611,'split'),{'priority':'high'}),_0x5e6611['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x448318,_0x3ccfa8,_0x3d0da0)=>{const _0x2e93ab=_0x3d0da0['mapper']['markerNameToElements'](_0x3ccfa8['markerName']);if(_0x2e93ab){for(const _0x1de56f of _0x2e93ab)_0x1de56f['hasClass']('ck-suggestion-marker-split')&&(_0x3d0da0['mapper']['unbindElementFromMarkerName'](_0x1de56f,_0x3ccfa8['markerName']),_0x3d0da0['writer']['remove'](_0x1de56f));}},{'priority':'high'}),_0x5e6611['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b900f,_0x5cbbe8,_0x3bec7a)=>{_0x3bec7a['options']['showSuggestionHighlights']&&_e(_0x5e6611,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1b900f,_0x5cbbe8,_0x3bec7a);},{'priority':'high'});}}class X extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x19eeca=this['editor']['plugins']['get']('TrackChangesEditing');_0x19eeca['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x19eeca['enableCommand']('findNext'),_0x19eeca['enableCommand']('findPrevious'),_0x19eeca['enableCommand']('replace'),_0x19eeca['enableCommand']('replaceAll');}['handleFindCommand'](_0x95c667,_0x2d4015,_0x18d96f={}){const _0x37ff60=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x95c667(_0xc0dc7b=>{let _0xfd8b9f=('string'==typeof _0x2d4015?_0x37ff60['findByTextCallback'](_0x2d4015,_0x18d96f):_0x2d4015)(_0xc0dc7b);Array['isArray'](_0xfd8b9f)&&(_0xfd8b9f={'results':_0xfd8b9f,'searchText':'string'==typeof _0x2d4015?_0x2d4015:''});const _0x24b6c2=_0xfd8b9f['results']['filter'](_0x56668a=>!0x1===this['_isInDeletionRange'](_0x56668a,_0xc0dc7b['item']));return{..._0xfd8b9f,'results':_0x24b6c2};},_0x18d96f);}['_isInDeletionRange'](_0x28a26d,_0x489b5b){const _0x339604=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x489b5b,_0x28a26d['start']),this['editor']['model']['createPositionAt'](_0x489b5b,_0x28a26d['end']));for(const _0x335b3a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x339604['getIntersection'](_0x335b3a['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x1530f7{['afterInit'](){const _0x17cbfd=this['editor']['locale'],_0x93376a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x47e86d,commandName:_0x3500ab}of ro)this['editor']['plugins']['has'](_0x47e86d)&&(_0x93376a['enableDefaultAttributesIntegration'](_0x3500ab),_0x93376a['registerInlineAttribute'](_0x3500ab));_0x93376a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x17cbfd,'FORMAT_FONT_SIZE')),_0x93376a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x17cbfd,'FORMAT_FONT_FAMILY')),_0x93376a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x17cbfd,'FORMAT_FONT_COLOR')),_0x93376a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x17cbfd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x512a44=this['editor'],_0x462e99=_0x512a44['locale'];_0x512a44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36167e=>{const _0x266016=_0x462e99['t'];if('formatInline'!=_0x36167e['type'])return;const {data:_0x22f85b}=_0x36167e;if(null!=_0x22f85b){if('fontSize'==_0x22f85b['commandName']){const _0x17b5e3=_0x22f85b['commandParams'][0x0]['value'];if(_0x17b5e3){const _0x50bc92=_0x266016(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1505e1=>_0x1505e1['model']==_0x17b5e3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x462e99,'*Set\x20font\x20size:*\x20%0',_0x50bc92)};}return{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x22f85b['commandName']){const _0x39f057=_0x22f85b['commandParams'][0x0]['value'];return _0x39f057?{'type':'format','content':o(_0x462e99,'*Set\x20font\x20family:*\x20%0',_0x39f057)}:{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20family*')};}if('fontColor'==_0x22f85b['commandName']){const _0x4035bc=_0x22f85b['commandParams'][0x0]['value'];if(_0x4035bc){const _0x20c159=_0x2fd6d3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x59d765=>_0x59d765['model']==_0x4035bc);let _0x22abfa=_0x4035bc,_0x4f811d='';return _0x20c159&&(_0x22abfa=_0x20c159['label'],_0x4f811d=_0x266016(_0x22abfa)['toLowerCase']()),{'type':'format','content':o(_0x462e99,'*Set\x20font\x20color:*\x20%0',_0x4f811d)['trim'](),'color':{'value':_0x4035bc,'title':_0x4f811d||_0x22abfa}};}return{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x22f85b['commandName']){const _0x44ab7c=_0x22f85b['commandParams'][0x0]['value'];if(_0x44ab7c){const _0x1fea70=_0x2fd6d3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x59f524=>_0x59f524['model']==_0x44ab7c);let _0x2c54ca=_0x44ab7c,_0x5cad7d='';return _0x1fea70&&(_0x2c54ca=_0x1fea70['label'],_0x5cad7d=_0x266016(_0x2c54ca)['toLowerCase']()),{'type':'format','content':o(_0x462e99,'*Set\x20font\x20background\x20color:*\x20%0',_0x5cad7d)['trim'](),'color':{'value':_0x44ab7c,'title':_0x5cad7d||_0x2c54ca}};}return{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x1530f7{['afterInit'](){const _0x190271=this['editor'],_0x77152c=_0x190271['plugins']['get']('TrackChangesEditing'),_0x54f9d5=_0x190271['commands']['get']('copyFormat'),_0x59d1f6=_0x190271['commands']['get']('pasteFormat');_0x54f9d5&&_0x59d1f6&&(_0x77152c['enableDefaultAttributesIntegration']('pasteFormat'),_0x77152c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x14a633=this['editor'],_0xc451b0=_0x14a633['locale'];_0x14a633['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1742cf=>{if('formatBlock'!=_0x1742cf['type']&&'formatInline'!=_0x1742cf['type'])return;const {data:_0x4b5ffb}=_0x1742cf;if(_0x4b5ffb&&'pasteFormat'===_0x4b5ffb['commandName']){const _0x2a94e4=[],_0x5cb83d=_0x4b5ffb['commandParams'][0x0];for(const [_0x4c87b5,_0xc84bb5]of Object['entries'](_0x5cb83d))_0x2a94e4['push'](so(_0x14a633,_0x4c87b5,_0xc84bb5));return _0x2a94e4['length']?{'type':'format','content':o(_0xc451b0,'*Set\x20format\x20to:*\x20%0',_0x2a94e4['join'](',\x20'))}:{'type':'format','content':o(_0xc451b0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x37fdd6,_0x3ed6bc,_0x2112ae){const _0x3ddf94=_0x37fdd6['locale']['t'],_0x40c042=_0x3ed6bc['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b7b0f=_0x3ddf94(_0x40c042['charAt'](0x0)['toUpperCase']()+_0x40c042['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2112ae)return _0x3b7b0f;if('fontColor'===_0x3ed6bc||'fontBackgroundColor'===_0x3ed6bc){const _0x4b2067=_0x2fd6d3(_0x37fdd6['config']['get']('fontColor.colors'))['find'](_0x2a6422=>_0x2a6422['model']==_0x2112ae);return _0x3b7b0f+'\x20('+(_0x4b2067?_0x3ddf94(_0x4b2067['label'])['toLowerCase']():_0x2112ae)+')';}if('fontSize'===_0x3ed6bc&&isNaN(parseFloat(_0x2112ae))){const _0x3df1d4=_0x37fdd6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x37fdd6['config']['get']('fontSize.options'))['find'](_0x3b2da5=>_0x3b2da5['model']==_0x2112ae);return _0x3b7b0f+'\x20('+(_0x3df1d4?_0x3ddf94(_0x3df1d4['title'])['toLowerCase']():_0x2112ae)+')';}return _0x3b7b0f+'\x20('+_0x2112ae+')';}class tt extends _0x1530f7{['_headingOptions'];['afterInit'](){const _0x47a8f2=this['editor'];if(!_0x47a8f2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x47a8f2['config']['get']('heading.options');const _0x3bc4bb=_0x47a8f2['locale'],_0x3e4409=_0x47a8f2['plugins']['get']('TrackChangesEditing');_0x3e4409['enableDefaultAttributesIntegration']('heading');for(const _0x5037c9 of this['_headingOptions'])'paragraph'!=_0x5037c9['model']&&_0x3e4409['descriptionFactory']['registerElementLabel'](_0x5037c9['model'],_0x518ac8=>{const _0x34c096=this['_getHeadingLevel'](_0x5037c9['model']);return null!==_0x34c096?_0xec0605(_0x518ac8,_0x34c096):_0x24dc7e(_0x518ac8,_0x5037c9['title']);});function _0xec0605(_0x3c6461,_0x1e8c5b){return o(_0x3bc4bb,'ELEMENT_HEADING',[_0x3c6461,_0x1e8c5b]);}function _0x24dc7e(_0x48bd0b,_0x56446c){return o(_0x3bc4bb,'ELEMENT_HEADING_CUSTOM',[_0x48bd0b,_0x56446c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403160=this['editor'],_0x119151=_0x403160['locale'];function _0x15ddc1(_0x372ea0,_0xe2c223){return o(_0x119151,'ELEMENT_HEADING_CUSTOM',[_0x372ea0,_0xe2c223]);}_0x403160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4930bb=>{if('formatBlock'!=_0x4930bb['type'])return;const {data:_0xef3c2f}=_0x4930bb;if(_0xef3c2f&&'heading'==_0xef3c2f['commandName']){const _0x27e7c1=_0xef3c2f['commandParams'][0x0]['value'],_0x586cb0=this['_getHeadingLevel'](_0x27e7c1);if(null!==_0x586cb0)return{'type':'format','content':o(_0x119151,'*Change\x20to:*\x20%0',(_0xc16230=0x1,_0xbc8040=_0x586cb0,o(_0x119151,'ELEMENT_HEADING',[_0xc16230,_0xbc8040])))};const _0x3ba0be=this['_headingOptions']['find'](_0x920d99=>_0x920d99['model']===_0x27e7c1)['title'];return{'type':'format','content':o(_0x119151,'*Change\x20to:*\x20%0',_0x15ddc1(0x1,_0x3ba0be))};}var _0xc16230,_0xbc8040;});}['_getHeadingLevel'](_0x4ca39c){const _0x192ebc=_0x4ca39c['match'](/^heading(\d+)/);if(_0x192ebc)return _0x192ebc[0x1];const _0x344d0c=this['_headingOptions']?.['find'](_0x24deba=>_0x24deba['model']==_0x4ca39c);if(_0x344d0c&&_0x344d0c['view']){const _0x1efb29=_0x344d0c['view'],_0x3d196c=(_0x1efb29['name']??_0x1efb29)['match'](/^h(\d+)/);if(_0x3d196c)return _0x3d196c[0x1];}return null;}}class et extends _0x1530f7{['afterInit'](){const _0xd2f099=this['editor'];if(!_0xd2f099['plugins']['has']('HighlightEditing'))return;const _0x5593f6=_0xd2f099['plugins']['get']('TrackChangesEditing'),_0x411fb5=_0xd2f099['locale'];_0x5593f6['enableDefaultAttributesIntegration']('highlight'),_0x5593f6['registerInlineAttribute']('highlight'),_0x5593f6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x411fb5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55d636=this['editor'],_0xba457a=_0x55d636['locale'];_0x55d636['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fe167=>{if('formatInline'!=_0x2fe167['type'])return;const {data:_0x3e21e9}=_0x2fe167;if(_0x3e21e9&&'highlight'==_0x3e21e9['commandName']){const _0xa56182=_0xba457a['t'],_0x1fe454=_0x3e21e9['commandParams'][0x0]['value'];if(_0x1fe454){const _0x5d5c17=_0x55d636['config']['get']('highlight.options')['find'](_0x1b7c12=>_0x1b7c12['model']==_0x1fe454),_0x3e2d8e=_0xa56182(_0x5d5c17['title'])['toLowerCase']();return{'type':'format','content':o(_0xba457a,'*Set\x20highlight:*\x20%0',_0x3e2d8e),'color':{'value':_0x5d5c17['color'],'title':_0x5d5c17['title']}};}return{'type':'format','content':o(_0xba457a,'*Remove\x20highlight*',o(_0xba457a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1530f7{['afterInit'](){const _0x3d997c=this['editor'];if(!_0x3d997c['plugins']['has']('HorizontalLineEditing'))return;_0x3d997c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x436ec9=_0x3d997c['plugins']['get']('TrackChangesEditing'),_0x24415c=_0x3d997c['locale'];_0x436ec9['descriptionFactory']['registerElementLabel']('horizontalLine',_0xb83f5e=>o(_0x24415c,'ELEMENT_HORIZONTAL_LINE',_0xb83f5e)),_0x3d997c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x285fa5,{writer:_0x366e9d,options:_0x2fddcb})=>{if(!_0x2fddcb['showSuggestionHighlights'])return null;const _0x21d622=_0x366e9d['createContainerElement']('div'),_0x3a219e=_0x366e9d['createEmptyElement']('hr');return _0x366e9d['addClass']('ck-horizontal-line',_0x21d622),_0x366e9d['insert'](_0x366e9d['createPositionAt'](_0x21d622,0x0),_0x3a219e),_0x21d622;},'converterPriority':'high'});}}class st extends _0x1530f7{['afterInit'](){const _0x13becb=this['editor'];if(!_0x13becb['plugins']['has']('HtmlEmbed'))return;const _0x185b96=_0x13becb['plugins']['get']('TrackChangesEditing'),_0x45b4ef=_0x13becb['locale'];_0x185b96['descriptionFactory']['registerElementLabel']('rawHtml',_0x37cc3a=>o(_0x45b4ef,'ELEMENT_HTML_EMBED',_0x37cc3a)),_0x185b96['enableDefaultAttributesIntegration']('htmlEmbed'),_0x185b96['registerBlockAttribute']('value'),_0x185b96['descriptionFactory']['registerDescriptionCallback'](_0x2d141e=>{if('attribute'!=_0x2d141e['type'])return;const {data:_0x4a5963}=_0x2d141e;if(_0x4a5963&&'value'==_0x4a5963['key']&&_0x2d141e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10b784=o(_0x45b4ef,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45b4ef,'*Change\x20%0\x20content*',_0x10b784)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20600d=this['editor'],_0x3a6f6f=_0x20600d['locale'];_0x20600d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f7184=>{if('formatBlock'!=_0x1f7184['type'])return;const {data:_0x21c61c}=_0x1f7184;if(_0x21c61c&&'htmlEmbed'==_0x21c61c['commandName']){const _0xe75f6c=o(_0x3a6f6f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3a6f6f,'*Change\x20%0\x20content*',_0xe75f6c)};}});}}class nt extends _0x1530f7{['afterInit'](){const _0x3f1ff3=this['editor'];if(!_0x3f1ff3['plugins']['has']('ImageEditing'))return;const _0x48e401=_0x3f1ff3['plugins']['get']('TrackChangesEditing'),_0x38f3d3=_0x3f1ff3['plugins']['get']('ImageUtils'),_0x1756f1=_0x3f1ff3['locale'];_0x48e401['enableCommand']('insertImage'),_0x48e401['descriptionFactory']['registerElementLabel']('imageBlock',_0x2045d4=>o(_0x1756f1,'ELEMENT_IMAGE',_0x2045d4)),_0x48e401['descriptionFactory']['registerElementLabel']('imageInline',_0x21b343=>o(_0x1756f1,'ELEMENT_INLINE_IMAGE',_0x21b343)),_0x48e401['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1756f1,'ELEMENT_CAPTION')),_0x3f1ff3['plugins']['has']('ImageUploadEditing')&&_0x48e401['enableCommand']('uploadImage'),_0x3f1ff3['plugins']['has']('ImageBlockEditing')&&_0x3f1ff3['plugins']['has']('ImageInlineEditing')&&(_0x48e401['enableCommand']('imageTypeInline',(_0x71c68,_0x57a828)=>{const _0x11b26a=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']);_0x3f1ff3['model']['change'](()=>{_0x48e401['markBlockFormat'](_0x11b26a,{'commandName':'imageTypeInline','commandParams':[_0x57a828]},[],'convertBlockImageToInline');});}),_0x48e401['enableCommand']('imageTypeBlock',(_0x1df913,_0x3fd424)=>{_0x3f1ff3['model']['change'](_0x5b4394=>{let _0x155b34=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x32cf25=_0x5b4394['createRangeOn'](_0x155b34);const _0x1fbe45=_0x5a10b9['fromPosition'](_0x32cf25['start'],'toPrevious'),_0x577c8b=_0x5a10b9['fromPosition'](_0x32cf25['end'],'toNext');_0x48e401['forceDefaultExecution'](()=>_0x1df913(_0x3fd424)),_0x155b34=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x32cf25=_0x5b4394['createRangeOn'](_0x155b34);const _0x59f6ee=_0x5b4394['createRange'](_0x1fbe45,_0x577c8b);_0x1fbe45['detach'](),_0x577c8b['detach'](),_0x48e401['markBlockFormat'](_0x155b34,{'commandName':'imageTypeInline','commandParams':[_0x3fd424]},[],'convertInlineImageToBlock'),_0x59f6ee['start']['isBefore'](_0x32cf25['start'])&&_0x48e401['markInsertion'](_0x5b4394['createRange'](_0x59f6ee['start'],_0x32cf25['start']),'convertInlineImageToBlock'),_0x32cf25['end']['isBefore'](_0x59f6ee['end'])&&_0x48e401['markInsertion'](_0x5b4394['createRange'](_0x32cf25['end'],_0x59f6ee['end']),'convertInlineImageToBlock');});}),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48e401['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x52e8c9])=>{const _0xb778c6=_0x48e401['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3b88fb=_0x52e8c9['start'],_0x2a6f49=_0x52e8c9['end'];const _0x2b951e=_0x3f1ff3['model']['schema']['getNearestSelectionRange'](_0x3b88fb,'backward'),_0x1546a2=_0x3f1ff3['model']['schema']['getNearestSelectionRange'](_0x2a6f49,'forward');_0x2b951e['isCollapsed']&&(_0x3b88fb=_0x2b951e['start']),_0x1546a2['isCollapsed']&&(_0x2a6f49=_0x1546a2['end']),_0xb778c6([_0x3f1ff3['model']['createRange'](_0x3b88fb,_0x2a6f49)]);}),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd1791a),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd1791a)),_0x3f1ff3['plugins']['has']('ImageCaptionEditing')&&(_0x48e401['enableCommand']('toggleImageCaption',(_0x183eb7,_0x55d018)=>{const _0x41b8b8=_0x3f1ff3['plugins']['get']('ImageCaptionUtils');let _0x340c94=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x997e43=_0x41b8b8['getCaptionFromImageModelElement'](_0x340c94);_0x3f1ff3['model']['change'](()=>{if(_0x997e43)return void _0x48e401['markDeletion'](_0x3f1ff3['model']['createRangeOn'](_0x997e43));const _0x138e4f=_0x38f3d3['isBlockImage'](_0x340c94);_0x183eb7(_0x55d018),_0x340c94=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x997e43=_0x41b8b8['getCaptionFromImageModelElement'](_0x340c94),_0x48e401['markInsertion'](_0x3f1ff3['model']['createRangeOn'](_0x997e43),_0x138e4f?null:'imageCaption');});}),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd1791a));const _0x5ec08b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41bf24(_0x3f9f0f,_0x32bdee){const _0x365bde=_0x5ec08b['findIndex'](({type:_0x43a75f,subType:_0x2b55f6})=>_0x3f9f0f['type']==_0x43a75f&&_0x3f9f0f['subType']==_0x2b55f6),_0x50d5ac=_0x5ec08b['findIndex'](({type:_0x261ca9,subType:_0x3f0b9a})=>_0x32bdee['type']==_0x261ca9&&_0x32bdee['subType']==_0x3f0b9a);if(_0x365bde<0x0||_0x50d5ac<0x0)return!0x1;const _0x1e86ed=_0x3f9f0f['getFirstRange'](),_0x5406f2=_0x32bdee['getFirstRange']();if((0x0==_0x365bde||0x1==_0x365bde)&&0x2==_0x50d5ac&&_0x1e86ed['isIntersecting'](_0x5406f2))return!0x0;if(0x2==_0x365bde&&0x3==_0x50d5ac){const _0x50c14d=_0x48e401['_findSuggestions'](_0x1e86ed,'insertion')['filter'](({suggestion:_0x56c068,meta:_0x1021b1})=>_0x1021b1['isOwn']&&'convertInlineImageToBlock'==_0x56c068['subType']);if(_0x50c14d['length']>0x1&&_0x5406f2['end']['isEqual'](_0x1e86ed['start']))return!0x0;if(0x1==_0x50c14d['length']&&(_0x1e86ed['start']['isEqual'](_0x5406f2['end'])||_0x1e86ed['end']['isEqual'](_0x5406f2['start'])))return!0x0;}if(0x3==_0x365bde&&0x3==_0x50d5ac&&_0x1e86ed['start']['isBefore'](_0x5406f2['start'])){const _0x2bc4f6=_0x1e86ed['end']['nodeAfter'],_0x32cbb6=_0x5406f2['start']['nodeBefore'];return _0x38f3d3['isBlockImage'](_0x2bc4f6)&&_0x2bc4f6===_0x32cbb6;}return!0x1;}function _0xd1791a(_0x2a3773,_0xff4ea5){return _0x41bf24(_0x2a3773,_0xff4ea5)?[_0x2a3773,_0xff4ea5]:_0x41bf24(_0xff4ea5,_0x2a3773)?[_0xff4ea5,_0x2a3773]:null;}_0x3f1ff3['plugins']['has']('ImageResize')&&(_0x48e401['enableDefaultAttributesIntegration']('resizeImage'),_0x48e401['registerBlockAttribute']('resizedWidth'),_0x48e401['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1756f1,'FORMAT_IMAGE_SIZE'))),_0x3f1ff3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48e401['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48e401['registerBlockAttribute']('alt')),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0x5eebba=>{if(!!_0x5ec08b['find'](({type:_0x5b0e1b,subType:_0x484b87})=>_0x5eebba['type']==_0x5b0e1b&&_0x5eebba['subType']==_0x484b87))return _0x5eebba['previous']?{}:void 0x0;}),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0x3f289d=>{if('insertion'==_0x3f289d['type']||'deletion'==_0x3f289d['type']){const _0x31174e=_0x3f289d['getContainedElement']();if(_0x31174e&&_0x31174e['is']('element','caption'))return{'type':'insertion'==_0x3f289d['type']?'addObject':'removeObject','element':_0x31174e,'quantity':0x1};}}),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0xc83af6=>'formatBlock'==_0xc83af6['type']&&'convertInlineImageToBlock'==_0xc83af6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xc83af6['type']&&'convertBlockImageToInline'==_0xc83af6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0x33c92f=>{if('attribute'!=_0x33c92f['type'])return;const {data:_0x33501f}=_0x33c92f;if(!_0x33501f||'alt'!=_0x33501f['key'])return;const _0x2073a0=_0x33501f['newValue'];return _0x2073a0?{'type':'format','content':o(_0x1756f1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2073a0+'\x22')}:{'type':'format','content':o(_0x1756f1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b8c27=this['editor'],_0x4d3681=_0x9b8c27['locale'];_0x9b8c27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e0e2=>{if('formatBlock'!=_0x47e0e2['type']&&'formatInline'!=_0x47e0e2['type'])return;const {data:_0x2b6902}=_0x47e0e2;if(_0x2b6902){if('imageTextAlternative'==_0x2b6902['commandName']){const _0x3f04c9=_0x2b6902['commandParams'][0x0]['newValue'];return _0x3f04c9?{'type':'format','content':o(_0x4d3681,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f04c9+'\x22')}:{'type':'format','content':o(_0x4d3681,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b6902['commandName']){const _0x4f3dab=_0x2b6902['commandParams'][0x0]['width'];return _0x4f3dab?{'type':'format','content':o(_0x4d3681,'*Set\x20image\x20width:*\x20%0',_0x4f3dab)}:{'type':'format','content':o(_0x4d3681,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x16d855=this['editor']['locale'],_0x5afd63=this['editor']['plugins']['get']('TrackChangesEditing');_0x5afd63['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5afd63['registerBlockAttribute']('src'),_0x5afd63['descriptionFactory']['registerDescriptionCallback'](_0x48595c=>{if('attribute'!=_0x48595c['type'])return;const {data:_0x6910b3}=_0x48595c;return _0x6910b3&&'src'==_0x6910b3['key']?_0x6910b3['newValue']&&_0x6910b3['oldValue']?{'type':'format','content':o(_0x16d855,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d4c8d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d4c8d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d4c8d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d4c8d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d4c8d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a5ef0=this['editor'],_0xaae62c=_0x5a5ef0['locale'];_0x5a5ef0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x985426=>{if('formatBlock'!=_0x985426['type']&&'formatInline'!=_0x985426['type'])return;const {data:_0x176c3a}=_0x985426;if(!_0x176c3a||'replaceImageSource'!=_0x176c3a['commandName'])return;return{'type':'format','content':o(_0xaae62c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x1530f7{['afterInit'](){const _0x3d824d=this['editor'];if(!_0x3d824d['plugins']['has']('ImageStyleEditing'))return;const _0xbf8797=_0x3d824d['plugins']['get']('TrackChangesEditing'),_0x13c230=_0x3d824d['plugins']['get']('ImageUtils'),_0x4296fa={};_0xbf8797['enableCommand']('imageStyle',(_0x62a88c,_0x5774eb)=>{const _0x2b7f1c=_0x3d824d['plugins']['get']('Users')['me'],_0x48df96=_0x3d824d['commands']['get']('imageStyle');let _0x4afca2=_0x13c230['getClosestSelectedImageElement'](_0x3d824d['model']['document']['selection']),_0x404620=_0x3d824d['model']['createRangeOn'](_0x4afca2),_0x209409=_0x48df96['value'];if(_0x209409==_0x5774eb['value'])return;const _0x34425b={'commandName':'imageStyle','commandParams':[_0x5774eb],'formatGroupId':_0x5042b()};_0x3d824d['model']['change'](()=>{if(_0xbf8797['getSuggestions']()['filter'](_0x55c090=>_0x55c090['isInContent']&&_0x2b7f1c==_0x55c090['author']&&('formatBlock'==_0x55c090['type']||'formatInline'==_0x55c090['type'])&&('imageStylePreApply'==_0x55c090['subType']||'imageStylePostApply'==_0x55c090['subType'])&&_0x55c090['getFirstRange']()['isEqual'](_0x404620))['forEach'](_0x377dc4=>_0xbf8797['discardSuggestion'](_0x377dc4['head'])),_0x4afca2=_0x13c230['getClosestSelectedImageElement'](_0x3d824d['model']['document']['selection']),_0x404620=_0x3d824d['model']['createRangeOn'](_0x4afca2),_0x48df96['refresh'](),_0x3d824d['commands']['get']('imageTypeInline')['refresh'](),_0x3d824d['commands']['get']('imageTypeBlock')['refresh'](),_0x209409=_0x48df96['value'],_0x209409!=_0x5774eb['value'])return _0x13c230['isInlineImage'](_0x4afca2)&&_0x48df96['shouldConvertImageType'](_0x5774eb['value'],_0x4afca2)?(_0x62a88c({..._0x5774eb,'setImageSizes':!0x1}),_0x4afca2=_0x13c230['getClosestSelectedImageElement'](_0x3d824d['model']['document']['selection']),void _0xbf8797['markBlockFormat'](_0x4afca2,{..._0x34425b,'commandReversedParams':[{'value':_0x209409||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x13c230['isBlockImage'](_0x4afca2)?_0xbf8797['markBlockFormat'](_0x4afca2,_0x34425b,[],'imageStylePostApply'):_0xbf8797['markInlineFormat'](_0x404620,_0x34425b,'imageStylePostApply'));});});for(const _0x1f76bb of _0x3d824d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4296fa[_0x1f76bb['name']]=_0x1f76bb['title']['toLowerCase']();_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xad6fba])=>{_0x13c230['setImageNaturalSizeAttributes'](_0xad6fba['getContainedElement']());}),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5cc0a0,_0x112be2)=>{_0xbf8797['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5cc0a0,{'commandName':_0x112be2['commandName'],'commandParams':_0x112be2['commandReversedParams']});}),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x46bfb3,_0x3757b3){if(_0x5638a8(_0x46bfb3,_0x3757b3))return[_0x46bfb3,_0x3757b3];if(_0x5638a8(_0x3757b3,_0x46bfb3))return[_0x3757b3,_0x46bfb3];return null;});const _0x22ba63=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5638a8(_0x486129,_0x36331a){const _0x32d1b1=_0x22ba63['findIndex'](({type:_0x1c259c,subType:_0x2f953a})=>_0x486129['type']==_0x1c259c&&_0x486129['subType']==_0x2f953a),_0x55eacc=_0x22ba63['findIndex'](({type:_0x18fa64,subType:_0x2ebdea})=>_0x36331a['type']==_0x18fa64&&_0x36331a['subType']==_0x2ebdea);if(_0x32d1b1<0x0||_0x55eacc<0x0)return!0x1;const _0x1b4aac=_0x486129['getFirstRange'](),_0x116263=_0x36331a['getFirstRange']();if((0x0==_0x32d1b1||0x1==_0x32d1b1)&&0x2==_0x55eacc&&_0x1b4aac['isIntersecting'](_0x116263))return!0x0;if(0x2==_0x32d1b1&&0x3==_0x55eacc){const _0x4001b1=_0xbf8797['_findSuggestions'](_0x1b4aac,'insertion')['filter'](({suggestion:_0x222c9e,meta:_0x4ab0d7})=>_0x4ab0d7['isOwn']&&'convertInlineImageToBlock'==_0x222c9e['subType']);if(_0x4001b1['length']>0x1&&_0x116263['end']['isEqual'](_0x1b4aac['start']))return!0x0;if(0x1==_0x4001b1['length']&&(_0x1b4aac['start']['isEqual'](_0x116263['end'])||_0x1b4aac['end']['isEqual'](_0x116263['start'])))return!0x0;}if(0x3==_0x32d1b1&&0x3==_0x55eacc&&_0x1b4aac['start']['isBefore'](_0x116263['start'])){const _0x4490a8=_0x1b4aac['end']['nodeAfter'],_0x2463ef=_0x116263['start']['nodeBefore'];return _0x13c230['isBlockImage'](_0x4490a8)&&_0x4490a8===_0x2463ef;}return!0x1;}_0x3d824d['model']['document']['registerPostFixer'](()=>{let _0x3f04f1=!0x1;const _0x4464f9=Array['from'](_0x3d824d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x173ab7,data:_0x12e7a0}of _0x4464f9){const {group:_0x297b73,type:_0x42e787,subType:_0x216626,id:_0x2e8fc1}=_0xbf8797['_splitMarkerName'](_0x173ab7);if('suggestion'==_0x297b73&&_0xbf8797['hasSuggestion'](_0x2e8fc1)){if('formatBlock'==_0x42e787&&('imageStylePreApply'==_0x216626||'imageStylePostApply'==_0x216626)){const _0x1c434e=_0xbf8797['getSuggestion'](_0x2e8fc1);if(_0x12e7a0['newRange']){const _0x30a630=_0x1c434e['getFirstRange']()['getContainedElement']();if(_0x13c230['isBlockImage'](_0x30a630))continue;_0xbf8797['discardSuggestion'](_0x1c434e),_0x3f04f1=!0x0;}}if('insertion'==_0x42e787&&'imageCaption'==_0x216626&&!_0x12e7a0['newRange']){const _0x50dcda=_0xbf8797['getSuggestion'](_0x2e8fc1);_0x50dcda['next']&&_0x50dcda['next']['isInContent']&&(_0xbf8797['discardSuggestion'](_0x50dcda['next']),_0x3f04f1=!0x0);}}}return _0x3f04f1;}),this['_registerLegacyDescription'](_0x4296fa);}['_registerLegacyDescription'](_0x2df7d6){const _0x141d9d=this['editor'],_0x3abf36=_0x141d9d['locale'];_0x141d9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x534642=>{if('formatBlock'!=_0x534642['type']&&'formatInline'!=_0x534642['type'])return;const {data:_0x4ff637}=_0x534642;if(!_0x4ff637||'imageStyle'!=_0x4ff637['commandName'])return;const _0x23ce3e=_0x4ff637['commandParams'][0x0]['value'];return _0x344436('side'===_0x23ce3e?o(_0x3abf36,'FORMAT_SIDE_IMAGE'):_0x2df7d6[_0x23ce3e]||_0x23ce3e);function _0x344436(_0x593565){return{'type':'format','content':o(_0x3abf36,'*Format:*\x20%0',_0x593565)};}});}}class at extends _0x1530f7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1c137e){super(_0x1c137e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x90de2d=this['editor'],_0x41b5a2=_0x90de2d['commands']['get']('importWord'),_0x842b25=_0x90de2d['commands']['get']('trackChanges');_0x41b5a2&&(_0x41b5a2['on']('execute',(_0x46dc0e,[,_0x1cb92c])=>{this['_trackChangesValueDuringImport']=_0x842b25['value'],_0x1cb92c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x41b5a2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x41b5a2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x842b25['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x90de2d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3bc261,_0x31026f){const {suggestions:_0x3ca564}=_0x31026f,_0xffb0bc=this['editor']['commands']['get']('trackChanges'),_0x116b02=_0xffb0bc['value'];this['_trackChangesValueDuringImport']!==_0x116b02&&(_0xffb0bc['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ca564&&_0x3ca564['forEach'](({id:_0x394457,type:_0x58d1ad,author:_0x5de302,created_at:_0x212169})=>{const _0x4266d0={'id':_0x394457,'type':_0x58d1ad,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5de302,'createdAt':_0x212169?new Date(_0x212169):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4266d0);});}}class ct extends _0x1530f7{['afterInit'](){const _0x49b0e9=this['editor'],_0x579d31=_0x49b0e9['plugins']['get']('TrackChangesEditing');if(_0x49b0e9['plugins']['has']('IndentEditing')&&(_0x579d31['enableCommand']('indent'),_0x579d31['enableCommand']('outdent')),_0x49b0e9['plugins']['has']('IndentBlock')){for(const _0x4e2e91 of['indentBlock','outdentBlock'])_0x579d31['enableDefaultAttributesIntegration'](_0x4e2e91);}const _0x446278=_0x49b0e9['locale'];_0x579d31['registerBlockAttribute']('blockIndent'),_0x579d31['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x446278,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15dd54=this['editor'],_0x35977d=_0x15dd54['locale'],_0x921011=_0x15dd54['plugins']['get']('TrackChangesEditing');_0x921011['descriptionFactory']['registerDescriptionCallback'](_0x1aba84=>{if('formatBlock'!=_0x1aba84['type'])return;const {data:_0x3fc45b}=_0x1aba84;if(!_0x3fc45b)return;if('indentBlock'!=_0x3fc45b['commandName']&&'outdentBlock'!=_0x3fc45b['commandName'])return;const _0x335fe7=_0x1aba84['getItems']()[0x0],_0x5e75aa=_0x921011['descriptionFactory']['getItemLabel'](_0x335fe7);return'indentBlock'==_0x3fc45b['commandName']?{'type':'format','content':o(_0x35977d,'*Indent:*\x20%0',_0x5e75aa)}:'outdentBlock'==_0x3fc45b['commandName']?{'type':'format','content':o(_0x35977d,'*Outdent:*\x20%0',_0x5e75aa)}:void 0x0;});}}class ut extends _0x1530f7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1530f7{['afterInit'](){const _0x596e22=this['editor'];if(!_0x596e22['plugins']['has']('LinkEditing'))return;const _0x58821c=_0x596e22['plugins']['get']('TrackChangesEditing'),_0x1ed91a=_0x596e22['commands']['get']('link');_0x58821c['enableDefaultAttributesIntegration']('link'),_0x58821c['enableDefaultAttributesIntegration']('unlink'),_0x58821c['registerInlineAttribute']('linkHref');for(const _0x3f39f4 of _0x1ed91a['manualDecorators'])_0x58821c['registerInlineAttribute'](_0x3f39f4['id']),_0x58821c['descriptionFactory']['registerAttributeLabel'](_0x3f39f4['id'],'link\x20('+_0x3f39f4['label']['toLowerCase']()+')');_0x58821c['descriptionFactory']['registerDescriptionCallback'](_0x15addb=>{if('attribute'!=_0x15addb['type'])return;const {data:_0x3e71eb}=_0x15addb;if(!_0x3e71eb||'linkHref'!=_0x3e71eb['key'])return;const _0x5a629f=_0x3e71eb['newValue'],_0xd96d09=_0x596e22['locale'];return{'type':'format','content':null==_0x5a629f?o(_0xd96d09,'*Remove\x20link*'):o(_0xd96d09,'*Set\x20link:*\x20%0','\x22'+_0x5a629f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45cd47=this['editor'],_0xa2ef89=_0x45cd47['locale'];_0x45cd47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404b63=>{if('formatInline'!=_0x404b63['type'])return;const {data:_0x39fce3}=_0x404b63;if(_0x39fce3){if('link'==_0x39fce3['commandName']){const _0xd50c3c=_0x39fce3['commandParams'][0x0];return{'type':'format','content':o(_0xa2ef89,'*Set\x20link:*\x20%0','\x22'+_0xd50c3c+'\x22')};}return'unlink'==_0x39fce3['commandName']?{'type':'format','content':o(_0xa2ef89,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1530f7{['afterInit'](){const _0x4e259d=this['editor'],_0x47eb9f=_0x4e259d['locale'];if(!_0x4e259d['plugins']['has']('LegacyListEditing'))return;const _0x3d4c8f=_0x4e259d['plugins']['get']('TrackChangesEditing'),_0x30d118=_0x4e259d['plugins']['has']('LegacyTodoListEditing');function _0x1dd000(_0x109ba0){return()=>{const _0x306fcb=_0x4e259d['model']['document']['selection'],_0x32d291=_0x4e259d['commands']['get'](_0x109ba0);if(_0x32d291['value'])return void _0x4e259d['execute']('paragraph',{});const _0x3010c7=_0x109ba0['slice'](0x0,-0x4),_0xbf869e=function(_0x1f12e0,_0x5ba148,_0x1a5e14){let _0x8c519b=Array['from'](_0x1f12e0)['filter'](_0x40fd85=>function(_0x49d590,_0x16c611){return _0x16c611['checkChild'](_0x49d590['parent'],'listItem')&&!_0x16c611['isObject'](_0x49d590);}(_0x40fd85,_0x1a5e14));_0x8c519b=_0x8c519b['filter'](_0x421a0c=>!_0x421a0c['is']('element','listItem')||_0x421a0c['getAttribute']('listType')!=_0x5ba148);const _0x1ca131=new Set();for(const _0x363d1e of _0x8c519b)_0x363d1e['is']('element','listItem')?_0x1ca131['add'](fe(_0x363d1e)):_0x1ca131['add'](_0x363d1e);return Array['from'](_0x1ca131);}(_0x306fcb['getSelectedBlocks'](),_0x3010c7,_0x4e259d['model']['schema']);_0x4e259d['model']['change'](()=>{for(const _0x5727df of _0xbf869e)_0x3d4c8f['markBlockFormat'](_0x5727df,{'commandName':_0x109ba0,'commandParams':[{'forceValue':!_0x32d291['value']}],'formatGroupId':'blockName'},ue(_0x5727df));});};}function _0xaea53d(_0x278422){return()=>{const _0x391710=function(_0x221679){let _0x189097=Array['from'](_0x221679);const _0x2c1479=_0x189097['findIndex'](_0x4c8ad0=>'listItem'!=_0x4c8ad0['name']);return _0x2c1479>-0x1&&(_0x189097=_0x189097['slice'](0x0,_0x2c1479)),_0x189097;}(_0x4e259d['model']['document']['selection']['getSelectedBlocks']()),_0x173b93=_0x4e259d['model']['createRange'](_0x4e259d['model']['createPositionAt'](_0x391710[0x0],'before'),_0x4e259d['model']['createPositionAt'](_0x391710[_0x391710['length']-0x1],'end'));_0x4e259d['model']['change'](()=>{_0x3d4c8f['markBlockFormat'](_0x173b93,{'commandName':_0x278422,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5da6b9){const _0x351319=new Set();for(const _0x3bfc57 of _0x5da6b9){let _0x4062fb=_0x3bfc57['nextSibling'];for(;_0x4062fb&&_0x4062fb['getAttribute']('listIndent')>_0x3bfc57['getAttribute']('listIndent');)_0x351319['add'](_0x4062fb),_0x4062fb=_0x4062fb['nextSibling'];}return Array['from'](_0x351319);}(_0x391710));});};}_0x3d4c8f['enableCommand']('numberedList',_0x1dd000('numberedList')),_0x3d4c8f['enableCommand']('bulletedList',_0x1dd000('bulletedList')),_0x30d118&&_0x3d4c8f['enableCommand']('todoList',_0x1dd000('todoList')),_0x3d4c8f['enableCommand']('indentList',_0xaea53d('indentList')),_0x3d4c8f['enableCommand']('outdentList',_0xaea53d('outdentList')),_0x30d118&&_0x3d4c8f['enableCommand']('checkTodoList',()=>{const _0x2425c4=_0x4e259d['commands']['get']('checkTodoList'),_0x4085a9=Array['from'](_0x2425c4['_selectedElements']);_0x4085a9['filter'](_0x3e762d=>_0x3e762d['getAttribute']('todoListChecked')!=_0x2425c4['value']),_0x4e259d['model']['change'](()=>{for(const _0x35177f of _0x4085a9)_0x3d4c8f['markBlockFormat'](_0x35177f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2425c4['value']}]});});}),_0x3d4c8f['descriptionFactory']['registerElementLabel']('listItem',_0xf0d5a3=>o(_0x47eb9f,'ELEMENT_LIST_ITEM',_0xf0d5a3)),_0x3d4c8f['descriptionFactory']['registerDescriptionCallback'](_0x576fad=>{if('formatBlock'!=_0x576fad['type']&&'formatInline'!=_0x576fad['type'])return;const {data:_0x233afb}=_0x576fad;if(_0x233afb){if('numberedList'==_0x233afb['commandName']||'bulletedList'==_0x233afb['commandName']||'todoList'==_0x233afb['commandName'])switch(_0x233afb['commandName']['replace']('List','')){case'bulleted':return _0x19f36f(o(_0x47eb9f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19f36f(o(_0x47eb9f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19f36f(o(_0x47eb9f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x233afb['commandName'])return{'type':'format','content':o(_0x47eb9f,'*Indent:*\x20%0',o(_0x47eb9f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x233afb['commandName'])return{'type':'format','content':o(_0x47eb9f,'*Outdent:*\x20%0',o(_0x47eb9f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x233afb['commandName'])return _0x233afb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47eb9f,'*Check\x20item*')}:{'type':'format','content':o(_0x47eb9f,'*Uncheck\x20item*')};}function _0x19f36f(_0x44c609){return{'type':'format','content':o(_0x47eb9f,'*Change\x20to:*\x20%0',_0x44c609)};}});}}function fe(_0x2eb4c0){const _0x149483=_0x2eb4c0['getAttribute']('listIndent');if(0x0==_0x149483)return _0x2eb4c0;let _0xb42df0=_0x2eb4c0;for(;_0x2eb4c0['previousSibling']&&_0x2eb4c0['previousSibling']['is']('element','listItem');){const _0x497c03=_0x2eb4c0['previousSibling']['getAttribute']('listIndent');if(_0x497c03==_0x149483)_0xb42df0=_0x2eb4c0['previousSibling'];else{if(_0x497c03<_0x149483)break;}_0x2eb4c0=_0x2eb4c0['previousSibling'];}return _0xb42df0;}function ue(_0x1c84eb){const _0x3eaec1=[];if(_0x1c84eb['is']('element','listItem')&&_0x1c84eb['getAttribute']('listIndent')>0x0){let _0x2102ff=_0x1c84eb['nextSibling'];for(;_0x2102ff&&'listItem'==_0x2102ff['name']&&_0x2102ff['getAttribute']('listIndent')==_0x1c84eb['getAttribute']('listIndent');)_0x3eaec1['push'](_0x2102ff),_0x2102ff=_0x2102ff['nextSibling'];}return _0x3eaec1;}class W extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3be11d=this['editor']['config']['get']('list.properties'),_0x10aa99=this['editor']['plugins']['get']('TrackChangesEditing');_0x3be11d['styles']&&_0x10aa99['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3be11d['reversed']&&_0x10aa99['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3be11d['startIndex']&&_0x10aa99['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10aa99['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x166bd2,_0x6c83fd={}){const _0x308ef4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b77a9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x308ef4['markMultiRangeBlockFormat'](_0x2b77a9,{'commandName':'listStyle','commandParams':[{'type':_0x6c83fd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x56a71d,_0x2e2b9a={}){const _0x3370f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x127afb=this['_getSuggestionBlocks'](_0x420b3e=>_0x420b3e['is']('element','listItem')&&'numbered'===_0x420b3e['getAttribute']('listType'));if(_0x127afb['length']<0x1)return;const _0x49380c=_0x127afb['map'](_0x2d4716=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d4716,'before'),this['editor']['model']['createPositionAt'](_0x2d4716,0x0)));this['editor']['model']['change'](()=>{_0x3370f5['markMultiRangeBlockFormat'](_0x49380c,{'commandName':'listReversed','commandParams':[{'reversed':_0x2e2b9a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3eab15,_0x3439f5={}){const _0x4601e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5576b5=this['_getSuggestionBlocks'](_0x3d624d=>_0x3d624d['is']('element','listItem')&&'numbered'===_0x3d624d['getAttribute']('listType'));if(_0x5576b5['length']<0x1)return;const _0x4e4d3c=_0x5576b5['map'](_0x3b120f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b120f,'before'),this['editor']['model']['createPositionAt'](_0x3b120f,0x0)));this['editor']['model']['change'](()=>{_0x4601e2['markMultiRangeBlockFormat'](_0x4e4d3c,{'commandName':'listStart','commandParams':[{'startIndex':_0x3439f5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2f4ddb){if('formatBlock'!=_0x2f4ddb['type']&&'formatInline'!=_0x2f4ddb['type'])return;const _0x2cd9d0=this['editor']['locale'],{data:_0xa5d236}=_0x2f4ddb;if(!_0xa5d236)return;let _0x3bedd1,_0x438dc1;switch(_0xa5d236['commandName']){case'listStyle':_0x3bedd1='*Change\x20to:*\x20%0',_0x438dc1={'type':'format','content':o(_0x2cd9d0,_0x3bedd1,o(_0x2cd9d0,this['_getTranslationKeyForListStyle'](_0xa5d236['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bedd1=_0xa5d236['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x438dc1={'type':'format','content':o(_0x2cd9d0,_0x3bedd1)};break;case'listStart':_0x3bedd1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x438dc1={'type':'format','content':o(_0x2cd9d0,_0x3bedd1,_0xa5d236['commandParams'][0x0]['startIndex'])};}return _0x438dc1;}['_getSuggestionBlocksForListStyle'](){const _0x860372=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ca385=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4ca385[0x0]?.['is']('element','listItem')&&_0x4ca385['unshift'](..._0x860372['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4ca385[_0x4ca385['length']-0x1]?.['is']('element','listItem')&&_0x4ca385['push'](..._0x860372['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4ca385=[...new Set(_0x4ca385)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4ca385=_0x4ca385['filter'](_0x2d9cb4=>_0x2d9cb4['is']('element','listItem'))),_0x4ca385;}['_getSuggestionBlocks'](_0x5a1242){const _0x481985=this['editor']['plugins']['get']('LegacyListUtils');let _0x79129a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a1242)['map'](_0x34d6cd=>{const _0x3a1832=this['editor']['model']['createPositionAt'](_0x34d6cd,0x0);return[..._0x481985['getSiblingNodes'](_0x3a1832,'backward'),..._0x481985['getSiblingNodes'](_0x3a1832,'forward')];})['flat']();return _0x79129a=[...new Set(_0x79129a)],_0x79129a;}['_getTranslationKeyForListStyle'](_0x5aaf49){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5aaf49)||'default')['toUpperCase']()+'_LIST_'+_0x5aaf49['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x1530f7{['afterInit'](){const _0x9edecf=this['editor'];if(!_0x9edecf['plugins']['has']('MediaEmbedEditing'))return;const _0x37f5da=_0x9edecf['plugins']['get']('TrackChangesEditing'),_0x5bbca2=_0x9edecf['locale'];_0x37f5da['enableCommand']('mediaEmbed'),_0x37f5da['descriptionFactory']['registerElementLabel']('media',_0x529703=>o(_0x5bbca2,'ELEMENT_MEDIA',_0x529703)),_0x9edecf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3d442e,{writer:_0x178dea,options:_0x5ed818})=>{if(_0x5ed818['showSuggestionHighlights'])return _0x178dea['createEmptyElement']('div');},'converterPriority':'high'}),_0x9edecf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x18cf64,_0x1d278e,_0x556301)=>{_0x556301['options']['showSuggestionHighlights']&&_0x18cf64['stop']();},{'priority':'high'});}}class mt extends _0x1530f7{['afterInit'](){const _0x1b8fd3=this['editor'];_0x1b8fd3['plugins']['has']('MentionEditing')&&_0x1b8fd3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1530f7{['afterInit'](){const _0x1c466a=this['editor'];if(!_0x1c466a['plugins']['has']('MergeFieldsEditing'))return;_0x1c466a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1c466a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2cf14e=_0x1c466a['plugins']['get']('TrackChangesEditing'),_0x2aceb2=_0x1c466a['locale'];_0x2cf14e['descriptionFactory']['registerElementLabel']('mergeField',_0x51ea7a=>o(_0x2aceb2,'ELEMENT_MERGE_FIELD',_0x51ea7a)),_0x2cf14e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x34fd42=>o(_0x2aceb2,'ELEMENT_MERGE_FIELD',_0x34fd42)),_0x2cf14e['descriptionFactory']['registerDescriptionCallback'](_0x57f856=>{if('insertion'!=_0x57f856['type']&&'deletion'!=_0x57f856['type'])return;const _0x5f24de=_0x57f856['getContainedElement']();if(null==_0x5f24de)return;if(!_0x5f24de['is']('element','mergeField')&&!_0x5f24de['is']('element','mergeFieldBlock'))return;const _0x18aa40=_0x1c466a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5f24de['getAttribute']('id'));return'insertion'==_0x57f856['type']?{'type':'insertion','content':o(_0x2aceb2,'*Insert:*\x20%0','\x22'+_0x18aa40+'\x22\x20'+o(_0x2aceb2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2aceb2,'*Remove:*\x20%0','\x22'+_0x18aa40+'\x22\x20'+o(_0x2aceb2,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x1530f7{['afterInit'](){const _0x3defc1=this['editor'],_0x34cd6e=_0x3defc1['plugins']['get']('TrackChangesEditing');_0x3defc1['plugins']['has']('MultiLevelList')&&(_0x34cd6e['enableDefaultAttributesIntegration']('multiLevelList'),_0x34cd6e['registerBlockAttribute']('listMarkerStyle'),_0x34cd6e['descriptionFactory']['registerDescriptionCallback'](_0x4234f5=>this['handleDescriptions'](_0x4234f5)));}['handleDescriptions'](_0x1ef195){const _0x2b511c=this['editor']['locale'],{data:_0x3c428c}=_0x1ef195,_0x3f49e7={'type':'format','content':''};if(_0x3c428c&&'listMarkerStyle'==_0x3c428c['key']){if(!_0x3c428c['oldValue'])return{'type':'format','content':o(_0x2b511c,'*Set\x20format:*\x20%0',o(_0x2b511c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c428c['newValue']+')'};if(!_0x3c428c['newValue']){let _0x1f9234=_0x1ef195['head'];for(;_0x1f9234;){if(_0x1f9234['data']&&'listType'==_0x1f9234['data']['key']&&_0x1f9234['data']['newValue'])return _0x3f49e7;_0x1f9234=_0x1f9234['next'];}return{'type':'format','content':o(_0x2b511c,'*Remove\x20format:*\x20%0',o(_0x2b511c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c428c['oldValue']+')'};}}}}class kt extends _0x1530f7{['afterInit'](){const _0x2e98ea=this['editor'];if(!_0x2e98ea['plugins']['has']('PageBreakEditing'))return;_0x2e98ea['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x34d117=_0x2e98ea['plugins']['get']('TrackChangesEditing'),_0x5cad3b=_0x2e98ea['locale'];_0x34d117['descriptionFactory']['registerElementLabel']('pageBreak',_0x539974=>o(_0x5cad3b,'ELEMENT_PAGE_BREAK',_0x539974));}}class bt extends _0x1530f7{['afterInit'](){const _0x8527c0=this['editor'];if(!_0x8527c0['plugins']['has']('Paragraph'))return;const _0xb8376c=_0x8527c0['locale'],_0x20cfb3=_0x8527c0['plugins']['get']('TrackChangesEditing');_0x20cfb3['descriptionFactory']['registerElementLabel']('paragraph',_0xc58a35=>o(_0xb8376c,'ELEMENT_PARAGRAPH',_0xc58a35)),_0x20cfb3['enableDefaultAttributesIntegration']('paragraph'),_0x20cfb3['enableCommand']('insertParagraph'),_0x8527c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x8527c0),{'priority':'highest'}),_0x8527c0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a8a85,_0xae2cb5,_0x30ceee)=>{_0x30ceee['options']['showSuggestionHighlights']&&nr(_0x8527c0,{'showActiveMarker':!0x1})(_0x1a8a85,_0xae2cb5,_0x30ceee);},{'priority':'highest'});const _0x23fe63=_0x20cfb3['descriptionFactory'];_0x23fe63['registerDescriptionCallback'](_0x21598b=>{if('insertion'!==_0x21598b['type'])return;const {start:_0x4e8cb1,end:_0x4267ab}=_0x21598b['getFirstRange']();if(!_0x4e8cb1['isTouching'](_0x4267ab)||!_0x4e8cb1['nodeAfter'])return;const _0x854974=_0x8527c0['model']['schema'],_0x1a1972=_0x4e8cb1['nodeAfter'];return _0x854974['isBlock'](_0x1a1972)&&!_0x854974['isLimit'](_0x1a1972)&&_0x854974['checkChild'](_0x1a1972,'$text')?{'type':'insertion','content':o(_0xb8376c,'*Insert:*\x20%0',_0x23fe63['getItemLabel'](_0x1a1972,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14ee3e=this['editor'],_0x41c925=_0x14ee3e['locale'];_0x14ee3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc1a2=>{if('formatBlock'!=_0x3dc1a2['type'])return;const {data:_0x1221a9}=_0x3dc1a2;return _0x1221a9&&'paragraph'==_0x1221a9['commandName']?{'type':'format','content':o(_0x41c925,'*Change\x20to:*\x20%0',o(_0x41c925,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5ea20b,{showActiveMarker:_0x189733=!0x0}={}){return(_0x3c856b,_0x2e4ba2,_0x36f6e3)=>{const _0x3d4125=_0x5ea20b['plugins']['get']('TrackChangesEditing'),_0x31b1c7=_0x2e4ba2['markerRange']['start'],_0x1c3a59=_0x2e4ba2['markerRange']['end'],_0x22dafa=_0x5ea20b['model']['schema'];if(!_0x31b1c7['isTouching'](_0x1c3a59)||!_0x31b1c7['nodeAfter'])return;const _0x24211d=_0x31b1c7['nodeAfter'];if(_0x22dafa['isBlock'](_0x24211d)&&!_0x22dafa['isLimit'](_0x24211d)&&_0x22dafa['checkChild'](_0x24211d,'$text')){if(!_0x36f6e3['consumable']['consume'](_0x2e4ba2['markerRange'],_0x3c856b['name']))return;const {authorId:_0x3beb1a}=_0x3d4125['_splitMarkerName'](_0x2e4ba2['markerName']),_0x41372c=_0x36f6e3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3beb1a}),_0x4c9f85=_0x36f6e3['mapper']['toViewPosition'](_0x1c3a59);_0x189733&&_0x3d4125['activeMarkers']['includes'](_0x2e4ba2['markerName'])&&_0x36f6e3['writer']['addClass']('ck-suggestion-marker--active',_0x41372c),_0x36f6e3['writer']['insert'](_0x4c9f85,_0x41372c),_0x36f6e3['mapper']['bindElementToMarker'](_0x41372c,_0x2e4ba2['markerName']);}};}class wt extends _0x1530f7{['afterInit'](){const _0x4e3d2d=this['editor'];if(!_0x4e3d2d['plugins']['has']('RemoveFormatEditing'))return;_0x4e3d2d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e9923=this['editor'];_0x5e9923['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197fe4=>{if('formatBlock'!=_0x197fe4['type']&&'formatInline'!=_0x197fe4['type'])return;const {data:_0x7605ec}=_0x197fe4;return _0x7605ec&&'removeFormat'==_0x7605ec['commandName']?{'type':'format','content':o(_0x5e9923['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1530f7{['afterInit'](){const _0x2cc9f5=this['editor'];if(!_0x2cc9f5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x17a91b=_0x2cc9f5['plugins']['get']('TrackChangesEditing');_0x17a91b['enableCommand']('goToPreviousRestrictedEditingException'),_0x17a91b['enableCommand']('goToNextRestrictedEditingException');const _0x2cac23=_0x2cc9f5['plugins']['get']('RestrictedEditingModeEditing');_0x2cac23['enableCommand']('trackChanges'),_0x2cac23['enableCommand']('acceptSuggestion'),_0x2cac23['enableCommand']('discardSuggestion'),_0x2cac23['enableCommand']('acceptAllSuggestions'),_0x2cac23['enableCommand']('discardAllSuggestions'),_0x2cac23['enableCommand']('acceptSelectedSuggestions'),_0x2cac23['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1530f7{static get['requires'](){return[_0x18aeaf];}['init'](){const _0x487491=this['editor'],_0x335550=_0x487491['plugins']['get']('TrackChangesEditing');_0x335550['enableCommand']('shiftEnter'),_0x487491['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x487491),{'priority':'high'}),_0x487491['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x487491),{'priority':'high'}),_0x487491['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e0e45,_0x502330,_0x51098f)=>{_0x51098f['options']['showSuggestionHighlights']&&ge(_0x487491,{'showActiveMarker':!0x1})(_0x2e0e45,_0x502330,_0x51098f);}),_0x335550['descriptionFactory']['registerElementLabel']('softBreak',_0x8bd1c1=>o(_0x487491['locale'],'ELEMENT_LINE_BREAK',_0x8bd1c1));}}function ge(_0x4f8960,{showActiveMarker:_0x4ad6e4=!0x0}={}){return(_0x4d9e2d,_0x9123b9,_0x1174fa)=>{const _0x3b20b5=_0x4f8960['plugins']['get']('TrackChangesEditing');if(!_0x1174fa['consumable']['test'](_0x9123b9['markerRange'],_0x4d9e2d['name']))return;const _0xbf1330=_0x4f8960['model'];for(const _0x26c020 of _0x9123b9['markerRange']['getItems']()){if(!_0x26c020['is']('element','softBreak'))continue;const _0x31b0c3='deletion'==_0x9123b9['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5dcf1e}=_0x3b20b5['_splitMarkerName'](_0x9123b9['markerName']),_0x98b409=_0x1174fa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31b0c3,'data-author-id':_0x5dcf1e}),_0x2a3914=_0x1174fa['mapper']['toViewPosition'](_0xbf1330['createPositionBefore'](_0x26c020));_0x4ad6e4&&_0x3b20b5['activeMarkers']['includes'](_0x9123b9['markerName'])&&_0x1174fa['writer']['addClass']('ck-suggestion-marker--active',_0x98b409),_0x1174fa['writer']['insert'](_0x2a3914,_0x98b409),_0x1174fa['mapper']['bindElementToMarker'](_0x98b409,_0x9123b9['markerName']);}};}class St extends _0x1530f7{['afterInit'](){const _0x87268b=this['editor'],_0x26098b=_0x87268b['model'],_0x468c0f=_0x87268b['locale'];if(!_0x87268b['plugins']['has']('StandardEditingModeEditing'))return;const _0x2b96b6=_0x87268b['plugins']['get']('TrackChangesEditing'),_0x56ecf4='restrictedEditingException',_0x558db9=_0x87268b['commands']['get'](_0x56ecf4);_0x2b96b6['enableCommand'](_0x56ecf4,(_0x48925e,_0x309cbb={})=>{const _0x148987=_0x26098b['document']['selection'];if(_0x148987['isCollapsed'])return void _0x48925e(_0x309cbb);const _0x54200c=void 0x0!==_0x309cbb['forceValue']?_0x309cbb['forceValue']:!_0x558db9['value'];_0x26098b['change'](()=>{const _0x24fa65=Array['from'](_0x148987['getRanges']());for(const _0x44a211 of _0x24fa65){const _0x29cb7d=_0x54200c?[_0x44a211]:io(_0x56ecf4,_0x44a211,_0x26098b);for(const _0x44ffa4 of _0x29cb7d)_0x2b96b6['markInlineFormat'](_0x44ffa4,{'commandName':_0x56ecf4,'commandParams':[{'forceValue':_0x54200c}]});}});}),_0x2b96b6['descriptionFactory']['registerDescriptionCallback'](_0x23c2c2=>{if('formatBlock'!=_0x23c2c2['type']&&'formatInline'!=_0x23c2c2['type'])return;const {data:_0x2c2932}=_0x23c2c2;return _0x2c2932&&_0x2c2932['commandName']==_0x56ecf4?_0x2c2932['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x468c0f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x468c0f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x1530f7{['afterInit'](){const _0x3ef964=this['editor'];if(!_0x3ef964['plugins']['has']('Style')||!_0x3ef964['plugins']['has']('DataSchema'))return;const _0x479720=_0x3ef964['plugins']['get']('TrackChangesEditing'),_0x43634a=_0x3ef964['locale'],_0x31c410=_0x3ef964['config']['get']('style')||{},_0x2efde3=_0x3ef964['plugins']['get']('GeneralHtmlSupport'),_0x4d6ae2=_0x3ef964['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3ef964['plugins']['get']('DataSchema'),_0x31c410['definitions']);_0x479720['enableDefaultAttributesIntegration']('style');const _0x56bacb=new Set();for(const _0x5acc70 of _0x4d6ae2['block']){const _0x21dba9=_0x2efde3['getGhsAttributeNameForElement'](_0x5acc70['element']);_0x56bacb['add'](_0x21dba9);}const _0x53ad44=new Set();for(const _0xb98444 of _0x4d6ae2['inline']){const _0x350d6f=_0x2efde3['getGhsAttributeNameForElement'](_0xb98444['element']);_0x53ad44['add'](_0x350d6f);for(const _0x413916 of _0xb98444['ghsAttributes'])_0x53ad44['add'](_0x413916);}for(const _0x18115c of _0x56bacb)_0x479720['registerBlockAttribute'](_0x18115c),_0x479720['descriptionFactory']['registerAttributeLabel'](_0x18115c,o(_0x43634a,'FORMAT_STYLE'));for(const _0x5304e1 of _0x53ad44)_0x479720['registerInlineAttribute'](_0x5304e1),_0x479720['descriptionFactory']['registerAttributeLabel'](_0x5304e1,o(_0x43634a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba212=this['editor'],_0x39380e=_0x1ba212['locale'];_0x1ba212['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e2123=>{if('formatBlock'!=_0x3e2123['type']&&'formatInline'!=_0x3e2123['type'])return;const {data:_0xe13f6}=_0x3e2123;return _0xe13f6&&'style'===_0xe13f6['commandName']?_0xe13f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39380e,'*Set\x20format:*\x20%0',_0xe13f6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39380e,'*Remove\x20format:*\x20%0',_0xe13f6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x1530f7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x43e45e){super(_0x43e45e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ee063=this['editor'],_0x2ac459=_0x3ee063['model']['document']['selection'];if(!_0x3ee063['plugins']['has']('TableEditing'))return;const _0x28f57a=_0x3ee063['locale'],_0x9aeab2=_0x3ee063['plugins']['get']('TrackChangesEditing'),_0x5f2193=_0x3ee063['plugins']['get']('TableUtils');_0x9aeab2['descriptionFactory']['registerElementLabel']('table',_0x2953c0=>o(_0x28f57a,'ELEMENT_TABLE',_0x2953c0)),this['_setupColumnsRowsFixing'](),_0x9aeab2['enableCommand']('insertTable'),_0x9aeab2['enableCommand']('selectTableRow'),_0x9aeab2['enableCommand']('selectTableColumn');for(const _0x49ef01 of['insertTableRowAbove','insertTableRowBelow']){const _0x26d84a=_0x3ee063['commands']['get'](_0x49ef01);_0x9aeab2['enableCommand'](_0x49ef01,_0xb48fa8=>{_0x3ee063['model']['change'](_0x5ac78c=>{_0xb48fa8();const _0x5c33d8='above'===_0x26d84a['order'],_0x32a40e=_0x5f2193['getSelectionAffectedTableCells'](_0x2ac459),_0x57c7fa=_0x5f2193['getRowIndexes'](_0x32a40e),_0xe64bd5=_0x5c33d8?_0x57c7fa['first']-0x1:_0x57c7fa['last']+0x1,_0x4afefd=_0x32a40e[0x0]['findAncestor']('table'),_0x2e7044=_0x5f2193['createTableWalker'](_0x4afefd,{'startRow':_0xe64bd5,'endRow':_0xe64bd5}),_0x4ddc47=Array['from'](_0x2e7044)['map'](_0x100df5=>_0x5ac78c['createRangeOn'](_0x100df5['cell']));_0x9aeab2['markMultiRangeInsertion'](_0x4ddc47,'tableRow');});});}for(const _0x11f924 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17dbfb=_0x3ee063['commands']['get'](_0x11f924);_0x9aeab2['enableCommand'](_0x11f924,_0x14231a=>{_0x3ee063['model']['change'](_0xb7d5cb=>{_0x14231a();const _0x17d5c5='left'===_0x17dbfb['order'],_0x13dd31=_0x5f2193['getSelectionAffectedTableCells'](_0x2ac459),_0x34febb=_0x5f2193['getColumnIndexes'](_0x13dd31),_0x779e96=_0x17d5c5?_0x34febb['first']-0x1:_0x34febb['last']+0x1,_0x469ea9=_0x13dd31[0x0]['findAncestor']('table'),_0x2abf1c=_0x5f2193['createTableWalker'](_0x469ea9,{'startRow':0x0,'column':_0x779e96,'includeAllSlots':!0x1}),_0x53f555=Array['from'](_0x2abf1c)['map'](_0x1a8cb4=>_0xb7d5cb['createRangeOn'](_0x1a8cb4['cell']));_0x9aeab2['markMultiRangeInsertion'](_0x53f555,'tableColumn');});});}for(const _0x32aec3 of['removeTableRow','removeTableColumn']){const _0x325ce7=_0x32aec3['substr'](0xb),_0xa376c9=_0x325ce7['toLowerCase'](),_0x10f1d9=_0xa376c9['substr'](0x0,0x3)+'span',_0x49aca3='table'+_0x325ce7,_0x129386='min'+_0x325ce7,_0x47fc59='max'+_0x325ce7;_0x9aeab2['enableCommand'](_0x32aec3,()=>{_0x3ee063['model']['change'](_0x35f958=>{const _0x1c0ff8=_0x5f2193['getSelectionAffectedTableCells'](_0x2ac459),_0x2f7cc3=_0x1c0ff8[0x0]['findAncestor']('table');let _0xa8fb38;if('removeTableRow'==_0x32aec3){const _0x4ffd95=_0x5f2193['getRowIndexes'](_0x1c0ff8);_0xa8fb38={'startRow':_0x4ffd95['first'],'endRow':_0x4ffd95['last'],'includeAllSlots':!0x0};}else{const _0x1de73f=_0x5f2193['getColumnIndexes'](_0x1c0ff8);_0xa8fb38={'startColumn':_0x1de73f['first'],'endColumn':_0x1de73f['last'],'includeAllSlots':!0x0};}const _0x2c8621=_0x5f2193['createTableWalker'](_0x2f7cc3,_0xa8fb38),_0x1d318b=Array['from'](_0x2c8621)['map'](({cell:_0x26df83})=>_0x26df83),_0x247b49=be(_0x1d318b['filter'](_0x4b496c=>_0x4b496c['hasAttribute'](_0x10f1d9))),_0x117e2a=be(_0x1d318b['filter'](_0x191163=>!_0x191163['hasAttribute'](_0x10f1d9)))['map'](_0x130205=>_0x35f958['createRangeOn'](_0x130205)),_0x4c34cf=_0x9aeab2['markMultiRangeDeletion'](_0x117e2a,_0x49aca3);if(_0x4c34cf&&('tableRow'==_0x4c34cf['subType']||'tableColumn'==_0x4c34cf['subType'])){const _0x390122=this['_getSuggestionCoords'](_0x4c34cf);for(const _0x2b6afe of _0x247b49){const _0xde2d69=_0x35f958['createRangeOn'](_0x2b6afe),_0x263e23=_0x5f2193['getCellLocation'](_0x2b6afe),_0x49ca65=_0x2b6afe['getAttribute'](_0x10f1d9)-0x1,_0x9cda7f=_0x390122[_0x129386],_0x11da65=_0x390122[_0x47fc59];_0x9cda7f<=_0x263e23[_0xa376c9]&&_0x263e23[_0xa376c9]+_0x49ca65<=_0x11da65&&_0x4c34cf['addRange'](_0xde2d69);}}});});}function _0x2816b9(_0x3a9ce8){const _0x4f05a8=Array['from'](_0x2ac459['getRanges']())['map'](_0x13617c=>_0x5018e8['fromRange'](_0x13617c));_0x3ee063['model']['change'](_0x590e17=>{const _0x501fc3=_0x590e17['batch'];_0x3a9ce8=_0x3a9ce8['filter'](_0x509865=>'$graveyard'!=_0x509865['root']['rootName']),_0x590e17['setSelection'](_0x3a9ce8),_0x3ee063['commands']['get']('removeTableRow')['refresh'](),_0x3ee063['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ee063['model']['enqueueChange'](()=>{_0x3ee063['model']['enqueueChange'](_0x501fc3,_0x31077c=>{const _0x8a6714=_0x4f05a8['filter'](_0x57f58a=>'$graveyard'!=_0x57f58a['root']['rootName']);_0x8a6714['length']>0x0&&_0x31077c['setSelection'](_0x8a6714);for(const _0x374f89 of _0x4f05a8)_0x374f89['detach']();});});});}function _0x11eefe(_0x20a083){_0x3ee063['model']['change'](_0x4609f7=>{const _0x3be534=Array['from'](_0x2ac459['getRanges']())['map'](_0x5dc843=>_0x5018e8['fromRange'](_0x5dc843)),_0x576d61=[];for(const _0x496980 of _0x20a083)for(const _0x4638b6 of _0x496980['getItems']({'shallow':!0x0}))_0x576d61['push'](_0x4638b6);for(const _0x3a6783 of _0x576d61)'$graveyard'!=_0x3a6783['root']['rootName']&&(_0x4609f7['setSelection'](_0x4609f7['createPositionAt'](_0x3a6783,0x0)),_0x3ee063['commands']['get']('removeTableColumn')['refresh'](),_0x3ee063['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x967f36=_0x3be534['filter'](_0x2df6be=>'$graveyard'!=_0x2df6be['root']['rootName']);_0x967f36['length']>0x0&&_0x4609f7['setSelection'](_0x967f36);for(const _0x425c64 of _0x3be534)_0x425c64['detach']();});}function _0x105b1a(_0x186e48,_0xbc49a0){return _0xbc49a0['every'](_0x35fd24=>_0x186e48['some'](_0x39b470=>_0x39b470['end']['isEqual'](_0x35fd24['start'])||_0x35fd24['end']['isEqual'](_0x39b470['start'])));}function _0x539532(_0x50ec98,_0x5885bf){return!_0x50ec98['some'](_0x4eabfc=>_0x5885bf['some'](_0x3ff7df=>_0x4eabfc['isIntersecting'](_0x3ff7df)))&&_0x50ec98['some'](_0x3125bf=>_0x5885bf['some'](_0x5544be=>_0x3125bf['end']['isTouching'](_0x5544be['start'])));}_0x3ee063['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24dce1,_0x398cef,_0x5df55f)=>{if(!_0x5df55f['options']['showSuggestionHighlights'])return;const _0x5e77b4=_0x398cef['item'];if(!_0x5e77b4)return;const _0x1a5a7c=_0x5df55f['mapper']['toViewElement'](_0x5e77b4);function _0x513d7d(_0x302109){return Array['isArray'](_0x302109)?_0x302109:[_0x302109];}_0x1a5a7c&&'tableCell'===_0x5e77b4['name']&&_0x3654b8(_0x1a5a7c,_0x5df55f['writer'],(_0x1fdcfd,_0x18fce4,_0x51f611)=>_0x51f611['addClass'](_0x513d7d(_0x18fce4['classes']),_0x1fdcfd),(_0x5f3953,_0x5c0441,_0x40e558)=>_0x40e558['removeClass'](_0x513d7d(_0x5c0441['classes']),_0x5f3953));},{'priority':'highest'}),_0x9aeab2['descriptionFactory']['registerDescriptionCallback'](_0x63d983=>{if('insertion'!=_0x63d983['type']&&'deletion'!=_0x63d983['type'])return;const _0x29d5f5=_0x63d983['getContainedElement']();if(null!=_0x29d5f5&&_0x29d5f5['is']('element','table')){if('insertion'==_0x63d983['type']){const _0x4bc705=_0x63d983['getItems']()['filter'](_0x17ef10=>_0x17ef10['is']('$textProxy'))['map'](_0x4e69f0=>_0x4e69f0['data']);if(_0x4bc705['length'])return{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4bc705['join']('\x20')+'\x22'))};}if('deletion'==_0x63d983['type']){const _0x1b1ba7=_0x63d983['getItems']()['filter'](_0x56b470=>_0x56b470['is']('$textProxy'))['map'](_0x208925=>_0x208925['data']);if(_0x1b1ba7['length'])return{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b1ba7['join']('\x20')+'\x22'))};}}}),_0x9aeab2['descriptionFactory']['registerDescriptionCallback'](_0x169a56=>{if('tableRow'==_0x169a56['subType']){const _0x3b6912=_0x169a56['getItems']()['filter'](_0x17d6fa=>_0x17d6fa['is']('$textProxy'))['map'](_0x18cb49=>_0x18cb49['data']),_0x451dcd=this['_getSuggestionCoords'](_0x169a56),_0x143cdb=_0x451dcd['maxRow']-_0x451dcd['minRow']+0x1;if('insertion'==_0x169a56['type'])return _0x3b6912['length']?{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143cdb,'\x22'+_0x3b6912['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW',_0x143cdb))};if('deletion'==_0x169a56['type'])return _0x3b6912['length']?{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143cdb,'\x22'+_0x3b6912['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW',_0x143cdb))};}if('tableColumn'==_0x169a56['subType']){const _0x55bd4d=_0x169a56['getItems']()['filter'](_0x5c1080=>_0x5c1080['is']('$textProxy'))['map'](_0x1d7122=>_0x1d7122['data']),_0x1d3fe6=this['_getSuggestionCoords'](_0x169a56),_0x4f9d86=_0x1d3fe6['maxColumn']-_0x1d3fe6['minColumn']+0x1;if('insertion'==_0x169a56['type'])return _0x55bd4d['length']?{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f9d86,'\x22'+_0x55bd4d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN',_0x4f9d86))};if('deletion'==_0x169a56['type'])return _0x55bd4d['length']?{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f9d86,'\x22'+_0x55bd4d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN',_0x4f9d86))};}}),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2816b9),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2816b9),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x11eefe),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x11eefe),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x105b1a),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x105b1a),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x539532),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x539532);}['_acceptFormatSuggestionCallbackFactory'](){const _0x372095=this['editor'],_0x24c8b9=_0x372095['model']['document']['selection'];return(_0x16051c,_0xcdd7ed)=>{_0x372095['model']['change'](_0x133012=>{const {commandName:_0x59045d,commandParams:_0x186923}=_0xcdd7ed;let _0x16ca72=_0x16051c[0x0]['end']['nodeBefore'];_0x186923&&_0x186923[0x0]&&!0x1===_0x186923[0x0]['forceValue']&&(_0x16ca72=_0x16051c[0x0]['start']['nodeAfter']);const _0x3329bc=_0x133012['createRangeIn'](_0x16ca72);if('$graveyard'==_0x3329bc['root']['rootName'])return;const _0x43daa8=Array['from'](_0x24c8b9['getRanges']())['map'](_0x449bb5=>_0x5018e8['fromRange'](_0x449bb5));_0x133012['setSelection'](_0x3329bc),_0x372095['commands']['get'](_0x59045d)['refresh'](),_0x186923['push']({'forceDefaultExecution':!0x0}),_0x372095['execute'](_0x59045d,..._0x186923);const _0x255970=_0x43daa8['filter'](_0x340110=>'$graveyard'!=_0x340110['root']['rootName']);_0x255970['length']>0x0&&_0x133012['setSelection'](_0x255970);for(const _0xc43abf of _0x43daa8)_0xc43abf['detach']();});};}['_getCoordsForCells'](_0x361a4d){const _0x61144a=this['editor']['plugins']['get']('TableUtils');let _0x44ce5a=Number['MAX_SAFE_INTEGER'],_0x5202c1=Number['MIN_SAFE_INTEGER'],_0x4e3c42=Number['MAX_SAFE_INTEGER'],_0x1853ce=Number['MIN_SAFE_INTEGER'];for(const _0x73f83d of _0x361a4d){if('$graveyard'==_0x73f83d['root']['rootName'])continue;const {row:_0x176415,column:_0x273da3}=_0x61144a['getCellLocation'](_0x73f83d),_0x3f91aa=_0x73f83d['hasAttribute']('rowspan')?_0x73f83d['getAttribute']('rowspan')-0x1:0x0,_0xbbda44=_0x73f83d['hasAttribute']('colspan')?_0x73f83d['getAttribute']('colspan')-0x1:0x0;_0x44ce5a=_0x176415<_0x44ce5a?_0x176415:_0x44ce5a,_0x5202c1=_0x176415+_0x3f91aa>_0x5202c1?_0x176415+_0x3f91aa:_0x5202c1,_0x4e3c42=_0x273da3<_0x4e3c42?_0x273da3:_0x4e3c42,_0x1853ce=_0x273da3+_0xbbda44>_0x1853ce?_0x273da3+_0xbbda44:_0x1853ce;}return{'minRow':_0x44ce5a,'maxRow':_0x5202c1,'minColumn':_0x4e3c42,'maxColumn':_0x1853ce};}['_setupColumnsRowsFixing'](){const _0x581954=this['editor'],_0x274612=_0x581954['plugins']['get']('TrackChangesEditing'),_0x2dbebc=_0x581954['plugins']['get']('TableUtils');_0x581954['model']['document']['on']('change:data',()=>{const _0x158e2c=Array['from'](_0x581954['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45e0d6,data:_0x3a727b}of _0x158e2c){const {group:_0x508a2b,id:_0x4e7eda,subType:_0x488eae}=_0x274612['_splitMarkerName'](_0x45e0d6);if('suggestion'!=_0x508a2b)continue;if(null!=_0x3a727b['oldRange'])continue;const _0x1f47ac=_0x274612['getSuggestion'](_0x4e7eda);this['_tablePostFixingSubtypes']['includes'](_0x488eae)&&this['_tableSuggestions']['add'](_0x1f47ac);}},{'priority':'low'});const _0x24cbea=(_0x434c94,_0xdf6d88)=>{let _0x5ceaf8=!0x1;const _0x20dc70=_0xdf6d88['createRangeOn'](_0x434c94),_0x38fda8=_0x434c94['findAncestor']('table'),_0x376188=_0x2dbebc['getCellLocation'](_0x434c94);for(const _0x2990e6 of this['_tableSuggestions']){const _0x447f4a=_0x2990e6['subType'],_0x3219a7=_0x447f4a['startsWith']('tablePaste'),_0x9631e3=_0x447f4a['substr'](_0x3219a7?0xa:0x5),_0x450c09=_0x9631e3['toLowerCase'](),_0x295c41=_0x450c09['substr'](0x0,0x3)+'span',_0x518f29='min'+_0x9631e3,_0x520926='max'+_0x9631e3;if(!_0x2990e6['isInContent'])continue;if(_0x38fda8!=_0x2990e6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2990e6['isIntersectingWithRange'](_0x20dc70))continue;const _0x839155=_0x434c94['hasAttribute'](_0x295c41)?_0x434c94['getAttribute'](_0x295c41)-0x1:0x0,_0xdd5d3f=this['_getSuggestionCoords'](_0x2990e6),_0x215092=_0xdd5d3f[_0x518f29],_0xc55c9b=_0xdd5d3f[_0x520926];_0x215092<=_0x376188[_0x450c09]&&_0x376188[_0x450c09]+_0x839155<=_0xc55c9b&&(_0x2990e6['addRange'](_0x20dc70),_0x5ceaf8=!0x0);}return _0x5ceaf8;};_0x581954['model']['document']['registerPostFixer'](_0x3e4e7d=>{let _0xf4ff53=!0x1;for(const _0xff4284 of _0x581954['model']['document']['differ']['getChanges']())if('insert'==_0xff4284['type']){if('tableRow'==_0xff4284['name']){for(const _0x48cd65 of _0xff4284['position']['nodeAfter']['getChildren']())_0xf4ff53=_0xf4ff53||_0x24cbea(_0x48cd65,_0x3e4e7d);}else'tableCell'==_0xff4284['name']&&(_0xf4ff53=_0xf4ff53||_0x24cbea(_0xff4284['position']['nodeAfter'],_0x3e4e7d));}return _0xf4ff53;});}['_getSuggestionCoords'](_0x5853bb){return this['_getCoordsForCells'](_0x5853bb['getRanges']()['map'](_0x1ec585=>_0x1ec585['start']['nodeAfter']));}}function be(_0x435e5b){return Array['from'](new Set(_0x435e5b)['values']());}class vt extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x56d010=this['editor'],_0x390df4=_0x56d010['model']['document']['selection'],_0x3c7828=_0x56d010['locale'];if(!_0x56d010['plugins']['has']('TableEditing'))return;const _0x119216=_0x56d010['plugins']['get']('TrackChangesEditing'),_0x5d613d=_0x56d010['plugins']['get']('TableUtils'),_0x414259=_0x56d010['plugins']['get'](It);_0x414259['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x119216['enableCommand']('mergeTableCells',()=>{const _0xc533b1=_0x5d613d['getSelectionAffectedTableCells'](_0x56d010['model']['document']['selection']);_0x56d010['model']['change'](()=>{_0x119216['markMultiRangeBlockFormat'](_0xc533b1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56d010['commands']['get']('mergeTableCells')['on']('execute',(_0x4db818,_0x203a61)=>{_0x56d010['commands']['get']('trackChanges')['value']&&(_0x203a61['length']>0x0&&_0x203a61[_0x203a61['length']-0x1]&&_0x203a61[_0x203a61['length']-0x1]['forceDefaultExecution']||_0x119216['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4db818['stop']());},{'priority':'highest'});for(const _0xbe291e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x52d8e4=_0x56d010['commands']['get'](_0xbe291e);_0x119216['enableCommand'](_0xbe291e,()=>{const _0x36cdce=_0x56d010['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a6890=>_0x1a6890['is']('element','tableCell')),_0x2aae31=_0x52d8e4['value'];_0x56d010['model']['change'](()=>{_0x119216['markMultiRangeBlockFormat']([_0x36cdce,_0x2aae31],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2d280b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1bfd05=_0x56d010['commands']['get'](_0x2d280b);_0x119216['enableCommand'](_0x2d280b,()=>{const _0x679692=_0x5d613d['getSelectionAffectedTableCells'](_0x56d010['model']['document']['selection'])[0x0],_0x597e0e=_0x679692['findAncestor']('table'),{column:_0x44a968,row:_0x1abf23}=_0x5d613d['getCellLocation'](_0x679692);let _0x4c2d56=[];if('horizontally'==_0x1bfd05['direction']){const _0x4fdf7e=_0x5d613d['createTableWalker'](_0x597e0e,{'startRow':_0x1abf23,'endRow':_0x1abf23,'includeAllSlots':!0x0});_0x4c2d56=Array['from'](_0x4fdf7e)['map'](_0x4c2507=>_0x4c2507['cell']);}else{const _0x900c04=_0x5d613d['createTableWalker'](_0x597e0e,{'column':_0x44a968,'includeAllSlots':!0x0});_0x4c2d56=Array['from'](_0x900c04)['map'](_0x3d2908=>_0x3d2908['cell']);}_0x56d010['model']['change'](_0x8de1a5=>{_0x119216['markBlockFormat'](_0x8de1a5['createRangeOn'](_0x679692),{'commandName':_0x2d280b,'commandParams':[]},_0x4c2d56,_0x2d280b);});});}_0x119216['descriptionFactory']['registerDescriptionCallback'](_0x527917=>{if('formatBlock'!=_0x527917['type']&&'formatInline'!=_0x527917['type'])return;const {data:_0x19f634}=_0x527917;return _0x19f634&&'mergeTableCells'==_0x19f634['commandName']?{'type':'format','content':o(_0x3c7828,'*Merge\x20cells*')}:void 0x0;}),_0x119216['descriptionFactory']['registerDescriptionCallback'](_0x42d0b2=>{if('formatBlock'!=_0x42d0b2['type']&&'formatInline'!=_0x42d0b2['type'])return;const {data:_0x267621}=_0x42d0b2;return _0x267621?'splitTableCellVertically'==_0x267621['commandName']?{'type':'format','content':o(_0x3c7828,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x267621['commandName']?{'type':'format','content':o(_0x3c7828,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x175371=_0x414259['_acceptFormatSuggestionCallbackFactory']();for(const _0xfe6ec1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x119216['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xfe6ec1,'accept',_0x175371);for(const _0x360aed of['splitTableCellVertically','splitTableCellHorizontally'])_0x119216['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x360aed,'accept',_0x175371);_0x119216['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x541889=>{_0x56d010['model']['change'](_0x2bd42a=>{const _0x55c5e0=Array['from'](_0x390df4['getRanges']())['map'](_0x334f6e=>_0x5018e8['fromRange'](_0x334f6e));_0x2bd42a['setSelection'](_0x541889),_0x56d010['commands']['get']('mergeTableCells')['refresh'](),_0x56d010['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x169bd9=_0x55c5e0['filter'](_0x224ddd=>'$graveyard'!=_0x224ddd['root']['rootName']);_0x169bd9['length']>0x0&&_0x2bd42a['setSelection'](_0x169bd9);for(const _0x133164 of _0x55c5e0)_0x133164['detach']();});});for(const _0x2c6997 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4891ec=_0x56d010['commands']['get'](_0x2c6997);_0x4891ec['on']('set:isEnabled',(_0x4163bf,_0xe3603b,_0x52e0b6)=>{if(_0x52e0b6){const _0x5169c3=_0x56d010['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5e8304=>_0x5e8304['is']('element','tableCell'));this['_areMergableCells'](_0x4891ec['value'],_0x5169c3)||(_0x4163bf['return']=!0x1,_0x4163bf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x34854a=this['editor']['commands']['get']('mergeTableCells'),_0x491d26=this['editor']['plugins']['get']('TableUtils');if(!_0x34854a['isEnabled'])return!0x1;const _0x1e1a58=_0x491d26['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3be21a of _0x1e1a58)for(const _0x58a859 of _0x1e1a58)if(_0x3be21a!=_0x58a859&&!this['_areMergableCells'](_0x3be21a,_0x58a859))return!0x1;return!0x0;}['_areMergableCells'](_0x127c66,_0x5cd606){const _0x64f6db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x152a46=this['editor']['model']['createRangeOn'](_0x127c66),_0x179ad1=this['editor']['model']['createRangeOn'](_0x5cd606),_0x52a8a1=new Set(),_0x292b75=new Set();for(const _0x3d62b9 of _0x64f6db['getSuggestions']())if(('insertion'==_0x3d62b9['type']||'deletion'==_0x3d62b9['type']||'mergeTableCells'==_0x3d62b9['subType'])&&_0x3d62b9['isInContent']){for(const _0x161bfd of _0x3d62b9['getRanges']())_0x161bfd['containsRange'](_0x152a46,!0x0)&&_0x52a8a1['add'](_0x3d62b9['type']+':'+_0x3d62b9['author']['id']),_0x161bfd['containsRange'](_0x179ad1,!0x0)&&_0x292b75['add'](_0x3d62b9['type']+':'+_0x3d62b9['author']['id']);}if(_0x52a8a1['size']!=_0x292b75['size'])return!0x1;for(const _0x10210d of _0x52a8a1)if(!_0x292b75['has'](_0x10210d))return!0x1;return!0x0;}}class Ct extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x4032b3=this['editor'];if(!_0x4032b3['plugins']['has']('TableEditing'))return;const _0x32f07c=_0x4032b3['locale'],_0x136cfe=_0x4032b3['plugins']['get']('TrackChangesEditing');_0x136cfe['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x136cfe['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x136cfe['registerBlockAttribute']('headingRows'),_0x136cfe['registerBlockAttribute']('headingColumns'),_0x136cfe['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x32f07c,'FORMAT_HEADER_ROW')),_0x136cfe['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x32f07c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b7a06=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb18c50=this['editor']['plugins']['get']('TableUtils'),_0x4a7e6f=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4e271d({showActiveMarker:_0x375c1a=!0x0,setDataAttribute:_0x26e1d6=!0x0}={}){return(_0x24f6c0,_0x176a49,_0x50f061)=>{const {type:_0x47761c,id:_0x7f8fff}=_0x2b7a06['_splitMarkerName'](_0x176a49['markerName']),_0x1c946f=_0x2b7a06['getSuggestion'](_0x7f8fff),_0x33cd43=_0x1c946f['data'];if('formatBlock'!=_0x1c946f['type']||!_0x33cd43||'setTableColumnHeader'!=_0x33cd43['commandName'])return;if(_0x176a49['item'])return void _0x24f6c0['stop']();if(!_0x50f061['consumable']['consume'](_0x176a49['markerRange'],_0x24f6c0['name']))return;const _0x39955b=_0x176a49['markerRange']['start']['nodeAfter'],_0x4454b6=_0x176a49['markerRange']['end']['nodeBefore'],_0x3eb967=_0x39955b['parent']['parent'],{column:_0x216c47}=_0xb18c50['getCellLocation'](_0x39955b),{column:_0x51c79d}=_0xb18c50['getCellLocation'](_0x4454b6);for(let _0x1e570b=_0x216c47;_0x1e570b<=_0x51c79d;_0x1e570b++){const _0x20b15b=_0xb18c50['createTableWalker'](_0x3eb967,{'column':_0x1e570b,'includeAllSlots':!0x1});for(const _0x2a1d8f of _0x20b15b){const _0x269abe=_0x2a1d8f['cell'],_0x2fb276=_0x50f061['mapper']['toViewElement'](_0x269abe);_0x50f061['writer']['addClass']('ck-suggestion-marker-'+_0x47761c,_0x2fb276),_0x26e1d6&&_0x50f061['writer']['setAttribute']('data-suggestion',_0x7f8fff,_0x2fb276),_0x50f061['mapper']['bindElementToMarker'](_0x2fb276,_0x176a49['markerName']),_0x375c1a&&(_0x2b7a06['activeMarkers']['includes'](_0x176a49['markerName'])?_0x50f061['writer']['addClass']('ck-suggestion-marker--active',_0x2fb276):_0x50f061['writer']['removeClass']('ck-suggestion-marker--active',_0x2fb276));}}};}_0x2b7a06['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4a7e6f),_0x2b7a06['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4a7e6f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4e271d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a9244,_0x102ed7,_0x529232)=>{_0x529232['options']['showSuggestionHighlights']&&_0x4e271d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4a9244,_0x102ed7,_0x529232);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45d4f9,_0x14e39c,_0x13ed26)=>{const {type:_0x1c45f5,id:_0x519322}=_0x2b7a06['_splitMarkerName'](_0x14e39c['markerName']),_0x4eb50e=_0x2b7a06['getSuggestion'](_0x519322),_0x13f159=_0x4eb50e['data'];if('formatBlock'!=_0x4eb50e['type']||!_0x13f159||'setTableColumnHeader'!=_0x13f159['commandName'])return;const _0x23dcf5=_0x13ed26['mapper']['markerNameToElements'](_0x14e39c['markerName']);if(_0x23dcf5){for(const _0x151c55 of _0x23dcf5)_0x13ed26['writer']['removeClass']('ck-suggestion-marker-'+_0x1c45f5,_0x151c55),_0x13ed26['writer']['removeClass']('ck-suggestion-marker--active',_0x151c55),_0x13ed26['writer']['removeAttribute']('data-suggestion',_0x151c55),_0x13ed26['mapper']['unbindElementFromMarkerName'](_0x151c55,_0x14e39c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a019c=this['editor'],_0x2013bb=_0x1a019c['locale'];function _0x108dcc(_0x58a4d7){return{'type':'format','content':o(_0x2013bb,'*Format:*\x20%0',_0x58a4d7)};}_0x1a019c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x394b21=>{if('formatBlock'!=_0x394b21['type'])return;const {data:_0x59986c}=_0x394b21;if(_0x59986c){if('setTableRowHeader'==_0x59986c['commandName']){const _0x5f34ef=_0x59986c['commandParams'][0x0]['forceValue'];return _0x108dcc(o(_0x2013bb,_0x5f34ef?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x59986c['commandName']){const _0x5ddc8b=_0x59986c['commandParams'][0x0]['forceValue'];return _0x108dcc(o(_0x2013bb,_0x5ddc8b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xd5687e=>[_0xd5687e,null]));class _t extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x286212=this['editor'];if(!_0x286212['plugins']['has']('TableClipboard'))return;const _0x4282c4=_0x286212['plugins']['get']('TrackChangesEditing'),_0x5406c5=_0x286212['plugins']['get']('TableUtils'),_0x44757c=_0x286212['plugins']['get'](It),_0x4d530d=_0x286212['plugins']['get']('TableClipboard');_0x44757c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x286212['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x286212['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x505b5a=null;_0x286212['model']['on']('insertContent',(_0x4cf310,_0x283554)=>{const [_0x573975,_0x396799]=_0x283554,_0xd8af43=_0x283554[_0x283554['length']-0x1];_0xd8af43&&_0xd8af43['forceDefaultExecution']||_0x4282c4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x25c13c,_0x514426,_0x344365,_0xbb0c68,_0x1c1457){if(_0x514426&&!_0x514426['is']('documentSelection'))return!0x1;const _0x3e15a6=_0x1c1457['getTableIfOnlyTableInContent'](_0x25c13c,_0x344365);if(!_0x3e15a6||!Re(_0x3e15a6,void 0x0,_0xbb0c68))return!0x1;const _0x11cc64=_0xbb0c68['getSelectionAffectedTableCells'](_0x344365['document']['selection']);if(!_0x11cc64['length'])return!0x1;const _0x104ed8=_0x11cc64[0x0]['findAncestor']('table'),_0x59493d=_0xbb0c68['getRowIndexes'](_0x11cc64),_0x58183e=_0xbb0c68['getColumnIndexes'](_0x11cc64),_0x2b6e01={'startRow':_0x59493d['first'],'endRow':_0x59493d['last'],'startColumn':_0x58183e['first'],'endColumn':_0x58183e['last']};return 0x1==_0x11cc64['length']&&(_0x2b6e01['endRow']+=_0xbb0c68['getRows'](_0x3e15a6)-0x1,_0x2b6e01['endColumn']+=_0xbb0c68['getColumns'](_0x3e15a6)-0x1),Re(_0x104ed8,_0x2b6e01,_0xbb0c68);}(_0x573975,_0x396799,_0x286212['model'],_0x5406c5,_0x4d530d)&&(_0x4cf310['stop'](),_0x505b5a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x286212['model']['change'](()=>{_0x286212['model']['insertContent'](_0x283554[0x0],_0x283554[0x1],_0x283554[0x2],{'forceDefaultExecution':!0x0});const _0x246926=_0x5042b(),{rowInsertionRanges:_0x1bfcf6,columnInsertionRanges:_0x3110b9,insertionRanges:_0x5024d8,deletionRanges:_0x2ecd82,cells:_0x5b021c}=_0x505b5a;_0x1bfcf6['length']&&_0x4282c4['markMultiRangeInsertion'](_0x1bfcf6,'tablePasteRow',{'tablePasteChainId':_0x246926}),_0x3110b9['length']&&_0x4282c4['markMultiRangeInsertion'](_0x3110b9,'tablePasteColumn',{'tablePasteChainId':_0x246926}),_0x5024d8['length']&&(_0x4282c4['markMultiRangeInsertion'](_0x5024d8,'tablePaste',{'tablePasteChainId':_0x246926,'skipNestingCheck':!0x0}),_0x5024d8['forEach'](_0x5c7cb6=>_0x5c7cb6['detach']?.())),_0x2ecd82['length']&&(_0x4282c4['markMultiRangeDeletion'](_0x2ecd82,'tablePaste',{'tablePasteChainId':_0x246926,'skipNestingCheck':!0x0}),_0x2ecd82['forEach'](_0x1d4ed3=>_0x1d4ed3['detach']?.()));const _0x558819=_0x4282c4['markMultiRangeBlockFormat'](_0x5b021c['map'](({element:_0x5ec851})=>_0x5ec851),{'formatGroupId':_0x5042b()},[],'tablePasteCell',{'tablePasteChainId':_0x246926});if(_0x558819){const _0x50acb8=_0x558819['getMarkers'](),_0x6a9535=[];for(const {element:_0x5f10a8,attributes:_0x5edc81}of _0x5b021c){if(!_0x5edc81)continue;const _0x21a844=_0x286212['model']['createRangeOn'](_0x5f10a8),_0x4531db=_0x50acb8['find'](_0x1468d9=>_0x1468d9['getRange']()['isEqual'](_0x21a844));_0x4531db&&_0x6a9535['push']([_0x4531db['name'],_0x5edc81]);}_0x6a9535['length']&&_0x558819['setAttribute']('markerAttributes',Object['fromEntries'](_0x6a9535));}_0x505b5a=null;}));},{'priority':_0x1bc495['high']+0xa}),_0x286212['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3508c1,_0x397063)=>{const [_0x5bcca3,_0x5bc210,,_0x41e924]=_0x397063;if(!_0x505b5a)return;_0x3508c1['stop']();const _0x25adaf=_0x5bcca3['cell'],_0x378181=_0x5bc210,_0x12cd2b=ke(_0x25adaf),_0x499f0d=ke(_0x378181);_0x3508c1['return']=_0x25adaf;let _0xb1f0be=null,_0x2ab43e=null;if(_0x499f0d||_0x12cd2b){if(_0x12cd2b&&!_0x499f0d){_0x41e924['remove'](_0x25adaf['getChild'](0x0));for(const _0x24f64c of Array['from'](_0x378181['getChildren']()))_0x41e924['insert'](_0x24f64c,_0x25adaf,'end');const _0x46fd2f=_0x505b5a['rowInsertionIndexes']['includes'](_0x5bcca3['row']),_0x24c240=_0x505b5a['columnInsertionIndexes']['includes'](_0x5bcca3['column']);_0x46fd2f||_0x24c240||(_0xb1f0be=_0x5018e8['fromRange'](_0x41e924['createRangeIn'](_0x25adaf)));}else _0x499f0d&&!_0x12cd2b&&(_0x2ab43e=_0x41e924['createRangeIn'](_0x25adaf));}else{const _0x24c492=_0x41e924['createElement']('tableCellSuggestion'),_0x67c95d=_0x41e924['createElement']('tableCellSuggestion');_0x41e924['wrap'](_0x41e924['createRangeIn'](_0x25adaf),_0x67c95d),_0x41e924['insert'](_0x24c492,_0x25adaf,0x0);for(const _0x31c257 of Array['from'](_0x378181['getChildren']()))_0x41e924['insert'](_0x31c257,_0x24c492,'end');_0xb1f0be=_0x5018e8['fromRange'](_0x41e924['createRangeOn'](_0x24c492)),_0x2ab43e=_0x5018e8['fromRange'](_0x41e924['createRangeOn'](_0x67c95d));}const _0x2561e4=Array['from'](_0x378181['getAttributes']())['filter'](([_0xc11f56])=>Pe['includes'](_0xc11f56));_0x505b5a['cells']['push']({'element':_0x25adaf,'attributes':_0x2561e4['length']?Object['fromEntries'](_0x2561e4):null}),_0xb1f0be&&_0x505b5a['insertionRanges']['push'](_0xb1f0be),_0x2ab43e&&_0x505b5a['deletionRanges']['push'](_0x2ab43e);},{'priority':'high'}),_0x5406c5['on']('insertColumns',(_0x1339eb,_0x1aede5)=>{const [_0x4cbca1,_0x52a60e={}]=_0x1aede5;if(!_0x505b5a)return;const _0x4efbd2=_0x52a60e['at']||0x0,_0x296208=_0x52a60e['columns']||0x1;_0x505b5a['columnInsertionIndexes']=new Array(_0x296208)['fill'](_0x4efbd2)['map']((_0x242a34,_0x8961)=>_0x242a34+_0x8961);for(const {cell:_0x396c58}of _0x5406c5['createTableWalker'](_0x4cbca1,{'startColumn':_0x4efbd2,'endColumn':_0x4efbd2+_0x296208-0x1}))_0x505b5a['columnInsertionRanges']['push'](_0x286212['model']['createRangeOn'](_0x396c58));},{'priority':'low'}),_0x5406c5['on']('insertRows',(_0x404008,_0x2c6260)=>{const [_0x4dba0b,_0xc1d46={}]=_0x2c6260;if(!_0x505b5a)return;const _0x4bcaa7=_0xc1d46['at']||0x0,_0x3109dd=_0xc1d46['rows']||0x1;_0x505b5a['rowInsertionIndexes']=new Array(_0x3109dd)['fill'](_0x4bcaa7)['map']((_0x13595a,_0x3c73bf)=>_0x13595a+_0x3c73bf);for(const {cell:_0x14c857}of _0x5406c5['createTableWalker'](_0x4dba0b,{'startRow':_0x4bcaa7,'endRow':_0x4bcaa7+_0x3109dd-0x1}))_0x505b5a['rowInsertionRanges']['push'](_0x286212['model']['createRangeOn'](_0x14c857));},{'priority':'low'}),_0x4282c4['descriptionFactory']['registerDescriptionCallback'](_0x29db9c=>{if(_0x29db9c['subType']&&_0x29db9c['subType']['startsWith']('tablePaste'))return _0x29db9c['previous']?{}:{'type':'insertion','content':o(_0x286212['locale'],'*Replace\x20table\x20cells*')};});const _0x339583=()=>!0x1;for(const _0xdbcd4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4282c4['_suggestionFactory']['registerCustomCallback']('insertion',_0xdbcd4,'join',_0x339583),_0x4282c4['_suggestionFactory']['registerCustomCallback']('deletion',_0xdbcd4,'join',_0x339583),_0x4282c4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdbcd4,'join',_0x339583);_0x4282c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x339583),_0x4282c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x399e29,_0x817d70,_0x229e19)=>{const _0x46530a=_0x399e29['map'](_0x432c86=>_0x432c86['getContainedElement']())['filter'](_0x805690=>_0x805690),_0x14e09c=new Map(_0x46530a['map'](_0x4becea=>[_0x4becea,null]));if(_0x505b5a){for(const {element:_0x261319,attributes:_0x57a9b6}of _0x505b5a['cells'])_0x57a9b6&&_0x14e09c['set'](_0x261319,_0x57a9b6);}else{if(_0x229e19&&_0x229e19['markerAttributes'])for(const [_0x12c105,_0x4e173c]of Object['entries'](_0x229e19['markerAttributes'])){const _0x524d9c=_0x286212['model']['markers']['get'](_0x12c105),_0x3eea98=_0x524d9c?_0x524d9c['getRange']()['getContainedElement']():null;_0x3eea98&&_0x14e09c['set'](_0x3eea98,_0x4e173c);}}_0x286212['model']['change'](_0xbf58b9=>{for(const [_0x1dde17,_0x5918cf]of _0x14e09c)_0xbf58b9['setAttributes']({...we,..._0x5918cf},_0x1dde17);});});const _0x160503=(_0x1e9f60,_0x47e877)=>{_0x4282c4['_suggestionFactory']['registerCustomCallback'](_0x1e9f60,'tablePaste',_0x47e877,(_0x21ca51,_0x25e4c6,_0x279aad)=>{_0x286212['model']['change'](_0x542064=>{const _0xc60924=[];for(const _0x50f4dc of _0x21ca51){const _0x5c1b5f=_0x50f4dc['start']['nodeAfter'];_0x5c1b5f['is']('element','tableCellSuggestion')&&_0xc60924['push'](_0x5c1b5f);}_0x4282c4['_suggestionFactory']['getSuggestionCallback'](_0x1e9f60,null,_0x47e877)(_0x21ca51,_0x25e4c6,_0x279aad);for(const _0x1e4ea5 of _0xc60924)'$graveyard'!=_0x1e4ea5['root']['rootName']&&_0x542064['unwrap'](_0x1e4ea5);});});};_0x160503('insertion','accept'),_0x160503('insertion','discard'),_0x160503('deletion','accept'),_0x160503('deletion','discard'),_0x4282c4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e77da=>{const _0x137086=_0x1e77da['map'](_0x53eb72=>_0x53eb72['getContainedElement']()),_0x588fe7=_0x137086[0x0]['findAncestor']('table'),{minRow:_0x4e1c72,maxRow:_0x760cec}=_0x44757c['_getCoordsForCells'](_0x137086);_0x5406c5['removeRows'](_0x588fe7,{'at':_0x4e1c72,'rows':_0x760cec-_0x4e1c72+0x1});}),_0x4282c4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5bfe20=>{const _0x444b13=_0x5bfe20['map'](_0x529eac=>_0x529eac['getContainedElement']()),_0xc9a34a=_0x444b13[0x0]['findAncestor']('table'),{minColumn:_0x92e429,maxColumn:_0x2d1670}=_0x44757c['_getCoordsForCells'](_0x444b13);_0x5406c5['removeColumns'](_0xc9a34a,{'at':_0x92e429,'columns':_0x2d1670-_0x92e429+0x1});});const _0x42f435=(_0xafdbc6,_0x21ec73)=>{if(!_0x21ec73['subType']||!_0x21ec73['subType']['startsWith']('tablePaste'))return;const _0x23ccd2=_0x21ec73['attributes']['tablePasteChainId'],_0x3c6747=_0x4282c4['getSuggestions']()['filter'](_0xe8da7d=>_0xe8da7d['isInContent']&&_0xe8da7d['attributes']&&_0xe8da7d['attributes']['tablePasteChainId']==_0x23ccd2);_0x3c6747['length']&&_0x21ec73['getAllAdjacentSuggestions']()['length']!=_0x3c6747['length']&&_0x3c6747['reduce']((_0x477a0a,_0xb00843)=>(_0x477a0a['next']=_0xb00843,_0xb00843['previous']=_0x477a0a,_0xb00843));};function _0x3ea65d(_0x4efc81,_0x164eb6=!0x0){const {id:_0x2f8372,authorId:_0x57e9f6}=_0x4282c4['_splitMarkerName'](_0x4efc81['markerName']),_0x39f568=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5826c9=_0x4282c4['activeMarkers']['includes'](_0x4efc81['markerName']);return _0x5826c9&&_0x39f568['push']('ck-suggestion-marker--active'),{'classes':_0x39f568,'attributes':{'data-suggestion':_0x2f8372,'data-author-id':_0x57e9f6},'priority':_0x5826c9&&_0x164eb6?0xbc2:0xbb8};}_0x4282c4['on']('suggestionLoaded',_0x42f435,{'priority':'high'}),_0x4282c4['on']('suggestionUnloaded',_0x42f435,{'priority':'high'}),_0x286212['model']['document']['registerPostFixer'](()=>{let _0x53edeb=!0x1;const _0x6c261=Array['from'](_0x286212['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10cc21,data:_0x4ab96d}of _0x6c261){const {group:_0x2884ad,type:_0x3fb1d8,id:_0x260372}=_0x4282c4['_splitMarkerName'](_0x10cc21);if('suggestion'!=_0x2884ad||'deletion'!=_0x3fb1d8||_0x4ab96d['oldRange'])continue;if(!_0x4282c4['hasSuggestion'](_0x260372))continue;const _0x19828c=_0x4282c4['getSuggestion'](_0x260372)['getRanges'](),_0x4b2628=_0x286212['plugins']['get']('Users')['me'];for(const _0x1f0a33 of _0x4282c4['getSuggestions']()){if(!_0x1f0a33['isInContent']||_0x1f0a33['author']!=_0x4b2628)continue;if('formatBlock'!=_0x1f0a33['type']||'tablePasteCell'!=_0x1f0a33['subType'])continue;if(_0x1f0a33['getRanges']()['every'](_0x2389fc=>_0x19828c['some'](_0x1f5970=>_0x1f5970['containsRange'](_0x2389fc,!0x0)))){for(const _0x791d56 of _0x1f0a33['getAllAdjacentSuggestions']())_0x791d56['isInContent']&&(_0x791d56['discard'](),_0x53edeb=!0x0);}}}return _0x53edeb;}),_0x286212['model']['document']['registerPostFixer'](_0x3e0b16=>{const _0x310308=_0x286212['commands']['get']('redo');if(!_0x310308||!_0x310308['_createdBatches']['has'](_0x3e0b16['batch']))return!0x1;let _0x36b98c=!0x1;const _0x48f4ce=_0x286212['plugins']['get']('Users')['me'],_0x40f9ff=_0x286212['model']['document']['differ']['getChanges'](),_0x14d59b=Array['from'](_0x286212['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2104bb,data:_0xa559ba})=>{const {group:_0x2efaef,subType:_0x1578c5,authorId:_0x56bd06}=_0x4282c4['_splitMarkerName'](_0x2104bb);return'suggestion'==_0x2efaef&&'tablePaste'==_0x1578c5&&_0x56bd06==_0x48f4ce['id']&&!_0xa559ba['oldRange'];});for(const _0x519933 of _0x40f9ff){if('insert'!=_0x519933['type']||'tableCellSuggestion'!=_0x519933['name']||0x1!=_0x519933['length'])continue;const _0x3d5d7e=_0x3e0b16['createRange'](_0x519933['position'],_0x519933['position']['getShiftedBy'](0x1));if(!_0x14d59b['find'](({data:_0x5a9485})=>_0x5a9485['newRange']['isEqual'](_0x3d5d7e))){for(const {name:_0x4dac1e,data:_0x375b2a}of _0x14d59b)if(_0x3d5d7e['containsRange'](_0x375b2a['newRange'])){_0x3e0b16['updateMarker'](_0x4dac1e,{'range':_0x3d5d7e}),_0x36b98c=!0x0;break;}}}return _0x36b98c;}),_0x286212['model']['document']['registerPostFixer'](_0x212f22=>{let _0x429437=!0x1;const _0xe4a013=_0x286212['plugins']['get']('Users')['me'],_0x3e9025=_0x4282c4['getSuggestions']()['filter'](_0x365fa0=>_0x365fa0['isInContent']&&_0x365fa0['author']==_0xe4a013),_0x5c9aa1=new Set(),_0x18bdbb=new Set();for(const _0x12a71a of _0x3e9025)if('tablePaste'==_0x12a71a['subType'])for(const _0x2a6cc3 of _0x12a71a['getMarkers']()){const _0x2d334b=_0x2a6cc3['getRange']()['getContainedElement']();if(_0x2d334b){if(_0x2d334b['is']('element','tableCellSuggestion')&&ke(_0x2d334b)){_0x12a71a['removeMarker'](_0x2a6cc3['name']),_0x5c9aa1['add'](_0x2d334b),_0x429437=!0x0;const _0x476986=_0x2d334b['nextSibling'],_0x5899c0=_0x2d334b['previousSibling'],_0xdd245=_0x476986&&_0x476986['is']('element','tableCellSuggestion'),_0x2c2a7c=_0x5899c0&&_0x5899c0['is']('element','tableCellSuggestion');_0xdd245&&!_0x5c9aa1['has'](_0x476986)&&_0x18bdbb['add'](_0x476986),_0x2c2a7c&&!_0x5c9aa1['has'](_0x5899c0)&&_0x18bdbb['add'](_0x5899c0);}else _0x2d334b['is']('element','paragraph')&&_0x2d334b['isEmpty']&&(_0x12a71a['removeMarker'](_0x2a6cc3['name']),_0x429437=!0x0);}}else{if('tablePasteCell'==_0x12a71a['subType']){if(!_0x12a71a['attributes']||!_0x12a71a['attributes']['tablePasteChainId'])continue;const _0x49c97b=_0x12a71a['attributes']['markerAttributes'];if(_0x49c97b&&Object['keys'](_0x49c97b)['length'])continue;const _0x2944cf=_0x12a71a['attributes']['tablePasteChainId'];let _0x1044fb=!0x0,_0x6614f2=!0x0;for(const _0x224aa6 of _0x3e9025)if(_0x224aa6['subType']&&_0x224aa6['subType']['startsWith']('tablePaste')){if(!_0x224aa6['attributes']['tablePasteChainId']){_0x6614f2=!0x1;break;}if(_0x224aa6['id']!=_0x12a71a['id']&&_0x224aa6['attributes']['tablePasteChainId']==_0x2944cf){_0x1044fb=!0x1;break;}}_0x6614f2&&_0x1044fb&&(_0x12a71a['removeMarkers'](),_0x429437=!0x0);}}for(const _0x5a79eb of _0x5c9aa1)_0x212f22['remove'](_0x5a79eb);for(const _0x54f548 of _0x18bdbb)_0x212f22['unwrap'](_0x54f548);return _0x429437;}),_0x286212['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x346ef7=>_0x3ea65d(_0x346ef7),'converterPriority':'high'}),_0x286212['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a1a28,_0x55ffda)=>_0x55ffda['options']['showSuggestionHighlights']?_0x3ea65d(_0x2a1a28,!0x1):null,'converterPriority':'high'});const _0x52f9bf=_0x286212['editing']['view'];this['listenTo'](_0x52f9bf['document'],'clipboardOutput',(_0x4da268,_0x5a4a9b)=>{const _0xb22ef9=[];for(const _0x2a3d1b of _0x52f9bf['createRangeIn'](_0x5a4a9b['content'])['getItems']())_0x2a3d1b['is']('element','suggestion-td')&&_0xb22ef9['push'](_0x2a3d1b);_0x52f9bf['change'](_0x2f39b5=>{for(const _0x1bbaf6 of _0xb22ef9)_0x2f39b5['move'](_0x2f39b5['createRangeIn'](_0x1bbaf6),_0x2f39b5['createPositionBefore'](_0x1bbaf6)),_0x2f39b5['remove'](_0x1bbaf6);});});}}function ke(_0x3650b4){if(_0x3650b4['isEmpty'])return!0x0;const _0x46da5c=_0x3650b4['getChild'](0x0);return _0x46da5c['is']('element','paragraph')&&_0x46da5c['isEmpty'];}function Re(_0x5f1476,_0x3fcce1={},_0x196eda){for(const {isAnchor:_0x563df5,cellHeight:_0x4f4f47,cellWidth:_0x3d7590}of _0x196eda['createTableWalker'](_0x5f1476,{'includeAllSlots':!0x0,..._0x3fcce1}))if(!_0x563df5||0x1!=_0x4f4f47||0x1!=_0x3d7590)return!0x1;return!0x0;}class Nt extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a7a5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a7a5e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a7a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a7a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a7a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a7a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a7a5e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e0af5,_0xdb212a){const _0x2fa7fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc7f95f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38b7a7=_0xdb212a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3b3609=_0xc7f95f['getColumnGroupElement'](_0x38b7a7);let _0x48b7a1=_0x3b3609?_0xc7f95f['getTableColumnsWidths'](_0x3b3609):null,_0xb7a80a=_0x38b7a7['getAttribute']('tableWidth')||null;const _0x334b8c=_0xdb212a['tableWidth']||_0xb7a80a,_0x372d1b=_0xdb212a['columnWidths']||_0x48b7a1,_0x50a8f4=this['editor']['plugins']['get']('Users')['me'];for(const _0x253c04 of _0x2fa7fd['getSuggestions']()){const _0x251e15=_0x253c04['getContainedElement']();if('resizeTable'===_0x253c04['subType']&&_0x251e15===_0x38b7a7){_0x253c04['author']!==_0x50a8f4&&_0x253c04['discard']();const _0x53694c=_0x253c04['data']['commandParams'];_0xb7a80a=_0x53694c[0x0]['tableWidth'],_0x48b7a1=_0x53694c[0x0]['columnWidths'];break;}}_0x4e0af5({'table':_0x38b7a7,'tableWidth':_0x334b8c,'columnWidths':_0x372d1b}),_0x2fa7fd['markBlockFormat'](_0x38b7a7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xb7a80a,'columnWidths':_0x48b7a1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1be920){if('formatBlock'!=_0x1be920['type']&&'formatInline'!=_0x1be920['type'])return;const {data:_0x7dc069}=_0x1be920;if(_0x7dc069&&'resizeTable'===_0x7dc069['formatGroupId']){const _0x4477c2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4477c2)};}}}class Dt extends _0x1530f7{['afterInit'](){const _0xf63db2=this['editor'];_0xf63db2['plugins']['has']('Template')&&_0xf63db2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1530f7{['afterInit'](){const _0x548309=this['editor'];if(!_0x548309['commands']['get']('insertTableOfContents'))return;_0x548309['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x503d42=_0x548309['plugins']['get']('TrackChangesEditing'),_0x157089=_0x548309['locale'];_0x503d42['descriptionFactory']['registerElementLabel']('tableOfContents',_0x165507=>o(_0x157089,'ELEMENT_TABLE_OF_CONTENTS',_0x165507));}}class $t extends _0x1530f7{['afterInit'](){const _0x2dc09e=this['editor'];if(!_0x2dc09e['plugins']['has']('Title'))return;const _0x2a4a21=_0x2dc09e['plugins']['get']('TrackChangesEditing');_0x2a4a21['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2dc09e['locale'],'ELEMENT_TITLE')),_0x2dc09e['model']['document']['registerPostFixer'](_0x446968=>{let _0x1475cd=!0x1;const _0x1bac9d=Array['from'](_0x2dc09e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe75fe7,data:_0x36a219}of _0x1bac9d){const {group:_0x420265}=_0x2a4a21['_splitMarkerName'](_0xe75fe7);if('suggestion'!==_0x420265||!_0x36a219['newRange'])continue;const _0x2625b3=_0x36a219['newRange'],_0xd64177=_0x2625b3['end']['nodeBefore'];if(!_0xd64177||!_0xd64177['is']('element','title-content'))continue;if(!_0x2625b3['start']['isTouching'](_0x2625b3['end']))continue;const _0x33323d=_0x2dc09e['model']['schema']['getNearestSelectionRange'](_0x2625b3['end'],'forward');if(_0x33323d&&_0x33323d['isCollapsed']){const _0x2936df=_0x446968['createRange'](_0x2625b3['start'],_0x33323d['start']);_0x2936df['isEqual'](_0x2625b3)||(_0x446968['updateMarker'](_0xe75fe7,{'range':_0x2936df}),_0x1475cd=!0x0);}_0x1475cd||(_0x446968['removeMarker'](_0xe75fe7),_0x1475cd=!0x0);}return _0x1475cd;});}}class Bt extends _0x1530f7{['afterInit'](){const _0x173148=this['editor'],_0x2bf7a7=_0x173148['plugins']['get']('TrackChangesEditing');_0x173148['plugins']['has']('UndoEditing')&&(_0x2bf7a7['enableCommand']('undo'),_0x2bf7a7['enableCommand']('redo'));}}class xt extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x4cee2e=this['editor'];if(!_0x4cee2e['plugins']['has']('TableCaptionEditing'))return;_0x4cee2e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x1530f7{['tableProperties'];['tableCellProperties'];constructor(_0x5881e5){super(_0x5881e5),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';}['afterInit'](){const _0x2cb27e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2331f9 of this['tableProperties'])_0x2cb27e['enableCommand'](_0x2331f9,(_0x3d90ea,_0xed0525)=>{const _0x1e7545=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2331f9,[_0x1e7545],this['tableProperties'],'tableProperties',_0x3d90ea,_0xed0525);});_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2cb27e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e0ede,_0x28b6e4)=>this['handleDiscardAction'](this['tableProperties'],_0x2e0ede,_0x28b6e4)),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x6e4940 of this['tableCellProperties'])_0x2cb27e['enableCommand'](_0x6e4940,(_0x2d96f4,_0x57c4c0)=>{const _0x138443=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x6e4940,_0x138443,this['tableCellProperties'],'tableCellProperties',_0x2d96f4,_0x57c4c0);});_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2cb27e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3c9a72,_0x3a2bd4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3c9a72,_0x3a2bd4)),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2cb27e['descriptionFactory']['registerDescriptionCallback'](_0x59fb8a=>this['handleSuggestionDescription'](_0x59fb8a));}['_handlePropertyChange'](_0x40a9e8,_0x2753cf,_0x37b3bd,_0x48b526,_0x1f210,_0x3ab9ad){const _0x50f352=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ab9ad['batch'],()=>{for(const _0x1b7267 of _0x2753cf){if(this['_getSuggestion'](_0x1b7267,_0x48b526))_0x1f210(_0x3ab9ad);else{const _0xd3b141={};for(const _0x5d2934 of _0x37b3bd){const _0x46412f=_0x1b7267['getAttribute'](_0x5d2934);void 0x0!==_0x46412f&&(_0xd3b141[_0x5d2934]=_0x46412f);}_0x1f210(_0x3ab9ad),_0x50f352['markBlockFormat'](_0x1b7267,{'commandParams':[_0xd3b141]},[],_0x48b526);}}});}['handleDiscardAction'](_0x4c9b63,_0x309806,_0x22c214){const _0x2abc57=_0x309806[0x0]['start']['nodeAfter'],_0x47dd3b=_0x22c214['commandParams'][0x0];this['editor']['model']['change'](_0x2c67c1=>{for(const _0x25e927 of _0x4c9b63)void 0x0!==_0x47dd3b[_0x25e927]?_0x2c67c1['setAttribute'](_0x25e927,_0x47dd3b[_0x25e927],_0x2abc57):_0x2c67c1['removeAttribute'](_0x25e927,_0x2abc57);});}['handleSuggestionDescription'](_0x1d24a5){if(_0x1d24a5['data'])switch(_0x1d24a5['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'](_0x2de7cd,_0x4d45a2){const _0x35dfbb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x555475 of _0x35dfbb['getSuggestions']({'skipNotAttached':!0x0})){const _0x22d6f9=_0x555475['getContainedElement']();if(_0x555475['subType']===_0x4d45a2&&_0x22d6f9===_0x2de7cd)return _0x555475;}return null;}}const m='$elementName';class p extends _0x1530f7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d313f,_0x3a8f2,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x33645f){function _0xfe89bc(_0x4aba2f){return _0x4aba2f['map'](_0x409e54=>String['fromCharCode'](_0x409e54))['join']('');}super(_0x33645f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x11f27c,_0x46f5f7,_0x594a18,_0x31c90e)=>{this['_model']['change'](()=>{for(const _0x143087 of[..._0x31c90e,..._0x594a18])this['_model']['markers']['has'](_0x143087)&&_0x33645f['editing']['reconvertMarker'](_0x143087);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x33645f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x33645f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x33645f['config']['get']('trackChanges.trackFormatChanges'),_0x33645f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x33645f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x33645f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xfe89bc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xfe89bc([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x38]);}['init'](){const _0xebe359=this['editor'],_0x50f983=(_0x4c64af,_0x3f8a63)=>{if('attribute'!=_0x4c64af)return'ck-suggestion-marker-'+_0x4c64af;const _0xdc35d=_0x3f8a63['split']('|')[0x0];return this['_isBlockAttribute'](_0xdc35d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xebe359['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x47ad03=>{const {id:_0x36c9d7,authorId:_0x20ef63,type:_0x27f06e,subType:_0x334ada}=this['_splitMarkerName'](_0x47ad03['markerName']),_0x4a9739=['ck-suggestion-marker',_0x50f983(_0x27f06e,_0x334ada)];let _0x373a32=0xbb8;return this['activeMarkers']['includes'](_0x47ad03['markerName'])&&(_0x4a9739['push']('ck-suggestion-marker--active'),_0x373a32=0xbc2),'deletion'==_0x27f06e&&(_0x373a32+=0x5),{'classes':_0x4a9739,'attributes':{'data-suggestion':_0x36c9d7,'data-author-id':_0x20ef63},'priority':_0x373a32};}}),_0xebe359['conversion']['for']('dataDowncast')['add'](_0x2ff150=>{_0x2ff150['on']('addMarker:suggestion',(_0x16cbfb,_0x4ad51b,_0x573e12)=>{if(!_0x573e12['options']['showSuggestionHighlights'])return;const _0x592266=_0x4ad51b['item'];if(!_0x592266)return;const _0x546251=_0x573e12['mapper']['toViewElement'](_0x592266);_0xebe359['model']['schema']['isObject'](_0x592266)&&_0x546251&&!_0x546251['getCustomProperty']('widget')&&_0x546251['is']('containerElement')&&_0x39e06e(_0x546251,_0x573e12['writer']);},{'priority':'high'});}),_0xebe359['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x17c4bf,_0x277698)=>{if(!_0x277698['options']['showSuggestionHighlights'])return null;const {type:_0x576a74,subType:_0x3d8600}=this['_splitMarkerName'](_0x17c4bf['markerName']);return{'classes':['ck-suggestion-marker',_0x50f983(_0x576a74,_0x3d8600)],'priority':0xbb8};}});const _0x59cbba=({showActiveMarkers:_0x3bec74=!0x0,isAttributeSuggestion:_0x3be91f=!0x1}={})=>(_0x2e77a7,_0x12aad3,_0x1c9fc6)=>{if(!_0x12aad3['item'])return;const {id:_0xec0fd6,authorId:_0x4e3d08}=this['_splitMarkerName'](_0x12aad3['markerName']);if(_0x3be91f){const _0x3c4f42=this['_suggestions']['get'](_0xec0fd6),_0x5a8418=this['_getAttributeKey'](_0x3c4f42);if(!this['_isBlockAttribute'](_0x5a8418))return;}if(_0x12aad3['item']['is']('selection'))return void _0x1c9fc6['consumable']['consume'](_0x12aad3['item'],_0x2e77a7['name']);const _0x2d2b0f=_0x1c9fc6['mapper']['toViewElement'](_0x12aad3['item']);if(_0x12aad3['item']['is']('element')&&_0xebe359['model']['schema']['isBlock'](_0x12aad3['item'])&&!_0x2d2b0f['getCustomProperty']('addHighlight')){_0x1c9fc6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2d2b0f),_0x1c9fc6['writer']['setAttribute']('data-suggestion',_0xec0fd6,_0x2d2b0f),_0x1c9fc6['writer']['setAttribute']('data-author-id',_0x4e3d08,_0x2d2b0f),_0x1c9fc6['mapper']['bindElementToMarker'](_0x2d2b0f,_0x12aad3['markerName']),_0x3bec74&&(this['activeMarkers']['includes'](_0x12aad3['markerName'])?_0x1c9fc6['writer']['addClass']('ck-suggestion-marker--active',_0x2d2b0f):_0x1c9fc6['writer']['removeClass']('ck-suggestion-marker--active',_0x2d2b0f));for(const _0x20e3e2 of _0xebe359['model']['createRangeIn'](_0x12aad3['item'])['getItems']())_0x1c9fc6['consumable']['consume'](_0x20e3e2,_0x2e77a7['name']);_0x1c9fc6['consumable']['consume'](_0x12aad3['item'],_0x2e77a7['name']);}};_0xebe359['conversion']['for']('dataDowncast')['add'](_0x444b58=>{_0x444b58['on']('addMarker:suggestion:formatBlock',(_0x123674,_0x3568bf,_0x5a58b3)=>{_0x5a58b3['options']['showSuggestionHighlights']&&_0x59cbba({'showActiveMarkers':!0x1})(_0x123674,_0x3568bf,_0x5a58b3);},{'priority':'highest'});}),_0xebe359['conversion']['for']('dataDowncast')['add'](_0x13e98b=>{_0x13e98b['on']('addMarker:suggestion:attribute',(_0x1c5e7c,_0x286e2b,_0x3ad425)=>{_0x3ad425['options']['showSuggestionHighlights']&&_0x59cbba({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c5e7c,_0x286e2b,_0x3ad425);},{'priority':'highest'});}),_0xebe359['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3d2335,_0x203f80)=>_0x203f80['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3d2335['substr'](0xb)}}),_0xebe359['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x503b2c,{writer:_0x16a6b7})=>{let _0x39c55d='suggestion:'+_0x503b2c['getAttribute']('suggestion-type')+':'+_0x503b2c['getAttribute']('id');return _0x503b2c['getAttribute']('marker-count')&&(_0x39c55d+=':'+_0x503b2c['getAttribute']('marker-count')),_0x16a6b7['createElement']('$marker',{'data-name':_0x39c55d});}}),_0xebe359['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x863424=>{_0x863424['on']('addMarker:suggestion:formatBlock',_0x59cbba(),{'priority':'high'});}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x564867=>{_0x564867['on']('addMarker:suggestion:attribute',_0x59cbba({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x139b9c=>{_0x139b9c['on']('removeMarker:suggestion:formatBlock',(_0x41c357,_0x3e6eb2,_0x105f64)=>{const _0x135b71=_0x105f64['mapper']['markerNameToElements'](_0x3e6eb2['markerName']);if(_0x135b71){for(const _0x401ccd of _0x135b71)_0x401ccd['getCustomProperty']('addHighlight')||(_0x105f64['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x401ccd),_0x105f64['writer']['removeAttribute']('data-suggestion',_0x401ccd),_0x105f64['writer']['removeAttribute']('data-author-id',_0x401ccd),_0x105f64['mapper']['unbindElementFromMarkerName'](_0x401ccd,_0x3e6eb2['markerName']));}},{'priority':'high'});}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x22a8d7=>{_0x22a8d7['on']('removeMarker:suggestion:attribute',(_0x2525cd,_0x3cacb5,_0xfb3f5d)=>{const _0x3f9281=_0xfb3f5d['mapper']['markerNameToElements'](_0x3cacb5['markerName']);if(!_0x3f9281)return;const {id:_0x402877}=this['_splitMarkerName'](_0x3cacb5['markerName']),_0x5aeb77=this['_suggestions']['get'](_0x402877),_0xdc21b4=this['_getAttributeKey'](_0x5aeb77);if(this['_isBlockAttribute'](_0xdc21b4)){for(const _0x47d41c of _0x3f9281)_0x47d41c['getCustomProperty']('addHighlight')||(_0xfb3f5d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x47d41c),_0xfb3f5d['writer']['removeAttribute']('data-suggestion',_0x47d41c),_0xfb3f5d['writer']['removeAttribute']('data-author-id',_0x47d41c),_0xfb3f5d['mapper']['unbindElementFromMarkerName'](_0x47d41c,_0x3cacb5['markerName']));}},{'priority':'high'});}),_0xebe359['model']['document']['registerPostFixer'](_0x2db891=>{let _0x41ad4a=!0x1;const _0x2302e6=Array['from'](_0xebe359['model']['document']['differ']['getChangedMarkers']()),_0x6f3edf=new Set();for(const {name:_0x656fde,data:_0x4de887}of _0x2302e6){const {group:_0x49a9f2,type:_0x211773,subType:_0x35fe55,id:_0x59c90d}=this['_splitMarkerName'](_0x656fde);if('suggestion'!==_0x49a9f2)continue;const _0x54a47e=this['_suggestions']['get'](_0x59c90d);if(null!=_0x4de887['newRange']){'formatInline'==_0x211773&&(_0x41ad4a=_0x41ad4a||Ut(_0x4de887['newRange'],_0x656fde,_0x2db891,_0xebe359['model']['schema']));const _0x11734f='attribute'==_0x211773&&this['_isBlockAttribute'](_0x35fe55['split']('|')[0x0]);if(_0x4de887['newRange']['isCollapsed']||'$graveyard'==_0x4de887['newRange']['root']['rootName']||'formatBlock'==_0x211773&&!Ft(_0x4de887['newRange'])||_0x11734f&&!Ft(_0x4de887['newRange'])||'deletion'==_0x211773&&!(!Vt(_0x2e1234=_0x4de887['newRange'])&&!function(_0x38a760){return _0x38a760['start']['parent']==_0x38a760['end']['nodeBefore']&&_0x38a760['start']['isAtEnd'];}(_0x2e1234)))_0x2db891['removeMarker'](_0x656fde),_0x41ad4a=!0x0;else{if(!_0x54a47e||!_0x54a47e['isInContent'])continue;if(_0x4de887['newRange']&&_0x4de887['oldRange']&&_0x4de887['newRange']['isEqual'](_0x4de887['oldRange']))continue;_0x6f3edf['add'](_0x54a47e);}}}var _0x2e1234;return _0x6f3edf['size']>0x0&&(_0x41ad4a=!!this['_joinWithAdjacentSuggestions'](_0x6f3edf)||_0x41ad4a),_0x41ad4a;}),_0xebe359['model']['document']['registerPostFixer'](_0x81cb48=>{let _0x40daa3=!0x1;for(const _0x291ed3 of _0xebe359['model']['document']['differ']['getChanges']())if('insert'==_0x291ed3['type'])for(const _0x4696fa of this['_suggestions']['values']()){if(_0x4696fa['isMultiRange']||!_0x4696fa['isInContent'])continue;const _0x8bf7f6='formatBlock'==_0x4696fa['type'],_0x2d7aaf=this['_getAttributeKey'](_0x4696fa),_0x51e8c1=_0x2d7aaf&&this['_isBlockAttribute'](_0x2d7aaf);if(!_0x8bf7f6&&!_0x51e8c1)continue;const _0xc900eb=_0x4696fa['getFirstRange']();if(_0xc900eb['start']['parent']!=_0xc900eb['end']['parent']&&!_0xc900eb['end']['isAtEnd']){const _0x23ba97=_0xebe359['model']['createPositionAt'](_0xc900eb['start']['nodeAfter'],'end'),_0x2d9748=_0xebe359['model']['createRange'](_0xc900eb['start'],_0x23ba97);_0x81cb48['updateMarker'](_0x4696fa['getFirstMarker'](),{'range':_0x2d9748}),_0x40daa3=!0x0;}}return _0x40daa3;}),_0xebe359['model']['document']['registerPostFixer'](_0x2a105c=>this['_processAttributeChanges'](_0x2a105c)),_0xebe359['model']['document']['registerPostFixer'](_0x23008e=>!_0x23008e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x23008e)),_0xebe359['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xebe359['model']['document']['on']('change:data',(_0x1a6ffc,_0x1d636e)=>{if(!_0x1d636e['isLocal']||_0x1d636e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5a986d=_0xebe359['model']['document']['differ']['getChanges']();if(0x0==_0x5a986d['length'])return;const _0x4937e0=[],_0x47fbf3=_0x5a986d['filter'](_0x3355f2=>'attribute'==_0x3355f2['type']),_0xfbae8b=_0x5a986d['filter'](_0x5d443b=>'insert'==_0x5d443b['type']&&'$text'!=_0x5d443b['name']);for(const _0x31fb0e of _0x47fbf3)this['_isRegisteredAttribute'](_0x31fb0e['attributeKey'])&&_0x4937e0['push']({'key':_0x31fb0e['attributeKey'],'newValue':_0x31fb0e['attributeNewValue'],'oldValue':_0x31fb0e['attributeOldValue'],'range':Pt(_0x31fb0e['range'],_0xebe359['model'])});for(const _0x172efc of _0xfbae8b){if('rename'!=_0x172efc['action']&&'refresh'!=_0x172efc['action'])continue;const _0x219400=Lt(_0x172efc['position']['nodeAfter'],_0xebe359['model']),_0x252833=_0x172efc['before'];'rename'==_0x172efc['action']&&_0x4937e0['push']({'key':m,'newValue':_0x172efc['name'],'oldValue':_0x252833['name'],'range':_0x219400});for(const [_0x4dd8f8,_0x2a6190]of _0x252833['attributes']){if(!this['_isRegisteredAttribute'](_0x4dd8f8))continue;const _0xd1e80b=_0x172efc['attributes']['get'](_0x4dd8f8);_0x2a6190!==_0xd1e80b&&_0x4937e0['push']({'key':_0x4dd8f8,'newValue':_0xd1e80b,'oldValue':_0x2a6190,'range':_0x219400});}for(const [_0x2ddf2f,_0x577f37]of _0x172efc['attributes'])this['_isRegisteredAttribute'](_0x2ddf2f)&&(_0x252833['attributes']['has'](_0x2ddf2f)||_0x4937e0['push']({'key':_0x2ddf2f,'newValue':_0x577f37,'oldValue':null,'range':_0x219400}));}0x0!=_0x4937e0['length']&&_0xebe359['model']['enqueueChange'](_0x1d636e,_0x1e6bf7=>{const _0x54137b=_0x5042b();for(const {range:_0x51e016,key:_0x4a9148,oldValue:_0x10d6cc,newValue:_0x24e5ef}of _0x4937e0)this['markAttributeChange'](_0x51e016,_0x4a9148,_0x10d6cc,_0x24e5ef,{'groupId':_0x54137b});this['_reduceExistingSuggestions'](_0x1e6bf7,_0x4937e0);});},{'priority':'lowest'}),_0xebe359['model']['markers']['on']('update:suggestion',(_0x42cbc4,_0x38901a,_0x4083e5)=>{if(null==_0x4083e5){const {id:_0x27e4c4}=this['_splitMarkerName'](_0x38901a['name']),_0x1ab6a5=this['_suggestions']['get'](_0x27e4c4);_0x1ab6a5&&_0x1ab6a5['addMarkerName'](_0x38901a['name']);}}),_0xebe359['model']['document']['on']('change:data',()=>{const _0x4a8fc4=Array['from'](_0xebe359['model']['document']['differ']['getChangedMarkers']())['filter'](_0x525f27=>'suggestion'===this['_splitMarkerName'](_0x525f27['name'])['group']);if(0x0===_0x4a8fc4['length'])return;_0x4a8fc4['sort']((_0x589df9,_0x278000)=>{const _0x50436e=_0x589df9['data']['oldRange'],_0x3c8a9d=_0x278000['data']['oldRange'];return null===_0x50436e&&null===_0x3c8a9d?0x0:null===_0x50436e&&null!==_0x3c8a9d?-0x1:null!==_0x50436e&&null===_0x3c8a9d?0x1:_0x50436e['start']['isBefore'](_0x3c8a9d['start'])?-0x1:0x1;});const _0x39ba2a=new Set(),_0x6468a6=new Set();for(const {name:_0x607504,data:_0x3716a8}of _0x4a8fc4){const {id:_0x14fb90}=this['_splitMarkerName'](_0x607504);if(null===_0x3716a8['oldRange']){const _0x4fa4cb=this['_handleNewSuggestionMarker'](_0x607504);_0x6468a6['add'](_0x4fa4cb);}else{const _0x3e5718=this['_suggestions']['get'](_0x14fb90);null!==_0x3716a8['newRange']||_0x3e5718['isInContent']?(_0x39ba2a['add'](_0x3e5718['head']),_0x6468a6['add'](_0x3e5718)):this['_removeSuggestion'](_0x3e5718);}}_0x6468a6['size']>0x0&&this['_refreshSuggestionsChain'](_0x6468a6);for(const _0x473878 of _0x39ba2a)this['fire']('suggestionChanged',_0x473878);}),_0xebe359['model']['on']('applyOperation',(_0x2bf7ef,_0x1369b5)=>{const _0x421f65=_0x1369b5[0x0];if(!this['_suggestions']['size'])return;if(!_0x421f65['isDocumentOperation'])return;if(_0x421f65['batch']['isUndo']||!_0x421f65['batch']['isLocal'])return;let _0x3bb7d2,_0x31a17c;switch(_0x421f65['type']){case'insert':_0x3bb7d2=_0xebe359['model']['createPositionAt'](_0x421f65['position']),_0x31a17c=_0x3bb7d2['getShiftedBy'](_0x421f65['howMany']);break;case'split':_0x3bb7d2=_0xebe359['model']['createPositionAt'](_0x421f65['splitPosition']),_0x31a17c=_0xebe359['model']['createPositionAt'](_0x421f65['moveTargetPosition']);break;case'move':_0x3bb7d2=_0xebe359['model']['createPositionAt'](_0x421f65['targetPosition']),_0x31a17c=_0x3bb7d2['getShiftedBy'](_0x421f65['howMany']);break;default:return;}const _0x2cc68c=_0xebe359['model']['createRange'](_0x3bb7d2,_0x31a17c);_0xebe359['model']['change'](()=>{for(const {suggestion:_0x24fdb4,meta:_0x39e52e}of this['_findSuggestions'](_0x2cc68c)){if(_0x24fdb4['isMultiRange'])continue;if('formatInline'==_0x24fdb4['type'])continue;const _0x2fa914=this['_getAttributeKey'](_0x24fdb4);if(_0x2fa914&&this['_isBlockAttribute'](_0x2fa914)&&'split'!=_0x421f65['type'])continue;const _0x1eb450=_0x24fdb4['data']&&_0x24fdb4['data']['multipleBlocks'];('formatBlock'!=_0x24fdb4['type']||'split'==_0x421f65['type']&&!_0x1eb450)&&(_0x39e52e['containsRangeInObject']||'insertion'==_0x24fdb4['type']&&_0x39e52e['isOwn']||_0x24fdb4['getFirstRange']()['containsRange'](_0x2cc68c)&&this['_breakSuggestionMarker'](_0x24fdb4,_0x3bb7d2,_0x31a17c));}});},{'priority':'lowest'}),_0xebe359['model']['on']('deleteContent',(_0x1fc84a,_0x2f1fa9)=>{const _0x4a01b1=_0x2f1fa9[0x0],_0x270d96=_0x2f1fa9[0x1];if(_0x270d96&&_0x270d96['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4a01b1['isCollapsed'])return;const _0x92a1c2=_0xebe359['model']['schema'],{start:_0x4674a6,end:_0x52421b}=_0x4a01b1['getFirstRange'](),_0x2f180d=_0x4674a6['nodeAfter']&&_0x92a1c2['isLimit'](_0x4674a6['nodeAfter'])?null:_0x92a1c2['getNearestSelectionRange'](_0x4674a6,'forward'),_0x4a3dda=_0x52421b['nodeBefore']&&_0x92a1c2['isLimit'](_0x52421b['nodeBefore'])?null:_0x92a1c2['getNearestSelectionRange'](_0x52421b,'backward'),_0x2d049e=_0xebe359['model']['createRange'](_0x2f180d?_0x2f180d['start']:_0x4674a6,_0x4a3dda?_0x4a3dda['end']:_0x52421b);_0xebe359['model']['change'](_0x2890e4=>{this['markDeletion'](_0x2d049e);const _0x5bcee0=_0xebe359['model']['schema']['getNearestSelectionRange'](_0x2d049e['start']);_0x4a01b1['is']('documentSelection')?_0x2890e4['setSelection'](_0x5bcee0):_0x4a01b1['setTo'](_0x5bcee0);}),_0x1fc84a['stop']();},{'priority':_0x1bc495['normal']+0xa}),_0xebe359['model']['on']('insertContent',(_0x125ba1,_0x5f5d31)=>{const _0x5b3e2f=_0x5f5d31[_0x5f5d31['length']-0x1];_0x5b3e2f&&_0x5b3e2f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xebe359['model']['change'](()=>{let _0x5f576c=_0xebe359['model']['insertContent'](_0x5f5d31[0x0],_0x5f5d31[0x1],_0x5f5d31[0x2],{'forceDefaultExecution':!0x0});if(!_0x5f576c)return;_0x125ba1['return']=_0x5f576c['clone']();const _0x53c7f2=_0x5f576c['end']['nodeBefore'],_0x14f3ab=_0xebe359['model']['schema'];_0x53c7f2&&_0x14f3ab['isBlock'](_0x53c7f2)&&!_0x14f3ab['isObject'](_0x53c7f2)&&(_0x5f576c=_0xebe359['model']['createRange'](_0x5f576c['start'],_0xebe359['model']['createPositionAt'](_0x53c7f2,'end'))),this['markInsertion'](_0x5f576c);}),_0x125ba1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x21b264=new x(_0xebe359,this['_suggestions']);_0xebe359['commands']['add']('acceptSuggestion',_0x21b264),this['enableCommand']('acceptSuggestion');const _0x5a1171=new R(_0xebe359,this['_suggestions']);_0xebe359['commands']['add']('discardSuggestion',_0x5a1171),this['enableCommand']('discardSuggestion'),_0xebe359['commands']['add']('acceptAllSuggestions',new E(_0xebe359,_0x21b264,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xebe359['commands']['add']('discardAllSuggestions',new E(_0xebe359,_0x5a1171,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xebe359['commands']['add']('acceptSelectedSuggestions',new O(_0xebe359,_0x21b264,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xebe359['commands']['add']('discardSelectedSuggestions',new O(_0xebe359,_0x5a1171,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x39889c=_0xebe359['plugins']['get']('CommentsRepository');this['listenTo'](_0x39889c,'addComment',(_0x5a28f3,{threadId:_0x1b112d})=>{const _0x490a1c=this['_suggestions']['get'](_0x1b112d);_0x490a1c&&_0x490a1c['commentThread']&&0x1===_0x490a1c['commentThread']['length']&&this['_updateSuggestionData'](_0x1b112d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x39889c,'removeComment',(_0x227b5f,{threadId:_0x7a6b8f})=>{const _0xffc779=this['_suggestions']['get'](_0x7a6b8f);_0xffc779&&_0xffc779['commentThread']&&!_0xffc779['commentThread']['length']&&this['_updateSuggestionData'](_0x7a6b8f,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5cd567){if(this['_adapter'])throw new _0x36031a('track-changes-adapter-already-set',this);this['_adapter']=_0x5cd567;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x293bc4=!0x1,toJSON:_0x39d159=!0x1}={}){const _0x3e961f=[];for(const _0x480905 of this['_suggestions']['values']())_0x293bc4&&!_0x480905['isInContent']||_0x3e961f['push'](_0x480905);return _0x39d159?_0x3e961f['map'](_0xb97c94=>_0xb97c94['toJSON']()):_0x3e961f;}['getSuggestion'](_0x1cada5){const _0x960f50=this['_suggestions']['get'](_0x1cada5);if(!_0x960f50)throw new _0x36031a('track-changes-suggestion-not-found',this);return _0x960f50;}['hasSuggestion'](_0x34a844){return this['_suggestions']['has'](_0x34a844);}['addSuggestionData'](_0x2398f3){const {authorId:_0x53fb12,id:_0x3ad7ed,attributes:_0x5b0fe5}=_0x2398f3,[_0x481f12,_0x4774db]=_0x2398f3['type']['split'](':'),_0x3b7710=this['_suggestions']['get'](_0x3ad7ed)||this['_createSuggestion'](_0x481f12,_0x4774db,_0x3ad7ed,_0x53fb12,_0x5b0fe5);if(this['_addThreadToSuggestion'](_0x3b7710),this['_checkSuggestionCorrectness'](_0x3b7710,_0x481f12,_0x4774db||null,_0x53fb12),_0x3b7710['createdAt']=_0x2398f3['createdAt'],_0x3b7710['_isDataLoaded']=!0x0,_0x5b0fe5&&_0x5b0fe5['@external']){const _0xf06d53=_0x5b0fe5['@external'],_0x51986e=this['_getExternalAuthor'](_0xf06d53['authorName']);_0x3b7710['authoredAt']=_0xf06d53['createdAt'],_0x3b7710['author']=_0x51986e,_0x3b7710['isExternal']=!0x0;}else _0x3b7710['authoredAt']=_0x2398f3['createdAt'];switch(_0x2398f3['data']&&(_0x3b7710['data']=_0x2398f3['data']),_0x2398f3['attributes']&&(_0x3b7710['attributes']=_0x2398f3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3b7710['_saved']=!0x0),this['_suggestionState']['get'](_0x3b7710)){case'notReady':this['_suggestionState']['set'](_0x3b7710,'dataReady');break;case'markerReady':_0x3b7710['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3b7710])),this['_refreshSuggestionsChain'](new Set([_0x3b7710])),this['_suggestionState']['set'](_0x3b7710,'ready'),this['fire']('suggestionLoaded',_0x3b7710)):this['_suggestionState']['set'](_0x3b7710,'removed');}return _0x3b7710;}['acceptSuggestion'](_0x5cbdc6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2122d7 of _0x5cbdc6['getAllAdjacentSuggestions']())_0x2122d7['accept']();});});}['discardSuggestion'](_0x27bfcd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1914e2 of _0x27bfcd['getAllAdjacentSuggestions']())_0x1914e2['discard']();});});}['enableCommand'](_0x18fc86,_0x2f9fe9){const _0x5ea21a=this['editor']['commands']['get'](_0x18fc86);if(!_0x5ea21a)throw new _0x36031a('track-changes-command-not-found',this,{'commandName':_0x18fc86});if(this['_enabledCommands']['has'](_0x5ea21a))throw new _0x36031a('track-changes-enable-command-twice',this,{'commandName':_0x18fc86});this['_enabledCommands']['add'](_0x5ea21a),_0x2f9fe9&&_0x5ea21a['on']('execute',(_0x49299f,_0x220e78)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x220e78['length']>0x0&&_0x220e78[_0x220e78['length']-0x1]&&_0x220e78[_0x220e78['length']-0x1]['forceDefaultExecution']?_0x220e78['pop']():(_0x49299f['return']=_0x2f9fe9((..._0x10b149)=>_0x5ea21a['execute'](..._0x10b149,{'forceDefaultExecution':!0x0}),..._0x220e78),_0x49299f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x56d211){let _0x5be5ff,_0xd3f6e0;const _0x3b7f46=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5be5ff=_0x56d211();}catch(_0xc6672e){_0xd3f6e0=_0xc6672e;}return _0x3b7f46||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xd3f6e0&&_0x36031a['rethrowUnexpectedError'](_0xd3f6e0,this),_0x5be5ff;}['markInsertion'](_0x4ef85d,_0x57552a=null,_0x25aff2={}){if(_0x4ef85d['isCollapsed'])return null;const _0x13d540=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x48f590,meta:_0x3a4d74}of this['_findSuggestions'](_0x4ef85d,'insertion'))if(_0x3a4d74['isOwn']){if(!_0x3a4d74['isNextTo']){if(_0x3a4d74['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x48f590,_0x25aff2))continue;return _0x48f590;}if(qt(_0x48f590,_0x25aff2))return _0x48f590;this['_breakSuggestionMarker'](_0x48f590,_0x4ef85d['start'],_0x4ef85d['end']);break;}if(_0x57552a==_0x48f590['subType']&&qt(_0x48f590,_0x25aff2)){const _0x19744e=_0x48f590['getFirstRange']();return _0x19744e['start']['isEqual'](_0x4ef85d['end'])?this['_setSuggestionRange'](_0x48f590,this['_model']['createRange'](_0x4ef85d['start'],_0x19744e['end'])):this['_setSuggestionRange'](_0x48f590,this['_model']['createRange'](_0x19744e['start'],_0x4ef85d['end'])),_0x48f590;}}const _0x433e8e=_0x5042b(),_0x558230=_0x13d540['id'],_0x119118=_0x57552a?'insertion:'+_0x57552a:'insertion',_0x37d9ca=this['_setSuggestionData']({'id':_0x433e8e,'type':_0x119118,'createdAt':new Date(),'authorId':_0x558230,'attributes':_0x25aff2});return this['_addSuggestionMarker'](_0x119118,_0x433e8e,_0x558230,_0x4ef85d),_0x37d9ca;}['markMultiRangeInsertion'](_0x4e6759,_0x14679c='multi',_0x5d54f4={}){const _0x6e552c=this['editor']['plugins']['get']('Users')['me'],_0x23316a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x14679c,'join');for(const _0x22956b of this['getSuggestions']())if(_0x22956b['author']['id']==_0x6e552c['id']&&'insertion'==_0x22956b['type']&&_0x22956b['subType']==_0x14679c&&qt(_0x22956b,_0x5d54f4)&&(_0x23316a(_0x22956b['getRanges'](),_0x4e6759)||_0x23316a(_0x4e6759,_0x22956b['getRanges']()))){for(const _0x3e43a9 of _0x4e6759)_0x22956b['addRange'](_0x3e43a9);return _0x22956b;}for(const {suggestion:_0x587215,meta:_0x5768d2}of this['_findSuggestions'](_0x4e6759,'insertion')){if(!_0x5768d2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5768d2['containsRangeInObject'])continue;if(!qt(_0x587215,_0x5d54f4))continue;let _0x571922=!0x0;for(const _0x4e0948 of _0x587215['getRanges']())for(const _0x27b041 of _0x4e6759)if(!_0x4e0948['containsRange'](_0x27b041)){_0x571922=!0x1;break;}if(_0x571922)return _0x587215;}const _0x4f2f1=_0x5042b(),_0x2aaac4=_0x6e552c['id'],_0x4fc278='insertion:'+_0x14679c,_0x215fc8=this['_setSuggestionData']({'id':_0x4f2f1,'type':_0x4fc278,'createdAt':new Date(),'authorId':_0x2aaac4,'attributes':_0x5d54f4});for(const _0x20c46e of _0x4e6759)this['_addSuggestionMarker'](_0x4fc278,_0x4f2f1,_0x2aaac4,_0x20c46e,u['getMultiRangeId']());return _0x215fc8;}['markInlineFormat'](_0x542c80,_0x4989,_0x37b9e2=null,_0x41de5d={}){if(_0x37b9e2=_0x37b9e2||Gt(_0x4989),_0x542c80['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x31d328=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37b9e2,'accept');return this['forceDefaultExecution'](()=>_0x31d328([_0x542c80],_0x4989,_0x41de5d)),null;}const _0xddafea=this['editor']['plugins']['get']('Users')['me'],_0x26c85a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1a5bff,meta:_0x5acb40}of this['_findSuggestions'](_0x542c80,'insertion'))_0x5acb40['isOwn']&&!_0x5acb40['isInsideObject']&&_0x26c85a['push'](..._0x1a5bff['getRanges']());}const _0x5cf52d=function(_0xfa430d,_0x5094ac){const _0x1b904c=[];for(const _0x2adb62 of _0x5094ac){const _0x5e9778=_0xfa430d['getIntersection'](_0x2adb62);_0x5e9778&&_0x1b904c['push'](_0x5e9778);}return _0x1b904c;}(_0x542c80,_0x26c85a),_0x4bd817=function(_0x572f83,_0x51dd41){const _0xf22701=[_0x572f83];for(const _0x3a2abf of _0x51dd41){let _0x9e657b=0x0;for(;_0x9e657b<_0xf22701['length'];){const _0x7bd04f=_0xf22701[_0x9e657b]['getDifference'](_0x3a2abf);_0xf22701['splice'](_0x9e657b,0x1,..._0x7bd04f),_0x9e657b+=_0x7bd04f['length'];}}return _0xf22701;}(_0x542c80,_0x26c85a);_0x5cf52d['length']&&this['_model']['change'](()=>{for(const _0x1238f6 of _0x5cf52d){const _0x497b24=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37b9e2,'accept');this['forceDefaultExecution'](()=>_0x497b24([_0x1238f6],_0x4989,_0x41de5d));}});for(const _0x33624e of _0x4bd817){let _0xbcfe95=null,_0x561f9a=_0x33624e['start'],_0x667d4c=_0x33624e['end'];for(const {suggestion:_0x2c23ad,meta:_0x35587a}of this['_findSuggestions'](_0x33624e,'formatInline')){if(!_0x35587a['isOwn'])continue;if(_0x2c23ad['subType']!=_0x37b9e2)continue;if(!qt(_0x2c23ad,_0x41de5d))continue;const _0x18ed44=_0x2c23ad['getFirstRange']();if(_0x18ed44['containsRange'](_0x33624e,!0x0))return null;_0x561f9a=_0x561f9a['isBefore'](_0x18ed44['start'])?_0x561f9a:_0x18ed44['start'],_0x667d4c=_0x667d4c['isAfter'](_0x18ed44['end'])?_0x667d4c:_0x18ed44['end'],_0xbcfe95?_0x18ed44['start']['isBefore'](_0xbcfe95['getFirstRange']()['start'])?(_0xbcfe95['removeMarkers'](),_0xbcfe95=_0x2c23ad):_0x2c23ad['removeMarkers']():_0xbcfe95=_0x2c23ad;}const _0x1f9224=this['_model']['createRange'](_0x561f9a,_0x667d4c);if(_0xbcfe95)this['_setSuggestionRange'](_0xbcfe95,_0x1f9224);else{const _0x2b6f59=_0x5042b(),_0x12dcfa=_0xddafea['id'];this['_setSuggestionData']({'id':_0x2b6f59,'type':'formatInline:'+_0x37b9e2,'data':_0x4989,'createdAt':new Date(),'authorId':_0x12dcfa,'attributes':_0x41de5d}),this['_addSuggestionMarker']('formatInline:'+_0x37b9e2,_0x2b6f59,_0x12dcfa,_0x1f9224);}}return null;}['markBlockFormat'](_0x4d3f3b,_0x45f82e,_0xa0f105=[],_0x10a6af=null,_0x156106={}){_0x45f82e['formatGroupId']||(_0x45f82e['formatGroupId']=_0x45f82e['commandName']),_0x45f82e['multipleBlocks']=_0x4d3f3b['is']('range'),_0x10a6af=_0x10a6af||Gt(_0x45f82e);const _0x42c059=_0xa0f105['map'](_0x80d9ae=>Lt(_0x80d9ae,this['_model'])),_0x17e42e=_0x4d3f3b['is']('range')?_0x4d3f3b:Lt(_0x4d3f3b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x256aa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10a6af,'accept');return this['forceDefaultExecution'](()=>_0x256aa1([_0x17e42e],_0x45f82e,_0x156106)),null;}_0x42c059['push'](_0x17e42e);let _0x5f36d4=!0x0;for(const _0x3e321a of _0x42c059)if(!this['_rangeIsInLocalUserInsertion'](_0x3e321a)){_0x5f36d4=!0x1;break;}if(_0x5f36d4&&'always'!==this['_trackFormatChanges']){const _0x4b273d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10a6af,'accept');return this['forceDefaultExecution'](()=>_0x4b273d([_0x17e42e],_0x45f82e,_0x156106)),null;}let _0x333001=null,_0x5ec54e=_0x17e42e['start'],_0x346c7d=_0x17e42e['end'];for(const {suggestion:_0x49dda2,meta:_0x105d2e}of this['_findSuggestions'](_0x17e42e,'formatBlock')){if(!_0x105d2e['isOwn'])continue;if(_0x105d2e['isNextTo']||_0x105d2e['containsRangeInObject']||_0x105d2e['isInsideObject'])continue;if(_0x49dda2['data']['formatGroupId']!=_0x45f82e['formatGroupId'])continue;if(!qt(_0x49dda2,_0x156106))continue;const _0x11433a=_0x49dda2['getFirstRange']();if(_0x49dda2['subType']==_0x10a6af){if(_0x11433a['containsRange'](_0x17e42e,!0x0))return null;_0x5ec54e=_0x5ec54e['isBefore'](_0x11433a['start'])?_0x5ec54e:_0x11433a['start'],_0x346c7d=_0x346c7d['isAfter'](_0x11433a['end'])?_0x346c7d:_0x11433a['end'],_0x333001?_0x11433a['start']['isBefore'](_0x333001['getFirstRange']()['start'])?(_0x333001['removeMarkers'](),_0x333001=_0x49dda2):_0x49dda2['removeMarkers']():_0x333001=_0x49dda2;}else{const _0x5336cc=_0x17e42e['getIntersection'](_0x11433a);this['_cutOutSuggestionMarker'](_0x49dda2,_0x5336cc);}}const _0x2c524f=this['editor']['plugins']['get']('Users')['me'],_0x165a9e=_0x5042b(),_0x3c82ee=_0x2c524f['id'];if(_0x333001)return this['_setSuggestionRange'](_0x333001,this['_model']['createRange'](_0x5ec54e,_0x346c7d)),_0x333001;{const _0x31fde1=this['_setSuggestionData']({'id':_0x165a9e,'type':'formatBlock:'+_0x10a6af,'data':_0x45f82e,'createdAt':new Date(),'authorId':_0x3c82ee,'attributes':_0x156106});return this['_addSuggestionMarker']('formatBlock:'+_0x10a6af,_0x165a9e,_0x3c82ee,this['_model']['createRange'](_0x5ec54e,_0x346c7d)),_0x31fde1;}}['markMultiRangeBlockFormat'](_0x4e3de7,_0x1bb028,_0x3b3ea9=[],_0x11c064=null,_0x5255fc={}){_0x1bb028['formatGroupId']||(_0x1bb028['formatGroupId']=_0x1bb028['commandName']);const _0x3eed62=_0x4e3de7[0x0];_0x1bb028['multipleBlocks']=_0x3eed62['is']('range'),_0x11c064=_0x11c064||Gt(_0x1bb028);const _0x29cd31=_0x3b3ea9['map'](_0x5c907f=>Lt(_0x5c907f,this['_model'])),_0x2bbd5e=_0x3eed62['is']('range')?_0x4e3de7:_0x4e3de7['map'](_0x14baa4=>Lt(_0x14baa4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x12ef7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c064,'accept');return this['forceDefaultExecution'](()=>_0x12ef7f(_0x2bbd5e,_0x1bb028,_0x5255fc)),null;}_0x29cd31['push'](..._0x2bbd5e);let _0x2cca5d=!0x0;for(const _0x451fbc of _0x29cd31)if(!this['_rangeIsInLocalUserInsertion'](_0x451fbc)){_0x2cca5d=!0x1;break;}if(_0x2cca5d&&'always'!==this['_trackFormatChanges']){const _0x1ae6c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c064,'accept');return this['forceDefaultExecution'](()=>_0x1ae6c1(_0x2bbd5e,_0x1bb028,_0x5255fc)),null;}const _0x227a36=this['editor']['plugins']['get']('Users')['me'];for(const _0x49ed18 of this['getSuggestions']()){if(_0x49ed18['author']['id']!=_0x227a36['id'])continue;if('formatBlock'!=_0x49ed18['type']||_0x49ed18['data']['formatGroupId']!=_0x1bb028['formatGroupId'])continue;if(!qt(_0x49ed18,_0x5255fc))continue;const _0x3d3709=_0x49ed18['subType']==_0x11c064;for(let _0x254f4a=0x0;_0x254f4a<_0x2bbd5e['length'];_0x254f4a++){const _0x2a0323=_0x2bbd5e[_0x254f4a];for(const _0x18fbff of _0x49ed18['getMarkers']()){const _0x5b3869=_0x18fbff['getRange']();if(_0x2a0323['isEqual'](_0x5b3869)){_0x3d3709?(_0x2bbd5e['splice'](_0x254f4a,0x1),_0x254f4a--):_0x49ed18['removeMarker'](_0x18fbff['name']);break;}}}}if(0x0==_0x2bbd5e['length'])return null;const _0x34a2d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c064,'join');for(const _0x1307d0 of this['getSuggestions']())if(_0x1307d0['author']['id']==_0x227a36['id']&&'formatBlock'==_0x1307d0['type']&&_0x1307d0['data']['formatGroupId']==_0x1bb028['formatGroupId']&&_0x1307d0['subType']==_0x11c064&&qt(_0x1307d0,_0x5255fc)&&(_0x34a2d0(_0x1307d0['getRanges'](),_0x2bbd5e)||_0x34a2d0(_0x2bbd5e,_0x1307d0['getRanges']()))){for(const _0x1024cd of _0x2bbd5e)_0x1307d0['addRange'](_0x1024cd);return _0x1307d0;}const _0x5cac06=_0x5042b(),_0x4d2dc9=_0x227a36['id'],_0x1300fc='formatBlock:'+_0x11c064,_0x5ea1ed=this['_setSuggestionData']({'id':_0x5cac06,'type':_0x1300fc,'data':_0x1bb028,'createdAt':new Date(),'authorId':_0x4d2dc9,'attributes':_0x5255fc});for(const _0x166c74 of _0x2bbd5e)this['_addSuggestionMarker'](_0x1300fc,_0x5cac06,_0x4d2dc9,_0x166c74,u['getMultiRangeId']());return _0x5ea1ed;}['markDeletion'](_0x395f98,_0x251c91=null,_0x393562={}){if(_0x395f98['isCollapsed'])return null;const _0xcdfcb7=this['editor']['plugins']['get']('Users')['me'],_0x800199=new _0x5018e8(_0x395f98['start'],_0x395f98['end']);for(const {suggestion:_0x3e2200,meta:_0x316b58}of this['_findSuggestions'](_0x800199,'insertion'))if(_0x316b58['isOwn']&&!_0x316b58['isNextTo']){if(_0x3e2200['isMultiRange']){const _0x25aa63=_0x3e2200['getRanges']()['filter'](_0x4aa220=>'$graveyard'!=_0x4aa220['root']['rootName']);_0x25aa63['every'](_0x415e8d=>_0x800199['containsRange'](_0x415e8d,!0x0))&&_0x3e2200['discard']();if(_0x25aa63['some'](_0x3188db=>_0x3188db['containsRange'](_0x800199,!0x0))){const _0xf5efd5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x251c91,'accept');return this['forceDefaultExecution'](()=>_0xf5efd5([_0x800199],null,_0x393562)),null;}}else{const _0x1ec014=_0x800199['getIntersection'](_0x3e2200['getFirstRange']());null!==_0x1ec014&&_0x3e2200['_onDiscard']([_0x1ec014],null,_0x393562);}}if(_0x800199['detach'](),_0x800199['isCollapsed']||'$graveyard'==_0x800199['root']['rootName'])return null;let _0x4731d1=null,_0xc43785=_0x800199['start'],_0x43d0d8=_0x800199['end'];const _0x3ffa15=this['_findSuggestions'](_0x800199,'deletion');for(const {suggestion:_0x55f2a2,meta:_0x20e5e0}of _0x3ffa15){const _0x48ac68=this['_model']['createRange'](_0xc43785,_0x43d0d8);if(_0x20e5e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20e5e0['containsRangeInObject']&&!_0x20e5e0['isInsideObject'])){if(_0x55f2a2['isMultiRange']){if(!qt(_0x55f2a2,_0x393562))continue;let _0x371fa2=!0x0;for(const _0x2d0e87 of _0x55f2a2['getRanges']()){if(_0x2d0e87['containsRange'](_0x48ac68,!0x0))return _0x55f2a2;_0x48ac68['containsRange'](_0x2d0e87)||(_0x371fa2=!0x1);}_0x371fa2&&_0x55f2a2['discard']();}else{const _0x1be415=_0x55f2a2['getFirstRange']();if(_0x1be415['containsRange'](_0x48ac68,!0x0))return _0x55f2a2;if(!qt(_0x55f2a2,_0x393562)){_0x48ac68['containsRange'](_0x1be415)?_0x55f2a2['removeMarkers']():_0x1be415['containsPosition'](_0xc43785)?_0xc43785=_0x1be415['end']:_0x1be415['containsPosition'](_0x43d0d8)&&(_0x43d0d8=_0x1be415['start']);continue;}_0xc43785=_0xc43785['isBefore'](_0x1be415['start'])?_0xc43785:_0x1be415['start'],_0x43d0d8=_0x43d0d8['isAfter'](_0x1be415['end'])?_0x43d0d8:_0x1be415['end'],_0x393562=Object['assign']({},_0x55f2a2['attributes']),_0x4731d1?_0x1be415['start']['isBefore'](_0x4731d1['getFirstRange']()['start'])?(_0x4731d1['removeMarkers'](),_0x4731d1=_0x55f2a2):_0x55f2a2['removeMarkers']():_0x4731d1=_0x55f2a2;}}}if(_0x4731d1)return this['_setSuggestionRange'](_0x4731d1,this['_model']['createRange'](_0xc43785,_0x43d0d8)),_0x4731d1;{const _0x42c819=_0x5042b(),_0x3a5e54=this['_model']['createRange'](_0xc43785,_0x43d0d8),_0x4ca17f=_0xcdfcb7['id'],_0x3bf807=_0x251c91?'deletion:'+_0x251c91:'deletion',_0x1c4ee6=this['_setSuggestionData']({'id':_0x42c819,'type':_0x3bf807,'createdAt':new Date(),'authorId':_0x4ca17f,'attributes':_0x393562});return this['_addSuggestionMarker'](_0x3bf807,_0x42c819,_0x4ca17f,_0x3a5e54),_0x1c4ee6;}}['markMultiRangeDeletion'](_0x530cd2,_0x15f4fd='multi',_0x4de30b={}){const _0x69c918=this['editor']['plugins']['get']('Users')['me'],_0x48055e=_0x530cd2['map'](_0x1fcb54=>new _0x5018e8(_0x1fcb54['start'],_0x1fcb54['end'])),_0x15d809=new Set();for(const {suggestion:_0x1fbc79,meta:_0x184108}of this['_findSuggestions'](_0x48055e,'insertion'))_0x184108['isOwn']&&!_0x184108['isNextTo']&&_0x15d809['add'](_0x1fbc79);for(const _0x116ec4 of _0x15d809)if(_0x116ec4['isMultiRange']){const _0x1c5ab5=_0x116ec4['getRanges']();(!_0x116ec4['attributes']||!_0x116ec4['attributes']['skipNestingCheck'])&&(_0x1c5ab5['every'](_0x5dfbd8=>_0x48055e['some'](_0x5dbf03=>_0x5dbf03['containsRange'](_0x5dfbd8,!0x0)))&&_0x116ec4['discard']());if(_0x48055e['every'](_0x1fa3c7=>_0x1c5ab5['some'](_0xfd4906=>_0xfd4906['containsRange'](_0x1fa3c7,!0x0)))){const _0x263d91=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f4fd,'accept');return this['forceDefaultExecution'](()=>_0x263d91(_0x530cd2,null,_0x4de30b)),null;}}else{const _0x409915=_0x116ec4['getFirstRange']();_0x48055e['some'](_0x2f51bf=>_0x2f51bf['containsRange'](_0x409915,!0x0))&&_0x116ec4['discard']();if(_0x48055e['every'](_0x22d7f0=>_0x409915['containsRange'](_0x22d7f0,!0x0))){const _0x120977=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f4fd,'accept');return this['forceDefaultExecution'](()=>_0x120977(_0x48055e,null,_0x4de30b)),null;}}const _0x2a8340=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f4fd,'join');let _0xcf7650=null;for(const _0x54dfe3 of this['getSuggestions']())if(_0x54dfe3['author']['id']==_0x69c918['id']&&_0x54dfe3['isInContent']&&'deletion'==_0x54dfe3['type']&&_0x54dfe3['subType']==_0x15f4fd&&qt(_0x54dfe3,_0x4de30b)&&(_0x2a8340(_0x54dfe3['getRanges'](),_0x48055e)||_0x2a8340(_0x48055e,_0x54dfe3['getRanges']()))){if(_0xcf7650){if(_0x54dfe3['commentThread']&&_0x54dfe3['commentThread']['length'])continue;for(const _0x1aacd9 of _0x54dfe3['getRanges']())_0xcf7650['isIntersectingWithRange'](_0x1aacd9)||_0xcf7650['addRange'](_0x1aacd9);_0x54dfe3['removeMarkers']();}else{_0xcf7650=_0x54dfe3;for(const _0x5db53a of _0x48055e)_0x54dfe3['isIntersectingWithRange'](_0x5db53a)||_0x54dfe3['addRange'](_0x5db53a);}}if(_0xcf7650)return _0xcf7650;_0x15d809['clear']();for(const {suggestion:_0xfb9615,meta:_0x9269fb}of this['_findSuggestions'](_0x48055e,'deletion'))_0x9269fb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9269fb['containsRangeInObject']&&!_0x9269fb['isInsideObject'])&&qt(_0xfb9615,_0x4de30b)&&_0x15d809['add'](_0xfb9615);for(const _0x21b924 of _0x15d809){const _0x9041bb=_0x21b924['getRanges']();if(!_0x4de30b||!_0x4de30b['skipNestingCheck']){if(_0x48055e['every'](_0x1e0538=>_0x9041bb['some'](_0x3f26a4=>_0x3f26a4['containsRange'](_0x1e0538,!0x0))))return _0x21b924;}(!_0x21b924['attributes']||!_0x21b924['attributes']['skipNestingCheck'])&&(_0x9041bb['every'](_0x4013aa=>_0x48055e['some'](_0x5c73fd=>_0x5c73fd['containsRange'](_0x4013aa,!0x0)))&&_0x21b924['discard']());}const _0x33b506=_0x5042b(),_0x9eccd6=_0x69c918['id'],_0x1edac='deletion:'+_0x15f4fd,_0x23cf42=this['_setSuggestionData']({'id':_0x33b506,'type':_0x1edac,'createdAt':new Date(),'authorId':_0x9eccd6,'attributes':_0x4de30b});for(const _0x3d720b of _0x48055e)_0x3d720b['detach'](),_0x3d720b['isCollapsed']||'$graveyard'==_0x3d720b['root']['rootName']||this['_addSuggestionMarker'](_0x1edac,_0x33b506,_0x9eccd6,_0x3d720b,u['getMultiRangeId']());return _0x23cf42;}['markAttributeChange'](_0x4c0c95,_0x50b4d8,_0x2d6196,_0x145023,_0x459bac){if(_0x4c0c95['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1ffa44=this['editor']['plugins']['get']('Users')['me']['id'],_0x29cda1=Array['from'](this['_suggestions']['values']())['filter'](_0x962b10=>'attribute'==_0x962b10['type']&&_0x962b10['data']['key']==_0x50b4d8&&_0x962b10['isIntersectingWithRange'](_0x4c0c95));if('default'===this['_trackFormatChanges']){const _0xa95900=this['_findSuggestions'](_0x4c0c95,'insertion')['filter'](({meta:_0x5db404})=>_0x5db404['isOwn']&&!_0x5db404['isInsideObject']&&!_0x5db404['isNextTo'])['map'](({suggestion:_0x812941})=>_0x812941);_0x29cda1['unshift'](..._0xa95900);}const _0x2ffe08=new Map([[_0x4c0c95,_0x2d6196]]);for(const _0x223f77 of _0x29cda1){const _0x1f2550='attribute'==_0x223f77['type']?_0x223f77['data']['oldValue']:void 0x0,_0x2f5528=_0x223f77['getFirstRange'](),_0x3dcbdd=Array['from'](_0x2ffe08['keys']())['find'](_0x521bfe=>_0x521bfe['isIntersecting'](_0x2f5528));if(!_0x3dcbdd)continue;const _0x1c4a5a=_0x3dcbdd['getDifference'](_0x2f5528);this['_isBlockAttribute'](_0x50b4d8)&&'insertion'==_0x223f77['type']&&0x0!=_0x1c4a5a['length']||(_0x2ffe08['delete'](_0x3dcbdd),_0x1c4a5a['forEach'](_0x44098a=>{_0x2ffe08['set'](_0x44098a,_0x2d6196);}),'insertion'!=_0x223f77['type']&&_0x1f2550!=_0x145023&&_0x2ffe08['set'](_0x3dcbdd['getIntersection'](_0x2f5528),_0x1f2550));}const _0x68c6d0=[];for(const [_0x17080e,_0x1458f4]of _0x2ffe08){const _0x49b081=_0x5042b(),_0x5580a7={'key':_0x50b4d8,'oldValue':_0x1458f4,'newValue':_0x145023};_0x50b4d8['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':_0x50b4d8});const _0x64f5ea=('attribute:'+(_0x50b4d8+'|'+Gt({'newValue':_0x145023})))['substring'](0x0,0x3c),_0x5c9f66=this['_setSuggestionData']({'id':_0x49b081,'type':_0x64f5ea,'data':_0x5580a7,'createdAt':new Date(),'authorId':_0x1ffa44,'attributes':_0x459bac});_0x68c6d0['push'](_0x5c9f66),this['_addSuggestionMarker'](_0x64f5ea,_0x49b081,_0x1ffa44,_0x17080e);}return _0x68c6d0;}['enableDefaultAttributesIntegration'](_0x276200){this['enableCommand'](_0x276200,(_0x16bdfd,..._0x2ba3d1)=>{this['_recordAttributeChanges'](()=>{_0x16bdfd(..._0x2ba3d1);});});}['registerBlockAttribute'](_0x2ccfe8){this['_blockAttributeKeys']['add'](_0x2ccfe8);}['registerInlineAttribute'](_0x324e6b){this['_inlineAttributeKeys']['add'](_0x324e6b);}['_getAttributeKey'](_0x105296){return'attribute'==_0x105296['type']?_0x105296['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d090f,_0x45fafb){const _0x18664f=_0x5d090f['getFirstMarker']();this['_model']['change'](_0x327b4e=>{_0x327b4e['updateMarker'](_0x18664f,{'range':_0x45fafb});});}['_addThreadToSuggestion'](_0x3b7446){const _0x268ea5=_0x3b7446['id'],_0x9f507c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x268ea5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x9f507c,'threadId':_0x268ea5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18b711=this['_commentsRepository']['getCommentThread'](_0x268ea5);_0x18b711['unbind']('isRemovable'),_0x18b711['isRemovable']=!0x1,_0x3b7446['commentThread']=_0x18b711;}['_checkSuggestionCorrectness'](_0x37bb75,_0x50c512,_0x42602d,_0x317b25){if(_0x37bb75['type']!=_0x50c512||_0x37bb75['subType']!=_0x42602d||_0x37bb75['creator']['id']!=_0x317b25)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x36031a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x33f522,_0x4b1a64){const _0x3e123a=_0x33f522['getFirstRange']();if(_0x4b1a64['isEqual'](_0x3e123a))_0x33f522['removeMarkers']();else{if(_0x3e123a['containsRange'](_0x4b1a64)){const _0x274045=this['_model']['createPositionAt'](_0x4b1a64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33f522,this['_model']['createRange'](_0x3e123a['start'],_0x274045));const _0x2202d1=_0x5042b(),_0x3a7b98=_0x33f522['creator']['id'],_0x274071=_0x33f522['type']+':'+_0x33f522['subType'];this['_setSuggestionData']({'id':_0x2202d1,'type':_0x274071,'createdAt':new Date(),'authorId':_0x3a7b98,'data':_0x33f522['data'],'attributes':_0x33f522['attributes']});const _0x1edaa2=this['_model']['createPositionAt'](_0x4b1a64['end']['parent'],'after'),_0x5aeb36=this['_model']['createRange'](_0x1edaa2,_0x3e123a['end']);this['_addSuggestionMarker'](_0x274071,_0x2202d1,_0x3a7b98,_0x5aeb36);}else{if(_0x3e123a['containsPosition'](_0x4b1a64['start'])){const _0x6a8b53=this['_model']['createPositionAt'](_0x4b1a64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33f522,this['_model']['createRange'](_0x3e123a['start'],_0x6a8b53));}else{const _0x112fcb=this['_model']['createPositionAt'](_0x4b1a64['end']['parent'],'after');this['_setSuggestionRange'](_0x33f522,this['_model']['createRange'](_0x112fcb,_0x3e123a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1570b8){for(const {suggestion:_0x467332,meta:_0x53eea9}of this['_findSuggestions'](_0x1570b8,'insertion')){if(!_0x53eea9['isOwn'])continue;const _0x1bbe84=_0x467332['getRanges']();for(const _0x2b98a0 of _0x1bbe84)if(!_0x1570b8['getDifference'](_0x2b98a0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x295e8d){const _0x231f39=this['editor']['plugins']['get']('Users')['getUser'](_0x295e8d);if(!_0x231f39)throw new _0x36031a('track-changes-user-not-found',this);return _0x231f39;}['_getExternalAuthor'](_0x1e4954){const _0x4631d0=this['editor']['plugins']['get']('Users'),_0x375136=_0x3d1af3('external:'+_0x1e4954),_0x340526=_0x4631d0['getUser'](_0x375136);return _0x340526||_0x4631d0['addUser']({'id':_0x375136,'name':_0x1e4954});}['_createSuggestion'](_0x599059,_0x491ad1,_0x86d743,_0x483290,_0x4ac091){const _0x389899=this['_getAuthorFromId'](_0x483290),_0xc1c55d=this['_suggestionFactory']['buildSuggestion'](_0x599059,_0x491ad1,_0x86d743,_0x389899,_0x4ac091,_0x792abe=>{this['_updateSuggestionData'](_0x86d743,{'attributes':_0x792abe});const _0x2b5afc=this['getSuggestion'](_0x86d743);this['_joinWithAdjacentSuggestions'](new Set([_0x2b5afc])),this['_refreshSuggestionsChain'](new Set([_0x2b5afc]));});return this['listenTo'](_0xc1c55d,'accept',()=>{this['_updateSuggestionData'](_0x86d743,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xc1c55d,'discard',()=>{this['_updateSuggestionData'](_0x86d743,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x86d743,_0xc1c55d),this['_suggestionState']['set'](_0xc1c55d,'notReady'),_0xc1c55d;}['_splitMarkerName'](_0x3236d1){const _0x53afe3=_0x3236d1['split'](':');return{'group':_0x53afe3[0x0],'type':_0x53afe3[0x1],'subType':_0x53afe3['length']>=0x5?_0x53afe3[0x2]:null,'id':_0x53afe3['length']<0x5?_0x53afe3[0x2]:_0x53afe3[0x3],'authorId':_0x53afe3['length']<0x5?_0x53afe3[0x3]:_0x53afe3[0x4],'markerCount':0x6==_0x53afe3['length']?_0x53afe3[0x5]:null};}['_breakSuggestionMarker'](_0x5e7612,_0x3a161a,_0x5aef91){const _0x5852a8=_0x5e7612['getFirstRange'](),_0x166db9=_0x5852a8['start'],_0x11e5ea=_0x5852a8['end'];this['_setSuggestionRange'](_0x5e7612,this['_model']['createRange'](_0x166db9,_0x3a161a));const _0x10faa2=_0x5042b(),_0x594481=_0x5e7612['creator']['id'],_0x23ca17=_0x5e7612['type']+(_0x5e7612['subType']?':'+_0x5e7612['subType']:'');this['_setSuggestionData']({'id':_0x10faa2,'type':_0x23ca17,'createdAt':new Date(),'authorId':_0x594481,'originalSuggestionId':_0x5e7612['id'],'attributes':_0x5e7612['attributes'],'data':_0x5e7612['data']});const _0x587754=this['_getAttributeKey'](_0x5e7612);('formatBlock'==_0x5e7612['type']||_0x587754&&this['_isBlockAttribute'](_0x587754))&&(_0x5aef91=this['_model']['createPositionBefore'](_0x5aef91['parent'])),this['_addSuggestionMarker'](_0x23ca17,_0x10faa2,_0x594481,this['_model']['createRange'](_0x5aef91,_0x11e5ea));}['_findSuggestions'](_0x227383,_0x4eb599=null){const _0x44ca9b=[],_0x494088=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x227383)||(_0x227383=[_0x227383]);for(const _0x2bf60f of this['getSuggestions']()){if(!_0x2bf60f['isInContent'])continue;if(_0x4eb599&&_0x2bf60f['type']!=_0x4eb599)continue;let _0x9bf9e1=!0x1;for(const _0x9936f5 of _0x2bf60f['getRanges']()){for(const _0x414555 of _0x227383){const _0x3825d5=_0x414555['start']['isEqual'](_0x9936f5['end'])||_0x414555['end']['isEqual'](_0x9936f5['start']);if(_0x3825d5||_0x414555['getIntersection'](_0x9936f5)){const _0x54795c=_0x414555['containsRange'](_0x9936f5)&&Ot(this['_model']['schema'],_0x9936f5['start'],_0x414555),_0x436a9b=_0x9936f5['containsRange'](_0x414555)&&Ot(this['_model']['schema'],_0x414555['start'],_0x9936f5);_0x44ca9b['push']({'suggestion':_0x2bf60f,'meta':{'isOwn':_0x494088==_0x2bf60f['author'],'isNextTo':_0x3825d5,'isInsideObject':_0x54795c,'containsRangeInObject':_0x436a9b}}),_0x9bf9e1=!0x0;break;}}if(_0x9bf9e1)break;}}return _0x44ca9b;}['_addSuggestionMarker'](_0x579791,_0xa5b65a,_0x45d421,_0x2ece67,_0x2f26d1){this['_model']['change'](_0x5430de=>{let _0x494a9c='suggestion:'+_0x579791+':'+_0xa5b65a+':'+_0x45d421;_0x2f26d1&&(_0x494a9c=_0x494a9c+':'+_0x2f26d1),_0x5430de['addMarker'](_0x494a9c,{'range':_0x2ece67,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x499817){const _0x227c5a=_0x499817['previous'],_0x5845d1=_0x499817['next'];_0x499817['previous']=null,_0x499817['next']=null,null!=_0x227c5a&&_0x227c5a['next']==_0x499817&&(_0x227c5a['next']=_0x5845d1),null!=_0x5845d1&&_0x5845d1['previous']==_0x499817&&(_0x5845d1['previous']=_0x227c5a),'ready'==this['_suggestionState']['get'](_0x499817)&&(this['_suggestionState']['set'](_0x499817,'removed'),this['fire']('suggestionUnloaded',_0x499817,_0x227c5a,_0x5845d1));}['_setSuggestionData'](_0x473b8f){const _0x315e9f=_0x473b8f['id'],_0x2d1397=this['addSuggestionData'](_0x473b8f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x52ba70=this['editor']['plugins']['get']('PendingActions'),_0x5cdc2d=_0x2d1397['hasComments'],_0x3d97cd=_0x2d1397['subType']?_0x2d1397['type']+':'+_0x2d1397['subType']:_0x2d1397['type'],_0x1fd67e=this['editor']['locale'],_0x5cc537=_0x52ba70['add'](o(_0x1fd67e,'PENDING_ACTION_SUGGESTION')),_0x2a7015={'id':_0x315e9f,'type':_0x3d97cd,'hasComments':_0x5cdc2d,'data':_0x473b8f['data']||null,'originalSuggestionId':_0x473b8f['originalSuggestionId']||null,'attributes':_0x2d1397['attributes']};this['_adapter']['addSuggestion'](_0x2a7015)['then'](_0x1cd0c2=>{_0x2d1397['_saved']=!0x0,_0x52ba70['remove'](_0x5cc537),_0x1cd0c2&&_0x1cd0c2['createdAt']&&(this['_suggestions']['get'](_0x315e9f)['createdAt']=_0x1cd0c2['createdAt']);})['catch'](_0xd5ac6e=>{throw _0x4ead58('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d1397['discard']();}),_0x2d1397['stopListening'](),this['_suggestions']['delete'](_0x2d1397['id']),this['_suggestionState']['delete'](_0x2d1397),_0xd5ac6e;});}return _0x2d1397;}['_isBlockAttribute'](_0x475024){return this['_blockAttributeKeys']['has'](_0x475024);}['_updateSuggestionData'](_0x2c308e,_0x5bf044){const _0x1989cd=this['editor']['plugins']['get']('PendingActions'),_0x5a470f=this['getSuggestion'](_0x2c308e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5a470f['_saved']){const _0xf8e612=_0x1989cd['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2c308e,_0x5bf044)['then'](()=>{_0x1989cd['remove'](_0xf8e612);});}else _0x5a470f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2c308e,_0x5bf044);});}}['_getSuggestionData'](_0x3e1974){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x36031a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e1974);}['_handleNewSuggestionMarker'](_0x1d6b37){const {id:_0x1adc69,type:_0x377d83,subType:_0x44cb92,authorId:_0x1ce798}=this['_splitMarkerName'](_0x1d6b37),_0x302a07=this['_suggestions']['get'](_0x1adc69)||this['_createSuggestion'](_0x377d83,_0x44cb92,_0x1adc69,_0x1ce798,{});switch(this['_checkSuggestionCorrectness'](_0x302a07,_0x377d83,_0x44cb92,_0x1ce798),this['_suggestionState']['get'](_0x302a07)){case'notReady':this['_getSuggestionData'](_0x1adc69)['then'](_0x5d011a=>{let _0x5a9e67=Promise['resolve']();_0x5d011a['hasComments']&&(_0x5a9e67=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1adc69})),_0x5a9e67['then'](()=>{this['addSuggestionData'](_0x5d011a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x302a07,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1adc69,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x302a07,'ready'),this['fire']('suggestionLoaded',_0x302a07);break;case'ready':this['fire']('suggestionChanged',_0x302a07);}return _0x302a07['addMarkerName'](_0x1d6b37),_0x302a07;}['_refreshSuggestionsChain'](_0x5bbc0f){const _0x548cc4=Array['from'](_0x5bbc0f),_0x4119c8=_0x548cc4['filter'](_0x69e676=>'attribute'==_0x69e676['type']);this['_refreshAttributeSuggestionsChain'](_0x4119c8);const _0xecc07f=_0x548cc4['filter'](_0x59d917=>!_0x59d917['isMultiRange']&&'attribute'!=_0x59d917['type']),_0x3a0357=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55b386=>!_0x55b386['isMultiRange']&&'attribute'!=_0x55b386['type']),_0x16fc8a=_0x3a0357['filter'](_0x594726=>!_0x5bbc0f['has'](_0x594726)),_0x597eac=new Map(_0x3a0357['map'](_0x4cfaaa=>[_0x4cfaaa,this['_suggestionFactory']['getSuggestionCallback'](_0x4cfaaa['type'],_0x4cfaaa['subType'],'chain')])),_0x28166c=new Map(_0x3a0357['map'](_0x42c373=>[_0x42c373,_0x42c373['getFirstRange']()])),_0x4a5b91=new Set(),_0x42c6d3=new Set();for(let _0x2f4422=0x0;_0x2f4422<_0xecc07f['length'];_0x2f4422++)_0x439ff8(_0xecc07f[_0x2f4422],_0xecc07f,_0x2f4422+0x1);for(let _0x586c96=0x0;_0x586c96<_0xecc07f['length'];_0x586c96++)_0x439ff8(_0xecc07f[_0x586c96],_0x16fc8a,0x0);const _0x41d021=new Set();for(let _0x35cc73=0x0;_0x35cc73<_0xecc07f['length'];_0x35cc73++){const _0x127656=_0xecc07f[_0x35cc73];!_0x42c6d3['has'](_0x127656)&&_0x127656['previous']&&(_0x41d021['add'](_0x127656['previous']),_0x127656['previous']['next']===_0x127656&&(_0x127656['previous']['next']=null),_0x127656['previous']=null),!_0x4a5b91['has'](_0x127656)&&_0x127656['next']&&(_0x41d021['add'](_0x127656['next']),_0x127656['next']['previous']===_0x127656&&(_0x127656['next']['previous']=null),_0x127656['next']=null);}function _0x439ff8(_0x5193bf,_0x996622,_0x20c1d5){for(let _0x5590b4=_0x20c1d5;_0x5590b4<_0x996622['length'];_0x5590b4++){const _0x400be2=_0x2e371e(_0x5193bf,_0x996622[_0x5590b4]);_0x400be2&&(_0x400be2[0x0]['next']=_0x400be2[0x1],_0x400be2[0x1]['previous']=_0x400be2[0x0],_0x4a5b91['add'](_0x400be2[0x0]),_0x42c6d3['add'](_0x400be2[0x1]));}}function _0x2e371e(_0x1ef56f,_0x12fbcc){if(_0x1ef56f['author']['id']!==_0x12fbcc['author']['id'])return null;const _0x24c761=_0x597eac['get'](_0x1ef56f)(_0x1ef56f,_0x12fbcc,_0x28166c['get'](_0x1ef56f),_0x28166c['get'](_0x12fbcc));if(!_0x24c761)return null;return _0x597eac['get'](_0x12fbcc)(_0x1ef56f,_0x12fbcc,_0x28166c['get'](_0x1ef56f),_0x28166c['get'](_0x12fbcc))?_0x24c761[0x1]['commentThread']&&_0x24c761[0x1]['commentThread']['length']?null:_0x24c761:null;}_0x41d021['size']&&this['_refreshSuggestionsChain'](_0x41d021);}['_refreshAttributeSuggestionsChain'](_0x292350){if(0x0==_0x292350['length'])return;const _0x12fb1d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dfc88=>'attribute'==_0x5dfc88['type']&&_0x5dfc88['_isDataLoaded']),_0x30ab02=[],_0x502603=new Map();for(const _0x30641c of _0x12fb1d){const _0x34914d=_0x3d1af3(_0x30641c['attributes']);_0x502603['has'](_0x34914d)||(_0x502603['set'](_0x34914d,_0x30ab02['length']),_0x30ab02['push']([]));const _0x32ee5b=_0x502603['get'](_0x34914d);_0x30ab02[_0x32ee5b]['push'](_0x30641c);}!(function(){_0x30ab02['sort']((_0x266acc,_0x5a9a2b)=>{const _0x311f28=_0x266acc[0x0]['createdAt'],_0x115176=_0x5a9a2b[0x0]['createdAt'];return _0x311f28==_0x115176?_0x266acc[0x0]['attributes']['groupId']<_0x5a9a2b[0x0]['attributes']['groupId']?-0x1:0x1:_0x311f28<_0x115176?-0x1:0x1;});for(const _0x417873 of _0x30ab02)_0x417873['sort']((_0x2d2adc,_0x57f507)=>_0x2d2adc['id']<_0x57f507['id']?-0x1:0x1);}());for(let _0x16bc61=0x0;_0x16bc61<_0x30ab02['length'];_0x16bc61++){if(0x0==_0x30ab02[_0x16bc61]['length'])continue;const _0x32dae2=[];for(let _0x1d813b=_0x16bc61+0x1;_0x1d813b<_0x30ab02['length'];_0x1d813b++)0x0!=_0x30ab02[_0x1d813b]['length']&&_0x12b555(_0x30ab02[_0x16bc61],_0x30ab02[_0x1d813b])&&_0x32dae2['push'](_0x1d813b);for(const _0x3bc945 of _0x32dae2)_0x30ab02[_0x16bc61]=_0x30ab02[_0x16bc61]['concat'](_0x30ab02[_0x3bc945]),_0x30ab02[_0x3bc945]=[];}for(const _0x2f4d35 of _0x30ab02)for(let _0x19ca47=0x0;_0x19ca47<_0x2f4d35['length'];_0x19ca47++){const _0x38dee0=_0x2f4d35[_0x19ca47+0x1]||null;_0x2f4d35[_0x19ca47]['next']!==_0x38dee0&&(_0x2f4d35[_0x19ca47]['next']=_0x38dee0);}for(const _0x17626b of _0x30ab02)for(let _0x414ebb=0x0;_0x414ebb<_0x17626b['length'];_0x414ebb++){const _0x117ba2=_0x17626b[_0x414ebb-0x1]||null;_0x17626b[_0x414ebb]['previous']!==_0x117ba2&&(_0x17626b[_0x414ebb]['previous']=_0x117ba2);}function _0x12b555(_0xec6dd2,_0x1ea709){if(_0xec6dd2[0x0]['attributes']['groupId']!==_0x1ea709[0x0]['attributes']['groupId']&&_0xec6dd2[0x0]['author']!==_0x1ea709[0x0]['author'])return!0x1;if(!function(_0x2801fc,_0x1d564c){if(!_0x2801fc['hasComments']&&!_0x1d564c['hasComments'])return!0x0;if(_0x2801fc['hasComments']&&_0x1d564c['hasComments'])return!0x1;if(_0x2801fc['hasComments']&&_0x1d564c['createdAt']<_0x2801fc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1d564c['hasComments']&&_0x2801fc['createdAt']<_0x1d564c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xec6dd2[0x0],_0x1ea709[0x0]))return!0x1;const _0x3dffa2=Tt(_0xec6dd2[0x0]['attributes'],'groupId'),_0x1dcbe4=Tt(_0x1ea709[0x0]['attributes'],'groupId');if(!_0x8956aa(_0x3dffa2,_0x1dcbe4))return!0x1;return!!_0xec6dd2['every'](_0x44720c=>_0x1ea709['some'](_0x1054be=>_0x44720c['getFirstRange']()['isEqual'](_0x1054be['getFirstRange']())))&&_0x1ea709['every'](_0x25e69a=>_0xec6dd2['some'](_0x5cbd2a=>_0x25e69a['getFirstRange']()['isEqual'](_0x5cbd2a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x54b4c6){const _0x5d4e01=Array['from'](_0x54b4c6),_0x19a202=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2d6805=_0x19a202['filter'](_0x378432=>!_0x54b4c6['has'](_0x378432)),_0x178436=new Map(_0x5d4e01['map'](_0x361587=>[_0x361587,this['_suggestionFactory']['getSuggestionCallback'](_0x361587['type'],_0x361587['subType'],'join')])),_0x5128c7=new Map(_0x19a202['map'](_0x2acc85=>[_0x2acc85,_0x2acc85['getRanges']()]));for(let _0x1f73ff=0x0;_0x1f73ff<_0x5d4e01['length'];_0x1f73ff++){if(_0x2dfdd5(this,_0x5d4e01[_0x1f73ff],_0x5d4e01,_0x1f73ff+0x1))return!0x0;}for(let _0x65dbbc=0x0;_0x65dbbc<_0x5d4e01['length'];_0x65dbbc++){if(_0x2dfdd5(this,_0x5d4e01[_0x65dbbc],_0x2d6805,0x0))return!0x0;}return!0x1;function _0x2dfdd5(_0x3aa02a,_0x319bb5,_0x1424d2,_0x4c10e1){for(let _0x43ef07=_0x4c10e1;_0x43ef07<_0x1424d2['length'];_0x43ef07++){const _0x283840=_0x1424d2[_0x43ef07];if(_0x283840['type']!==_0x319bb5['type']||_0x283840['author']['id']!==_0x319bb5['author']['id']||_0x283840['subType']!==_0x319bb5['subType'])continue;if(!Jt(_0x319bb5,_0x283840))continue;if('attribute'==_0x319bb5['type']&&_0x319bb5['data']['oldValue']!=_0x283840['data']['oldValue'])continue;if('attribute'==_0x319bb5['type']&&_0x3aa02a['_isBlockAttribute'](_0x319bb5['data']['key']))continue;if('formatBlock'==_0x319bb5['type']){const _0x100d3b=_0x3aa02a['editor']['model'],_0x8e30e0=_0x319bb5['getContainedElement']();if(_0x8e30e0&&(_0x100d3b['schema']['isObject'](_0x8e30e0)||_0x100d3b['schema']['isLimit'](_0x8e30e0)))continue;}const _0x2110ed=_0x178436['get'](_0x319bb5),_0x37e8d9=_0x5128c7['get'](_0x319bb5),_0x213d3f=_0x5128c7['get'](_0x283840),_0x1b4aa1=_0x319bb5['commentThread']&&_0x319bb5['commentThread']['length'],_0x322d86=_0x283840['commentThread']&&_0x283840['commentThread']['length'];if(!_0x1b4aa1&&_0x2110ed(_0x213d3f,_0x37e8d9))return _0x3aa02a['_joinSuggestions'](_0x283840,_0x319bb5),_0x5128c7['delete'](_0x319bb5),!0x0;if(!_0x322d86&&_0x2110ed(_0x37e8d9,_0x213d3f))return _0x3aa02a['_joinSuggestions'](_0x319bb5,_0x283840),_0x5128c7['delete'](_0x283840),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5a5924,_0x5420cf){if(_0x5a5924['isMultiRange']){for(const _0x5e567c of _0x5420cf['getRanges']())_0x5a5924['addRange'](_0x5e567c);}else{const _0x450aa3=_0x5420cf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a5924,this['_model']['createRange'](_0x5a5924['getFirstRange']()['start'],_0x450aa3));}_0x5420cf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1656fc,_0xd2ead9,_0x5ab0c7){const _0x35453b=_0x1656fc['startsWith']('format')||_0x1656fc['startsWith']('attribute')?'FORMATTING':_0x1656fc['toUpperCase']();return o(this['editor']['locale'],_0xd2ead9+'_'+_0x35453b+'_SUGGESTION_ANNOUNCEMENT',_0x5ab0c7);}['_initAriaMarkerChangeAnnouncements'](){const _0x59fac0=this['editor'];if(!_0x59fac0['ui'])return;const {ariaLiveAnnouncer:_0x334e88}=_0x59fac0['ui'];_0x15d99f(this['_model'],({left:_0x65b63,entered:_0x2ec822})=>{for(const _0x1544cb of _0x65b63){const {group:_0x105d56,type:_0x474c76}=this['_splitMarkerName'](_0x1544cb['name']);if('suggestion'===_0x105d56){_0x334e88['announce'](this['_getMarkerAnnouncementText'](_0x474c76,'LEAVE'));break;}}for(const _0x3cd8db of _0x2ec822){const {group:_0x3f7a6b,type:_0xe889ed}=this['_splitMarkerName'](_0x3cd8db['name']);if('suggestion'===_0x3f7a6b){_0x334e88['announce'](this['_getMarkerAnnouncementText'](_0xe889ed,'ENTER',_0x3b5acf(_0x347009)));break;}}});}['_processAttributeChanges'](_0x4f5635){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3e8bb9=this['editor'],_0x917b3a=_0x3e8bb9['model']['document']['differ']['getChanges']();if(0x0==_0x917b3a['length'])return!0x1;const _0x283cfc=[],_0x553d52=_0x917b3a['filter'](_0x2d2823=>'attribute'==_0x2d2823['type']),_0xbc94cc=_0x917b3a['filter'](_0x41147e=>'insert'==_0x41147e['type']&&'$text'!=_0x41147e['name']),_0x5e66c6=_0x917b3a['filter'](_0x5215c2=>'remove'==_0x5215c2['type']&&'$text'!=_0x5215c2['name']);for(const _0x1f942e of _0x553d52)_0x283cfc['push']({'key':_0x1f942e['attributeKey'],'newValue':_0x1f942e['attributeNewValue'],'oldValue':_0x1f942e['attributeOldValue'],'range':Pt(_0x1f942e['range'],_0x3e8bb9['model'])});for(const _0x4f7265 of _0xbc94cc){const _0x13b7e5=_0x5e66c6['find'](_0x15c487=>_0x15c487['position']['isEqual'](_0x4f7265['position']));_0x13b7e5&&_0x283cfc['push']({'key':m,'newValue':_0x4f7265['name'],'oldValue':_0x13b7e5['name'],'range':_0x3e8bb9['model']['createRangeOn'](_0x4f7265['position']['nodeAfter'])});}return 0x0!=_0x283cfc['length']&&this['_reduceExistingSuggestions'](_0x4f5635,_0x283cfc);}['_processAttributeSuggestions'](_0x3a1e72){let _0x2aa692=!0x1;const _0x3ce89a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38d2d0=>_0x38d2d0['data']['newRange']&&_0x38d2d0['name']['startsWith']('suggestion:attribute:'));for(const _0x4f10e4 of _0x3ce89a){const {subType:_0x115205,id:_0x554d8c}=this['_splitMarkerName'](_0x4f10e4['name']),_0x341eb1=_0x115205['split']('|')[0x0];for(const _0x282627 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x282627['id']!=_0x554d8c&&'attribute'==_0x282627['type']&&_0x282627['data']&&_0x282627['data']['key']==_0x341eb1&&_0x282627['getFirstRange']()['isIntersecting'](_0x4f10e4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x282627,_0x4f10e4['data']['newRange'],_0x3a1e72),_0x2aa692=!0x0);}return _0x2aa692;}['_recordAttributeChanges'](_0x1da5db){this['_recordAttributeSuggestions']=!0x0,_0x1da5db();}['_isRegisteredAttribute'](_0x4e4430){const _0x1c61c6=this['_isBlockAttribute'](_0x4e4430),_0x4ad229=this['_inlineAttributeKeys']['has'](_0x4e4430);return _0x1c61c6||_0x4ad229;}['_reduceExistingSuggestions'](_0x4668ee,_0x1f21fa){if(0x0==_0x1f21fa['length'])return!0x1;let _0x28e19b=!0x1;for(const _0x16eb38 of _0x1f21fa){const _0x1742b1=this['_findSuggestions'](_0x16eb38['range'],'attribute')['filter'](_0x5195c8=>!_0x5195c8['meta']['isNextTo'])['map'](_0x1d4f10=>_0x1d4f10['suggestion']),_0x32a172=_0x3d1af3({'newValue':_0x16eb38['newValue']});_0x1742b1['filter'](_0x43e455=>{const [_0x56a875,_0x58ecf7]=_0x43e455['subType']['split']('|');return _0x56a875==_0x16eb38['key']&&_0x58ecf7!=_0x32a172;})['forEach'](_0x4640bb=>{this['_reduceSuggestionAttributeRange'](_0x4640bb,_0x16eb38['range'],_0x4668ee),_0x28e19b=!0x0;});}return _0x28e19b;}['_reduceSuggestionAttributeRange'](_0x4de1a9,_0x53a579,_0x4950ff){const _0x52712b=_0x4de1a9['getFirstRange']()['getDifference'](_0x53a579);0x0!==_0x52712b['length']?0x1!==_0x52712b['length']?this['_breakSuggestionMarker'](_0x4de1a9,_0x53a579['start'],_0x53a579['end']):this['_setSuggestionRange'](_0x4de1a9,_0x52712b[0x0]):_0x4950ff['removeMarker'](_0x4de1a9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4dbc6d){this['_editor']=_0x4dbc6d,this['_model']=_0x4dbc6d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2c2d5a,_0x25c37c,_0x344b8a,_0xd5cae5,_0x5444a4,_0xd82c3f){return new u(this['_model'],{'type':_0x2c2d5a,'subType':_0x25c37c,'id':_0x344b8a,'author':_0xd5cae5,'creator':_0xd5cae5,'attributes':_0x5444a4,'onAttributesChange':_0xd82c3f,'onAccept':(..._0x1503d2)=>this['getSuggestionCallback'](_0x2c2d5a,_0x25c37c,'accept')(..._0x1503d2),'onDiscard':(..._0xfa46cb)=>this['getSuggestionCallback'](_0x2c2d5a,_0x25c37c,'discard')(..._0xfa46cb)});}['registerCustomCallback'](_0x1473fa,_0x3873d8,_0x18b75e,_0x266708){const _0x2639bd=_0x1473fa+':'+_0x3873d8+':'+_0x18b75e;this['_customCallbacks']['set'](_0x2639bd,_0x266708);}['getSuggestionCallback'](_0x29b908,_0x14fa67,_0x3e8c08){const _0x370e63=_0x29b908+':'+_0x14fa67+':'+_0x3e8c08;return this['_customCallbacks']['get'](_0x370e63)||this['_defaultCallbacks']['get'](_0x29b908+':'+_0x3e8c08);}['_registerDefaultCallbacks'](){const _0x40dbe4=()=>!0x1,_0x9e3980=_0x4695ba=>{_0x4695ba['sort']((_0x5b1529,_0x39c63e)=>_0x5b1529['start']['isBefore'](_0x39c63e['start'])?0x1:-0x1),this['_model']['change'](_0x4d5537=>{for(const _0x2eaaee of _0x4695ba){let _0x2f5a62;_0x2f5a62=_0x2eaaee['end']['isAtEnd']&&_0x2eaaee['end']['parent']==_0x2eaaee['start']['nodeAfter']?_0x4d5537['createSelection'](_0x2eaaee['start']['nodeAfter'],'on'):_0x4d5537['createSelection'](_0x2eaaee),this['_model']['deleteContent'](_0x2f5a62,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f3c3e=(_0x4edb29,_0x1e3fda)=>{_0x1e3fda&&this['_model']['change'](_0x23085d=>{const {commandName:_0x74ed52,commandParams:_0x483a5e=[]}=_0x1e3fda,_0x3eb05e=_0x4edb29['map'](_0x409fb6=>(Vt(_0x409fb6)&&(_0x409fb6=this['_model']['createRange'](_0x409fb6['end'])),_0x409fb6))['filter'](_0x5c77a2=>'$graveyard'!==_0x5c77a2['root']['rootName']);if(_0x3eb05e['length']<0x1)return;const _0x448c8a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f9398=>_0x5018e8['fromRange'](_0x3f9398));_0x23085d['setSelection'](_0x3eb05e);for(const _0x5ecc46 of this['_editor']['commands']['commands']())_0x5ecc46['refresh']();_0x483a5e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x74ed52,..._0x483a5e);const _0x18cc69=_0x448c8a['filter'](_0x5512af=>'$graveyard'!=_0x5512af['root']['rootName']);_0x18cc69['length']>0x0&&_0x23085d['setSelection'](_0x18cc69);for(const _0x6060e5 of _0x448c8a)_0x6060e5['detach']();});},_0x2593ca=(_0xaf7f2f,_0x1133da)=>0x1==_0xaf7f2f['length']&&0x1==_0x1133da['length']&&_0xaf7f2f[0x0]['end']['isEqual'](_0x1133da[0x0]['start']),_0x1eaaad=(_0x2b5d2b,_0xa7a246,_0x4f6383,_0x3be633)=>Ht(_0x2b5d2b,_0xa7a246,_0x4f6383,_0x3be633,this['_model'])?[_0x2b5d2b,_0xa7a246]:Ht(_0xa7a246,_0x2b5d2b,_0x3be633,_0x4f6383,this['_model'])?[_0xa7a246,_0x2b5d2b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x40dbe4),this['_defaultCallbacks']['set']('insertion:discard',_0x9e3980),this['_defaultCallbacks']['set']('insertion:join',_0x2593ca),this['_defaultCallbacks']['set']('insertion:chain',_0x1eaaad),this['_defaultCallbacks']['set']('deletion:accept',_0x9e3980),this['_defaultCallbacks']['set']('deletion:discard',_0x40dbe4),this['_defaultCallbacks']['set']('deletion:join',_0x2593ca),this['_defaultCallbacks']['set']('deletion:chain',_0x1eaaad),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f3c3e),this['_defaultCallbacks']['set']('formatInline:discard',_0x40dbe4),this['_defaultCallbacks']['set']('formatInline:join',_0x2593ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x40dbe4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f3c3e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x40dbe4),this['_defaultCallbacks']['set']('formatBlock:join',_0x2593ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x40dbe4),this['_defaultCallbacks']['set']('attribute:accept',_0x40dbe4),this['_defaultCallbacks']['set']('attribute:discard',(_0x456f9e,_0x5bdce5)=>{if(!_0x5bdce5)return;const _0x6c073c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1c724b=>{if(_0x5bdce5['key']==m)for(const _0xf5de28 of _0x456f9e){const _0x5758a5=_0xf5de28['start']['nodeAfter'],_0x4c5100=_0x5bdce5['oldValue'];_0x1c724b['rename'](_0x5758a5,_0x4c5100);}else{if(_0x6c073c['_isBlockAttribute'](_0x5bdce5['key'])){for(const _0x1f7e0b of _0x456f9e)void 0x0!==_0x5bdce5['oldValue']?_0x1c724b['setAttribute'](_0x5bdce5['key'],_0x5bdce5['oldValue'],_0x1f7e0b['start']['nodeAfter']):_0x1c724b['removeAttribute'](_0x5bdce5['key'],_0x1f7e0b['start']['nodeAfter']);}else{for(const _0x19c072 of _0x456f9e)_0x5bdce5['oldValue']?_0x1c724b['setAttribute'](_0x5bdce5['key'],_0x5bdce5['oldValue'],_0x19c072):_0x1c724b['removeAttribute'](_0x5bdce5['key'],_0x19c072);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2593ca);}}function Ot(_0x429bbd,_0x307c78,_0x255550){for(const _0xe9468f of _0x307c78['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xe9468f['root']==_0xe9468f)return!0x1;if(!_0x255550['containsItem'](_0xe9468f))return!0x1;if(_0x429bbd['isObject'](_0xe9468f)||_0x429bbd['isLimit'](_0xe9468f))return!0x0;}return!0x1;}function Vt(_0x44f6bf){return _0x44f6bf['end']['parent']==_0x44f6bf['start']['nodeAfter']&&_0x44f6bf['end']['isAtStart'];}function Ut(_0x28ac3b,_0x2e7033,_0xb0c211,_0x343b6a){const _0x280681=_0x225cee=>!_0x225cee['item']['is']('$textProxy')&&!_0x343b6a['isObject'](_0x225cee['item']),_0x5b8456=_0x28ac3b['start']['getLastMatchingPosition'](_0x280681),_0x280e9d=_0x28ac3b['end']['getLastMatchingPosition'](_0x280681,{'direction':'backward'});return(!_0x28ac3b['start']['isEqual'](_0x5b8456)||!_0x28ac3b['end']['isEqual'](_0x280e9d))&&(_0x5b8456['isBefore'](_0x280e9d)?_0xb0c211['updateMarker'](_0x2e7033,{'range':_0xb0c211['createRange'](_0x5b8456,_0x280e9d)}):_0xb0c211['removeMarker'](_0x2e7033),!0x0);}function Gt(_0x2c6a91){return _0x3d1af3(_0x2c6a91);}function Ft(_0xf8eaf6){const _0x3fd702=_0xf8eaf6['start']['nodeAfter'];return _0x3fd702&&_0x3fd702['is']('element');}function Pt(_0x10a48d,_0x1f37ae){return null==_0x10a48d['end']['nodeBefore']&&_0x10a48d['end']['parent']==_0x10a48d['start']['nodeAfter']?Lt(_0x10a48d['start']['nodeAfter'],_0x1f37ae):_0x10a48d;}function Lt(_0x4337f0,_0x47010){const _0x42c58e=_0x47010['schema']['isObject'](_0x4337f0)||_0x47010['schema']['isSelectable'](_0x4337f0);return _0x47010['createRange'](_0x47010['createPositionAt'](_0x4337f0,'before'),_0x42c58e?_0x47010['createPositionAfter'](_0x4337f0):_0x47010['createPositionAt'](_0x4337f0,'end'));}function Ht(_0x12ed73,_0x8b823e,_0x1d1258,_0x5ca766,_0x852519){if(_0x12ed73['next'])return!0x1;if(!Jt(_0x12ed73,_0x8b823e))return!0x1;if(_0x1d1258['end']['isEqual'](_0x5ca766['start']))return!0x0;if(_0x12ed73['type']!=_0x8b823e['type'])return!0x1;if(!_0x1d1258['end']['isTouching'](_0x5ca766['start']))return!0x1;const _0x3e72de=_0x852519['createRange'](_0x1d1258['end'],_0x5ca766['start'])['getWalker']();for(const _0x5745bb of _0x3e72de)if(['elementStart','elementEnd']['includes'](_0x5745bb['type'])&&_0x852519['schema']['isLimit'](_0x5745bb['item']))return!0x1;return!0x0;}function Jt(_0x4f96e8,_0x3464f9){if(!_0x4f96e8['_isDataLoaded']||!_0x3464f9['_isDataLoaded'])return!0x1;const _0x557048=new Set(Object['keys'](_0x4f96e8['attributes'])),_0x2f5177=new Set(Object['keys'](_0x3464f9['attributes']));if(_0x557048['delete']('groupId'),_0x2f5177['delete']('groupId'),0x0==_0x557048['size']&&0x0==_0x2f5177['size'])return!0x0;if(_0x557048['size']!=_0x2f5177['size'])return!0x1;const _0x36e7e6={..._0x4f96e8['attributes']},_0x2538ef={..._0x3464f9['attributes']};return delete _0x36e7e6['groupId'],delete _0x2538ef['groupId'],JSON['stringify'](_0x36e7e6)==JSON['stringify'](_0x2538ef);}function qt(_0x181108,_0x20a602){const _0x945099=zt(_0x181108['attributes']),_0x572b96=zt(_0x20a602);if(!_0x181108['_isDataLoaded'])return!0x1;for(const _0x4b6e58 of Object['keys'](_0x572b96))if(!_0x8956aa(_0x945099[_0x4b6e58],_0x572b96[_0x4b6e58]))return!0x1;return!0x0;}function zt(_0x2ce0b0){const _0xe78164=Object['assign']({},_0x2ce0b0);return delete _0xe78164['skipNestingCheck'],delete _0xe78164['tablePasteChainId'],_0xe78164;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0xcb731d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3ea6f9,_0x577b85,_0x55b8f4,_0x1974c5){super(),this['model']=_0x577b85,this['view']=_0x55b8f4,this['commentThreadController']=_0x1974c5,this['_editor']=_0x3ea6f9,this['_acceptCommand']=_0x3ea6f9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3ea6f9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x7a1d01,_0x3f4870)=>_0x7a1d01||_0x3f4870),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xed874d=>_0xed874d&&this['_editor']['model']['canEditAt'](_0x577b85['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3aa272=>_0x3aa272&&this['_editor']['model']['canEditAt'](_0x577b85['getRanges']())),this['_pendingAction']=null,_0x55b8f4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x55b8f4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x55b8f4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x55b8f4,'change:isDirty',()=>{_0x55b8f4['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 _0x40074e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x40074e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x210b86{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xa4660b,_0x410cb8,_0x19bfd7,_0x366dbb){super(_0xa4660b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2b28de(_0xa4660b,o(_0xa4660b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x410cb8['authoredAt']),this['bind']('authoredAt')['to'](_0x410cb8),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',_0x410cb8,'authoredAt',this,'descriptionParts',(_0x507fa8,_0x2c7b7c,_0x2438c6)=>{const _0x4ea247=_0x2438c6['map'](_0xe802ae=>ls(_0xe802ae['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x507fa8-0x1,_0x410cb8['author']['name'],_0x2c7b7c?_0x366dbb['formatDateTime'](_0x2c7b7c):'',new DOMParser()['parseFromString'](_0x4ea247,'text/html')['body']['textContent']]);}),this['focusables']=new _0x13f084(),this['focusTracker']=new _0x159e05(),this['keystrokes']=new _0x27e8f6(),this['focusCycler']=new _0x308ce9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4fa818=>_0x4fa818['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x410cb8,this['_localUser']=_0x19bfd7,this['_config']=_0x366dbb,_0x366dbb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x236c2c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x492384}=this['_config'];this['commentsListView']=new _0x492384(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',_0x3af62e=>_0x3af62e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x261c88,_0x5184da)=>_0x261c88||!!_0x5184da);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xde09e}=this['_config'],_0x438d52=new _0xde09e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20a4e0=_0x438d52['commentInputView'];return _0x438d52['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20a4e0,'value',(_0x2d2d29,_0x2f1849,_0x122564)=>!!_0x122564||_0x2d2d29&&!_0x2f1849),_0x20a4e0['on']('submit',(_0x182af8,_0x31fba6)=>{this['fire']('addComment',_0x31fba6),_0x20a4e0['editor']['setData']('');}),_0x20a4e0['on']('cancel',()=>this['focus']()),_0x20a4e0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x438d52;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0xc8c01f,_0x31356a,_0x528f11,_0x616af2){super(_0xc8c01f,_0x31356a,_0x528f11,_0x616af2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9bd4a2=>_0x9bd4a2&&_0x9bd4a2[0x0]?_0x9bd4a2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5411bc,_0x29efa5)=>{let _0x9fdee2='';for(const _0x5d9821 of _0x5411bc)_0x9fdee2+='<p>'+ls(_0x5d9821['content'],_0x5d9821['color'])+'</p>';return _0x29efa5?_0x9fdee2:_0x44c8a5(_0x9fdee2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x616af2['SuggestionView'](_0xc8c01f,_0x31356a,{'formatDateTime':_0x616af2['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 _0x20575e=this['bindTemplate'],_0x4d47df=[this['suggestionView']];return this['commentsListView']&&_0x4d47df['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4d47df['push'](this['commentThreadInputView']),_0x4d47df['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x20575e['if']('isActive','ck-suggestion-wrapper--active'),_0x20575e['to']('type',_0x1abc8b=>'ck-suggestion-'+_0x1abc8b),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':_0x20575e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4d47df};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x210b86{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2f48bd,_0x1aef20,_0xe762f4){super(_0x2f48bd),this['_model']=_0x1aef20,this['_config']=_0xe762f4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1aef20),this['acceptButton']=this['_createButton'](o(_0x2f48bd,'Accept\x20suggestion'),_0x2fd808['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2f48bd,'Discard\x20suggestion'),_0x2fd808['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x49cf17(_0x2f48bd,_0x1aef20['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x13f084([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x159e05(),this['keystrokes']=new _0x27e8f6(),this['focusCycler']=new _0x308ce9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x38e94e=>_0x38e94e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x221587=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x221587['innerHTML']=this['description'],this['on']('change:description',(_0xab39af,_0xa8c45c,_0xd7d7ee)=>{_0x221587['innerHTML']=_0xd7d7ee;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4d308d=this['bindTemplate'],_0x5b062e=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x4d308d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4d308d['to']('authoredAt',_0x22e560=>this['_config']['formatDateTime'](_0x22e560))}]}]},{'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']&&_0x5b062e['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':_0x5b062e}]};}['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'](_0xbd96f0,_0x315ef1,_0x7b2f32,_0x4d484d,_0x26c9ec){const _0x548987=new _0x2a38fe(this['locale']);return _0x548987['set']({'label':_0xbd96f0,'icon':_0x315ef1,'tooltip':!0x0,'tooltipPosition':_0x26c9ec}),_0x548987['extendTemplate']({'attributes':{'class':_0x7b2f32}}),_0x548987['on']('execute',()=>{this['fire'](_0x4d484d,this['_model']['id']);}),_0x548987;}['_setupKeyboardNavigation'](){const _0x1ca7cd=this['element'];this['keystrokes']['listenTo'](_0x1ca7cd);for(const _0x59a02d of this['focusables'])this['focusTracker']['add'](_0x59a02d['element']),this['keystrokes']['listenTo'](_0x59a02d['element']);this['keystrokes']['set']('enter',(_0x5b48ea,_0x2bd2f2)=>{_0x1ca7cd===_0x5b48ea['target']&&(this['focusCycler']['focusFirst'](),_0x2bd2f2());}),this['keystrokes']['set']('esc',(_0x1d4c33,_0x32e207)=>{_0x1ca7cd!==_0x1d4c33['target']&&(this['focus'](),_0x32e207());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x1530f7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d313f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x497f50){super(_0x497f50),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4771f4=this['editor']['config'];_0x4771f4['define']('trackChanges.SuggestionThreadView',re),_0x4771f4['define']('trackChanges.SuggestionView',ce),_0x4771f4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4771f4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x471384,_0x42cdc3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5f2443,_0x47e408]of this['_handleControllerBuffer']){const _0x432aed=this['_suggestionToController']['has'](_0x5f2443);_0x432aed||_0x47e408?_0x432aed&&_0x47e408&&this['_destroyController'](_0x5f2443):this['_initializeController'](_0x5f2443);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x471384,_0x42cdc3);}['init'](){const _0x4f13d0=this['editor'],_0x404217=_0x4f13d0['plugins']['get']('TrackChangesEditing'),_0x56f8e9=_0x4f13d0['plugins']['get']('Annotations'),_0x518df1=_0x4f13d0['plugins']['get']('EditorAnnotations'),_0x1b80ee=_0x4f13d0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x518df1['addSourceCollector'](()=>{const _0x2f4efa=[];for(const [_0x3d5cf8,_0x53948a]of Array['from'](this['_suggestionToController'])){const _0x1755a0=_0x3d5cf8['getAllAdjacentSuggestions'](),_0x376974=[];for(const _0x197277 of _0x1755a0){if(!_0x197277['isInContent'])continue;if(_0x197277['isMultiRange']){_0x376974['push'](..._0x197277['getRanges']());continue;}const _0x5bbe90=_0x197277['getFirstRange']();if(_0x376974['length']>0x0){const _0x67180c=_0x376974[0x0]['getJoined'](_0x5bbe90);if(_0x67180c){_0x376974[0x0]=_0x67180c;continue;}}_0x376974['push'](_0x5bbe90);}_0x2f4efa['push']([_0x53948a['view'],_0x376974]);}return _0x2f4efa;}),this['listenTo'](_0x404217,'suggestionLoaded',(_0x35b3b0,_0x36982d)=>{this['listenTo'](_0x36982d,'change:previous',(_0x3ce06e,_0x3fbb58,_0x5eaa54,_0x1aa661)=>{_0x36982d['isInContent']&&(null==_0x5eaa54?(this['_updateController'](_0x1aa661['head']),this['_handleSuggestionControllerDelayed'](_0x36982d,!0x1)):(this['_updateController'](_0x5eaa54['head']),null==_0x1aa661&&this['_handleSuggestionControllerDelayed'](_0x36982d,!0x0)));}),null!==_0x36982d['previous']?this['_updateController'](_0x36982d['head']):this['_handleSuggestionControllerDelayed'](_0x36982d,!0x1);}),this['listenTo'](_0x404217,'suggestionUnloaded',(_0x4ed730,_0x424b4f,_0x43783c)=>{this['stopListening'](_0x424b4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x424b4f),this['_suggestionToController']['has'](_0x424b4f)&&this['_destroyController'](_0x424b4f),_0x43783c&&this['_updateController'](_0x43783c['head']);}),this['listenTo'](_0x404217,'suggestionChanged',(_0x7ae82f,_0x2080da)=>{this['_updateController'](_0x2080da);}),this['listenTo'](_0x56f8e9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b80ee,'addComment',(_0x467aa6,{threadId:_0x50fa3b,isFromAdapter:_0xc66a35})=>{if(_0xc66a35||!_0x404217['hasSuggestion'](_0x50fa3b))return;const _0x5d99b6=_0x404217['getSuggestion'](_0x50fa3b);this['_suggestionToController']['get'](_0x5d99b6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x546f95=this['editor']['plugins']['get']('Annotations'),_0x983d52=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed270=Array['from'](_0x546f95['activeAnnotations'],_0x3d3b19=>_0x3d3b19['innerView'])['filter'](_0x5d4913=>this['_viewToController']['has'](_0x5d4913)),_0x314999=[];for(const _0x51e095 of _0x3ed270){const _0x303109=this['_viewToController']['get'](_0x51e095)['model']['getAllAdjacentSuggestions']();_0x314999['push'](..._0x303109['reduce']((_0x47e336,_0x2844c9)=>[..._0x47e336,..._0x2844c9['getMarkerNames']()],[]));}_0x983d52['activeMarkers']=_0x314999;}['_addUIComponentsToFactory'](){const _0x2199a6=this['editor'],_0x26523e=_0x2199a6['locale'],_0x1d7917=o(_0x26523e,'Track\x20changes'),_0x340164=new Wt([{'type':'switchbutton','model':new _0x22e58a({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d7917,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3ed790 of _0x340164)if(me(_0x3ed790)){const _0x294b39=_0x2199a6['commands']['get'](_0x3ed790['model']['commandName']);_0x3ed790['model']['bind']('isOn','isEnabled')['to'](_0x294b39,'value','isEnabled');}_0x2199a6['ui']['componentFactory']['add']('trackChanges',_0xd51bef=>this['_createToolbarButton'](_0xd51bef,_0x340164,_0x1d7917)),_0x2199a6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4e7bc2=>this['_createMenuBarMenu'](_0x4e7bc2,_0x340164,_0x1d7917));}['_createToolbarButton'](_0x4ecb0d,_0x16dfc2,_0x3397cf){const _0x148309=Qt(_0x4ecb0d,_0x41b49a),_0x538f5c=this['editor']['commands']['get']('trackChanges');_0x148309['buttonView']['set']({'tooltip':_0x3397cf,'label':_0x3397cf,'icon':he}),_0x148309['buttonView']['bind']('isOn')['to'](_0x538f5c,'value'),_0x148309['buttonView']['on']('execute',()=>{_0x538f5c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x148309,_0x16dfc2,{'role':'menu'});const _0xdf8cbf=[];for(const _0x2629e9 of _0x16dfc2)me(_0x2629e9)&&_0xdf8cbf['push'](this['editor']['commands']['get'](_0x2629e9['model']['commandName']));const _0x53bb5a=_0x148309['buttonView'];return _0x53bb5a['actionView']['unbind']('isEnabled'),_0x53bb5a['arrowView']['unbind']('isEnabled'),_0x53bb5a['actionView']['bind']('isEnabled')['to'](_0x538f5c,'isEnabled'),_0x53bb5a['arrowView']['bind']('isEnabled')['toMany'](_0xdf8cbf,'isEnabled',(..._0x2c9018)=>_0x2c9018['some'](_0x2a67e3=>_0x2a67e3)),_0x148309['on']('execute',_0x5866e9=>{this['editor']['execute'](_0x5866e9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x148309;}['_createMenuBarMenu'](_0x562644,_0x48c101,_0x3f5f1a){const _0x45d915=new Yt(_0x562644),_0x120437=this['editor']['commands']['get']('trackChanges');_0x45d915['buttonView']['set']({'label':_0x3f5f1a,'icon':he});const _0x202bf0=new Zt(_0x562644);for(const _0x530f2a of _0x48c101){if('separator'==_0x530f2a['type']){_0x202bf0['items']['add'](new Xt(_0x562644));continue;}const _0x4fb5a4=new te(_0x562644,_0x45d915),_0x1c8745=new _0x38d913(_0x562644),_0x51c2c9=_0x530f2a['model'];_0x1c8745['bind'](...Object['keys'](_0x51c2c9))['to'](_0x51c2c9),_0x1c8745['delegate']('execute')['to'](_0x45d915),_0x1c8745['on']('execute',()=>{this['editor']['execute'](_0x51c2c9['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fb5a4['children']['add'](_0x1c8745),_0x202bf0['items']['add'](_0x4fb5a4);}return _0x45d915['bind']('isEnabled')['to'](_0x120437,'isEnabled'),_0x45d915['panelView']['children']['add'](_0x202bf0),_0x45d915;}['_initializeController'](_0x2e02df){const _0x1d09ef=this['editor'],_0x5d6742=_0x1d09ef['config'],_0x3083eb=_0x1d09ef['plugins']['get']('Annotations'),_0x5a9499=_0x1d09ef['plugins']['get']('CommentsRepository'),_0x238109=_0x1d09ef['plugins']['get']('EditorAnnotations'),_0x4e04f6=_0x1d09ef['plugins']['get'](_0x4d313f)['me'],_0x19f17f=_0x5d6742['get']('trackChanges')['SuggestionThreadView'],_0x3f5385=_0x5d6742['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2c5d4d,CommentThreadInputView:_0x197cc2}=_0x1d09ef['plugins']['get']('CommentsUI');let _0x3b5dcc,_0x4436cf,_0x1f3e03;this['_annotationViews']['has'](_0x2e02df['id'])?(_0x4436cf=this['_annotationViews']['get'](_0x2e02df['id']),_0x3b5dcc=_0x4436cf['mainView']):(_0x3b5dcc=new _0x19f17f(_0x1d09ef['locale'],_0x2e02df,_0x4e04f6,{'disableComments':this['_disableComments'],'editorConfig':_0x5d6742['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5d6742['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5d6742['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5d6742['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x131ec3(_0x5d6742['get']('locale')),'CommentView':_0x5d6742['get']('comments')['CommentView'],'CommentsListView':_0x2c5d4d,'CommentThreadInputView':_0x197cc2,'SuggestionView':_0x3f5385}),_0x3b5dcc['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d09ef['editing']['view']['focus']();}),_0x3b5dcc['suggestionView']['discardButton']['on']('execute',()=>{_0x1d09ef['editing']['view']['focus']();}),_0x4436cf=_0x3083eb['createAnnotationView'](this['editor']['locale'],_0x3b5dcc),_0x4436cf['bind']('isDirty')['to'](_0x3b5dcc,'isDirty'),_0x4436cf['bind']('length')['to'](_0x3b5dcc),_0x4436cf['bind']('type')['to'](_0x3b5dcc,'type',_0x11abce=>'suggestion-'+_0x11abce),_0x3b5dcc['on']('escape',()=>{_0x1f3e03['fire']('escape');}),this['_annotationViews']['set'](_0x2e02df['id'],_0x4436cf));const _0x497d2b=_0x5a9499['createCommentThreadController'](_0x2e02df['commentThread'],_0x3b5dcc),_0x21c8bd=new ae(_0x1d09ef,_0x2e02df,_0x3b5dcc,_0x497d2b),_0x1f42d9=_0x2e02df['getAllAdjacentSuggestions']()['filter'](_0x4d18df=>_0x4d18df['isInContent']);_0x3b5dcc['descriptionParts']=_0x1d09ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f42d9),this['_suggestionToController']['set'](_0x2e02df,_0x21c8bd),this['_viewToController']['set'](_0x3b5dcc,_0x21c8bd),_0x1f3e03=_0x3083eb['createAnnotation']({'view':_0x4436cf,'target':()=>{const _0x577645=[],_0x387550=_0x2e02df['getAllAdjacentSuggestions']()['filter'](_0x1a72e0=>_0x1a72e0['isInContent']);for(const _0x43a1d7 of _0x387550)_0x577645['push'](..._0x43a1d7['getMarkers']());return _0x418d9a(_0x1d09ef['editing'],_0x577645);},'type':()=>'suggestion-'+_0x21c8bd['view']['type']}),_0x5a9499['_bindAnnotationToEditors'](_0x3b5dcc,_0x1f3e03),_0x3083eb['add'](_0x1f3e03),_0x238109['registerAnnotation'](_0x1f3e03);}['_destroyController'](_0x388396){const _0x3bcf01=this['editor']['plugins']['get']('CommentsRepository'),_0x2c9862=this['editor']['plugins']['get']('Annotations'),_0x10cffd=this['_suggestionToController']['get'](_0x388396),_0x47f81a=_0x10cffd['view'],_0x48d5a3=_0x2c9862['getByInnerView'](_0x47f81a);_0x3bcf01['_unbindEditors'](_0x47f81a),_0x48d5a3&&_0x2c9862['remove'](_0x48d5a3),this['_suggestionToController']['delete'](_0x388396),this['_viewToController']['delete'](_0x47f81a),_0x10cffd['destroy']();}['_updateController'](_0x50f19b){if(!_0x50f19b['isInContent']||!this['_suggestionToController']['has'](_0x50f19b))return;const _0x231876=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a778e=this['_suggestionToController']['get'](_0x50f19b),_0x36385a=_0x50f19b['getAllAdjacentSuggestions']();_0x2a778e['view']['descriptionParts']=_0x231876['descriptionFactory']['getDescriptions'](_0x36385a);}['destroy'](){for(const _0x112767 of this['_suggestionToController']['keys']())this['_destroyController'](_0x112767);for(const _0x34a636 of this['_annotationViews']['values']())_0x34a636['mainView']['destroy']();super['destroy']();}}function me(_0x262743){return'model'in _0x262743;}class k extends _0x1530f7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5064ba){this['editor']['plugins']['get'](p)['adapter']=_0x5064ba;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x666bce){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x666bce);}['getSuggestions']({skipNotAttached:_0x196b9c=!0x1,toJSON:_0x138284=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x196b9c,'toJSON':_0x138284});}['getSuggestion'](_0x13cdc6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x13cdc6);}}const T=['Pagination'];class P extends _0x1530f7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4923dd=this['editor'];if(_0x4923dd['config']['define']('trackChangesData.editorCreator',_0x454df2=>{const _0x5e6703=_0x4923dd['model']['document']['getRootNames']()['reduce']((_0x205cf6,_0x5a5967)=>(_0x205cf6[_0x5a5967]='',_0x205cf6),{});return _0x4923dd['constructor']['create'](_0x5e6703,_0x454df2);}),'function'!=typeof _0x4923dd['config']['get']('trackChangesData')['editorCreator'])throw new _0x36031a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7b4078){return N(this['editor'],!0x0,_0x7b4078);}['getDataWithDiscardedSuggestions'](_0x5432f8){return N(this['editor'],!0x1,_0x5432f8);}}class D extends _0x1530f7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1359bf){super(_0x1359bf),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x5cc586){return void 0x0!==_0x5cc586['getRootsAttributes'];}async function N(_0x33a9cf,_0xdacc18,_0x380d24){const _0x3155e7=_0x55d533(_0x33a9cf,T);_0x3155e7['plugins']['push'](p,D),_0x3155e7['rootsAttributes']=v(_0x33a9cf)?_0x33a9cf['getRootsAttributes']():void 0x0;const _0xe1e9c0=document['createDocumentFragment'](),_0x1647a3=_0x33a9cf['config']['get']('trackChangesData')['editorCreator'],_0x816e64=await _0x1647a3(_0x3155e7,()=>function(_0x62e17b){const _0x348b9b=document['createElement']('div');return _0x62e17b['appendChild'](_0x348b9b),_0x348b9b;}(_0xe1e9c0));!function(_0x20ae85,_0x49895c){const _0x28a5b8=_0x20ae85['model']['document']['getRootNames']()['reduce']((_0x3baa4e,_0x1cb61b)=>(_0x3baa4e[_0x1cb61b]=_0x20ae85['data']['get']({'rootName':_0x1cb61b}),_0x3baa4e),{}),_0x132b63=_0x20ae85['plugins']['get']('Users')['users']['map'](_0x736d6=>({'id':_0x736d6['id'],'name':_0x736d6['name']})),_0x8122f7=_0x20ae85['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x62aa90=_0x20ae85['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2804a5=_0x49895c['plugins']['get']('Users'),_0x31e740=_0x49895c['plugins']['get']('TrackChangesEditing'),_0x4ff362=_0x49895c['plugins']['get']('CommentsRepository');for(const _0x265551 of _0x4ff362['getCommentThreads']())_0x265551['remove']();for(const _0x57b416 of _0x132b63)_0x2804a5['getUser'](_0x57b416['id'])||_0x2804a5['addUser'](_0x57b416);_0x2804a5['me']||_0x2804a5['useAnonymousUser']();for(const _0xa11c5 of _0x62aa90)_0x4ff362['addCommentThread'](_0xa11c5);for(const _0x137eb6 of _0x8122f7)_0x31e740['addSuggestionData'](_0x137eb6);_0x49895c['data']['set'](_0x28a5b8);}(_0x33a9cf,_0x816e64),_0x816e64['execute'](_0xdacc18?'acceptAllSuggestions':'discardAllSuggestions');const _0x27f1d5=v(_0x816e64)?_0x816e64['getFullData'](_0x380d24):_0x816e64['data']['get'](_0x380d24);return await _0x816e64['destroy'](),_0x27f1d5;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};