@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240604.1 → 0.0.0-nightly-20240605.1

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 (165) 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 +3 -3
  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/multilevellist.js +1 -1
  136. package/src/integrations/pagebreak.js +1 -1
  137. package/src/integrations/paragraph.js +1 -1
  138. package/src/integrations/removeformat.js +1 -1
  139. package/src/integrations/restrictededitingmode.js +1 -1
  140. package/src/integrations/shiftentercommand.js +1 -1
  141. package/src/integrations/standardeditingmode.js +1 -1
  142. package/src/integrations/style.js +1 -1
  143. package/src/integrations/table.js +1 -1
  144. package/src/integrations/tablecaption.js +1 -1
  145. package/src/integrations/tableclipboard.js +1 -1
  146. package/src/integrations/tablecolumnresize.js +1 -1
  147. package/src/integrations/tableheadings.js +1 -1
  148. package/src/integrations/tablemergesplit.js +1 -1
  149. package/src/integrations/tableofcontents.js +1 -1
  150. package/src/integrations/tableproperties.js +1 -1
  151. package/src/integrations/template.js +1 -1
  152. package/src/integrations/title.js +1 -1
  153. package/src/integrations/undo.js +1 -1
  154. package/src/integrations/utils.js +1 -1
  155. package/src/suggestion.js +2 -2
  156. package/src/suggestiondescriptionfactory.js +1 -1
  157. package/src/trackchanges.js +1 -1
  158. package/src/trackchangesdata.js +1 -1
  159. package/src/trackchangesediting.js +1 -1
  160. package/src/trackchangesui.js +1 -1
  161. package/src/ui/suggestioncontroller.js +2 -2
  162. package/src/ui/view/basesuggestionthreadview.js +1 -1
  163. package/src/ui/view/suggestionthreadview.js +1 -1
  164. package/src/utils/common-translations.js +1 -1
  165. 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 _0x5fedcf,PendingActions as _0x172bf7,icons as _0x50efe0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x53634f,ObservableMixin as _0x5e1345,uid as _0x5eb2de,insertToPriorityArray as _0x2f95aa,priorities as _0x47f188,logWarning as _0x35335f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x13c288,View as _0x5f4b6c,ButtonView as _0x229c44,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1a431f,hashObject as _0x32036b,surroundingMarkersDetector as _0x34913f,trimHtml as _0xb00db3,UserView as _0x23c466,getDateTimeFormatter as _0x460155,getAllMarkersDomElementsSorted as _0x4c368d,sanitizeEditorConfig as _0xd47207}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x119aac,LiveRange as _0x10487e,LivePosition as _0x149d69}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x34badc,toWidget as _0x492154}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x19658e,set as _0x306abb,isEqual as _0x4b55d5,unset as _0x3b90a8,omit as Bt}from'lodash-es';import{Delete as _0x363ec9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x322364,ShiftEnter as _0x27fae9}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x21f971,_0x14a276){super(_0x21f971),this['_enabledCommands']=_0x14a276,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 _0x205fd2 of this['editor']['commands']['commands']())_0x205fd2['affectsData']&&!this['_enabledCommands']['has'](_0x205fd2)&&_0x205fd2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5c8ede of this['editor']['commands']['commands']())_0x5c8ede['affectsData']&&!this['_enabledCommands']['has'](_0x5c8ede)&&_0x5c8ede['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x1a86ad,_0x2eb5e3){super(_0x1a86ad),this['_suggestions']=_0x2eb5e3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x561b60){const _0x439501=this['_suggestions']['get'](_0x561b60);if(!_0x439501)throw new _0x53634f('track-changes-accept-suggestion-not-found',this);const _0x228f5b=_0x439501['getRanges']();this['editor']['model']['canEditAt'](_0x228f5b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x439501);}}class B extends ts{['_suggestions'];constructor(_0x46800d,_0x46b2af){super(_0x46800d),this['_suggestions']=_0x46b2af,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x575325){const _0x4ba0b1=this['_suggestions']['get'](_0x575325);if(!_0x4ba0b1)throw new _0x53634f('track-changes-discard-suggestion-not-found',this);const _0x2e32a0=_0x4ba0b1['getRanges']();this['editor']['model']['canEditAt'](_0x2e32a0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4ba0b1);}}function ss(_0x35c7a9){return _0x35c7a9['sort']((_0x4e43d6,_0x3ca3fb)=>'deletion'==_0x4e43d6['type']&&'deletion'!=_0x3ca3fb['type']?-0x1:'deletion'!=_0x4e43d6['type']&&'deletion'==_0x3ca3fb['type']?0x1:0x0);}function to(_0x39c56f,_0x4f7843){let _0x3b620e,_0x1aab44=0x0;const _0x131f31=[],_0x4a5057=_0x4f7843['schema'];for(;_0x1aab44<_0x39c56f['length'];){const _0x249bd1=_0x39c56f[_0x1aab44],_0x10f41d=_0x39c56f[_0x1aab44+0x1];_0x3b620e||(_0x3b620e=_0x4f7843['createPositionBefore'](_0x249bd1)),co(_0x4f7843,_0x249bd1,_0x10f41d)||(_0x131f31['push'](_0x4f7843['createRange'](_0x3b620e,_0x4a5057['isObject'](_0x249bd1)?_0x4f7843['createPositionAfter'](_0x249bd1):_0x4f7843['createPositionAt'](_0x249bd1,'end'))),_0x3b620e=null),_0x1aab44++;}return _0x131f31;}function co(_0x1a7f90,_0x229c5a,_0x4eddc1){if(!_0x4eddc1)return!0x1;const _0x263588=_0x1a7f90['createPositionAfter'](_0x229c5a),_0x349e80=_0x1a7f90['createPositionBefore'](_0x4eddc1);return _0x263588['isTouching'](_0x349e80);}function rs(_0xed48a7,_0x5dbb5f,_0x4ceae5){for(;_0x4ceae5['length'];){const _0x52a6ee=_0x4ceae5['splice'](0x0,0x64);_0xed48a7['change'](()=>{for(const _0x3955e2 of _0x52a6ee)_0x3955e2['isInContent']&&_0x5dbb5f['execute'](_0x3955e2['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x1edaba,_0x22f0fa,_0x54b20f){super(_0x1edaba),this['_command']=_0x22f0fa,this['_suggestions']=_0x54b20f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1949fe=Array['from'](this['_suggestions']['values']())['some'](_0x7e7982=>_0x7e7982['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1949fe;}['execute'](){const _0x231930=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4f45bc of _0x231930){const _0x303417=_0x4f45bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x303417))return;}rs(this['editor']['model'],this['_command'],_0x231930);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x51e6b0,_0x1d0b05,_0x1209e9){super(_0x51e6b0),this['_command']=_0x1d0b05,this['_suggestions']=_0x1209e9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x544455=this['editor']['model']['document']['selection'],_0x293a21=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x34c6ca,_0x41d1d5){const _0x94e6c5=Array['from'](_0x34c6ca['getRanges']()),_0x29bb66=new Set();for(const _0x4c07ef of _0x41d1d5)if(_0x4c07ef['isInContent']){for(const _0x1b56ce of _0x94e6c5)for(const _0x17bb5f of _0x4c07ef['getRanges']())(_0x1b56ce['isIntersecting'](_0x17bb5f)||_0x34c6ca['isCollapsed']&&!_0x4c07ef['isMultiRange']&&_0x4c07ef['next']&&_0x17bb5f['end']['isTouching'](_0x1b56ce['start']))&&_0x29bb66['add'](_0x4c07ef);}return _0x29bb66;}(_0x544455,_0x293a21),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2a5556=ss(Array['from'](this['_selectedSuggestions']));for(const _0x133d64 of _0x2a5556){const _0x3314e2=_0x133d64['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3314e2))return;}rs(this['editor']['model'],this['_command'],_0x2a5556);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5e1345(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1d2392,_0x4fab85){super(),this['id']=_0x4fab85['id'],this['type']=_0x4fab85['type'],this['subType']=_0x4fab85['subType']||null,this['author']=_0x4fab85['author'],this['creator']=_0x4fab85['creator']||_0x4fab85['author'],this['isExternal']=Boolean(_0x4fab85['attributes']&&_0x4fab85['attributes']['@external']),this['data']=null,this['_model']=_0x1d2392,this['_onAccept']=_0x4fab85['onAccept'],this['_onDiscard']=_0x4fab85['onDiscard'],this['_onAttributesChange']=_0x4fab85['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4fab85['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 _0x5115dd=this;for(;_0x5115dd['previous'];)_0x5115dd=_0x5115dd['previous'];return _0x5115dd;}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'](_0x14ef95){this['_markerNames']['add'](_0x14ef95);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2e703e=>this['_model']['markers']['get'](_0x2e703e))['filter'](_0x5c3bfb=>_0x5c3bfb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x59149f=>{for(const _0x1a473a of this['getMarkers']())_0x59149f['removeMarker'](_0x1a473a);}),this['_markerNames']['clear']();}['removeMarker'](_0x39dfb4){this['_model']['change'](_0x4dea9a=>{_0x4dea9a['removeMarker'](_0x39dfb4);}),this['_markerNames']['delete'](_0x39dfb4);}['addRange'](_0x46320d){const _0x12c23b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x12c23b),this['_model']['change'](_0x3658ff=>{_0x3658ff['addMarker'](_0x12c23b,{'range':_0x46320d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x589bb3){for(const _0x152bc3 of this['getRanges']())if(_0x152bc3['isIntersecting'](_0x589bb3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x34131e=>_0x34131e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x15754c,_0x45f3be)=>[..._0x15754c,..._0x45f3be['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6628a5=this['getRanges']();if(0x1!=_0x6628a5['length'])return null;const _0x304324=_0x6628a5[0x0],_0x4f91ca=_0x304324['start']['nodeAfter'],_0x1d29ab=_0x304324['end']['nodeBefore'];return _0x4f91ca instanceof _0x119aac?_0x4f91ca!=_0x1d29ab?null:_0x4f91ca: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 _0x305648=[];let _0x440a38=this['head'];for(;_0x440a38;)_0x305648['push'](_0x440a38),_0x440a38=_0x440a38['next'];return _0x305648;}['setAttribute'](_0x105960,_0x850416){const _0x12071c=_0x19658e(this['attributes']);_0x306abb(_0x12071c,_0x105960,_0x850416),_0x4b55d5(_0x12071c,this['attributes'])||(this['attributes']=_0x12071c,this['_onAttributesChange'](_0x12071c));}['removeAttribute'](_0x44eeb6){const _0x12eb2e=_0x19658e(this['attributes']);_0x3b90a8(_0x12eb2e,_0x44eeb6),_0x4b55d5(_0x12eb2e,this['attributes'])||(this['attributes']=_0x12eb2e,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 _0x5eb2de()['substr'](0x1,0x5);}}function o(_0x30b656,_0x341666,_0x40c210){const t=_0x30b656['t'];switch(_0x341666){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',_0x40c210);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x40c210);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x40c210);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x40c210);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x40c210);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',_0x40c210);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x40c210);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',_0x40c210);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x40c210);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x40c210);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x40c210);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x40c210);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x40c210);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x40c210);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x40c210);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x40c210);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x40c210);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x40c210);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x40c210);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x40c210);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x40c210);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x40c210);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x40c210);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'},_0x40c210);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x40c210);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x40c210);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x40c210);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x40c210);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x40c210);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'},_0x40c210);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x40c210);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x40c210);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x40c210);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x40c210);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'},_0x40c210);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x40c210);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'},_0x40c210);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'},_0x40c210);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x40c210);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'},_0x40c210);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x40c210);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'},_0x40c210);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x40c210);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x40c210);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x40c210);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'},_0x40c210);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x341666;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4455c6,_0x444d9a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4455c6,this['_locale']=_0x444d9a;}['getDescriptions'](_0x5966a3){const _0x4f5dd6=[],_0x38966f=new Set(),_0x44ea18=new Set();for(let _0x36f644=0x0;_0x36f644<_0x5966a3['length'];_0x36f644++){const _0x8a5264=_0x5966a3[_0x36f644];if(!_0x8a5264['isInContent'])continue;const _0x31a950=this['_handleCustomCallbackDescription'](_0x8a5264);if(_0x31a950){if(null!=_0x8a5264['subType']){if(_0x38966f['has'](_0x8a5264['subType']))continue;_0x38966f['add'](_0x8a5264['subType']);}_0x4f5dd6['push'](_0x31a950);}else{if('attribute'!=_0x8a5264['type'])'insertion'!=_0x8a5264['type']&&'deletion'!=_0x8a5264['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4f5dd6,_0x8a5264,_0x5966a3[_0x36f644+0x1]);else{const _0x551282=_0x8a5264['data']['key'];if(_0x44ea18['has'](_0x551282))continue;_0x44ea18['add'](_0x8a5264['data']['key']),_0x551282==m?this['_handleRenameSuggestionDescription'](_0x4f5dd6,_0x8a5264):this['_handleAttributeSuggestionDescription'](_0x4f5dd6,_0x8a5264);}}}return this['_resolveDescriptionItems'](_0x4f5dd6);}['registerDescriptionCallback'](_0xa40726){this['_customCallbacks']['push'](_0xa40726);}['registerElementLabel'](_0x3a73f8,_0x194515,_0xfb391a=_0x47f188['normal']){'function'==typeof _0x3a73f8?_0x2f95aa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3a73f8,'label':_0x194515,'priority':_0xfb391a}):this['_itemLabels']['set'](_0x3a73f8,_0x194515);}['registerAttributeLabel'](_0x3dd274,_0x503a8a){this['_attributeLabels']['set'](_0x3dd274,_0x503a8a);}['getItemLabel'](_0x3e9c00,_0x28ef89=0x1){let _0x2cf6f5;for(const _0x4f31b6 of this['_itemLabelsCallbacks'])if(_0x4f31b6['matchingCallback'](_0x3e9c00)){_0x2cf6f5=_0x4f31b6['label'];break;}return _0x2cf6f5||(_0x2cf6f5=this['_itemLabels']['get'](_0x3e9c00['name'])),_0x2cf6f5?_0x2cf6f5(_0x28ef89):0x1!==_0x28ef89?_0x28ef89+'\x20'+_0x3e9c00['name']+'s':''+_0x3e9c00['name'];}['_addDescriptionItems'](_0x26df7f,_0x3e38ae){const _0x33a1aa=_0x3e38ae['getFirstRange']()['getWalker'](),_0x126e4c='insertion'==_0x3e38ae['type']?'add':'remove';for(const _0x204cdf of _0x33a1aa){const _0x42c957=_0x204cdf['item'],_0x13fd40=_0x26df7f[_0x26df7f['length']-0x1];if(_0x42c957['is']('$textProxy'))_0x13fd40&&_0x13fd40['type']['indexOf']('Container')>-0x1&&_0x26df7f['pop'](),_0x13fd40&&'text'==_0x13fd40['type']?_0x13fd40[_0x126e4c]+=_0x42c957['data']:_0x26df7f['push']({'type':'text','add':'add'==_0x126e4c?_0x42c957['data']:'','remove':'remove'==_0x126e4c?_0x42c957['data']:''});else{if(this['_schema']['isObject'](_0x42c957)){const _0x21d887=_0x42c957;if(_0x13fd40&&_0x13fd40['type']['indexOf']('Container')>-0x1&&_0x26df7f['pop'](),'elementEnd'==_0x204cdf['type'])continue;_0x13fd40&&_0x13fd40['type']==_0x126e4c+'Object'&&_0x13fd40['element']['name']==_0x21d887['name']?_0x13fd40['quantity']++:_0x26df7f['push']({'type':_0x126e4c+'Object','element':_0x21d887,'quantity':0x1}),_0x33a1aa['skip'](_0x3554da=>!('elementEnd'==_0x3554da['type']&&_0x3554da['item']==_0x42c957));}else{if(this['_schema']['checkChild'](_0x42c957,'$text')||_0x42c957['is']('element','softBreak')){const _0xb2bff2=_0x42c957;if('add'==_0x126e4c&&'elementStart'==_0x204cdf['type']||'remove'==_0x126e4c&&'elementEnd'==_0x204cdf['type'])continue;if(_0x13fd40&&-0x1==_0x13fd40['type']['indexOf']('Container')){'text'==_0x13fd40['type']&&(_0x13fd40[_0x126e4c]+='\x0a');continue;}let _0x131c29;if(_0x131c29='add'==_0x126e4c?_0xb2bff2['nextSibling']&&!this['_schema']['isObject'](_0xb2bff2['nextSibling'])?_0xb2bff2['nextSibling']:null:_0xb2bff2['previousSibling']&&!this['_schema']['isObject'](_0xb2bff2['previousSibling'])?_0xb2bff2['previousSibling']:null,_0xb2bff2['isEmpty']||_0x131c29&&_0x131c29['isEmpty']){const _0x2a6249=_0x131c29&&_0x131c29['isEmpty']?_0x131c29:_0xb2bff2;_0x13fd40&&_0x13fd40['type']==_0x126e4c+'EmptyContainer'&&_0x13fd40['element']['name']==_0x2a6249['name']?_0x13fd40['quantity']++:_0x26df7f['push']({'type':_0x126e4c+'EmptyContainer','element':_0x2a6249,'quantity':0x1});}else _0x26df7f['push']({'type':_0x126e4c+'Container','element':_0xb2bff2});}}}}}['_resolveDescriptionItems'](_0x521e72){const _0x55a9e0=this['_locale'],_0x423bbd=[],_0x1a8eb8=[],_0x410de6=[];for(const _0x45be69 of _0x521e72)switch(_0x45be69['type']){case'text':if(_0x45be69['add']=_0x45be69['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45be69['remove']=_0x45be69['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45be69['add']&&''!=_0x45be69['remove']){_0x423bbd['push']({'type':'replace','content':o(_0x55a9e0,'REPLACE_TEXT',['\x22'+_0x45be69['remove']+'\x22','\x22'+_0x45be69['add']+'\x22'])});continue;}if(null!=_0x45be69['add']['match'](/^ +$/)){_0x423bbd['push']({'type':'insertion','content':o(_0x55a9e0,'*Insert:*\x20%0',o(_0x55a9e0,'ELEMENT_SPACE',_0x45be69['add']['length']))});continue;}if(null!=_0x45be69['remove']['match'](/^ +$/)){_0x423bbd['push']({'type':'deletion','content':o(_0x55a9e0,'*Remove:*\x20%0',o(_0x55a9e0,'ELEMENT_SPACE',_0x45be69['remove']['length']))});continue;}if(''!=_0x45be69['add']){_0x423bbd['push']({'type':'insertion','content':o(_0x55a9e0,'*Insert:*\x20%0','\x22'+_0x45be69['add']+'\x22')});continue;}_0x423bbd['push']({'type':'deletion','content':o(_0x55a9e0,'*Remove:*\x20%0','\x22'+_0x45be69['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x423bbd['push']({'type':'insertion','content':o(_0x55a9e0,'*Insert:*\x20%0',this['getItemLabel'](_0x45be69['element'],_0x45be69['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x423bbd['push']({'type':'deletion','content':o(_0x55a9e0,'*Remove:*\x20%0',this['getItemLabel'](_0x45be69['element'],_0x45be69['quantity']))});continue;case'addContainer':_0x423bbd['push']({'type':'insertion','content':o(_0x55a9e0,'*Split:*\x20%0',this['getItemLabel'](_0x45be69['element'],_0x45be69['quantity']))});continue;case'removeContainer':_0x423bbd['push']({'type':'deletion','content':o(_0x55a9e0,'*Merge:*\x20%0',this['getItemLabel'](_0x45be69['element'],_0x45be69['quantity']))});continue;case'addFormat':_0x1a8eb8['push'](_0x45be69['key']);continue;case'removeFormat':_0x410de6['push'](_0x45be69['key']);continue;default:_0x423bbd['push'](_0x45be69);}if(_0x1a8eb8['length']){const _0x3fa0b8=_0x1a8eb8['map'](_0x24a6d1=>this['_attributeLabels']['has'](_0x24a6d1)?this['_attributeLabels']['get'](_0x24a6d1):_0x24a6d1)['join'](',\x20');_0x423bbd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3fa0b8)});}if(_0x410de6['length']){const _0x1225ee=_0x410de6['map'](_0x196837=>this['_attributeLabels']['has'](_0x196837)?this['_attributeLabels']['get'](_0x196837):_0x196837)['join'](',\x20');_0x423bbd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1225ee)});}return _0x423bbd;}['_handleCustomCallbackDescription'](_0xbbebb3){for(const _0x1cf728 of this['_customCallbacks']){const _0x5513d1=_0x1cf728(_0xbbebb3);if(_0x5513d1&&'type'in _0x5513d1)return _0x5513d1;}}['_handleAttributeSuggestionDescription'](_0x1ff38b,_0x7667a5){const _0x39e6e8=_0x7667a5['data'],_0x175c12=void 0x0===_0x39e6e8['newValue']?'removeFormat':'addFormat';_0x1ff38b['push']({'type':_0x175c12,'key':_0x39e6e8['key']});}['_handleRenameSuggestionDescription'](_0x2f5090,_0x22c0e0){_0x2f5090['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x22c0e0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4cad00,_0x1b3217,_0x2403fd){if(this['_addDescriptionItems'](_0x4cad00,_0x1b3217),_0x2403fd&&_0x2403fd['getFirstRange']()&&!_0x1b3217['getFirstRange']()['end']['isEqual'](_0x2403fd['getFirstRange']()['start'])){const _0x40288a=_0x4cad00[_0x4cad00['length']-0x1],_0x1accc6='insertion'==_0x1b3217['type']?'add':'remove';_0x40288a&&'text'==_0x40288a['type']&&(_0x40288a[_0x1accc6]+='\x0a');}}}class E extends _0x5fedcf{['afterInit'](){const _0x5548b8=this['editor'],_0x351f6f=_0x5548b8['plugins']['get']('TrackChangesEditing');_0x5548b8['commands']['get']('showAIAssistant')&&_0x351f6f['enableCommand']('showAIAssistant');}}class V extends _0x5fedcf{['afterInit'](){const _0x10b0ed=this['editor'],_0xdfe05e=_0x10b0ed['locale'];if(!_0x10b0ed['plugins']['has']('AlignmentEditing'))return;const _0x5e2529=_0x10b0ed['plugins']['get']('TrackChangesEditing');_0x5e2529['enableDefaultAttributesIntegration']('alignment'),_0x5e2529['registerBlockAttribute']('alignment'),_0x5e2529['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xdfe05e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x224a92=this['editor'],_0x9d1c2e=_0x224a92['locale'];_0x224a92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bfe6c=>{if('formatBlock'!=_0x1bfe6c['type'])return;const {data:_0x2d5771}=_0x1bfe6c;if(_0x2d5771&&'alignment'==_0x2d5771['commandName']){const _0x5c3202=_0x2d5771['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x9d1c2e,'*Format:*\x20%0',function(_0x3f7696){switch(_0x3f7696){case'left':return o(_0x9d1c2e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x9d1c2e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x9d1c2e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x9d1c2e,'FORMAT_JUSTIFY_TEXT');}}(_0x5c3202))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5fedcf{['afterInit'](){const _0x481bb8=this['editor'],_0x16d826=_0x481bb8['plugins']['get']('TrackChangesEditing'),_0x5ecde0=_0x481bb8['locale'];for(const _0x5104da of ti){if(!_0x481bb8['plugins']['has'](_0x5104da))continue;const _0x332c62=_0x5104da['slice'](0x0,-0x7)['toLowerCase'](),_0x5efb9a='FORMAT_'+_0x332c62['toUpperCase']();_0x16d826['enableDefaultAttributesIntegration'](_0x332c62),_0x16d826['registerInlineAttribute'](_0x332c62),_0x16d826['descriptionFactory']['registerAttributeLabel'](_0x332c62,o(_0x5ecde0,_0x5efb9a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc1d96d=this['editor'],_0x12836c=_0xc1d96d['locale'],_0x573dff=_0xc1d96d['plugins']['get']('TrackChangesEditing');function _0x4bcb33(_0x28efdc,_0x311e94){_0x573dff['descriptionFactory']['registerDescriptionCallback'](_0x5d3856=>{if('formatInline'!=_0x5d3856['type'])return;const {data:_0x1c75e2}=_0x5d3856;return _0x1c75e2&&_0x1c75e2['commandName']===_0x28efdc?_0x1c75e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12836c,'*Format:*\x20%0',_0x311e94)}:{'type':'format','content':o(_0x12836c,'*Remove\x20format:*\x20%0',_0x311e94)}:void 0x0;});}_0x4bcb33('bold',o(_0x12836c,'FORMAT_BOLD')),_0x4bcb33('italic',o(_0x12836c,'FORMAT_ITALIC')),_0x4bcb33('underline',o(_0x12836c,'FORMAT_UNDERLINE')),_0x4bcb33('code',o(_0x12836c,'FORMAT_CODE')),_0x4bcb33('strikethrough',o(_0x12836c,'FORMAT_STRIKETHROUGH')),_0x4bcb33('subscript',o(_0x12836c,'FORMAT_SUBSCRIPT')),_0x4bcb33('superscript',o(_0x12836c,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5fedcf{['afterInit'](){const _0xda8e4c=this['editor'],_0x160e7c=_0xda8e4c['locale'];if(!_0xda8e4c['plugins']['has']('BlockQuoteEditing'))return;const _0x567894=_0xda8e4c['plugins']['get']('TrackChangesEditing'),_0x18e2e2=this['editor']['commands']['get']('blockQuote');_0x567894['enableCommand']('blockQuote',(_0x35ffd4,_0x282d76={})=>{const _0x1ac0f3=this['editor']['model']['document']['selection'],_0x14a0a1=_0x282d76&&void 0x0!==_0x282d76['forceValue']?_0x282d76['forceValue']:!_0x18e2e2['value'];let _0x50ed59=[];if(_0x14a0a1){const _0x1fc5de=Array['from'](_0x1ac0f3['getSelectedBlocks']())['filter'](_0x1eac8e=>oo(_0x1eac8e)||function(_0x403653,_0x5bdefa){const _0x27e3d2=_0x5bdefa['checkChild'](_0x403653['parent'],'blockQuote'),_0xd51347=_0x5bdefa['checkChild'](['$root','blockQuote'],_0x403653);return _0x27e3d2&&_0xd51347;}(_0x1eac8e,this['editor']['model']['schema']));_0x50ed59=to(_0x1fc5de,_0xda8e4c['model']);}else{const _0x2857d6=Array['from'](_0x1ac0f3['getSelectedBlocks']())['filter'](_0x155c05=>oo(_0x155c05));_0x50ed59=to(_0x2857d6,_0xda8e4c['model']);}_0xda8e4c['model']['change'](()=>{for(const _0x4faeed of _0x50ed59)_0x567894['markBlockFormat'](_0x4faeed,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14a0a1}]});});}),_0x567894['descriptionFactory']['registerDescriptionCallback'](_0x4c6669=>{const {data:_0x5019aa}=_0x4c6669;if(_0x5019aa&&'blockQuote'==_0x5019aa['commandName']){const _0x20be1c=o(_0x160e7c,'ELEMENT_BLOCK_QUOTE');return _0x5019aa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x160e7c,'*Set\x20format:*\x20%0',_0x20be1c)}:{'type':'format','content':o(_0x160e7c,'*Remove\x20format:*\x20%0',_0x20be1c)};}});}}function oo(_0x12c31d){return'blockQuote'==_0x12c31d['parent']['name'];}class G extends _0x5fedcf{['afterInit'](){const _0x40dbdd=this['editor'];_0x40dbdd['plugins']['has']('CaseChange')&&(_0x40dbdd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x40dbdd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x40dbdd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5fedcf{['afterInit'](){const _0x1b366c=this['editor'];_0x1b366c['commands']['get']('ckbox')&&_0x1b366c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5fedcf{['afterInit'](){const _0x4f0780=this['editor'];if(!_0x4f0780['plugins']['has']('CodeBlock'))return;const _0x38b029=_0x4f0780['plugins']['get']('TrackChangesEditing'),_0x403360=_0x4f0780['locale'],_0x50c7cd=_0x4f0780['config']['get']('codeBlock')['languages'],_0x2d37b6=_0x4f0780['commands']['get']('codeBlock');_0x38b029['enableCommand']('indentCodeBlock'),_0x38b029['enableCommand']('outdentCodeBlock'),_0x38b029['enableCommand']('codeBlock',(_0x4ea46e,_0x56acbb={})=>{const _0x3ceada=_0x4f0780['model'],_0x297603=_0x4f0780['model']['document']['selection'],_0x1e28b7=_0x56acbb&&void 0x0!==_0x56acbb['forceValue']?_0x56acbb['forceValue']:!_0x2d37b6['value'];let _0x270f93;_0x56acbb['language']||(_0x56acbb['language']=_0x50c7cd[0x0]['language']),_0x270f93=_0x1e28b7?Array['from'](_0x297603['getSelectedBlocks']())['filter'](_0x354f0f=>eo(_0x354f0f)||function(_0x27172b,_0x2804d6){if(_0x27172b['is']('rootElement')||_0x2804d6['isLimit'](_0x27172b))return!0x1;return _0x2804d6['checkChild'](_0x27172b['parent'],'codeBlock');}(_0x354f0f,_0x3ceada['schema'])):Array['from'](_0x297603['getSelectedBlocks']())['filter'](_0x5766d8=>eo(_0x5766d8));const _0x2c819e=to(_0x270f93,_0x3ceada);_0x3ceada['change'](()=>{for(const _0x3071fb of _0x2c819e)_0x38b029['markBlockFormat'](_0x3071fb,{'commandName':'codeBlock','commandParams':[{..._0x56acbb,'forceValue':_0x1e28b7}],'formatGroupId':'blockName'});});}),(_0x38b029['descriptionFactory']['registerElementLabel']('codeBlock',_0x4a4cb8=>o(_0x403360,'ELEMENT_CODE_BLOCK',_0x4a4cb8)),_0x38b029['descriptionFactory']['registerDescriptionCallback'](_0x44cd83=>{if('formatBlock'!=_0x44cd83['type'])return;const _0x2228a3=_0x403360['t'],{data:_0x15f8f8}=_0x44cd83;if(!_0x15f8f8||'codeBlock'!=_0x15f8f8['commandName'])return;const _0x29abe2=_0x15f8f8['commandParams'][0x0]['language'],_0x5e7ede=_0x2228a3(_0x50c7cd['find'](_0x1b5698=>_0x1b5698['language']===_0x29abe2)['label'])['toLowerCase']();return _0x15f8f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x403360,'*Set\x20format:*\x20%0',o(_0x403360,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e7ede+')')}:{'type':'format','content':o(_0x403360,'*Remove\x20format:*\x20%0',o(_0x403360,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5339a9){return'codeBlock'==_0x5339a9['name'];}class H extends _0x5fedcf{['afterInit'](){const _0x2758e6=this['editor'];if(!_0x2758e6['plugins']['has']('CommentsEditing'))return;_0x2758e6['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1d2ace,_0x1b9d1e,_0x481446){const _0x586725=[];for(const _0x407651 of _0x1b9d1e['getItems']())_0x407651['hasAttribute'](_0x1d2ace)&&_0x586725['push'](_0x481446['createRangeOn'](_0x407651));return _0x586725;}function _e(_0x2a1633,_0x81d556,{showActiveMarker:_0x3cd8b6=!0x0}={}){const _0x1b6901=_0x2a1633['plugins']['get']('TrackChangesEditing');return(_0x5076f1,_0x26c31b,_0x5ce22a)=>{if(!_0x5ce22a['consumable']['test'](_0x26c31b['markerRange'],_0x5076f1['name']))return;const _0x707123=_0x26c31b['markerRange']['getWalker'](),_0x4221ca=_0x26c31b['markerRange']['start'],_0xf2554e=_0x2a1633['model']['schema'];let _0x3b2c59=null,_0x4a216a=null,_0x10354f=!0x1,_0xad01d1=!0x1;for(const _0x19ba4d of _0x707123){const _0x10ee68=_0x19ba4d['item'];_0x10354f=_0x10354f||_0xf2554e['isContent'](_0x10ee68);const _0x196616=_0x5ce22a['mapper']['toViewElement'](_0x10ee68);if(_0x196616&&_0x196616['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x19ba4d['type']&&(_0xf2554e['isBlock'](_0x10ee68)&&!_0xf2554e['isLimit'](_0x10ee68)&&(_0x10ee68['nextSibling']||_0x4221ca['isAtEnd']?_0x3b2c59&&_0x3b2c59['parent']==_0x10ee68||(_0x3b2c59=_0x10ee68,_0x580edb(_0x19ba4d['previousPosition']),_0xad01d1=!0x0):_0x4a216a=_0x4a216a||_0x19ba4d['previousPosition']));}function _0x580edb(_0x2fae1d){const _0x247a47=_0x5ce22a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x81d556}),_0x4b7e5b=_0x5ce22a['mapper']['toViewPosition'](_0x2fae1d);_0x3cd8b6&&_0x1b6901['activeMarkers']['includes'](_0x26c31b['markerName'])&&_0x5ce22a['writer']['addClass']('ck-suggestion-marker--active',_0x247a47),_0x5ce22a['writer']['insert'](_0x4b7e5b,_0x247a47),_0x5ce22a['mapper']['bindElementToMarker'](_0x247a47,_0x26c31b['markerName']);}_0x10354f||_0xad01d1||!_0x4a216a||_0x580edb(_0x4a216a);};}class q extends _0x5fedcf{static get['requires'](){return[_0x363ec9];}['init'](){const _0x46d79e=this['editor'],_0x2fab22=_0x46d79e['plugins']['get']('TrackChangesEditing');_0x2fab22['enableCommand']('delete');const _0x5b551a=_0x46d79e['commands']['get']('deleteForward');_0x2fab22['enableCommand']('deleteForward',(_0x53f137,_0x18526f={})=>{const _0xeba5b8=_0x46d79e['model']['createSelection'](_0x46d79e['model']['document']['selection']);_0xeba5b8['isCollapsed']&&_0x46d79e['model']['modifySelection'](_0xeba5b8,{'direction':'forward','unit':_0x18526f['unit']});const _0x244584=_0xeba5b8['getFirstRange'](),_0x8452a6=_0x10487e['fromRange'](_0x244584);let _0x45252a;_0x53f137(_0x18526f),_0x45252a='$graveyard'==_0x8452a6['root']['rootName']?_0x46d79e['model']['createRange'](_0x244584['start']):_0x46d79e['model']['createRange'](_0x8452a6['start'],_0x8452a6['end']),_0x8452a6['detach'](),_0x46d79e['model']['enqueueChange'](_0x5b551a['buffer']['batch'],_0x2c7c46=>{_0x5b551a['buffer']['lock'](),_0x2c7c46['setSelection'](_0x2c7c46['createRange'](_0x45252a['end'])),_0x5b551a['buffer']['unlock']();});}),_0x46d79e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x46d79e,'merge'),{'priority':'high'}),_0x46d79e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x23bb39,_0x244a3c,_0x129401)=>{_0x129401['options']['showSuggestionHighlights']&&_e(_0x46d79e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x23bb39,_0x244a3c,_0x129401);},{'priority':'high'}),_0x46d79e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1c0ea4,_0x4a0a2a,_0x395772)=>{const _0x3b21fc=_0x395772['mapper']['markerNameToElements'](_0x4a0a2a['markerName']);if(_0x3b21fc){for(const _0x6fa4ae of _0x3b21fc)_0x6fa4ae['is']('uiElement')&&(_0x395772['mapper']['unbindElementFromMarkerName'](_0x6fa4ae,_0x4a0a2a['markerName']),_0x395772['writer']['remove'](_0x6fa4ae));}},{'priority':'high'});}}class z extends _0x5fedcf{['afterInit'](){const _0x5c4fd2=this['editor'];if(!_0x5c4fd2['plugins']['has']('ListEditing'))return;const _0x36a722=_0x5c4fd2['locale'],_0x2351f4=_0x5c4fd2['plugins']['get']('TrackChangesEditing'),_0x25b05d=_0x5c4fd2['plugins']['has']('TodoListEditing'),_0x20bcbf=!!_0x5c4fd2['config']['get']('list.multiBlock');function _0x10f7a7(_0x5f2049){return{'type':'format','content':''+o(_0x36a722,'*Set\x20format:*\x20%0',_0x5f2049)};}function _0x599e50(_0x89e4c0){return{'type':'format','content':''+o(_0x36a722,'*Remove\x20format:*\x20%0',_0x89e4c0)};}_0x2351f4['enableDefaultAttributesIntegration']('numberedList'),_0x2351f4['enableDefaultAttributesIntegration']('bulletedList'),_0x2351f4['enableDefaultAttributesIntegration']('customNumberedList'),_0x2351f4['enableDefaultAttributesIntegration']('customBulletedList'),_0x2351f4['enableDefaultAttributesIntegration']('indentList'),_0x2351f4['enableDefaultAttributesIntegration']('outdentList'),_0x2351f4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2351f4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2351f4['registerBlockAttribute']('listItemId'),_0x2351f4['registerBlockAttribute']('listType'),_0x2351f4['registerBlockAttribute']('listIndent'),_0x20bcbf&&(_0x2351f4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2351f4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x25b05d&&(_0x2351f4['enableDefaultAttributesIntegration']('todoList'),_0x2351f4['enableDefaultAttributesIntegration']('checkTodoList'),_0x2351f4['registerBlockAttribute']('todoListChecked'),_0x2351f4['descriptionFactory']['registerDescriptionCallback'](_0x15d62e=>{const {data:_0x562933}=_0x15d62e;if(_0x562933&&'todoListChecked'==_0x562933['key'])return{'type':'format','content':_0x562933['newValue']?o(_0x36a722,'*Check\x20item*'):o(_0x36a722,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5a4d87=>{if(_0x5a4d87['batch']['isUndo'])return!0x1;let _0x52c289=!0x1;const _0x2c69db=_0x2351f4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x389339=>'todoListChecked'===_0x2351f4['_getAttributeKey'](_0x389339));for(const _0x4ed0b8 of _0x2c69db){'todo'!=_0x4ed0b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2351f4['_findSuggestions'](_0x4ed0b8['getFirstRange'](),'attribute')['find'](_0xcbf7e6=>'listType'===_0x2351f4['_getAttributeKey'](_0xcbf7e6['suggestion']))||(_0x5a4d87['removeMarker'](_0x4ed0b8['getFirstMarker']()),_0x52c289=!0x0));}return _0x52c289;})),_0x2351f4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x36a722,'FORMAT_INDENT'));const _0x220d3b={'type':'format','content':''};_0x2351f4['descriptionFactory']['registerDescriptionCallback'](_0x1f5de7=>{const {data:_0x5eaa3c}=_0x1f5de7;if(!_0x5eaa3c||'listType'!=_0x5eaa3c['key'])return;let _0xc7c6db=_0x1f5de7['head'];for(;_0xc7c6db;){if(_0xc7c6db['data']&&(('listStyle'==_0xc7c6db['data']['key']||'listMarkerStyle'==_0xc7c6db['data']['key'])&&(_0xc7c6db['data']['newValue']&&'default'!=_0xc7c6db['data']['newValue']||'default'!=_0xc7c6db['data']['oldValue']&&!_0x5eaa3c['newValue'])||!_0x20bcbf&&_0xc7c6db['data']['key']==m))return _0x220d3b;_0xc7c6db=_0xc7c6db['next'];}if(null==_0x5eaa3c['newValue'])switch(_0x5eaa3c['oldValue']){case'bulleted':return _0x599e50(o(_0x36a722,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x599e50(o(_0x36a722,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x599e50(o(_0x36a722,'ELEMENT_TODO_LIST'));}switch(_0x5eaa3c['newValue']){case'bulleted':return _0x10f7a7(o(_0x36a722,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10f7a7(o(_0x36a722,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10f7a7(o(_0x36a722,'ELEMENT_TODO_LIST'));}}),_0x2351f4['descriptionFactory']['registerDescriptionCallback'](_0xd007b=>{const {data:_0x262f9d}=_0xd007b;if(_0x262f9d&&'listIndent'==_0x262f9d['key'])return null==_0x262f9d['newValue']||null==_0x262f9d['oldValue']&&0x0==_0x262f9d['newValue']?_0x220d3b:void 0x0;}),_0x2351f4['descriptionFactory']['registerDescriptionCallback'](_0x46cd59=>{if('attribute'!=_0x46cd59['type'])return;const {data:_0x25884d}=_0x46cd59;if(!_0x25884d||'listItemId'!=_0x25884d['key'])return;const _0x1fafa8=le(_0x46cd59);return'newValue'==_0x1fafa8?{'type':'format','content':o(_0x36a722,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1fafa8?{'type':'format','content':o(_0x36a722,'*Split:*\x20list\x20item')}:_0x220d3b;}),_0x5c4fd2['model']['document']['registerPostFixer'](_0x3fdda4=>this['listItemIdFixer'](_0x3fdda4)),_0x5c4fd2['model']['document']['registerPostFixer'](_0xefc856=>this['noTrackChangesFixer'](_0xefc856)),_0x5c4fd2['model']['document']['registerPostFixer'](_0x15ba73=>this['assureChains'](_0x15ba73)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x341bc6){if(_0x341bc6['batch']['isUndo']||!_0x341bc6['batch']['isLocal'])return!0x1;let _0x3a55ca=!0x1;const _0x434f9f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x134bdf=>_0x134bdf['data']&&'listItemId'==_0x134bdf['data']['key'])['filter'](_0xe793dd=>_0xe793dd['data']['newValue']&&_0xe793dd['data']['oldValue']);for(const _0x11ade2 of _0x434f9f)le(_0x11ade2)||(_0x341bc6['removeMarker'](_0x11ade2['getFirstMarker']()),_0x3a55ca=!0x0);return _0x3a55ca;}['noTrackChangesFixer'](_0x239af){if(_0x239af['batch']['isUndo']||!_0x239af['batch']['isLocal'])return!0x1;const _0x56dd5a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56dd5a['trackChangesCommand']['value'])return!0x1;let _0x4940ed=!0x1;const _0x13a6d2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x16cd8d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x163bf5=>'attribute'==_0x163bf5['type'])['filter'](_0x323c0=>_0x13a6d2['includes'](_0x323c0['attributeKey']));if(0x0==_0x16cd8d['length'])return _0x4940ed;for(const _0x2dea00 of _0x16cd8d){const _0x13669d=_0x56dd5a['_findSuggestions'](_0x2dea00['range'],'attribute')['filter'](_0x5eb7e5=>!_0x5eb7e5['meta']['isNextTo'])['map'](_0x322d78=>_0x322d78['suggestion'])['filter'](_0x2f126d=>{const _0x2fd5a6=_0x56dd5a['_getAttributeKey'](_0x2f126d);return _0x13a6d2['includes'](_0x2fd5a6);});if(_0x13669d['length']){for(const _0x22c1f7 of _0x13669d)_0x239af['removeMarker'](_0x22c1f7['getFirstMarker']());_0x4940ed=!0x0;}}return _0x4940ed;}['assureChains'](_0x115d2f){if(_0x115d2f['batch']['isUndo']||!_0x115d2f['batch']['isLocal'])return!0x1;const _0x5a79e0=this['editor']['plugins']['get']('TrackChangesEditing');let _0x57cadb=!0x1;const _0x59ab44=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x253e5f of _0x5a79e0['getSuggestions']({'skipNotAttached':!0x0})){const _0x35d053=_0x5a79e0['_findSuggestions'](_0x253e5f['getFirstRange'](),'attribute')['map'](_0x4bbdaf=>_0x4bbdaf['suggestion'])['filter'](_0x529c59=>_0x529c59['data']&&_0x59ab44['includes'](_0x529c59['data']['key']));if(!_0x35d053['length'])continue;const _0x5c704e=_0x35d053[0x0]['head']['attributes']['groupId'];if(!_0x35d053['every'](_0x49bfc8=>_0x49bfc8['attributes']['groupId']===_0x5c704e)){for(const _0xf52f7c of _0x35d053)_0x12c619(_0xf52f7c,_0x5c704e)&&(_0x57cadb=!0x0);}}return _0x57cadb;function _0x2524c2(_0x31a0e7,_0x2f0322){for(const _0x38ea2b of _0x5a79e0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e29aa=>'attribute'==_0x3e29aa['type']&&_0x3e29aa['attributes']['groupId']==_0x31a0e7))_0x38ea2b['setAttribute']('groupId',_0x2f0322);}function _0x12c619(_0x181751,_0x35b521){let _0x1bfa58=_0x181751['head'],_0x4c0307=!0x1;for(;_0x1bfa58;)_0x1bfa58['attributes']['groupId']!=_0x35b521&&(_0x2524c2(_0x1bfa58['attributes']['groupId'],_0x35b521),_0x1bfa58['setAttribute']('groupId',_0x35b521),_0x4c0307=!0x0),_0x1bfa58=_0x1bfa58['next'];return _0x4c0307;}}['_supportLegacySuggestions'](){const _0x50f382=this['editor'],_0x454c8e=_0x50f382['locale'],_0x4a2862=_0x50f382['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4a2862['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4392b2,_0x2504bb){const _0x1d0531=[];for(let _0x28c407 of _0x4392b2)_0x28c407['start']['nodeAfter']===_0x28c407['end']['parent']&&(_0x28c407=_0x50f382['model']['createRange'](_0x50f382['model']['createPositionAt'](_0x28c407['start']['nodeAfter'],0x0))),_0x1d0531['push'](_0x28c407);_0x50f382['model']['change'](_0x23fc81=>{const _0x38080a=_0x50f382['model']['document']['selection'],_0x1a10e8=Array['from'](_0x38080a['getRanges']())['map'](_0x167ebd=>_0x10487e['fromRange'](_0x167ebd));_0x23fc81['setSelection'](_0x1d0531),_0x50f382['commands']['get'](_0x2504bb['commandName'])['refresh'](),_0x2504bb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x50f382['execute'](_0x2504bb['commandName'],..._0x2504bb['commandParams']),_0x23fc81['setSelection'](_0x1a10e8);for(const _0x375437 of _0x1a10e8)_0x375437['detach']();});}),_0x4a2862['descriptionFactory']['registerElementLabel'](function(_0x43c131){const _0x2f61bf=!_0x50f382['model']['schema']['isObject'](_0x43c131),_0x387645=_0x43c131['previousSibling'],_0x55ceae=_0x43c131['nextSibling'],_0x58e997=_0x43c131['getAttribute']('listItemId'),_0x5bf845=!_0x387645||_0x387645['getAttribute']('listItemId')!==_0x58e997,_0x9239dc=!_0x55ceae||_0x55ceae['getAttribute']('listItemId')!==_0x58e997;return _0x2f61bf&&Boolean(_0x58e997)&&_0x5bf845&&_0x9239dc;},_0x13887d=>o(_0x454c8e,'ELEMENT_LIST_ITEM',_0x13887d));}['_registerLegacyDescription'](){const _0x43bdf1=this['editor'],_0x2cd3cb=_0x43bdf1['locale'];function _0x343e76(_0x2d9ae6){const _0x154284=_0x43bdf1['commands']['get']('bulletedList')['value'],_0x44af17=_0x43bdf1['commands']['get']('numberedList')['value'];return'numberedList'===_0x2d9ae6?_0x154284:_0x44af17;}_0x43bdf1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xddd026){if('formatBlock'!=_0xddd026['type'])return;const {data:_0x3c28ed}=_0xddd026;if(!_0x3c28ed)return;let _0x321072,_0x1674d9,_0x4a5579,_0x1564cf;switch(_0x3c28ed['commandName']){case'bulletedList':_0x4a5579=_0x3c28ed['commandParams'][0x0]['forceValue'],_0x1564cf=_0x343e76(_0x3c28ed['commandName']),_0x321072=_0x4a5579?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1564cf&&_0x43bdf1['config']['get']('list.multiBlock')||(_0x321072='*Change\x20to:*\x20%0'),_0x1674d9={'type':'format','content':o(_0x2cd3cb,_0x321072,o(_0x2cd3cb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4a5579=_0x3c28ed['commandParams'][0x0]['forceValue'],_0x1564cf=_0x343e76(_0x3c28ed['commandName']),_0x321072=_0x4a5579?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1564cf&&_0x43bdf1['config']['get']('list.multiBlock')||(_0x321072='*Change\x20to:*\x20%0'),_0x1674d9={'type':'format','content':o(_0x2cd3cb,_0x321072,o(_0x2cd3cb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x321072='*Indent:*\x20%0',_0x1674d9={'type':'format','content':o(_0x2cd3cb,_0x321072,o(_0x2cd3cb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x321072=function(_0x5ae6cb){const _0x47f167=_0x5ae6cb['getFirstRange']();let _0x375824=_0x47f167['start']['nodeAfter'];for(;_0x375824&&_0x47f167['containsItem'](_0x375824);){if(_0x375824['getAttribute']('listIndent')>0x0)return!0x1;_0x375824=_0x375824['nextSibling'];}return!0x0;}(_0xddd026)?o(_0x2cd3cb,'*Format:*\x20remove\x20from\x20%0',o(_0x2cd3cb,function(_0x59be51){return'ELEMENT_'+_0x59be51['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xddd026))):o(_0x2cd3cb,'*Outdent:*\x20%0',o(_0x2cd3cb,'ELEMENT_LIST_ITEM')),_0x1674d9={'type':'format','content':_0x321072};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3c28ed['multipleBlocks']&&(_0x321072='*Merge:*\x20%0',_0x1674d9={'type':'deletion','content':o(_0x2cd3cb,_0x321072,o(_0x2cd3cb,'ELEMENT_LIST_ITEM'))});}return _0x1674d9;});}}function le(_0x19415a){let _0x10fdbd=_0x19415a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10fdbd;){const _0x4ad0ad=_0x10fdbd['getAttribute']('listItemId');if(!_0x4ad0ad)return!0x1;if(_0x4ad0ad==_0x19415a['data']['newValue'])return'newValue';if(_0x4ad0ad==_0x19415a['data']['oldValue'])return'oldValue';_0x10fdbd=_0x10fdbd['previousSibling'];}return!0x1;}class ue extends _0x5fedcf{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x473f40=this['editor']['config']['get']('list.properties'),_0x2318ae=this['editor']['plugins']['get']('TrackChangesEditing');_0x473f40['styles']&&(_0x2318ae['enableDefaultAttributesIntegration']('listStyle'),_0x2318ae['registerBlockAttribute']('listStyle')),_0x473f40['reversed']&&(_0x2318ae['enableDefaultAttributesIntegration']('listReversed'),_0x2318ae['registerBlockAttribute']('listReversed')),_0x473f40['startIndex']&&(_0x2318ae['enableDefaultAttributesIntegration']('listStart'),_0x2318ae['registerBlockAttribute']('listStart'));const _0x36b90={'type':'format','content':''};_0x2318ae['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5e1228=this['editor']['locale'];_0x2318ae['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5e1228,'FORMAT_LIST_REVERSED')),_0x2318ae['descriptionFactory']['registerDescriptionCallback'](_0x2c6522=>{const {data:_0x18c4d2}=_0x2c6522;if(_0x18c4d2&&'listReversed'==_0x18c4d2['key'])return null==_0x18c4d2['newValue']||0x0==_0x18c4d2['newValue']&&null==_0x18c4d2['oldValue']?_0x36b90:void 0x0;}),_0x2318ae['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5e1228,'FORMAT_LIST_START')),_0x2318ae['descriptionFactory']['registerDescriptionCallback'](_0xbab91b=>{const {data:_0x2b71fb}=_0xbab91b;if(_0x2b71fb&&'listStart'==_0x2b71fb['key'])return null==_0x2b71fb['newValue']||0x1==_0x2b71fb['newValue']&&null==_0x2b71fb['oldValue']?_0x36b90:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1added=>{if(_0x1added['batch']['isUndo'])return!0x1;let _0x1b8337=!0x1;const _0x476927=_0x2318ae['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cc097=>{const _0xd07188=_0x2318ae['_getAttributeKey'](_0x4cc097);return'listStart'==_0xd07188||'listReversed'==_0xd07188;});for(const _0x44494d of _0x476927){const _0x5a583d=_0x44494d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5a583d||'customNumbered'==_0x5a583d)continue;_0x2318ae['_findSuggestions'](_0x44494d['getFirstRange'](),'attribute')['find'](_0x3d9c07=>'listType'==_0x2318ae['_getAttributeKey'](_0x3d9c07['suggestion']))||(_0x1added['removeMarker'](_0x44494d['getFirstMarker']()),_0x1b8337=!0x0);}return _0x1b8337;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x33ad9d){const _0x5a8959=this['editor']['locale'],{data:_0x2a5622}=_0x33ad9d,_0xcc760f={'type':'format','content':''};if(!_0x2a5622||'listStyle'!=_0x2a5622['key'])return;if(!_0x2a5622['oldValue'])return'default'==_0x2a5622['newValue']?_0xcc760f:{'type':'format','content':''+o(_0x5a8959,'*Set\x20format:*\x20%0',o(_0x5a8959,this['_getTranslationKeyForListStyle'](_0x2a5622['newValue'])))};if(!_0x2a5622['newValue']){if('default'==_0x2a5622['oldValue'])return _0xcc760f;let _0x380e68=_0x33ad9d['head'];for(;_0x380e68;){if(_0x380e68['data']&&'listType'==_0x380e68['data']['key']&&_0x380e68['data']['newValue'])return _0xcc760f;_0x380e68=_0x380e68['next'];}return{'type':'format','content':''+o(_0x5a8959,'*Remove\x20format:*\x20%0',o(_0x5a8959,this['_getTranslationKeyForListStyle'](_0x2a5622['oldValue'])))};}if('default'!=_0x2a5622['newValue'])return{'type':'format','content':''+o(_0x5a8959,'*Set\x20format:*\x20%0',o(_0x5a8959,this['_getTranslationKeyForListStyle'](_0x2a5622['newValue'])))};let _0x5ea488=_0x33ad9d['head'];for(;_0x5ea488;){if(_0x5ea488['data']&&'listType'==_0x5ea488['data']['key']&&_0x5ea488['data']['newValue']&&_0x5ea488['data']['oldValue'])return _0xcc760f;_0x5ea488=_0x5ea488['next'];}return{'type':'format','content':o(_0x5a8959,'*Set\x20format:*\x20%0',o(_0x5a8959,'ELEMENT_'+_0x33ad9d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x507a10=this['editor'],_0x276271=_0x507a10['locale'];_0x507a10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10b95d=>{if('formatBlock'!=_0x10b95d['type'])return;const {data:_0x1445be}=_0x10b95d;if(!_0x1445be)return;let _0x5914c6,_0x2c45ad;switch(_0x1445be['commandName']){case'listStyle':_0x5914c6='*Change\x20to:*\x20%0',_0x2c45ad={'type':'format','content':o(_0x276271,_0x5914c6,o(_0x276271,this['_getTranslationKeyForListStyle'](_0x1445be['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5914c6=_0x1445be['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2c45ad={'type':'format','content':o(_0x276271,_0x5914c6)};break;case'listStart':_0x5914c6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2c45ad={'type':'format','content':o(_0x276271,_0x5914c6,_0x1445be['commandParams'][0x0]['startIndex'])};}return _0x2c45ad;});}['_getTranslationKeyForListStyle'](_0x3c034a){return'ELEMENT_'+function(_0x33600b){if(pe['includes'](_0x33600b))return'bulleted';if(ye['includes'](_0x33600b))return'numbered';return null;}(_0x3c034a)['toUpperCase']()+'_LIST_'+_0x3c034a['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5fedcf{static get['requires'](){return[_0x322364];}['init'](){const _0x1593ac=this['editor'],_0x359722=_0x1593ac['plugins']['get']('TrackChangesEditing'),_0x40ee7c=_0x1593ac['commands']['get']('enter');_0x359722['enableCommand']('enter',()=>{_0x1593ac['model']['change'](_0x3e4bff=>{const _0x186ec=_0x1593ac['model']['document']['selection'],_0x2840c1=_0x186ec['getFirstPosition'](),_0x135b20=_0x10487e['fromRange'](_0x186ec['getFirstRange']());if(_0x40ee7c['enterBlock'](_0x3e4bff)){const _0xd350ba=_0x1593ac['model']['createPositionAt'](_0x2840c1['parent']['nextSibling'],0x0),_0x4e77c3=_0x3e4bff['createRange'](_0x2840c1,_0xd350ba);_0x359722['markInsertion'](_0x4e77c3);}else _0x3e4bff['setSelection'](_0x3e4bff['createRange'](_0x135b20['end']));_0x135b20['detach'](),_0x40ee7c['fire']('afterExecute',{'writer':_0x3e4bff});});}),_0x1593ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1593ac,'split'),{'priority':'high'}),_0x1593ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3a73f9,_0x58a9d8,_0x1a023b)=>{const _0x337c24=_0x1a023b['mapper']['markerNameToElements'](_0x58a9d8['markerName']);if(_0x337c24){for(const _0x48d458 of _0x337c24)_0x48d458['hasClass']('ck-suggestion-marker-split')&&(_0x1a023b['mapper']['unbindElementFromMarkerName'](_0x48d458,_0x58a9d8['markerName']),_0x1a023b['writer']['remove'](_0x48d458));}},{'priority':'high'}),_0x1593ac['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a1c32,_0x39a3c7,_0x4f0734)=>{_0x4f0734['options']['showSuggestionHighlights']&&_e(_0x1593ac,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3a1c32,_0x39a3c7,_0x4f0734);},{'priority':'high'});}}class J extends _0x5fedcf{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x22b18b=this['editor']['plugins']['get']('TrackChangesEditing');_0x22b18b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x22b18b['enableCommand']('findNext'),_0x22b18b['enableCommand']('findPrevious'),_0x22b18b['enableCommand']('replace'),_0x22b18b['enableCommand']('replaceAll');}['handleFindCommand'](_0x2918ba,_0xaa679d,_0x3cc669={}){const _0x58dc75=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2918ba(_0x2dcc25=>('string'==typeof _0xaa679d?_0x58dc75['findByTextCallback'](_0xaa679d,_0x3cc669):_0xaa679d)(_0x2dcc25)['filter'](_0x541793=>!0x1===this['_isInDeletionRange'](_0x541793,_0x2dcc25['item'])),_0x3cc669);}['_isInDeletionRange'](_0x23199f,_0x51c0d9){const _0x9cb0b6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51c0d9,_0x23199f['start']),this['editor']['model']['createPositionAt'](_0x51c0d9,_0x23199f['end']));for(const _0x40db53 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9cb0b6['getIntersection'](_0x40db53['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x5fedcf{['afterInit'](){const _0x1901fd=this['editor']['locale'],_0x2513f1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2eb1cb,commandName:_0x42b2a6}of ro)this['editor']['plugins']['has'](_0x2eb1cb)&&(_0x2513f1['enableDefaultAttributesIntegration'](_0x42b2a6),_0x2513f1['registerInlineAttribute'](_0x42b2a6));_0x1901fd['t'],_0x2513f1['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1901fd,'FORMAT_FONT_SIZE')),_0x2513f1['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1901fd,'FORMAT_FONT_FAMILY')),_0x2513f1['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1901fd,'FORMAT_FONT_COLOR')),_0x2513f1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1901fd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x194ca6=this['editor'],_0x418394=_0x194ca6['locale'];_0x194ca6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33dcea=>{const _0x194467=_0x418394['t'];if('formatInline'!=_0x33dcea['type'])return;const {data:_0x5c3125}=_0x33dcea;if(null!=_0x5c3125){if('fontSize'==_0x5c3125['commandName']){const _0xfff4cc=_0x5c3125['commandParams'][0x0]['value'];if(_0xfff4cc){const _0xec280=_0x194467(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x14f214=>_0x14f214['model']==_0xfff4cc)['title'])['toLowerCase']();return{'type':'format','content':o(_0x418394,'*Set\x20font\x20size:*\x20%0',_0xec280)};}return{'type':'format','content':o(_0x418394,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5c3125['commandName']){const _0x366c89=_0x5c3125['commandParams'][0x0]['value'];return _0x366c89?{'type':'format','content':o(_0x418394,'*Set\x20font\x20family:*\x20%0',_0x366c89)}:{'type':'format','content':o(_0x418394,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5c3125['commandName']){const _0x207385=_0x5c3125['commandParams'][0x0]['value'];if(_0x207385){const _0x523da8=_0x13c288(this['editor']['config']['get']('fontColor.colors'))['find'](_0x26cf84=>_0x26cf84['model']==_0x207385);let _0x161896=_0x207385,_0x238291='';return _0x523da8&&(_0x161896=_0x523da8['label'],_0x238291=_0x194467(_0x161896)['toLowerCase']()),{'type':'format','content':o(_0x418394,'*Set\x20font\x20color:*\x20%0',_0x238291)['trim'](),'color':{'value':_0x207385,'title':_0x238291||_0x161896}};}return{'type':'format','content':o(_0x418394,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5c3125['commandName']){const _0x53afae=_0x5c3125['commandParams'][0x0]['value'];if(_0x53afae){const _0x245ff8=_0x13c288(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x329a04=>_0x329a04['model']==_0x53afae);let _0x460972=_0x53afae,_0x2fe5e0='';return _0x245ff8&&(_0x460972=_0x245ff8['label'],_0x2fe5e0=_0x194467(_0x460972)['toLowerCase']()),{'type':'format','content':o(_0x418394,'*Set\x20font\x20background\x20color:*\x20%0',_0x2fe5e0)['trim'](),'color':{'value':_0x53afae,'title':_0x2fe5e0||_0x460972}};}return{'type':'format','content':o(_0x418394,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5fedcf{['afterInit'](){const _0x80609b=this['editor'],_0x1bb797=_0x80609b['plugins']['get']('TrackChangesEditing'),_0x33df7d=_0x80609b['commands']['get']('copyFormat'),_0x2f8812=_0x80609b['commands']['get']('pasteFormat');_0x33df7d&&_0x2f8812&&(_0x1bb797['enableDefaultAttributesIntegration']('pasteFormat'),_0x1bb797['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4507c4=this['editor'],_0xa26479=_0x4507c4['locale'];_0x4507c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x415119=>{if('formatBlock'!=_0x415119['type']&&'formatInline'!=_0x415119['type'])return;const {data:_0x294221}=_0x415119;if(_0x294221&&'pasteFormat'===_0x294221['commandName']){const _0x4572d5=[],_0x349e3e=_0x294221['commandParams'][0x0];for(const [_0x4b2e42,_0x46ad49]of Object['entries'](_0x349e3e))_0x4572d5['push'](so(_0x4507c4,_0x4b2e42,_0x46ad49));return _0x4572d5['length']?{'type':'format','content':o(_0xa26479,'*Set\x20format\x20to:*\x20%0',_0x4572d5['join'](',\x20'))}:{'type':'format','content':o(_0xa26479,'*Remove\x20all\x20formatting*')};}});}}function so(_0x127c97,_0x1479a0,_0x56f9a8){const _0x4165d5=_0x127c97['locale']['t'],_0x5e54e6=_0x1479a0['split'](/(?=[A-Z])/)['join']('\x20'),_0x2d4b54=_0x4165d5(_0x5e54e6['charAt'](0x0)['toUpperCase']()+_0x5e54e6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x56f9a8)return _0x2d4b54;if('fontColor'===_0x1479a0||'fontBackgroundColor'===_0x1479a0){const _0x6d2628=_0x13c288(_0x127c97['config']['get']('fontColor.colors'))['find'](_0x5cd135=>_0x5cd135['model']==_0x56f9a8);return _0x2d4b54+'\x20('+(_0x6d2628?_0x4165d5(_0x6d2628['label'])['toLowerCase']():_0x56f9a8)+')';}if('fontSize'===_0x1479a0&&isNaN(parseFloat(_0x56f9a8))){const _0x6ae361=_0x127c97['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x127c97['config']['get']('fontSize.options'))['find'](_0x1593b9=>_0x1593b9['model']==_0x56f9a8);return _0x2d4b54+'\x20('+(_0x6ae361?_0x4165d5(_0x6ae361['title'])['toLowerCase']():_0x56f9a8)+')';}return _0x2d4b54+'\x20('+_0x56f9a8+')';}class Y extends _0x5fedcf{['_headingOptions'];['afterInit'](){const _0x512e34=this['editor'];if(!_0x512e34['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x512e34['config']['get']('heading.options');const _0x288c58=_0x512e34['locale'],_0x5a84b9=_0x512e34['plugins']['get']('TrackChangesEditing');_0x5a84b9['enableDefaultAttributesIntegration']('heading');for(const _0xf249a7 of this['_headingOptions'])'paragraph'!=_0xf249a7['model']&&_0x5a84b9['descriptionFactory']['registerElementLabel'](_0xf249a7['model'],_0x6c4a12=>{const _0xd4cc5c=this['_getHeadingLevel'](_0xf249a7['model']);return null!==_0xd4cc5c?_0x53e766(_0x6c4a12,_0xd4cc5c):_0x203b9c(_0x6c4a12,_0xf249a7['title']);});function _0x53e766(_0x593ca9,_0x402abe){return o(_0x288c58,'ELEMENT_HEADING',[_0x593ca9,_0x402abe]);}function _0x203b9c(_0x38402a,_0x562335){return o(_0x288c58,'ELEMENT_HEADING_CUSTOM',[_0x38402a,_0x562335]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x254bb2=this['editor'],_0x60a323=_0x254bb2['locale'];function _0x52bf57(_0x5e1dad,_0x2fc156){return o(_0x60a323,'ELEMENT_HEADING_CUSTOM',[_0x5e1dad,_0x2fc156]);}_0x254bb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33f56a=>{if('formatBlock'!=_0x33f56a['type'])return;const {data:_0x1b72bc}=_0x33f56a;if(_0x1b72bc&&'heading'==_0x1b72bc['commandName']){const _0x184e07=_0x1b72bc['commandParams'][0x0]['value'],_0x446a2d=this['_getHeadingLevel'](_0x184e07);if(null!==_0x446a2d)return{'type':'format','content':o(_0x60a323,'*Change\x20to:*\x20%0',(_0x57e297=0x1,_0x3717fa=_0x446a2d,o(_0x60a323,'ELEMENT_HEADING',[_0x57e297,_0x3717fa])))};const _0x21dca4=this['_headingOptions']['find'](_0x2d3c3a=>_0x2d3c3a['model']===_0x184e07)['title'];return{'type':'format','content':o(_0x60a323,'*Change\x20to:*\x20%0',_0x52bf57(0x1,_0x21dca4))};}var _0x57e297,_0x3717fa;});}['_getHeadingLevel'](_0x41ea31){const _0x3beb1b=_0x41ea31['match'](/^heading(\d+)/);if(_0x3beb1b)return _0x3beb1b[0x1];const _0x36ef91=this['_headingOptions']?.['find'](_0x35ca78=>_0x35ca78['model']==_0x41ea31);if(_0x36ef91&&_0x36ef91['view']){const _0xae531e=_0x36ef91['view'],_0x5ea52c=(_0xae531e['name']??_0xae531e)['match'](/^h(\d+)/);if(_0x5ea52c)return _0x5ea52c[0x1];}return null;}}class Z extends _0x5fedcf{['afterInit'](){const _0xa119cf=this['editor'];if(!_0xa119cf['plugins']['has']('HighlightEditing'))return;const _0x40ef7a=_0xa119cf['plugins']['get']('TrackChangesEditing'),_0x48decc=_0xa119cf['locale'];_0x40ef7a['enableDefaultAttributesIntegration']('highlight'),_0x40ef7a['registerInlineAttribute']('highlight'),_0x40ef7a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x48decc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38dd78=this['editor'],_0x21209f=_0x38dd78['locale'];_0x38dd78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48e409=>{if('formatInline'!=_0x48e409['type'])return;const {data:_0x5587dc}=_0x48e409;if(_0x5587dc&&'highlight'==_0x5587dc['commandName']){const _0x404309=_0x21209f['t'],_0x588736=_0x5587dc['commandParams'][0x0]['value'];if(_0x588736){const _0x2f59ab=_0x38dd78['config']['get']('highlight.options')['find'](_0x5e448d=>_0x5e448d['model']==_0x588736),_0x14ce4b=_0x404309(_0x2f59ab['title'])['toLowerCase']();return{'type':'format','content':o(_0x21209f,'*Set\x20highlight:*\x20%0',_0x14ce4b),'color':{'value':_0x2f59ab['color'],'title':_0x2f59ab['title']}};}return{'type':'format','content':o(_0x21209f,'*Remove\x20highlight*',o(_0x21209f,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5fedcf{['afterInit'](){const _0x57a049=this['editor'];if(!_0x57a049['plugins']['has']('HorizontalLineEditing'))return;_0x57a049['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xde8ab1=_0x57a049['plugins']['get']('TrackChangesEditing'),_0x4f6c92=_0x57a049['locale'];_0xde8ab1['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd771e7=>o(_0x4f6c92,'ELEMENT_HORIZONTAL_LINE',_0xd771e7)),_0x57a049['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4561e3,{writer:_0x1da145,options:_0x2fa7de})=>{if(!_0x2fa7de['showSuggestionHighlights'])return null;const _0x54d826=_0x1da145['createContainerElement']('div'),_0x36d87e=_0x1da145['createEmptyElement']('hr');return _0x1da145['addClass']('ck-horizontal-line',_0x54d826),_0x1da145['insert'](_0x1da145['createPositionAt'](_0x54d826,0x0),_0x36d87e),_0x54d826;},'converterPriority':'high'});}}class et extends _0x5fedcf{['afterInit'](){const _0x271533=this['editor'];if(!_0x271533['plugins']['has']('HtmlEmbed'))return;const _0x21f062=_0x271533['plugins']['get']('TrackChangesEditing'),_0x515c20=_0x271533['locale'];_0x21f062['descriptionFactory']['registerElementLabel']('rawHtml',_0x1202bd=>o(_0x515c20,'ELEMENT_HTML_EMBED',_0x1202bd)),_0x21f062['enableDefaultAttributesIntegration']('htmlEmbed'),_0x21f062['registerBlockAttribute']('value'),_0x21f062['descriptionFactory']['registerDescriptionCallback'](_0x35c2d7=>{if('attribute'!=_0x35c2d7['type'])return;const {data:_0x298552}=_0x35c2d7;if(_0x298552&&'value'==_0x298552['key']&&_0x35c2d7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x40f610=o(_0x515c20,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x515c20,'*Change\x20%0\x20content*',_0x40f610)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5608a3=this['editor'],_0x2f4bc8=_0x5608a3['locale'];_0x5608a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e2e98=>{if('formatBlock'!=_0x2e2e98['type'])return;const {data:_0x52c118}=_0x2e2e98;if(_0x52c118&&'htmlEmbed'==_0x52c118['commandName']){const _0x593ee3=o(_0x2f4bc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2f4bc8,'*Change\x20%0\x20content*',_0x593ee3)};}});}}class it extends _0x5fedcf{['afterInit'](){const _0x50106c=this['editor'];if(!_0x50106c['plugins']['has']('ImageEditing'))return;const _0x3ebf7a=_0x50106c['plugins']['get']('TrackChangesEditing'),_0x11a364=_0x50106c['plugins']['get']('ImageUtils'),_0x373e65=_0x50106c['locale'];_0x3ebf7a['enableCommand']('insertImage'),_0x3ebf7a['descriptionFactory']['registerElementLabel']('imageBlock',_0x119782=>o(_0x373e65,'ELEMENT_IMAGE',_0x119782)),_0x3ebf7a['descriptionFactory']['registerElementLabel']('imageInline',_0x6ed2da=>o(_0x373e65,'ELEMENT_INLINE_IMAGE',_0x6ed2da)),_0x3ebf7a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x373e65,'ELEMENT_CAPTION')),_0x50106c['plugins']['has']('ImageUploadEditing')&&_0x3ebf7a['enableCommand']('uploadImage'),_0x50106c['plugins']['has']('ImageBlockEditing')&&_0x50106c['plugins']['has']('ImageInlineEditing')&&(_0x3ebf7a['enableCommand']('imageTypeInline',(_0x53611c,_0x35cb13)=>{const _0x13aeb3=_0x11a364['getClosestSelectedImageElement'](_0x50106c['model']['document']['selection']);_0x50106c['model']['change'](()=>{_0x3ebf7a['markBlockFormat'](_0x13aeb3,{'commandName':'imageTypeInline','commandParams':[_0x35cb13]},[],'convertBlockImageToInline');});}),_0x3ebf7a['enableCommand']('imageTypeBlock',(_0x3e2039,_0x1a4117)=>{_0x50106c['model']['change'](_0x48d6e1=>{let _0x47d077=_0x11a364['getClosestSelectedImageElement'](_0x50106c['model']['document']['selection']),_0x362119=_0x48d6e1['createRangeOn'](_0x47d077);const _0x6482da=_0x149d69['fromPosition'](_0x362119['start'],'toPrevious'),_0x131e71=_0x149d69['fromPosition'](_0x362119['end'],'toNext');_0x3ebf7a['forceDefaultExecution'](()=>_0x3e2039(_0x1a4117)),_0x47d077=_0x11a364['getClosestSelectedImageElement'](_0x50106c['model']['document']['selection']),_0x362119=_0x48d6e1['createRangeOn'](_0x47d077);const _0xf0dc98=_0x48d6e1['createRange'](_0x6482da,_0x131e71);_0x6482da['detach'](),_0x131e71['detach'](),_0x3ebf7a['markBlockFormat'](_0x47d077,{'commandName':'imageTypeInline','commandParams':[_0x1a4117]},[],'convertInlineImageToBlock'),_0xf0dc98['start']['isBefore'](_0x362119['start'])&&_0x3ebf7a['markInsertion'](_0x48d6e1['createRange'](_0xf0dc98['start'],_0x362119['start']),'convertInlineImageToBlock'),_0x362119['end']['isBefore'](_0xf0dc98['end'])&&_0x3ebf7a['markInsertion'](_0x48d6e1['createRange'](_0x362119['end'],_0xf0dc98['end']),'convertInlineImageToBlock');});}),_0x3ebf7a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ebf7a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ebf7a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ebf7a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ebf7a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ebf7a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3dca60])=>{const _0x5a00e4=_0x3ebf7a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2b409b=_0x3dca60['start'],_0x5410aa=_0x3dca60['end'];const _0x1b42a6=_0x50106c['model']['schema']['getNearestSelectionRange'](_0x2b409b,'backward'),_0x1153b3=_0x50106c['model']['schema']['getNearestSelectionRange'](_0x5410aa,'forward');_0x1b42a6['isCollapsed']&&(_0x2b409b=_0x1b42a6['start']),_0x1153b3['isCollapsed']&&(_0x5410aa=_0x1153b3['end']),_0x5a00e4([_0x50106c['model']['createRange'](_0x2b409b,_0x5410aa)]);}),_0x3ebf7a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3e116a),_0x3ebf7a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3e116a)),_0x50106c['plugins']['has']('ImageCaptionEditing')&&(_0x3ebf7a['enableCommand']('toggleImageCaption',(_0x2b3810,_0x2b9afe)=>{const _0x4e782f=_0x50106c['plugins']['get']('ImageCaptionUtils');let _0x26c6ae=_0x11a364['getClosestSelectedImageElement'](_0x50106c['model']['document']['selection']),_0x50aeac=_0x4e782f['getCaptionFromImageModelElement'](_0x26c6ae);_0x50106c['model']['change'](()=>{if(_0x50aeac)return void _0x3ebf7a['markDeletion'](_0x50106c['model']['createRangeOn'](_0x50aeac));const _0x4de854=_0x11a364['isBlockImage'](_0x26c6ae);_0x2b3810(_0x2b9afe),_0x26c6ae=_0x11a364['getClosestSelectedImageElement'](_0x50106c['model']['document']['selection']),_0x50aeac=_0x4e782f['getCaptionFromImageModelElement'](_0x26c6ae),_0x3ebf7a['markInsertion'](_0x50106c['model']['createRangeOn'](_0x50aeac),_0x4de854?null:'imageCaption');});}),_0x3ebf7a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3e116a));const _0x3c3c2f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2589a2(_0x448657,_0x57a1f0){const _0x258217=_0x3c3c2f['findIndex'](({type:_0x3011bf,subType:_0x194b4c})=>_0x448657['type']==_0x3011bf&&_0x448657['subType']==_0x194b4c),_0x248613=_0x3c3c2f['findIndex'](({type:_0x70179,subType:_0x2ab0fa})=>_0x57a1f0['type']==_0x70179&&_0x57a1f0['subType']==_0x2ab0fa);if(_0x258217<0x0||_0x248613<0x0)return!0x1;const _0x1f36ce=_0x448657['getFirstRange'](),_0x425986=_0x57a1f0['getFirstRange']();if((0x0==_0x258217||0x1==_0x258217)&&0x2==_0x248613&&_0x1f36ce['isIntersecting'](_0x425986))return!0x0;if(0x2==_0x258217&&0x3==_0x248613){const _0x17e985=_0x3ebf7a['_findSuggestions'](_0x1f36ce,'insertion')['filter'](({suggestion:_0x77a08d,meta:_0x3cfafc})=>_0x3cfafc['isOwn']&&'convertInlineImageToBlock'==_0x77a08d['subType']);if(_0x17e985['length']>0x1&&_0x425986['end']['isEqual'](_0x1f36ce['start']))return!0x0;if(0x1==_0x17e985['length']&&(_0x1f36ce['start']['isEqual'](_0x425986['end'])||_0x1f36ce['end']['isEqual'](_0x425986['start'])))return!0x0;}if(0x3==_0x258217&&0x3==_0x248613&&_0x1f36ce['start']['isBefore'](_0x425986['start'])){const _0x213d5a=_0x1f36ce['end']['nodeAfter'],_0x537c47=_0x425986['start']['nodeBefore'];return _0x11a364['isBlockImage'](_0x213d5a)&&_0x213d5a===_0x537c47;}return!0x1;}function _0x3e116a(_0x57661f,_0x3439ec){return _0x2589a2(_0x57661f,_0x3439ec)?[_0x57661f,_0x3439ec]:_0x2589a2(_0x3439ec,_0x57661f)?[_0x3439ec,_0x57661f]:null;}_0x50106c['plugins']['has']('ImageResize')&&(_0x3ebf7a['enableDefaultAttributesIntegration']('resizeImage'),_0x3ebf7a['registerBlockAttribute']('resizedWidth'),_0x3ebf7a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x373e65,'FORMAT_IMAGE_SIZE'))),_0x50106c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3ebf7a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ebf7a['registerBlockAttribute']('alt')),_0x3ebf7a['descriptionFactory']['registerDescriptionCallback'](_0x4046a4=>{if(!!_0x3c3c2f['find'](({type:_0x151e60,subType:_0x51e677})=>_0x4046a4['type']==_0x151e60&&_0x4046a4['subType']==_0x51e677))return _0x4046a4['previous']?{}:void 0x0;}),_0x3ebf7a['descriptionFactory']['registerDescriptionCallback'](_0xb8b47e=>{if('insertion'==_0xb8b47e['type']||'deletion'==_0xb8b47e['type']){const _0x4838e1=_0xb8b47e['getContainedElement']();if(_0x4838e1&&_0x4838e1['is']('element','caption'))return{'type':'insertion'==_0xb8b47e['type']?'addObject':'removeObject','element':_0x4838e1,'quantity':0x1};}}),_0x3ebf7a['descriptionFactory']['registerDescriptionCallback'](_0x4321fa=>'formatBlock'==_0x4321fa['type']&&'convertInlineImageToBlock'==_0x4321fa['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4321fa['type']&&'convertBlockImageToInline'==_0x4321fa['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ebf7a['descriptionFactory']['registerDescriptionCallback'](_0x184d34=>{if('attribute'!=_0x184d34['type'])return;const {data:_0x46784f}=_0x184d34;if(!_0x46784f||'alt'!=_0x46784f['key'])return;const _0x1dbb6d=_0x46784f['newValue'];return _0x1dbb6d?{'type':'format','content':o(_0x373e65,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1dbb6d+'\x22')}:{'type':'format','content':o(_0x373e65,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a19fe=this['editor'],_0x56108d=_0x5a19fe['locale'];_0x5a19fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221a00=>{if('formatBlock'!=_0x221a00['type']&&'formatInline'!=_0x221a00['type'])return;const {data:_0x5824b8}=_0x221a00;if(_0x5824b8){if('imageTextAlternative'==_0x5824b8['commandName']){const _0xa98c2=_0x5824b8['commandParams'][0x0]['newValue'];return _0xa98c2?{'type':'format','content':o(_0x56108d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa98c2+'\x22')}:{'type':'format','content':o(_0x56108d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5824b8['commandName']){const _0x3b751b=_0x5824b8['commandParams'][0x0]['width'];return _0x3b751b?{'type':'format','content':o(_0x56108d,'*Set\x20image\x20width:*\x20%0',_0x3b751b)}:{'type':'format','content':o(_0x56108d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5fedcf{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x7ee447=this['editor']['locale'],_0x463409=this['editor']['plugins']['get']('TrackChangesEditing');_0x463409['enableDefaultAttributesIntegration']('replaceImageSource'),_0x463409['registerBlockAttribute']('src'),_0x463409['descriptionFactory']['registerDescriptionCallback'](_0x1b8078=>{if('attribute'!=_0x1b8078['type'])return;const {data:_0x3979b8}=_0x1b8078;return _0x3979b8&&'src'==_0x3979b8['key']?_0x3979b8['newValue']&&_0x3979b8['oldValue']?{'type':'format','content':o(_0x7ee447,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3fe232=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fe232['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3fe232['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fe232['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3fe232['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3870d4=this['editor'],_0x3fc9aa=_0x3870d4['locale'];_0x3870d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ddaf5=>{if('formatBlock'!=_0x5ddaf5['type']&&'formatInline'!=_0x5ddaf5['type'])return;const {data:_0x2a0135}=_0x5ddaf5;if(!_0x2a0135||'replaceImageSource'!=_0x2a0135['commandName'])return;return{'type':'format','content':o(_0x3fc9aa,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5fedcf{['afterInit'](){const _0x37a839=this['editor'];if(!_0x37a839['plugins']['has']('ImageStyleEditing'))return;const _0x4139fe=_0x37a839['plugins']['get']('TrackChangesEditing'),_0x2aa7ed=_0x37a839['plugins']['get']('ImageUtils'),_0x860857={};_0x4139fe['enableCommand']('imageStyle',(_0x1c93f2,_0x5b83c7)=>{const _0x132983=_0x37a839['plugins']['get']('Users')['me'],_0x161fb3=_0x37a839['commands']['get']('imageStyle');let _0xefdf2c=_0x2aa7ed['getClosestSelectedImageElement'](_0x37a839['model']['document']['selection']),_0x5e544c=_0x37a839['model']['createRangeOn'](_0xefdf2c),_0x224898=_0x161fb3['value'];if(_0x224898==_0x5b83c7['value'])return;const _0x1a19b7={'commandName':'imageStyle','commandParams':[_0x5b83c7],'formatGroupId':_0x5eb2de()};_0x37a839['model']['change'](()=>{if(_0x4139fe['getSuggestions']()['filter'](_0x4a16b5=>_0x4a16b5['isInContent']&&_0x132983==_0x4a16b5['author']&&('formatBlock'==_0x4a16b5['type']||'formatInline'==_0x4a16b5['type'])&&('imageStylePreApply'==_0x4a16b5['subType']||'imageStylePostApply'==_0x4a16b5['subType'])&&_0x4a16b5['getFirstRange']()['isEqual'](_0x5e544c))['forEach'](_0x40f668=>_0x4139fe['discardSuggestion'](_0x40f668['head'])),_0xefdf2c=_0x2aa7ed['getClosestSelectedImageElement'](_0x37a839['model']['document']['selection']),_0x5e544c=_0x37a839['model']['createRangeOn'](_0xefdf2c),_0x161fb3['refresh'](),_0x37a839['commands']['get']('imageTypeInline')['refresh'](),_0x37a839['commands']['get']('imageTypeBlock')['refresh'](),_0x224898=_0x161fb3['value'],_0x224898!=_0x5b83c7['value'])return _0x2aa7ed['isInlineImage'](_0xefdf2c)&&_0x161fb3['shouldConvertImageType'](_0x5b83c7['value'],_0xefdf2c)?(_0x1c93f2({..._0x5b83c7,'setImageSizes':!0x1}),_0xefdf2c=_0x2aa7ed['getClosestSelectedImageElement'](_0x37a839['model']['document']['selection']),void _0x4139fe['markBlockFormat'](_0xefdf2c,{..._0x1a19b7,'commandReversedParams':[{'value':_0x224898||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2aa7ed['isBlockImage'](_0xefdf2c)?_0x4139fe['markBlockFormat'](_0xefdf2c,_0x1a19b7,[],'imageStylePostApply'):_0x4139fe['markInlineFormat'](_0x5e544c,_0x1a19b7,'imageStylePostApply'));});});for(const _0x5590bf of _0x37a839['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x860857[_0x5590bf['name']]=_0x5590bf['title']['toLowerCase']();_0x4139fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4139fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4139fe['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4139fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2419a2])=>{_0x2aa7ed['setImageNaturalSizeAttributes'](_0x2419a2['getContainedElement']());}),_0x4139fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3cb2b9,_0x141994)=>{_0x4139fe['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3cb2b9,{'commandName':_0x141994['commandName'],'commandParams':_0x141994['commandReversedParams']});}),_0x4139fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x32b91f,_0x9a9142){if(_0x353bab(_0x32b91f,_0x9a9142))return[_0x32b91f,_0x9a9142];if(_0x353bab(_0x9a9142,_0x32b91f))return[_0x9a9142,_0x32b91f];return null;});const _0x55f543=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x353bab(_0x348ec9,_0x6f7406){const _0xc94c2=_0x55f543['findIndex'](({type:_0x1ebacc,subType:_0x69ea63})=>_0x348ec9['type']==_0x1ebacc&&_0x348ec9['subType']==_0x69ea63),_0x236727=_0x55f543['findIndex'](({type:_0x496f73,subType:_0x3fe797})=>_0x6f7406['type']==_0x496f73&&_0x6f7406['subType']==_0x3fe797);if(_0xc94c2<0x0||_0x236727<0x0)return!0x1;const _0x55d62a=_0x348ec9['getFirstRange'](),_0x56164f=_0x6f7406['getFirstRange']();if((0x0==_0xc94c2||0x1==_0xc94c2)&&0x2==_0x236727&&_0x55d62a['isIntersecting'](_0x56164f))return!0x0;if(0x2==_0xc94c2&&0x3==_0x236727){const _0x2818cc=_0x4139fe['_findSuggestions'](_0x55d62a,'insertion')['filter'](({suggestion:_0x2a597f,meta:_0x2ec440})=>_0x2ec440['isOwn']&&'convertInlineImageToBlock'==_0x2a597f['subType']);if(_0x2818cc['length']>0x1&&_0x56164f['end']['isEqual'](_0x55d62a['start']))return!0x0;if(0x1==_0x2818cc['length']&&(_0x55d62a['start']['isEqual'](_0x56164f['end'])||_0x55d62a['end']['isEqual'](_0x56164f['start'])))return!0x0;}if(0x3==_0xc94c2&&0x3==_0x236727&&_0x55d62a['start']['isBefore'](_0x56164f['start'])){const _0x2c20ba=_0x55d62a['end']['nodeAfter'],_0x8576f0=_0x56164f['start']['nodeBefore'];return _0x2aa7ed['isBlockImage'](_0x2c20ba)&&_0x2c20ba===_0x8576f0;}return!0x1;}_0x37a839['model']['document']['registerPostFixer'](()=>{let _0x12c859=!0x1;const _0x333cbc=Array['from'](_0x37a839['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x557f59,data:_0x537ee3}of _0x333cbc){const {group:_0x5d50a5,type:_0x444916,subType:_0x2bcd86,id:_0x295ae3}=_0x4139fe['_splitMarkerName'](_0x557f59);if('suggestion'==_0x5d50a5&&_0x4139fe['hasSuggestion'](_0x295ae3)){if('formatBlock'==_0x444916&&('imageStylePreApply'==_0x2bcd86||'imageStylePostApply'==_0x2bcd86)){const _0x5d20f5=_0x4139fe['getSuggestion'](_0x295ae3);if(_0x537ee3['newRange']){const _0x52464d=_0x5d20f5['getFirstRange']()['getContainedElement']();if(_0x2aa7ed['isBlockImage'](_0x52464d))continue;_0x4139fe['discardSuggestion'](_0x5d20f5),_0x12c859=!0x0;}}if('insertion'==_0x444916&&'imageCaption'==_0x2bcd86&&!_0x537ee3['newRange']){const _0x2d11ed=_0x4139fe['getSuggestion'](_0x295ae3);_0x2d11ed['next']&&_0x2d11ed['next']['isInContent']&&(_0x4139fe['discardSuggestion'](_0x2d11ed['next']),_0x12c859=!0x0);}}}return _0x12c859;}),this['_registerLegacyDescription'](_0x860857);}['_registerLegacyDescription'](_0x2ee5e7){const _0x1c388c=this['editor'],_0x5c7459=_0x1c388c['locale'];_0x1c388c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x488604=>{if('formatBlock'!=_0x488604['type']&&'formatInline'!=_0x488604['type'])return;const {data:_0x2c0722}=_0x488604;if(!_0x2c0722||'imageStyle'!=_0x2c0722['commandName'])return;const _0x229908=_0x2c0722['commandParams'][0x0]['value'];return _0x1df91d('side'===_0x229908?o(_0x5c7459,'FORMAT_SIDE_IMAGE'):_0x2ee5e7[_0x229908]||_0x229908);function _0x1df91d(_0x13c7a5){return{'type':'format','content':o(_0x5c7459,'*Format:*\x20%0',_0x13c7a5)};}});}}class ot extends _0x5fedcf{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4614e3){super(_0x4614e3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e8b1a=this['editor'],_0x16303a=_0x4e8b1a['commands']['get']('importWord'),_0x923a3=_0x4e8b1a['commands']['get']('trackChanges');_0x16303a&&(_0x16303a['on']('execute',(_0x4216c6,[,_0x411768])=>{this['_trackChangesValueDuringImport']=_0x923a3['value'],_0x411768['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x16303a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x16303a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x923a3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e8b1a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x13e51d,_0x481c4f){const {suggestions:_0x41eb04}=_0x481c4f,_0x469d36=this['editor']['commands']['get']('trackChanges'),_0x1a2792=_0x469d36['value'];this['_trackChangesValueDuringImport']!==_0x1a2792&&(_0x469d36['execute'](),this['_trackChangesExecuted']=!0x0),_0x41eb04&&_0x41eb04['forEach'](({id:_0x1b1c23,type:_0x1822d3,author:_0x464d46,created_at:_0x1b88b9})=>{const _0x382135={'id':_0x1b1c23,'type':_0x1822d3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x464d46,'createdAt':_0x1b88b9?new Date(_0x1b88b9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x382135);});}}class rt extends _0x5fedcf{['afterInit'](){const _0x2cfb67=this['editor'],_0x399922=_0x2cfb67['plugins']['get']('TrackChangesEditing');if(_0x2cfb67['plugins']['has']('IndentEditing')&&(_0x399922['enableCommand']('indent'),_0x399922['enableCommand']('outdent')),_0x2cfb67['plugins']['has']('IndentBlock')){for(const _0x5ee055 of['indentBlock','outdentBlock'])_0x399922['enableDefaultAttributesIntegration'](_0x5ee055);}const _0x5f21a9=_0x2cfb67['locale'];_0x399922['registerBlockAttribute']('blockIndent'),_0x399922['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5f21a9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29257d=this['editor'],_0x4bf11a=_0x29257d['locale'],_0x216ab2=_0x29257d['plugins']['get']('TrackChangesEditing');_0x216ab2['descriptionFactory']['registerDescriptionCallback'](_0x2ffa43=>{if('formatBlock'!=_0x2ffa43['type'])return;const {data:_0x532666}=_0x2ffa43;if(!_0x532666)return;if('indentBlock'!=_0x532666['commandName']&&'outdentBlock'!=_0x532666['commandName'])return;const _0x53f415=_0x2ffa43['getItems']()[0x0],_0x2782f9=_0x216ab2['descriptionFactory']['getItemLabel'](_0x53f415);return'indentBlock'==_0x532666['commandName']?{'type':'format','content':o(_0x4bf11a,'*Indent:*\x20%0',_0x2782f9)}:'outdentBlock'==_0x532666['commandName']?{'type':'format','content':o(_0x4bf11a,'*Outdent:*\x20%0',_0x2782f9)}:void 0x0;});}}class at extends _0x5fedcf{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5fedcf{['afterInit'](){const _0x466d6f=this['editor'];if(!_0x466d6f['plugins']['has']('LinkEditing'))return;const _0x1fd4e6=_0x466d6f['plugins']['get']('TrackChangesEditing'),_0x2c7b5=_0x466d6f['commands']['get']('link');_0x1fd4e6['enableDefaultAttributesIntegration']('link'),_0x1fd4e6['enableDefaultAttributesIntegration']('unlink'),_0x1fd4e6['registerInlineAttribute']('linkHref');for(const _0x5e1058 of _0x2c7b5['manualDecorators'])_0x1fd4e6['registerInlineAttribute'](_0x5e1058['id']),_0x1fd4e6['descriptionFactory']['registerAttributeLabel'](_0x5e1058['id'],'link\x20('+_0x5e1058['label']['toLowerCase']()+')');_0x1fd4e6['descriptionFactory']['registerDescriptionCallback'](_0x4e5558=>{if('attribute'!=_0x4e5558['type'])return;const {data:_0x4214ac}=_0x4e5558;if(!_0x4214ac||'linkHref'!=_0x4214ac['key'])return;const _0x4feaac=_0x4214ac['newValue'],_0x3f42cb=_0x466d6f['locale'];return{'type':'format','content':null==_0x4feaac?o(_0x3f42cb,'*Remove\x20link*'):o(_0x3f42cb,'*Set\x20link:*\x20%0','\x22'+_0x4feaac+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13ac21=this['editor'],_0x4461a2=_0x13ac21['locale'];_0x13ac21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259e4f=>{if('formatInline'!=_0x259e4f['type'])return;const {data:_0x27ee88}=_0x259e4f;if(_0x27ee88){if('link'==_0x27ee88['commandName']){const _0x333f43=_0x27ee88['commandParams'][0x0];return{'type':'format','content':o(_0x4461a2,'*Set\x20link:*\x20%0','\x22'+_0x333f43+'\x22')};}return'unlink'==_0x27ee88['commandName']?{'type':'format','content':o(_0x4461a2,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5fedcf{['afterInit'](){const _0x3ed553=this['editor'],_0x3de89c=_0x3ed553['locale'];if(!_0x3ed553['plugins']['has']('LegacyListEditing'))return;const _0x35be71=_0x3ed553['plugins']['get']('TrackChangesEditing'),_0x4616e8=_0x3ed553['plugins']['has']('LegacyTodoListEditing');function _0xe00fa6(_0x293ad2){return()=>{const _0x5930bc=_0x3ed553['model']['document']['selection'],_0x46ae06=_0x3ed553['commands']['get'](_0x293ad2);if(_0x46ae06['value'])return void _0x3ed553['execute']('paragraph',{});const _0x5d805f=_0x293ad2['slice'](0x0,-0x4),_0x11ee63=function(_0x42113f,_0x41e176,_0x459d6a){let _0x140b8b=Array['from'](_0x42113f)['filter'](_0x1d4490=>function(_0x4cc517,_0xfdbee7){return _0xfdbee7['checkChild'](_0x4cc517['parent'],'listItem')&&!_0xfdbee7['isObject'](_0x4cc517);}(_0x1d4490,_0x459d6a));_0x140b8b=_0x140b8b['filter'](_0x8c137e=>!_0x8c137e['is']('element','listItem')||_0x8c137e['getAttribute']('listType')!=_0x41e176);const _0x2f6dd0=new Set();for(const _0x227b27 of _0x140b8b)_0x227b27['is']('element','listItem')?_0x2f6dd0['add'](me(_0x227b27)):_0x2f6dd0['add'](_0x227b27);return Array['from'](_0x2f6dd0);}(_0x5930bc['getSelectedBlocks'](),_0x5d805f,_0x3ed553['model']['schema']);_0x3ed553['model']['change'](()=>{for(const _0x14162d of _0x11ee63)_0x35be71['markBlockFormat'](_0x14162d,{'commandName':_0x293ad2,'commandParams':[{'forceValue':!_0x46ae06['value']}],'formatGroupId':'blockName'},fe(_0x14162d));});};}function _0x2efce0(_0xf4dde){return()=>{const _0x3793cc=function(_0x35136f){let _0x36c3db=Array['from'](_0x35136f);const _0x595c5c=_0x36c3db['findIndex'](_0x51230c=>'listItem'!=_0x51230c['name']);return _0x595c5c>-0x1&&(_0x36c3db=_0x36c3db['slice'](0x0,_0x595c5c)),_0x36c3db;}(_0x3ed553['model']['document']['selection']['getSelectedBlocks']()),_0x13f5a3=_0x3ed553['model']['createRange'](_0x3ed553['model']['createPositionAt'](_0x3793cc[0x0],'before'),_0x3ed553['model']['createPositionAt'](_0x3793cc[_0x3793cc['length']-0x1],'end'));_0x3ed553['model']['change'](()=>{_0x35be71['markBlockFormat'](_0x13f5a3,{'commandName':_0xf4dde,'commandParams':[],'formatGroupId':'listIndent'},function(_0x200616){const _0x496c1c=new Set();for(const _0x44b6a8 of _0x200616){let _0x3fb7ee=_0x44b6a8['nextSibling'];for(;_0x3fb7ee&&_0x3fb7ee['getAttribute']('listIndent')>_0x44b6a8['getAttribute']('listIndent');)_0x496c1c['add'](_0x3fb7ee),_0x3fb7ee=_0x3fb7ee['nextSibling'];}return Array['from'](_0x496c1c);}(_0x3793cc));});};}_0x35be71['enableCommand']('numberedList',_0xe00fa6('numberedList')),_0x35be71['enableCommand']('bulletedList',_0xe00fa6('bulletedList')),_0x4616e8&&_0x35be71['enableCommand']('todoList',_0xe00fa6('todoList')),_0x35be71['enableCommand']('indentList',_0x2efce0('indentList')),_0x35be71['enableCommand']('outdentList',_0x2efce0('outdentList')),_0x4616e8&&_0x35be71['enableCommand']('checkTodoList',()=>{const _0x17265d=_0x3ed553['commands']['get']('checkTodoList'),_0x15998a=Array['from'](_0x17265d['_selectedElements']);_0x15998a['filter'](_0x2d1cd6=>_0x2d1cd6['getAttribute']('todoListChecked')!=_0x17265d['value']),_0x3ed553['model']['change'](()=>{for(const _0x43ff64 of _0x15998a)_0x35be71['markBlockFormat'](_0x43ff64,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x17265d['value']}]});});}),_0x35be71['descriptionFactory']['registerElementLabel']('listItem',_0x34ddc3=>o(_0x3de89c,'ELEMENT_LIST_ITEM',_0x34ddc3)),_0x35be71['descriptionFactory']['registerDescriptionCallback'](_0x1dac29=>{if('formatBlock'!=_0x1dac29['type']&&'formatInline'!=_0x1dac29['type'])return;const {data:_0x1552ca}=_0x1dac29;if(_0x1552ca){if('numberedList'==_0x1552ca['commandName']||'bulletedList'==_0x1552ca['commandName']||'todoList'==_0x1552ca['commandName'])switch(_0x1552ca['commandName']['replace']('List','')){case'bulleted':return _0x3c7e1c(o(_0x3de89c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c7e1c(o(_0x3de89c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c7e1c(o(_0x3de89c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1552ca['commandName'])return{'type':'format','content':o(_0x3de89c,'*Indent:*\x20%0',o(_0x3de89c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1552ca['commandName'])return{'type':'format','content':o(_0x3de89c,'*Outdent:*\x20%0',o(_0x3de89c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1552ca['commandName'])return _0x1552ca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3de89c,'*Check\x20item*')}:{'type':'format','content':o(_0x3de89c,'*Uncheck\x20item*')};}function _0x3c7e1c(_0x28fed2){return{'type':'format','content':o(_0x3de89c,'*Change\x20to:*\x20%0',_0x28fed2)};}});}}function me(_0xe9ecad){const _0x2beb79=_0xe9ecad['getAttribute']('listIndent');if(0x0==_0x2beb79)return _0xe9ecad;let _0x5ae583=_0xe9ecad;for(;_0xe9ecad['previousSibling']&&_0xe9ecad['previousSibling']['is']('element','listItem');){const _0x3ff111=_0xe9ecad['previousSibling']['getAttribute']('listIndent');if(_0x3ff111==_0x2beb79)_0x5ae583=_0xe9ecad['previousSibling'];else{if(_0x3ff111<_0x2beb79)break;}_0xe9ecad=_0xe9ecad['previousSibling'];}return _0x5ae583;}function fe(_0x2d2bd1){const _0x413ceb=[];if(_0x2d2bd1['is']('element','listItem')&&_0x2d2bd1['getAttribute']('listIndent')>0x0){let _0x3eb0e6=_0x2d2bd1['nextSibling'];for(;_0x3eb0e6&&'listItem'==_0x3eb0e6['name']&&_0x3eb0e6['getAttribute']('listIndent')==_0x2d2bd1['getAttribute']('listIndent');)_0x413ceb['push'](_0x3eb0e6),_0x3eb0e6=_0x3eb0e6['nextSibling'];}return _0x413ceb;}class K extends _0x5fedcf{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x259ca0=this['editor']['config']['get']('list.properties'),_0x23363e=this['editor']['plugins']['get']('TrackChangesEditing');_0x259ca0['styles']&&_0x23363e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x259ca0['reversed']&&_0x23363e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x259ca0['startIndex']&&_0x23363e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x23363e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4275f3,_0xc9a25={}){const _0x2e67b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d59f5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2e67b7['markMultiRangeBlockFormat'](_0x3d59f5,{'commandName':'listStyle','commandParams':[{'type':_0xc9a25['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x12e2bc,_0x531fd9={}){const _0x360ec5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xaa7b5d=this['_getSuggestionBlocks'](_0x109074=>_0x109074['is']('element','listItem')&&'numbered'===_0x109074['getAttribute']('listType'));if(_0xaa7b5d['length']<0x1)return;const _0x103154=_0xaa7b5d['map'](_0x567da9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x567da9,'before'),this['editor']['model']['createPositionAt'](_0x567da9,0x0)));this['editor']['model']['change'](()=>{_0x360ec5['markMultiRangeBlockFormat'](_0x103154,{'commandName':'listReversed','commandParams':[{'reversed':_0x531fd9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x340a59,_0x7e9f33={}){const _0x4ad7b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35eb84=this['_getSuggestionBlocks'](_0x2e9473=>_0x2e9473['is']('element','listItem')&&'numbered'===_0x2e9473['getAttribute']('listType'));if(_0x35eb84['length']<0x1)return;const _0xf28887=_0x35eb84['map'](_0x22a042=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22a042,'before'),this['editor']['model']['createPositionAt'](_0x22a042,0x0)));this['editor']['model']['change'](()=>{_0x4ad7b0['markMultiRangeBlockFormat'](_0xf28887,{'commandName':'listStart','commandParams':[{'startIndex':_0x7e9f33['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x313181){if('formatBlock'!=_0x313181['type']&&'formatInline'!=_0x313181['type'])return;const _0x48f1c1=this['editor']['locale'],{data:_0x51c1df}=_0x313181;if(!_0x51c1df)return;let _0xe2bb17,_0x4d3228;switch(_0x51c1df['commandName']){case'listStyle':_0xe2bb17='*Change\x20to:*\x20%0',_0x4d3228={'type':'format','content':o(_0x48f1c1,_0xe2bb17,o(_0x48f1c1,this['_getTranslationKeyForListStyle'](_0x51c1df['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe2bb17=_0x51c1df['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4d3228={'type':'format','content':o(_0x48f1c1,_0xe2bb17)};break;case'listStart':_0xe2bb17='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d3228={'type':'format','content':o(_0x48f1c1,_0xe2bb17,_0x51c1df['commandParams'][0x0]['startIndex'])};}return _0x4d3228;}['_getSuggestionBlocksForListStyle'](){const _0x495194=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c3e02=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c3e02[0x0]?.['is']('element','listItem')&&_0x2c3e02['unshift'](..._0x495194['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c3e02[_0x2c3e02['length']-0x1]?.['is']('element','listItem')&&_0x2c3e02['push'](..._0x495194['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c3e02=[...new Set(_0x2c3e02)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c3e02=_0x2c3e02['filter'](_0x15e78d=>_0x15e78d['is']('element','listItem'))),_0x2c3e02;}['_getSuggestionBlocks'](_0x56238b){const _0x34f86a=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ca731=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x56238b)['map'](_0x1adddb=>{const _0x131080=this['editor']['model']['createPositionAt'](_0x1adddb,0x0);return[..._0x34f86a['getSiblingNodes'](_0x131080,'backward'),..._0x34f86a['getSiblingNodes'](_0x131080,'forward')];})['flat']();return _0x3ca731=[...new Set(_0x3ca731)],_0x3ca731;}['_getTranslationKeyForListStyle'](_0x4a9d48){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4a9d48)||'default')['toUpperCase']()+'_LIST_'+_0x4a9d48['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5fedcf{['afterInit'](){const _0x2a67b4=this['editor'];if(!_0x2a67b4['plugins']['has']('MediaEmbedEditing'))return;const _0x462479=_0x2a67b4['plugins']['get']('TrackChangesEditing'),_0xa1488d=_0x2a67b4['locale'];_0x462479['enableCommand']('mediaEmbed'),_0x462479['descriptionFactory']['registerElementLabel']('media',_0x4fdff7=>o(_0xa1488d,'ELEMENT_MEDIA',_0x4fdff7)),_0x2a67b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1cf1db,{writer:_0x3c3df0,options:_0x50726f})=>{if(_0x50726f['showSuggestionHighlights'])return _0x3c3df0['createEmptyElement']('div');},'converterPriority':'high'}),_0x2a67b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x31fd3a,_0x34ad2f,_0x5a4493)=>{_0x5a4493['options']['showSuggestionHighlights']&&_0x31fd3a['stop']();},{'priority':'high'});}}class gt extends _0x5fedcf{['afterInit'](){const _0x791cff=this['editor'];_0x791cff['plugins']['has']('MentionEditing')&&_0x791cff['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5fedcf{['afterInit'](){const _0x45dd30=this['editor'],_0x12d0ea=_0x45dd30['plugins']['get']('TrackChangesEditing');_0x45dd30['plugins']['has']('MultiLevelList')&&(_0x12d0ea['enableDefaultAttributesIntegration']('multiLevelList'),_0x12d0ea['registerBlockAttribute']('listMarkerStyle'),_0x12d0ea['descriptionFactory']['registerDescriptionCallback'](_0x2e8800=>this['handleDescriptions'](_0x2e8800)));}['handleDescriptions'](_0x3fc14f){const _0x52965b=this['editor']['locale'],{data:_0xe457e}=_0x3fc14f,_0x182494={'type':'format','content':''};if(_0xe457e&&'listMarkerStyle'==_0xe457e['key']){if(!_0xe457e['oldValue'])return{'type':'format','content':o(_0x52965b,'*Set\x20format:*\x20%0',o(_0x52965b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe457e['newValue']+')'};if(!_0xe457e['newValue']){let _0x36b5d8=_0x3fc14f['head'];for(;_0x36b5d8;){if(_0x36b5d8['data']&&'listType'==_0x36b5d8['data']['key']&&_0x36b5d8['data']['newValue'])return _0x182494;_0x36b5d8=_0x36b5d8['next'];}return{'type':'format','content':o(_0x52965b,'*Remove\x20format:*\x20%0',o(_0x52965b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe457e['oldValue']+')'};}}}}class mt extends _0x5fedcf{['afterInit'](){const _0x2b12b4=this['editor'];if(!_0x2b12b4['plugins']['has']('PageBreakEditing'))return;_0x2b12b4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b2203=_0x2b12b4['plugins']['get']('TrackChangesEditing'),_0x18b3c9=_0x2b12b4['locale'];_0x4b2203['descriptionFactory']['registerElementLabel']('pageBreak',_0x441040=>o(_0x18b3c9,'ELEMENT_PAGE_BREAK',_0x441040));}}class dt extends _0x5fedcf{['afterInit'](){const _0x179c81=this['editor'];if(!_0x179c81['plugins']['has']('Paragraph'))return;const _0x74324b=_0x179c81['locale'],_0x18a52e=_0x179c81['plugins']['get']('TrackChangesEditing');_0x18a52e['descriptionFactory']['registerElementLabel']('paragraph',_0xf85450=>o(_0x74324b,'ELEMENT_PARAGRAPH',_0xf85450)),_0x18a52e['enableDefaultAttributesIntegration']('paragraph'),_0x18a52e['enableCommand']('insertParagraph'),_0x179c81['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x179c81),{'priority':'highest'}),_0x179c81['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5b8f2a,_0x418da5,_0x45f10b)=>{_0x45f10b['options']['showSuggestionHighlights']&&nr(_0x179c81,{'showActiveMarker':!0x1})(_0x5b8f2a,_0x418da5,_0x45f10b);},{'priority':'highest'});const _0x49501e=_0x18a52e['descriptionFactory'];_0x49501e['registerDescriptionCallback'](_0xc3d395=>{if('insertion'!==_0xc3d395['type'])return;const {start:_0x388e18,end:_0x47e409}=_0xc3d395['getFirstRange']();if(!_0x388e18['isTouching'](_0x47e409)||!_0x388e18['nodeAfter'])return;const _0x413f00=_0x179c81['model']['schema'],_0x5d7fb7=_0x388e18['nodeAfter'];return _0x413f00['isBlock'](_0x5d7fb7)&&!_0x413f00['isLimit'](_0x5d7fb7)&&_0x413f00['checkChild'](_0x5d7fb7,'$text')?{'type':'insertion','content':o(_0x74324b,'*Insert:*\x20%0',_0x49501e['getItemLabel'](_0x5d7fb7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb0d5df=this['editor'],_0x4015dc=_0xb0d5df['locale'];_0xb0d5df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cf68c=>{if('formatBlock'!=_0x5cf68c['type'])return;const {data:_0x44aefb}=_0x5cf68c;return _0x44aefb&&'paragraph'==_0x44aefb['commandName']?{'type':'format','content':o(_0x4015dc,'*Change\x20to:*\x20%0',o(_0x4015dc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x38082f,{showActiveMarker:_0x1f0581=!0x0}={}){return(_0x5eb131,_0x2053ab,_0x9d6475)=>{const _0x1f8d65=_0x38082f['plugins']['get']('TrackChangesEditing'),_0x144d8f=_0x2053ab['markerRange']['start'],_0x57fcc2=_0x2053ab['markerRange']['end'],_0xd4a307=_0x38082f['model']['schema'];if(!_0x144d8f['isTouching'](_0x57fcc2)||!_0x144d8f['nodeAfter'])return;const _0xd012d4=_0x144d8f['nodeAfter'];if(_0xd4a307['isBlock'](_0xd012d4)&&!_0xd4a307['isLimit'](_0xd012d4)&&_0xd4a307['checkChild'](_0xd012d4,'$text')){if(!_0x9d6475['consumable']['consume'](_0x2053ab['markerRange'],_0x5eb131['name']))return;const _0x50462f=_0x9d6475['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x262910=_0x9d6475['mapper']['toViewPosition'](_0x57fcc2);_0x1f0581&&_0x1f8d65['activeMarkers']['includes'](_0x2053ab['markerName'])&&_0x9d6475['writer']['addClass']('ck-suggestion-marker--active',_0x50462f),_0x9d6475['writer']['insert'](_0x262910,_0x50462f),_0x9d6475['mapper']['bindElementToMarker'](_0x50462f,_0x2053ab['markerName']);}};}class pt extends _0x5fedcf{['afterInit'](){const _0x2f898e=this['editor'];if(!_0x2f898e['plugins']['has']('RemoveFormatEditing'))return;_0x2f898e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ecf5c=this['editor'];_0x5ecf5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24f39d=>{if('formatBlock'!=_0x24f39d['type']&&'formatInline'!=_0x24f39d['type'])return;const {data:_0x59b334}=_0x24f39d;return _0x59b334&&'removeFormat'==_0x59b334['commandName']?{'type':'format','content':o(_0x5ecf5c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5fedcf{['afterInit'](){const _0x4cfbfc=this['editor'];if(!_0x4cfbfc['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x273b81=_0x4cfbfc['plugins']['get']('TrackChangesEditing');_0x273b81['enableCommand']('goToPreviousRestrictedEditingException'),_0x273b81['enableCommand']('goToNextRestrictedEditingException');const _0x188d22=_0x4cfbfc['plugins']['get']('RestrictedEditingModeEditing');_0x188d22['enableCommand']('trackChanges'),_0x188d22['enableCommand']('acceptSuggestion'),_0x188d22['enableCommand']('discardSuggestion'),_0x188d22['enableCommand']('acceptAllSuggestions'),_0x188d22['enableCommand']('discardAllSuggestions'),_0x188d22['enableCommand']('acceptSelectedSuggestions'),_0x188d22['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5fedcf{static get['requires'](){return[_0x27fae9];}['init'](){const _0x57173f=this['editor'],_0x543072=_0x57173f['plugins']['get']('TrackChangesEditing');_0x543072['enableCommand']('shiftEnter'),_0x57173f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x57173f),{'priority':'high'}),_0x57173f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x57173f),{'priority':'high'}),_0x57173f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc738c5,_0x9953e0,_0x4baa0b)=>{_0x4baa0b['options']['showSuggestionHighlights']&&de(_0x57173f,{'showActiveMarker':!0x1})(_0xc738c5,_0x9953e0,_0x4baa0b);}),_0x543072['descriptionFactory']['registerElementLabel']('softBreak',_0x10a5b9=>o(_0x57173f['locale'],'ELEMENT_LINE_BREAK',_0x10a5b9));}}function de(_0xc18b40,{showActiveMarker:_0x2a4340=!0x0}={}){return(_0x50e4fd,_0x23c1c7,_0x2539aa)=>{const _0x3983dd=_0xc18b40['plugins']['get']('TrackChangesEditing');if(!_0x2539aa['consumable']['test'](_0x23c1c7['markerRange'],_0x50e4fd['name']))return;const _0x52d4ea=_0xc18b40['model'];for(const _0x10eac4 of _0x23c1c7['markerRange']['getItems']()){if(!_0x10eac4['is']('element','softBreak'))continue;const _0x1c6173='deletion'==_0x23c1c7['markerName']['split'](':')[0x1]?'merge':'split',_0x5918db=_0x2539aa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c6173}),_0xed540f=_0x2539aa['mapper']['toViewPosition'](_0x52d4ea['createPositionBefore'](_0x10eac4));_0x2a4340&&_0x3983dd['activeMarkers']['includes'](_0x23c1c7['markerName'])&&_0x2539aa['writer']['addClass']('ck-suggestion-marker--active',_0x5918db),_0x2539aa['writer']['insert'](_0xed540f,_0x5918db),_0x2539aa['mapper']['bindElementToMarker'](_0x5918db,_0x23c1c7['markerName']);}};}class wt extends _0x5fedcf{['afterInit'](){const _0xad4bf=this['editor'],_0x49353a=_0xad4bf['model'],_0xf8f626=_0xad4bf['locale'];if(!_0xad4bf['plugins']['has']('StandardEditingModeEditing'))return;const _0x186b88=_0xad4bf['plugins']['get']('TrackChangesEditing'),_0x140802='restrictedEditingException',_0x4bd0ff=_0xad4bf['commands']['get'](_0x140802);_0x186b88['enableCommand'](_0x140802,(_0x2332d7,_0x2bb6e2={})=>{const _0x4bd8e2=_0x49353a['document']['selection'];if(_0x4bd8e2['isCollapsed'])return void _0x2332d7(_0x2bb6e2);const _0x56067b=void 0x0!==_0x2bb6e2['forceValue']?_0x2bb6e2['forceValue']:!_0x4bd0ff['value'];_0x49353a['change'](()=>{const _0x2ade37=Array['from'](_0x4bd8e2['getRanges']());for(const _0x5b2b8e of _0x2ade37){const _0x506013=_0x56067b?[_0x5b2b8e]:io(_0x140802,_0x5b2b8e,_0x49353a);for(const _0x1699a6 of _0x506013)_0x186b88['markInlineFormat'](_0x1699a6,{'commandName':_0x140802,'commandParams':[{'forceValue':_0x56067b}]});}});}),_0x186b88['descriptionFactory']['registerDescriptionCallback'](_0x1401ea=>{if('formatBlock'!=_0x1401ea['type']&&'formatInline'!=_0x1401ea['type'])return;const {data:_0x531cc7}=_0x1401ea;return _0x531cc7&&_0x531cc7['commandName']==_0x140802?_0x531cc7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf8f626,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xf8f626,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5fedcf{['afterInit'](){const _0x1a55bc=this['editor'];if(!_0x1a55bc['plugins']['has']('Style')||!_0x1a55bc['plugins']['has']('DataSchema'))return;const _0x1fb1d3=_0x1a55bc['plugins']['get']('TrackChangesEditing'),_0x258532=_0x1a55bc['locale'],_0x14935e=_0x1a55bc['config']['get']('style')||{},_0x3c33ce=_0x1a55bc['plugins']['get']('GeneralHtmlSupport'),_0x1af08c=_0x1a55bc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1a55bc['plugins']['get']('DataSchema'),_0x14935e['definitions']);_0x1fb1d3['enableDefaultAttributesIntegration']('style');const _0x4fef99=new Set();for(const _0x1a2051 of _0x1af08c['block']){const _0x5b9cd5=_0x3c33ce['getGhsAttributeNameForElement'](_0x1a2051['element']);_0x4fef99['add'](_0x5b9cd5);}const _0x2f05d2=new Set();for(const _0x1c115f of _0x1af08c['inline']){const _0x12c740=_0x3c33ce['getGhsAttributeNameForElement'](_0x1c115f['element']);_0x2f05d2['add'](_0x12c740);for(const _0x2519d4 of _0x1c115f['ghsAttributes'])_0x2f05d2['add'](_0x2519d4);}for(const _0x16d50e of _0x4fef99)_0x1fb1d3['registerBlockAttribute'](_0x16d50e),_0x1fb1d3['descriptionFactory']['registerAttributeLabel'](_0x16d50e,o(_0x258532,'FORMAT_STYLE'));for(const _0x5dd762 of _0x2f05d2)_0x1fb1d3['registerInlineAttribute'](_0x5dd762),_0x1fb1d3['descriptionFactory']['registerAttributeLabel'](_0x5dd762,o(_0x258532,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x141fbf=this['editor'],_0x2bc567=_0x141fbf['locale'];_0x141fbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x510861=>{if('formatBlock'!=_0x510861['type']&&'formatInline'!=_0x510861['type'])return;const {data:_0x2f6985}=_0x510861;return _0x2f6985&&'style'===_0x2f6985['commandName']?_0x2f6985['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bc567,'*Set\x20format:*\x20%0',_0x2f6985['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2bc567,'*Remove\x20format:*\x20%0',_0x2f6985['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5fedcf{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x47de94){super(_0x47de94),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a7b3f=this['editor'],_0x592781=_0x2a7b3f['model']['document']['selection'];if(!_0x2a7b3f['plugins']['has']('TableEditing'))return;const _0x189f45=_0x2a7b3f['locale'],_0x3fe423=_0x2a7b3f['plugins']['get']('TrackChangesEditing'),_0x29aaf2=_0x2a7b3f['plugins']['get']('TableUtils');_0x3fe423['descriptionFactory']['registerElementLabel']('table',_0x31c27f=>o(_0x189f45,'ELEMENT_TABLE',_0x31c27f)),this['_setupColumnsRowsFixing'](),_0x3fe423['enableCommand']('insertTable'),_0x3fe423['enableCommand']('selectTableRow'),_0x3fe423['enableCommand']('selectTableColumn');for(const _0x4c7a67 of['insertTableRowAbove','insertTableRowBelow']){const _0x400822=_0x2a7b3f['commands']['get'](_0x4c7a67);_0x3fe423['enableCommand'](_0x4c7a67,_0x5ba314=>{_0x2a7b3f['model']['change'](_0x45a088=>{_0x5ba314();const _0x3f717a='above'===_0x400822['order'],_0x281d2b=_0x29aaf2['getSelectionAffectedTableCells'](_0x592781),_0x19732d=_0x29aaf2['getRowIndexes'](_0x281d2b),_0x55abb6=_0x3f717a?_0x19732d['first']-0x1:_0x19732d['last']+0x1,_0x1d4d89=_0x281d2b[0x0]['findAncestor']('table'),_0x93fa4d=_0x29aaf2['createTableWalker'](_0x1d4d89,{'startRow':_0x55abb6,'endRow':_0x55abb6}),_0x36ea12=Array['from'](_0x93fa4d)['map'](_0x3e1e45=>_0x45a088['createRangeOn'](_0x3e1e45['cell']));_0x3fe423['markMultiRangeInsertion'](_0x36ea12,'tableRow');});});}for(const _0x5c2a7c of['insertTableColumnLeft','insertTableColumnRight']){const _0x3e66d9=_0x2a7b3f['commands']['get'](_0x5c2a7c);_0x3fe423['enableCommand'](_0x5c2a7c,_0x26cc80=>{_0x2a7b3f['model']['change'](_0x50a89a=>{_0x26cc80();const _0x55c67d='left'===_0x3e66d9['order'],_0x26e999=_0x29aaf2['getSelectionAffectedTableCells'](_0x592781),_0x4383e5=_0x29aaf2['getColumnIndexes'](_0x26e999),_0x398e5d=_0x55c67d?_0x4383e5['first']-0x1:_0x4383e5['last']+0x1,_0x1694c8=_0x26e999[0x0]['findAncestor']('table'),_0x38930b=_0x29aaf2['createTableWalker'](_0x1694c8,{'startRow':0x0,'column':_0x398e5d,'includeAllSlots':!0x1}),_0x84426a=Array['from'](_0x38930b)['map'](_0x32ec4a=>_0x50a89a['createRangeOn'](_0x32ec4a['cell']));_0x3fe423['markMultiRangeInsertion'](_0x84426a,'tableColumn');});});}for(const _0xaebfbb of['removeTableRow','removeTableColumn']){const _0x451fb6=_0xaebfbb['substr'](0xb),_0x438a7c=_0x451fb6['toLowerCase'](),_0x4ca03a=_0x438a7c['substr'](0x0,0x3)+'span',_0x4ab07e='table'+_0x451fb6,_0x1a9789='min'+_0x451fb6,_0x19c956='max'+_0x451fb6;_0x3fe423['enableCommand'](_0xaebfbb,()=>{_0x2a7b3f['model']['change'](_0x1bd72d=>{const _0x5ec4bb=_0x29aaf2['getSelectionAffectedTableCells'](_0x592781),_0x7e1bb5=_0x5ec4bb[0x0]['findAncestor']('table');let _0x2c201e;if('removeTableRow'==_0xaebfbb){const _0xe33835=_0x29aaf2['getRowIndexes'](_0x5ec4bb);_0x2c201e={'startRow':_0xe33835['first'],'endRow':_0xe33835['last'],'includeAllSlots':!0x0};}else{const _0x3ca110=_0x29aaf2['getColumnIndexes'](_0x5ec4bb);_0x2c201e={'startColumn':_0x3ca110['first'],'endColumn':_0x3ca110['last'],'includeAllSlots':!0x0};}const _0x1d5203=_0x29aaf2['createTableWalker'](_0x7e1bb5,_0x2c201e),_0x852b78=Array['from'](_0x1d5203)['map'](({cell:_0x36e425})=>_0x36e425),_0x112cf0=Ee(_0x852b78['filter'](_0x10d249=>_0x10d249['hasAttribute'](_0x4ca03a))),_0x2aa101=Ee(_0x852b78['filter'](_0xb5ddfc=>!_0xb5ddfc['hasAttribute'](_0x4ca03a)))['map'](_0x9b6526=>_0x1bd72d['createRangeOn'](_0x9b6526)),_0x27601c=_0x3fe423['markMultiRangeDeletion'](_0x2aa101,_0x4ab07e);if(_0x27601c&&('tableRow'==_0x27601c['subType']||'tableColumn'==_0x27601c['subType'])){const _0x141296=this['_getSuggestionCoords'](_0x27601c);for(const _0x302c2c of _0x112cf0){const _0x5ba0da=_0x1bd72d['createRangeOn'](_0x302c2c),_0x35756d=_0x29aaf2['getCellLocation'](_0x302c2c),_0x2973ff=_0x302c2c['getAttribute'](_0x4ca03a)-0x1,_0x5564a3=_0x141296[_0x1a9789],_0xb38421=_0x141296[_0x19c956];_0x5564a3<=_0x35756d[_0x438a7c]&&_0x35756d[_0x438a7c]+_0x2973ff<=_0xb38421&&_0x27601c['addRange'](_0x5ba0da);}}});});}function _0x39790e(_0x5b620b){const _0x444ec6=Array['from'](_0x592781['getRanges']())['map'](_0x42e2af=>_0x10487e['fromRange'](_0x42e2af));_0x2a7b3f['model']['change'](_0x3c6c1f=>{const _0x3d5001=_0x3c6c1f['batch'];_0x5b620b=_0x5b620b['filter'](_0x4fc4b0=>'$graveyard'!=_0x4fc4b0['root']['rootName']),_0x3c6c1f['setSelection'](_0x5b620b),_0x2a7b3f['commands']['get']('removeTableRow')['refresh'](),_0x2a7b3f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a7b3f['model']['enqueueChange'](()=>{_0x2a7b3f['model']['enqueueChange'](_0x3d5001,_0x132a24=>{const _0x5dda81=_0x444ec6['filter'](_0x14ceed=>'$graveyard'!=_0x14ceed['root']['rootName']);_0x5dda81['length']>0x0&&_0x132a24['setSelection'](_0x5dda81);for(const _0x47b28b of _0x444ec6)_0x47b28b['detach']();});});});}function _0x471d3b(_0x3a0f2e){_0x2a7b3f['model']['change'](_0x2e8dd7=>{const _0x382dda=Array['from'](_0x592781['getRanges']())['map'](_0x1f2359=>_0x10487e['fromRange'](_0x1f2359)),_0x2eb745=[];for(const _0x38739f of _0x3a0f2e)for(const _0xc5f86b of _0x38739f['getItems']({'shallow':!0x0}))_0x2eb745['push'](_0xc5f86b);for(const _0x5827ee of _0x2eb745)'$graveyard'!=_0x5827ee['root']['rootName']&&(_0x2e8dd7['setSelection'](_0x2e8dd7['createPositionAt'](_0x5827ee,0x0)),_0x2a7b3f['commands']['get']('removeTableColumn')['refresh'](),_0x2a7b3f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x38f833=_0x382dda['filter'](_0x1491ef=>'$graveyard'!=_0x1491ef['root']['rootName']);_0x38f833['length']>0x0&&_0x2e8dd7['setSelection'](_0x38f833);for(const _0xb0235d of _0x382dda)_0xb0235d['detach']();});}function _0x1a7191(_0x54baea,_0x2ae7e2){return _0x2ae7e2['every'](_0x20d5d0=>_0x54baea['some'](_0x4cd7da=>_0x4cd7da['end']['isEqual'](_0x20d5d0['start'])||_0x20d5d0['end']['isEqual'](_0x4cd7da['start'])));}function _0x4b5f39(_0x1fbbb0,_0x146a42){return!_0x1fbbb0['some'](_0x54daf2=>_0x146a42['some'](_0x5c520e=>_0x54daf2['isIntersecting'](_0x5c520e)))&&_0x1fbbb0['some'](_0x27fb4b=>_0x146a42['some'](_0x1407b2=>_0x27fb4b['end']['isTouching'](_0x1407b2['start'])));}_0x2a7b3f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3211c8,_0xf5e7ee,_0x1dd8b3)=>{if(!_0x1dd8b3['options']['showSuggestionHighlights'])return;const _0x541e9b=_0xf5e7ee['item'];if(!_0x541e9b)return;const _0x1734ab=_0x1dd8b3['mapper']['toViewElement'](_0x541e9b);function _0x444a61(_0x2ec3bc){return Array['isArray'](_0x2ec3bc)?_0x2ec3bc:[_0x2ec3bc];}_0x1734ab&&'tableCell'===_0x541e9b['name']&&_0x34badc(_0x1734ab,_0x1dd8b3['writer'],(_0x1dd2eb,_0x3702e6,_0x52842c)=>_0x52842c['addClass'](_0x444a61(_0x3702e6['classes']),_0x1dd2eb),(_0x3de348,_0x339850,_0x57acc)=>_0x57acc['removeClass'](_0x444a61(_0x339850['classes']),_0x3de348));},{'priority':'highest'}),_0x3fe423['descriptionFactory']['registerDescriptionCallback'](_0x1feb54=>{if('insertion'!=_0x1feb54['type']&&'deletion'!=_0x1feb54['type'])return;const _0x2355cc=_0x1feb54['getContainedElement']();if(null!=_0x2355cc&&_0x2355cc['is']('element','table')){if('insertion'==_0x1feb54['type']){const _0x2c84ad=_0x1feb54['getItems']()['filter'](_0x4b0a70=>_0x4b0a70['is']('$textProxy'))['map'](_0x4367af=>_0x4367af['data']);if(_0x2c84ad['length'])return{'type':'insertion','content':o(_0x189f45,'*Insert:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2c84ad['join']('\x20')+'\x22'))};}if('deletion'==_0x1feb54['type']){const _0x1c3a28=_0x1feb54['getItems']()['filter'](_0x10dd12=>_0x10dd12['is']('$textProxy'))['map'](_0x579e70=>_0x579e70['data']);if(_0x1c3a28['length'])return{'type':'deletion','content':o(_0x189f45,'*Remove:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1c3a28['join']('\x20')+'\x22'))};}}}),_0x3fe423['descriptionFactory']['registerDescriptionCallback'](_0x30d4d7=>{if('tableRow'==_0x30d4d7['subType']){const _0x17ab50=_0x30d4d7['getItems']()['filter'](_0x1887d8=>_0x1887d8['is']('$textProxy'))['map'](_0x2a911c=>_0x2a911c['data']),_0x57a685=this['_getSuggestionCoords'](_0x30d4d7),_0x53d62e=_0x57a685['maxRow']-_0x57a685['minRow']+0x1;if('insertion'==_0x30d4d7['type'])return _0x17ab50['length']?{'type':'insertion','content':o(_0x189f45,'*Insert:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x53d62e,'\x22'+_0x17ab50['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x189f45,'*Insert:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_ROW',_0x53d62e))};if('deletion'==_0x30d4d7['type'])return _0x17ab50['length']?{'type':'deletion','content':o(_0x189f45,'*Remove:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x53d62e,'\x22'+_0x17ab50['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x189f45,'*Remove:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_ROW',_0x53d62e))};}if('tableColumn'==_0x30d4d7['subType']){const _0x4e049=_0x30d4d7['getItems']()['filter'](_0x1dfc19=>_0x1dfc19['is']('$textProxy'))['map'](_0x2253c8=>_0x2253c8['data']),_0x2c9aea=this['_getSuggestionCoords'](_0x30d4d7),_0x18f654=_0x2c9aea['maxColumn']-_0x2c9aea['minColumn']+0x1;if('insertion'==_0x30d4d7['type'])return _0x4e049['length']?{'type':'insertion','content':o(_0x189f45,'*Insert:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18f654,'\x22'+_0x4e049['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x189f45,'*Insert:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_COLUMN',_0x18f654))};if('deletion'==_0x30d4d7['type'])return _0x4e049['length']?{'type':'deletion','content':o(_0x189f45,'*Remove:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18f654,'\x22'+_0x4e049['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x189f45,'*Remove:*\x20%0',o(_0x189f45,'ELEMENT_TABLE_COLUMN',_0x18f654))};}}),_0x3fe423['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x39790e),_0x3fe423['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x39790e),_0x3fe423['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x471d3b),_0x3fe423['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x471d3b),_0x3fe423['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1a7191),_0x3fe423['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1a7191),_0x3fe423['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b5f39),_0x3fe423['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b5f39);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2ae384=this['editor'],_0x34bf88=_0x2ae384['model']['document']['selection'];return(_0x5b26f9,_0x434c2a)=>{_0x2ae384['model']['change'](_0x3071c5=>{const {commandName:_0x13a29e,commandParams:_0x5e7f25}=_0x434c2a;let _0x4b7252=_0x5b26f9[0x0]['end']['nodeBefore'];_0x5e7f25&&_0x5e7f25[0x0]&&!0x1===_0x5e7f25[0x0]['forceValue']&&(_0x4b7252=_0x5b26f9[0x0]['start']['nodeAfter']);const _0x47ef4a=_0x3071c5['createRangeIn'](_0x4b7252);if('$graveyard'==_0x47ef4a['root']['rootName'])return;const _0x3422f2=Array['from'](_0x34bf88['getRanges']())['map'](_0x45b9d2=>_0x10487e['fromRange'](_0x45b9d2));_0x3071c5['setSelection'](_0x47ef4a),_0x2ae384['commands']['get'](_0x13a29e)['refresh'](),_0x5e7f25['push']({'forceDefaultExecution':!0x0}),_0x2ae384['execute'](_0x13a29e,..._0x5e7f25);const _0x53bc94=_0x3422f2['filter'](_0x2fab3d=>'$graveyard'!=_0x2fab3d['root']['rootName']);_0x53bc94['length']>0x0&&_0x3071c5['setSelection'](_0x53bc94);for(const _0x1e4aa8 of _0x3422f2)_0x1e4aa8['detach']();});};}['_getCoordsForCells'](_0x3d2af0){const _0x13f3c9=this['editor']['plugins']['get']('TableUtils');let _0x52fd2e=Number['MAX_SAFE_INTEGER'],_0x37999b=Number['MIN_SAFE_INTEGER'],_0x5cb088=Number['MAX_SAFE_INTEGER'],_0x567251=Number['MIN_SAFE_INTEGER'];for(const _0x741f83 of _0x3d2af0){if('$graveyard'==_0x741f83['root']['rootName'])continue;const {row:_0x416651,column:_0x2264a3}=_0x13f3c9['getCellLocation'](_0x741f83),_0xcbb5ec=_0x741f83['hasAttribute']('rowspan')?_0x741f83['getAttribute']('rowspan')-0x1:0x0,_0x3e7f80=_0x741f83['hasAttribute']('colspan')?_0x741f83['getAttribute']('colspan')-0x1:0x0;_0x52fd2e=_0x416651<_0x52fd2e?_0x416651:_0x52fd2e,_0x37999b=_0x416651+_0xcbb5ec>_0x37999b?_0x416651+_0xcbb5ec:_0x37999b,_0x5cb088=_0x2264a3<_0x5cb088?_0x2264a3:_0x5cb088,_0x567251=_0x2264a3+_0x3e7f80>_0x567251?_0x2264a3+_0x3e7f80:_0x567251;}return{'minRow':_0x52fd2e,'maxRow':_0x37999b,'minColumn':_0x5cb088,'maxColumn':_0x567251};}['_setupColumnsRowsFixing'](){const _0x34696f=this['editor'],_0x3dd66d=_0x34696f['plugins']['get']('TrackChangesEditing'),_0x4a5521=_0x34696f['plugins']['get']('TableUtils');_0x34696f['model']['document']['on']('change:data',()=>{const _0x7de09a=Array['from'](_0x34696f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30ae5d,data:_0x4b2c40}of _0x7de09a){const {group:_0x398be4,id:_0x28006f,subType:_0x37a71c}=_0x3dd66d['_splitMarkerName'](_0x30ae5d);if('suggestion'!=_0x398be4)continue;if(null!=_0x4b2c40['oldRange'])continue;const _0x4d15de=_0x3dd66d['getSuggestion'](_0x28006f);this['_tablePostFixingSubtypes']['includes'](_0x37a71c)&&this['_tableSuggestions']['add'](_0x4d15de);}},{'priority':'low'});const _0x24ecc0=(_0x53ff83,_0xd9eb4f)=>{let _0x16ae12=!0x1;const _0x3584cc=_0xd9eb4f['createRangeOn'](_0x53ff83),_0x4cddaf=_0x53ff83['findAncestor']('table'),_0x4997a6=_0x4a5521['getCellLocation'](_0x53ff83);for(const _0x2da1a5 of this['_tableSuggestions']){const _0x420148=_0x2da1a5['subType'],_0x35f200=_0x420148['startsWith']('tablePaste'),_0x6c105c=_0x420148['substr'](_0x35f200?0xa:0x5),_0x5b15cb=_0x6c105c['toLowerCase'](),_0x24ec71=_0x5b15cb['substr'](0x0,0x3)+'span',_0x372a66='min'+_0x6c105c,_0x526585='max'+_0x6c105c;if(!_0x2da1a5['isInContent'])continue;if(_0x4cddaf!=_0x2da1a5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2da1a5['isIntersectingWithRange'](_0x3584cc))continue;const _0xf8334e=_0x53ff83['hasAttribute'](_0x24ec71)?_0x53ff83['getAttribute'](_0x24ec71)-0x1:0x0,_0x4037c1=this['_getSuggestionCoords'](_0x2da1a5),_0x119164=_0x4037c1[_0x372a66],_0x3eb19c=_0x4037c1[_0x526585];_0x119164<=_0x4997a6[_0x5b15cb]&&_0x4997a6[_0x5b15cb]+_0xf8334e<=_0x3eb19c&&(_0x2da1a5['addRange'](_0x3584cc),_0x16ae12=!0x0);}return _0x16ae12;};_0x34696f['model']['document']['registerPostFixer'](_0x344334=>{let _0x3054f3=!0x1;for(const _0x64a225 of _0x34696f['model']['document']['differ']['getChanges']())if('insert'==_0x64a225['type']){if('tableRow'==_0x64a225['name']){for(const _0x36b733 of _0x64a225['position']['nodeAfter']['getChildren']())_0x3054f3=_0x3054f3||_0x24ecc0(_0x36b733,_0x344334);}else'tableCell'==_0x64a225['name']&&(_0x3054f3=_0x3054f3||_0x24ecc0(_0x64a225['position']['nodeAfter'],_0x344334));}return _0x3054f3;});}['_getSuggestionCoords'](_0x5214f0){return this['_getCoordsForCells'](_0x5214f0['getRanges']()['map'](_0x16ed83=>_0x16ed83['start']['nodeAfter']));}}function Ee(_0x27e854){return Array['from'](new Set(_0x27e854)['values']());}class St extends _0x5fedcf{static get['requires'](){return[jt];}['afterInit'](){const _0x253800=this['editor'],_0x3f6d9b=_0x253800['model']['document']['selection'],_0x1364e6=_0x253800['locale'];if(!_0x253800['plugins']['has']('TableEditing'))return;const _0x4e9ea9=_0x253800['plugins']['get']('TrackChangesEditing'),_0x4b8a9f=_0x253800['plugins']['get']('TableUtils'),_0x187294=_0x253800['plugins']['get'](jt);_0x187294['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4e9ea9['enableCommand']('mergeTableCells',()=>{const _0x252cbb=_0x4b8a9f['getSelectionAffectedTableCells'](_0x253800['model']['document']['selection']);_0x253800['model']['change'](()=>{_0x4e9ea9['markMultiRangeBlockFormat'](_0x252cbb,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x253800['commands']['get']('mergeTableCells')['on']('execute',(_0x5fff45,_0x277c26)=>{_0x253800['commands']['get']('trackChanges')['value']&&(_0x277c26['length']>0x0&&_0x277c26[_0x277c26['length']-0x1]&&_0x277c26[_0x277c26['length']-0x1]['forceDefaultExecution']||_0x4e9ea9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5fff45['stop']());},{'priority':'highest'});for(const _0x1ea67c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x116396=_0x253800['commands']['get'](_0x1ea67c);_0x4e9ea9['enableCommand'](_0x1ea67c,()=>{const _0x1f93f7=_0x253800['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xff47e8=>_0xff47e8['is']('element','tableCell')),_0x5e17b5=_0x116396['value'];_0x253800['model']['change'](()=>{_0x4e9ea9['markMultiRangeBlockFormat']([_0x1f93f7,_0x5e17b5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xa586c6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x252caa=_0x253800['commands']['get'](_0xa586c6);_0x4e9ea9['enableCommand'](_0xa586c6,()=>{const _0x26662a=_0x4b8a9f['getSelectionAffectedTableCells'](_0x253800['model']['document']['selection'])[0x0],_0x533f95=_0x26662a['findAncestor']('table'),{column:_0x4516f7,row:_0x348410}=_0x4b8a9f['getCellLocation'](_0x26662a);let _0x5abf07=[];if('horizontally'==_0x252caa['direction']){const _0x5db595=_0x4b8a9f['createTableWalker'](_0x533f95,{'startRow':_0x348410,'endRow':_0x348410,'includeAllSlots':!0x0});_0x5abf07=Array['from'](_0x5db595)['map'](_0x49055b=>_0x49055b['cell']);}else{const _0x422ff4=_0x4b8a9f['createTableWalker'](_0x533f95,{'column':_0x4516f7,'includeAllSlots':!0x0});_0x5abf07=Array['from'](_0x422ff4)['map'](_0x219396=>_0x219396['cell']);}_0x253800['model']['change'](_0xb1a7c9=>{_0x4e9ea9['markBlockFormat'](_0xb1a7c9['createRangeOn'](_0x26662a),{'commandName':_0xa586c6,'commandParams':[]},_0x5abf07,_0xa586c6);});});}_0x4e9ea9['descriptionFactory']['registerDescriptionCallback'](_0x37386=>{if('formatBlock'!=_0x37386['type']&&'formatInline'!=_0x37386['type'])return;const {data:_0x4ca62f}=_0x37386;return _0x4ca62f&&'mergeTableCells'==_0x4ca62f['commandName']?{'type':'format','content':o(_0x1364e6,'*Merge\x20cells*')}:void 0x0;}),_0x4e9ea9['descriptionFactory']['registerDescriptionCallback'](_0x5a1188=>{if('formatBlock'!=_0x5a1188['type']&&'formatInline'!=_0x5a1188['type'])return;const {data:_0x214a0b}=_0x5a1188;return _0x214a0b?'splitTableCellVertically'==_0x214a0b['commandName']?{'type':'format','content':o(_0x1364e6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x214a0b['commandName']?{'type':'format','content':o(_0x1364e6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1c73b5=_0x187294['_acceptFormatSuggestionCallbackFactory']();for(const _0x252cc0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4e9ea9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x252cc0,'accept',_0x1c73b5);for(const _0x4ef034 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4e9ea9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ef034,'accept',_0x1c73b5);_0x4e9ea9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xe30370=>{_0x253800['model']['change'](_0xf8cee7=>{const _0x5137f4=Array['from'](_0x3f6d9b['getRanges']())['map'](_0xa81245=>_0x10487e['fromRange'](_0xa81245));_0xf8cee7['setSelection'](_0xe30370),_0x253800['commands']['get']('mergeTableCells')['refresh'](),_0x253800['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b29bb=_0x5137f4['filter'](_0x2103a2=>'$graveyard'!=_0x2103a2['root']['rootName']);_0x5b29bb['length']>0x0&&_0xf8cee7['setSelection'](_0x5b29bb);for(const _0x4e0d3a of _0x5137f4)_0x4e0d3a['detach']();});});for(const _0x3bf486 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ecb3c=_0x253800['commands']['get'](_0x3bf486);_0x3ecb3c['on']('set:isEnabled',(_0x190c7a,_0x5f25a6,_0xa9d2f0)=>{if(_0xa9d2f0){const _0x300318=_0x253800['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1696d4=>_0x1696d4['is']('element','tableCell'));this['_areMergableCells'](_0x3ecb3c['value'],_0x300318)||(_0x190c7a['return']=!0x1,_0x190c7a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ebd27=this['editor']['commands']['get']('mergeTableCells'),_0x557b9a=this['editor']['plugins']['get']('TableUtils');if(!_0x1ebd27['isEnabled'])return!0x1;const _0x46a2d5=_0x557b9a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x37a79c of _0x46a2d5)for(const _0x4475fd of _0x46a2d5)if(_0x37a79c!=_0x4475fd&&!this['_areMergableCells'](_0x37a79c,_0x4475fd))return!0x1;return!0x0;}['_areMergableCells'](_0x38357a,_0x475d50){const _0x2b7829=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed6ee=this['editor']['model']['createRangeOn'](_0x38357a),_0x12c151=this['editor']['model']['createRangeOn'](_0x475d50),_0x71ffc=new Set(),_0x5dfb92=new Set();for(const _0x58eeb7 of _0x2b7829['getSuggestions']())if(('insertion'==_0x58eeb7['type']||'deletion'==_0x58eeb7['type']||'mergeTableCells'==_0x58eeb7['subType'])&&_0x58eeb7['isInContent']){for(const _0x3d249e of _0x58eeb7['getRanges']())_0x3d249e['containsRange'](_0x3ed6ee,!0x0)&&_0x71ffc['add'](_0x58eeb7['type']+':'+_0x58eeb7['author']['id']),_0x3d249e['containsRange'](_0x12c151,!0x0)&&_0x5dfb92['add'](_0x58eeb7['type']+':'+_0x58eeb7['author']['id']);}if(_0x71ffc['size']!=_0x5dfb92['size'])return!0x1;for(const _0x4a7323 of _0x71ffc)if(!_0x5dfb92['has'](_0x4a7323))return!0x1;return!0x0;}}class At extends _0x5fedcf{static get['requires'](){return[jt];}['afterInit'](){const _0xe88a72=this['editor'];if(!_0xe88a72['plugins']['has']('TableEditing'))return;const _0x4c79fd=_0xe88a72['locale'],_0x338d7d=_0xe88a72['plugins']['get']('TrackChangesEditing');_0x338d7d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x338d7d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x338d7d['registerBlockAttribute']('headingRows'),_0x338d7d['registerBlockAttribute']('headingColumns'),_0x338d7d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c79fd,'FORMAT_HEADER_ROW')),_0x338d7d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c79fd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x418a10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x553d74=this['editor']['plugins']['get']('TableUtils'),_0x116f5e=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xad6bea({showActiveMarker:_0xfce013=!0x0,setDataAttribute:_0x2aed97=!0x0}={}){return(_0x22460b,_0x524766,_0x23a4d3)=>{const {type:_0x549f77,id:_0x189ff1}=_0x418a10['_splitMarkerName'](_0x524766['markerName']),_0x6e3821=_0x418a10['getSuggestion'](_0x189ff1),_0x16d703=_0x6e3821['data'];if('formatBlock'!=_0x6e3821['type']||!_0x16d703||'setTableColumnHeader'!=_0x16d703['commandName'])return;if(_0x524766['item'])return void _0x22460b['stop']();if(!_0x23a4d3['consumable']['consume'](_0x524766['markerRange'],_0x22460b['name']))return;const _0x4516ac=_0x524766['markerRange']['start']['nodeAfter'],_0x1e56fa=_0x524766['markerRange']['end']['nodeBefore'],_0x4fd639=_0x4516ac['parent']['parent'],{column:_0x206d1e}=_0x553d74['getCellLocation'](_0x4516ac),{column:_0x4f6335}=_0x553d74['getCellLocation'](_0x1e56fa);for(let _0x1c6cd9=_0x206d1e;_0x1c6cd9<=_0x4f6335;_0x1c6cd9++){const _0xcf7f91=_0x553d74['createTableWalker'](_0x4fd639,{'column':_0x1c6cd9,'includeAllSlots':!0x1});for(const _0x4b42fa of _0xcf7f91){const _0x1c4e30=_0x4b42fa['cell'],_0x4268ae=_0x23a4d3['mapper']['toViewElement'](_0x1c4e30);_0x23a4d3['writer']['addClass']('ck-suggestion-marker-'+_0x549f77,_0x4268ae),_0x2aed97&&_0x23a4d3['writer']['setAttribute']('data-suggestion',_0x189ff1,_0x4268ae),_0x23a4d3['mapper']['bindElementToMarker'](_0x4268ae,_0x524766['markerName']),_0xfce013&&(_0x418a10['activeMarkers']['includes'](_0x524766['markerName'])?_0x23a4d3['writer']['addClass']('ck-suggestion-marker--active',_0x4268ae):_0x23a4d3['writer']['removeClass']('ck-suggestion-marker--active',_0x4268ae));}}};}_0x418a10['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x116f5e),_0x418a10['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x116f5e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xad6bea(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b9af3,_0x11b207,_0x3e5108)=>{_0x3e5108['options']['showSuggestionHighlights']&&_0xad6bea({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5b9af3,_0x11b207,_0x3e5108);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1eaa3a,_0x5e111e,_0x2c8ac7)=>{const {type:_0xdc5ca4,id:_0x40cf85}=_0x418a10['_splitMarkerName'](_0x5e111e['markerName']),_0x45cf36=_0x418a10['getSuggestion'](_0x40cf85),_0x4e0684=_0x45cf36['data'];if('formatBlock'!=_0x45cf36['type']||!_0x4e0684||'setTableColumnHeader'!=_0x4e0684['commandName'])return;const _0x237f1c=_0x2c8ac7['mapper']['markerNameToElements'](_0x5e111e['markerName']);if(_0x237f1c){for(const _0x596792 of _0x237f1c)_0x2c8ac7['writer']['removeClass']('ck-suggestion-marker-'+_0xdc5ca4,_0x596792),_0x2c8ac7['writer']['removeClass']('ck-suggestion-marker--active',_0x596792),_0x2c8ac7['writer']['removeAttribute']('data-suggestion',_0x596792),_0x2c8ac7['mapper']['unbindElementFromMarkerName'](_0x596792,_0x5e111e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e5d1a=this['editor'],_0x44a6f3=_0x1e5d1a['locale'];function _0x3e60a7(_0x16cbe8){return{'type':'format','content':o(_0x44a6f3,'*Format:*\x20%0',_0x16cbe8)};}_0x1e5d1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2faa94=>{if('formatBlock'!=_0x2faa94['type'])return;const {data:_0x43991e}=_0x2faa94;if(_0x43991e){if('setTableRowHeader'==_0x43991e['commandName']){const _0x1c5f77=_0x43991e['commandParams'][0x0]['forceValue'];return _0x3e60a7(o(_0x44a6f3,_0x1c5f77?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x43991e['commandName']){const _0x4bd292=_0x43991e['commandParams'][0x0]['forceValue'];return _0x3e60a7(o(_0x44a6f3,_0x4bd292?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5ea9d3=>[_0x5ea9d3,null]));class It extends _0x5fedcf{static get['requires'](){return[jt];}['afterInit'](){const _0x5f3cba=this['editor'];if(!_0x5f3cba['plugins']['has']('TableClipboard'))return;const _0x8f0ace=_0x5f3cba['plugins']['get']('TrackChangesEditing'),_0x1fe9b6=_0x5f3cba['plugins']['get']('TableUtils'),_0x484966=_0x5f3cba['plugins']['get'](jt),_0x2cc155=_0x5f3cba['plugins']['get']('TableClipboard');_0x484966['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5f3cba['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5f3cba['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x88b474=null;_0x5f3cba['model']['on']('insertContent',(_0x20ab6d,_0x34fff4)=>{const [_0x321bd2,_0x1dfa18]=_0x34fff4,_0x16bfea=_0x34fff4[_0x34fff4['length']-0x1];_0x16bfea&&_0x16bfea['forceDefaultExecution']||_0x8f0ace['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xfb44c2,_0x23e090,_0x799ce3,_0x233421,_0x2f5418){if(_0x23e090&&!_0x23e090['is']('documentSelection'))return!0x1;const _0x2911e8=_0x2f5418['getTableIfOnlyTableInContent'](_0xfb44c2,_0x799ce3);if(!_0x2911e8||!he(_0x2911e8,void 0x0,_0x233421))return!0x1;const _0x37adff=_0x233421['getSelectionAffectedTableCells'](_0x799ce3['document']['selection']);if(!_0x37adff['length'])return!0x1;const _0x287ad7=_0x37adff[0x0]['findAncestor']('table'),_0x51d2a3=_0x233421['getRowIndexes'](_0x37adff),_0x3a1ee4=_0x233421['getColumnIndexes'](_0x37adff),_0x2344d4={'startRow':_0x51d2a3['first'],'endRow':_0x51d2a3['last'],'startColumn':_0x3a1ee4['first'],'endColumn':_0x3a1ee4['last']};return 0x1==_0x37adff['length']&&(_0x2344d4['endRow']+=_0x233421['getRows'](_0x2911e8)-0x1,_0x2344d4['endColumn']+=_0x233421['getColumns'](_0x2911e8)-0x1),he(_0x287ad7,_0x2344d4,_0x233421);}(_0x321bd2,_0x1dfa18,_0x5f3cba['model'],_0x1fe9b6,_0x2cc155)&&(_0x20ab6d['stop'](),_0x88b474={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f3cba['model']['change'](()=>{_0x5f3cba['model']['insertContent'](_0x34fff4[0x0],_0x34fff4[0x1],_0x34fff4[0x2],{'forceDefaultExecution':!0x0});const _0xd96a6b=_0x5eb2de(),{rowInsertionRanges:_0x59ce52,columnInsertionRanges:_0x5752a9,insertionRanges:_0x2078a6,deletionRanges:_0x312cb9,cells:_0x3da397}=_0x88b474;_0x59ce52['length']&&_0x8f0ace['markMultiRangeInsertion'](_0x59ce52,'tablePasteRow',{'tablePasteChainId':_0xd96a6b}),_0x5752a9['length']&&_0x8f0ace['markMultiRangeInsertion'](_0x5752a9,'tablePasteColumn',{'tablePasteChainId':_0xd96a6b}),_0x2078a6['length']&&(_0x8f0ace['markMultiRangeInsertion'](_0x2078a6,'tablePaste',{'tablePasteChainId':_0xd96a6b,'skipNestingCheck':!0x0}),_0x2078a6['forEach'](_0xdb2017=>_0xdb2017['detach']?.())),_0x312cb9['length']&&(_0x8f0ace['markMultiRangeDeletion'](_0x312cb9,'tablePaste',{'tablePasteChainId':_0xd96a6b,'skipNestingCheck':!0x0}),_0x312cb9['forEach'](_0x210764=>_0x210764['detach']?.()));const _0x3dbc09=_0x8f0ace['markMultiRangeBlockFormat'](_0x3da397['map'](({element:_0x2b313d})=>_0x2b313d),{'formatGroupId':_0x5eb2de()},[],'tablePasteCell',{'tablePasteChainId':_0xd96a6b});if(_0x3dbc09){const _0x29bc04=_0x3dbc09['getMarkers'](),_0x4af1c7=[];for(const {element:_0x577fda,attributes:_0x1510e6}of _0x3da397){if(!_0x1510e6)continue;const _0x331a6c=_0x5f3cba['model']['createRangeOn'](_0x577fda),_0x2e83e9=_0x29bc04['find'](_0x35bece=>_0x35bece['getRange']()['isEqual'](_0x331a6c));_0x2e83e9&&_0x4af1c7['push']([_0x2e83e9['name'],_0x1510e6]);}_0x4af1c7['length']&&_0x3dbc09['setAttribute']('markerAttributes',Object['fromEntries'](_0x4af1c7));}_0x88b474=null;}));},{'priority':_0x47f188['high']+0xa}),_0x5f3cba['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2c7fdf,_0x26989f)=>{const [_0x43e6b2,_0x2f5f62,,_0x59760f]=_0x26989f;if(!_0x88b474)return;_0x2c7fdf['stop']();const _0x239c23=_0x43e6b2['cell'],_0x2c89e2=_0x2f5f62,_0x220b69=Pe(_0x239c23),_0xc80613=Pe(_0x2c89e2);_0x2c7fdf['return']=_0x239c23;let _0x279e2a=null,_0x566902=null;if(_0xc80613||_0x220b69){if(_0x220b69&&!_0xc80613){_0x59760f['remove'](_0x239c23['getChild'](0x0));for(const _0x51c041 of Array['from'](_0x2c89e2['getChildren']()))_0x59760f['insert'](_0x51c041,_0x239c23,'end');const _0x28e4da=_0x88b474['rowInsertionIndexes']['includes'](_0x43e6b2['row']),_0x19ef1e=_0x88b474['columnInsertionIndexes']['includes'](_0x43e6b2['column']);_0x28e4da||_0x19ef1e||(_0x279e2a=_0x10487e['fromRange'](_0x59760f['createRangeIn'](_0x239c23)));}else _0xc80613&&!_0x220b69&&(_0x566902=_0x59760f['createRangeIn'](_0x239c23));}else{const _0x1ce893=_0x59760f['createElement']('tableCellSuggestion'),_0x2e2a0b=_0x59760f['createElement']('tableCellSuggestion');_0x59760f['wrap'](_0x59760f['createRangeIn'](_0x239c23),_0x2e2a0b),_0x59760f['insert'](_0x1ce893,_0x239c23,0x0);for(const _0x29d6c5 of Array['from'](_0x2c89e2['getChildren']()))_0x59760f['insert'](_0x29d6c5,_0x1ce893,'end');_0x279e2a=_0x10487e['fromRange'](_0x59760f['createRangeOn'](_0x1ce893)),_0x566902=_0x10487e['fromRange'](_0x59760f['createRangeOn'](_0x2e2a0b));}const _0xccacd7=Array['from'](_0x2c89e2['getAttributes']())['filter'](([_0x5862dd])=>ge['includes'](_0x5862dd));_0x88b474['cells']['push']({'element':_0x239c23,'attributes':_0xccacd7['length']?Object['fromEntries'](_0xccacd7):null}),_0x279e2a&&_0x88b474['insertionRanges']['push'](_0x279e2a),_0x566902&&_0x88b474['deletionRanges']['push'](_0x566902);},{'priority':'high'}),_0x1fe9b6['on']('insertColumns',(_0x5cc024,_0x54753e)=>{const [_0x422a2f,_0x277849={}]=_0x54753e;if(!_0x88b474)return;const _0x24bec7=_0x277849['at']||0x0,_0x4da6a5=_0x277849['columns']||0x1;_0x88b474['columnInsertionIndexes']=new Array(_0x4da6a5)['fill'](_0x24bec7)['map']((_0x4dc118,_0x48cf2d)=>_0x4dc118+_0x48cf2d);for(const {cell:_0x560784}of _0x1fe9b6['createTableWalker'](_0x422a2f,{'startColumn':_0x24bec7,'endColumn':_0x24bec7+_0x4da6a5-0x1}))_0x88b474['columnInsertionRanges']['push'](_0x5f3cba['model']['createRangeOn'](_0x560784));},{'priority':'low'}),_0x1fe9b6['on']('insertRows',(_0x1dc629,_0x643aa8)=>{const [_0x58320a,_0x568909={}]=_0x643aa8;if(!_0x88b474)return;const _0x29ddfc=_0x568909['at']||0x0,_0x121c09=_0x568909['rows']||0x1;_0x88b474['rowInsertionIndexes']=new Array(_0x121c09)['fill'](_0x29ddfc)['map']((_0x2b9ab4,_0x237377)=>_0x2b9ab4+_0x237377);for(const {cell:_0xfb4dca}of _0x1fe9b6['createTableWalker'](_0x58320a,{'startRow':_0x29ddfc,'endRow':_0x29ddfc+_0x121c09-0x1}))_0x88b474['rowInsertionRanges']['push'](_0x5f3cba['model']['createRangeOn'](_0xfb4dca));},{'priority':'low'}),_0x8f0ace['descriptionFactory']['registerDescriptionCallback'](_0x2216cf=>{if(_0x2216cf['subType']&&_0x2216cf['subType']['startsWith']('tablePaste'))return _0x2216cf['previous']?{}:{'type':'insertion','content':o(_0x5f3cba['locale'],'*Replace\x20table\x20cells*')};});const _0x21e038=()=>!0x1;for(const _0x58fc7b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x8f0ace['_suggestionFactory']['registerCustomCallback']('insertion',_0x58fc7b,'join',_0x21e038),_0x8f0ace['_suggestionFactory']['registerCustomCallback']('deletion',_0x58fc7b,'join',_0x21e038),_0x8f0ace['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58fc7b,'join',_0x21e038);_0x8f0ace['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x21e038),_0x8f0ace['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2952bd,_0x38b926,_0x447931)=>{const _0x4dbc37=_0x2952bd['map'](_0x3b32f8=>_0x3b32f8['getContainedElement']())['filter'](_0x5e9b75=>_0x5e9b75),_0x4173b3=new Map(_0x4dbc37['map'](_0x39957b=>[_0x39957b,null]));if(_0x88b474){for(const {element:_0x312d82,attributes:_0x124797}of _0x88b474['cells'])_0x124797&&_0x4173b3['set'](_0x312d82,_0x124797);}else{if(_0x447931&&_0x447931['markerAttributes'])for(const [_0x26192d,_0x2cf493]of Object['entries'](_0x447931['markerAttributes'])){const _0x406e03=_0x5f3cba['model']['markers']['get'](_0x26192d),_0x308eb0=_0x406e03?_0x406e03['getRange']()['getContainedElement']():null;_0x308eb0&&_0x4173b3['set'](_0x308eb0,_0x2cf493);}}_0x5f3cba['model']['change'](_0x50d255=>{for(const [_0x55d77c,_0x12247f]of _0x4173b3)_0x50d255['setAttributes']({...Ce,..._0x12247f},_0x55d77c);});});const _0x2abc29=(_0x2064bc,_0x5919cb)=>{_0x8f0ace['_suggestionFactory']['registerCustomCallback'](_0x2064bc,'tablePaste',_0x5919cb,(_0x573185,_0x39931c,_0x3f53c9)=>{_0x5f3cba['model']['change'](_0x1e8be6=>{const _0x528c44=[];for(const _0x47595f of _0x573185){const _0x156d9e=_0x47595f['start']['nodeAfter'];_0x156d9e['is']('element','tableCellSuggestion')&&_0x528c44['push'](_0x156d9e);}_0x8f0ace['_suggestionFactory']['getSuggestionCallback'](_0x2064bc,null,_0x5919cb)(_0x573185,_0x39931c,_0x3f53c9);for(const _0x2f6c67 of _0x528c44)'$graveyard'!=_0x2f6c67['root']['rootName']&&_0x1e8be6['unwrap'](_0x2f6c67);});});};_0x2abc29('insertion','accept'),_0x2abc29('insertion','discard'),_0x2abc29('deletion','accept'),_0x2abc29('deletion','discard'),_0x8f0ace['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x46fa5d=>{const _0x423351=_0x46fa5d['map'](_0x30f427=>_0x30f427['getContainedElement']()),_0x2860d0=_0x423351[0x0]['findAncestor']('table'),{minRow:_0x13d0ac,maxRow:_0x472b7b}=_0x484966['_getCoordsForCells'](_0x423351);_0x1fe9b6['removeRows'](_0x2860d0,{'at':_0x13d0ac,'rows':_0x472b7b-_0x13d0ac+0x1});}),_0x8f0ace['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x43e89b=>{const _0x5065ea=_0x43e89b['map'](_0x436273=>_0x436273['getContainedElement']()),_0x26c096=_0x5065ea[0x0]['findAncestor']('table'),{minColumn:_0x4e6f8d,maxColumn:_0x480e4a}=_0x484966['_getCoordsForCells'](_0x5065ea);_0x1fe9b6['removeColumns'](_0x26c096,{'at':_0x4e6f8d,'columns':_0x480e4a-_0x4e6f8d+0x1});});const _0x50ca51=(_0x338b95,_0x274bd5)=>{if(!_0x274bd5['subType']||!_0x274bd5['subType']['startsWith']('tablePaste'))return;const _0x2cbfb2=_0x274bd5['attributes']['tablePasteChainId'],_0x5ddada=_0x8f0ace['getSuggestions']()['filter'](_0xd4674a=>_0xd4674a['isInContent']&&_0xd4674a['attributes']&&_0xd4674a['attributes']['tablePasteChainId']==_0x2cbfb2);_0x5ddada['length']&&_0x274bd5['getAllAdjacentSuggestions']()['length']!=_0x5ddada['length']&&_0x5ddada['reduce']((_0x64ceb,_0x217898)=>(_0x64ceb['next']=_0x217898,_0x217898['previous']=_0x64ceb,_0x217898));};function _0x33bb74(_0x3b6b3f,_0x59e48b=!0x0){const {id:_0x295d71}=_0x8f0ace['_splitMarkerName'](_0x3b6b3f['markerName']),_0x2c9610=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42c569=_0x8f0ace['activeMarkers']['includes'](_0x3b6b3f['markerName']);return _0x42c569&&_0x2c9610['push']('ck-suggestion-marker--active'),{'classes':_0x2c9610,'attributes':{'data-suggestion':_0x295d71},'priority':_0x42c569&&_0x59e48b?0xbc2:0xbb8};}_0x8f0ace['on']('suggestionLoaded',_0x50ca51,{'priority':'high'}),_0x8f0ace['on']('suggestionUnloaded',_0x50ca51,{'priority':'high'}),_0x5f3cba['model']['document']['registerPostFixer'](()=>{let _0x1d687b=!0x1;const _0x5273d2=Array['from'](_0x5f3cba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x246779,data:_0x41ec57}of _0x5273d2){const {group:_0x3156f5,type:_0x2fcff7,id:_0x257cef}=_0x8f0ace['_splitMarkerName'](_0x246779);if('suggestion'!=_0x3156f5||'deletion'!=_0x2fcff7||_0x41ec57['oldRange'])continue;if(!_0x8f0ace['hasSuggestion'](_0x257cef))continue;const _0x23e3ae=_0x8f0ace['getSuggestion'](_0x257cef)['getRanges'](),_0x187d16=_0x5f3cba['plugins']['get']('Users')['me'];for(const _0x500aba of _0x8f0ace['getSuggestions']()){if(!_0x500aba['isInContent']||_0x500aba['author']!=_0x187d16)continue;if('formatBlock'!=_0x500aba['type']||'tablePasteCell'!=_0x500aba['subType'])continue;if(_0x500aba['getRanges']()['every'](_0x56284c=>_0x23e3ae['some'](_0x1087b0=>_0x1087b0['containsRange'](_0x56284c,!0x0)))){for(const _0x3cf0c7 of _0x500aba['getAllAdjacentSuggestions']())_0x3cf0c7['isInContent']&&(_0x3cf0c7['discard'](),_0x1d687b=!0x0);}}}return _0x1d687b;}),_0x5f3cba['model']['document']['registerPostFixer'](_0x596acd=>{const _0x5639a2=_0x5f3cba['commands']['get']('redo');if(!_0x5639a2||!_0x5639a2['_createdBatches']['has'](_0x596acd['batch']))return!0x1;let _0x5e988d=!0x1;const _0x21ba71=_0x5f3cba['plugins']['get']('Users')['me'],_0xc760e9=_0x5f3cba['model']['document']['differ']['getChanges'](),_0x4dfa6e=Array['from'](_0x5f3cba['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x31b5b7,data:_0x39890b})=>{const {group:_0x4f2a05,subType:_0x3b3932,authorId:_0x19f41c}=_0x8f0ace['_splitMarkerName'](_0x31b5b7);return'suggestion'==_0x4f2a05&&'tablePaste'==_0x3b3932&&_0x19f41c==_0x21ba71['id']&&!_0x39890b['oldRange'];});for(const _0x398743 of _0xc760e9){if('insert'!=_0x398743['type']||'tableCellSuggestion'!=_0x398743['name']||0x1!=_0x398743['length'])continue;const _0x1276c8=_0x596acd['createRange'](_0x398743['position'],_0x398743['position']['getShiftedBy'](0x1));if(!_0x4dfa6e['find'](({data:_0x2850ee})=>_0x2850ee['newRange']['isEqual'](_0x1276c8))){for(const {name:_0x10a786,data:_0x3c0e31}of _0x4dfa6e)if(_0x1276c8['containsRange'](_0x3c0e31['newRange'])){_0x596acd['updateMarker'](_0x10a786,{'range':_0x1276c8}),_0x5e988d=!0x0;break;}}}return _0x5e988d;}),_0x5f3cba['model']['document']['registerPostFixer'](_0x27183e=>{let _0xe6fa44=!0x1;const _0x5a8671=_0x5f3cba['plugins']['get']('Users')['me'],_0x341cba=_0x8f0ace['getSuggestions']()['filter'](_0x3f8981=>_0x3f8981['isInContent']&&_0x3f8981['author']==_0x5a8671),_0x165a13=new Set(),_0x17f310=new Set();for(const _0x202de5 of _0x341cba)if('tablePaste'==_0x202de5['subType'])for(const _0x45779c of _0x202de5['getMarkers']()){const _0x2912c5=_0x45779c['getRange']()['getContainedElement']();if(_0x2912c5){if(_0x2912c5['is']('element','tableCellSuggestion')&&Pe(_0x2912c5)){_0x202de5['removeMarker'](_0x45779c['name']),_0x165a13['add'](_0x2912c5),_0xe6fa44=!0x0;const _0x418b92=_0x2912c5['nextSibling'],_0x35f902=_0x2912c5['previousSibling'],_0x438a2d=_0x418b92&&_0x418b92['is']('element','tableCellSuggestion'),_0x51f700=_0x35f902&&_0x35f902['is']('element','tableCellSuggestion');_0x438a2d&&!_0x165a13['has'](_0x418b92)&&_0x17f310['add'](_0x418b92),_0x51f700&&!_0x165a13['has'](_0x35f902)&&_0x17f310['add'](_0x35f902);}else _0x2912c5['is']('element','paragraph')&&_0x2912c5['isEmpty']&&(_0x202de5['removeMarker'](_0x45779c['name']),_0xe6fa44=!0x0);}}else{if('tablePasteCell'==_0x202de5['subType']){if(!_0x202de5['attributes']||!_0x202de5['attributes']['tablePasteChainId'])continue;const _0x3badf9=_0x202de5['attributes']['markerAttributes'];if(_0x3badf9&&Object['keys'](_0x3badf9)['length'])continue;const _0x526a55=_0x202de5['attributes']['tablePasteChainId'];let _0x3f3d82=!0x0,_0x41227c=!0x0;for(const _0x3f1c59 of _0x341cba)if(_0x3f1c59['subType']&&_0x3f1c59['subType']['startsWith']('tablePaste')){if(!_0x3f1c59['attributes']['tablePasteChainId']){_0x41227c=!0x1;break;}if(_0x3f1c59['id']!=_0x202de5['id']&&_0x3f1c59['attributes']['tablePasteChainId']==_0x526a55){_0x3f3d82=!0x1;break;}}_0x41227c&&_0x3f3d82&&(_0x202de5['removeMarkers'](),_0xe6fa44=!0x0);}}for(const _0x53c2e4 of _0x165a13)_0x27183e['remove'](_0x53c2e4);for(const _0x59eedb of _0x17f310)_0x27183e['unwrap'](_0x59eedb);return _0xe6fa44;}),_0x5f3cba['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xb46356,_0x38c496)=>_0x33bb74(_0xb46356),'converterPriority':'high'}),_0x5f3cba['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31eb03,_0x4768ea)=>_0x4768ea['options']['showSuggestionHighlights']?_0x33bb74(_0x31eb03,!0x1):null,'converterPriority':'high'});const _0x23ec6e=_0x5f3cba['editing']['view'];this['listenTo'](_0x23ec6e['document'],'clipboardOutput',(_0x267307,_0x11e431)=>{const _0x53f644=[];for(const _0x306852 of _0x23ec6e['createRangeIn'](_0x11e431['content'])['getItems']())_0x306852['is']('element','suggestion-td')&&_0x53f644['push'](_0x306852);_0x23ec6e['change'](_0x4c2440=>{for(const _0x4d6976 of _0x53f644)_0x4c2440['move'](_0x4c2440['createRangeIn'](_0x4d6976),_0x4c2440['createPositionBefore'](_0x4d6976)),_0x4c2440['remove'](_0x4d6976);});});}}function Pe(_0x281cd8){if(_0x281cd8['isEmpty'])return!0x0;const _0x5e9dfe=_0x281cd8['getChild'](0x0);return _0x5e9dfe['is']('element','paragraph')&&_0x5e9dfe['isEmpty'];}function he(_0x417846,_0x17adb9={},_0x28c282){for(const {isAnchor:_0x5185b5,cellHeight:_0x3d0f27,cellWidth:_0x2a834c}of _0x28c282['createTableWalker'](_0x417846,{'includeAllSlots':!0x0,..._0x17adb9}))if(!_0x5185b5||0x1!=_0x3d0f27||0x1!=_0x2a834c)return!0x1;return!0x0;}class vt extends _0x5fedcf{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x346293=this['editor']['plugins']['get']('TrackChangesEditing');_0x346293['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x346293['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x346293['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x346293['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x346293['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x346293['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x366e22,_0x3c15a1){const _0x3aa248=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e3955=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xb5c737=_0x3c15a1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ba6d4=_0x2e3955['getColumnGroupElement'](_0xb5c737);let _0x271594=_0x1ba6d4?_0x2e3955['getTableColumnsWidths'](_0x1ba6d4):null,_0x1a820d=_0xb5c737['getAttribute']('tableWidth')||null;const _0x51e3d3=_0x3c15a1['tableWidth']||_0x1a820d,_0x10482c=_0x3c15a1['columnWidths']||_0x271594,_0x2e2955=this['editor']['plugins']['get']('Users')['me'];for(const _0x29c7f5 of _0x3aa248['getSuggestions']()){const _0x2e0924=_0x29c7f5['getContainedElement']();if('resizeTable'===_0x29c7f5['subType']&&_0x2e0924===_0xb5c737){_0x29c7f5['author']!==_0x2e2955&&_0x29c7f5['discard']();const _0x387e3d=_0x29c7f5['data']['commandParams'];_0x1a820d=_0x387e3d[0x0]['tableWidth'],_0x271594=_0x387e3d[0x0]['columnWidths'];break;}}_0x366e22({'table':_0xb5c737,'tableWidth':_0x51e3d3,'columnWidths':_0x10482c}),_0x3aa248['markBlockFormat'](_0xb5c737,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1a820d,'columnWidths':_0x271594}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xc2976d){if('formatBlock'!=_0xc2976d['type']&&'formatInline'!=_0xc2976d['type'])return;const {data:_0x41260c}=_0xc2976d;if(_0x41260c&&'resizeTable'===_0x41260c['formatGroupId']){const _0x2f53d2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2f53d2)};}}}class Ct extends _0x5fedcf{['afterInit'](){const _0xfbd5a9=this['editor'];_0xfbd5a9['plugins']['has']('Template')&&_0xfbd5a9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5fedcf{['afterInit'](){const _0x54e17c=this['editor'];if(!_0x54e17c['commands']['get']('insertTableOfContents'))return;_0x54e17c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x29d961=_0x54e17c['plugins']['get']('TrackChangesEditing'),_0xc9e22a=_0x54e17c['locale'];_0x29d961['descriptionFactory']['registerElementLabel']('tableOfContents',_0x24abf4=>o(_0xc9e22a,'ELEMENT_TABLE_OF_CONTENTS',_0x24abf4));}}class Dt extends _0x5fedcf{['afterInit'](){const _0x169b6d=this['editor'];if(!_0x169b6d['plugins']['has']('Title'))return;const _0x5864fb=_0x169b6d['plugins']['get']('TrackChangesEditing');_0x5864fb['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x169b6d['locale'],'ELEMENT_TITLE')),_0x169b6d['model']['document']['registerPostFixer'](_0x3513a9=>{let _0x3320d5=!0x1;const _0x4fa42c=Array['from'](_0x169b6d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x90a74a,data:_0x50845d}of _0x4fa42c){const {group:_0x275a69}=_0x5864fb['_splitMarkerName'](_0x90a74a);if('suggestion'!==_0x275a69||!_0x50845d['newRange'])continue;const _0xa19cd4=_0x50845d['newRange'],_0x45db41=_0xa19cd4['end']['nodeBefore'];if(!_0x45db41||!_0x45db41['is']('element','title-content'))continue;if(!_0xa19cd4['start']['isTouching'](_0xa19cd4['end']))continue;const _0x3c2529=_0x169b6d['model']['schema']['getNearestSelectionRange'](_0xa19cd4['end'],'forward');if(_0x3c2529&&_0x3c2529['isCollapsed']){const _0xaad1b5=_0x3513a9['createRange'](_0xa19cd4['start'],_0x3c2529['start']);_0xaad1b5['isEqual'](_0xa19cd4)||(_0x3513a9['updateMarker'](_0x90a74a,{'range':_0xaad1b5}),_0x3320d5=!0x0);}_0x3320d5||(_0x3513a9['removeMarker'](_0x90a74a),_0x3320d5=!0x0);}return _0x3320d5;});}}class Nt extends _0x5fedcf{['afterInit'](){const _0x395908=this['editor'],_0x4aec4f=_0x395908['plugins']['get']('TrackChangesEditing');_0x395908['plugins']['has']('UndoEditing')&&(_0x4aec4f['enableCommand']('undo'),_0x4aec4f['enableCommand']('redo'));}}class Mt extends _0x5fedcf{static get['requires'](){return[jt];}['afterInit'](){const _0x496c6a=this['editor'];if(!_0x496c6a['plugins']['has']('TableCaptionEditing'))return;_0x496c6a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5fedcf{['tableProperties'];['tableCellProperties'];constructor(_0x49ca0b){super(_0x49ca0b),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 _0x340839=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5eaa1b of this['tableProperties'])_0x340839['enableCommand'](_0x5eaa1b,(_0x17cace,_0x316d21)=>{const _0xe9cca6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5eaa1b,[_0xe9cca6],this['tableProperties'],'tableProperties',_0x17cace,_0x316d21);});_0x340839['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x340839['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x340839['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x7dd192,_0x391382)=>this['handleDiscardAction'](this['tableProperties'],_0x7dd192,_0x391382)),_0x340839['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2fcfdd of this['tableCellProperties'])_0x340839['enableCommand'](_0x2fcfdd,(_0x1231b5,_0x5924aa)=>{const _0x50647a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2fcfdd,_0x50647a,this['tableCellProperties'],'tableCellProperties',_0x1231b5,_0x5924aa);});_0x340839['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x340839['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x340839['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x39b2db,_0x1f6d75)=>this['handleDiscardAction'](this['tableCellProperties'],_0x39b2db,_0x1f6d75)),_0x340839['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x340839['descriptionFactory']['registerDescriptionCallback'](_0x229a7f=>this['handleSuggestionDescription'](_0x229a7f));}['_handlePropertyChange'](_0x584ca8,_0x23386c,_0x255aa7,_0x52671f,_0x4b882e,_0x5476da){const _0x3a8ba4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5476da['batch'],()=>{for(const _0x317586 of _0x23386c){if(this['_getSuggestion'](_0x317586,_0x52671f))_0x4b882e(_0x5476da);else{const _0x57eaa5={};for(const _0x52f86b of _0x255aa7){const _0x3ccd45=_0x317586['getAttribute'](_0x52f86b);void 0x0!==_0x3ccd45&&(_0x57eaa5[_0x52f86b]=_0x3ccd45);}_0x4b882e(_0x5476da),_0x3a8ba4['markBlockFormat'](_0x317586,{'commandParams':[_0x57eaa5]},[],_0x52671f);}}});}['handleDiscardAction'](_0x3a61ab,_0x28199a,_0x364fa1){const _0x1cb5d2=_0x28199a[0x0]['start']['nodeAfter'],_0x29c7db=_0x364fa1['commandParams'][0x0];this['editor']['model']['change'](_0x18b85f=>{for(const _0x5eedea of _0x3a61ab)void 0x0!==_0x29c7db[_0x5eedea]?_0x18b85f['setAttribute'](_0x5eedea,_0x29c7db[_0x5eedea],_0x1cb5d2):_0x18b85f['removeAttribute'](_0x5eedea,_0x1cb5d2);});}['handleSuggestionDescription'](_0x4f967c){if(_0x4f967c['data'])switch(_0x4f967c['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'](_0x7bc3d2,_0x327b51){const _0x1b5b81=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x26d254 of _0x1b5b81['getSuggestions']({'skipNotAttached':!0x0})){const _0x3b5205=_0x26d254['getContainedElement']();if(_0x26d254['subType']===_0x327b51&&_0x3b5205===_0x7bc3d2)return _0x26d254;}return null;}}const m='$elementName';class p extends _0x5fedcf{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1a431f,_0x172bf7,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5dc908){function _0x81e161(_0x54ee9c){return _0x54ee9c['map'](_0x5b141e=>String['fromCharCode'](_0x5b141e))['join']('');}super(_0x5dc908),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x389101,_0x273519,_0x88e099,_0x4b3dca)=>{this['_model']['change'](()=>{for(const _0x6827dc of[..._0x4b3dca,..._0x88e099])this['_model']['markers']['has'](_0x6827dc)&&_0x5dc908['editing']['reconvertMarker'](_0x6827dc);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5dc908['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(),_0x5dc908['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5dc908['config']['get']('trackChanges.trackFormatChanges'),_0x5dc908['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5dc908['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5dc908,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x81e161([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x81e161([0x34,0x30,0x34,0x38,0x31,0x32,0x30,0x38]);}['init'](){const _0x2963a3=this['editor'],_0x43de65=(_0x1a2769,_0x35ada8)=>{if('attribute'!=_0x1a2769)return'ck-suggestion-marker-'+_0x1a2769;const _0x3b091b=_0x35ada8['split']('|')[0x0];return this['_isBlockAttribute'](_0x3b091b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2963a3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x163d01=>{const {id:_0x7a015d,type:_0x46ddb1,subType:_0x51b69e}=this['_splitMarkerName'](_0x163d01['markerName']),_0x137bb=['ck-suggestion-marker',_0x43de65(_0x46ddb1,_0x51b69e)];let _0x2ed0d0=0xbb8;return this['activeMarkers']['includes'](_0x163d01['markerName'])&&(_0x137bb['push']('ck-suggestion-marker--active'),_0x2ed0d0=0xbc2),'deletion'==_0x46ddb1&&(_0x2ed0d0+=0x5),{'classes':_0x137bb,'attributes':{'data-suggestion':_0x7a015d},'priority':_0x2ed0d0};}}),_0x2963a3['conversion']['for']('dataDowncast')['add'](_0x34ef1a=>{_0x34ef1a['on']('addMarker:suggestion',(_0x29cc13,_0x35246a,_0x232b2c)=>{if(!_0x232b2c['options']['showSuggestionHighlights'])return;const _0x19f603=_0x35246a['item'];if(!_0x19f603)return;const _0x21cd8b=_0x232b2c['mapper']['toViewElement'](_0x19f603);_0x2963a3['model']['schema']['isObject'](_0x19f603)&&_0x21cd8b&&!_0x21cd8b['getCustomProperty']('widget')&&_0x21cd8b['is']('containerElement')&&_0x492154(_0x21cd8b,_0x232b2c['writer']);},{'priority':'high'});}),_0x2963a3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5eb96b,_0x1d1a4a)=>{if(!_0x1d1a4a['options']['showSuggestionHighlights'])return null;const {type:_0x5024a6,subType:_0xe0d5b9}=this['_splitMarkerName'](_0x5eb96b['markerName']);return{'classes':['ck-suggestion-marker',_0x43de65(_0x5024a6,_0xe0d5b9)],'priority':0xbb8};}});const _0x353761=({showActiveMarkers:_0x2caa70=!0x0,isAttributeSuggestion:_0x288954=!0x1}={})=>(_0x70435a,_0x1ce20b,_0x972fd7)=>{if(!_0x1ce20b['item'])return;const {id:_0x363d0e}=this['_splitMarkerName'](_0x1ce20b['markerName']);if(_0x288954){const _0x1fe385=this['_suggestions']['get'](_0x363d0e),_0x3348b9=this['_getAttributeKey'](_0x1fe385);if(!this['_isBlockAttribute'](_0x3348b9))return;}if(_0x1ce20b['item']['is']('selection'))return void _0x972fd7['consumable']['consume'](_0x1ce20b['item'],_0x70435a['name']);const _0x355739=_0x972fd7['mapper']['toViewElement'](_0x1ce20b['item']);if(_0x1ce20b['item']['is']('element')&&_0x2963a3['model']['schema']['isBlock'](_0x1ce20b['item'])&&!_0x355739['getCustomProperty']('addHighlight')){_0x972fd7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x355739),_0x972fd7['writer']['setAttribute']('data-suggestion',_0x363d0e,_0x355739),_0x972fd7['mapper']['bindElementToMarker'](_0x355739,_0x1ce20b['markerName']),_0x2caa70&&(this['activeMarkers']['includes'](_0x1ce20b['markerName'])?_0x972fd7['writer']['addClass']('ck-suggestion-marker--active',_0x355739):_0x972fd7['writer']['removeClass']('ck-suggestion-marker--active',_0x355739));for(const _0x4cf296 of _0x2963a3['model']['createRangeIn'](_0x1ce20b['item'])['getItems']())_0x972fd7['consumable']['consume'](_0x4cf296,_0x70435a['name']);_0x972fd7['consumable']['consume'](_0x1ce20b['item'],_0x70435a['name']);}};_0x2963a3['conversion']['for']('dataDowncast')['add'](_0x25289f=>{_0x25289f['on']('addMarker:suggestion:formatBlock',(_0x13a637,_0xbdef82,_0x4798d5)=>{_0x4798d5['options']['showSuggestionHighlights']&&_0x353761({'showActiveMarkers':!0x1})(_0x13a637,_0xbdef82,_0x4798d5);},{'priority':'highest'});}),_0x2963a3['conversion']['for']('dataDowncast')['add'](_0x264f16=>{_0x264f16['on']('addMarker:suggestion:attribute',(_0x5817aa,_0x20578d,_0x138e4c)=>{_0x138e4c['options']['showSuggestionHighlights']&&_0x353761({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5817aa,_0x20578d,_0x138e4c);},{'priority':'highest'});}),_0x2963a3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x52637f,_0x1cabbf)=>_0x1cabbf['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x52637f['substr'](0xb)}}),_0x2963a3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x163863,{writer:_0x12a8a1})=>{let _0x4f7682='suggestion:'+_0x163863['getAttribute']('suggestion-type')+':'+_0x163863['getAttribute']('id');return _0x163863['getAttribute']('marker-count')&&(_0x4f7682+=':'+_0x163863['getAttribute']('marker-count')),_0x12a8a1['createElement']('$marker',{'data-name':_0x4f7682});}}),_0x2963a3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2963a3['conversion']['for']('editingDowncast')['add'](_0x2464d5=>{_0x2464d5['on']('addMarker:suggestion:formatBlock',_0x353761(),{'priority':'high'});}),_0x2963a3['conversion']['for']('editingDowncast')['add'](_0x118c6e=>{_0x118c6e['on']('addMarker:suggestion:attribute',_0x353761({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2963a3['conversion']['for']('editingDowncast')['add'](_0x3db5f0=>{_0x3db5f0['on']('removeMarker:suggestion:formatBlock',(_0x1ea270,_0x265f1d,_0x55a3a6)=>{const _0x992434=_0x55a3a6['mapper']['markerNameToElements'](_0x265f1d['markerName']);if(_0x992434){for(const _0x2caa56 of _0x992434)_0x2caa56['getCustomProperty']('addHighlight')||(_0x55a3a6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2caa56),_0x55a3a6['writer']['removeAttribute']('data-suggestion',_0x2caa56),_0x55a3a6['mapper']['unbindElementFromMarkerName'](_0x2caa56,_0x265f1d['markerName']));}},{'priority':'high'});}),_0x2963a3['conversion']['for']('editingDowncast')['add'](_0x256e49=>{_0x256e49['on']('removeMarker:suggestion:attribute',(_0x1eb6de,_0x1dd0a0,_0x37615b)=>{const _0x48a1c3=_0x37615b['mapper']['markerNameToElements'](_0x1dd0a0['markerName']);if(!_0x48a1c3)return;const {id:_0x354672}=this['_splitMarkerName'](_0x1dd0a0['markerName']),_0x3c1aec=this['_suggestions']['get'](_0x354672),_0x56045f=this['_getAttributeKey'](_0x3c1aec);if(this['_isBlockAttribute'](_0x56045f)){for(const _0x174263 of _0x48a1c3)_0x174263['getCustomProperty']('addHighlight')||(_0x37615b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x174263),_0x37615b['writer']['removeAttribute']('data-suggestion',_0x174263),_0x37615b['mapper']['unbindElementFromMarkerName'](_0x174263,_0x1dd0a0['markerName']));}},{'priority':'high'});}),_0x2963a3['model']['document']['registerPostFixer'](_0x2b125e=>{let _0x5474aa=!0x1;const _0x3f094c=Array['from'](_0x2963a3['model']['document']['differ']['getChangedMarkers']()),_0xcbb9eb=new Set();for(const {name:_0x809b87,data:_0x395b43}of _0x3f094c){const {group:_0x293151,type:_0x40e353,subType:_0x3cdc0a,id:_0x511801}=this['_splitMarkerName'](_0x809b87);if('suggestion'!==_0x293151)continue;const _0x2ec634=this['_suggestions']['get'](_0x511801);if(null!=_0x395b43['newRange']){'formatInline'==_0x40e353&&(_0x5474aa=_0x5474aa||Et(_0x395b43['newRange'],_0x809b87,_0x2b125e,_0x2963a3['model']['schema']));const _0x1864a6='attribute'==_0x40e353&&this['_isBlockAttribute'](_0x3cdc0a['split']('|')[0x0]);if(_0x395b43['newRange']['isCollapsed']||'$graveyard'==_0x395b43['newRange']['root']['rootName']||'formatBlock'==_0x40e353&&!Ut(_0x395b43['newRange'])||_0x1864a6&&!Ut(_0x395b43['newRange'])||'deletion'==_0x40e353&&!(!Tt(_0x2747a9=_0x395b43['newRange'])&&!function(_0x4330c8){return _0x4330c8['start']['parent']==_0x4330c8['end']['nodeBefore']&&_0x4330c8['start']['isAtEnd'];}(_0x2747a9)))_0x2b125e['removeMarker'](_0x809b87),_0x5474aa=!0x0;else{if(!_0x2ec634||!_0x2ec634['isInContent'])continue;_0xcbb9eb['add'](_0x2ec634);}}}var _0x2747a9;return _0xcbb9eb['size']>0x0&&(_0x5474aa=!!this['_joinWithAdjacentSuggestions'](_0xcbb9eb)||_0x5474aa),_0x5474aa;}),_0x2963a3['model']['document']['registerPostFixer'](_0x19c20f=>{let _0xf7215c=!0x1;for(const _0xd033d4 of _0x2963a3['model']['document']['differ']['getChanges']())if('insert'==_0xd033d4['type'])for(const _0x382252 of this['_suggestions']['values']()){if(_0x382252['isMultiRange']||!_0x382252['isInContent'])continue;const _0xe52b0d='formatBlock'==_0x382252['type'],_0x2933c0=this['_getAttributeKey'](_0x382252),_0x4cb9c8=_0x2933c0&&this['_isBlockAttribute'](_0x2933c0);if(!_0xe52b0d&&!_0x4cb9c8)continue;const _0x5d71ab=_0x382252['getFirstRange']();if(_0x5d71ab['start']['parent']!=_0x5d71ab['end']['parent']&&!_0x5d71ab['end']['isAtEnd']){const _0xe88366=_0x2963a3['model']['createPositionAt'](_0x5d71ab['start']['nodeAfter'],'end'),_0x27ab8d=_0x2963a3['model']['createRange'](_0x5d71ab['start'],_0xe88366);_0x19c20f['updateMarker'](_0x382252['getFirstMarker'](),{'range':_0x27ab8d}),_0xf7215c=!0x0;}}return _0xf7215c;}),_0x2963a3['model']['document']['registerPostFixer'](_0x56d84b=>this['_processAttributeChanges'](_0x56d84b)),_0x2963a3['model']['document']['registerPostFixer'](_0x35558d=>!_0x35558d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x35558d)),_0x2963a3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2963a3['model']['document']['on']('change:data',(_0x44eba6,_0x1f87b0)=>{if(!_0x1f87b0['isLocal']||_0x1f87b0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4a4a7a=_0x2963a3['model']['document']['differ']['getChanges']();if(0x0==_0x4a4a7a['length'])return;const _0x278bba=[],_0x527a81=_0x4a4a7a['filter'](_0x48c006=>'attribute'==_0x48c006['type']),_0x100008=_0x4a4a7a['filter'](_0x3cdf90=>'insert'==_0x3cdf90['type']&&'$text'!=_0x3cdf90['name']);for(const _0x5f5b62 of _0x527a81)this['_isRegisteredAttribute'](_0x5f5b62['attributeKey'])&&_0x278bba['push']({'key':_0x5f5b62['attributeKey'],'newValue':_0x5f5b62['attributeNewValue'],'oldValue':_0x5f5b62['attributeOldValue'],'range':Ot(_0x5f5b62['range'],_0x2963a3['model'])});for(const _0x461abb of _0x100008){if('rename'!=_0x461abb['action']&&'refresh'!=_0x461abb['action'])continue;const _0x4418c0=Gt(_0x461abb['position']['nodeAfter'],_0x2963a3['model']),_0x8982be=_0x461abb['before'];'rename'==_0x461abb['action']&&_0x278bba['push']({'key':m,'newValue':_0x461abb['name'],'oldValue':_0x8982be['name'],'range':_0x4418c0});for(const [_0x286ba,_0x3d7a70]of _0x8982be['attributes']){if(!this['_isRegisteredAttribute'](_0x286ba))continue;const _0x4251ff=_0x461abb['attributes']['get'](_0x286ba);_0x3d7a70!==_0x4251ff&&_0x278bba['push']({'key':_0x286ba,'newValue':_0x4251ff,'oldValue':_0x3d7a70,'range':_0x4418c0});}for(const [_0x41dddb,_0x30653d]of _0x461abb['attributes'])this['_isRegisteredAttribute'](_0x41dddb)&&(_0x8982be['attributes']['has'](_0x41dddb)||_0x278bba['push']({'key':_0x41dddb,'newValue':_0x30653d,'oldValue':null,'range':_0x4418c0}));}0x0!=_0x278bba['length']&&_0x2963a3['model']['enqueueChange'](_0x1f87b0,_0x4e8ede=>{const _0x2e8dd9=_0x5eb2de();for(const {range:_0x5d62ce,key:_0x18f428,oldValue:_0x2a7d82,newValue:_0x4ecb40}of _0x278bba)this['markAttributeChange'](_0x5d62ce,_0x18f428,_0x2a7d82,_0x4ecb40,{'groupId':_0x2e8dd9});this['_reduceExistingSuggestions'](_0x4e8ede,_0x278bba);});},{'priority':'lowest'}),_0x2963a3['model']['markers']['on']('update:suggestion',(_0x358112,_0x22a5f8,_0x194665)=>{if(null==_0x194665){const {id:_0x15d539}=this['_splitMarkerName'](_0x22a5f8['name']),_0x10653e=this['_suggestions']['get'](_0x15d539);_0x10653e&&_0x10653e['addMarkerName'](_0x22a5f8['name']);}}),_0x2963a3['model']['document']['on']('change:data',()=>{const _0xc387b0=Array['from'](_0x2963a3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x50dd06=>'suggestion'===this['_splitMarkerName'](_0x50dd06['name'])['group']);if(0x0===_0xc387b0['length'])return;_0xc387b0['sort']((_0x256c45,_0x6f7bc4)=>{const _0x4193ec=_0x256c45['data']['oldRange'],_0x41e4c2=_0x6f7bc4['data']['oldRange'];return null===_0x4193ec&&null===_0x41e4c2?0x0:null===_0x4193ec&&null!==_0x41e4c2?-0x1:null!==_0x4193ec&&null===_0x41e4c2?0x1:_0x4193ec['start']['isBefore'](_0x41e4c2['start'])?-0x1:0x1;});const _0x600e88=new Set(),_0x47fcfd=new Set();for(const {name:_0x5665e0,data:_0x5ae78e}of _0xc387b0){const {id:_0x5714ba}=this['_splitMarkerName'](_0x5665e0);if(null===_0x5ae78e['oldRange']){const _0x21743f=this['_handleNewSuggestionMarker'](_0x5665e0);_0x47fcfd['add'](_0x21743f);}else{const _0x318fab=this['_suggestions']['get'](_0x5714ba);null!==_0x5ae78e['newRange']||_0x318fab['isInContent']?(_0x600e88['add'](_0x318fab['head']),_0x47fcfd['add'](_0x318fab)):this['_removeSuggestion'](_0x318fab);}}_0x47fcfd['size']>0x0&&this['_refreshSuggestionsChain'](_0x47fcfd);for(const _0x29c292 of _0x600e88)this['fire']('suggestionChanged',_0x29c292);}),_0x2963a3['model']['on']('applyOperation',(_0x33550b,_0x1d9976)=>{const _0xd7472c=_0x1d9976[0x0];if(!this['_suggestions']['size'])return;if(!_0xd7472c['isDocumentOperation'])return;if(_0xd7472c['batch']['isUndo']||!_0xd7472c['batch']['isLocal'])return;let _0x355a0a,_0x558f42;switch(_0xd7472c['type']){case'insert':_0x355a0a=_0x2963a3['model']['createPositionAt'](_0xd7472c['position']),_0x558f42=_0x355a0a['getShiftedBy'](_0xd7472c['howMany']);break;case'split':_0x355a0a=_0x2963a3['model']['createPositionAt'](_0xd7472c['splitPosition']),_0x558f42=_0x2963a3['model']['createPositionAt'](_0xd7472c['moveTargetPosition']);break;case'move':_0x355a0a=_0x2963a3['model']['createPositionAt'](_0xd7472c['targetPosition']),_0x558f42=_0x355a0a['getShiftedBy'](_0xd7472c['howMany']);break;default:return;}const _0xc79b8f=_0x2963a3['model']['createRange'](_0x355a0a,_0x558f42);_0x2963a3['model']['change'](()=>{for(const {suggestion:_0x2335d4,meta:_0x293a49}of this['_findSuggestions'](_0xc79b8f)){if(_0x2335d4['isMultiRange'])continue;if('formatInline'==_0x2335d4['type'])continue;const _0x89cce2=this['_getAttributeKey'](_0x2335d4);if(_0x89cce2&&this['_isBlockAttribute'](_0x89cce2)&&'split'!=_0xd7472c['type'])continue;const _0x477eae=_0x2335d4['data']&&_0x2335d4['data']['multipleBlocks'];('formatBlock'!=_0x2335d4['type']||'split'==_0xd7472c['type']&&!_0x477eae)&&(_0x293a49['containsRangeInObject']||'insertion'==_0x2335d4['type']&&_0x293a49['isOwn']||_0x2335d4['getFirstRange']()['containsRange'](_0xc79b8f)&&this['_breakSuggestionMarker'](_0x2335d4,_0x355a0a,_0x558f42));}});},{'priority':'lowest'}),_0x2963a3['model']['on']('deleteContent',(_0x96b462,_0x3d7a4f)=>{const _0x5f5561=_0x3d7a4f[0x0],_0x5b44d6=_0x3d7a4f[0x1];if(_0x5b44d6&&_0x5b44d6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5f5561['isCollapsed'])return;const _0xa307e=_0x2963a3['model']['schema'],{start:_0x98609d,end:_0x35a5d0}=_0x5f5561['getFirstRange'](),_0xc62315=_0x98609d['nodeAfter']&&_0xa307e['isLimit'](_0x98609d['nodeAfter'])?null:_0xa307e['getNearestSelectionRange'](_0x98609d,'forward'),_0x3de7fd=_0x35a5d0['nodeBefore']&&_0xa307e['isLimit'](_0x35a5d0['nodeBefore'])?null:_0xa307e['getNearestSelectionRange'](_0x35a5d0,'backward'),_0x265594=_0x2963a3['model']['createRange'](_0xc62315?_0xc62315['start']:_0x98609d,_0x3de7fd?_0x3de7fd['end']:_0x35a5d0);_0x2963a3['model']['change'](_0x361a60=>{this['markDeletion'](_0x265594);const _0x527fbd=_0x2963a3['model']['schema']['getNearestSelectionRange'](_0x265594['start']);_0x5f5561['is']('documentSelection')?_0x361a60['setSelection'](_0x527fbd):_0x5f5561['setTo'](_0x527fbd);}),_0x96b462['stop']();},{'priority':_0x47f188['normal']+0xa}),_0x2963a3['model']['on']('insertContent',(_0x2d4b76,_0x2d4651)=>{const _0x3d03a1=_0x2d4651[_0x2d4651['length']-0x1];_0x3d03a1&&_0x3d03a1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2963a3['model']['change'](()=>{let _0x4df54b=_0x2963a3['model']['insertContent'](_0x2d4651[0x0],_0x2d4651[0x1],_0x2d4651[0x2],{'forceDefaultExecution':!0x0});if(!_0x4df54b)return;_0x2d4b76['return']=_0x4df54b['clone']();const _0x26cad5=_0x4df54b['end']['nodeBefore'],_0x3566a0=_0x2963a3['model']['schema'];_0x26cad5&&_0x3566a0['isBlock'](_0x26cad5)&&!_0x3566a0['isObject'](_0x26cad5)&&(_0x4df54b=_0x2963a3['model']['createRange'](_0x4df54b['start'],_0x2963a3['model']['createPositionAt'](_0x26cad5,'end'))),this['markInsertion'](_0x4df54b);}),_0x2d4b76['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x54675f=new $(_0x2963a3,this['_suggestions']);_0x2963a3['commands']['add']('acceptSuggestion',_0x54675f),this['enableCommand']('acceptSuggestion');const _0x399763=new B(_0x2963a3,this['_suggestions']);_0x2963a3['commands']['add']('discardSuggestion',_0x399763),this['enableCommand']('discardSuggestion'),_0x2963a3['commands']['add']('acceptAllSuggestions',new x(_0x2963a3,_0x54675f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2963a3['commands']['add']('discardAllSuggestions',new x(_0x2963a3,_0x399763,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2963a3['commands']['add']('acceptSelectedSuggestions',new R(_0x2963a3,_0x54675f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2963a3['commands']['add']('discardSelectedSuggestions',new R(_0x2963a3,_0x399763,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2fd33d=_0x2963a3['plugins']['get']('CommentsRepository');this['listenTo'](_0x2fd33d,'addComment',(_0x47b26c,{threadId:_0x3c4e79})=>{const _0x5da24a=this['_suggestions']['get'](_0x3c4e79);_0x5da24a&&_0x5da24a['commentThread']&&0x1===_0x5da24a['commentThread']['length']&&this['_updateSuggestionData'](_0x3c4e79,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2fd33d,'removeComment',(_0x61d9f0,{threadId:_0x2206f8})=>{const _0x45e1ef=this['_suggestions']['get'](_0x2206f8);_0x45e1ef&&_0x45e1ef['commentThread']&&!_0x45e1ef['commentThread']['length']&&this['_updateSuggestionData'](_0x2206f8,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x48f244){if(this['_adapter'])throw new _0x53634f('track-changes-adapter-already-set',this);this['_adapter']=_0x48f244;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x335ff2=!0x1,toJSON:_0x3f52c5=!0x1}={}){const _0x4a8f64=[];for(const _0x97bdf0 of this['_suggestions']['values']())_0x335ff2&&!_0x97bdf0['isInContent']||_0x4a8f64['push'](_0x97bdf0);return _0x3f52c5?_0x4a8f64['map'](_0x6e49eb=>_0x6e49eb['toJSON']()):_0x4a8f64;}['getSuggestion'](_0x272bbc){const _0x37f3e2=this['_suggestions']['get'](_0x272bbc);if(!_0x37f3e2)throw new _0x53634f('track-changes-suggestion-not-found',this);return _0x37f3e2;}['hasSuggestion'](_0x17da64){return this['_suggestions']['has'](_0x17da64);}['addSuggestionData'](_0x29cbe5){const {authorId:_0x452421,id:_0x107e2e,attributes:_0x45f9fa}=_0x29cbe5,[_0x3135cf,_0x277112]=_0x29cbe5['type']['split'](':'),_0x465a77=this['_suggestions']['get'](_0x107e2e)||this['_createSuggestion'](_0x3135cf,_0x277112,_0x107e2e,_0x452421,_0x45f9fa);if(this['_addThreadToSuggestion'](_0x465a77),this['_checkSuggestionCorrectness'](_0x465a77,_0x3135cf,_0x277112||null,_0x452421),_0x465a77['createdAt']=_0x29cbe5['createdAt'],_0x465a77['_isDataLoaded']=!0x0,_0x45f9fa&&_0x45f9fa['@external']){const _0x737374=_0x45f9fa['@external'],_0x358666=this['_getExternalAuthor'](_0x737374['authorName']);_0x465a77['authoredAt']=_0x737374['createdAt'],_0x465a77['author']=_0x358666,_0x465a77['isExternal']=!0x0;}else _0x465a77['authoredAt']=_0x29cbe5['createdAt'];switch(_0x29cbe5['data']&&(_0x465a77['data']=_0x29cbe5['data']),_0x29cbe5['attributes']&&(_0x465a77['attributes']=_0x29cbe5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x465a77['_saved']=!0x0),this['_suggestionState']['get'](_0x465a77)){case'notReady':this['_suggestionState']['set'](_0x465a77,'dataReady');break;case'markerReady':_0x465a77['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x465a77])),this['_refreshSuggestionsChain'](new Set([_0x465a77])),this['_suggestionState']['set'](_0x465a77,'ready'),this['fire']('suggestionLoaded',_0x465a77)):this['_suggestionState']['set'](_0x465a77,'removed');}return _0x465a77;}['acceptSuggestion'](_0x1f2c9c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x110539 of _0x1f2c9c['getAllAdjacentSuggestions']())_0x110539['accept']();});});}['discardSuggestion'](_0x1912c8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b1857 of _0x1912c8['getAllAdjacentSuggestions']())_0x4b1857['discard']();});});}['enableCommand'](_0x333e7e,_0x5a8ad8){const _0x160f26=this['editor']['commands']['get'](_0x333e7e);if(!_0x160f26)throw new _0x53634f('track-changes-command-not-found',this,{'commandName':_0x333e7e});if(this['_enabledCommands']['has'](_0x160f26))throw new _0x53634f('track-changes-enable-command-twice',this,{'commandName':_0x333e7e});this['_enabledCommands']['add'](_0x160f26),_0x5a8ad8&&_0x160f26['on']('execute',(_0x344b6a,_0x977864)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x977864['length']>0x0&&_0x977864[_0x977864['length']-0x1]&&_0x977864[_0x977864['length']-0x1]['forceDefaultExecution']?_0x977864['pop']():(_0x344b6a['return']=_0x5a8ad8((..._0x44bb31)=>_0x160f26['execute'](..._0x44bb31,{'forceDefaultExecution':!0x0}),..._0x977864),_0x344b6a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3bb345){let _0x529827,_0x23c497;const _0x100db6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x529827=_0x3bb345();}catch(_0x23e501){_0x23c497=_0x23e501;}return _0x100db6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x23c497&&_0x53634f['rethrowUnexpectedError'](_0x23c497,this),_0x529827;}['markInsertion'](_0x27a1f5,_0x2f6be4=null,_0x1c8a99={}){if(_0x27a1f5['isCollapsed'])return null;const _0x55fb6d=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4c31b3,meta:_0x5def7e}of this['_findSuggestions'](_0x27a1f5,'insertion'))if(_0x5def7e['isOwn']){if(!_0x5def7e['isNextTo']){if(_0x5def7e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x4c31b3,_0x1c8a99))continue;return _0x4c31b3;}if(Lt(_0x4c31b3,_0x1c8a99))return _0x4c31b3;this['_breakSuggestionMarker'](_0x4c31b3,_0x27a1f5['start'],_0x27a1f5['end']);break;}if(_0x2f6be4==_0x4c31b3['subType']&&Lt(_0x4c31b3,_0x1c8a99)){const _0x3f1b15=_0x4c31b3['getFirstRange']();return _0x3f1b15['start']['isEqual'](_0x27a1f5['end'])?this['_setSuggestionRange'](_0x4c31b3,this['_model']['createRange'](_0x27a1f5['start'],_0x3f1b15['end'])):this['_setSuggestionRange'](_0x4c31b3,this['_model']['createRange'](_0x3f1b15['start'],_0x27a1f5['end'])),_0x4c31b3;}}const _0x131b1d=_0x5eb2de(),_0x5d9154=_0x55fb6d['id'],_0x127408=_0x2f6be4?'insertion:'+_0x2f6be4:'insertion',_0x25d6cc=this['_setSuggestionData']({'id':_0x131b1d,'type':_0x127408,'createdAt':new Date(),'authorId':_0x5d9154,'attributes':_0x1c8a99});return this['_addSuggestionMarker'](_0x127408,_0x131b1d,_0x5d9154,_0x27a1f5),_0x25d6cc;}['markMultiRangeInsertion'](_0xbe358a,_0x389a59='multi',_0x583f1f={}){const _0x4c8bc5=this['editor']['plugins']['get']('Users')['me'],_0x5b0759=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x389a59,'join');for(const _0x145698 of this['getSuggestions']())if(_0x145698['author']['id']==_0x4c8bc5['id']&&'insertion'==_0x145698['type']&&_0x145698['subType']==_0x389a59&&Lt(_0x145698,_0x583f1f)&&(_0x5b0759(_0x145698['getRanges'](),_0xbe358a)||_0x5b0759(_0xbe358a,_0x145698['getRanges']()))){for(const _0x18f751 of _0xbe358a)_0x145698['addRange'](_0x18f751);return _0x145698;}for(const {suggestion:_0x4c0447,meta:_0x1fd173}of this['_findSuggestions'](_0xbe358a,'insertion')){if(!_0x1fd173['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1fd173['containsRangeInObject'])continue;if(!Lt(_0x4c0447,_0x583f1f))continue;let _0x1fd9c3=!0x0;for(const _0x4b6c70 of _0x4c0447['getRanges']())for(const _0x4b30d6 of _0xbe358a)if(!_0x4b6c70['containsRange'](_0x4b30d6)){_0x1fd9c3=!0x1;break;}if(_0x1fd9c3)return _0x4c0447;}const _0x1057f4=_0x5eb2de(),_0x3779d4=_0x4c8bc5['id'],_0x1dfb72='insertion:'+_0x389a59,_0x207d75=this['_setSuggestionData']({'id':_0x1057f4,'type':_0x1dfb72,'createdAt':new Date(),'authorId':_0x3779d4,'attributes':_0x583f1f});for(const _0x2276da of _0xbe358a)this['_addSuggestionMarker'](_0x1dfb72,_0x1057f4,_0x3779d4,_0x2276da,u['getMultiRangeId']());return _0x207d75;}['markInlineFormat'](_0x3e46b3,_0x2a49b7,_0x9b6424=null,_0xdfa8b7={}){if(_0x9b6424=_0x9b6424||Vt(_0x2a49b7),_0x3e46b3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x456d0b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9b6424,'accept');return this['forceDefaultExecution'](()=>_0x456d0b([_0x3e46b3],_0x2a49b7,_0xdfa8b7)),null;}const _0x2dfe29=this['editor']['plugins']['get']('Users')['me'],_0x12a174=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3a2f1e,meta:_0x4164f1}of this['_findSuggestions'](_0x3e46b3,'insertion'))_0x4164f1['isOwn']&&!_0x4164f1['isInsideObject']&&_0x12a174['push'](..._0x3a2f1e['getRanges']());}const _0x27bed5=function(_0x3b30aa,_0x5d7b9b){const _0x201aa2=[];for(const _0xd479a1 of _0x5d7b9b){const _0x3d5a54=_0x3b30aa['getIntersection'](_0xd479a1);_0x3d5a54&&_0x201aa2['push'](_0x3d5a54);}return _0x201aa2;}(_0x3e46b3,_0x12a174),_0x2c6dfe=function(_0x2a1677,_0x17e5af){const _0x2a5a6=[_0x2a1677];for(const _0x260198 of _0x17e5af){let _0x299f96=0x0;for(;_0x299f96<_0x2a5a6['length'];){const _0x21e79b=_0x2a5a6[_0x299f96]['getDifference'](_0x260198);_0x2a5a6['splice'](_0x299f96,0x1,..._0x21e79b),_0x299f96+=_0x21e79b['length'];}}return _0x2a5a6;}(_0x3e46b3,_0x12a174);_0x27bed5['length']&&this['_model']['change'](()=>{for(const _0x331886 of _0x27bed5){const _0x29ab4f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9b6424,'accept');this['forceDefaultExecution'](()=>_0x29ab4f([_0x331886],_0x2a49b7,_0xdfa8b7));}});for(const _0x13db11 of _0x2c6dfe){let _0x2938f6=null,_0x4d2a15=_0x13db11['start'],_0x3d11b3=_0x13db11['end'];for(const {suggestion:_0x1069f7,meta:_0x41715b}of this['_findSuggestions'](_0x13db11,'formatInline')){if(!_0x41715b['isOwn'])continue;if(_0x1069f7['subType']!=_0x9b6424)continue;if(!Lt(_0x1069f7,_0xdfa8b7))continue;const _0x1f5ba7=_0x1069f7['getFirstRange']();if(_0x1f5ba7['containsRange'](_0x13db11,!0x0))return null;_0x4d2a15=_0x4d2a15['isBefore'](_0x1f5ba7['start'])?_0x4d2a15:_0x1f5ba7['start'],_0x3d11b3=_0x3d11b3['isAfter'](_0x1f5ba7['end'])?_0x3d11b3:_0x1f5ba7['end'],_0x2938f6?_0x1f5ba7['start']['isBefore'](_0x2938f6['getFirstRange']()['start'])?(_0x2938f6['removeMarkers'](),_0x2938f6=_0x1069f7):_0x1069f7['removeMarkers']():_0x2938f6=_0x1069f7;}const _0x108b3a=this['_model']['createRange'](_0x4d2a15,_0x3d11b3);if(_0x2938f6)this['_setSuggestionRange'](_0x2938f6,_0x108b3a);else{const _0x45453f=_0x5eb2de(),_0x4a4b06=_0x2dfe29['id'];this['_setSuggestionData']({'id':_0x45453f,'type':'formatInline:'+_0x9b6424,'data':_0x2a49b7,'createdAt':new Date(),'authorId':_0x4a4b06,'attributes':_0xdfa8b7}),this['_addSuggestionMarker']('formatInline:'+_0x9b6424,_0x45453f,_0x4a4b06,_0x108b3a);}}return null;}['markBlockFormat'](_0x3399d2,_0x11606a,_0x46e448=[],_0x35d8c6=null,_0x1755f4={}){_0x11606a['formatGroupId']||(_0x11606a['formatGroupId']=_0x11606a['commandName']),_0x11606a['multipleBlocks']=_0x3399d2['is']('range'),_0x35d8c6=_0x35d8c6||Vt(_0x11606a);const _0x141c18=_0x46e448['map'](_0x4c5dc9=>Gt(_0x4c5dc9,this['_model'])),_0x5e0860=_0x3399d2['is']('range')?_0x3399d2:Gt(_0x3399d2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x18f803=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35d8c6,'accept');return this['forceDefaultExecution'](()=>_0x18f803([_0x5e0860],_0x11606a,_0x1755f4)),null;}_0x141c18['push'](_0x5e0860);let _0x138467=!0x0;for(const _0x2bf589 of _0x141c18)if(!this['_rangeIsInLocalUserInsertion'](_0x2bf589)){_0x138467=!0x1;break;}if(_0x138467&&'always'!==this['_trackFormatChanges']){const _0x44df72=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35d8c6,'accept');return this['forceDefaultExecution'](()=>_0x44df72([_0x5e0860],_0x11606a,_0x1755f4)),null;}let _0x1514d5=null,_0x151720=_0x5e0860['start'],_0x5833ef=_0x5e0860['end'];for(const {suggestion:_0x1831b4,meta:_0x5b683e}of this['_findSuggestions'](_0x5e0860,'formatBlock')){if(!_0x5b683e['isOwn'])continue;if(_0x5b683e['isNextTo']||_0x5b683e['containsRangeInObject']||_0x5b683e['isInsideObject'])continue;if(_0x1831b4['data']['formatGroupId']!=_0x11606a['formatGroupId'])continue;if(!Lt(_0x1831b4,_0x1755f4))continue;const _0x3981a8=_0x1831b4['getFirstRange']();if(_0x1831b4['subType']==_0x35d8c6){if(_0x3981a8['containsRange'](_0x5e0860,!0x0))return null;_0x151720=_0x151720['isBefore'](_0x3981a8['start'])?_0x151720:_0x3981a8['start'],_0x5833ef=_0x5833ef['isAfter'](_0x3981a8['end'])?_0x5833ef:_0x3981a8['end'],_0x1514d5?_0x3981a8['start']['isBefore'](_0x1514d5['getFirstRange']()['start'])?(_0x1514d5['removeMarkers'](),_0x1514d5=_0x1831b4):_0x1831b4['removeMarkers']():_0x1514d5=_0x1831b4;}else{const _0x49c38c=_0x5e0860['getIntersection'](_0x3981a8);this['_cutOutSuggestionMarker'](_0x1831b4,_0x49c38c);}}const _0x56c7b5=this['editor']['plugins']['get']('Users')['me'],_0x539bfa=_0x5eb2de(),_0x1928c5=_0x56c7b5['id'];if(_0x1514d5)return this['_setSuggestionRange'](_0x1514d5,this['_model']['createRange'](_0x151720,_0x5833ef)),_0x1514d5;{const _0x944d29=this['_setSuggestionData']({'id':_0x539bfa,'type':'formatBlock:'+_0x35d8c6,'data':_0x11606a,'createdAt':new Date(),'authorId':_0x1928c5,'attributes':_0x1755f4});return this['_addSuggestionMarker']('formatBlock:'+_0x35d8c6,_0x539bfa,_0x1928c5,this['_model']['createRange'](_0x151720,_0x5833ef)),_0x944d29;}}['markMultiRangeBlockFormat'](_0x43c643,_0x23baf3,_0x5875b7=[],_0x1a5d2a=null,_0x488527={}){_0x23baf3['formatGroupId']||(_0x23baf3['formatGroupId']=_0x23baf3['commandName']);const _0x23dd19=_0x43c643[0x0];_0x23baf3['multipleBlocks']=_0x23dd19['is']('range'),_0x1a5d2a=_0x1a5d2a||Vt(_0x23baf3);const _0x17c693=_0x5875b7['map'](_0x441996=>Gt(_0x441996,this['_model'])),_0x3bfc5e=_0x23dd19['is']('range')?_0x43c643:_0x43c643['map'](_0x3e9e75=>Gt(_0x3e9e75,this['_model']));if('never'===this['_trackFormatChanges']){const _0x26b3c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a5d2a,'accept');return this['forceDefaultExecution'](()=>_0x26b3c4(_0x3bfc5e,_0x23baf3,_0x488527)),null;}_0x17c693['push'](..._0x3bfc5e);let _0x26b9e8=!0x0;for(const _0x420022 of _0x17c693)if(!this['_rangeIsInLocalUserInsertion'](_0x420022)){_0x26b9e8=!0x1;break;}if(_0x26b9e8&&'always'!==this['_trackFormatChanges']){const _0x3abeca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a5d2a,'accept');return this['forceDefaultExecution'](()=>_0x3abeca(_0x3bfc5e,_0x23baf3,_0x488527)),null;}const _0x2036e4=this['editor']['plugins']['get']('Users')['me'];for(const _0x392bb3 of this['getSuggestions']()){if(_0x392bb3['author']['id']!=_0x2036e4['id'])continue;if('formatBlock'!=_0x392bb3['type']||_0x392bb3['data']['formatGroupId']!=_0x23baf3['formatGroupId'])continue;if(!Lt(_0x392bb3,_0x488527))continue;const _0x472ec7=_0x392bb3['subType']==_0x1a5d2a;for(let _0x15915a=0x0;_0x15915a<_0x3bfc5e['length'];_0x15915a++){const _0x58d155=_0x3bfc5e[_0x15915a];for(const _0x14f66b of _0x392bb3['getMarkers']()){const _0x36d817=_0x14f66b['getRange']();if(_0x58d155['isEqual'](_0x36d817)){_0x472ec7?(_0x3bfc5e['splice'](_0x15915a,0x1),_0x15915a--):_0x392bb3['removeMarker'](_0x14f66b['name']);break;}}}}if(0x0==_0x3bfc5e['length'])return null;const _0x221cc8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a5d2a,'join');for(const _0x568b61 of this['getSuggestions']())if(_0x568b61['author']['id']==_0x2036e4['id']&&'formatBlock'==_0x568b61['type']&&_0x568b61['data']['formatGroupId']==_0x23baf3['formatGroupId']&&_0x568b61['subType']==_0x1a5d2a&&Lt(_0x568b61,_0x488527)&&(_0x221cc8(_0x568b61['getRanges'](),_0x3bfc5e)||_0x221cc8(_0x3bfc5e,_0x568b61['getRanges']()))){for(const _0x462e9a of _0x3bfc5e)_0x568b61['addRange'](_0x462e9a);return _0x568b61;}const _0x49206d=_0x5eb2de(),_0xf6744e=_0x2036e4['id'],_0x288207='formatBlock:'+_0x1a5d2a,_0xdfc88e=this['_setSuggestionData']({'id':_0x49206d,'type':_0x288207,'data':_0x23baf3,'createdAt':new Date(),'authorId':_0xf6744e,'attributes':_0x488527});for(const _0x52398c of _0x3bfc5e)this['_addSuggestionMarker'](_0x288207,_0x49206d,_0xf6744e,_0x52398c,u['getMultiRangeId']());return _0xdfc88e;}['markDeletion'](_0x3408e1,_0x4a9a04=null,_0x5456e2={}){if(_0x3408e1['isCollapsed'])return null;const _0x131873=this['editor']['plugins']['get']('Users')['me'],_0x311b5f=new _0x10487e(_0x3408e1['start'],_0x3408e1['end']);for(const {suggestion:_0x152992,meta:_0x3b9ba5}of this['_findSuggestions'](_0x311b5f,'insertion'))if(_0x3b9ba5['isOwn']&&!_0x3b9ba5['isNextTo']){if(_0x152992['isMultiRange']){const _0x459ebb=_0x152992['getRanges']()['filter'](_0x1d0171=>'$graveyard'!=_0x1d0171['root']['rootName']);_0x459ebb['every'](_0x178044=>_0x311b5f['containsRange'](_0x178044,!0x0))&&_0x152992['discard']();if(_0x459ebb['some'](_0x91ca5a=>_0x91ca5a['containsRange'](_0x311b5f,!0x0))){const _0x26d150=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a9a04,'accept');return this['forceDefaultExecution'](()=>_0x26d150([_0x311b5f],null,_0x5456e2)),null;}}else{const _0x12dede=_0x311b5f['getIntersection'](_0x152992['getFirstRange']());null!==_0x12dede&&_0x152992['_onDiscard']([_0x12dede],null,_0x5456e2);}}if(_0x311b5f['detach'](),_0x311b5f['isCollapsed']||'$graveyard'==_0x311b5f['root']['rootName'])return null;let _0x48b919=null,_0x572041=_0x311b5f['start'],_0x364b37=_0x311b5f['end'];const _0x1d4b48=this['_findSuggestions'](_0x311b5f,'deletion');for(const {suggestion:_0x3ebf01,meta:_0x1a8400}of _0x1d4b48){const _0x3390b2=this['_model']['createRange'](_0x572041,_0x364b37);if(_0x1a8400['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a8400['containsRangeInObject']&&!_0x1a8400['isInsideObject'])){if(_0x3ebf01['isMultiRange']){if(!Lt(_0x3ebf01,_0x5456e2))continue;let _0x4c51ff=!0x0;for(const _0x41769b of _0x3ebf01['getRanges']()){if(_0x41769b['containsRange'](_0x3390b2,!0x0))return _0x3ebf01;_0x3390b2['containsRange'](_0x41769b)||(_0x4c51ff=!0x1);}_0x4c51ff&&_0x3ebf01['discard']();}else{const _0x33fa7a=_0x3ebf01['getFirstRange']();if(_0x33fa7a['containsRange'](_0x3390b2,!0x0))return _0x3ebf01;if(!Lt(_0x3ebf01,_0x5456e2)){_0x3390b2['containsRange'](_0x33fa7a)?_0x3ebf01['removeMarkers']():_0x33fa7a['containsPosition'](_0x572041)?_0x572041=_0x33fa7a['end']:_0x33fa7a['containsPosition'](_0x364b37)&&(_0x364b37=_0x33fa7a['start']);continue;}_0x572041=_0x572041['isBefore'](_0x33fa7a['start'])?_0x572041:_0x33fa7a['start'],_0x364b37=_0x364b37['isAfter'](_0x33fa7a['end'])?_0x364b37:_0x33fa7a['end'],_0x5456e2=Object['assign']({},_0x3ebf01['attributes']),_0x48b919?_0x33fa7a['start']['isBefore'](_0x48b919['getFirstRange']()['start'])?(_0x48b919['removeMarkers'](),_0x48b919=_0x3ebf01):_0x3ebf01['removeMarkers']():_0x48b919=_0x3ebf01;}}}if(_0x48b919)return this['_setSuggestionRange'](_0x48b919,this['_model']['createRange'](_0x572041,_0x364b37)),_0x48b919;{const _0x543f7a=_0x5eb2de(),_0x170014=this['_model']['createRange'](_0x572041,_0x364b37),_0x9bdc5b=_0x131873['id'],_0x122a20=_0x4a9a04?'deletion:'+_0x4a9a04:'deletion',_0x35a166=this['_setSuggestionData']({'id':_0x543f7a,'type':_0x122a20,'createdAt':new Date(),'authorId':_0x9bdc5b,'attributes':_0x5456e2});return this['_addSuggestionMarker'](_0x122a20,_0x543f7a,_0x9bdc5b,_0x170014),_0x35a166;}}['markMultiRangeDeletion'](_0x81de14,_0xc90969='multi',_0xfb64ac={}){const _0x57db14=this['editor']['plugins']['get']('Users')['me'],_0x19c787=_0x81de14['map'](_0x237c55=>new _0x10487e(_0x237c55['start'],_0x237c55['end'])),_0x5a285d=new Set();for(const {suggestion:_0x385132,meta:_0x1fc39b}of this['_findSuggestions'](_0x19c787,'insertion'))_0x1fc39b['isOwn']&&!_0x1fc39b['isNextTo']&&_0x5a285d['add'](_0x385132);for(const _0xd392e9 of _0x5a285d)if(_0xd392e9['isMultiRange']){const _0x13846a=_0xd392e9['getRanges']();(!_0xd392e9['attributes']||!_0xd392e9['attributes']['skipNestingCheck'])&&(_0x13846a['every'](_0x3eb952=>_0x19c787['some'](_0x3ba21d=>_0x3ba21d['containsRange'](_0x3eb952,!0x0)))&&_0xd392e9['discard']());if(_0x19c787['every'](_0xa82839=>_0x13846a['some'](_0x29a24d=>_0x29a24d['containsRange'](_0xa82839,!0x0)))){const _0x1846e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc90969,'accept');return this['forceDefaultExecution'](()=>_0x1846e6(_0x81de14,null,_0xfb64ac)),null;}}else{const _0x503a7a=_0xd392e9['getFirstRange']();_0x19c787['some'](_0x5619c2=>_0x5619c2['containsRange'](_0x503a7a,!0x0))&&_0xd392e9['discard']();if(_0x19c787['every'](_0x34292d=>_0x503a7a['containsRange'](_0x34292d,!0x0))){const _0x3cc0d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc90969,'accept');return this['forceDefaultExecution'](()=>_0x3cc0d9(_0x19c787,null,_0xfb64ac)),null;}}const _0x50bc9f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc90969,'join');let _0x438c03=null;for(const _0x15abb9 of this['getSuggestions']())if(_0x15abb9['author']['id']==_0x57db14['id']&&_0x15abb9['isInContent']&&'deletion'==_0x15abb9['type']&&_0x15abb9['subType']==_0xc90969&&Lt(_0x15abb9,_0xfb64ac)&&(_0x50bc9f(_0x15abb9['getRanges'](),_0x19c787)||_0x50bc9f(_0x19c787,_0x15abb9['getRanges']()))){if(_0x438c03){if(_0x15abb9['commentThread']&&_0x15abb9['commentThread']['length'])continue;for(const _0x44e9c7 of _0x15abb9['getRanges']())_0x438c03['isIntersectingWithRange'](_0x44e9c7)||_0x438c03['addRange'](_0x44e9c7);_0x15abb9['removeMarkers']();}else{_0x438c03=_0x15abb9;for(const _0x1df2c5 of _0x19c787)_0x15abb9['isIntersectingWithRange'](_0x1df2c5)||_0x15abb9['addRange'](_0x1df2c5);}}if(_0x438c03)return _0x438c03;_0x5a285d['clear']();for(const {suggestion:_0x41e10e,meta:_0x388f8a}of this['_findSuggestions'](_0x19c787,'deletion'))_0x388f8a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x388f8a['containsRangeInObject']&&!_0x388f8a['isInsideObject'])&&Lt(_0x41e10e,_0xfb64ac)&&_0x5a285d['add'](_0x41e10e);for(const _0x3bf74f of _0x5a285d){const _0x48461e=_0x3bf74f['getRanges']();if(!_0xfb64ac||!_0xfb64ac['skipNestingCheck']){if(_0x19c787['every'](_0xff7e94=>_0x48461e['some'](_0x2daaae=>_0x2daaae['containsRange'](_0xff7e94,!0x0))))return _0x3bf74f;}(!_0x3bf74f['attributes']||!_0x3bf74f['attributes']['skipNestingCheck'])&&(_0x48461e['every'](_0x28d577=>_0x19c787['some'](_0x34b547=>_0x34b547['containsRange'](_0x28d577,!0x0)))&&_0x3bf74f['discard']());}const _0x2a9ef6=_0x5eb2de(),_0x1a0b42=_0x57db14['id'],_0x46161f='deletion:'+_0xc90969,_0x21b488=this['_setSuggestionData']({'id':_0x2a9ef6,'type':_0x46161f,'createdAt':new Date(),'authorId':_0x1a0b42,'attributes':_0xfb64ac});for(const _0x2004c0 of _0x19c787)_0x2004c0['detach'](),_0x2004c0['isCollapsed']||'$graveyard'==_0x2004c0['root']['rootName']||this['_addSuggestionMarker'](_0x46161f,_0x2a9ef6,_0x1a0b42,_0x2004c0,u['getMultiRangeId']());return _0x21b488;}['markAttributeChange'](_0x5d5ecd,_0x458703,_0x46e366,_0x2aed6f,_0x2f36f0){if(_0x5d5ecd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x13afc9=this['editor']['plugins']['get']('Users')['me']['id'],_0x55ab4e=Array['from'](this['_suggestions']['values']())['filter'](_0x4eb3c5=>'attribute'==_0x4eb3c5['type']&&_0x4eb3c5['data']['key']==_0x458703&&_0x4eb3c5['isIntersectingWithRange'](_0x5d5ecd));if('default'===this['_trackFormatChanges']){const _0x94075a=this['_findSuggestions'](_0x5d5ecd,'insertion')['filter'](({meta:_0x5781dd})=>_0x5781dd['isOwn']&&!_0x5781dd['isInsideObject']&&!_0x5781dd['isNextTo'])['map'](({suggestion:_0x374e19})=>_0x374e19);_0x55ab4e['unshift'](..._0x94075a);}const _0x4d6f44=new Map([[_0x5d5ecd,_0x46e366]]);for(const _0x639d3e of _0x55ab4e){const _0x2dd8d9='attribute'==_0x639d3e['type']?_0x639d3e['data']['oldValue']:void 0x0,_0x41ea13=_0x639d3e['getFirstRange'](),_0x422478=Array['from'](_0x4d6f44['keys']())['find'](_0xbe043d=>_0xbe043d['isIntersecting'](_0x41ea13));if(!_0x422478)continue;const _0xfedfda=_0x422478['getDifference'](_0x41ea13);this['_isBlockAttribute'](_0x458703)&&'insertion'==_0x639d3e['type']&&0x0!=_0xfedfda['length']||(_0x4d6f44['delete'](_0x422478),_0xfedfda['forEach'](_0x2a1b8a=>{_0x4d6f44['set'](_0x2a1b8a,_0x46e366);}),'insertion'!=_0x639d3e['type']&&_0x2dd8d9!=_0x2aed6f&&_0x4d6f44['set'](_0x422478['getIntersection'](_0x41ea13),_0x2dd8d9));}const _0x54a147=[];for(const [_0x1e699c,_0x5995f2]of _0x4d6f44){const _0x5a249b=_0x5eb2de(),_0x1af6b9={'key':_0x458703,'oldValue':_0x5995f2,'newValue':_0x2aed6f};_0x458703['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':_0x458703});const _0x5861e9=('attribute:'+(_0x458703+'|'+Vt({'newValue':_0x2aed6f})))['substring'](0x0,0x3c),_0x401da8=this['_setSuggestionData']({'id':_0x5a249b,'type':_0x5861e9,'data':_0x1af6b9,'createdAt':new Date(),'authorId':_0x13afc9,'attributes':_0x2f36f0});_0x54a147['push'](_0x401da8),this['_addSuggestionMarker'](_0x5861e9,_0x5a249b,_0x13afc9,_0x1e699c);}return _0x54a147;}['enableDefaultAttributesIntegration'](_0x31b640){this['enableCommand'](_0x31b640,(_0x305db8,..._0x1e3838)=>{this['_recordAttributeChanges'](()=>{_0x305db8(..._0x1e3838);});});}['registerBlockAttribute'](_0x297be5){this['_blockAttributeKeys']['add'](_0x297be5);}['registerInlineAttribute'](_0x47e5fb){this['_inlineAttributeKeys']['add'](_0x47e5fb);}['_getAttributeKey'](_0x4ecc38){return'attribute'==_0x4ecc38['type']?_0x4ecc38['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x6081ee,_0x5a33b9){const _0x162ac4=_0x6081ee['getFirstMarker']();this['_model']['change'](_0x3e5c77=>{_0x3e5c77['updateMarker'](_0x162ac4,{'range':_0x5a33b9});});}['_addThreadToSuggestion'](_0x672c7c){const _0x1d921f=_0x672c7c['id'],_0x168e63=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1d921f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x168e63,'threadId':_0x1d921f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3460ac=this['_commentsRepository']['getCommentThread'](_0x1d921f);_0x3460ac['unbind']('isRemovable'),_0x3460ac['isRemovable']=!0x1,_0x672c7c['commentThread']=_0x3460ac;}['_checkSuggestionCorrectness'](_0x56fbeb,_0x1223e0,_0x5352f4,_0x3144d3){if(_0x56fbeb['type']!=_0x1223e0||_0x56fbeb['subType']!=_0x5352f4||_0x56fbeb['creator']['id']!=_0x3144d3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x53634f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5e521b,_0x37a94c){const _0x547a6c=_0x5e521b['getFirstRange']();if(_0x37a94c['isEqual'](_0x547a6c))_0x5e521b['removeMarkers']();else{if(_0x547a6c['containsRange'](_0x37a94c)){const _0x2dd175=this['_model']['createPositionAt'](_0x37a94c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e521b,this['_model']['createRange'](_0x547a6c['start'],_0x2dd175));const _0x358019=_0x5eb2de(),_0x47c0ac=_0x5e521b['creator']['id'],_0x50dd63=_0x5e521b['type']+':'+_0x5e521b['subType'];this['_setSuggestionData']({'id':_0x358019,'type':_0x50dd63,'createdAt':new Date(),'authorId':_0x47c0ac,'data':_0x5e521b['data'],'attributes':_0x5e521b['attributes']});const _0x3044af=this['_model']['createPositionAt'](_0x37a94c['end']['parent'],'after'),_0x10f9a1=this['_model']['createRange'](_0x3044af,_0x547a6c['end']);this['_addSuggestionMarker'](_0x50dd63,_0x358019,_0x47c0ac,_0x10f9a1);}else{if(_0x547a6c['containsPosition'](_0x37a94c['start'])){const _0x4aebb1=this['_model']['createPositionAt'](_0x37a94c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e521b,this['_model']['createRange'](_0x547a6c['start'],_0x4aebb1));}else{const _0x571e86=this['_model']['createPositionAt'](_0x37a94c['end']['parent'],'after');this['_setSuggestionRange'](_0x5e521b,this['_model']['createRange'](_0x571e86,_0x547a6c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x54ee22){for(const {suggestion:_0x3b0f68,meta:_0x283d7e}of this['_findSuggestions'](_0x54ee22,'insertion')){if(!_0x283d7e['isOwn'])continue;const _0xcf6d9d=_0x3b0f68['getRanges']();for(const _0xb1d66f of _0xcf6d9d)if(!_0x54ee22['getDifference'](_0xb1d66f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1e3ece){const _0x4767fe=this['editor']['plugins']['get']('Users')['getUser'](_0x1e3ece);if(!_0x4767fe)throw new _0x53634f('track-changes-user-not-found',this);return _0x4767fe;}['_getExternalAuthor'](_0x157a74){const _0x500b06=this['editor']['plugins']['get']('Users'),_0x4d81e9=_0x32036b('external:'+_0x157a74),_0x29ef93=_0x500b06['getUser'](_0x4d81e9);return _0x29ef93||_0x500b06['addUser']({'id':_0x4d81e9,'name':_0x157a74});}['_createSuggestion'](_0x10a52d,_0x4e6d41,_0xa977e1,_0x2dda7f,_0x10a7e7){const _0x8ffcc7=this['_getAuthorFromId'](_0x2dda7f),_0x39ef09=this['_suggestionFactory']['buildSuggestion'](_0x10a52d,_0x4e6d41,_0xa977e1,_0x8ffcc7,_0x10a7e7,_0x4a3d89=>{this['_updateSuggestionData'](_0xa977e1,{'attributes':_0x4a3d89});const _0x48c6d7=this['getSuggestion'](_0xa977e1);this['_joinWithAdjacentSuggestions'](new Set([_0x48c6d7])),this['_refreshSuggestionsChain'](new Set([_0x48c6d7]));});return this['listenTo'](_0x39ef09,'accept',()=>{this['_updateSuggestionData'](_0xa977e1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x39ef09,'discard',()=>{this['_updateSuggestionData'](_0xa977e1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xa977e1,_0x39ef09),this['_suggestionState']['set'](_0x39ef09,'notReady'),_0x39ef09;}['_splitMarkerName'](_0x45c85c){const _0x263ee8=_0x45c85c['split'](':');return{'group':_0x263ee8[0x0],'type':_0x263ee8[0x1],'subType':_0x263ee8['length']>=0x5?_0x263ee8[0x2]:null,'id':_0x263ee8['length']<0x5?_0x263ee8[0x2]:_0x263ee8[0x3],'authorId':_0x263ee8['length']<0x5?_0x263ee8[0x3]:_0x263ee8[0x4],'markerCount':0x6==_0x263ee8['length']?_0x263ee8[0x5]:null};}['_breakSuggestionMarker'](_0x5a2aa0,_0x56cadd,_0x58001e){const _0x10ba7a=_0x5a2aa0['getFirstRange'](),_0x2c84dd=_0x10ba7a['start'],_0xf062a8=_0x10ba7a['end'];this['_setSuggestionRange'](_0x5a2aa0,this['_model']['createRange'](_0x2c84dd,_0x56cadd));const _0xa9b217=_0x5eb2de(),_0x19122a=_0x5a2aa0['creator']['id'],_0x5ad66b=_0x5a2aa0['type']+(_0x5a2aa0['subType']?':'+_0x5a2aa0['subType']:'');this['_setSuggestionData']({'id':_0xa9b217,'type':_0x5ad66b,'createdAt':new Date(),'authorId':_0x19122a,'originalSuggestionId':_0x5a2aa0['id'],'attributes':_0x5a2aa0['attributes'],'data':_0x5a2aa0['data']});const _0x6a4f25=this['_getAttributeKey'](_0x5a2aa0);('formatBlock'==_0x5a2aa0['type']||_0x6a4f25&&this['_isBlockAttribute'](_0x6a4f25))&&(_0x58001e=this['_model']['createPositionBefore'](_0x58001e['parent'])),this['_addSuggestionMarker'](_0x5ad66b,_0xa9b217,_0x19122a,this['_model']['createRange'](_0x58001e,_0xf062a8));}['_findSuggestions'](_0x5a762c,_0x5a3f71=null){const _0x43e60d=[],_0x3bdde6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a762c)||(_0x5a762c=[_0x5a762c]);for(const _0x390af2 of this['getSuggestions']()){if(!_0x390af2['isInContent'])continue;if(_0x5a3f71&&_0x390af2['type']!=_0x5a3f71)continue;let _0x2c4058=!0x1;for(const _0x33e335 of _0x390af2['getRanges']()){for(const _0x1ebcdc of _0x5a762c){const _0x4ec109=_0x1ebcdc['start']['isEqual'](_0x33e335['end'])||_0x1ebcdc['end']['isEqual'](_0x33e335['start']);if(_0x4ec109||_0x1ebcdc['getIntersection'](_0x33e335)){const _0x99075=_0x1ebcdc['containsRange'](_0x33e335)&&Rt(this['_model']['schema'],_0x33e335['start'],_0x1ebcdc),_0x5b7b15=_0x33e335['containsRange'](_0x1ebcdc)&&Rt(this['_model']['schema'],_0x1ebcdc['start'],_0x33e335);_0x43e60d['push']({'suggestion':_0x390af2,'meta':{'isOwn':_0x3bdde6==_0x390af2['author'],'isNextTo':_0x4ec109,'isInsideObject':_0x99075,'containsRangeInObject':_0x5b7b15}}),_0x2c4058=!0x0;break;}}if(_0x2c4058)break;}}return _0x43e60d;}['_addSuggestionMarker'](_0x456bb2,_0x5ef87e,_0x551a41,_0x5f3b46,_0x404f6c){this['_model']['change'](_0x5c4059=>{let _0x33bfdc='suggestion:'+_0x456bb2+':'+_0x5ef87e+':'+_0x551a41;_0x404f6c&&(_0x33bfdc=_0x33bfdc+':'+_0x404f6c),_0x5c4059['addMarker'](_0x33bfdc,{'range':_0x5f3b46,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2f123c){const _0x3964b0=_0x2f123c['previous'],_0x1aced7=_0x2f123c['next'];_0x2f123c['previous']=null,_0x2f123c['next']=null,null!=_0x3964b0&&_0x3964b0['next']==_0x2f123c&&(_0x3964b0['next']=_0x1aced7),null!=_0x1aced7&&_0x1aced7['previous']==_0x2f123c&&(_0x1aced7['previous']=_0x3964b0),'ready'==this['_suggestionState']['get'](_0x2f123c)&&(this['_suggestionState']['set'](_0x2f123c,'removed'),this['fire']('suggestionUnloaded',_0x2f123c,_0x3964b0,_0x1aced7));}['_setSuggestionData'](_0x49a226){const _0x4bdf6d=_0x49a226['id'],_0x49b5e1=this['addSuggestionData'](_0x49a226);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x20673c=this['editor']['plugins']['get']('PendingActions'),_0x1a4439=_0x49b5e1['hasComments'],_0x2d9841=_0x49b5e1['subType']?_0x49b5e1['type']+':'+_0x49b5e1['subType']:_0x49b5e1['type'],_0x2b5e61=this['editor']['locale'],_0x1c7215=_0x20673c['add'](o(_0x2b5e61,'PENDING_ACTION_SUGGESTION')),_0x32ff52={'id':_0x4bdf6d,'type':_0x2d9841,'hasComments':_0x1a4439,'data':_0x49a226['data']||null,'originalSuggestionId':_0x49a226['originalSuggestionId']||null,'attributes':_0x49b5e1['attributes']};this['_adapter']['addSuggestion'](_0x32ff52)['then'](_0x18a07e=>{_0x49b5e1['_saved']=!0x0,_0x20673c['remove'](_0x1c7215),_0x18a07e&&_0x18a07e['createdAt']&&(this['_suggestions']['get'](_0x4bdf6d)['createdAt']=_0x18a07e['createdAt']);})['catch'](_0x41e8d6=>{throw _0x35335f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x49b5e1['discard']();}),_0x49b5e1['stopListening'](),this['_suggestions']['delete'](_0x49b5e1['id']),this['_suggestionState']['delete'](_0x49b5e1),_0x41e8d6;});}return _0x49b5e1;}['_isBlockAttribute'](_0x1e8751){return this['_blockAttributeKeys']['has'](_0x1e8751);}['_updateSuggestionData'](_0x43ec9f,_0x4af57b){const _0x445b92=this['editor']['plugins']['get']('PendingActions'),_0x326db4=this['getSuggestion'](_0x43ec9f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x326db4['_saved']){const _0x1bcacf=_0x445b92['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x43ec9f,_0x4af57b)['then'](()=>{_0x445b92['remove'](_0x1bcacf);});}else _0x326db4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x43ec9f,_0x4af57b);});}}['_getSuggestionData'](_0x1366c6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x53634f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1366c6);}['_handleNewSuggestionMarker'](_0x39428f){const {id:_0x1c53f2,type:_0x45505b,subType:_0x2891d9,authorId:_0x28b1d5}=this['_splitMarkerName'](_0x39428f),_0xa81f88=this['_suggestions']['get'](_0x1c53f2)||this['_createSuggestion'](_0x45505b,_0x2891d9,_0x1c53f2,_0x28b1d5,{});switch(this['_checkSuggestionCorrectness'](_0xa81f88,_0x45505b,_0x2891d9,_0x28b1d5),this['_suggestionState']['get'](_0xa81f88)){case'notReady':this['_getSuggestionData'](_0x1c53f2)['then'](_0x3d77b2=>{let _0x882652=Promise['resolve']();_0x3d77b2['hasComments']&&(_0x882652=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c53f2})),_0x882652['then'](()=>{this['addSuggestionData'](_0x3d77b2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xa81f88,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c53f2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xa81f88,'ready'),this['fire']('suggestionLoaded',_0xa81f88);break;case'ready':this['fire']('suggestionChanged',_0xa81f88);}return _0xa81f88['addMarkerName'](_0x39428f),_0xa81f88;}['_refreshSuggestionsChain'](_0xf91656){const _0x3bafe8=Array['from'](_0xf91656),_0x3ff887=_0x3bafe8['filter'](_0xf12a2=>'attribute'==_0xf12a2['type']);this['_refreshAttributeSuggestionsChain'](_0x3ff887);const _0x37db58=_0x3bafe8['filter'](_0x2c9f6d=>!_0x2c9f6d['isMultiRange']&&'attribute'!=_0x2c9f6d['type']),_0xb8c07=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10e9ad=>!_0x10e9ad['isMultiRange']&&'attribute'!=_0x10e9ad['type']),_0x4bdd0a=_0xb8c07['filter'](_0x43f083=>!_0xf91656['has'](_0x43f083)),_0x287491=new Map(_0xb8c07['map'](_0x9e5409=>[_0x9e5409,this['_suggestionFactory']['getSuggestionCallback'](_0x9e5409['type'],_0x9e5409['subType'],'chain')])),_0x411472=new Map(_0xb8c07['map'](_0x4a1434=>[_0x4a1434,_0x4a1434['getFirstRange']()])),_0x2d6d75=new Set(),_0xe71418=new Set();for(let _0x5a6215=0x0;_0x5a6215<_0x37db58['length'];_0x5a6215++)_0x45ec74(_0x37db58[_0x5a6215],_0x37db58,_0x5a6215+0x1);for(let _0x495799=0x0;_0x495799<_0x37db58['length'];_0x495799++)_0x45ec74(_0x37db58[_0x495799],_0x4bdd0a,0x0);const _0x100f32=new Set();for(let _0x105877=0x0;_0x105877<_0x37db58['length'];_0x105877++){const _0x225db2=_0x37db58[_0x105877];!_0xe71418['has'](_0x225db2)&&_0x225db2['previous']&&(_0x100f32['add'](_0x225db2['previous']),_0x225db2['previous']['next']===_0x225db2&&(_0x225db2['previous']['next']=null),_0x225db2['previous']=null),!_0x2d6d75['has'](_0x225db2)&&_0x225db2['next']&&(_0x100f32['add'](_0x225db2['next']),_0x225db2['next']['previous']===_0x225db2&&(_0x225db2['next']['previous']=null),_0x225db2['next']=null);}function _0x45ec74(_0xb97b3e,_0x27f115,_0x4fc02b){for(let _0x26b4d6=_0x4fc02b;_0x26b4d6<_0x27f115['length'];_0x26b4d6++){const _0x56555a=_0x2eb5bb(_0xb97b3e,_0x27f115[_0x26b4d6]);_0x56555a&&(_0x56555a[0x0]['next']=_0x56555a[0x1],_0x56555a[0x1]['previous']=_0x56555a[0x0],_0x2d6d75['add'](_0x56555a[0x0]),_0xe71418['add'](_0x56555a[0x1]));}}function _0x2eb5bb(_0x1ed142,_0x16378c){if(_0x1ed142['author']['id']!==_0x16378c['author']['id'])return null;const _0x559a51=_0x287491['get'](_0x1ed142)(_0x1ed142,_0x16378c,_0x411472['get'](_0x1ed142),_0x411472['get'](_0x16378c));if(!_0x559a51)return null;return _0x287491['get'](_0x16378c)(_0x1ed142,_0x16378c,_0x411472['get'](_0x1ed142),_0x411472['get'](_0x16378c))?_0x559a51[0x1]['commentThread']&&_0x559a51[0x1]['commentThread']['length']?null:_0x559a51:null;}_0x100f32['size']&&this['_refreshSuggestionsChain'](_0x100f32);}['_refreshAttributeSuggestionsChain'](_0x44c242){if(0x0==_0x44c242['length'])return;const _0x43d28e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dc9fe=>'attribute'==_0x4dc9fe['type']&&_0x4dc9fe['_isDataLoaded']),_0x5f40c1=[],_0x180d65=new Map();for(const _0x4a3591 of _0x43d28e){const _0x14e6ae=_0x32036b(_0x4a3591['attributes']);_0x180d65['has'](_0x14e6ae)||(_0x180d65['set'](_0x14e6ae,_0x5f40c1['length']),_0x5f40c1['push']([]));const _0x10655e=_0x180d65['get'](_0x14e6ae);_0x5f40c1[_0x10655e]['push'](_0x4a3591);}!(function(){_0x5f40c1['sort']((_0x578477,_0x4dfbb6)=>{const _0x155dec=_0x578477[0x0]['createdAt'],_0x2e525e=_0x4dfbb6[0x0]['createdAt'];return _0x155dec==_0x2e525e?_0x578477[0x0]['attributes']['groupId']<_0x4dfbb6[0x0]['attributes']['groupId']?-0x1:0x1:_0x155dec<_0x2e525e?-0x1:0x1;});for(const _0x611cb8 of _0x5f40c1)_0x611cb8['sort']((_0x33d7f5,_0x47ea10)=>_0x33d7f5['id']<_0x47ea10['id']?-0x1:0x1);}());for(let _0xff44e1=0x0;_0xff44e1<_0x5f40c1['length'];_0xff44e1++){if(0x0==_0x5f40c1[_0xff44e1]['length'])continue;const _0x26fa49=[];for(let _0x29d038=_0xff44e1+0x1;_0x29d038<_0x5f40c1['length'];_0x29d038++)0x0!=_0x5f40c1[_0x29d038]['length']&&_0x2f7595(_0x5f40c1[_0xff44e1],_0x5f40c1[_0x29d038])&&_0x26fa49['push'](_0x29d038);for(const _0x981cc1 of _0x26fa49)_0x5f40c1[_0xff44e1]=_0x5f40c1[_0xff44e1]['concat'](_0x5f40c1[_0x981cc1]),_0x5f40c1[_0x981cc1]=[];}for(const _0x43fb63 of _0x5f40c1)for(let _0x11ddbb=0x0;_0x11ddbb<_0x43fb63['length'];_0x11ddbb++)_0x43fb63[_0x11ddbb]['next']=_0x43fb63[_0x11ddbb+0x1]||null;for(const _0x3675c2 of _0x5f40c1)for(let _0x3a8726=0x0;_0x3a8726<_0x3675c2['length'];_0x3a8726++)_0x3675c2[_0x3a8726]['previous']=_0x3675c2[_0x3a8726-0x1]||null;function _0x2f7595(_0x28ccea,_0x99a89b){if(_0x28ccea[0x0]['attributes']['groupId']!==_0x99a89b[0x0]['attributes']['groupId']&&_0x28ccea[0x0]['author']!==_0x99a89b[0x0]['author'])return!0x1;if(!function(_0x509347,_0x23e6e3){if(!_0x509347['hasComments']&&!_0x23e6e3['hasComments'])return!0x0;if(_0x509347['hasComments']&&_0x23e6e3['hasComments'])return!0x1;if(_0x509347['hasComments']&&_0x23e6e3['createdAt']<_0x509347['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x23e6e3['hasComments']&&_0x509347['createdAt']<_0x23e6e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x28ccea[0x0],_0x99a89b[0x0]))return!0x1;const _0x2ec18b=Bt(_0x28ccea[0x0]['attributes'],'groupId'),_0xee77ce=Bt(_0x99a89b[0x0]['attributes'],'groupId');if(!_0x4b55d5(_0x2ec18b,_0xee77ce))return!0x1;return!!_0x28ccea['every'](_0x29c22b=>_0x99a89b['some'](_0x2ce71a=>_0x29c22b['getFirstRange']()['isEqual'](_0x2ce71a['getFirstRange']())))&&_0x99a89b['every'](_0x778f53=>_0x28ccea['some'](_0x68430a=>_0x778f53['getFirstRange']()['isEqual'](_0x68430a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1149ee){const _0x35cccf=Array['from'](_0x1149ee),_0x5a47a0=this['getSuggestions']({'skipNotAttached':!0x0}),_0xf5a7f0=_0x5a47a0['filter'](_0x254bc6=>!_0x1149ee['has'](_0x254bc6)),_0x215c1a=new Map(_0x35cccf['map'](_0x5aaab9=>[_0x5aaab9,this['_suggestionFactory']['getSuggestionCallback'](_0x5aaab9['type'],_0x5aaab9['subType'],'join')])),_0x23009d=new Map(_0x5a47a0['map'](_0x58dc98=>[_0x58dc98,_0x58dc98['getRanges']()]));for(let _0x2df210=0x0;_0x2df210<_0x35cccf['length'];_0x2df210++){if(_0x3f1a55(this,_0x35cccf[_0x2df210],_0x35cccf,_0x2df210+0x1))return!0x0;}for(let _0x3b9859=0x0;_0x3b9859<_0x35cccf['length'];_0x3b9859++){if(_0x3f1a55(this,_0x35cccf[_0x3b9859],_0xf5a7f0,0x0))return!0x0;}return!0x1;function _0x3f1a55(_0x2cc898,_0x2dc3f2,_0x3f9d47,_0x16bd79){for(let _0x21933d=_0x16bd79;_0x21933d<_0x3f9d47['length'];_0x21933d++){const _0x2d36b8=_0x3f9d47[_0x21933d];if(_0x2d36b8['type']!==_0x2dc3f2['type']||_0x2d36b8['author']['id']!==_0x2dc3f2['author']['id']||_0x2d36b8['subType']!==_0x2dc3f2['subType'])continue;if(!Pt(_0x2dc3f2,_0x2d36b8,['groupId']))continue;if('attribute'==_0x2dc3f2['type']&&_0x2dc3f2['data']['oldValue']!=_0x2d36b8['data']['oldValue'])continue;if('attribute'==_0x2dc3f2['type']&&_0x2cc898['_isBlockAttribute'](_0x2dc3f2['data']['key']))continue;if('formatBlock'==_0x2dc3f2['type']){const _0x92b590=_0x2cc898['editor']['model'],_0x37c65d=_0x2dc3f2['getContainedElement']();if(_0x37c65d&&(_0x92b590['schema']['isObject'](_0x37c65d)||_0x92b590['schema']['isLimit'](_0x37c65d)))continue;}const _0x368190=_0x215c1a['get'](_0x2dc3f2),_0x4fecf1=_0x23009d['get'](_0x2dc3f2),_0xb971e1=_0x23009d['get'](_0x2d36b8),_0x21c50c=_0x2dc3f2['commentThread']&&_0x2dc3f2['commentThread']['length'],_0x7ac828=_0x2d36b8['commentThread']&&_0x2d36b8['commentThread']['length'];if(!_0x21c50c&&_0x368190(_0xb971e1,_0x4fecf1))return _0x2cc898['_joinSuggestions'](_0x2d36b8,_0x2dc3f2),_0x23009d['delete'](_0x2dc3f2),!0x0;if(!_0x7ac828&&_0x368190(_0x4fecf1,_0xb971e1))return _0x2cc898['_joinSuggestions'](_0x2dc3f2,_0x2d36b8),_0x23009d['delete'](_0x2d36b8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3c3b62,_0x3dca84){if(_0x3c3b62['isMultiRange']){for(const _0x4f512a of _0x3dca84['getRanges']())_0x3c3b62['addRange'](_0x4f512a);}else{const _0x12472d=_0x3dca84['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3c3b62,this['_model']['createRange'](_0x3c3b62['getFirstRange']()['start'],_0x12472d));}_0x3dca84['removeMarkers']();}['_getMarkerAnnouncementText'](_0x550968,_0x53d94d){const _0x2fe1c5=_0x550968['startsWith']('format')||_0x550968['startsWith']('attribute')?'FORMATTING':_0x550968['toUpperCase']();return o(this['editor']['locale'],_0x53d94d+'_'+_0x2fe1c5+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x359054=this['editor'];if(!_0x359054['ui'])return;const {ariaLiveAnnouncer:_0x1393ff}=_0x359054['ui'];_0x34913f(this['_model'],({left:_0xffabf,entered:_0xd51e0f})=>{for(const _0x546258 of _0xffabf){const {group:_0x769f8b,type:_0x39b1c0}=this['_splitMarkerName'](_0x546258['name']);if('suggestion'===_0x769f8b){_0x1393ff['announce'](this['_getMarkerAnnouncementText'](_0x39b1c0,'LEAVE'));break;}}for(const _0x374806 of _0xd51e0f){const {group:_0x381a29,type:_0x333472}=this['_splitMarkerName'](_0x374806['name']);if('suggestion'===_0x381a29){_0x1393ff['announce'](this['_getMarkerAnnouncementText'](_0x333472,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5ac22f){if(this['_recordAttributeSuggestions'])return!0x1;const _0xc4712a=this['editor'],_0x4ec28a=_0xc4712a['model']['document']['differ']['getChanges']();if(0x0==_0x4ec28a['length'])return!0x1;const _0x28d570=[],_0x3162b2=_0x4ec28a['filter'](_0xb1bef2=>'attribute'==_0xb1bef2['type']),_0x318d91=_0x4ec28a['filter'](_0x473278=>'insert'==_0x473278['type']&&'$text'!=_0x473278['name']),_0x51df42=_0x4ec28a['filter'](_0x130a99=>'remove'==_0x130a99['type']&&'$text'!=_0x130a99['name']);for(const _0x6eb36 of _0x3162b2)_0x28d570['push']({'key':_0x6eb36['attributeKey'],'newValue':_0x6eb36['attributeNewValue'],'oldValue':_0x6eb36['attributeOldValue'],'range':Ot(_0x6eb36['range'],_0xc4712a['model'])});for(const _0x2c8db7 of _0x318d91){const _0x3e4285=_0x51df42['find'](_0x39cbca=>_0x39cbca['position']['isEqual'](_0x2c8db7['position']));_0x3e4285&&_0x28d570['push']({'key':m,'newValue':_0x2c8db7['name'],'oldValue':_0x3e4285['name'],'range':_0xc4712a['model']['createRangeOn'](_0x2c8db7['position']['nodeAfter'])});}return 0x0!=_0x28d570['length']&&this['_reduceExistingSuggestions'](_0x5ac22f,_0x28d570);}['_processAttributeSuggestions'](_0x132e5d){let _0x59f467=!0x1;const _0x5d9664=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3413d7=>_0x3413d7['data']['newRange']&&_0x3413d7['name']['startsWith']('suggestion:attribute:'));for(const _0x1432ba of _0x5d9664){const {subType:_0x313310,id:_0x34ee23}=this['_splitMarkerName'](_0x1432ba['name']),_0x966c5f=_0x313310['split']('|')[0x0];for(const _0x33d6aa of this['getSuggestions']({'skipNotAttached':!0x0}))_0x33d6aa['id']!=_0x34ee23&&'attribute'==_0x33d6aa['type']&&_0x33d6aa['data']&&_0x33d6aa['data']['key']==_0x966c5f&&_0x33d6aa['getFirstRange']()['isIntersecting'](_0x1432ba['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x33d6aa,_0x1432ba['data']['newRange'],_0x132e5d),_0x59f467=!0x0);}return _0x59f467;}['_recordAttributeChanges'](_0x65394e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x65394e();}['_isRegisteredAttribute'](_0xcb74e9){const _0x5eef06=this['_isBlockAttribute'](_0xcb74e9),_0x5c5674=this['_inlineAttributeKeys']['has'](_0xcb74e9);return _0x5eef06||_0x5c5674;}['_reduceExistingSuggestions'](_0x4df9d0,_0x4590e2){if(0x0==_0x4590e2['length'])return!0x1;let _0x3c8dac=!0x1;for(const _0x15f266 of _0x4590e2){const _0x5ea5fb=this['_findSuggestions'](_0x15f266['range'],'attribute')['filter'](_0x575d1b=>!_0x575d1b['meta']['isNextTo'])['map'](_0xfbeec8=>_0xfbeec8['suggestion']),_0x41e501=_0x32036b({'newValue':_0x15f266['newValue']});_0x5ea5fb['filter'](_0x16d448=>{const [_0x3770aa,_0x4293ee]=_0x16d448['subType']['split']('|');return _0x3770aa==_0x15f266['key']&&_0x4293ee!=_0x41e501;})['forEach'](_0x1f0d24=>{this['_reduceSuggestionAttributeRange'](_0x1f0d24,_0x15f266['range'],_0x4df9d0),_0x3c8dac=!0x0;});}return _0x3c8dac;}['_reduceSuggestionAttributeRange'](_0x1083b2,_0x5cc1db,_0x466463){const _0x2491aa=_0x1083b2['getFirstRange']()['getDifference'](_0x5cc1db);0x0!==_0x2491aa['length']?0x1!==_0x2491aa['length']?this['_breakSuggestionMarker'](_0x1083b2,_0x5cc1db['start'],_0x5cc1db['end']):this['_setSuggestionRange'](_0x1083b2,_0x2491aa[0x0]):_0x466463['removeMarker'](_0x1083b2['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x849a9){this['_editor']=_0x849a9,this['_model']=_0x849a9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xacdc9b,_0x4029b8,_0x3f91db,_0x128242,_0x14ee9c,_0x5bd842){return new u(this['_model'],{'type':_0xacdc9b,'subType':_0x4029b8,'id':_0x3f91db,'author':_0x128242,'creator':_0x128242,'attributes':_0x14ee9c,'onAttributesChange':_0x5bd842,'onAccept':(..._0x305020)=>this['getSuggestionCallback'](_0xacdc9b,_0x4029b8,'accept')(..._0x305020),'onDiscard':(..._0x48675d)=>this['getSuggestionCallback'](_0xacdc9b,_0x4029b8,'discard')(..._0x48675d)});}['registerCustomCallback'](_0x5af9b1,_0x9dc1a0,_0x3fcc57,_0x5adb02){const _0x5f3fd1=_0x5af9b1+':'+_0x9dc1a0+':'+_0x3fcc57;this['_customCallbacks']['set'](_0x5f3fd1,_0x5adb02);}['getSuggestionCallback'](_0x4f265d,_0x52f20e,_0x31235b){const _0x322b59=_0x4f265d+':'+_0x52f20e+':'+_0x31235b;return this['_customCallbacks']['get'](_0x322b59)||this['_defaultCallbacks']['get'](_0x4f265d+':'+_0x31235b);}['_registerDefaultCallbacks'](){const _0x4e93d4=()=>!0x1,_0x9bf9cb=_0x5cde7f=>{_0x5cde7f['sort']((_0x14bb13,_0x3f9f2b)=>_0x14bb13['start']['isBefore'](_0x3f9f2b['start'])?0x1:-0x1),this['_model']['change'](_0x3233c5=>{for(const _0x575530 of _0x5cde7f){let _0x50ec81;_0x50ec81=_0x575530['end']['isAtEnd']&&_0x575530['end']['parent']==_0x575530['start']['nodeAfter']?_0x3233c5['createSelection'](_0x575530['start']['nodeAfter'],'on'):_0x3233c5['createSelection'](_0x575530),this['_model']['deleteContent'](_0x50ec81,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x333653=(_0x58fc4c,_0x3ab627)=>{_0x3ab627&&this['_model']['change'](_0x40f648=>{const {commandName:_0x191cea,commandParams:_0x5cbcc4=[]}=_0x3ab627,_0x1722cc=_0x58fc4c['map'](_0x49ba4b=>(Tt(_0x49ba4b)&&(_0x49ba4b=this['_model']['createRange'](_0x49ba4b['end'])),_0x49ba4b))['filter'](_0x50ba32=>'$graveyard'!==_0x50ba32['root']['rootName']);if(_0x1722cc['length']<0x1)return;const _0x30d240=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x32c8f3=>_0x10487e['fromRange'](_0x32c8f3));_0x40f648['setSelection'](_0x1722cc);for(const _0x44529f of this['_editor']['commands']['commands']())_0x44529f['refresh']();_0x5cbcc4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x191cea,..._0x5cbcc4);const _0x3ceb60=_0x30d240['filter'](_0x52a5bd=>'$graveyard'!=_0x52a5bd['root']['rootName']);_0x3ceb60['length']>0x0&&_0x40f648['setSelection'](_0x3ceb60);for(const _0x53db0f of _0x30d240)_0x53db0f['detach']();});},_0x9f023c=(_0x377f87,_0x745ce7)=>0x1==_0x377f87['length']&&0x1==_0x745ce7['length']&&_0x377f87[0x0]['end']['isEqual'](_0x745ce7[0x0]['start']),_0x3ba176=(_0x7ceaf6,_0x24fdeb,_0x255cfd,_0x5dac72)=>Ft(_0x7ceaf6,_0x24fdeb,_0x255cfd,_0x5dac72,this['_model'])?[_0x7ceaf6,_0x24fdeb]:Ft(_0x24fdeb,_0x7ceaf6,_0x5dac72,_0x255cfd,this['_model'])?[_0x24fdeb,_0x7ceaf6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4e93d4),this['_defaultCallbacks']['set']('insertion:discard',_0x9bf9cb),this['_defaultCallbacks']['set']('insertion:join',_0x9f023c),this['_defaultCallbacks']['set']('insertion:chain',_0x3ba176),this['_defaultCallbacks']['set']('deletion:accept',_0x9bf9cb),this['_defaultCallbacks']['set']('deletion:discard',_0x4e93d4),this['_defaultCallbacks']['set']('deletion:join',_0x9f023c),this['_defaultCallbacks']['set']('deletion:chain',_0x3ba176),this['_defaultCallbacks']['set']('formatInline:accept',_0x333653),this['_defaultCallbacks']['set']('formatInline:discard',_0x4e93d4),this['_defaultCallbacks']['set']('formatInline:join',_0x9f023c),this['_defaultCallbacks']['set']('formatInline:chain',_0x4e93d4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x333653),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4e93d4),this['_defaultCallbacks']['set']('formatBlock:join',_0x9f023c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4e93d4),this['_defaultCallbacks']['set']('attribute:accept',_0x4e93d4),this['_defaultCallbacks']['set']('attribute:discard',(_0x4867ed,_0x864b96)=>{if(!_0x864b96)return;const _0x1522ab=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x53b9e1=>{if(_0x864b96['key']==m)for(const _0x3d9caf of _0x4867ed){const _0x2e47a5=_0x3d9caf['start']['nodeAfter'],_0x385269=_0x864b96['oldValue'];_0x53b9e1['rename'](_0x2e47a5,_0x385269);}else{if(_0x1522ab['_isBlockAttribute'](_0x864b96['key'])){for(const _0x204513 of _0x4867ed)void 0x0!==_0x864b96['oldValue']?_0x53b9e1['setAttribute'](_0x864b96['key'],_0x864b96['oldValue'],_0x204513['start']['nodeAfter']):_0x53b9e1['removeAttribute'](_0x864b96['key'],_0x204513['start']['nodeAfter']);}else{for(const _0x2f48ea of _0x4867ed)_0x864b96['oldValue']?_0x53b9e1['setAttribute'](_0x864b96['key'],_0x864b96['oldValue'],_0x2f48ea):_0x53b9e1['removeAttribute'](_0x864b96['key'],_0x2f48ea);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x9f023c);}}function Rt(_0x1a87c,_0x2f2be9,_0x2ef8ae){for(const _0x4cfaa6 of _0x2f2be9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4cfaa6['root']==_0x4cfaa6)return!0x1;if(!_0x2ef8ae['containsItem'](_0x4cfaa6))return!0x1;if(_0x1a87c['isObject'](_0x4cfaa6)||_0x1a87c['isLimit'](_0x4cfaa6))return!0x0;}return!0x1;}function Tt(_0x380401){return _0x380401['end']['parent']==_0x380401['start']['nodeAfter']&&_0x380401['end']['isAtStart'];}function Et(_0x53cf58,_0x5bd307,_0x45ad31,_0x309572){const _0x146657=_0x50d707=>!_0x50d707['item']['is']('$textProxy')&&!_0x309572['isObject'](_0x50d707['item']),_0x3d4211=_0x53cf58['start']['getLastMatchingPosition'](_0x146657),_0x389b95=_0x53cf58['end']['getLastMatchingPosition'](_0x146657,{'direction':'backward'});return(!_0x53cf58['start']['isEqual'](_0x3d4211)||!_0x53cf58['end']['isEqual'](_0x389b95))&&(_0x3d4211['isBefore'](_0x389b95)?_0x45ad31['updateMarker'](_0x5bd307,{'range':_0x45ad31['createRange'](_0x3d4211,_0x389b95)}):_0x45ad31['removeMarker'](_0x5bd307),!0x0);}function Vt(_0x511f4c){return _0x32036b(_0x511f4c);}function Ut(_0x5e155d){const _0x5101e5=_0x5e155d['start']['nodeAfter'];return _0x5101e5&&_0x5101e5['is']('element');}function Ot(_0x332526,_0x30e031){return null==_0x332526['end']['nodeBefore']&&_0x332526['end']['parent']==_0x332526['start']['nodeAfter']?Gt(_0x332526['start']['nodeAfter'],_0x30e031):_0x332526;}function Gt(_0x26ce85,_0x2b229e){const _0x5e5189=_0x2b229e['schema']['isObject'](_0x26ce85)||_0x2b229e['schema']['isSelectable'](_0x26ce85);return _0x2b229e['createRange'](_0x2b229e['createPositionAt'](_0x26ce85,'before'),_0x5e5189?_0x2b229e['createPositionAfter'](_0x26ce85):_0x2b229e['createPositionAt'](_0x26ce85,'end'));}function Ft(_0x564a81,_0x1591d5,_0x5ad4e3,_0x376a66,_0x1509fc){if(!Pt(_0x564a81,_0x1591d5))return!0x1;if(_0x5ad4e3['end']['isEqual'](_0x376a66['start']))return!0x0;if(_0x564a81['type']!=_0x1591d5['type'])return!0x1;if(!_0x5ad4e3['end']['isTouching'](_0x376a66['start']))return!0x1;const _0x3f3ece=_0x1509fc['createRange'](_0x5ad4e3['end'],_0x376a66['start'])['getWalker']();for(const _0x38ebc6 of _0x3f3ece)if(['elementStart','elementEnd']['includes'](_0x38ebc6['type'])&&_0x1509fc['schema']['isLimit'](_0x38ebc6['item']))return!0x1;return!0x0;}function Pt(_0x57880f,_0x466e11,_0x4e5bf9=[]){return!(!_0x57880f['_isDataLoaded']||!_0x466e11['_isDataLoaded'])&&_0x4b55d5(Bt(_0x57880f['attributes'],_0x4e5bf9),Bt(_0x466e11['attributes'],_0x4e5bf9));}function Lt(_0x2468f7,_0x5e8612){const _0xf9c853=Ht(_0x2468f7['attributes']),_0x5ed730=Ht(_0x5e8612);if(!_0x2468f7['_isDataLoaded'])return!0x1;for(const _0x2ca536 of Object['keys'](_0x5ed730))if(!_0x4b55d5(_0xf9c853[_0x2ca536],_0x5ed730[_0x2ca536]))return!0x1;return!0x0;}function Ht(_0x19fbf0){const _0xa212ab=Object['assign']({},_0x19fbf0);return delete _0xa212ab['skipNestingCheck'],delete _0xa212ab['tablePasteChainId'],_0xa212ab;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x5e1345(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x312920,_0x430f8e,_0x3c7f95,_0xb4c887){super(),this['model']=_0x430f8e,this['view']=_0x3c7f95,this['commentThreadController']=_0xb4c887,this['_editor']=_0x312920,this['_acceptCommand']=_0x312920['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x312920['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3bd494,_0x2e7833)=>_0x3bd494||_0x2e7833),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4856c2=>_0x4856c2&&this['_editor']['model']['canEditAt'](_0x430f8e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5ac2e8=>_0x5ac2e8&&this['_editor']['model']['canEditAt'](_0x430f8e['getRanges']())),this['_pendingAction']=null,_0x3c7f95['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3c7f95,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3c7f95,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3c7f95,'change:isDirty',()=>{_0x3c7f95['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 _0x2decf3=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2decf3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5f4b6c{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x190bd9,_0x58a7c2,_0x1d3039,_0x572f7d){super(_0x190bd9),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x58a7c2['authoredAt']),this['bind']('authoredAt')['to'](_0x58a7c2),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x58a7c2,this['_localUser']=_0x1d3039,this['_config']=_0x572f7d,_0x572f7d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2508d6}=this['_config'];this['commentsListView']=new _0x2508d6(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',_0x260564=>_0x260564+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x51fb3c,_0x6a5ae7)=>_0x51fb3c||!!_0x6a5ae7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x16a896}=this['_config'],_0x427d0b=new _0x16a896(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3316e1=_0x427d0b['commentInputView'];return _0x427d0b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3316e1,'value',(_0x39aaa0,_0x2c4ba3,_0x560f72)=>!!_0x560f72||_0x39aaa0&&!_0x2c4ba3),_0x3316e1['on']('submit',(_0x2d84aa,_0x96ef3d)=>{this['fire']('addComment',_0x96ef3d),_0x3316e1['editor']['setData']('');}),_0x3316e1['on']('cancel',()=>this['focus']()),_0x3316e1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x427d0b;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x235134,_0x4f89fc,_0x1eabf5,_0x3dace5){super(_0x235134,_0x4f89fc,_0x1eabf5,_0x3dace5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1cfe82=>_0x1cfe82&&_0x1cfe82[0x0]?_0x1cfe82[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5f1095,_0x33875d)=>{let _0x115304='';for(const _0x21f19f of _0x5f1095)_0x115304+='<p>'+ds(_0x21f19f['content'],_0x21f19f['color'])+'</p>';return _0x33875d?_0x115304:_0xb00db3(_0x115304,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x235134,'Accept\x20suggestion'),_0x50efe0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x235134,'Discard\x20suggestion'),_0x50efe0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x23c466(_0x235134,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x49ae5a=this['bindTemplate'],_0xbc835c=[{'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':_0x49ae5a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49ae5a['to']('authoredAt',_0x58412c=>this['_config']['formatDateTime'](_0x58412c))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0xbc835c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x14cb4b={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x49ae5a['if']('isActive','ck-suggestion-wrapper--active'),_0x49ae5a['to']('type',_0x16a087=>'ck-suggestion-'+_0x16a087),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0xbc835c}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x14cb4b['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x14cb4b;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2b4188,_0x46e309,_0x4578b0)=>{this['_descriptionElement']['innerHTML']=_0x4578b0;});}['_createButton'](_0x170fe2,_0x248ce0,_0x1010ba,_0x716764,_0xd425a3){const _0x34ed37=new _0x229c44(this['locale']);return _0x34ed37['set']({'label':_0x170fe2,'icon':_0x248ce0,'tooltip':!0x0,'tooltipPosition':_0xd425a3}),_0x34ed37['extendTemplate']({'attributes':{'class':_0x1010ba}}),_0x34ed37['on']('execute',()=>{this['fire'](_0x716764,this['_model']['id']);}),_0x34ed37;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x4db096,_0x3aeeac){let _0x52fe12='';return _0x52fe12+=_0x4db096['split']('*')['map']((_0x2aff58,_0x10e446)=>_0x10e446%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x2aff58)+'</span>':us(_0x2aff58))['join'](''),_0x3aeeac&&(_0x52fe12+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3aeeac['value']+'\x22\x20title=\x22'+_0x3aeeac['title']+'\x22></span>'),_0x52fe12;}function us(_0x5e4725){const _0x267a63=document['createElement']('span');return _0x267a63['innerText']=_0x5e4725,_0x267a63['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x5fedcf{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1a431f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x6e8376){super(_0x6e8376),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x25c3c8=this['editor']['config'];_0x25c3c8['define']('trackChanges.SuggestionThreadView',ne),_0x25c3c8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x25c3c8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5329e1,_0x15b9c7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x47434a,_0x4eb05d]of this['_handleControllerBuffer']){const _0x331cf9=this['_suggestionToController']['has'](_0x47434a);_0x331cf9||_0x4eb05d?_0x331cf9&&_0x4eb05d&&this['_destroyController'](_0x47434a):this['_initializeController'](_0x47434a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5329e1,_0x15b9c7);}['init'](){const _0xfc3416=this['editor'],_0x5e0a6d=_0xfc3416['plugins']['get']('TrackChangesEditing'),_0x25a6d1=_0xfc3416['plugins']['get']('Annotations'),_0x5c1422=_0xfc3416['plugins']['get']('EditorAnnotations'),_0x5b8e46=_0xfc3416['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5c1422['addSourceCollector'](()=>{const _0x3107e8=[];for(const [_0x326ff6,_0x6417c7]of Array['from'](this['_suggestionToController'])){const _0x56e9c8=_0x326ff6['getAllAdjacentSuggestions'](),_0xc3fda3=[];for(const _0x54dd70 of _0x56e9c8){if(!_0x54dd70['isInContent'])continue;if(_0x54dd70['isMultiRange']){_0xc3fda3['push'](..._0x54dd70['getRanges']());continue;}const _0x1879da=_0x54dd70['getFirstRange']();if(_0xc3fda3['length']>0x0){const _0x46bc27=_0xc3fda3[0x0]['getJoined'](_0x1879da);if(_0x46bc27){_0xc3fda3[0x0]=_0x46bc27;continue;}}_0xc3fda3['push'](_0x1879da);}_0x3107e8['push']([_0x6417c7['view'],_0xc3fda3]);}return _0x3107e8;}),this['listenTo'](_0x5e0a6d,'suggestionLoaded',(_0x3d9d2d,_0x494bf6)=>{this['listenTo'](_0x494bf6,'change:previous',(_0x5231b1,_0x98f8dd,_0x6c4aed,_0xd6fd0b)=>{_0x494bf6['isInContent']&&(null==_0x6c4aed?(this['_updateController'](_0xd6fd0b['head']),this['_handleSuggestionControllerDelayed'](_0x494bf6,!0x1)):(this['_updateController'](_0x6c4aed['head']),null==_0xd6fd0b&&this['_handleSuggestionControllerDelayed'](_0x494bf6,!0x0)));}),null!==_0x494bf6['previous']?this['_updateController'](_0x494bf6['head']):this['_handleSuggestionControllerDelayed'](_0x494bf6,!0x1);}),this['listenTo'](_0x5e0a6d,'suggestionUnloaded',(_0x3fc169,_0x3636df,_0x3f23be)=>{this['stopListening'](_0x3636df,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3636df),this['_suggestionToController']['has'](_0x3636df)&&this['_destroyController'](_0x3636df),_0x3f23be&&this['_updateController'](_0x3f23be['head']);}),this['listenTo'](_0x5e0a6d,'suggestionChanged',(_0x295e46,_0x36daea)=>{this['_updateController'](_0x36daea);}),this['listenTo'](_0x25a6d1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5b8e46,'addComment',(_0x1ced81,{threadId:_0x2d26cb,isFromAdapter:_0x59feb5})=>{if(_0x59feb5||!_0x5e0a6d['hasSuggestion'](_0x2d26cb))return;const _0x390deb=_0x5e0a6d['getSuggestion'](_0x2d26cb);this['_suggestionToController']['get'](_0x390deb)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x45391b=this['editor']['plugins']['get']('Annotations'),_0x3857a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cef0a=Array['from'](_0x45391b['activeAnnotations'],_0x89d0d1=>_0x89d0d1['innerView'])['filter'](_0x14efcf=>this['_viewToController']['has'](_0x14efcf)),_0x4d7ffc=[];for(const _0x5bf103 of _0x5cef0a){const _0x2f3e67=this['_viewToController']['get'](_0x5bf103)['model']['getAllAdjacentSuggestions']();_0x4d7ffc['push'](..._0x2f3e67['reduce']((_0x134fc5,_0x2f97cc)=>[..._0x134fc5,..._0x2f97cc['getMarkerNames']()],[]));}_0x3857a0['activeMarkers']=_0x4d7ffc;}['_addUIComponentsToFactory'](){const _0xad52=this['editor'],_0x1a8c1d=_0xad52['locale'],_0x5ca824=o(_0x1a8c1d,'Track\x20changes'),_0x46691e=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5ca824,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1a8c1d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1a8c1d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1a8c1d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1a8c1d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x6773d2 of _0x46691e)if(ae(_0x6773d2)){const _0x2c9d0d=_0xad52['commands']['get'](_0x6773d2['model']['commandName']);_0x6773d2['model']['bind']('isOn','isEnabled')['to'](_0x2c9d0d,'value','isEnabled');}_0xad52['ui']['componentFactory']['add']('trackChanges',_0x433d57=>this['_createToolbarButton'](_0x433d57,_0x46691e,_0x5ca824)),_0xad52['ui']['componentFactory']['add']('menuBar:trackChanges',_0x606822=>this['_createMenuBarMenu'](_0x606822,_0x46691e,_0x5ca824));}['_createToolbarButton'](_0x5653f3,_0x5d7db5,_0x16168d){const _0x3a1e74=zt(_0x5653f3,Zt),_0x35e9ba=this['editor']['commands']['get']('trackChanges');_0x3a1e74['buttonView']['set']({'tooltip':_0x16168d,'label':_0x16168d,'icon':ie}),_0x3a1e74['buttonView']['bind']('isOn')['to'](_0x35e9ba,'value'),_0x3a1e74['buttonView']['on']('execute',()=>{_0x35e9ba['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x3a1e74,_0x5d7db5,{'role':'menu'});const _0x2e65e7=[];for(const _0x7d93e3 of _0x5d7db5)ae(_0x7d93e3)&&_0x2e65e7['push'](this['editor']['commands']['get'](_0x7d93e3['model']['commandName']));const _0x3e232d=_0x3a1e74['buttonView'];return _0x3e232d['actionView']['unbind']('isEnabled'),_0x3e232d['arrowView']['unbind']('isEnabled'),_0x3e232d['actionView']['bind']('isEnabled')['to'](_0x35e9ba,'isEnabled'),_0x3e232d['arrowView']['bind']('isEnabled')['toMany'](_0x2e65e7,'isEnabled',(..._0x278411)=>_0x278411['some'](_0x6757f5=>_0x6757f5)),_0x3a1e74['on']('execute',_0x16798f=>{this['editor']['execute'](_0x16798f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a1e74;}['_createMenuBarMenu'](_0x5732cf,_0x557a01,_0x155edb){const _0x19d779=new Kt(_0x5732cf),_0x3b1723=this['editor']['commands']['get']('trackChanges');_0x19d779['buttonView']['set']({'label':_0x155edb,'icon':ie});const _0x2de943=new Qt(_0x5732cf);for(const _0x5812d8 of _0x557a01){if('separator'==_0x5812d8['type']){_0x2de943['items']['add'](new Jt(_0x5732cf));continue;}const _0x3b261=new Xt(_0x5732cf,_0x19d779),_0x59365a=new Yt(_0x5732cf),_0x44b9ff=_0x5812d8['model'];_0x59365a['bind'](...Object['keys'](_0x44b9ff))['to'](_0x44b9ff),_0x59365a['delegate']('execute')['to'](_0x19d779),_0x59365a['on']('execute',()=>{this['editor']['execute'](_0x44b9ff['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b261['children']['add'](_0x59365a),_0x2de943['items']['add'](_0x3b261);}return _0x19d779['bind']('isEnabled')['to'](_0x3b1723,'isEnabled'),_0x19d779['panelView']['children']['add'](_0x2de943),_0x19d779;}['_initializeController'](_0x356a45){const _0x40dbf4=this['editor'],_0x3f9f0b=_0x40dbf4['config'],_0x448b90=_0x40dbf4['plugins']['get']('Annotations'),_0x7e1f1d=_0x40dbf4['plugins']['get']('CommentsRepository'),_0x1d3c7d=_0x40dbf4['plugins']['get']('EditorAnnotations'),_0x218eb3=_0x40dbf4['plugins']['get'](_0x1a431f)['me'],_0xf26a5b=_0x3f9f0b['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3cba21,CommentThreadInputView:_0x293ce1}=_0x40dbf4['plugins']['get']('CommentsUI');let _0x25c631,_0x10a98e;this['_annotationViews']['has'](_0x356a45['id'])?(_0x10a98e=this['_annotationViews']['get'](_0x356a45['id']),_0x25c631=_0x10a98e['mainView']):(_0x25c631=new _0xf26a5b(_0x40dbf4['locale'],_0x356a45,_0x218eb3,{'disableComments':this['_disableComments'],'editorConfig':_0x3f9f0b['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3f9f0b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3f9f0b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3f9f0b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x460155(_0x3f9f0b['get']('locale')),'CommentView':_0x3f9f0b['get']('comments')['CommentView'],'CommentsListView':_0x3cba21,'CommentThreadInputView':_0x293ce1}),_0x25c631['acceptButton']['on']('execute',()=>{_0x40dbf4['editing']['view']['focus']();}),_0x25c631['discardButton']['on']('execute',()=>{_0x40dbf4['editing']['view']['focus']();}),_0x10a98e=_0x448b90['createAnnotationView'](this['editor']['locale'],_0x25c631),_0x10a98e['bind']('isDirty')['to'](_0x25c631,'isDirty'),_0x10a98e['bind']('length')['to'](_0x25c631),_0x10a98e['bind']('type')['to'](_0x25c631,'type',_0x598f7e=>'suggestion-'+_0x598f7e),this['_annotationViews']['set'](_0x356a45['id'],_0x10a98e));const _0x3ef0ad=_0x7e1f1d['createCommentThreadController'](_0x356a45['commentThread'],_0x25c631),_0x5a7de3=new oe(_0x40dbf4,_0x356a45,_0x25c631,_0x3ef0ad),_0x577586=_0x356a45['getAllAdjacentSuggestions']()['filter'](_0x3e5aa4=>_0x3e5aa4['isInContent']);_0x25c631['descriptionParts']=_0x40dbf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x577586),this['_suggestionToController']['set'](_0x356a45,_0x5a7de3),this['_viewToController']['set'](_0x25c631,_0x5a7de3);const _0x4c043f=_0x448b90['createAnnotation']({'view':_0x10a98e,'target':()=>{const _0x78c882=[],_0x46de19=_0x356a45['getAllAdjacentSuggestions']()['filter'](_0x4a5cbd=>_0x4a5cbd['isInContent']);for(const _0x3d6488 of _0x46de19)_0x78c882['push'](..._0x3d6488['getMarkers']());return _0x4c368d(_0x40dbf4['editing'],_0x78c882);},'type':()=>'suggestion-'+_0x5a7de3['view']['type']});_0x7e1f1d['_bindAnnotationToEditors'](_0x25c631,_0x4c043f),_0x448b90['add'](_0x4c043f),_0x1d3c7d['registerAnnotation'](_0x4c043f);}['_destroyController'](_0xb18389){const _0x45794c=this['editor']['plugins']['get']('CommentsRepository'),_0x8fbefe=this['editor']['plugins']['get']('Annotations'),_0x2fa328=this['_suggestionToController']['get'](_0xb18389),_0x52ce6e=_0x2fa328['view'],_0x47a2d0=_0x8fbefe['getByInnerView'](_0x52ce6e);_0x45794c['_unbindEditors'](_0x52ce6e),_0x47a2d0&&_0x8fbefe['remove'](_0x47a2d0),this['_suggestionToController']['delete'](_0xb18389),this['_viewToController']['delete'](_0x52ce6e),_0x2fa328['destroy']();}['_updateController'](_0x140d91){if(!_0x140d91['isInContent']||!this['_suggestionToController']['has'](_0x140d91))return;const _0x1f491a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bc2ae=this['_suggestionToController']['get'](_0x140d91),_0x4f6b28=_0x140d91['getAllAdjacentSuggestions']();_0x4bc2ae['view']['descriptionParts']=_0x1f491a['descriptionFactory']['getDescriptions'](_0x4f6b28);}['destroy'](){for(const _0x2a5d05 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2a5d05);for(const _0x3b1836 of this['_annotationViews']['values']())_0x3b1836['mainView']['destroy']();super['destroy']();}}function ae(_0x108867){return'model'in _0x108867;}class k extends _0x5fedcf{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x48eb1e){this['editor']['plugins']['get'](p)['adapter']=_0x48eb1e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xe5ab15){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xe5ab15);}['getSuggestions']({skipNotAttached:_0x5ed28d=!0x1,toJSON:_0x4c89db=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5ed28d,'toJSON':_0x4c89db});}['getSuggestion'](_0x16b2e2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x16b2e2);}}const T=['Pagination'];class P extends _0x5fedcf{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x17d8b2=this['editor'];if(_0x17d8b2['config']['define']('trackChangesData.editorCreator',_0x1b2b76=>{const _0x2d6cb7=_0x17d8b2['model']['document']['getRootNames']()['reduce']((_0x1fd396,_0xd3205b)=>(_0x1fd396[_0xd3205b]='',_0x1fd396),{});return _0x17d8b2['constructor']['create'](_0x2d6cb7,_0x1b2b76);}),'function'!=typeof _0x17d8b2['config']['get']('trackChangesData')['editorCreator'])throw new _0x53634f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2f0b0e){return N(this['editor'],!0x0,_0x2f0b0e);}['getDataWithDiscardedSuggestions'](_0x1aed7f){return N(this['editor'],!0x1,_0x1aed7f);}}class D extends _0x5fedcf{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x9cddfa){super(_0x9cddfa),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(_0xdec7f9){return void 0x0!==_0xdec7f9['getRootsAttributes'];}async function N(_0x462aba,_0x816e37,_0x2b884e){const _0xf211c8=_0xd47207(_0x462aba,T);_0xf211c8['plugins']['push'](p,D),_0xf211c8['rootsAttributes']=v(_0x462aba)?_0x462aba['getRootsAttributes']():void 0x0;const _0x2c5e2f=document['createDocumentFragment'](),_0x3659c3=_0x462aba['config']['get']('trackChangesData')['editorCreator'],_0x30aaa7=await _0x3659c3(_0xf211c8,()=>function(_0x304d17){const _0x4df60c=document['createElement']('div');return _0x304d17['appendChild'](_0x4df60c),_0x4df60c;}(_0x2c5e2f));!function(_0x27f967,_0x3cb2ac){const _0x325075=_0x27f967['model']['document']['getRootNames']()['reduce']((_0x566382,_0x59f468)=>(_0x566382[_0x59f468]=_0x27f967['data']['get']({'rootName':_0x59f468}),_0x566382),{}),_0x16909b=_0x27f967['plugins']['get']('Users')['users']['map'](_0xc9c300=>({'id':_0xc9c300['id'],'name':_0xc9c300['name']})),_0xbc5ba3=_0x27f967['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x185c1e=_0x27f967['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x584014=_0x3cb2ac['plugins']['get']('Users'),_0x909cb6=_0x3cb2ac['plugins']['get']('TrackChangesEditing'),_0x59965e=_0x3cb2ac['plugins']['get']('CommentsRepository');for(const _0x44a050 of _0x16909b)_0x584014['getUser'](_0x44a050['id'])||_0x584014['addUser'](_0x44a050);_0x584014['me']||_0x584014['useAnonymousUser']();for(const _0x3e36f5 of _0x185c1e)_0x59965e['addCommentThread'](_0x3e36f5);for(const _0x1ca031 of _0xbc5ba3)_0x909cb6['addSuggestionData'](_0x1ca031);_0x3cb2ac['data']['set'](_0x325075);}(_0x462aba,_0x30aaa7),_0x30aaa7['execute'](_0x816e37?'acceptAllSuggestions':'discardAllSuggestions');const _0x22a299=v(_0x30aaa7)?_0x30aaa7['getFullData'](_0x2b884e):_0x30aaa7['data']['get'](_0x2b884e);return await _0x30aaa7['destroy'](),_0x22a299;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x427f36,PendingActions as _0x176788,icons as _0x41ed1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x523c67,ObservableMixin as _0x2fb989,uid as _0x15f178,insertToPriorityArray as _0x2d9d80,priorities as _0x39c6d3,logWarning as _0x2202ce,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xdb6041,View as _0x409079,ButtonView as _0x3678e0,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x394f1a,hashObject as _0x54329d,surroundingMarkersDetector as _0x584d8a,trimHtml as _0x4db2b0,UserView as _0x52e2cc,getDateTimeFormatter as _0x5f0d19,getAllMarkersDomElementsSorted as _0x337491,sanitizeEditorConfig as _0x21be5c}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5d9a39,LiveRange as _0x1dfa9b,LivePosition as _0x71633c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x202df0,toWidget as _0x32603c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xaf135e,set as _0x50204f,isEqual as _0x31ca00,unset as _0x428b96,omit as Bt}from'lodash-es';import{Delete as _0x39ddf9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3e46f3,ShiftEnter as _0x215563}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4af4a9,_0x4455d8){super(_0x4af4a9),this['_enabledCommands']=_0x4455d8,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 _0x5eb0a4 of this['editor']['commands']['commands']())_0x5eb0a4['affectsData']&&!this['_enabledCommands']['has'](_0x5eb0a4)&&_0x5eb0a4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5eb66b of this['editor']['commands']['commands']())_0x5eb66b['affectsData']&&!this['_enabledCommands']['has'](_0x5eb66b)&&_0x5eb66b['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x4bcf36,_0x45116e){super(_0x4bcf36),this['_suggestions']=_0x45116e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ac1b4){const _0x1f2c47=this['_suggestions']['get'](_0x3ac1b4);if(!_0x1f2c47)throw new _0x523c67('track-changes-accept-suggestion-not-found',this);const _0x2d0ca8=_0x1f2c47['getRanges']();this['editor']['model']['canEditAt'](_0x2d0ca8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1f2c47);}}class B extends ts{['_suggestions'];constructor(_0x15047b,_0x5a62a4){super(_0x15047b),this['_suggestions']=_0x5a62a4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c1492){const _0x314010=this['_suggestions']['get'](_0x5c1492);if(!_0x314010)throw new _0x523c67('track-changes-discard-suggestion-not-found',this);const _0x251204=_0x314010['getRanges']();this['editor']['model']['canEditAt'](_0x251204)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x314010);}}function ss(_0x880cf7){return _0x880cf7['sort']((_0x425392,_0x39be0e)=>'deletion'==_0x425392['type']&&'deletion'!=_0x39be0e['type']?-0x1:'deletion'!=_0x425392['type']&&'deletion'==_0x39be0e['type']?0x1:0x0);}function to(_0x56aa1f,_0xfc138f){let _0x5d42b5,_0x2bcb77=0x0;const _0x176999=[],_0x19139b=_0xfc138f['schema'];for(;_0x2bcb77<_0x56aa1f['length'];){const _0x391254=_0x56aa1f[_0x2bcb77],_0x436817=_0x56aa1f[_0x2bcb77+0x1];_0x5d42b5||(_0x5d42b5=_0xfc138f['createPositionBefore'](_0x391254)),co(_0xfc138f,_0x391254,_0x436817)||(_0x176999['push'](_0xfc138f['createRange'](_0x5d42b5,_0x19139b['isObject'](_0x391254)?_0xfc138f['createPositionAfter'](_0x391254):_0xfc138f['createPositionAt'](_0x391254,'end'))),_0x5d42b5=null),_0x2bcb77++;}return _0x176999;}function co(_0x18df8b,_0x464a75,_0x866181){if(!_0x866181)return!0x1;const _0x24bef5=_0x18df8b['createPositionAfter'](_0x464a75),_0x57e9dc=_0x18df8b['createPositionBefore'](_0x866181);return _0x24bef5['isTouching'](_0x57e9dc);}function rs(_0x426d8f,_0x80bd5,_0x16899c){for(;_0x16899c['length'];){const _0x2e79c2=_0x16899c['splice'](0x0,0x64);_0x426d8f['change'](()=>{for(const _0x30fe8f of _0x2e79c2)_0x30fe8f['isInContent']&&_0x80bd5['execute'](_0x30fe8f['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xcae537,_0x14d7ef,_0x19f7c9){super(_0xcae537),this['_command']=_0x14d7ef,this['_suggestions']=_0x19f7c9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x60e65a=Array['from'](this['_suggestions']['values']())['some'](_0x45dd2d=>_0x45dd2d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x60e65a;}['execute'](){const _0x3447b6=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4be8db of _0x3447b6){const _0x27b319=_0x4be8db['getRanges']();if(!this['editor']['model']['canEditAt'](_0x27b319))return;}rs(this['editor']['model'],this['_command'],_0x3447b6);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x10300b,_0x4cb36d,_0x162b1f){super(_0x10300b),this['_command']=_0x4cb36d,this['_suggestions']=_0x162b1f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x268ec1=this['editor']['model']['document']['selection'],_0x7d491d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3c5f93,_0x5ccbc6){const _0x406fb7=Array['from'](_0x3c5f93['getRanges']()),_0x4bc248=new Set();for(const _0x5dd109 of _0x5ccbc6)if(_0x5dd109['isInContent']){for(const _0x451b21 of _0x406fb7)for(const _0x543528 of _0x5dd109['getRanges']())(_0x451b21['isIntersecting'](_0x543528)||_0x3c5f93['isCollapsed']&&!_0x5dd109['isMultiRange']&&_0x5dd109['next']&&_0x543528['end']['isTouching'](_0x451b21['start']))&&_0x4bc248['add'](_0x5dd109);}return _0x4bc248;}(_0x268ec1,_0x7d491d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1b5aae=ss(Array['from'](this['_selectedSuggestions']));for(const _0x167d85 of _0x1b5aae){const _0x1ab6f6=_0x167d85['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1ab6f6))return;}rs(this['editor']['model'],this['_command'],_0x1b5aae);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x2fb989(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1f97c0,_0x4b3c30){super(),this['id']=_0x4b3c30['id'],this['type']=_0x4b3c30['type'],this['subType']=_0x4b3c30['subType']||null,this['author']=_0x4b3c30['author'],this['creator']=_0x4b3c30['creator']||_0x4b3c30['author'],this['isExternal']=Boolean(_0x4b3c30['attributes']&&_0x4b3c30['attributes']['@external']),this['data']=null,this['_model']=_0x1f97c0,this['_onAccept']=_0x4b3c30['onAccept'],this['_onDiscard']=_0x4b3c30['onDiscard'],this['_onAttributesChange']=_0x4b3c30['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4b3c30['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 _0xfb13e3=this;for(;_0xfb13e3['previous'];)_0xfb13e3=_0xfb13e3['previous'];return _0xfb13e3;}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'](_0x458a4f){this['_markerNames']['add'](_0x458a4f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1cdb6e=>this['_model']['markers']['get'](_0x1cdb6e))['filter'](_0x3727c5=>_0x3727c5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x230d76=>{for(const _0x574506 of this['getMarkers']())_0x230d76['removeMarker'](_0x574506);}),this['_markerNames']['clear']();}['removeMarker'](_0x1a616a){this['_model']['change'](_0x27bda1=>{_0x27bda1['removeMarker'](_0x1a616a);}),this['_markerNames']['delete'](_0x1a616a);}['addRange'](_0x1ae1a3){const _0x146571='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x146571),this['_model']['change'](_0x371077=>{_0x371077['addMarker'](_0x146571,{'range':_0x1ae1a3,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xb9052a){for(const _0xa2c39 of this['getRanges']())if(_0xa2c39['isIntersecting'](_0xb9052a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x49e419=>_0x49e419['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x52b880,_0x2ab16a)=>[..._0x52b880,..._0x2ab16a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3f0cb0=this['getRanges']();if(0x1!=_0x3f0cb0['length'])return null;const _0x328f4d=_0x3f0cb0[0x0],_0x385b1b=_0x328f4d['start']['nodeAfter'],_0x53ee6f=_0x328f4d['end']['nodeBefore'];return _0x385b1b instanceof _0x5d9a39?_0x385b1b!=_0x53ee6f?null:_0x385b1b: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 _0x22970b=[];let _0x553ce4=this['head'];for(;_0x553ce4;)_0x22970b['push'](_0x553ce4),_0x553ce4=_0x553ce4['next'];return _0x22970b;}['setAttribute'](_0xe119f9,_0x5ec347){const _0x195cdd=_0xaf135e(this['attributes']);_0x50204f(_0x195cdd,_0xe119f9,_0x5ec347),_0x31ca00(_0x195cdd,this['attributes'])||(this['attributes']=_0x195cdd,this['_onAttributesChange'](_0x195cdd));}['removeAttribute'](_0x3e5f24){const _0x1ba789=_0xaf135e(this['attributes']);_0x428b96(_0x1ba789,_0x3e5f24),_0x31ca00(_0x1ba789,this['attributes'])||(this['attributes']=_0x1ba789,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 _0x15f178()['substr'](0x1,0x5);}}function o(_0x52c777,_0x176b18,_0x83b649){const t=_0x52c777['t'];switch(_0x176b18){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',_0x83b649);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x83b649);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x83b649);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x83b649);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x83b649);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',_0x83b649);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x83b649);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',_0x83b649);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x83b649);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x83b649);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x83b649);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x83b649);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x83b649);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x83b649);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x83b649);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x83b649);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x83b649);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x83b649);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x83b649);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x83b649);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x83b649);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x83b649);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x83b649);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'},_0x83b649);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x83b649);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x83b649);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x83b649);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x83b649);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x83b649);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'},_0x83b649);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x83b649);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x83b649);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x83b649);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x83b649);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'},_0x83b649);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x83b649);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'},_0x83b649);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'},_0x83b649);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x83b649);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'},_0x83b649);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x83b649);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'},_0x83b649);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x83b649);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x83b649);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x83b649);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'},_0x83b649);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x176b18;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x25e580,_0x3b1c50){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x25e580,this['_locale']=_0x3b1c50;}['getDescriptions'](_0x1641e0){const _0x4db721=[],_0x4f76b8=new Set(),_0x46f328=new Set();for(let _0x19432b=0x0;_0x19432b<_0x1641e0['length'];_0x19432b++){const _0x416b5d=_0x1641e0[_0x19432b];if(!_0x416b5d['isInContent'])continue;const _0x532a95=this['_handleCustomCallbackDescription'](_0x416b5d);if(_0x532a95){if(null!=_0x416b5d['subType']){if(_0x4f76b8['has'](_0x416b5d['subType']))continue;_0x4f76b8['add'](_0x416b5d['subType']);}_0x4db721['push'](_0x532a95);}else{if('attribute'!=_0x416b5d['type'])'insertion'!=_0x416b5d['type']&&'deletion'!=_0x416b5d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4db721,_0x416b5d,_0x1641e0[_0x19432b+0x1]);else{const _0xc4d659=_0x416b5d['data']['key'];if(_0x46f328['has'](_0xc4d659))continue;_0x46f328['add'](_0x416b5d['data']['key']),_0xc4d659==m?this['_handleRenameSuggestionDescription'](_0x4db721,_0x416b5d):this['_handleAttributeSuggestionDescription'](_0x4db721,_0x416b5d);}}}return this['_resolveDescriptionItems'](_0x4db721);}['registerDescriptionCallback'](_0x218b1b){this['_customCallbacks']['push'](_0x218b1b);}['registerElementLabel'](_0x2952dd,_0x32bee9,_0x3c33dd=_0x39c6d3['normal']){'function'==typeof _0x2952dd?_0x2d9d80(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2952dd,'label':_0x32bee9,'priority':_0x3c33dd}):this['_itemLabels']['set'](_0x2952dd,_0x32bee9);}['registerAttributeLabel'](_0x2094f0,_0x4eb6fe){this['_attributeLabels']['set'](_0x2094f0,_0x4eb6fe);}['getItemLabel'](_0x1dbb82,_0x2ba696=0x1){let _0x3470be;for(const _0x37016c of this['_itemLabelsCallbacks'])if(_0x37016c['matchingCallback'](_0x1dbb82)){_0x3470be=_0x37016c['label'];break;}return _0x3470be||(_0x3470be=this['_itemLabels']['get'](_0x1dbb82['name'])),_0x3470be?_0x3470be(_0x2ba696):0x1!==_0x2ba696?_0x2ba696+'\x20'+_0x1dbb82['name']+'s':''+_0x1dbb82['name'];}['_addDescriptionItems'](_0x81d571,_0x52eab8){const _0x49a9d6=_0x52eab8['getFirstRange']()['getWalker'](),_0x3d4358='insertion'==_0x52eab8['type']?'add':'remove';for(const _0x96a7bf of _0x49a9d6){const _0x3ce205=_0x96a7bf['item'],_0x3a9b04=_0x81d571[_0x81d571['length']-0x1];if(_0x3ce205['is']('$textProxy'))_0x3a9b04&&_0x3a9b04['type']['indexOf']('Container')>-0x1&&_0x81d571['pop'](),_0x3a9b04&&'text'==_0x3a9b04['type']?_0x3a9b04[_0x3d4358]+=_0x3ce205['data']:_0x81d571['push']({'type':'text','add':'add'==_0x3d4358?_0x3ce205['data']:'','remove':'remove'==_0x3d4358?_0x3ce205['data']:''});else{if(this['_schema']['isObject'](_0x3ce205)){const _0x75164c=_0x3ce205;if(_0x3a9b04&&_0x3a9b04['type']['indexOf']('Container')>-0x1&&_0x81d571['pop'](),'elementEnd'==_0x96a7bf['type'])continue;_0x3a9b04&&_0x3a9b04['type']==_0x3d4358+'Object'&&_0x3a9b04['element']['name']==_0x75164c['name']?_0x3a9b04['quantity']++:_0x81d571['push']({'type':_0x3d4358+'Object','element':_0x75164c,'quantity':0x1}),_0x49a9d6['skip'](_0x2e1922=>!('elementEnd'==_0x2e1922['type']&&_0x2e1922['item']==_0x3ce205));}else{if(this['_schema']['checkChild'](_0x3ce205,'$text')||_0x3ce205['is']('element','softBreak')){const _0x30532d=_0x3ce205;if('add'==_0x3d4358&&'elementStart'==_0x96a7bf['type']||'remove'==_0x3d4358&&'elementEnd'==_0x96a7bf['type'])continue;if(_0x3a9b04&&-0x1==_0x3a9b04['type']['indexOf']('Container')){'text'==_0x3a9b04['type']&&(_0x3a9b04[_0x3d4358]+='\x0a');continue;}let _0xa82c26;if(_0xa82c26='add'==_0x3d4358?_0x30532d['nextSibling']&&!this['_schema']['isObject'](_0x30532d['nextSibling'])?_0x30532d['nextSibling']:null:_0x30532d['previousSibling']&&!this['_schema']['isObject'](_0x30532d['previousSibling'])?_0x30532d['previousSibling']:null,_0x30532d['isEmpty']||_0xa82c26&&_0xa82c26['isEmpty']){const _0x58b572=_0xa82c26&&_0xa82c26['isEmpty']?_0xa82c26:_0x30532d;_0x3a9b04&&_0x3a9b04['type']==_0x3d4358+'EmptyContainer'&&_0x3a9b04['element']['name']==_0x58b572['name']?_0x3a9b04['quantity']++:_0x81d571['push']({'type':_0x3d4358+'EmptyContainer','element':_0x58b572,'quantity':0x1});}else _0x81d571['push']({'type':_0x3d4358+'Container','element':_0x30532d});}}}}}['_resolveDescriptionItems'](_0x596e28){const _0x4ac52d=this['_locale'],_0x107e1f=[],_0x2c77f2=[],_0x51103d=[];for(const _0x26504d of _0x596e28)switch(_0x26504d['type']){case'text':if(_0x26504d['add']=_0x26504d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x26504d['remove']=_0x26504d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x26504d['add']&&''!=_0x26504d['remove']){_0x107e1f['push']({'type':'replace','content':o(_0x4ac52d,'REPLACE_TEXT',['\x22'+_0x26504d['remove']+'\x22','\x22'+_0x26504d['add']+'\x22'])});continue;}if(null!=_0x26504d['add']['match'](/^ +$/)){_0x107e1f['push']({'type':'insertion','content':o(_0x4ac52d,'*Insert:*\x20%0',o(_0x4ac52d,'ELEMENT_SPACE',_0x26504d['add']['length']))});continue;}if(null!=_0x26504d['remove']['match'](/^ +$/)){_0x107e1f['push']({'type':'deletion','content':o(_0x4ac52d,'*Remove:*\x20%0',o(_0x4ac52d,'ELEMENT_SPACE',_0x26504d['remove']['length']))});continue;}if(''!=_0x26504d['add']){_0x107e1f['push']({'type':'insertion','content':o(_0x4ac52d,'*Insert:*\x20%0','\x22'+_0x26504d['add']+'\x22')});continue;}_0x107e1f['push']({'type':'deletion','content':o(_0x4ac52d,'*Remove:*\x20%0','\x22'+_0x26504d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x107e1f['push']({'type':'insertion','content':o(_0x4ac52d,'*Insert:*\x20%0',this['getItemLabel'](_0x26504d['element'],_0x26504d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x107e1f['push']({'type':'deletion','content':o(_0x4ac52d,'*Remove:*\x20%0',this['getItemLabel'](_0x26504d['element'],_0x26504d['quantity']))});continue;case'addContainer':_0x107e1f['push']({'type':'insertion','content':o(_0x4ac52d,'*Split:*\x20%0',this['getItemLabel'](_0x26504d['element'],_0x26504d['quantity']))});continue;case'removeContainer':_0x107e1f['push']({'type':'deletion','content':o(_0x4ac52d,'*Merge:*\x20%0',this['getItemLabel'](_0x26504d['element'],_0x26504d['quantity']))});continue;case'addFormat':_0x2c77f2['push'](_0x26504d['key']);continue;case'removeFormat':_0x51103d['push'](_0x26504d['key']);continue;default:_0x107e1f['push'](_0x26504d);}if(_0x2c77f2['length']){const _0x9e99a9=_0x2c77f2['map'](_0x342685=>this['_attributeLabels']['has'](_0x342685)?this['_attributeLabels']['get'](_0x342685):_0x342685)['join'](',\x20');_0x107e1f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x9e99a9)});}if(_0x51103d['length']){const _0x100559=_0x51103d['map'](_0x46db9c=>this['_attributeLabels']['has'](_0x46db9c)?this['_attributeLabels']['get'](_0x46db9c):_0x46db9c)['join'](',\x20');_0x107e1f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x100559)});}return _0x107e1f;}['_handleCustomCallbackDescription'](_0x596971){for(const _0x3131c5 of this['_customCallbacks']){const _0x3f564b=_0x3131c5(_0x596971);if(_0x3f564b&&'type'in _0x3f564b)return _0x3f564b;}}['_handleAttributeSuggestionDescription'](_0x34c31f,_0x1589ad){const _0x345df1=_0x1589ad['data'],_0x46de77=void 0x0===_0x345df1['newValue']?'removeFormat':'addFormat';_0x34c31f['push']({'type':_0x46de77,'key':_0x345df1['key']});}['_handleRenameSuggestionDescription'](_0x3ead7c,_0x10bcb6){_0x3ead7c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x10bcb6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5960e6,_0x2db5ce,_0x375463){if(this['_addDescriptionItems'](_0x5960e6,_0x2db5ce),_0x375463&&_0x375463['getFirstRange']()&&!_0x2db5ce['getFirstRange']()['end']['isEqual'](_0x375463['getFirstRange']()['start'])){const _0x2f2d6a=_0x5960e6[_0x5960e6['length']-0x1],_0x52855e='insertion'==_0x2db5ce['type']?'add':'remove';_0x2f2d6a&&'text'==_0x2f2d6a['type']&&(_0x2f2d6a[_0x52855e]+='\x0a');}}}class E extends _0x427f36{['afterInit'](){const _0x46dde5=this['editor'],_0x4b45e5=_0x46dde5['plugins']['get']('TrackChangesEditing');_0x46dde5['commands']['get']('showAIAssistant')&&_0x4b45e5['enableCommand']('showAIAssistant');}}class V extends _0x427f36{['afterInit'](){const _0x1fbd6e=this['editor'],_0xc5c71b=_0x1fbd6e['locale'];if(!_0x1fbd6e['plugins']['has']('AlignmentEditing'))return;const _0x4f3942=_0x1fbd6e['plugins']['get']('TrackChangesEditing');_0x4f3942['enableDefaultAttributesIntegration']('alignment'),_0x4f3942['registerBlockAttribute']('alignment'),_0x4f3942['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xc5c71b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x169f88=this['editor'],_0x5660d8=_0x169f88['locale'];_0x169f88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aed6d=>{if('formatBlock'!=_0x1aed6d['type'])return;const {data:_0x27d8f1}=_0x1aed6d;if(_0x27d8f1&&'alignment'==_0x27d8f1['commandName']){const _0x5ed7c8=_0x27d8f1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5660d8,'*Format:*\x20%0',function(_0x579fd1){switch(_0x579fd1){case'left':return o(_0x5660d8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5660d8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5660d8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5660d8,'FORMAT_JUSTIFY_TEXT');}}(_0x5ed7c8))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x427f36{['afterInit'](){const _0x26510b=this['editor'],_0x56266c=_0x26510b['plugins']['get']('TrackChangesEditing'),_0x3dde16=_0x26510b['locale'];for(const _0x59e883 of ti){if(!_0x26510b['plugins']['has'](_0x59e883))continue;const _0x16836c=_0x59e883['slice'](0x0,-0x7)['toLowerCase'](),_0x5c2ee1='FORMAT_'+_0x16836c['toUpperCase']();_0x56266c['enableDefaultAttributesIntegration'](_0x16836c),_0x56266c['registerInlineAttribute'](_0x16836c),_0x56266c['descriptionFactory']['registerAttributeLabel'](_0x16836c,o(_0x3dde16,_0x5c2ee1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5437=this['editor'],_0x56e804=_0x1c5437['locale'],_0x4b148a=_0x1c5437['plugins']['get']('TrackChangesEditing');function _0x39d28e(_0x193a6f,_0x1d5804){_0x4b148a['descriptionFactory']['registerDescriptionCallback'](_0x5d7b72=>{if('formatInline'!=_0x5d7b72['type'])return;const {data:_0x2bd060}=_0x5d7b72;return _0x2bd060&&_0x2bd060['commandName']===_0x193a6f?_0x2bd060['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56e804,'*Format:*\x20%0',_0x1d5804)}:{'type':'format','content':o(_0x56e804,'*Remove\x20format:*\x20%0',_0x1d5804)}:void 0x0;});}_0x39d28e('bold',o(_0x56e804,'FORMAT_BOLD')),_0x39d28e('italic',o(_0x56e804,'FORMAT_ITALIC')),_0x39d28e('underline',o(_0x56e804,'FORMAT_UNDERLINE')),_0x39d28e('code',o(_0x56e804,'FORMAT_CODE')),_0x39d28e('strikethrough',o(_0x56e804,'FORMAT_STRIKETHROUGH')),_0x39d28e('subscript',o(_0x56e804,'FORMAT_SUBSCRIPT')),_0x39d28e('superscript',o(_0x56e804,'FORMAT_SUPERSCRIPT'));}}class O extends _0x427f36{['afterInit'](){const _0x393280=this['editor'],_0x129fd8=_0x393280['locale'];if(!_0x393280['plugins']['has']('BlockQuoteEditing'))return;const _0x464ccc=_0x393280['plugins']['get']('TrackChangesEditing'),_0x2c910e=this['editor']['commands']['get']('blockQuote');_0x464ccc['enableCommand']('blockQuote',(_0x50c81b,_0x4e2a94={})=>{const _0x5b273a=this['editor']['model']['document']['selection'],_0x3e90ee=_0x4e2a94&&void 0x0!==_0x4e2a94['forceValue']?_0x4e2a94['forceValue']:!_0x2c910e['value'];let _0x62229f=[];if(_0x3e90ee){const _0x8c5953=Array['from'](_0x5b273a['getSelectedBlocks']())['filter'](_0x1cf92f=>oo(_0x1cf92f)||function(_0xe098bd,_0x14115c){const _0x4736de=_0x14115c['checkChild'](_0xe098bd['parent'],'blockQuote'),_0x149ce5=_0x14115c['checkChild'](['$root','blockQuote'],_0xe098bd);return _0x4736de&&_0x149ce5;}(_0x1cf92f,this['editor']['model']['schema']));_0x62229f=to(_0x8c5953,_0x393280['model']);}else{const _0x341d2b=Array['from'](_0x5b273a['getSelectedBlocks']())['filter'](_0x42fdc9=>oo(_0x42fdc9));_0x62229f=to(_0x341d2b,_0x393280['model']);}_0x393280['model']['change'](()=>{for(const _0x1946c2 of _0x62229f)_0x464ccc['markBlockFormat'](_0x1946c2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3e90ee}]});});}),_0x464ccc['descriptionFactory']['registerDescriptionCallback'](_0x142277=>{const {data:_0xb6442a}=_0x142277;if(_0xb6442a&&'blockQuote'==_0xb6442a['commandName']){const _0x5a0097=o(_0x129fd8,'ELEMENT_BLOCK_QUOTE');return _0xb6442a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x129fd8,'*Set\x20format:*\x20%0',_0x5a0097)}:{'type':'format','content':o(_0x129fd8,'*Remove\x20format:*\x20%0',_0x5a0097)};}});}}function oo(_0x2badb9){return'blockQuote'==_0x2badb9['parent']['name'];}class G extends _0x427f36{['afterInit'](){const _0x41e012=this['editor'];_0x41e012['plugins']['has']('CaseChange')&&(_0x41e012['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x41e012['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x41e012['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x427f36{['afterInit'](){const _0x118ee8=this['editor'];_0x118ee8['commands']['get']('ckbox')&&_0x118ee8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x427f36{['afterInit'](){const _0x27cc87=this['editor'];if(!_0x27cc87['plugins']['has']('CodeBlock'))return;const _0x221166=_0x27cc87['plugins']['get']('TrackChangesEditing'),_0x3f2779=_0x27cc87['locale'],_0x48e7ef=_0x27cc87['config']['get']('codeBlock')['languages'],_0x20625a=_0x27cc87['commands']['get']('codeBlock');_0x221166['enableCommand']('indentCodeBlock'),_0x221166['enableCommand']('outdentCodeBlock'),_0x221166['enableCommand']('codeBlock',(_0x5c3256,_0xb22bce={})=>{const _0x23b387=_0x27cc87['model'],_0x1ac3ba=_0x27cc87['model']['document']['selection'],_0x5ece2a=_0xb22bce&&void 0x0!==_0xb22bce['forceValue']?_0xb22bce['forceValue']:!_0x20625a['value'];let _0x15accb;_0xb22bce['language']||(_0xb22bce['language']=_0x48e7ef[0x0]['language']),_0x15accb=_0x5ece2a?Array['from'](_0x1ac3ba['getSelectedBlocks']())['filter'](_0x2c929b=>eo(_0x2c929b)||function(_0xb41a17,_0x138d45){if(_0xb41a17['is']('rootElement')||_0x138d45['isLimit'](_0xb41a17))return!0x1;return _0x138d45['checkChild'](_0xb41a17['parent'],'codeBlock');}(_0x2c929b,_0x23b387['schema'])):Array['from'](_0x1ac3ba['getSelectedBlocks']())['filter'](_0x21901b=>eo(_0x21901b));const _0x5a7712=to(_0x15accb,_0x23b387);_0x23b387['change'](()=>{for(const _0x3defd3 of _0x5a7712)_0x221166['markBlockFormat'](_0x3defd3,{'commandName':'codeBlock','commandParams':[{..._0xb22bce,'forceValue':_0x5ece2a}],'formatGroupId':'blockName'});});}),(_0x221166['descriptionFactory']['registerElementLabel']('codeBlock',_0x22e2d0=>o(_0x3f2779,'ELEMENT_CODE_BLOCK',_0x22e2d0)),_0x221166['descriptionFactory']['registerDescriptionCallback'](_0x4576e8=>{if('formatBlock'!=_0x4576e8['type'])return;const _0x1d2db7=_0x3f2779['t'],{data:_0x42652c}=_0x4576e8;if(!_0x42652c||'codeBlock'!=_0x42652c['commandName'])return;const _0x1878a8=_0x42652c['commandParams'][0x0]['language'],_0x44c392=_0x1d2db7(_0x48e7ef['find'](_0x20e80b=>_0x20e80b['language']===_0x1878a8)['label'])['toLowerCase']();return _0x42652c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f2779,'*Set\x20format:*\x20%0',o(_0x3f2779,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x44c392+')')}:{'type':'format','content':o(_0x3f2779,'*Remove\x20format:*\x20%0',o(_0x3f2779,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3cd81e){return'codeBlock'==_0x3cd81e['name'];}class H extends _0x427f36{['afterInit'](){const _0x1dd353=this['editor'];if(!_0x1dd353['plugins']['has']('CommentsEditing'))return;_0x1dd353['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x469c4d,_0x1fc156,_0x30b1a4){const _0x168baa=[];for(const _0x14cb2f of _0x1fc156['getItems']())_0x14cb2f['hasAttribute'](_0x469c4d)&&_0x168baa['push'](_0x30b1a4['createRangeOn'](_0x14cb2f));return _0x168baa;}function _e(_0x20d526,_0x33f43f,{showActiveMarker:_0x3e69f9=!0x0}={}){const _0x2c9120=_0x20d526['plugins']['get']('TrackChangesEditing');return(_0x1766aa,_0x37ecf4,_0x643515)=>{if(!_0x643515['consumable']['test'](_0x37ecf4['markerRange'],_0x1766aa['name']))return;const _0x53357b=_0x37ecf4['markerRange']['getWalker'](),_0x4f77e4=_0x37ecf4['markerRange']['start'],_0x4ed044=_0x20d526['model']['schema'];let _0x12801a=null,_0x2f3a7d=null,_0x4da6d3=!0x1,_0x39924d=!0x1;for(const _0x30645a of _0x53357b){const _0x27c9bc=_0x30645a['item'];_0x4da6d3=_0x4da6d3||_0x4ed044['isContent'](_0x27c9bc);const _0xe4ccfb=_0x643515['mapper']['toViewElement'](_0x27c9bc);if(_0xe4ccfb&&_0xe4ccfb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30645a['type']&&(_0x4ed044['isBlock'](_0x27c9bc)&&!_0x4ed044['isLimit'](_0x27c9bc)&&(_0x27c9bc['nextSibling']||_0x4f77e4['isAtEnd']?_0x12801a&&_0x12801a['parent']==_0x27c9bc||(_0x12801a=_0x27c9bc,_0x520194(_0x30645a['previousPosition']),_0x39924d=!0x0):_0x2f3a7d=_0x2f3a7d||_0x30645a['previousPosition']));}function _0x520194(_0x22c678){const _0x4ea238=_0x643515['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33f43f}),_0x207d7a=_0x643515['mapper']['toViewPosition'](_0x22c678);_0x3e69f9&&_0x2c9120['activeMarkers']['includes'](_0x37ecf4['markerName'])&&_0x643515['writer']['addClass']('ck-suggestion-marker--active',_0x4ea238),_0x643515['writer']['insert'](_0x207d7a,_0x4ea238),_0x643515['mapper']['bindElementToMarker'](_0x4ea238,_0x37ecf4['markerName']);}_0x4da6d3||_0x39924d||!_0x2f3a7d||_0x520194(_0x2f3a7d);};}class q extends _0x427f36{static get['requires'](){return[_0x39ddf9];}['init'](){const _0x419362=this['editor'],_0x40af71=_0x419362['plugins']['get']('TrackChangesEditing');_0x40af71['enableCommand']('delete');const _0x5702cb=_0x419362['commands']['get']('deleteForward');_0x40af71['enableCommand']('deleteForward',(_0x9e13f9,_0x57593e={})=>{const _0x1dd163=_0x419362['model']['createSelection'](_0x419362['model']['document']['selection']);_0x1dd163['isCollapsed']&&_0x419362['model']['modifySelection'](_0x1dd163,{'direction':'forward','unit':_0x57593e['unit']});const _0x1fbebf=_0x1dd163['getFirstRange'](),_0x548453=_0x1dfa9b['fromRange'](_0x1fbebf);let _0x7b3c8a;_0x9e13f9(_0x57593e),_0x7b3c8a='$graveyard'==_0x548453['root']['rootName']?_0x419362['model']['createRange'](_0x1fbebf['start']):_0x419362['model']['createRange'](_0x548453['start'],_0x548453['end']),_0x548453['detach'](),_0x419362['model']['enqueueChange'](_0x5702cb['buffer']['batch'],_0x5da612=>{_0x5702cb['buffer']['lock'](),_0x5da612['setSelection'](_0x5da612['createRange'](_0x7b3c8a['end'])),_0x5702cb['buffer']['unlock']();});}),_0x419362['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x419362,'merge'),{'priority':'high'}),_0x419362['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x21fd8e,_0x105676,_0x3e98a5)=>{_0x3e98a5['options']['showSuggestionHighlights']&&_e(_0x419362,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x21fd8e,_0x105676,_0x3e98a5);},{'priority':'high'}),_0x419362['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x102d92,_0x3c99d5,_0x1072b5)=>{const _0x218b56=_0x1072b5['mapper']['markerNameToElements'](_0x3c99d5['markerName']);if(_0x218b56){for(const _0x2b570d of _0x218b56)_0x2b570d['is']('uiElement')&&(_0x1072b5['mapper']['unbindElementFromMarkerName'](_0x2b570d,_0x3c99d5['markerName']),_0x1072b5['writer']['remove'](_0x2b570d));}},{'priority':'high'});}}class z extends _0x427f36{['afterInit'](){const _0x331820=this['editor'];if(!_0x331820['plugins']['has']('ListEditing'))return;const _0x28bdc6=_0x331820['locale'],_0x185fb4=_0x331820['plugins']['get']('TrackChangesEditing'),_0x23c3d3=_0x331820['plugins']['has']('TodoListEditing'),_0x278d3a=!!_0x331820['config']['get']('list.multiBlock');function _0x462455(_0x2eee06){return{'type':'format','content':''+o(_0x28bdc6,'*Set\x20format:*\x20%0',_0x2eee06)};}function _0x20cf66(_0x321a30){return{'type':'format','content':''+o(_0x28bdc6,'*Remove\x20format:*\x20%0',_0x321a30)};}_0x185fb4['enableDefaultAttributesIntegration']('numberedList'),_0x185fb4['enableDefaultAttributesIntegration']('bulletedList'),_0x185fb4['enableDefaultAttributesIntegration']('customNumberedList'),_0x185fb4['enableDefaultAttributesIntegration']('customBulletedList'),_0x185fb4['enableDefaultAttributesIntegration']('indentList'),_0x185fb4['enableDefaultAttributesIntegration']('outdentList'),_0x185fb4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x185fb4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x185fb4['registerBlockAttribute']('listItemId'),_0x185fb4['registerBlockAttribute']('listType'),_0x185fb4['registerBlockAttribute']('listIndent'),_0x278d3a&&(_0x185fb4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x185fb4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x23c3d3&&(_0x185fb4['enableDefaultAttributesIntegration']('todoList'),_0x185fb4['enableDefaultAttributesIntegration']('checkTodoList'),_0x185fb4['registerBlockAttribute']('todoListChecked'),_0x185fb4['descriptionFactory']['registerDescriptionCallback'](_0x315c2a=>{const {data:_0xd9fb07}=_0x315c2a;if(_0xd9fb07&&'todoListChecked'==_0xd9fb07['key'])return{'type':'format','content':_0xd9fb07['newValue']?o(_0x28bdc6,'*Check\x20item*'):o(_0x28bdc6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x304558=>{if(_0x304558['batch']['isUndo'])return!0x1;let _0x575c0b=!0x1;const _0x311cdf=_0x185fb4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17f786=>'todoListChecked'===_0x185fb4['_getAttributeKey'](_0x17f786));for(const _0x4d92f3 of _0x311cdf){'todo'!=_0x4d92f3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x185fb4['_findSuggestions'](_0x4d92f3['getFirstRange'](),'attribute')['find'](_0x52b633=>'listType'===_0x185fb4['_getAttributeKey'](_0x52b633['suggestion']))||(_0x304558['removeMarker'](_0x4d92f3['getFirstMarker']()),_0x575c0b=!0x0));}return _0x575c0b;})),_0x185fb4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x28bdc6,'FORMAT_INDENT'));const _0x38f9ff={'type':'format','content':''};_0x185fb4['descriptionFactory']['registerDescriptionCallback'](_0x5e05b6=>{const {data:_0x230900}=_0x5e05b6;if(!_0x230900||'listType'!=_0x230900['key'])return;let _0x2c2a42=_0x5e05b6['head'];for(;_0x2c2a42;){if(_0x2c2a42['data']&&(('listStyle'==_0x2c2a42['data']['key']||'listMarkerStyle'==_0x2c2a42['data']['key'])&&(_0x2c2a42['data']['newValue']&&'default'!=_0x2c2a42['data']['newValue']||'default'!=_0x2c2a42['data']['oldValue']&&!_0x230900['newValue'])||!_0x278d3a&&_0x2c2a42['data']['key']==m))return _0x38f9ff;_0x2c2a42=_0x2c2a42['next'];}if(null==_0x230900['newValue'])switch(_0x230900['oldValue']){case'bulleted':return _0x20cf66(o(_0x28bdc6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20cf66(o(_0x28bdc6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20cf66(o(_0x28bdc6,'ELEMENT_TODO_LIST'));}switch(_0x230900['newValue']){case'bulleted':return _0x462455(o(_0x28bdc6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x462455(o(_0x28bdc6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x462455(o(_0x28bdc6,'ELEMENT_TODO_LIST'));}}),_0x185fb4['descriptionFactory']['registerDescriptionCallback'](_0xe46381=>{const {data:_0x266243}=_0xe46381;if(_0x266243&&'listIndent'==_0x266243['key'])return null==_0x266243['newValue']||null==_0x266243['oldValue']&&0x0==_0x266243['newValue']?_0x38f9ff:void 0x0;}),_0x185fb4['descriptionFactory']['registerDescriptionCallback'](_0x4c012e=>{if('attribute'!=_0x4c012e['type'])return;const {data:_0x175c0b}=_0x4c012e;if(!_0x175c0b||'listItemId'!=_0x175c0b['key'])return;const _0x298920=le(_0x4c012e);return'newValue'==_0x298920?{'type':'format','content':o(_0x28bdc6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x298920?{'type':'format','content':o(_0x28bdc6,'*Split:*\x20list\x20item')}:_0x38f9ff;}),_0x331820['model']['document']['registerPostFixer'](_0x4dc2ba=>this['listItemIdFixer'](_0x4dc2ba)),_0x331820['model']['document']['registerPostFixer'](_0x506c92=>this['noTrackChangesFixer'](_0x506c92)),_0x331820['model']['document']['registerPostFixer'](_0x555170=>this['assureChains'](_0x555170)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xcc59be){if(_0xcc59be['batch']['isUndo']||!_0xcc59be['batch']['isLocal'])return!0x1;let _0x7662ea=!0x1;const _0x1b7bab=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46a221=>_0x46a221['data']&&'listItemId'==_0x46a221['data']['key'])['filter'](_0x13fddc=>_0x13fddc['data']['newValue']&&_0x13fddc['data']['oldValue']);for(const _0x55b26d of _0x1b7bab)le(_0x55b26d)||(_0xcc59be['removeMarker'](_0x55b26d['getFirstMarker']()),_0x7662ea=!0x0);return _0x7662ea;}['noTrackChangesFixer'](_0x2c237c){if(_0x2c237c['batch']['isUndo']||!_0x2c237c['batch']['isLocal'])return!0x1;const _0x474449=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x474449['trackChangesCommand']['value'])return!0x1;let _0x3767b=!0x1;const _0x59ac7b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x394585=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x188cd1=>'attribute'==_0x188cd1['type'])['filter'](_0x437276=>_0x59ac7b['includes'](_0x437276['attributeKey']));if(0x0==_0x394585['length'])return _0x3767b;for(const _0x520590 of _0x394585){const _0x10682a=_0x474449['_findSuggestions'](_0x520590['range'],'attribute')['filter'](_0x26d37b=>!_0x26d37b['meta']['isNextTo'])['map'](_0x1b4ac3=>_0x1b4ac3['suggestion'])['filter'](_0xfab4be=>{const _0x526da1=_0x474449['_getAttributeKey'](_0xfab4be);return _0x59ac7b['includes'](_0x526da1);});if(_0x10682a['length']){for(const _0x2c7cb5 of _0x10682a)_0x2c237c['removeMarker'](_0x2c7cb5['getFirstMarker']());_0x3767b=!0x0;}}return _0x3767b;}['assureChains'](_0x8b6559){if(_0x8b6559['batch']['isUndo']||!_0x8b6559['batch']['isLocal'])return!0x1;const _0x3a2bfc=this['editor']['plugins']['get']('TrackChangesEditing');let _0x424b2d=!0x1;const _0x3b2f68=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x21bebf of _0x3a2bfc['getSuggestions']({'skipNotAttached':!0x0})){const _0x4d3749=_0x3a2bfc['_findSuggestions'](_0x21bebf['getFirstRange'](),'attribute')['map'](_0x20a51a=>_0x20a51a['suggestion'])['filter'](_0x3577ba=>_0x3577ba['data']&&_0x3b2f68['includes'](_0x3577ba['data']['key']));if(!_0x4d3749['length'])continue;const _0xc7f761=_0x4d3749[0x0]['head']['attributes']['groupId'];if(!_0x4d3749['every'](_0x288d5f=>_0x288d5f['attributes']['groupId']===_0xc7f761)){for(const _0x5f5789 of _0x4d3749)_0x1c619d(_0x5f5789,_0xc7f761)&&(_0x424b2d=!0x0);}}return _0x424b2d;function _0x5d98a9(_0x38cc58,_0x1b2b46){for(const _0x55dc14 of _0x3a2bfc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c6b05=>'attribute'==_0x1c6b05['type']&&_0x1c6b05['attributes']['groupId']==_0x38cc58))_0x55dc14['setAttribute']('groupId',_0x1b2b46);}function _0x1c619d(_0x4b9d2f,_0x159456){let _0x9773ac=_0x4b9d2f['head'],_0x3bba05=!0x1;for(;_0x9773ac;)_0x9773ac['attributes']['groupId']!=_0x159456&&(_0x5d98a9(_0x9773ac['attributes']['groupId'],_0x159456),_0x9773ac['setAttribute']('groupId',_0x159456),_0x3bba05=!0x0),_0x9773ac=_0x9773ac['next'];return _0x3bba05;}}['_supportLegacySuggestions'](){const _0x5dc575=this['editor'],_0x27923c=_0x5dc575['locale'],_0x5f1889=_0x5dc575['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5f1889['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x30b1e0,_0x3868bb){const _0x127fb1=[];for(let _0x197d60 of _0x30b1e0)_0x197d60['start']['nodeAfter']===_0x197d60['end']['parent']&&(_0x197d60=_0x5dc575['model']['createRange'](_0x5dc575['model']['createPositionAt'](_0x197d60['start']['nodeAfter'],0x0))),_0x127fb1['push'](_0x197d60);_0x5dc575['model']['change'](_0x4819fa=>{const _0x106df4=_0x5dc575['model']['document']['selection'],_0x38f455=Array['from'](_0x106df4['getRanges']())['map'](_0x4b378a=>_0x1dfa9b['fromRange'](_0x4b378a));_0x4819fa['setSelection'](_0x127fb1),_0x5dc575['commands']['get'](_0x3868bb['commandName'])['refresh'](),_0x3868bb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5dc575['execute'](_0x3868bb['commandName'],..._0x3868bb['commandParams']),_0x4819fa['setSelection'](_0x38f455);for(const _0x241a13 of _0x38f455)_0x241a13['detach']();});}),_0x5f1889['descriptionFactory']['registerElementLabel'](function(_0x386373){const _0x911aae=!_0x5dc575['model']['schema']['isObject'](_0x386373),_0x4d4e9c=_0x386373['previousSibling'],_0x855493=_0x386373['nextSibling'],_0x548404=_0x386373['getAttribute']('listItemId'),_0x38c270=!_0x4d4e9c||_0x4d4e9c['getAttribute']('listItemId')!==_0x548404,_0x3b017b=!_0x855493||_0x855493['getAttribute']('listItemId')!==_0x548404;return _0x911aae&&Boolean(_0x548404)&&_0x38c270&&_0x3b017b;},_0x59194c=>o(_0x27923c,'ELEMENT_LIST_ITEM',_0x59194c));}['_registerLegacyDescription'](){const _0x5cb9b3=this['editor'],_0x395e1e=_0x5cb9b3['locale'];function _0x513399(_0x142de5){const _0x5d5d64=_0x5cb9b3['commands']['get']('bulletedList')['value'],_0x351843=_0x5cb9b3['commands']['get']('numberedList')['value'];return'numberedList'===_0x142de5?_0x5d5d64:_0x351843;}_0x5cb9b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x175a7e){if('formatBlock'!=_0x175a7e['type'])return;const {data:_0xb6ccf6}=_0x175a7e;if(!_0xb6ccf6)return;let _0x185bbd,_0x5b6f62,_0x4cad46,_0x4cdd4f;switch(_0xb6ccf6['commandName']){case'bulletedList':_0x4cad46=_0xb6ccf6['commandParams'][0x0]['forceValue'],_0x4cdd4f=_0x513399(_0xb6ccf6['commandName']),_0x185bbd=_0x4cad46?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4cdd4f&&_0x5cb9b3['config']['get']('list.multiBlock')||(_0x185bbd='*Change\x20to:*\x20%0'),_0x5b6f62={'type':'format','content':o(_0x395e1e,_0x185bbd,o(_0x395e1e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4cad46=_0xb6ccf6['commandParams'][0x0]['forceValue'],_0x4cdd4f=_0x513399(_0xb6ccf6['commandName']),_0x185bbd=_0x4cad46?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4cdd4f&&_0x5cb9b3['config']['get']('list.multiBlock')||(_0x185bbd='*Change\x20to:*\x20%0'),_0x5b6f62={'type':'format','content':o(_0x395e1e,_0x185bbd,o(_0x395e1e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x185bbd='*Indent:*\x20%0',_0x5b6f62={'type':'format','content':o(_0x395e1e,_0x185bbd,o(_0x395e1e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x185bbd=function(_0x5333b7){const _0x32f220=_0x5333b7['getFirstRange']();let _0xc7d2ee=_0x32f220['start']['nodeAfter'];for(;_0xc7d2ee&&_0x32f220['containsItem'](_0xc7d2ee);){if(_0xc7d2ee['getAttribute']('listIndent')>0x0)return!0x1;_0xc7d2ee=_0xc7d2ee['nextSibling'];}return!0x0;}(_0x175a7e)?o(_0x395e1e,'*Format:*\x20remove\x20from\x20%0',o(_0x395e1e,function(_0x5b19a2){return'ELEMENT_'+_0x5b19a2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x175a7e))):o(_0x395e1e,'*Outdent:*\x20%0',o(_0x395e1e,'ELEMENT_LIST_ITEM')),_0x5b6f62={'type':'format','content':_0x185bbd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xb6ccf6['multipleBlocks']&&(_0x185bbd='*Merge:*\x20%0',_0x5b6f62={'type':'deletion','content':o(_0x395e1e,_0x185bbd,o(_0x395e1e,'ELEMENT_LIST_ITEM'))});}return _0x5b6f62;});}}function le(_0x58e867){let _0x9db741=_0x58e867['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x9db741;){const _0x21006a=_0x9db741['getAttribute']('listItemId');if(!_0x21006a)return!0x1;if(_0x21006a==_0x58e867['data']['newValue'])return'newValue';if(_0x21006a==_0x58e867['data']['oldValue'])return'oldValue';_0x9db741=_0x9db741['previousSibling'];}return!0x1;}class ue extends _0x427f36{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5b6ed8=this['editor']['config']['get']('list.properties'),_0x3c7c69=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b6ed8['styles']&&(_0x3c7c69['enableDefaultAttributesIntegration']('listStyle'),_0x3c7c69['registerBlockAttribute']('listStyle')),_0x5b6ed8['reversed']&&(_0x3c7c69['enableDefaultAttributesIntegration']('listReversed'),_0x3c7c69['registerBlockAttribute']('listReversed')),_0x5b6ed8['startIndex']&&(_0x3c7c69['enableDefaultAttributesIntegration']('listStart'),_0x3c7c69['registerBlockAttribute']('listStart'));const _0x14c87b={'type':'format','content':''};_0x3c7c69['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x446b81=this['editor']['locale'];_0x3c7c69['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x446b81,'FORMAT_LIST_REVERSED')),_0x3c7c69['descriptionFactory']['registerDescriptionCallback'](_0x4973d3=>{const {data:_0x23d965}=_0x4973d3;if(_0x23d965&&'listReversed'==_0x23d965['key'])return null==_0x23d965['newValue']||0x0==_0x23d965['newValue']&&null==_0x23d965['oldValue']?_0x14c87b:void 0x0;}),_0x3c7c69['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x446b81,'FORMAT_LIST_START')),_0x3c7c69['descriptionFactory']['registerDescriptionCallback'](_0x224e26=>{const {data:_0x36cf17}=_0x224e26;if(_0x36cf17&&'listStart'==_0x36cf17['key'])return null==_0x36cf17['newValue']||0x1==_0x36cf17['newValue']&&null==_0x36cf17['oldValue']?_0x14c87b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x401a0c=>{if(_0x401a0c['batch']['isUndo'])return!0x1;let _0x25a693=!0x1;const _0x426f33=_0x3c7c69['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ec38c=>{const _0xa499e3=_0x3c7c69['_getAttributeKey'](_0x3ec38c);return'listStart'==_0xa499e3||'listReversed'==_0xa499e3;});for(const _0x32f028 of _0x426f33){const _0x4923f5=_0x32f028['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4923f5||'customNumbered'==_0x4923f5)continue;_0x3c7c69['_findSuggestions'](_0x32f028['getFirstRange'](),'attribute')['find'](_0x1a5ba5=>'listType'==_0x3c7c69['_getAttributeKey'](_0x1a5ba5['suggestion']))||(_0x401a0c['removeMarker'](_0x32f028['getFirstMarker']()),_0x25a693=!0x0);}return _0x25a693;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x154942){const _0xe2d8ce=this['editor']['locale'],{data:_0x2b18da}=_0x154942,_0x22a4c8={'type':'format','content':''};if(!_0x2b18da||'listStyle'!=_0x2b18da['key'])return;if(!_0x2b18da['oldValue'])return'default'==_0x2b18da['newValue']?_0x22a4c8:{'type':'format','content':''+o(_0xe2d8ce,'*Set\x20format:*\x20%0',o(_0xe2d8ce,this['_getTranslationKeyForListStyle'](_0x2b18da['newValue'])))};if(!_0x2b18da['newValue']){if('default'==_0x2b18da['oldValue'])return _0x22a4c8;let _0x2a9217=_0x154942['head'];for(;_0x2a9217;){if(_0x2a9217['data']&&'listType'==_0x2a9217['data']['key']&&_0x2a9217['data']['newValue'])return _0x22a4c8;_0x2a9217=_0x2a9217['next'];}return{'type':'format','content':''+o(_0xe2d8ce,'*Remove\x20format:*\x20%0',o(_0xe2d8ce,this['_getTranslationKeyForListStyle'](_0x2b18da['oldValue'])))};}if('default'!=_0x2b18da['newValue'])return{'type':'format','content':''+o(_0xe2d8ce,'*Set\x20format:*\x20%0',o(_0xe2d8ce,this['_getTranslationKeyForListStyle'](_0x2b18da['newValue'])))};let _0x3e2cd8=_0x154942['head'];for(;_0x3e2cd8;){if(_0x3e2cd8['data']&&'listType'==_0x3e2cd8['data']['key']&&_0x3e2cd8['data']['newValue']&&_0x3e2cd8['data']['oldValue'])return _0x22a4c8;_0x3e2cd8=_0x3e2cd8['next'];}return{'type':'format','content':o(_0xe2d8ce,'*Set\x20format:*\x20%0',o(_0xe2d8ce,'ELEMENT_'+_0x154942['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x336006=this['editor'],_0x38fecf=_0x336006['locale'];_0x336006['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5693ec=>{if('formatBlock'!=_0x5693ec['type'])return;const {data:_0x410304}=_0x5693ec;if(!_0x410304)return;let _0x593d34,_0x3f744a;switch(_0x410304['commandName']){case'listStyle':_0x593d34='*Change\x20to:*\x20%0',_0x3f744a={'type':'format','content':o(_0x38fecf,_0x593d34,o(_0x38fecf,this['_getTranslationKeyForListStyle'](_0x410304['commandParams'][0x0]['type'])))};break;case'listReversed':_0x593d34=_0x410304['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f744a={'type':'format','content':o(_0x38fecf,_0x593d34)};break;case'listStart':_0x593d34='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f744a={'type':'format','content':o(_0x38fecf,_0x593d34,_0x410304['commandParams'][0x0]['startIndex'])};}return _0x3f744a;});}['_getTranslationKeyForListStyle'](_0x546645){return'ELEMENT_'+function(_0x3f1d5e){if(pe['includes'](_0x3f1d5e))return'bulleted';if(ye['includes'](_0x3f1d5e))return'numbered';return null;}(_0x546645)['toUpperCase']()+'_LIST_'+_0x546645['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x427f36{static get['requires'](){return[_0x3e46f3];}['init'](){const _0x38c5e8=this['editor'],_0x1883f7=_0x38c5e8['plugins']['get']('TrackChangesEditing'),_0x3e16bf=_0x38c5e8['commands']['get']('enter');_0x1883f7['enableCommand']('enter',()=>{_0x38c5e8['model']['change'](_0x23650d=>{const _0x542a7c=_0x38c5e8['model']['document']['selection'],_0x3f8ba1=_0x542a7c['getFirstPosition'](),_0x369795=_0x1dfa9b['fromRange'](_0x542a7c['getFirstRange']());if(_0x3e16bf['enterBlock'](_0x23650d)){const _0x3a6057=_0x38c5e8['model']['createPositionAt'](_0x3f8ba1['parent']['nextSibling'],0x0),_0x45d537=_0x23650d['createRange'](_0x3f8ba1,_0x3a6057);_0x1883f7['markInsertion'](_0x45d537);}else _0x23650d['setSelection'](_0x23650d['createRange'](_0x369795['end']));_0x369795['detach'](),_0x3e16bf['fire']('afterExecute',{'writer':_0x23650d});});}),_0x38c5e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x38c5e8,'split'),{'priority':'high'}),_0x38c5e8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3425f2,_0x1623f7,_0x4164c4)=>{const _0x3480cf=_0x4164c4['mapper']['markerNameToElements'](_0x1623f7['markerName']);if(_0x3480cf){for(const _0x3de0dc of _0x3480cf)_0x3de0dc['hasClass']('ck-suggestion-marker-split')&&(_0x4164c4['mapper']['unbindElementFromMarkerName'](_0x3de0dc,_0x1623f7['markerName']),_0x4164c4['writer']['remove'](_0x3de0dc));}},{'priority':'high'}),_0x38c5e8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x165836,_0x815bbf,_0xf62c34)=>{_0xf62c34['options']['showSuggestionHighlights']&&_e(_0x38c5e8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x165836,_0x815bbf,_0xf62c34);},{'priority':'high'});}}class J extends _0x427f36{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x53b918=this['editor']['plugins']['get']('TrackChangesEditing');_0x53b918['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x53b918['enableCommand']('findNext'),_0x53b918['enableCommand']('findPrevious'),_0x53b918['enableCommand']('replace'),_0x53b918['enableCommand']('replaceAll');}['handleFindCommand'](_0x5bde3b,_0x4a7c12,_0x2aa016={}){const _0xa256ab=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5bde3b(_0x53ac36=>('string'==typeof _0x4a7c12?_0xa256ab['findByTextCallback'](_0x4a7c12,_0x2aa016):_0x4a7c12)(_0x53ac36)['filter'](_0x41a5b6=>!0x1===this['_isInDeletionRange'](_0x41a5b6,_0x53ac36['item'])),_0x2aa016);}['_isInDeletionRange'](_0x491df1,_0x467416){const _0x2b9c13=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x467416,_0x491df1['start']),this['editor']['model']['createPositionAt'](_0x467416,_0x491df1['end']));for(const _0x321413 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2b9c13['getIntersection'](_0x321413['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x427f36{['afterInit'](){const _0x20e0d1=this['editor']['locale'],_0x9222b3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x238f60,commandName:_0x62b3ac}of ro)this['editor']['plugins']['has'](_0x238f60)&&(_0x9222b3['enableDefaultAttributesIntegration'](_0x62b3ac),_0x9222b3['registerInlineAttribute'](_0x62b3ac));_0x20e0d1['t'],_0x9222b3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x20e0d1,'FORMAT_FONT_SIZE')),_0x9222b3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x20e0d1,'FORMAT_FONT_FAMILY')),_0x9222b3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x20e0d1,'FORMAT_FONT_COLOR')),_0x9222b3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x20e0d1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38b3bb=this['editor'],_0x381e20=_0x38b3bb['locale'];_0x38b3bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26b4e4=>{const _0x28eff0=_0x381e20['t'];if('formatInline'!=_0x26b4e4['type'])return;const {data:_0x3364df}=_0x26b4e4;if(null!=_0x3364df){if('fontSize'==_0x3364df['commandName']){const _0x2e0668=_0x3364df['commandParams'][0x0]['value'];if(_0x2e0668){const _0x5032eb=_0x28eff0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x8a12e0=>_0x8a12e0['model']==_0x2e0668)['title'])['toLowerCase']();return{'type':'format','content':o(_0x381e20,'*Set\x20font\x20size:*\x20%0',_0x5032eb)};}return{'type':'format','content':o(_0x381e20,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3364df['commandName']){const _0x15c887=_0x3364df['commandParams'][0x0]['value'];return _0x15c887?{'type':'format','content':o(_0x381e20,'*Set\x20font\x20family:*\x20%0',_0x15c887)}:{'type':'format','content':o(_0x381e20,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3364df['commandName']){const _0x65af4c=_0x3364df['commandParams'][0x0]['value'];if(_0x65af4c){const _0x5e95af=_0xdb6041(this['editor']['config']['get']('fontColor.colors'))['find'](_0x122bfd=>_0x122bfd['model']==_0x65af4c);let _0x253b6d=_0x65af4c,_0x3a31fe='';return _0x5e95af&&(_0x253b6d=_0x5e95af['label'],_0x3a31fe=_0x28eff0(_0x253b6d)['toLowerCase']()),{'type':'format','content':o(_0x381e20,'*Set\x20font\x20color:*\x20%0',_0x3a31fe)['trim'](),'color':{'value':_0x65af4c,'title':_0x3a31fe||_0x253b6d}};}return{'type':'format','content':o(_0x381e20,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3364df['commandName']){const _0x694225=_0x3364df['commandParams'][0x0]['value'];if(_0x694225){const _0x2e0120=_0xdb6041(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x514d19=>_0x514d19['model']==_0x694225);let _0x332df0=_0x694225,_0x1486fe='';return _0x2e0120&&(_0x332df0=_0x2e0120['label'],_0x1486fe=_0x28eff0(_0x332df0)['toLowerCase']()),{'type':'format','content':o(_0x381e20,'*Set\x20font\x20background\x20color:*\x20%0',_0x1486fe)['trim'](),'color':{'value':_0x694225,'title':_0x1486fe||_0x332df0}};}return{'type':'format','content':o(_0x381e20,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x427f36{['afterInit'](){const _0x2849f4=this['editor'],_0x546959=_0x2849f4['plugins']['get']('TrackChangesEditing'),_0x4ab47c=_0x2849f4['commands']['get']('copyFormat'),_0x4ae524=_0x2849f4['commands']['get']('pasteFormat');_0x4ab47c&&_0x4ae524&&(_0x546959['enableDefaultAttributesIntegration']('pasteFormat'),_0x546959['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x945db0=this['editor'],_0x421259=_0x945db0['locale'];_0x945db0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x586bf3=>{if('formatBlock'!=_0x586bf3['type']&&'formatInline'!=_0x586bf3['type'])return;const {data:_0x3a2671}=_0x586bf3;if(_0x3a2671&&'pasteFormat'===_0x3a2671['commandName']){const _0x543084=[],_0x1e2a5b=_0x3a2671['commandParams'][0x0];for(const [_0x37a785,_0x3b8bd4]of Object['entries'](_0x1e2a5b))_0x543084['push'](so(_0x945db0,_0x37a785,_0x3b8bd4));return _0x543084['length']?{'type':'format','content':o(_0x421259,'*Set\x20format\x20to:*\x20%0',_0x543084['join'](',\x20'))}:{'type':'format','content':o(_0x421259,'*Remove\x20all\x20formatting*')};}});}}function so(_0x566ce1,_0x2cf8e3,_0x13939c){const _0x4d9d56=_0x566ce1['locale']['t'],_0x3f46c9=_0x2cf8e3['split'](/(?=[A-Z])/)['join']('\x20'),_0x238cc8=_0x4d9d56(_0x3f46c9['charAt'](0x0)['toUpperCase']()+_0x3f46c9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x13939c)return _0x238cc8;if('fontColor'===_0x2cf8e3||'fontBackgroundColor'===_0x2cf8e3){const _0x59fb58=_0xdb6041(_0x566ce1['config']['get']('fontColor.colors'))['find'](_0x3a52f7=>_0x3a52f7['model']==_0x13939c);return _0x238cc8+'\x20('+(_0x59fb58?_0x4d9d56(_0x59fb58['label'])['toLowerCase']():_0x13939c)+')';}if('fontSize'===_0x2cf8e3&&isNaN(parseFloat(_0x13939c))){const _0x3915d3=_0x566ce1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x566ce1['config']['get']('fontSize.options'))['find'](_0x547a0c=>_0x547a0c['model']==_0x13939c);return _0x238cc8+'\x20('+(_0x3915d3?_0x4d9d56(_0x3915d3['title'])['toLowerCase']():_0x13939c)+')';}return _0x238cc8+'\x20('+_0x13939c+')';}class Y extends _0x427f36{['_headingOptions'];['afterInit'](){const _0x1a9698=this['editor'];if(!_0x1a9698['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1a9698['config']['get']('heading.options');const _0x228ef2=_0x1a9698['locale'],_0x291e86=_0x1a9698['plugins']['get']('TrackChangesEditing');_0x291e86['enableDefaultAttributesIntegration']('heading');for(const _0x32942a of this['_headingOptions'])'paragraph'!=_0x32942a['model']&&_0x291e86['descriptionFactory']['registerElementLabel'](_0x32942a['model'],_0x59e673=>{const _0x2203d6=this['_getHeadingLevel'](_0x32942a['model']);return null!==_0x2203d6?_0x4f9482(_0x59e673,_0x2203d6):_0x2178a8(_0x59e673,_0x32942a['title']);});function _0x4f9482(_0x3739b0,_0x5ac757){return o(_0x228ef2,'ELEMENT_HEADING',[_0x3739b0,_0x5ac757]);}function _0x2178a8(_0x5349c4,_0x135285){return o(_0x228ef2,'ELEMENT_HEADING_CUSTOM',[_0x5349c4,_0x135285]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a437c=this['editor'],_0x593223=_0x1a437c['locale'];function _0x2101e8(_0x12c258,_0x3c0e30){return o(_0x593223,'ELEMENT_HEADING_CUSTOM',[_0x12c258,_0x3c0e30]);}_0x1a437c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46b9f1=>{if('formatBlock'!=_0x46b9f1['type'])return;const {data:_0x372702}=_0x46b9f1;if(_0x372702&&'heading'==_0x372702['commandName']){const _0x49979c=_0x372702['commandParams'][0x0]['value'],_0x4b4cb2=this['_getHeadingLevel'](_0x49979c);if(null!==_0x4b4cb2)return{'type':'format','content':o(_0x593223,'*Change\x20to:*\x20%0',(_0x9916c8=0x1,_0x2be711=_0x4b4cb2,o(_0x593223,'ELEMENT_HEADING',[_0x9916c8,_0x2be711])))};const _0x868b6c=this['_headingOptions']['find'](_0x404128=>_0x404128['model']===_0x49979c)['title'];return{'type':'format','content':o(_0x593223,'*Change\x20to:*\x20%0',_0x2101e8(0x1,_0x868b6c))};}var _0x9916c8,_0x2be711;});}['_getHeadingLevel'](_0x1fcb4d){const _0x16544f=_0x1fcb4d['match'](/^heading(\d+)/);if(_0x16544f)return _0x16544f[0x1];const _0x5cf5b8=this['_headingOptions']?.['find'](_0x1655dd=>_0x1655dd['model']==_0x1fcb4d);if(_0x5cf5b8&&_0x5cf5b8['view']){const _0x473657=_0x5cf5b8['view'],_0x8bcc08=(_0x473657['name']??_0x473657)['match'](/^h(\d+)/);if(_0x8bcc08)return _0x8bcc08[0x1];}return null;}}class Z extends _0x427f36{['afterInit'](){const _0xc8ef93=this['editor'];if(!_0xc8ef93['plugins']['has']('HighlightEditing'))return;const _0x27d8c4=_0xc8ef93['plugins']['get']('TrackChangesEditing'),_0x5dbd6b=_0xc8ef93['locale'];_0x27d8c4['enableDefaultAttributesIntegration']('highlight'),_0x27d8c4['registerInlineAttribute']('highlight'),_0x27d8c4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5dbd6b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14d1a3=this['editor'],_0x4c7b3a=_0x14d1a3['locale'];_0x14d1a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2abb9f=>{if('formatInline'!=_0x2abb9f['type'])return;const {data:_0x5b3f82}=_0x2abb9f;if(_0x5b3f82&&'highlight'==_0x5b3f82['commandName']){const _0x2701bb=_0x4c7b3a['t'],_0x118afe=_0x5b3f82['commandParams'][0x0]['value'];if(_0x118afe){const _0x48bfa8=_0x14d1a3['config']['get']('highlight.options')['find'](_0x270e76=>_0x270e76['model']==_0x118afe),_0x4f5021=_0x2701bb(_0x48bfa8['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c7b3a,'*Set\x20highlight:*\x20%0',_0x4f5021),'color':{'value':_0x48bfa8['color'],'title':_0x48bfa8['title']}};}return{'type':'format','content':o(_0x4c7b3a,'*Remove\x20highlight*',o(_0x4c7b3a,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x427f36{['afterInit'](){const _0x238d85=this['editor'];if(!_0x238d85['plugins']['has']('HorizontalLineEditing'))return;_0x238d85['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1bdef3=_0x238d85['plugins']['get']('TrackChangesEditing'),_0x4bfd46=_0x238d85['locale'];_0x1bdef3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5afb71=>o(_0x4bfd46,'ELEMENT_HORIZONTAL_LINE',_0x5afb71)),_0x238d85['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x573473,{writer:_0x20811b,options:_0x390e69})=>{if(!_0x390e69['showSuggestionHighlights'])return null;const _0x558719=_0x20811b['createContainerElement']('div'),_0x4e702e=_0x20811b['createEmptyElement']('hr');return _0x20811b['addClass']('ck-horizontal-line',_0x558719),_0x20811b['insert'](_0x20811b['createPositionAt'](_0x558719,0x0),_0x4e702e),_0x558719;},'converterPriority':'high'});}}class et extends _0x427f36{['afterInit'](){const _0x199895=this['editor'];if(!_0x199895['plugins']['has']('HtmlEmbed'))return;const _0x2fbc47=_0x199895['plugins']['get']('TrackChangesEditing'),_0x49ba5e=_0x199895['locale'];_0x2fbc47['descriptionFactory']['registerElementLabel']('rawHtml',_0x176795=>o(_0x49ba5e,'ELEMENT_HTML_EMBED',_0x176795)),_0x2fbc47['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2fbc47['registerBlockAttribute']('value'),_0x2fbc47['descriptionFactory']['registerDescriptionCallback'](_0x543169=>{if('attribute'!=_0x543169['type'])return;const {data:_0x6a6262}=_0x543169;if(_0x6a6262&&'value'==_0x6a6262['key']&&_0x543169['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4541b0=o(_0x49ba5e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x49ba5e,'*Change\x20%0\x20content*',_0x4541b0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45d457=this['editor'],_0x2cb3f3=_0x45d457['locale'];_0x45d457['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59548d=>{if('formatBlock'!=_0x59548d['type'])return;const {data:_0x442ac2}=_0x59548d;if(_0x442ac2&&'htmlEmbed'==_0x442ac2['commandName']){const _0x24c67a=o(_0x2cb3f3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2cb3f3,'*Change\x20%0\x20content*',_0x24c67a)};}});}}class it extends _0x427f36{['afterInit'](){const _0x136066=this['editor'];if(!_0x136066['plugins']['has']('ImageEditing'))return;const _0x4d55a7=_0x136066['plugins']['get']('TrackChangesEditing'),_0x580b60=_0x136066['plugins']['get']('ImageUtils'),_0x51e0fc=_0x136066['locale'];_0x4d55a7['enableCommand']('insertImage'),_0x4d55a7['descriptionFactory']['registerElementLabel']('imageBlock',_0x134b95=>o(_0x51e0fc,'ELEMENT_IMAGE',_0x134b95)),_0x4d55a7['descriptionFactory']['registerElementLabel']('imageInline',_0x2804d1=>o(_0x51e0fc,'ELEMENT_INLINE_IMAGE',_0x2804d1)),_0x4d55a7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x51e0fc,'ELEMENT_CAPTION')),_0x136066['plugins']['has']('ImageUploadEditing')&&_0x4d55a7['enableCommand']('uploadImage'),_0x136066['plugins']['has']('ImageBlockEditing')&&_0x136066['plugins']['has']('ImageInlineEditing')&&(_0x4d55a7['enableCommand']('imageTypeInline',(_0x47f10f,_0x36efb1)=>{const _0x26e905=_0x580b60['getClosestSelectedImageElement'](_0x136066['model']['document']['selection']);_0x136066['model']['change'](()=>{_0x4d55a7['markBlockFormat'](_0x26e905,{'commandName':'imageTypeInline','commandParams':[_0x36efb1]},[],'convertBlockImageToInline');});}),_0x4d55a7['enableCommand']('imageTypeBlock',(_0x1312ef,_0x2342e3)=>{_0x136066['model']['change'](_0x516d29=>{let _0x3a99d3=_0x580b60['getClosestSelectedImageElement'](_0x136066['model']['document']['selection']),_0x17648c=_0x516d29['createRangeOn'](_0x3a99d3);const _0x10e0e1=_0x71633c['fromPosition'](_0x17648c['start'],'toPrevious'),_0x5a1c4f=_0x71633c['fromPosition'](_0x17648c['end'],'toNext');_0x4d55a7['forceDefaultExecution'](()=>_0x1312ef(_0x2342e3)),_0x3a99d3=_0x580b60['getClosestSelectedImageElement'](_0x136066['model']['document']['selection']),_0x17648c=_0x516d29['createRangeOn'](_0x3a99d3);const _0x21ea55=_0x516d29['createRange'](_0x10e0e1,_0x5a1c4f);_0x10e0e1['detach'](),_0x5a1c4f['detach'](),_0x4d55a7['markBlockFormat'](_0x3a99d3,{'commandName':'imageTypeInline','commandParams':[_0x2342e3]},[],'convertInlineImageToBlock'),_0x21ea55['start']['isBefore'](_0x17648c['start'])&&_0x4d55a7['markInsertion'](_0x516d29['createRange'](_0x21ea55['start'],_0x17648c['start']),'convertInlineImageToBlock'),_0x17648c['end']['isBefore'](_0x21ea55['end'])&&_0x4d55a7['markInsertion'](_0x516d29['createRange'](_0x17648c['end'],_0x21ea55['end']),'convertInlineImageToBlock');});}),_0x4d55a7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d55a7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d55a7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d55a7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d55a7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d55a7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x59a49c])=>{const _0x593133=_0x4d55a7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x21470d=_0x59a49c['start'],_0x44990e=_0x59a49c['end'];const _0x958ca8=_0x136066['model']['schema']['getNearestSelectionRange'](_0x21470d,'backward'),_0x188a2e=_0x136066['model']['schema']['getNearestSelectionRange'](_0x44990e,'forward');_0x958ca8['isCollapsed']&&(_0x21470d=_0x958ca8['start']),_0x188a2e['isCollapsed']&&(_0x44990e=_0x188a2e['end']),_0x593133([_0x136066['model']['createRange'](_0x21470d,_0x44990e)]);}),_0x4d55a7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x24500d),_0x4d55a7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x24500d)),_0x136066['plugins']['has']('ImageCaptionEditing')&&(_0x4d55a7['enableCommand']('toggleImageCaption',(_0xca7d21,_0x514097)=>{const _0x177446=_0x136066['plugins']['get']('ImageCaptionUtils');let _0x1f2619=_0x580b60['getClosestSelectedImageElement'](_0x136066['model']['document']['selection']),_0x3f7f5d=_0x177446['getCaptionFromImageModelElement'](_0x1f2619);_0x136066['model']['change'](()=>{if(_0x3f7f5d)return void _0x4d55a7['markDeletion'](_0x136066['model']['createRangeOn'](_0x3f7f5d));const _0x1fe5f1=_0x580b60['isBlockImage'](_0x1f2619);_0xca7d21(_0x514097),_0x1f2619=_0x580b60['getClosestSelectedImageElement'](_0x136066['model']['document']['selection']),_0x3f7f5d=_0x177446['getCaptionFromImageModelElement'](_0x1f2619),_0x4d55a7['markInsertion'](_0x136066['model']['createRangeOn'](_0x3f7f5d),_0x1fe5f1?null:'imageCaption');});}),_0x4d55a7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x24500d));const _0x5f4397=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f31fe(_0x42ab4a,_0x3d0095){const _0x364855=_0x5f4397['findIndex'](({type:_0x5e566d,subType:_0x342947})=>_0x42ab4a['type']==_0x5e566d&&_0x42ab4a['subType']==_0x342947),_0x5498b7=_0x5f4397['findIndex'](({type:_0x4577cd,subType:_0x56ef68})=>_0x3d0095['type']==_0x4577cd&&_0x3d0095['subType']==_0x56ef68);if(_0x364855<0x0||_0x5498b7<0x0)return!0x1;const _0x4ce734=_0x42ab4a['getFirstRange'](),_0x1e558e=_0x3d0095['getFirstRange']();if((0x0==_0x364855||0x1==_0x364855)&&0x2==_0x5498b7&&_0x4ce734['isIntersecting'](_0x1e558e))return!0x0;if(0x2==_0x364855&&0x3==_0x5498b7){const _0x4fdab2=_0x4d55a7['_findSuggestions'](_0x4ce734,'insertion')['filter'](({suggestion:_0x49b049,meta:_0x29be36})=>_0x29be36['isOwn']&&'convertInlineImageToBlock'==_0x49b049['subType']);if(_0x4fdab2['length']>0x1&&_0x1e558e['end']['isEqual'](_0x4ce734['start']))return!0x0;if(0x1==_0x4fdab2['length']&&(_0x4ce734['start']['isEqual'](_0x1e558e['end'])||_0x4ce734['end']['isEqual'](_0x1e558e['start'])))return!0x0;}if(0x3==_0x364855&&0x3==_0x5498b7&&_0x4ce734['start']['isBefore'](_0x1e558e['start'])){const _0x449e43=_0x4ce734['end']['nodeAfter'],_0x434938=_0x1e558e['start']['nodeBefore'];return _0x580b60['isBlockImage'](_0x449e43)&&_0x449e43===_0x434938;}return!0x1;}function _0x24500d(_0x10c225,_0x3729a7){return _0x4f31fe(_0x10c225,_0x3729a7)?[_0x10c225,_0x3729a7]:_0x4f31fe(_0x3729a7,_0x10c225)?[_0x3729a7,_0x10c225]:null;}_0x136066['plugins']['has']('ImageResize')&&(_0x4d55a7['enableDefaultAttributesIntegration']('resizeImage'),_0x4d55a7['registerBlockAttribute']('resizedWidth'),_0x4d55a7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x51e0fc,'FORMAT_IMAGE_SIZE'))),_0x136066['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4d55a7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4d55a7['registerBlockAttribute']('alt')),_0x4d55a7['descriptionFactory']['registerDescriptionCallback'](_0x3c6aaf=>{if(!!_0x5f4397['find'](({type:_0x2f0cba,subType:_0x3a4fdf})=>_0x3c6aaf['type']==_0x2f0cba&&_0x3c6aaf['subType']==_0x3a4fdf))return _0x3c6aaf['previous']?{}:void 0x0;}),_0x4d55a7['descriptionFactory']['registerDescriptionCallback'](_0x45c51d=>{if('insertion'==_0x45c51d['type']||'deletion'==_0x45c51d['type']){const _0x20f195=_0x45c51d['getContainedElement']();if(_0x20f195&&_0x20f195['is']('element','caption'))return{'type':'insertion'==_0x45c51d['type']?'addObject':'removeObject','element':_0x20f195,'quantity':0x1};}}),_0x4d55a7['descriptionFactory']['registerDescriptionCallback'](_0x3dd285=>'formatBlock'==_0x3dd285['type']&&'convertInlineImageToBlock'==_0x3dd285['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3dd285['type']&&'convertBlockImageToInline'==_0x3dd285['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d55a7['descriptionFactory']['registerDescriptionCallback'](_0x24cd54=>{if('attribute'!=_0x24cd54['type'])return;const {data:_0x4bdda9}=_0x24cd54;if(!_0x4bdda9||'alt'!=_0x4bdda9['key'])return;const _0x1bb160=_0x4bdda9['newValue'];return _0x1bb160?{'type':'format','content':o(_0x51e0fc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1bb160+'\x22')}:{'type':'format','content':o(_0x51e0fc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d5d2a=this['editor'],_0x5e8d9b=_0x5d5d2a['locale'];_0x5d5d2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16b174=>{if('formatBlock'!=_0x16b174['type']&&'formatInline'!=_0x16b174['type'])return;const {data:_0x216633}=_0x16b174;if(_0x216633){if('imageTextAlternative'==_0x216633['commandName']){const _0x4e058f=_0x216633['commandParams'][0x0]['newValue'];return _0x4e058f?{'type':'format','content':o(_0x5e8d9b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e058f+'\x22')}:{'type':'format','content':o(_0x5e8d9b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x216633['commandName']){const _0x2194b3=_0x216633['commandParams'][0x0]['width'];return _0x2194b3?{'type':'format','content':o(_0x5e8d9b,'*Set\x20image\x20width:*\x20%0',_0x2194b3)}:{'type':'format','content':o(_0x5e8d9b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x427f36{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1ee9ac=this['editor']['locale'],_0x53d797=this['editor']['plugins']['get']('TrackChangesEditing');_0x53d797['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53d797['registerBlockAttribute']('src'),_0x53d797['descriptionFactory']['registerDescriptionCallback'](_0xf0abd=>{if('attribute'!=_0xf0abd['type'])return;const {data:_0x56001d}=_0xf0abd;return _0x56001d&&'src'==_0x56001d['key']?_0x56001d['newValue']&&_0x56001d['oldValue']?{'type':'format','content':o(_0x1ee9ac,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e6e88=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e6e88['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4e6e88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e6e88['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4e6e88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a4321=this['editor'],_0xa6893=_0x2a4321['locale'];_0x2a4321['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58e196=>{if('formatBlock'!=_0x58e196['type']&&'formatInline'!=_0x58e196['type'])return;const {data:_0x27a3b8}=_0x58e196;if(!_0x27a3b8||'replaceImageSource'!=_0x27a3b8['commandName'])return;return{'type':'format','content':o(_0xa6893,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x427f36{['afterInit'](){const _0x45735a=this['editor'];if(!_0x45735a['plugins']['has']('ImageStyleEditing'))return;const _0x749fc7=_0x45735a['plugins']['get']('TrackChangesEditing'),_0x19eeda=_0x45735a['plugins']['get']('ImageUtils'),_0x3abcaa={};_0x749fc7['enableCommand']('imageStyle',(_0x1bd1ec,_0x59ce91)=>{const _0x4dcb28=_0x45735a['plugins']['get']('Users')['me'],_0x5df104=_0x45735a['commands']['get']('imageStyle');let _0x1a8a4f=_0x19eeda['getClosestSelectedImageElement'](_0x45735a['model']['document']['selection']),_0x59902f=_0x45735a['model']['createRangeOn'](_0x1a8a4f),_0x23ac03=_0x5df104['value'];if(_0x23ac03==_0x59ce91['value'])return;const _0x1ab55b={'commandName':'imageStyle','commandParams':[_0x59ce91],'formatGroupId':_0x15f178()};_0x45735a['model']['change'](()=>{if(_0x749fc7['getSuggestions']()['filter'](_0x2c124c=>_0x2c124c['isInContent']&&_0x4dcb28==_0x2c124c['author']&&('formatBlock'==_0x2c124c['type']||'formatInline'==_0x2c124c['type'])&&('imageStylePreApply'==_0x2c124c['subType']||'imageStylePostApply'==_0x2c124c['subType'])&&_0x2c124c['getFirstRange']()['isEqual'](_0x59902f))['forEach'](_0x390194=>_0x749fc7['discardSuggestion'](_0x390194['head'])),_0x1a8a4f=_0x19eeda['getClosestSelectedImageElement'](_0x45735a['model']['document']['selection']),_0x59902f=_0x45735a['model']['createRangeOn'](_0x1a8a4f),_0x5df104['refresh'](),_0x45735a['commands']['get']('imageTypeInline')['refresh'](),_0x45735a['commands']['get']('imageTypeBlock')['refresh'](),_0x23ac03=_0x5df104['value'],_0x23ac03!=_0x59ce91['value'])return _0x19eeda['isInlineImage'](_0x1a8a4f)&&_0x5df104['shouldConvertImageType'](_0x59ce91['value'],_0x1a8a4f)?(_0x1bd1ec({..._0x59ce91,'setImageSizes':!0x1}),_0x1a8a4f=_0x19eeda['getClosestSelectedImageElement'](_0x45735a['model']['document']['selection']),void _0x749fc7['markBlockFormat'](_0x1a8a4f,{..._0x1ab55b,'commandReversedParams':[{'value':_0x23ac03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x19eeda['isBlockImage'](_0x1a8a4f)?_0x749fc7['markBlockFormat'](_0x1a8a4f,_0x1ab55b,[],'imageStylePostApply'):_0x749fc7['markInlineFormat'](_0x59902f,_0x1ab55b,'imageStylePostApply'));});});for(const _0x8f2c65 of _0x45735a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3abcaa[_0x8f2c65['name']]=_0x8f2c65['title']['toLowerCase']();_0x749fc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x749fc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x749fc7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x749fc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3c31a6])=>{_0x19eeda['setImageNaturalSizeAttributes'](_0x3c31a6['getContainedElement']());}),_0x749fc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5a4e6e,_0x4f34a4)=>{_0x749fc7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5a4e6e,{'commandName':_0x4f34a4['commandName'],'commandParams':_0x4f34a4['commandReversedParams']});}),_0x749fc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x418230,_0x483544){if(_0x1bba92(_0x418230,_0x483544))return[_0x418230,_0x483544];if(_0x1bba92(_0x483544,_0x418230))return[_0x483544,_0x418230];return null;});const _0x3ccdb9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1bba92(_0x23eccc,_0x542478){const _0x142ec1=_0x3ccdb9['findIndex'](({type:_0x5068ea,subType:_0x47172f})=>_0x23eccc['type']==_0x5068ea&&_0x23eccc['subType']==_0x47172f),_0x1091b3=_0x3ccdb9['findIndex'](({type:_0x32c1a0,subType:_0x80c696})=>_0x542478['type']==_0x32c1a0&&_0x542478['subType']==_0x80c696);if(_0x142ec1<0x0||_0x1091b3<0x0)return!0x1;const _0x5c3738=_0x23eccc['getFirstRange'](),_0x12bbca=_0x542478['getFirstRange']();if((0x0==_0x142ec1||0x1==_0x142ec1)&&0x2==_0x1091b3&&_0x5c3738['isIntersecting'](_0x12bbca))return!0x0;if(0x2==_0x142ec1&&0x3==_0x1091b3){const _0x2c6049=_0x749fc7['_findSuggestions'](_0x5c3738,'insertion')['filter'](({suggestion:_0x220427,meta:_0xff8169})=>_0xff8169['isOwn']&&'convertInlineImageToBlock'==_0x220427['subType']);if(_0x2c6049['length']>0x1&&_0x12bbca['end']['isEqual'](_0x5c3738['start']))return!0x0;if(0x1==_0x2c6049['length']&&(_0x5c3738['start']['isEqual'](_0x12bbca['end'])||_0x5c3738['end']['isEqual'](_0x12bbca['start'])))return!0x0;}if(0x3==_0x142ec1&&0x3==_0x1091b3&&_0x5c3738['start']['isBefore'](_0x12bbca['start'])){const _0x569987=_0x5c3738['end']['nodeAfter'],_0x545b1f=_0x12bbca['start']['nodeBefore'];return _0x19eeda['isBlockImage'](_0x569987)&&_0x569987===_0x545b1f;}return!0x1;}_0x45735a['model']['document']['registerPostFixer'](()=>{let _0x10d9c4=!0x1;const _0x2cdcc5=Array['from'](_0x45735a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd7f5c1,data:_0x579115}of _0x2cdcc5){const {group:_0xc4b189,type:_0x47e5c9,subType:_0x3dac71,id:_0x1bdfc4}=_0x749fc7['_splitMarkerName'](_0xd7f5c1);if('suggestion'==_0xc4b189&&_0x749fc7['hasSuggestion'](_0x1bdfc4)){if('formatBlock'==_0x47e5c9&&('imageStylePreApply'==_0x3dac71||'imageStylePostApply'==_0x3dac71)){const _0x586639=_0x749fc7['getSuggestion'](_0x1bdfc4);if(_0x579115['newRange']){const _0x35c928=_0x586639['getFirstRange']()['getContainedElement']();if(_0x19eeda['isBlockImage'](_0x35c928))continue;_0x749fc7['discardSuggestion'](_0x586639),_0x10d9c4=!0x0;}}if('insertion'==_0x47e5c9&&'imageCaption'==_0x3dac71&&!_0x579115['newRange']){const _0x3566a6=_0x749fc7['getSuggestion'](_0x1bdfc4);_0x3566a6['next']&&_0x3566a6['next']['isInContent']&&(_0x749fc7['discardSuggestion'](_0x3566a6['next']),_0x10d9c4=!0x0);}}}return _0x10d9c4;}),this['_registerLegacyDescription'](_0x3abcaa);}['_registerLegacyDescription'](_0x2617d8){const _0x1ae6a2=this['editor'],_0x2976c7=_0x1ae6a2['locale'];_0x1ae6a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15656a=>{if('formatBlock'!=_0x15656a['type']&&'formatInline'!=_0x15656a['type'])return;const {data:_0x26bcdc}=_0x15656a;if(!_0x26bcdc||'imageStyle'!=_0x26bcdc['commandName'])return;const _0xa1fffe=_0x26bcdc['commandParams'][0x0]['value'];return _0xb58eab('side'===_0xa1fffe?o(_0x2976c7,'FORMAT_SIDE_IMAGE'):_0x2617d8[_0xa1fffe]||_0xa1fffe);function _0xb58eab(_0x3d379a){return{'type':'format','content':o(_0x2976c7,'*Format:*\x20%0',_0x3d379a)};}});}}class ot extends _0x427f36{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x306147){super(_0x306147),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x8fdc64=this['editor'],_0x407774=_0x8fdc64['commands']['get']('importWord'),_0x5eb746=_0x8fdc64['commands']['get']('trackChanges');_0x407774&&(_0x407774['on']('execute',(_0x2e76ef,[,_0x303c95])=>{this['_trackChangesValueDuringImport']=_0x5eb746['value'],_0x303c95['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x407774,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x407774,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5eb746['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x8fdc64['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x36728d,_0x1a34b5){const {suggestions:_0x232716}=_0x1a34b5,_0x5b0b59=this['editor']['commands']['get']('trackChanges'),_0x1fcd85=_0x5b0b59['value'];this['_trackChangesValueDuringImport']!==_0x1fcd85&&(_0x5b0b59['execute'](),this['_trackChangesExecuted']=!0x0),_0x232716&&_0x232716['forEach'](({id:_0x28c2a0,type:_0x5addda,author:_0x493f42,created_at:_0x3b1640})=>{const _0x593904={'id':_0x28c2a0,'type':_0x5addda,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x493f42,'createdAt':_0x3b1640?new Date(_0x3b1640):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x593904);});}}class rt extends _0x427f36{['afterInit'](){const _0x2a2cc9=this['editor'],_0x434280=_0x2a2cc9['plugins']['get']('TrackChangesEditing');if(_0x2a2cc9['plugins']['has']('IndentEditing')&&(_0x434280['enableCommand']('indent'),_0x434280['enableCommand']('outdent')),_0x2a2cc9['plugins']['has']('IndentBlock')){for(const _0x3ffaba of['indentBlock','outdentBlock'])_0x434280['enableDefaultAttributesIntegration'](_0x3ffaba);}const _0x30f258=_0x2a2cc9['locale'];_0x434280['registerBlockAttribute']('blockIndent'),_0x434280['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x30f258,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b7e5c=this['editor'],_0x58c15d=_0x3b7e5c['locale'],_0x15b264=_0x3b7e5c['plugins']['get']('TrackChangesEditing');_0x15b264['descriptionFactory']['registerDescriptionCallback'](_0x428ffb=>{if('formatBlock'!=_0x428ffb['type'])return;const {data:_0x46d3af}=_0x428ffb;if(!_0x46d3af)return;if('indentBlock'!=_0x46d3af['commandName']&&'outdentBlock'!=_0x46d3af['commandName'])return;const _0x88720d=_0x428ffb['getItems']()[0x0],_0x3d91a1=_0x15b264['descriptionFactory']['getItemLabel'](_0x88720d);return'indentBlock'==_0x46d3af['commandName']?{'type':'format','content':o(_0x58c15d,'*Indent:*\x20%0',_0x3d91a1)}:'outdentBlock'==_0x46d3af['commandName']?{'type':'format','content':o(_0x58c15d,'*Outdent:*\x20%0',_0x3d91a1)}:void 0x0;});}}class at extends _0x427f36{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x427f36{['afterInit'](){const _0x181d22=this['editor'];if(!_0x181d22['plugins']['has']('LinkEditing'))return;const _0x3adf61=_0x181d22['plugins']['get']('TrackChangesEditing'),_0x465c91=_0x181d22['commands']['get']('link');_0x3adf61['enableDefaultAttributesIntegration']('link'),_0x3adf61['enableDefaultAttributesIntegration']('unlink'),_0x3adf61['registerInlineAttribute']('linkHref');for(const _0x4c56fc of _0x465c91['manualDecorators'])_0x3adf61['registerInlineAttribute'](_0x4c56fc['id']),_0x3adf61['descriptionFactory']['registerAttributeLabel'](_0x4c56fc['id'],'link\x20('+_0x4c56fc['label']['toLowerCase']()+')');_0x3adf61['descriptionFactory']['registerDescriptionCallback'](_0x54e5ee=>{if('attribute'!=_0x54e5ee['type'])return;const {data:_0x9bd384}=_0x54e5ee;if(!_0x9bd384||'linkHref'!=_0x9bd384['key'])return;const _0x298f8a=_0x9bd384['newValue'],_0xdf171a=_0x181d22['locale'];return{'type':'format','content':null==_0x298f8a?o(_0xdf171a,'*Remove\x20link*'):o(_0xdf171a,'*Set\x20link:*\x20%0','\x22'+_0x298f8a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c09c0=this['editor'],_0x32a8b5=_0x4c09c0['locale'];_0x4c09c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d0c87=>{if('formatInline'!=_0x2d0c87['type'])return;const {data:_0x4e974d}=_0x2d0c87;if(_0x4e974d){if('link'==_0x4e974d['commandName']){const _0x2af428=_0x4e974d['commandParams'][0x0];return{'type':'format','content':o(_0x32a8b5,'*Set\x20link:*\x20%0','\x22'+_0x2af428+'\x22')};}return'unlink'==_0x4e974d['commandName']?{'type':'format','content':o(_0x32a8b5,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x427f36{['afterInit'](){const _0x434015=this['editor'],_0x1f58b0=_0x434015['locale'];if(!_0x434015['plugins']['has']('LegacyListEditing'))return;const _0xa33b25=_0x434015['plugins']['get']('TrackChangesEditing'),_0x250ead=_0x434015['plugins']['has']('LegacyTodoListEditing');function _0x47d380(_0x3effb8){return()=>{const _0x25fbc0=_0x434015['model']['document']['selection'],_0x2736a6=_0x434015['commands']['get'](_0x3effb8);if(_0x2736a6['value'])return void _0x434015['execute']('paragraph',{});const _0x39b6d0=_0x3effb8['slice'](0x0,-0x4),_0x41f2b1=function(_0x451b5e,_0x962d96,_0xb8f542){let _0x30732b=Array['from'](_0x451b5e)['filter'](_0x5bf576=>function(_0x940b30,_0x47a02f){return _0x47a02f['checkChild'](_0x940b30['parent'],'listItem')&&!_0x47a02f['isObject'](_0x940b30);}(_0x5bf576,_0xb8f542));_0x30732b=_0x30732b['filter'](_0x142e99=>!_0x142e99['is']('element','listItem')||_0x142e99['getAttribute']('listType')!=_0x962d96);const _0x3bb1f9=new Set();for(const _0x3c45a4 of _0x30732b)_0x3c45a4['is']('element','listItem')?_0x3bb1f9['add'](me(_0x3c45a4)):_0x3bb1f9['add'](_0x3c45a4);return Array['from'](_0x3bb1f9);}(_0x25fbc0['getSelectedBlocks'](),_0x39b6d0,_0x434015['model']['schema']);_0x434015['model']['change'](()=>{for(const _0xd04c6a of _0x41f2b1)_0xa33b25['markBlockFormat'](_0xd04c6a,{'commandName':_0x3effb8,'commandParams':[{'forceValue':!_0x2736a6['value']}],'formatGroupId':'blockName'},fe(_0xd04c6a));});};}function _0x54798a(_0x21ae9d){return()=>{const _0x26f2b6=function(_0x5f047a){let _0x530361=Array['from'](_0x5f047a);const _0xa892e7=_0x530361['findIndex'](_0x5a9091=>'listItem'!=_0x5a9091['name']);return _0xa892e7>-0x1&&(_0x530361=_0x530361['slice'](0x0,_0xa892e7)),_0x530361;}(_0x434015['model']['document']['selection']['getSelectedBlocks']()),_0x487066=_0x434015['model']['createRange'](_0x434015['model']['createPositionAt'](_0x26f2b6[0x0],'before'),_0x434015['model']['createPositionAt'](_0x26f2b6[_0x26f2b6['length']-0x1],'end'));_0x434015['model']['change'](()=>{_0xa33b25['markBlockFormat'](_0x487066,{'commandName':_0x21ae9d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x7007db){const _0x56f865=new Set();for(const _0x15e69e of _0x7007db){let _0x148045=_0x15e69e['nextSibling'];for(;_0x148045&&_0x148045['getAttribute']('listIndent')>_0x15e69e['getAttribute']('listIndent');)_0x56f865['add'](_0x148045),_0x148045=_0x148045['nextSibling'];}return Array['from'](_0x56f865);}(_0x26f2b6));});};}_0xa33b25['enableCommand']('numberedList',_0x47d380('numberedList')),_0xa33b25['enableCommand']('bulletedList',_0x47d380('bulletedList')),_0x250ead&&_0xa33b25['enableCommand']('todoList',_0x47d380('todoList')),_0xa33b25['enableCommand']('indentList',_0x54798a('indentList')),_0xa33b25['enableCommand']('outdentList',_0x54798a('outdentList')),_0x250ead&&_0xa33b25['enableCommand']('checkTodoList',()=>{const _0x1eb958=_0x434015['commands']['get']('checkTodoList'),_0x40eb28=Array['from'](_0x1eb958['_selectedElements']);_0x40eb28['filter'](_0x691bac=>_0x691bac['getAttribute']('todoListChecked')!=_0x1eb958['value']),_0x434015['model']['change'](()=>{for(const _0x319186 of _0x40eb28)_0xa33b25['markBlockFormat'](_0x319186,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1eb958['value']}]});});}),_0xa33b25['descriptionFactory']['registerElementLabel']('listItem',_0x5ef233=>o(_0x1f58b0,'ELEMENT_LIST_ITEM',_0x5ef233)),_0xa33b25['descriptionFactory']['registerDescriptionCallback'](_0x299d55=>{if('formatBlock'!=_0x299d55['type']&&'formatInline'!=_0x299d55['type'])return;const {data:_0x5376e5}=_0x299d55;if(_0x5376e5){if('numberedList'==_0x5376e5['commandName']||'bulletedList'==_0x5376e5['commandName']||'todoList'==_0x5376e5['commandName'])switch(_0x5376e5['commandName']['replace']('List','')){case'bulleted':return _0x26a8b1(o(_0x1f58b0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x26a8b1(o(_0x1f58b0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x26a8b1(o(_0x1f58b0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5376e5['commandName'])return{'type':'format','content':o(_0x1f58b0,'*Indent:*\x20%0',o(_0x1f58b0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5376e5['commandName'])return{'type':'format','content':o(_0x1f58b0,'*Outdent:*\x20%0',o(_0x1f58b0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5376e5['commandName'])return _0x5376e5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f58b0,'*Check\x20item*')}:{'type':'format','content':o(_0x1f58b0,'*Uncheck\x20item*')};}function _0x26a8b1(_0x457269){return{'type':'format','content':o(_0x1f58b0,'*Change\x20to:*\x20%0',_0x457269)};}});}}function me(_0x1cfbb4){const _0x4413eb=_0x1cfbb4['getAttribute']('listIndent');if(0x0==_0x4413eb)return _0x1cfbb4;let _0x39f05f=_0x1cfbb4;for(;_0x1cfbb4['previousSibling']&&_0x1cfbb4['previousSibling']['is']('element','listItem');){const _0x4a3ead=_0x1cfbb4['previousSibling']['getAttribute']('listIndent');if(_0x4a3ead==_0x4413eb)_0x39f05f=_0x1cfbb4['previousSibling'];else{if(_0x4a3ead<_0x4413eb)break;}_0x1cfbb4=_0x1cfbb4['previousSibling'];}return _0x39f05f;}function fe(_0x436bb4){const _0x8484ec=[];if(_0x436bb4['is']('element','listItem')&&_0x436bb4['getAttribute']('listIndent')>0x0){let _0xf3825c=_0x436bb4['nextSibling'];for(;_0xf3825c&&'listItem'==_0xf3825c['name']&&_0xf3825c['getAttribute']('listIndent')==_0x436bb4['getAttribute']('listIndent');)_0x8484ec['push'](_0xf3825c),_0xf3825c=_0xf3825c['nextSibling'];}return _0x8484ec;}class K extends _0x427f36{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f1963=this['editor']['config']['get']('list.properties'),_0x48fd7f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f1963['styles']&&_0x48fd7f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f1963['reversed']&&_0x48fd7f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f1963['startIndex']&&_0x48fd7f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48fd7f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2b28ce,_0x5a08eb={}){const _0xc1f7b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36cc51=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xc1f7b5['markMultiRangeBlockFormat'](_0x36cc51,{'commandName':'listStyle','commandParams':[{'type':_0x5a08eb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2329a4,_0x3292fe={}){const _0x2231f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cdcbd=this['_getSuggestionBlocks'](_0x496292=>_0x496292['is']('element','listItem')&&'numbered'===_0x496292['getAttribute']('listType'));if(_0x5cdcbd['length']<0x1)return;const _0x313e64=_0x5cdcbd['map'](_0x4fddba=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fddba,'before'),this['editor']['model']['createPositionAt'](_0x4fddba,0x0)));this['editor']['model']['change'](()=>{_0x2231f8['markMultiRangeBlockFormat'](_0x313e64,{'commandName':'listReversed','commandParams':[{'reversed':_0x3292fe['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xf37632,_0x2cd969={}){const _0x1ba855=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2dd26a=this['_getSuggestionBlocks'](_0xffd7c1=>_0xffd7c1['is']('element','listItem')&&'numbered'===_0xffd7c1['getAttribute']('listType'));if(_0x2dd26a['length']<0x1)return;const _0x39a2b0=_0x2dd26a['map'](_0x50f022=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50f022,'before'),this['editor']['model']['createPositionAt'](_0x50f022,0x0)));this['editor']['model']['change'](()=>{_0x1ba855['markMultiRangeBlockFormat'](_0x39a2b0,{'commandName':'listStart','commandParams':[{'startIndex':_0x2cd969['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5292fb){if('formatBlock'!=_0x5292fb['type']&&'formatInline'!=_0x5292fb['type'])return;const _0x3483bf=this['editor']['locale'],{data:_0x5c8f0e}=_0x5292fb;if(!_0x5c8f0e)return;let _0x3b0844,_0x3decc8;switch(_0x5c8f0e['commandName']){case'listStyle':_0x3b0844='*Change\x20to:*\x20%0',_0x3decc8={'type':'format','content':o(_0x3483bf,_0x3b0844,o(_0x3483bf,this['_getTranslationKeyForListStyle'](_0x5c8f0e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b0844=_0x5c8f0e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3decc8={'type':'format','content':o(_0x3483bf,_0x3b0844)};break;case'listStart':_0x3b0844='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3decc8={'type':'format','content':o(_0x3483bf,_0x3b0844,_0x5c8f0e['commandParams'][0x0]['startIndex'])};}return _0x3decc8;}['_getSuggestionBlocksForListStyle'](){const _0x504220=this['editor']['plugins']['get']('LegacyListUtils');let _0x16227f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x16227f[0x0]?.['is']('element','listItem')&&_0x16227f['unshift'](..._0x504220['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x16227f[_0x16227f['length']-0x1]?.['is']('element','listItem')&&_0x16227f['push'](..._0x504220['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x16227f=[...new Set(_0x16227f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x16227f=_0x16227f['filter'](_0x2c1b32=>_0x2c1b32['is']('element','listItem'))),_0x16227f;}['_getSuggestionBlocks'](_0x2a9339){const _0x1c0097=this['editor']['plugins']['get']('LegacyListUtils');let _0x48d7d6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2a9339)['map'](_0x4ffc0e=>{const _0x330403=this['editor']['model']['createPositionAt'](_0x4ffc0e,0x0);return[..._0x1c0097['getSiblingNodes'](_0x330403,'backward'),..._0x1c0097['getSiblingNodes'](_0x330403,'forward')];})['flat']();return _0x48d7d6=[...new Set(_0x48d7d6)],_0x48d7d6;}['_getTranslationKeyForListStyle'](_0x567cc9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x567cc9)||'default')['toUpperCase']()+'_LIST_'+_0x567cc9['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x427f36{['afterInit'](){const _0x40fb01=this['editor'];if(!_0x40fb01['plugins']['has']('MediaEmbedEditing'))return;const _0x3b4bb7=_0x40fb01['plugins']['get']('TrackChangesEditing'),_0x4058d8=_0x40fb01['locale'];_0x3b4bb7['enableCommand']('mediaEmbed'),_0x3b4bb7['descriptionFactory']['registerElementLabel']('media',_0x12560a=>o(_0x4058d8,'ELEMENT_MEDIA',_0x12560a)),_0x40fb01['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x201e42,{writer:_0x4ad10f,options:_0xebcba1})=>{if(_0xebcba1['showSuggestionHighlights'])return _0x4ad10f['createEmptyElement']('div');},'converterPriority':'high'}),_0x40fb01['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3e3afc,_0x5167e3,_0x4d13ab)=>{_0x4d13ab['options']['showSuggestionHighlights']&&_0x3e3afc['stop']();},{'priority':'high'});}}class gt extends _0x427f36{['afterInit'](){const _0x366d25=this['editor'];_0x366d25['plugins']['has']('MentionEditing')&&_0x366d25['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x427f36{['afterInit'](){const _0x1a1c9d=this['editor'],_0x389459=_0x1a1c9d['plugins']['get']('TrackChangesEditing');_0x1a1c9d['plugins']['has']('MultiLevelList')&&(_0x389459['enableDefaultAttributesIntegration']('multiLevelList'),_0x389459['registerBlockAttribute']('listMarkerStyle'),_0x389459['descriptionFactory']['registerDescriptionCallback'](_0x4901da=>this['handleDescriptions'](_0x4901da)));}['handleDescriptions'](_0x317e23){const _0x4727e9=this['editor']['locale'],{data:_0xb3de57}=_0x317e23,_0x592195={'type':'format','content':''};if(_0xb3de57&&'listMarkerStyle'==_0xb3de57['key']){if(!_0xb3de57['oldValue'])return{'type':'format','content':o(_0x4727e9,'*Set\x20format:*\x20%0',o(_0x4727e9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb3de57['newValue']+')'};if(!_0xb3de57['newValue']){let _0x4e7360=_0x317e23['head'];for(;_0x4e7360;){if(_0x4e7360['data']&&'listType'==_0x4e7360['data']['key']&&_0x4e7360['data']['newValue'])return _0x592195;_0x4e7360=_0x4e7360['next'];}return{'type':'format','content':o(_0x4727e9,'*Remove\x20format:*\x20%0',o(_0x4727e9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb3de57['oldValue']+')'};}}}}class mt extends _0x427f36{['afterInit'](){const _0x327c90=this['editor'];if(!_0x327c90['plugins']['has']('PageBreakEditing'))return;_0x327c90['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x9ae3a0=_0x327c90['plugins']['get']('TrackChangesEditing'),_0x1c12a4=_0x327c90['locale'];_0x9ae3a0['descriptionFactory']['registerElementLabel']('pageBreak',_0x1c2f2e=>o(_0x1c12a4,'ELEMENT_PAGE_BREAK',_0x1c2f2e));}}class dt extends _0x427f36{['afterInit'](){const _0x2a6db6=this['editor'];if(!_0x2a6db6['plugins']['has']('Paragraph'))return;const _0x2e44cf=_0x2a6db6['locale'],_0x42150c=_0x2a6db6['plugins']['get']('TrackChangesEditing');_0x42150c['descriptionFactory']['registerElementLabel']('paragraph',_0x3860fc=>o(_0x2e44cf,'ELEMENT_PARAGRAPH',_0x3860fc)),_0x42150c['enableDefaultAttributesIntegration']('paragraph'),_0x42150c['enableCommand']('insertParagraph'),_0x2a6db6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2a6db6),{'priority':'highest'}),_0x2a6db6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2ff65d,_0x5e6e09,_0x16158d)=>{_0x16158d['options']['showSuggestionHighlights']&&nr(_0x2a6db6,{'showActiveMarker':!0x1})(_0x2ff65d,_0x5e6e09,_0x16158d);},{'priority':'highest'});const _0x138d72=_0x42150c['descriptionFactory'];_0x138d72['registerDescriptionCallback'](_0x2fc4b4=>{if('insertion'!==_0x2fc4b4['type'])return;const {start:_0x2e7498,end:_0x15713f}=_0x2fc4b4['getFirstRange']();if(!_0x2e7498['isTouching'](_0x15713f)||!_0x2e7498['nodeAfter'])return;const _0x4392da=_0x2a6db6['model']['schema'],_0xbfb916=_0x2e7498['nodeAfter'];return _0x4392da['isBlock'](_0xbfb916)&&!_0x4392da['isLimit'](_0xbfb916)&&_0x4392da['checkChild'](_0xbfb916,'$text')?{'type':'insertion','content':o(_0x2e44cf,'*Insert:*\x20%0',_0x138d72['getItemLabel'](_0xbfb916,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cc5c2=this['editor'],_0x98834c=_0x1cc5c2['locale'];_0x1cc5c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e68e5=>{if('formatBlock'!=_0x3e68e5['type'])return;const {data:_0x19b8bd}=_0x3e68e5;return _0x19b8bd&&'paragraph'==_0x19b8bd['commandName']?{'type':'format','content':o(_0x98834c,'*Change\x20to:*\x20%0',o(_0x98834c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x99ad9a,{showActiveMarker:_0x4b1a00=!0x0}={}){return(_0x2734df,_0x264f8b,_0x3f67a7)=>{const _0x87e4b0=_0x99ad9a['plugins']['get']('TrackChangesEditing'),_0x6410ec=_0x264f8b['markerRange']['start'],_0x2e27d6=_0x264f8b['markerRange']['end'],_0x100700=_0x99ad9a['model']['schema'];if(!_0x6410ec['isTouching'](_0x2e27d6)||!_0x6410ec['nodeAfter'])return;const _0x3945cb=_0x6410ec['nodeAfter'];if(_0x100700['isBlock'](_0x3945cb)&&!_0x100700['isLimit'](_0x3945cb)&&_0x100700['checkChild'](_0x3945cb,'$text')){if(!_0x3f67a7['consumable']['consume'](_0x264f8b['markerRange'],_0x2734df['name']))return;const _0x589fe3=_0x3f67a7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x27295a=_0x3f67a7['mapper']['toViewPosition'](_0x2e27d6);_0x4b1a00&&_0x87e4b0['activeMarkers']['includes'](_0x264f8b['markerName'])&&_0x3f67a7['writer']['addClass']('ck-suggestion-marker--active',_0x589fe3),_0x3f67a7['writer']['insert'](_0x27295a,_0x589fe3),_0x3f67a7['mapper']['bindElementToMarker'](_0x589fe3,_0x264f8b['markerName']);}};}class pt extends _0x427f36{['afterInit'](){const _0x4066ba=this['editor'];if(!_0x4066ba['plugins']['has']('RemoveFormatEditing'))return;_0x4066ba['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x568fb5=this['editor'];_0x568fb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dbdfc=>{if('formatBlock'!=_0x1dbdfc['type']&&'formatInline'!=_0x1dbdfc['type'])return;const {data:_0x2475d8}=_0x1dbdfc;return _0x2475d8&&'removeFormat'==_0x2475d8['commandName']?{'type':'format','content':o(_0x568fb5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x427f36{['afterInit'](){const _0x169c31=this['editor'];if(!_0x169c31['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x12064b=_0x169c31['plugins']['get']('TrackChangesEditing');_0x12064b['enableCommand']('goToPreviousRestrictedEditingException'),_0x12064b['enableCommand']('goToNextRestrictedEditingException');const _0x2d0038=_0x169c31['plugins']['get']('RestrictedEditingModeEditing');_0x2d0038['enableCommand']('trackChanges'),_0x2d0038['enableCommand']('acceptSuggestion'),_0x2d0038['enableCommand']('discardSuggestion'),_0x2d0038['enableCommand']('acceptAllSuggestions'),_0x2d0038['enableCommand']('discardAllSuggestions'),_0x2d0038['enableCommand']('acceptSelectedSuggestions'),_0x2d0038['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x427f36{static get['requires'](){return[_0x215563];}['init'](){const _0x332b13=this['editor'],_0x48fe70=_0x332b13['plugins']['get']('TrackChangesEditing');_0x48fe70['enableCommand']('shiftEnter'),_0x332b13['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x332b13),{'priority':'high'}),_0x332b13['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x332b13),{'priority':'high'}),_0x332b13['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ae980,_0x3b0450,_0x5a62f1)=>{_0x5a62f1['options']['showSuggestionHighlights']&&de(_0x332b13,{'showActiveMarker':!0x1})(_0x2ae980,_0x3b0450,_0x5a62f1);}),_0x48fe70['descriptionFactory']['registerElementLabel']('softBreak',_0x405cc6=>o(_0x332b13['locale'],'ELEMENT_LINE_BREAK',_0x405cc6));}}function de(_0x8f7bf1,{showActiveMarker:_0x57ea6f=!0x0}={}){return(_0x39d12e,_0x2da43d,_0x50ceee)=>{const _0x455d7a=_0x8f7bf1['plugins']['get']('TrackChangesEditing');if(!_0x50ceee['consumable']['test'](_0x2da43d['markerRange'],_0x39d12e['name']))return;const _0xca8650=_0x8f7bf1['model'];for(const _0x26cca3 of _0x2da43d['markerRange']['getItems']()){if(!_0x26cca3['is']('element','softBreak'))continue;const _0x2b7d3a='deletion'==_0x2da43d['markerName']['split'](':')[0x1]?'merge':'split',_0x1f6fb2=_0x50ceee['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b7d3a}),_0x5b8f63=_0x50ceee['mapper']['toViewPosition'](_0xca8650['createPositionBefore'](_0x26cca3));_0x57ea6f&&_0x455d7a['activeMarkers']['includes'](_0x2da43d['markerName'])&&_0x50ceee['writer']['addClass']('ck-suggestion-marker--active',_0x1f6fb2),_0x50ceee['writer']['insert'](_0x5b8f63,_0x1f6fb2),_0x50ceee['mapper']['bindElementToMarker'](_0x1f6fb2,_0x2da43d['markerName']);}};}class wt extends _0x427f36{['afterInit'](){const _0x525f94=this['editor'],_0x18633d=_0x525f94['model'],_0x4b6152=_0x525f94['locale'];if(!_0x525f94['plugins']['has']('StandardEditingModeEditing'))return;const _0x26d9a0=_0x525f94['plugins']['get']('TrackChangesEditing'),_0x30b6f6='restrictedEditingException',_0x2d46c2=_0x525f94['commands']['get'](_0x30b6f6);_0x26d9a0['enableCommand'](_0x30b6f6,(_0xc472b2,_0x5b0db9={})=>{const _0x4d2ae8=_0x18633d['document']['selection'];if(_0x4d2ae8['isCollapsed'])return void _0xc472b2(_0x5b0db9);const _0x326f19=void 0x0!==_0x5b0db9['forceValue']?_0x5b0db9['forceValue']:!_0x2d46c2['value'];_0x18633d['change'](()=>{const _0xf76ef2=Array['from'](_0x4d2ae8['getRanges']());for(const _0xc50f69 of _0xf76ef2){const _0x2c7abb=_0x326f19?[_0xc50f69]:io(_0x30b6f6,_0xc50f69,_0x18633d);for(const _0x2c8720 of _0x2c7abb)_0x26d9a0['markInlineFormat'](_0x2c8720,{'commandName':_0x30b6f6,'commandParams':[{'forceValue':_0x326f19}]});}});}),_0x26d9a0['descriptionFactory']['registerDescriptionCallback'](_0x3ff332=>{if('formatBlock'!=_0x3ff332['type']&&'formatInline'!=_0x3ff332['type'])return;const {data:_0x2f0279}=_0x3ff332;return _0x2f0279&&_0x2f0279['commandName']==_0x30b6f6?_0x2f0279['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b6152,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4b6152,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x427f36{['afterInit'](){const _0x4ab905=this['editor'];if(!_0x4ab905['plugins']['has']('Style')||!_0x4ab905['plugins']['has']('DataSchema'))return;const _0x238162=_0x4ab905['plugins']['get']('TrackChangesEditing'),_0x239eee=_0x4ab905['locale'],_0x9fc18d=_0x4ab905['config']['get']('style')||{},_0x6e9184=_0x4ab905['plugins']['get']('GeneralHtmlSupport'),_0x1cc6f4=_0x4ab905['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4ab905['plugins']['get']('DataSchema'),_0x9fc18d['definitions']);_0x238162['enableDefaultAttributesIntegration']('style');const _0x3e57bb=new Set();for(const _0x3f4a7e of _0x1cc6f4['block']){const _0x131523=_0x6e9184['getGhsAttributeNameForElement'](_0x3f4a7e['element']);_0x3e57bb['add'](_0x131523);}const _0x67dac7=new Set();for(const _0x566953 of _0x1cc6f4['inline']){const _0x322bcd=_0x6e9184['getGhsAttributeNameForElement'](_0x566953['element']);_0x67dac7['add'](_0x322bcd);for(const _0x2c21f2 of _0x566953['ghsAttributes'])_0x67dac7['add'](_0x2c21f2);}for(const _0x3d4e9 of _0x3e57bb)_0x238162['registerBlockAttribute'](_0x3d4e9),_0x238162['descriptionFactory']['registerAttributeLabel'](_0x3d4e9,o(_0x239eee,'FORMAT_STYLE'));for(const _0x37b88f of _0x67dac7)_0x238162['registerInlineAttribute'](_0x37b88f),_0x238162['descriptionFactory']['registerAttributeLabel'](_0x37b88f,o(_0x239eee,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11efe3=this['editor'],_0xd9c617=_0x11efe3['locale'];_0x11efe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x317561=>{if('formatBlock'!=_0x317561['type']&&'formatInline'!=_0x317561['type'])return;const {data:_0x1065d4}=_0x317561;return _0x1065d4&&'style'===_0x1065d4['commandName']?_0x1065d4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd9c617,'*Set\x20format:*\x20%0',_0x1065d4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xd9c617,'*Remove\x20format:*\x20%0',_0x1065d4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x427f36{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x383d05){super(_0x383d05),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a8cb1=this['editor'],_0x14bb3f=_0x2a8cb1['model']['document']['selection'];if(!_0x2a8cb1['plugins']['has']('TableEditing'))return;const _0x842f5c=_0x2a8cb1['locale'],_0x8603b6=_0x2a8cb1['plugins']['get']('TrackChangesEditing'),_0x5568e6=_0x2a8cb1['plugins']['get']('TableUtils');_0x8603b6['descriptionFactory']['registerElementLabel']('table',_0x3b6675=>o(_0x842f5c,'ELEMENT_TABLE',_0x3b6675)),this['_setupColumnsRowsFixing'](),_0x8603b6['enableCommand']('insertTable'),_0x8603b6['enableCommand']('selectTableRow'),_0x8603b6['enableCommand']('selectTableColumn');for(const _0x52c369 of['insertTableRowAbove','insertTableRowBelow']){const _0xdfadd9=_0x2a8cb1['commands']['get'](_0x52c369);_0x8603b6['enableCommand'](_0x52c369,_0x4ffa4a=>{_0x2a8cb1['model']['change'](_0x5557f1=>{_0x4ffa4a();const _0x4ad768='above'===_0xdfadd9['order'],_0x21e455=_0x5568e6['getSelectionAffectedTableCells'](_0x14bb3f),_0x444c35=_0x5568e6['getRowIndexes'](_0x21e455),_0x180092=_0x4ad768?_0x444c35['first']-0x1:_0x444c35['last']+0x1,_0x1aba1f=_0x21e455[0x0]['findAncestor']('table'),_0x1136f5=_0x5568e6['createTableWalker'](_0x1aba1f,{'startRow':_0x180092,'endRow':_0x180092}),_0x29a203=Array['from'](_0x1136f5)['map'](_0x36accb=>_0x5557f1['createRangeOn'](_0x36accb['cell']));_0x8603b6['markMultiRangeInsertion'](_0x29a203,'tableRow');});});}for(const _0x1d2c05 of['insertTableColumnLeft','insertTableColumnRight']){const _0x30669d=_0x2a8cb1['commands']['get'](_0x1d2c05);_0x8603b6['enableCommand'](_0x1d2c05,_0x194603=>{_0x2a8cb1['model']['change'](_0x1ec3c7=>{_0x194603();const _0x34b5ab='left'===_0x30669d['order'],_0x4167f8=_0x5568e6['getSelectionAffectedTableCells'](_0x14bb3f),_0x4f2263=_0x5568e6['getColumnIndexes'](_0x4167f8),_0x42fffe=_0x34b5ab?_0x4f2263['first']-0x1:_0x4f2263['last']+0x1,_0x42843c=_0x4167f8[0x0]['findAncestor']('table'),_0x210970=_0x5568e6['createTableWalker'](_0x42843c,{'startRow':0x0,'column':_0x42fffe,'includeAllSlots':!0x1}),_0x552e9f=Array['from'](_0x210970)['map'](_0x19e1f3=>_0x1ec3c7['createRangeOn'](_0x19e1f3['cell']));_0x8603b6['markMultiRangeInsertion'](_0x552e9f,'tableColumn');});});}for(const _0x1b9cbb of['removeTableRow','removeTableColumn']){const _0x504d95=_0x1b9cbb['substr'](0xb),_0x54adbc=_0x504d95['toLowerCase'](),_0x39323f=_0x54adbc['substr'](0x0,0x3)+'span',_0x366040='table'+_0x504d95,_0x2f3d69='min'+_0x504d95,_0x38d06c='max'+_0x504d95;_0x8603b6['enableCommand'](_0x1b9cbb,()=>{_0x2a8cb1['model']['change'](_0x5a3233=>{const _0x292447=_0x5568e6['getSelectionAffectedTableCells'](_0x14bb3f),_0x397425=_0x292447[0x0]['findAncestor']('table');let _0x3b9492;if('removeTableRow'==_0x1b9cbb){const _0x4fe559=_0x5568e6['getRowIndexes'](_0x292447);_0x3b9492={'startRow':_0x4fe559['first'],'endRow':_0x4fe559['last'],'includeAllSlots':!0x0};}else{const _0x32bf01=_0x5568e6['getColumnIndexes'](_0x292447);_0x3b9492={'startColumn':_0x32bf01['first'],'endColumn':_0x32bf01['last'],'includeAllSlots':!0x0};}const _0x359680=_0x5568e6['createTableWalker'](_0x397425,_0x3b9492),_0x4d486a=Array['from'](_0x359680)['map'](({cell:_0x3f80d8})=>_0x3f80d8),_0x3ef688=Ee(_0x4d486a['filter'](_0x398e71=>_0x398e71['hasAttribute'](_0x39323f))),_0x1bc87b=Ee(_0x4d486a['filter'](_0x275e25=>!_0x275e25['hasAttribute'](_0x39323f)))['map'](_0x12bebb=>_0x5a3233['createRangeOn'](_0x12bebb)),_0x545380=_0x8603b6['markMultiRangeDeletion'](_0x1bc87b,_0x366040);if(_0x545380&&('tableRow'==_0x545380['subType']||'tableColumn'==_0x545380['subType'])){const _0x58db12=this['_getSuggestionCoords'](_0x545380);for(const _0x161c3b of _0x3ef688){const _0x491697=_0x5a3233['createRangeOn'](_0x161c3b),_0x1e70a4=_0x5568e6['getCellLocation'](_0x161c3b),_0x29dbb2=_0x161c3b['getAttribute'](_0x39323f)-0x1,_0x46b005=_0x58db12[_0x2f3d69],_0x1b44b6=_0x58db12[_0x38d06c];_0x46b005<=_0x1e70a4[_0x54adbc]&&_0x1e70a4[_0x54adbc]+_0x29dbb2<=_0x1b44b6&&_0x545380['addRange'](_0x491697);}}});});}function _0x57f0e6(_0x4bbd45){const _0x23c7d1=Array['from'](_0x14bb3f['getRanges']())['map'](_0x1133d2=>_0x1dfa9b['fromRange'](_0x1133d2));_0x2a8cb1['model']['change'](_0x15c1bb=>{const _0x287716=_0x15c1bb['batch'];_0x4bbd45=_0x4bbd45['filter'](_0x2594d8=>'$graveyard'!=_0x2594d8['root']['rootName']),_0x15c1bb['setSelection'](_0x4bbd45),_0x2a8cb1['commands']['get']('removeTableRow')['refresh'](),_0x2a8cb1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a8cb1['model']['enqueueChange'](()=>{_0x2a8cb1['model']['enqueueChange'](_0x287716,_0x5b5d36=>{const _0x2f1564=_0x23c7d1['filter'](_0x4b60c9=>'$graveyard'!=_0x4b60c9['root']['rootName']);_0x2f1564['length']>0x0&&_0x5b5d36['setSelection'](_0x2f1564);for(const _0xed6915 of _0x23c7d1)_0xed6915['detach']();});});});}function _0xbe9445(_0x59469c){_0x2a8cb1['model']['change'](_0x176edc=>{const _0x36a545=Array['from'](_0x14bb3f['getRanges']())['map'](_0x4a6ded=>_0x1dfa9b['fromRange'](_0x4a6ded)),_0x1d9ffb=[];for(const _0x252567 of _0x59469c)for(const _0x330e7e of _0x252567['getItems']({'shallow':!0x0}))_0x1d9ffb['push'](_0x330e7e);for(const _0x487786 of _0x1d9ffb)'$graveyard'!=_0x487786['root']['rootName']&&(_0x176edc['setSelection'](_0x176edc['createPositionAt'](_0x487786,0x0)),_0x2a8cb1['commands']['get']('removeTableColumn')['refresh'](),_0x2a8cb1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x148336=_0x36a545['filter'](_0x7f179d=>'$graveyard'!=_0x7f179d['root']['rootName']);_0x148336['length']>0x0&&_0x176edc['setSelection'](_0x148336);for(const _0x20c060 of _0x36a545)_0x20c060['detach']();});}function _0x33094a(_0x327eab,_0x3cc709){return _0x3cc709['every'](_0x39d2e6=>_0x327eab['some'](_0x3457b1=>_0x3457b1['end']['isEqual'](_0x39d2e6['start'])||_0x39d2e6['end']['isEqual'](_0x3457b1['start'])));}function _0x421c07(_0x574a74,_0x55b75f){return!_0x574a74['some'](_0x56bbab=>_0x55b75f['some'](_0xd0ce17=>_0x56bbab['isIntersecting'](_0xd0ce17)))&&_0x574a74['some'](_0xe77a61=>_0x55b75f['some'](_0x37a3fd=>_0xe77a61['end']['isTouching'](_0x37a3fd['start'])));}_0x2a8cb1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe3b498,_0x16e0f6,_0x277d71)=>{if(!_0x277d71['options']['showSuggestionHighlights'])return;const _0x34cef9=_0x16e0f6['item'];if(!_0x34cef9)return;const _0x6a0739=_0x277d71['mapper']['toViewElement'](_0x34cef9);function _0x495caf(_0x288df0){return Array['isArray'](_0x288df0)?_0x288df0:[_0x288df0];}_0x6a0739&&'tableCell'===_0x34cef9['name']&&_0x202df0(_0x6a0739,_0x277d71['writer'],(_0x6d4da9,_0x2fc7ef,_0x40ca6c)=>_0x40ca6c['addClass'](_0x495caf(_0x2fc7ef['classes']),_0x6d4da9),(_0x46eeaf,_0x293e33,_0x2acd47)=>_0x2acd47['removeClass'](_0x495caf(_0x293e33['classes']),_0x46eeaf));},{'priority':'highest'}),_0x8603b6['descriptionFactory']['registerDescriptionCallback'](_0x24ee37=>{if('insertion'!=_0x24ee37['type']&&'deletion'!=_0x24ee37['type'])return;const _0x5c8180=_0x24ee37['getContainedElement']();if(null!=_0x5c8180&&_0x5c8180['is']('element','table')){if('insertion'==_0x24ee37['type']){const _0xc6b0be=_0x24ee37['getItems']()['filter'](_0x2ad4df=>_0x2ad4df['is']('$textProxy'))['map'](_0x37e4d9=>_0x37e4d9['data']);if(_0xc6b0be['length'])return{'type':'insertion','content':o(_0x842f5c,'*Insert:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc6b0be['join']('\x20')+'\x22'))};}if('deletion'==_0x24ee37['type']){const _0x47c462=_0x24ee37['getItems']()['filter'](_0x1ce059=>_0x1ce059['is']('$textProxy'))['map'](_0x5f3489=>_0x5f3489['data']);if(_0x47c462['length'])return{'type':'deletion','content':o(_0x842f5c,'*Remove:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x47c462['join']('\x20')+'\x22'))};}}}),_0x8603b6['descriptionFactory']['registerDescriptionCallback'](_0x9e5586=>{if('tableRow'==_0x9e5586['subType']){const _0x577174=_0x9e5586['getItems']()['filter'](_0x136479=>_0x136479['is']('$textProxy'))['map'](_0x70f154=>_0x70f154['data']),_0x402c24=this['_getSuggestionCoords'](_0x9e5586),_0xc6a09d=_0x402c24['maxRow']-_0x402c24['minRow']+0x1;if('insertion'==_0x9e5586['type'])return _0x577174['length']?{'type':'insertion','content':o(_0x842f5c,'*Insert:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc6a09d,'\x22'+_0x577174['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x842f5c,'*Insert:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_ROW',_0xc6a09d))};if('deletion'==_0x9e5586['type'])return _0x577174['length']?{'type':'deletion','content':o(_0x842f5c,'*Remove:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc6a09d,'\x22'+_0x577174['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x842f5c,'*Remove:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_ROW',_0xc6a09d))};}if('tableColumn'==_0x9e5586['subType']){const _0x3865b3=_0x9e5586['getItems']()['filter'](_0x402d15=>_0x402d15['is']('$textProxy'))['map'](_0x186cb3=>_0x186cb3['data']),_0x4eaa17=this['_getSuggestionCoords'](_0x9e5586),_0x2d2c0e=_0x4eaa17['maxColumn']-_0x4eaa17['minColumn']+0x1;if('insertion'==_0x9e5586['type'])return _0x3865b3['length']?{'type':'insertion','content':o(_0x842f5c,'*Insert:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d2c0e,'\x22'+_0x3865b3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x842f5c,'*Insert:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_COLUMN',_0x2d2c0e))};if('deletion'==_0x9e5586['type'])return _0x3865b3['length']?{'type':'deletion','content':o(_0x842f5c,'*Remove:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d2c0e,'\x22'+_0x3865b3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x842f5c,'*Remove:*\x20%0',o(_0x842f5c,'ELEMENT_TABLE_COLUMN',_0x2d2c0e))};}}),_0x8603b6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x57f0e6),_0x8603b6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x57f0e6),_0x8603b6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xbe9445),_0x8603b6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xbe9445),_0x8603b6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33094a),_0x8603b6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33094a),_0x8603b6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x421c07),_0x8603b6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x421c07);}['_acceptFormatSuggestionCallbackFactory'](){const _0x48ef8b=this['editor'],_0x2e2962=_0x48ef8b['model']['document']['selection'];return(_0x1507bc,_0xbbac3a)=>{_0x48ef8b['model']['change'](_0x47ae23=>{const {commandName:_0xd53195,commandParams:_0x36d2c5}=_0xbbac3a;let _0x4cd11f=_0x1507bc[0x0]['end']['nodeBefore'];_0x36d2c5&&_0x36d2c5[0x0]&&!0x1===_0x36d2c5[0x0]['forceValue']&&(_0x4cd11f=_0x1507bc[0x0]['start']['nodeAfter']);const _0x334ee1=_0x47ae23['createRangeIn'](_0x4cd11f);if('$graveyard'==_0x334ee1['root']['rootName'])return;const _0x210fb5=Array['from'](_0x2e2962['getRanges']())['map'](_0xecc54=>_0x1dfa9b['fromRange'](_0xecc54));_0x47ae23['setSelection'](_0x334ee1),_0x48ef8b['commands']['get'](_0xd53195)['refresh'](),_0x36d2c5['push']({'forceDefaultExecution':!0x0}),_0x48ef8b['execute'](_0xd53195,..._0x36d2c5);const _0x35fea2=_0x210fb5['filter'](_0x4001d2=>'$graveyard'!=_0x4001d2['root']['rootName']);_0x35fea2['length']>0x0&&_0x47ae23['setSelection'](_0x35fea2);for(const _0x2e43f6 of _0x210fb5)_0x2e43f6['detach']();});};}['_getCoordsForCells'](_0x250d53){const _0x3495a1=this['editor']['plugins']['get']('TableUtils');let _0x4d9861=Number['MAX_SAFE_INTEGER'],_0x139e5a=Number['MIN_SAFE_INTEGER'],_0x2ceec9=Number['MAX_SAFE_INTEGER'],_0x548c0d=Number['MIN_SAFE_INTEGER'];for(const _0x226c54 of _0x250d53){if('$graveyard'==_0x226c54['root']['rootName'])continue;const {row:_0x5d6cf9,column:_0x2d214d}=_0x3495a1['getCellLocation'](_0x226c54),_0x3ddfc9=_0x226c54['hasAttribute']('rowspan')?_0x226c54['getAttribute']('rowspan')-0x1:0x0,_0x36a2d0=_0x226c54['hasAttribute']('colspan')?_0x226c54['getAttribute']('colspan')-0x1:0x0;_0x4d9861=_0x5d6cf9<_0x4d9861?_0x5d6cf9:_0x4d9861,_0x139e5a=_0x5d6cf9+_0x3ddfc9>_0x139e5a?_0x5d6cf9+_0x3ddfc9:_0x139e5a,_0x2ceec9=_0x2d214d<_0x2ceec9?_0x2d214d:_0x2ceec9,_0x548c0d=_0x2d214d+_0x36a2d0>_0x548c0d?_0x2d214d+_0x36a2d0:_0x548c0d;}return{'minRow':_0x4d9861,'maxRow':_0x139e5a,'minColumn':_0x2ceec9,'maxColumn':_0x548c0d};}['_setupColumnsRowsFixing'](){const _0xc0d946=this['editor'],_0x134096=_0xc0d946['plugins']['get']('TrackChangesEditing'),_0x580f9d=_0xc0d946['plugins']['get']('TableUtils');_0xc0d946['model']['document']['on']('change:data',()=>{const _0x2483ee=Array['from'](_0xc0d946['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b4426,data:_0x4092fb}of _0x2483ee){const {group:_0x3badf2,id:_0x22cf4d,subType:_0x5048d5}=_0x134096['_splitMarkerName'](_0x1b4426);if('suggestion'!=_0x3badf2)continue;if(null!=_0x4092fb['oldRange'])continue;const _0x5d77d0=_0x134096['getSuggestion'](_0x22cf4d);this['_tablePostFixingSubtypes']['includes'](_0x5048d5)&&this['_tableSuggestions']['add'](_0x5d77d0);}},{'priority':'low'});const _0x363da5=(_0x273047,_0x97924f)=>{let _0xdbed1a=!0x1;const _0x392d8a=_0x97924f['createRangeOn'](_0x273047),_0x289835=_0x273047['findAncestor']('table'),_0x2630ad=_0x580f9d['getCellLocation'](_0x273047);for(const _0x579892 of this['_tableSuggestions']){const _0x406c3d=_0x579892['subType'],_0xedc1c4=_0x406c3d['startsWith']('tablePaste'),_0x26af80=_0x406c3d['substr'](_0xedc1c4?0xa:0x5),_0x23bacb=_0x26af80['toLowerCase'](),_0x3adce7=_0x23bacb['substr'](0x0,0x3)+'span',_0x5ab696='min'+_0x26af80,_0x156bbd='max'+_0x26af80;if(!_0x579892['isInContent'])continue;if(_0x289835!=_0x579892['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x579892['isIntersectingWithRange'](_0x392d8a))continue;const _0x9a0708=_0x273047['hasAttribute'](_0x3adce7)?_0x273047['getAttribute'](_0x3adce7)-0x1:0x0,_0x2b27df=this['_getSuggestionCoords'](_0x579892),_0x14d889=_0x2b27df[_0x5ab696],_0x3f619e=_0x2b27df[_0x156bbd];_0x14d889<=_0x2630ad[_0x23bacb]&&_0x2630ad[_0x23bacb]+_0x9a0708<=_0x3f619e&&(_0x579892['addRange'](_0x392d8a),_0xdbed1a=!0x0);}return _0xdbed1a;};_0xc0d946['model']['document']['registerPostFixer'](_0x3dd584=>{let _0x27bc3b=!0x1;for(const _0x7803ab of _0xc0d946['model']['document']['differ']['getChanges']())if('insert'==_0x7803ab['type']){if('tableRow'==_0x7803ab['name']){for(const _0x48cdf7 of _0x7803ab['position']['nodeAfter']['getChildren']())_0x27bc3b=_0x27bc3b||_0x363da5(_0x48cdf7,_0x3dd584);}else'tableCell'==_0x7803ab['name']&&(_0x27bc3b=_0x27bc3b||_0x363da5(_0x7803ab['position']['nodeAfter'],_0x3dd584));}return _0x27bc3b;});}['_getSuggestionCoords'](_0x5bb5eb){return this['_getCoordsForCells'](_0x5bb5eb['getRanges']()['map'](_0xf8530=>_0xf8530['start']['nodeAfter']));}}function Ee(_0x3169e9){return Array['from'](new Set(_0x3169e9)['values']());}class St extends _0x427f36{static get['requires'](){return[jt];}['afterInit'](){const _0x3a2cf1=this['editor'],_0x3462fa=_0x3a2cf1['model']['document']['selection'],_0x964e08=_0x3a2cf1['locale'];if(!_0x3a2cf1['plugins']['has']('TableEditing'))return;const _0x81c2cb=_0x3a2cf1['plugins']['get']('TrackChangesEditing'),_0x3b0456=_0x3a2cf1['plugins']['get']('TableUtils'),_0x144b07=_0x3a2cf1['plugins']['get'](jt);_0x144b07['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x81c2cb['enableCommand']('mergeTableCells',()=>{const _0x4b24f6=_0x3b0456['getSelectionAffectedTableCells'](_0x3a2cf1['model']['document']['selection']);_0x3a2cf1['model']['change'](()=>{_0x81c2cb['markMultiRangeBlockFormat'](_0x4b24f6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3a2cf1['commands']['get']('mergeTableCells')['on']('execute',(_0x2ce6f9,_0x5b02cf)=>{_0x3a2cf1['commands']['get']('trackChanges')['value']&&(_0x5b02cf['length']>0x0&&_0x5b02cf[_0x5b02cf['length']-0x1]&&_0x5b02cf[_0x5b02cf['length']-0x1]['forceDefaultExecution']||_0x81c2cb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2ce6f9['stop']());},{'priority':'highest'});for(const _0x4c962f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1818ab=_0x3a2cf1['commands']['get'](_0x4c962f);_0x81c2cb['enableCommand'](_0x4c962f,()=>{const _0x35ec1c=_0x3a2cf1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8eb37=>_0x8eb37['is']('element','tableCell')),_0x1f6ce0=_0x1818ab['value'];_0x3a2cf1['model']['change'](()=>{_0x81c2cb['markMultiRangeBlockFormat']([_0x35ec1c,_0x1f6ce0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x47d3ea of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4577c0=_0x3a2cf1['commands']['get'](_0x47d3ea);_0x81c2cb['enableCommand'](_0x47d3ea,()=>{const _0x4ac35e=_0x3b0456['getSelectionAffectedTableCells'](_0x3a2cf1['model']['document']['selection'])[0x0],_0x142952=_0x4ac35e['findAncestor']('table'),{column:_0x1440fa,row:_0x1379eb}=_0x3b0456['getCellLocation'](_0x4ac35e);let _0x154a63=[];if('horizontally'==_0x4577c0['direction']){const _0x41e31b=_0x3b0456['createTableWalker'](_0x142952,{'startRow':_0x1379eb,'endRow':_0x1379eb,'includeAllSlots':!0x0});_0x154a63=Array['from'](_0x41e31b)['map'](_0x10813a=>_0x10813a['cell']);}else{const _0x4da368=_0x3b0456['createTableWalker'](_0x142952,{'column':_0x1440fa,'includeAllSlots':!0x0});_0x154a63=Array['from'](_0x4da368)['map'](_0x383969=>_0x383969['cell']);}_0x3a2cf1['model']['change'](_0x232233=>{_0x81c2cb['markBlockFormat'](_0x232233['createRangeOn'](_0x4ac35e),{'commandName':_0x47d3ea,'commandParams':[]},_0x154a63,_0x47d3ea);});});}_0x81c2cb['descriptionFactory']['registerDescriptionCallback'](_0x73f233=>{if('formatBlock'!=_0x73f233['type']&&'formatInline'!=_0x73f233['type'])return;const {data:_0xf74e02}=_0x73f233;return _0xf74e02&&'mergeTableCells'==_0xf74e02['commandName']?{'type':'format','content':o(_0x964e08,'*Merge\x20cells*')}:void 0x0;}),_0x81c2cb['descriptionFactory']['registerDescriptionCallback'](_0x4d3fe3=>{if('formatBlock'!=_0x4d3fe3['type']&&'formatInline'!=_0x4d3fe3['type'])return;const {data:_0x1c8d05}=_0x4d3fe3;return _0x1c8d05?'splitTableCellVertically'==_0x1c8d05['commandName']?{'type':'format','content':o(_0x964e08,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1c8d05['commandName']?{'type':'format','content':o(_0x964e08,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4ac527=_0x144b07['_acceptFormatSuggestionCallbackFactory']();for(const _0x171d10 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x81c2cb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x171d10,'accept',_0x4ac527);for(const _0x296849 of['splitTableCellVertically','splitTableCellHorizontally'])_0x81c2cb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x296849,'accept',_0x4ac527);_0x81c2cb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x53c8fe=>{_0x3a2cf1['model']['change'](_0x1a501c=>{const _0xc674ce=Array['from'](_0x3462fa['getRanges']())['map'](_0x3b9b18=>_0x1dfa9b['fromRange'](_0x3b9b18));_0x1a501c['setSelection'](_0x53c8fe),_0x3a2cf1['commands']['get']('mergeTableCells')['refresh'](),_0x3a2cf1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1eca6b=_0xc674ce['filter'](_0x37926b=>'$graveyard'!=_0x37926b['root']['rootName']);_0x1eca6b['length']>0x0&&_0x1a501c['setSelection'](_0x1eca6b);for(const _0x1d0d19 of _0xc674ce)_0x1d0d19['detach']();});});for(const _0x2078a9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2d1632=_0x3a2cf1['commands']['get'](_0x2078a9);_0x2d1632['on']('set:isEnabled',(_0x595e3b,_0x209f9e,_0x6ddee)=>{if(_0x6ddee){const _0x298428=_0x3a2cf1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x16a8d4=>_0x16a8d4['is']('element','tableCell'));this['_areMergableCells'](_0x2d1632['value'],_0x298428)||(_0x595e3b['return']=!0x1,_0x595e3b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4b3b82=this['editor']['commands']['get']('mergeTableCells'),_0x13cb31=this['editor']['plugins']['get']('TableUtils');if(!_0x4b3b82['isEnabled'])return!0x1;const _0x45ce1f=_0x13cb31['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x36f0c3 of _0x45ce1f)for(const _0x464627 of _0x45ce1f)if(_0x36f0c3!=_0x464627&&!this['_areMergableCells'](_0x36f0c3,_0x464627))return!0x1;return!0x0;}['_areMergableCells'](_0x3ab4ef,_0x1f9630){const _0x2b55d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5623d5=this['editor']['model']['createRangeOn'](_0x3ab4ef),_0x5b05e4=this['editor']['model']['createRangeOn'](_0x1f9630),_0x23d3bc=new Set(),_0x344d02=new Set();for(const _0x2dda6e of _0x2b55d8['getSuggestions']())if(('insertion'==_0x2dda6e['type']||'deletion'==_0x2dda6e['type']||'mergeTableCells'==_0x2dda6e['subType'])&&_0x2dda6e['isInContent']){for(const _0x3c9472 of _0x2dda6e['getRanges']())_0x3c9472['containsRange'](_0x5623d5,!0x0)&&_0x23d3bc['add'](_0x2dda6e['type']+':'+_0x2dda6e['author']['id']),_0x3c9472['containsRange'](_0x5b05e4,!0x0)&&_0x344d02['add'](_0x2dda6e['type']+':'+_0x2dda6e['author']['id']);}if(_0x23d3bc['size']!=_0x344d02['size'])return!0x1;for(const _0x39bf8f of _0x23d3bc)if(!_0x344d02['has'](_0x39bf8f))return!0x1;return!0x0;}}class At extends _0x427f36{static get['requires'](){return[jt];}['afterInit'](){const _0x3c7fdd=this['editor'];if(!_0x3c7fdd['plugins']['has']('TableEditing'))return;const _0x568b6e=_0x3c7fdd['locale'],_0x3cd410=_0x3c7fdd['plugins']['get']('TrackChangesEditing');_0x3cd410['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3cd410['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3cd410['registerBlockAttribute']('headingRows'),_0x3cd410['registerBlockAttribute']('headingColumns'),_0x3cd410['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x568b6e,'FORMAT_HEADER_ROW')),_0x3cd410['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x568b6e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2bc7d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44655c=this['editor']['plugins']['get']('TableUtils'),_0x1ce0c5=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x329e78({showActiveMarker:_0x2b8b4c=!0x0,setDataAttribute:_0x24c61a=!0x0}={}){return(_0x164777,_0x184f04,_0x476431)=>{const {type:_0x2a579d,id:_0x504b8f}=_0x2bc7d6['_splitMarkerName'](_0x184f04['markerName']),_0x48f0c3=_0x2bc7d6['getSuggestion'](_0x504b8f),_0x4db66a=_0x48f0c3['data'];if('formatBlock'!=_0x48f0c3['type']||!_0x4db66a||'setTableColumnHeader'!=_0x4db66a['commandName'])return;if(_0x184f04['item'])return void _0x164777['stop']();if(!_0x476431['consumable']['consume'](_0x184f04['markerRange'],_0x164777['name']))return;const _0x402b18=_0x184f04['markerRange']['start']['nodeAfter'],_0x580d06=_0x184f04['markerRange']['end']['nodeBefore'],_0x18f759=_0x402b18['parent']['parent'],{column:_0x362d62}=_0x44655c['getCellLocation'](_0x402b18),{column:_0x34d219}=_0x44655c['getCellLocation'](_0x580d06);for(let _0x4cdc7d=_0x362d62;_0x4cdc7d<=_0x34d219;_0x4cdc7d++){const _0x54e7c2=_0x44655c['createTableWalker'](_0x18f759,{'column':_0x4cdc7d,'includeAllSlots':!0x1});for(const _0x1b18bd of _0x54e7c2){const _0x4b34fc=_0x1b18bd['cell'],_0x3fa4d8=_0x476431['mapper']['toViewElement'](_0x4b34fc);_0x476431['writer']['addClass']('ck-suggestion-marker-'+_0x2a579d,_0x3fa4d8),_0x24c61a&&_0x476431['writer']['setAttribute']('data-suggestion',_0x504b8f,_0x3fa4d8),_0x476431['mapper']['bindElementToMarker'](_0x3fa4d8,_0x184f04['markerName']),_0x2b8b4c&&(_0x2bc7d6['activeMarkers']['includes'](_0x184f04['markerName'])?_0x476431['writer']['addClass']('ck-suggestion-marker--active',_0x3fa4d8):_0x476431['writer']['removeClass']('ck-suggestion-marker--active',_0x3fa4d8));}}};}_0x2bc7d6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1ce0c5),_0x2bc7d6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1ce0c5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x329e78(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59ae3a,_0x10fd4f,_0x207a75)=>{_0x207a75['options']['showSuggestionHighlights']&&_0x329e78({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59ae3a,_0x10fd4f,_0x207a75);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1e5817,_0x3933d2,_0x45f31d)=>{const {type:_0x4dfcad,id:_0x314966}=_0x2bc7d6['_splitMarkerName'](_0x3933d2['markerName']),_0x455a75=_0x2bc7d6['getSuggestion'](_0x314966),_0x1ff803=_0x455a75['data'];if('formatBlock'!=_0x455a75['type']||!_0x1ff803||'setTableColumnHeader'!=_0x1ff803['commandName'])return;const _0x1d7b4a=_0x45f31d['mapper']['markerNameToElements'](_0x3933d2['markerName']);if(_0x1d7b4a){for(const _0x16c277 of _0x1d7b4a)_0x45f31d['writer']['removeClass']('ck-suggestion-marker-'+_0x4dfcad,_0x16c277),_0x45f31d['writer']['removeClass']('ck-suggestion-marker--active',_0x16c277),_0x45f31d['writer']['removeAttribute']('data-suggestion',_0x16c277),_0x45f31d['mapper']['unbindElementFromMarkerName'](_0x16c277,_0x3933d2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b2f2e=this['editor'],_0x5e12f7=_0x5b2f2e['locale'];function _0x262560(_0x50a531){return{'type':'format','content':o(_0x5e12f7,'*Format:*\x20%0',_0x50a531)};}_0x5b2f2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e51b=>{if('formatBlock'!=_0x18e51b['type'])return;const {data:_0x483763}=_0x18e51b;if(_0x483763){if('setTableRowHeader'==_0x483763['commandName']){const _0x290830=_0x483763['commandParams'][0x0]['forceValue'];return _0x262560(o(_0x5e12f7,_0x290830?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x483763['commandName']){const _0x5c71a9=_0x483763['commandParams'][0x0]['forceValue'];return _0x262560(o(_0x5e12f7,_0x5c71a9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x128db6=>[_0x128db6,null]));class It extends _0x427f36{static get['requires'](){return[jt];}['afterInit'](){const _0x48efc8=this['editor'];if(!_0x48efc8['plugins']['has']('TableClipboard'))return;const _0x2a021f=_0x48efc8['plugins']['get']('TrackChangesEditing'),_0x3cf727=_0x48efc8['plugins']['get']('TableUtils'),_0x59aef4=_0x48efc8['plugins']['get'](jt),_0x32e9a3=_0x48efc8['plugins']['get']('TableClipboard');_0x59aef4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x48efc8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x48efc8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2eb5f3=null;_0x48efc8['model']['on']('insertContent',(_0x49306a,_0x4cfb7f)=>{const [_0x30808f,_0x42d5a2]=_0x4cfb7f,_0x3f21bf=_0x4cfb7f[_0x4cfb7f['length']-0x1];_0x3f21bf&&_0x3f21bf['forceDefaultExecution']||_0x2a021f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1953d9,_0x105d1f,_0x1dd77e,_0x1c8701,_0x1ad766){if(_0x105d1f&&!_0x105d1f['is']('documentSelection'))return!0x1;const _0x410fdb=_0x1ad766['getTableIfOnlyTableInContent'](_0x1953d9,_0x1dd77e);if(!_0x410fdb||!he(_0x410fdb,void 0x0,_0x1c8701))return!0x1;const _0x4756f3=_0x1c8701['getSelectionAffectedTableCells'](_0x1dd77e['document']['selection']);if(!_0x4756f3['length'])return!0x1;const _0x2a29b2=_0x4756f3[0x0]['findAncestor']('table'),_0xefc4b1=_0x1c8701['getRowIndexes'](_0x4756f3),_0x39f8f1=_0x1c8701['getColumnIndexes'](_0x4756f3),_0x3cdbeb={'startRow':_0xefc4b1['first'],'endRow':_0xefc4b1['last'],'startColumn':_0x39f8f1['first'],'endColumn':_0x39f8f1['last']};return 0x1==_0x4756f3['length']&&(_0x3cdbeb['endRow']+=_0x1c8701['getRows'](_0x410fdb)-0x1,_0x3cdbeb['endColumn']+=_0x1c8701['getColumns'](_0x410fdb)-0x1),he(_0x2a29b2,_0x3cdbeb,_0x1c8701);}(_0x30808f,_0x42d5a2,_0x48efc8['model'],_0x3cf727,_0x32e9a3)&&(_0x49306a['stop'](),_0x2eb5f3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x48efc8['model']['change'](()=>{_0x48efc8['model']['insertContent'](_0x4cfb7f[0x0],_0x4cfb7f[0x1],_0x4cfb7f[0x2],{'forceDefaultExecution':!0x0});const _0x15fc6c=_0x15f178(),{rowInsertionRanges:_0x362e58,columnInsertionRanges:_0xcd5de4,insertionRanges:_0x2fded0,deletionRanges:_0x35b125,cells:_0x4e97a9}=_0x2eb5f3;_0x362e58['length']&&_0x2a021f['markMultiRangeInsertion'](_0x362e58,'tablePasteRow',{'tablePasteChainId':_0x15fc6c}),_0xcd5de4['length']&&_0x2a021f['markMultiRangeInsertion'](_0xcd5de4,'tablePasteColumn',{'tablePasteChainId':_0x15fc6c}),_0x2fded0['length']&&(_0x2a021f['markMultiRangeInsertion'](_0x2fded0,'tablePaste',{'tablePasteChainId':_0x15fc6c,'skipNestingCheck':!0x0}),_0x2fded0['forEach'](_0xf4fed2=>_0xf4fed2['detach']?.())),_0x35b125['length']&&(_0x2a021f['markMultiRangeDeletion'](_0x35b125,'tablePaste',{'tablePasteChainId':_0x15fc6c,'skipNestingCheck':!0x0}),_0x35b125['forEach'](_0x25c411=>_0x25c411['detach']?.()));const _0x45f8c8=_0x2a021f['markMultiRangeBlockFormat'](_0x4e97a9['map'](({element:_0x44f99c})=>_0x44f99c),{'formatGroupId':_0x15f178()},[],'tablePasteCell',{'tablePasteChainId':_0x15fc6c});if(_0x45f8c8){const _0x1df1fd=_0x45f8c8['getMarkers'](),_0x10b5d0=[];for(const {element:_0x2aace2,attributes:_0x412961}of _0x4e97a9){if(!_0x412961)continue;const _0x448d1d=_0x48efc8['model']['createRangeOn'](_0x2aace2),_0x24d0e8=_0x1df1fd['find'](_0x5bc3ed=>_0x5bc3ed['getRange']()['isEqual'](_0x448d1d));_0x24d0e8&&_0x10b5d0['push']([_0x24d0e8['name'],_0x412961]);}_0x10b5d0['length']&&_0x45f8c8['setAttribute']('markerAttributes',Object['fromEntries'](_0x10b5d0));}_0x2eb5f3=null;}));},{'priority':_0x39c6d3['high']+0xa}),_0x48efc8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1265bb,_0x3a112e)=>{const [_0xb7e3c3,_0x22b816,,_0x567d52]=_0x3a112e;if(!_0x2eb5f3)return;_0x1265bb['stop']();const _0x3ea1fd=_0xb7e3c3['cell'],_0x491e20=_0x22b816,_0x54ac7b=Pe(_0x3ea1fd),_0x173e64=Pe(_0x491e20);_0x1265bb['return']=_0x3ea1fd;let _0x3aab88=null,_0xdc4931=null;if(_0x173e64||_0x54ac7b){if(_0x54ac7b&&!_0x173e64){_0x567d52['remove'](_0x3ea1fd['getChild'](0x0));for(const _0x168e82 of Array['from'](_0x491e20['getChildren']()))_0x567d52['insert'](_0x168e82,_0x3ea1fd,'end');const _0x5439cc=_0x2eb5f3['rowInsertionIndexes']['includes'](_0xb7e3c3['row']),_0x546e3c=_0x2eb5f3['columnInsertionIndexes']['includes'](_0xb7e3c3['column']);_0x5439cc||_0x546e3c||(_0x3aab88=_0x1dfa9b['fromRange'](_0x567d52['createRangeIn'](_0x3ea1fd)));}else _0x173e64&&!_0x54ac7b&&(_0xdc4931=_0x567d52['createRangeIn'](_0x3ea1fd));}else{const _0x1b69b3=_0x567d52['createElement']('tableCellSuggestion'),_0x149f5d=_0x567d52['createElement']('tableCellSuggestion');_0x567d52['wrap'](_0x567d52['createRangeIn'](_0x3ea1fd),_0x149f5d),_0x567d52['insert'](_0x1b69b3,_0x3ea1fd,0x0);for(const _0x4cf729 of Array['from'](_0x491e20['getChildren']()))_0x567d52['insert'](_0x4cf729,_0x1b69b3,'end');_0x3aab88=_0x1dfa9b['fromRange'](_0x567d52['createRangeOn'](_0x1b69b3)),_0xdc4931=_0x1dfa9b['fromRange'](_0x567d52['createRangeOn'](_0x149f5d));}const _0x1f4f03=Array['from'](_0x491e20['getAttributes']())['filter'](([_0x6c7b64])=>ge['includes'](_0x6c7b64));_0x2eb5f3['cells']['push']({'element':_0x3ea1fd,'attributes':_0x1f4f03['length']?Object['fromEntries'](_0x1f4f03):null}),_0x3aab88&&_0x2eb5f3['insertionRanges']['push'](_0x3aab88),_0xdc4931&&_0x2eb5f3['deletionRanges']['push'](_0xdc4931);},{'priority':'high'}),_0x3cf727['on']('insertColumns',(_0x7d7afe,_0x404ffb)=>{const [_0x2d6c97,_0x293f98={}]=_0x404ffb;if(!_0x2eb5f3)return;const _0x356461=_0x293f98['at']||0x0,_0x2a0b2a=_0x293f98['columns']||0x1;_0x2eb5f3['columnInsertionIndexes']=new Array(_0x2a0b2a)['fill'](_0x356461)['map']((_0x2626d5,_0x4b4fe1)=>_0x2626d5+_0x4b4fe1);for(const {cell:_0x5121c0}of _0x3cf727['createTableWalker'](_0x2d6c97,{'startColumn':_0x356461,'endColumn':_0x356461+_0x2a0b2a-0x1}))_0x2eb5f3['columnInsertionRanges']['push'](_0x48efc8['model']['createRangeOn'](_0x5121c0));},{'priority':'low'}),_0x3cf727['on']('insertRows',(_0x244c3a,_0x5441c7)=>{const [_0x45b702,_0x4d2aeb={}]=_0x5441c7;if(!_0x2eb5f3)return;const _0x3bffba=_0x4d2aeb['at']||0x0,_0x32d706=_0x4d2aeb['rows']||0x1;_0x2eb5f3['rowInsertionIndexes']=new Array(_0x32d706)['fill'](_0x3bffba)['map']((_0x86e886,_0x48a163)=>_0x86e886+_0x48a163);for(const {cell:_0x19e272}of _0x3cf727['createTableWalker'](_0x45b702,{'startRow':_0x3bffba,'endRow':_0x3bffba+_0x32d706-0x1}))_0x2eb5f3['rowInsertionRanges']['push'](_0x48efc8['model']['createRangeOn'](_0x19e272));},{'priority':'low'}),_0x2a021f['descriptionFactory']['registerDescriptionCallback'](_0x24aa7d=>{if(_0x24aa7d['subType']&&_0x24aa7d['subType']['startsWith']('tablePaste'))return _0x24aa7d['previous']?{}:{'type':'insertion','content':o(_0x48efc8['locale'],'*Replace\x20table\x20cells*')};});const _0x5f4b6b=()=>!0x1;for(const _0x480b14 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2a021f['_suggestionFactory']['registerCustomCallback']('insertion',_0x480b14,'join',_0x5f4b6b),_0x2a021f['_suggestionFactory']['registerCustomCallback']('deletion',_0x480b14,'join',_0x5f4b6b),_0x2a021f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x480b14,'join',_0x5f4b6b);_0x2a021f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5f4b6b),_0x2a021f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa2c98e,_0x42be31,_0x22c1d8)=>{const _0x5ef546=_0xa2c98e['map'](_0x5d4a95=>_0x5d4a95['getContainedElement']())['filter'](_0x51eb23=>_0x51eb23),_0x496363=new Map(_0x5ef546['map'](_0x2369fa=>[_0x2369fa,null]));if(_0x2eb5f3){for(const {element:_0x385015,attributes:_0x3ec12b}of _0x2eb5f3['cells'])_0x3ec12b&&_0x496363['set'](_0x385015,_0x3ec12b);}else{if(_0x22c1d8&&_0x22c1d8['markerAttributes'])for(const [_0x233c66,_0x36ce94]of Object['entries'](_0x22c1d8['markerAttributes'])){const _0x367484=_0x48efc8['model']['markers']['get'](_0x233c66),_0x58c17b=_0x367484?_0x367484['getRange']()['getContainedElement']():null;_0x58c17b&&_0x496363['set'](_0x58c17b,_0x36ce94);}}_0x48efc8['model']['change'](_0x26d81e=>{for(const [_0x149374,_0x5530fa]of _0x496363)_0x26d81e['setAttributes']({...Ce,..._0x5530fa},_0x149374);});});const _0x35603f=(_0x558d39,_0x56d148)=>{_0x2a021f['_suggestionFactory']['registerCustomCallback'](_0x558d39,'tablePaste',_0x56d148,(_0x3b316f,_0x52f2ef,_0x2ff548)=>{_0x48efc8['model']['change'](_0x902ab=>{const _0x2f40ed=[];for(const _0x16540b of _0x3b316f){const _0x6939f8=_0x16540b['start']['nodeAfter'];_0x6939f8['is']('element','tableCellSuggestion')&&_0x2f40ed['push'](_0x6939f8);}_0x2a021f['_suggestionFactory']['getSuggestionCallback'](_0x558d39,null,_0x56d148)(_0x3b316f,_0x52f2ef,_0x2ff548);for(const _0x56bc08 of _0x2f40ed)'$graveyard'!=_0x56bc08['root']['rootName']&&_0x902ab['unwrap'](_0x56bc08);});});};_0x35603f('insertion','accept'),_0x35603f('insertion','discard'),_0x35603f('deletion','accept'),_0x35603f('deletion','discard'),_0x2a021f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4c264d=>{const _0xeb3ed7=_0x4c264d['map'](_0x1b92c7=>_0x1b92c7['getContainedElement']()),_0x1584b4=_0xeb3ed7[0x0]['findAncestor']('table'),{minRow:_0x2fed79,maxRow:_0x2eb8a2}=_0x59aef4['_getCoordsForCells'](_0xeb3ed7);_0x3cf727['removeRows'](_0x1584b4,{'at':_0x2fed79,'rows':_0x2eb8a2-_0x2fed79+0x1});}),_0x2a021f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x36c1a6=>{const _0x239748=_0x36c1a6['map'](_0x4633f9=>_0x4633f9['getContainedElement']()),_0x4f3010=_0x239748[0x0]['findAncestor']('table'),{minColumn:_0x394307,maxColumn:_0x2382ef}=_0x59aef4['_getCoordsForCells'](_0x239748);_0x3cf727['removeColumns'](_0x4f3010,{'at':_0x394307,'columns':_0x2382ef-_0x394307+0x1});});const _0xaecdd1=(_0x341fac,_0x3d2d9f)=>{if(!_0x3d2d9f['subType']||!_0x3d2d9f['subType']['startsWith']('tablePaste'))return;const _0x196de2=_0x3d2d9f['attributes']['tablePasteChainId'],_0x43f750=_0x2a021f['getSuggestions']()['filter'](_0x4ea797=>_0x4ea797['isInContent']&&_0x4ea797['attributes']&&_0x4ea797['attributes']['tablePasteChainId']==_0x196de2);_0x43f750['length']&&_0x3d2d9f['getAllAdjacentSuggestions']()['length']!=_0x43f750['length']&&_0x43f750['reduce']((_0x487461,_0x2b5ea7)=>(_0x487461['next']=_0x2b5ea7,_0x2b5ea7['previous']=_0x487461,_0x2b5ea7));};function _0x50d717(_0x3be89f,_0x134764=!0x0){const {id:_0x24c28e}=_0x2a021f['_splitMarkerName'](_0x3be89f['markerName']),_0x1c31b0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3efe8e=_0x2a021f['activeMarkers']['includes'](_0x3be89f['markerName']);return _0x3efe8e&&_0x1c31b0['push']('ck-suggestion-marker--active'),{'classes':_0x1c31b0,'attributes':{'data-suggestion':_0x24c28e},'priority':_0x3efe8e&&_0x134764?0xbc2:0xbb8};}_0x2a021f['on']('suggestionLoaded',_0xaecdd1,{'priority':'high'}),_0x2a021f['on']('suggestionUnloaded',_0xaecdd1,{'priority':'high'}),_0x48efc8['model']['document']['registerPostFixer'](()=>{let _0x3224fe=!0x1;const _0x581d12=Array['from'](_0x48efc8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b0b4c,data:_0x3cdf14}of _0x581d12){const {group:_0x248da8,type:_0x1add98,id:_0x4069a3}=_0x2a021f['_splitMarkerName'](_0x3b0b4c);if('suggestion'!=_0x248da8||'deletion'!=_0x1add98||_0x3cdf14['oldRange'])continue;if(!_0x2a021f['hasSuggestion'](_0x4069a3))continue;const _0x1c0ef5=_0x2a021f['getSuggestion'](_0x4069a3)['getRanges'](),_0x199699=_0x48efc8['plugins']['get']('Users')['me'];for(const _0x49a30a of _0x2a021f['getSuggestions']()){if(!_0x49a30a['isInContent']||_0x49a30a['author']!=_0x199699)continue;if('formatBlock'!=_0x49a30a['type']||'tablePasteCell'!=_0x49a30a['subType'])continue;if(_0x49a30a['getRanges']()['every'](_0x15555c=>_0x1c0ef5['some'](_0x4c7750=>_0x4c7750['containsRange'](_0x15555c,!0x0)))){for(const _0x48115b of _0x49a30a['getAllAdjacentSuggestions']())_0x48115b['isInContent']&&(_0x48115b['discard'](),_0x3224fe=!0x0);}}}return _0x3224fe;}),_0x48efc8['model']['document']['registerPostFixer'](_0x241cdd=>{const _0x5a4cf8=_0x48efc8['commands']['get']('redo');if(!_0x5a4cf8||!_0x5a4cf8['_createdBatches']['has'](_0x241cdd['batch']))return!0x1;let _0xd52ed5=!0x1;const _0x1f52dc=_0x48efc8['plugins']['get']('Users')['me'],_0x3cfab6=_0x48efc8['model']['document']['differ']['getChanges'](),_0x42a719=Array['from'](_0x48efc8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4860bf,data:_0x441780})=>{const {group:_0x1e7a47,subType:_0x3c197f,authorId:_0x46f422}=_0x2a021f['_splitMarkerName'](_0x4860bf);return'suggestion'==_0x1e7a47&&'tablePaste'==_0x3c197f&&_0x46f422==_0x1f52dc['id']&&!_0x441780['oldRange'];});for(const _0x421d71 of _0x3cfab6){if('insert'!=_0x421d71['type']||'tableCellSuggestion'!=_0x421d71['name']||0x1!=_0x421d71['length'])continue;const _0x5835a7=_0x241cdd['createRange'](_0x421d71['position'],_0x421d71['position']['getShiftedBy'](0x1));if(!_0x42a719['find'](({data:_0xac75dd})=>_0xac75dd['newRange']['isEqual'](_0x5835a7))){for(const {name:_0x5410bf,data:_0xcee40d}of _0x42a719)if(_0x5835a7['containsRange'](_0xcee40d['newRange'])){_0x241cdd['updateMarker'](_0x5410bf,{'range':_0x5835a7}),_0xd52ed5=!0x0;break;}}}return _0xd52ed5;}),_0x48efc8['model']['document']['registerPostFixer'](_0x2e858c=>{let _0x13b5e2=!0x1;const _0x54f17e=_0x48efc8['plugins']['get']('Users')['me'],_0x24217a=_0x2a021f['getSuggestions']()['filter'](_0x162d06=>_0x162d06['isInContent']&&_0x162d06['author']==_0x54f17e),_0x4d3a44=new Set(),_0x52ac9f=new Set();for(const _0x32efaf of _0x24217a)if('tablePaste'==_0x32efaf['subType'])for(const _0x4bbf6e of _0x32efaf['getMarkers']()){const _0x2f672e=_0x4bbf6e['getRange']()['getContainedElement']();if(_0x2f672e){if(_0x2f672e['is']('element','tableCellSuggestion')&&Pe(_0x2f672e)){_0x32efaf['removeMarker'](_0x4bbf6e['name']),_0x4d3a44['add'](_0x2f672e),_0x13b5e2=!0x0;const _0x2ed30a=_0x2f672e['nextSibling'],_0xaf74e3=_0x2f672e['previousSibling'],_0x1ec49c=_0x2ed30a&&_0x2ed30a['is']('element','tableCellSuggestion'),_0x9b62d=_0xaf74e3&&_0xaf74e3['is']('element','tableCellSuggestion');_0x1ec49c&&!_0x4d3a44['has'](_0x2ed30a)&&_0x52ac9f['add'](_0x2ed30a),_0x9b62d&&!_0x4d3a44['has'](_0xaf74e3)&&_0x52ac9f['add'](_0xaf74e3);}else _0x2f672e['is']('element','paragraph')&&_0x2f672e['isEmpty']&&(_0x32efaf['removeMarker'](_0x4bbf6e['name']),_0x13b5e2=!0x0);}}else{if('tablePasteCell'==_0x32efaf['subType']){if(!_0x32efaf['attributes']||!_0x32efaf['attributes']['tablePasteChainId'])continue;const _0x27420c=_0x32efaf['attributes']['markerAttributes'];if(_0x27420c&&Object['keys'](_0x27420c)['length'])continue;const _0x8104e0=_0x32efaf['attributes']['tablePasteChainId'];let _0x281a69=!0x0,_0xddf322=!0x0;for(const _0x324ad4 of _0x24217a)if(_0x324ad4['subType']&&_0x324ad4['subType']['startsWith']('tablePaste')){if(!_0x324ad4['attributes']['tablePasteChainId']){_0xddf322=!0x1;break;}if(_0x324ad4['id']!=_0x32efaf['id']&&_0x324ad4['attributes']['tablePasteChainId']==_0x8104e0){_0x281a69=!0x1;break;}}_0xddf322&&_0x281a69&&(_0x32efaf['removeMarkers'](),_0x13b5e2=!0x0);}}for(const _0x2f8b54 of _0x4d3a44)_0x2e858c['remove'](_0x2f8b54);for(const _0x24bcba of _0x52ac9f)_0x2e858c['unwrap'](_0x24bcba);return _0x13b5e2;}),_0x48efc8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3959d7,_0x5a88a1)=>_0x50d717(_0x3959d7),'converterPriority':'high'}),_0x48efc8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5a8e70,_0x729dc5)=>_0x729dc5['options']['showSuggestionHighlights']?_0x50d717(_0x5a8e70,!0x1):null,'converterPriority':'high'});const _0x1db0ca=_0x48efc8['editing']['view'];this['listenTo'](_0x1db0ca['document'],'clipboardOutput',(_0x44298c,_0x4f52b0)=>{const _0xf1be42=[];for(const _0x2c2fc7 of _0x1db0ca['createRangeIn'](_0x4f52b0['content'])['getItems']())_0x2c2fc7['is']('element','suggestion-td')&&_0xf1be42['push'](_0x2c2fc7);_0x1db0ca['change'](_0x200ff8=>{for(const _0x516ac2 of _0xf1be42)_0x200ff8['move'](_0x200ff8['createRangeIn'](_0x516ac2),_0x200ff8['createPositionBefore'](_0x516ac2)),_0x200ff8['remove'](_0x516ac2);});});}}function Pe(_0x16a117){if(_0x16a117['isEmpty'])return!0x0;const _0x14bb01=_0x16a117['getChild'](0x0);return _0x14bb01['is']('element','paragraph')&&_0x14bb01['isEmpty'];}function he(_0x1acadf,_0x1e5c2d={},_0x3a42aa){for(const {isAnchor:_0x27c50d,cellHeight:_0x2e4899,cellWidth:_0x3407fa}of _0x3a42aa['createTableWalker'](_0x1acadf,{'includeAllSlots':!0x0,..._0x1e5c2d}))if(!_0x27c50d||0x1!=_0x2e4899||0x1!=_0x3407fa)return!0x1;return!0x0;}class vt extends _0x427f36{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3cbee9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cbee9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3cbee9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3cbee9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3cbee9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3cbee9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3cbee9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5dcb96,_0x4aaafa){const _0xda76af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b363e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x48bab2=_0x4aaafa['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5ddb57=_0x3b363e['getColumnGroupElement'](_0x48bab2);let _0xfbee09=_0x5ddb57?_0x3b363e['getTableColumnsWidths'](_0x5ddb57):null,_0x4e112d=_0x48bab2['getAttribute']('tableWidth')||null;const _0x17367f=_0x4aaafa['tableWidth']||_0x4e112d,_0x4c2f6e=_0x4aaafa['columnWidths']||_0xfbee09,_0x2c5338=this['editor']['plugins']['get']('Users')['me'];for(const _0x42c9af of _0xda76af['getSuggestions']()){const _0x2c628e=_0x42c9af['getContainedElement']();if('resizeTable'===_0x42c9af['subType']&&_0x2c628e===_0x48bab2){_0x42c9af['author']!==_0x2c5338&&_0x42c9af['discard']();const _0x1aa59a=_0x42c9af['data']['commandParams'];_0x4e112d=_0x1aa59a[0x0]['tableWidth'],_0xfbee09=_0x1aa59a[0x0]['columnWidths'];break;}}_0x5dcb96({'table':_0x48bab2,'tableWidth':_0x17367f,'columnWidths':_0x4c2f6e}),_0xda76af['markBlockFormat'](_0x48bab2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e112d,'columnWidths':_0xfbee09}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x49df1c){if('formatBlock'!=_0x49df1c['type']&&'formatInline'!=_0x49df1c['type'])return;const {data:_0x4fd1dc}=_0x49df1c;if(_0x4fd1dc&&'resizeTable'===_0x4fd1dc['formatGroupId']){const _0x1c94c1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1c94c1)};}}}class Ct extends _0x427f36{['afterInit'](){const _0x37a505=this['editor'];_0x37a505['plugins']['has']('Template')&&_0x37a505['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x427f36{['afterInit'](){const _0x262537=this['editor'];if(!_0x262537['commands']['get']('insertTableOfContents'))return;_0x262537['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d3819=_0x262537['plugins']['get']('TrackChangesEditing'),_0x35856c=_0x262537['locale'];_0x4d3819['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2af719=>o(_0x35856c,'ELEMENT_TABLE_OF_CONTENTS',_0x2af719));}}class Dt extends _0x427f36{['afterInit'](){const _0x5d638e=this['editor'];if(!_0x5d638e['plugins']['has']('Title'))return;const _0x4485d0=_0x5d638e['plugins']['get']('TrackChangesEditing');_0x4485d0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5d638e['locale'],'ELEMENT_TITLE')),_0x5d638e['model']['document']['registerPostFixer'](_0x4270b9=>{let _0x4bb239=!0x1;const _0x12c072=Array['from'](_0x5d638e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56378f,data:_0x2e325c}of _0x12c072){const {group:_0x3ca8b6}=_0x4485d0['_splitMarkerName'](_0x56378f);if('suggestion'!==_0x3ca8b6||!_0x2e325c['newRange'])continue;const _0x401bc4=_0x2e325c['newRange'],_0x47fa19=_0x401bc4['end']['nodeBefore'];if(!_0x47fa19||!_0x47fa19['is']('element','title-content'))continue;if(!_0x401bc4['start']['isTouching'](_0x401bc4['end']))continue;const _0x1aeba4=_0x5d638e['model']['schema']['getNearestSelectionRange'](_0x401bc4['end'],'forward');if(_0x1aeba4&&_0x1aeba4['isCollapsed']){const _0x107f1a=_0x4270b9['createRange'](_0x401bc4['start'],_0x1aeba4['start']);_0x107f1a['isEqual'](_0x401bc4)||(_0x4270b9['updateMarker'](_0x56378f,{'range':_0x107f1a}),_0x4bb239=!0x0);}_0x4bb239||(_0x4270b9['removeMarker'](_0x56378f),_0x4bb239=!0x0);}return _0x4bb239;});}}class Nt extends _0x427f36{['afterInit'](){const _0x556ce5=this['editor'],_0x275865=_0x556ce5['plugins']['get']('TrackChangesEditing');_0x556ce5['plugins']['has']('UndoEditing')&&(_0x275865['enableCommand']('undo'),_0x275865['enableCommand']('redo'));}}class Mt extends _0x427f36{static get['requires'](){return[jt];}['afterInit'](){const _0x2ffc82=this['editor'];if(!_0x2ffc82['plugins']['has']('TableCaptionEditing'))return;_0x2ffc82['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x427f36{['tableProperties'];['tableCellProperties'];constructor(_0x54fd43){super(_0x54fd43),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 _0x3714a7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x39bd35 of this['tableProperties'])_0x3714a7['enableCommand'](_0x39bd35,(_0x16e5e9,_0x43d6b5)=>{const _0x4cc801=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x39bd35,[_0x4cc801],this['tableProperties'],'tableProperties',_0x16e5e9,_0x43d6b5);});_0x3714a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3714a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3714a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x443bfb,_0x59d32c)=>this['handleDiscardAction'](this['tableProperties'],_0x443bfb,_0x59d32c)),_0x3714a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5513a5 of this['tableCellProperties'])_0x3714a7['enableCommand'](_0x5513a5,(_0x294080,_0x3dc1f8)=>{const _0xf80826=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5513a5,_0xf80826,this['tableCellProperties'],'tableCellProperties',_0x294080,_0x3dc1f8);});_0x3714a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3714a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3714a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x26ed2e,_0x168875)=>this['handleDiscardAction'](this['tableCellProperties'],_0x26ed2e,_0x168875)),_0x3714a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3714a7['descriptionFactory']['registerDescriptionCallback'](_0x405937=>this['handleSuggestionDescription'](_0x405937));}['_handlePropertyChange'](_0xb26072,_0x27914b,_0x193ba0,_0x8d2fdd,_0x3536e8,_0x30b186){const _0x5ceab9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30b186['batch'],()=>{for(const _0x678742 of _0x27914b){if(this['_getSuggestion'](_0x678742,_0x8d2fdd))_0x3536e8(_0x30b186);else{const _0x4b413c={};for(const _0x21872c of _0x193ba0){const _0xb2938f=_0x678742['getAttribute'](_0x21872c);void 0x0!==_0xb2938f&&(_0x4b413c[_0x21872c]=_0xb2938f);}_0x3536e8(_0x30b186),_0x5ceab9['markBlockFormat'](_0x678742,{'commandParams':[_0x4b413c]},[],_0x8d2fdd);}}});}['handleDiscardAction'](_0x578839,_0x18f964,_0x25d529){const _0x290801=_0x18f964[0x0]['start']['nodeAfter'],_0x57feab=_0x25d529['commandParams'][0x0];this['editor']['model']['change'](_0x4644b1=>{for(const _0x39bf04 of _0x578839)void 0x0!==_0x57feab[_0x39bf04]?_0x4644b1['setAttribute'](_0x39bf04,_0x57feab[_0x39bf04],_0x290801):_0x4644b1['removeAttribute'](_0x39bf04,_0x290801);});}['handleSuggestionDescription'](_0x53e0e5){if(_0x53e0e5['data'])switch(_0x53e0e5['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'](_0x5fa952,_0x5524ad){const _0x57406a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x538357 of _0x57406a['getSuggestions']({'skipNotAttached':!0x0})){const _0x4dde63=_0x538357['getContainedElement']();if(_0x538357['subType']===_0x5524ad&&_0x4dde63===_0x5fa952)return _0x538357;}return null;}}const m='$elementName';class p extends _0x427f36{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x394f1a,_0x176788,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x216daa){function _0x7b0a45(_0x1b5c50){return _0x1b5c50['map'](_0x5723e4=>String['fromCharCode'](_0x5723e4))['join']('');}super(_0x216daa),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x271e1b,_0x539058,_0xbe5d4c,_0x13585f)=>{this['_model']['change'](()=>{for(const _0x5ed35a of[..._0x13585f,..._0xbe5d4c])this['_model']['markers']['has'](_0x5ed35a)&&_0x216daa['editing']['reconvertMarker'](_0x5ed35a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x216daa['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(),_0x216daa['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x216daa['config']['get']('trackChanges.trackFormatChanges'),_0x216daa['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x216daa['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x216daa,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x7b0a45([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x7b0a45([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x30]);}['init'](){const _0x2b51a9=this['editor'],_0x1b7423=(_0xe12f76,_0x346eae)=>{if('attribute'!=_0xe12f76)return'ck-suggestion-marker-'+_0xe12f76;const _0x1b10f2=_0x346eae['split']('|')[0x0];return this['_isBlockAttribute'](_0x1b10f2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2b51a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x16913d=>{const {id:_0x21c132,type:_0x567b97,subType:_0x2e3148}=this['_splitMarkerName'](_0x16913d['markerName']),_0x6211f4=['ck-suggestion-marker',_0x1b7423(_0x567b97,_0x2e3148)];let _0x31db5d=0xbb8;return this['activeMarkers']['includes'](_0x16913d['markerName'])&&(_0x6211f4['push']('ck-suggestion-marker--active'),_0x31db5d=0xbc2),'deletion'==_0x567b97&&(_0x31db5d+=0x5),{'classes':_0x6211f4,'attributes':{'data-suggestion':_0x21c132},'priority':_0x31db5d};}}),_0x2b51a9['conversion']['for']('dataDowncast')['add'](_0x20d47b=>{_0x20d47b['on']('addMarker:suggestion',(_0x56f058,_0x2606b6,_0x1d8f6b)=>{if(!_0x1d8f6b['options']['showSuggestionHighlights'])return;const _0x5173c5=_0x2606b6['item'];if(!_0x5173c5)return;const _0x27d763=_0x1d8f6b['mapper']['toViewElement'](_0x5173c5);_0x2b51a9['model']['schema']['isObject'](_0x5173c5)&&_0x27d763&&!_0x27d763['getCustomProperty']('widget')&&_0x27d763['is']('containerElement')&&_0x32603c(_0x27d763,_0x1d8f6b['writer']);},{'priority':'high'});}),_0x2b51a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x454f83,_0x3934ff)=>{if(!_0x3934ff['options']['showSuggestionHighlights'])return null;const {type:_0x5f49eb,subType:_0x278b0b}=this['_splitMarkerName'](_0x454f83['markerName']);return{'classes':['ck-suggestion-marker',_0x1b7423(_0x5f49eb,_0x278b0b)],'priority':0xbb8};}});const _0x54c220=({showActiveMarkers:_0x1c3075=!0x0,isAttributeSuggestion:_0x451d38=!0x1}={})=>(_0x12d571,_0x49f997,_0x291c24)=>{if(!_0x49f997['item'])return;const {id:_0x4dd16f}=this['_splitMarkerName'](_0x49f997['markerName']);if(_0x451d38){const _0x34c9f4=this['_suggestions']['get'](_0x4dd16f),_0x527971=this['_getAttributeKey'](_0x34c9f4);if(!this['_isBlockAttribute'](_0x527971))return;}if(_0x49f997['item']['is']('selection'))return void _0x291c24['consumable']['consume'](_0x49f997['item'],_0x12d571['name']);const _0x3fae1d=_0x291c24['mapper']['toViewElement'](_0x49f997['item']);if(_0x49f997['item']['is']('element')&&_0x2b51a9['model']['schema']['isBlock'](_0x49f997['item'])&&!_0x3fae1d['getCustomProperty']('addHighlight')){_0x291c24['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3fae1d),_0x291c24['writer']['setAttribute']('data-suggestion',_0x4dd16f,_0x3fae1d),_0x291c24['mapper']['bindElementToMarker'](_0x3fae1d,_0x49f997['markerName']),_0x1c3075&&(this['activeMarkers']['includes'](_0x49f997['markerName'])?_0x291c24['writer']['addClass']('ck-suggestion-marker--active',_0x3fae1d):_0x291c24['writer']['removeClass']('ck-suggestion-marker--active',_0x3fae1d));for(const _0x75cea6 of _0x2b51a9['model']['createRangeIn'](_0x49f997['item'])['getItems']())_0x291c24['consumable']['consume'](_0x75cea6,_0x12d571['name']);_0x291c24['consumable']['consume'](_0x49f997['item'],_0x12d571['name']);}};_0x2b51a9['conversion']['for']('dataDowncast')['add'](_0x357f8e=>{_0x357f8e['on']('addMarker:suggestion:formatBlock',(_0x4f166e,_0x4c1f09,_0x45e722)=>{_0x45e722['options']['showSuggestionHighlights']&&_0x54c220({'showActiveMarkers':!0x1})(_0x4f166e,_0x4c1f09,_0x45e722);},{'priority':'highest'});}),_0x2b51a9['conversion']['for']('dataDowncast')['add'](_0x18cd25=>{_0x18cd25['on']('addMarker:suggestion:attribute',(_0xbc1486,_0x5dc7c1,_0x211bd4)=>{_0x211bd4['options']['showSuggestionHighlights']&&_0x54c220({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xbc1486,_0x5dc7c1,_0x211bd4);},{'priority':'highest'});}),_0x2b51a9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1a0823,_0x3aef80)=>_0x3aef80['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1a0823['substr'](0xb)}}),_0x2b51a9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a9a7c,{writer:_0x1dd776})=>{let _0x1140fd='suggestion:'+_0x4a9a7c['getAttribute']('suggestion-type')+':'+_0x4a9a7c['getAttribute']('id');return _0x4a9a7c['getAttribute']('marker-count')&&(_0x1140fd+=':'+_0x4a9a7c['getAttribute']('marker-count')),_0x1dd776['createElement']('$marker',{'data-name':_0x1140fd});}}),_0x2b51a9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2b51a9['conversion']['for']('editingDowncast')['add'](_0x59b768=>{_0x59b768['on']('addMarker:suggestion:formatBlock',_0x54c220(),{'priority':'high'});}),_0x2b51a9['conversion']['for']('editingDowncast')['add'](_0xb44674=>{_0xb44674['on']('addMarker:suggestion:attribute',_0x54c220({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2b51a9['conversion']['for']('editingDowncast')['add'](_0x25794c=>{_0x25794c['on']('removeMarker:suggestion:formatBlock',(_0x381d72,_0x422b95,_0x3af8c3)=>{const _0x460e14=_0x3af8c3['mapper']['markerNameToElements'](_0x422b95['markerName']);if(_0x460e14){for(const _0x33ea48 of _0x460e14)_0x33ea48['getCustomProperty']('addHighlight')||(_0x3af8c3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x33ea48),_0x3af8c3['writer']['removeAttribute']('data-suggestion',_0x33ea48),_0x3af8c3['mapper']['unbindElementFromMarkerName'](_0x33ea48,_0x422b95['markerName']));}},{'priority':'high'});}),_0x2b51a9['conversion']['for']('editingDowncast')['add'](_0x432832=>{_0x432832['on']('removeMarker:suggestion:attribute',(_0x4abe7b,_0x39f6cc,_0x2352f2)=>{const _0x320e9a=_0x2352f2['mapper']['markerNameToElements'](_0x39f6cc['markerName']);if(!_0x320e9a)return;const {id:_0x1c6d2f}=this['_splitMarkerName'](_0x39f6cc['markerName']),_0x1fadf7=this['_suggestions']['get'](_0x1c6d2f),_0x130299=this['_getAttributeKey'](_0x1fadf7);if(this['_isBlockAttribute'](_0x130299)){for(const _0x37f829 of _0x320e9a)_0x37f829['getCustomProperty']('addHighlight')||(_0x2352f2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37f829),_0x2352f2['writer']['removeAttribute']('data-suggestion',_0x37f829),_0x2352f2['mapper']['unbindElementFromMarkerName'](_0x37f829,_0x39f6cc['markerName']));}},{'priority':'high'});}),_0x2b51a9['model']['document']['registerPostFixer'](_0x575912=>{let _0xbb1034=!0x1;const _0x32e78c=Array['from'](_0x2b51a9['model']['document']['differ']['getChangedMarkers']()),_0x2b9bea=new Set();for(const {name:_0x18444d,data:_0x5ebcfc}of _0x32e78c){const {group:_0x375163,type:_0x5a8bf0,subType:_0x48cc72,id:_0x2c69d1}=this['_splitMarkerName'](_0x18444d);if('suggestion'!==_0x375163)continue;const _0x5d0f85=this['_suggestions']['get'](_0x2c69d1);if(null!=_0x5ebcfc['newRange']){'formatInline'==_0x5a8bf0&&(_0xbb1034=_0xbb1034||Et(_0x5ebcfc['newRange'],_0x18444d,_0x575912,_0x2b51a9['model']['schema']));const _0x1a03b9='attribute'==_0x5a8bf0&&this['_isBlockAttribute'](_0x48cc72['split']('|')[0x0]);if(_0x5ebcfc['newRange']['isCollapsed']||'$graveyard'==_0x5ebcfc['newRange']['root']['rootName']||'formatBlock'==_0x5a8bf0&&!Ut(_0x5ebcfc['newRange'])||_0x1a03b9&&!Ut(_0x5ebcfc['newRange'])||'deletion'==_0x5a8bf0&&!(!Tt(_0x11b2c4=_0x5ebcfc['newRange'])&&!function(_0x3981e8){return _0x3981e8['start']['parent']==_0x3981e8['end']['nodeBefore']&&_0x3981e8['start']['isAtEnd'];}(_0x11b2c4)))_0x575912['removeMarker'](_0x18444d),_0xbb1034=!0x0;else{if(!_0x5d0f85||!_0x5d0f85['isInContent'])continue;_0x2b9bea['add'](_0x5d0f85);}}}var _0x11b2c4;return _0x2b9bea['size']>0x0&&(_0xbb1034=!!this['_joinWithAdjacentSuggestions'](_0x2b9bea)||_0xbb1034),_0xbb1034;}),_0x2b51a9['model']['document']['registerPostFixer'](_0xd67d63=>{let _0x310739=!0x1;for(const _0x25e970 of _0x2b51a9['model']['document']['differ']['getChanges']())if('insert'==_0x25e970['type'])for(const _0x1449f2 of this['_suggestions']['values']()){if(_0x1449f2['isMultiRange']||!_0x1449f2['isInContent'])continue;const _0x535b9a='formatBlock'==_0x1449f2['type'],_0x2c5a05=this['_getAttributeKey'](_0x1449f2),_0x421473=_0x2c5a05&&this['_isBlockAttribute'](_0x2c5a05);if(!_0x535b9a&&!_0x421473)continue;const _0x2127f8=_0x1449f2['getFirstRange']();if(_0x2127f8['start']['parent']!=_0x2127f8['end']['parent']&&!_0x2127f8['end']['isAtEnd']){const _0x360931=_0x2b51a9['model']['createPositionAt'](_0x2127f8['start']['nodeAfter'],'end'),_0x1faa2e=_0x2b51a9['model']['createRange'](_0x2127f8['start'],_0x360931);_0xd67d63['updateMarker'](_0x1449f2['getFirstMarker'](),{'range':_0x1faa2e}),_0x310739=!0x0;}}return _0x310739;}),_0x2b51a9['model']['document']['registerPostFixer'](_0x183ffb=>this['_processAttributeChanges'](_0x183ffb)),_0x2b51a9['model']['document']['registerPostFixer'](_0x2ece15=>!_0x2ece15['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2ece15)),_0x2b51a9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2b51a9['model']['document']['on']('change:data',(_0x5b0d83,_0x523dc4)=>{if(!_0x523dc4['isLocal']||_0x523dc4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3da753=_0x2b51a9['model']['document']['differ']['getChanges']();if(0x0==_0x3da753['length'])return;const _0x20ecfa=[],_0x2994fa=_0x3da753['filter'](_0x4c1334=>'attribute'==_0x4c1334['type']),_0x263f18=_0x3da753['filter'](_0xdbfbc4=>'insert'==_0xdbfbc4['type']&&'$text'!=_0xdbfbc4['name']);for(const _0x164dc0 of _0x2994fa)this['_isRegisteredAttribute'](_0x164dc0['attributeKey'])&&_0x20ecfa['push']({'key':_0x164dc0['attributeKey'],'newValue':_0x164dc0['attributeNewValue'],'oldValue':_0x164dc0['attributeOldValue'],'range':Ot(_0x164dc0['range'],_0x2b51a9['model'])});for(const _0x282402 of _0x263f18){if('rename'!=_0x282402['action']&&'refresh'!=_0x282402['action'])continue;const _0x1610ff=Gt(_0x282402['position']['nodeAfter'],_0x2b51a9['model']),_0x2efd11=_0x282402['before'];'rename'==_0x282402['action']&&_0x20ecfa['push']({'key':m,'newValue':_0x282402['name'],'oldValue':_0x2efd11['name'],'range':_0x1610ff});for(const [_0x48476a,_0x296ff9]of _0x2efd11['attributes']){if(!this['_isRegisteredAttribute'](_0x48476a))continue;const _0x53d48f=_0x282402['attributes']['get'](_0x48476a);_0x296ff9!==_0x53d48f&&_0x20ecfa['push']({'key':_0x48476a,'newValue':_0x53d48f,'oldValue':_0x296ff9,'range':_0x1610ff});}for(const [_0x5ee24e,_0x7a8324]of _0x282402['attributes'])this['_isRegisteredAttribute'](_0x5ee24e)&&(_0x2efd11['attributes']['has'](_0x5ee24e)||_0x20ecfa['push']({'key':_0x5ee24e,'newValue':_0x7a8324,'oldValue':null,'range':_0x1610ff}));}0x0!=_0x20ecfa['length']&&_0x2b51a9['model']['enqueueChange'](_0x523dc4,_0x4e35fa=>{const _0x436624=_0x15f178();for(const {range:_0x190edf,key:_0x84dbbf,oldValue:_0x861fe2,newValue:_0x58a9f7}of _0x20ecfa)this['markAttributeChange'](_0x190edf,_0x84dbbf,_0x861fe2,_0x58a9f7,{'groupId':_0x436624});this['_reduceExistingSuggestions'](_0x4e35fa,_0x20ecfa);});},{'priority':'lowest'}),_0x2b51a9['model']['markers']['on']('update:suggestion',(_0x348afb,_0x4caf7b,_0x547b0e)=>{if(null==_0x547b0e){const {id:_0x415268}=this['_splitMarkerName'](_0x4caf7b['name']),_0x53f34d=this['_suggestions']['get'](_0x415268);_0x53f34d&&_0x53f34d['addMarkerName'](_0x4caf7b['name']);}}),_0x2b51a9['model']['document']['on']('change:data',()=>{const _0x394491=Array['from'](_0x2b51a9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x427761=>'suggestion'===this['_splitMarkerName'](_0x427761['name'])['group']);if(0x0===_0x394491['length'])return;_0x394491['sort']((_0x5d02b5,_0x40bfff)=>{const _0x6fc80=_0x5d02b5['data']['oldRange'],_0x225ae5=_0x40bfff['data']['oldRange'];return null===_0x6fc80&&null===_0x225ae5?0x0:null===_0x6fc80&&null!==_0x225ae5?-0x1:null!==_0x6fc80&&null===_0x225ae5?0x1:_0x6fc80['start']['isBefore'](_0x225ae5['start'])?-0x1:0x1;});const _0x928249=new Set(),_0x4b9ce9=new Set();for(const {name:_0x541b5f,data:_0x4324b2}of _0x394491){const {id:_0x56880c}=this['_splitMarkerName'](_0x541b5f);if(null===_0x4324b2['oldRange']){const _0x34e6f1=this['_handleNewSuggestionMarker'](_0x541b5f);_0x4b9ce9['add'](_0x34e6f1);}else{const _0x92fe8c=this['_suggestions']['get'](_0x56880c);null!==_0x4324b2['newRange']||_0x92fe8c['isInContent']?(_0x928249['add'](_0x92fe8c['head']),_0x4b9ce9['add'](_0x92fe8c)):this['_removeSuggestion'](_0x92fe8c);}}_0x4b9ce9['size']>0x0&&this['_refreshSuggestionsChain'](_0x4b9ce9);for(const _0x560065 of _0x928249)this['fire']('suggestionChanged',_0x560065);}),_0x2b51a9['model']['on']('applyOperation',(_0x1a7dba,_0x50f194)=>{const _0x14643e=_0x50f194[0x0];if(!this['_suggestions']['size'])return;if(!_0x14643e['isDocumentOperation'])return;if(_0x14643e['batch']['isUndo']||!_0x14643e['batch']['isLocal'])return;let _0x4a7622,_0x353c1e;switch(_0x14643e['type']){case'insert':_0x4a7622=_0x2b51a9['model']['createPositionAt'](_0x14643e['position']),_0x353c1e=_0x4a7622['getShiftedBy'](_0x14643e['howMany']);break;case'split':_0x4a7622=_0x2b51a9['model']['createPositionAt'](_0x14643e['splitPosition']),_0x353c1e=_0x2b51a9['model']['createPositionAt'](_0x14643e['moveTargetPosition']);break;case'move':_0x4a7622=_0x2b51a9['model']['createPositionAt'](_0x14643e['targetPosition']),_0x353c1e=_0x4a7622['getShiftedBy'](_0x14643e['howMany']);break;default:return;}const _0xddd043=_0x2b51a9['model']['createRange'](_0x4a7622,_0x353c1e);_0x2b51a9['model']['change'](()=>{for(const {suggestion:_0x2e8acf,meta:_0x385a58}of this['_findSuggestions'](_0xddd043)){if(_0x2e8acf['isMultiRange'])continue;if('formatInline'==_0x2e8acf['type'])continue;const _0x55ceb1=this['_getAttributeKey'](_0x2e8acf);if(_0x55ceb1&&this['_isBlockAttribute'](_0x55ceb1)&&'split'!=_0x14643e['type'])continue;const _0x2c34de=_0x2e8acf['data']&&_0x2e8acf['data']['multipleBlocks'];('formatBlock'!=_0x2e8acf['type']||'split'==_0x14643e['type']&&!_0x2c34de)&&(_0x385a58['containsRangeInObject']||'insertion'==_0x2e8acf['type']&&_0x385a58['isOwn']||_0x2e8acf['getFirstRange']()['containsRange'](_0xddd043)&&this['_breakSuggestionMarker'](_0x2e8acf,_0x4a7622,_0x353c1e));}});},{'priority':'lowest'}),_0x2b51a9['model']['on']('deleteContent',(_0x977ac7,_0x4a16da)=>{const _0x8f6a1c=_0x4a16da[0x0],_0x1e50fb=_0x4a16da[0x1];if(_0x1e50fb&&_0x1e50fb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x8f6a1c['isCollapsed'])return;const _0x31666e=_0x2b51a9['model']['schema'],{start:_0xc0d918,end:_0x30f940}=_0x8f6a1c['getFirstRange'](),_0x39d871=_0xc0d918['nodeAfter']&&_0x31666e['isLimit'](_0xc0d918['nodeAfter'])?null:_0x31666e['getNearestSelectionRange'](_0xc0d918,'forward'),_0x463935=_0x30f940['nodeBefore']&&_0x31666e['isLimit'](_0x30f940['nodeBefore'])?null:_0x31666e['getNearestSelectionRange'](_0x30f940,'backward'),_0x13ff9a=_0x2b51a9['model']['createRange'](_0x39d871?_0x39d871['start']:_0xc0d918,_0x463935?_0x463935['end']:_0x30f940);_0x2b51a9['model']['change'](_0x5bdda1=>{this['markDeletion'](_0x13ff9a);const _0x10c96a=_0x2b51a9['model']['schema']['getNearestSelectionRange'](_0x13ff9a['start']);_0x8f6a1c['is']('documentSelection')?_0x5bdda1['setSelection'](_0x10c96a):_0x8f6a1c['setTo'](_0x10c96a);}),_0x977ac7['stop']();},{'priority':_0x39c6d3['normal']+0xa}),_0x2b51a9['model']['on']('insertContent',(_0x295668,_0x98ad7)=>{const _0x1295d9=_0x98ad7[_0x98ad7['length']-0x1];_0x1295d9&&_0x1295d9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2b51a9['model']['change'](()=>{let _0x4dd44c=_0x2b51a9['model']['insertContent'](_0x98ad7[0x0],_0x98ad7[0x1],_0x98ad7[0x2],{'forceDefaultExecution':!0x0});if(!_0x4dd44c)return;_0x295668['return']=_0x4dd44c['clone']();const _0x18c5c7=_0x4dd44c['end']['nodeBefore'],_0x1d57b8=_0x2b51a9['model']['schema'];_0x18c5c7&&_0x1d57b8['isBlock'](_0x18c5c7)&&!_0x1d57b8['isObject'](_0x18c5c7)&&(_0x4dd44c=_0x2b51a9['model']['createRange'](_0x4dd44c['start'],_0x2b51a9['model']['createPositionAt'](_0x18c5c7,'end'))),this['markInsertion'](_0x4dd44c);}),_0x295668['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x295258=new $(_0x2b51a9,this['_suggestions']);_0x2b51a9['commands']['add']('acceptSuggestion',_0x295258),this['enableCommand']('acceptSuggestion');const _0x2b7b95=new B(_0x2b51a9,this['_suggestions']);_0x2b51a9['commands']['add']('discardSuggestion',_0x2b7b95),this['enableCommand']('discardSuggestion'),_0x2b51a9['commands']['add']('acceptAllSuggestions',new x(_0x2b51a9,_0x295258,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2b51a9['commands']['add']('discardAllSuggestions',new x(_0x2b51a9,_0x2b7b95,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2b51a9['commands']['add']('acceptSelectedSuggestions',new R(_0x2b51a9,_0x295258,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2b51a9['commands']['add']('discardSelectedSuggestions',new R(_0x2b51a9,_0x2b7b95,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x145772=_0x2b51a9['plugins']['get']('CommentsRepository');this['listenTo'](_0x145772,'addComment',(_0x32cb23,{threadId:_0x28c8cb})=>{const _0x59475a=this['_suggestions']['get'](_0x28c8cb);_0x59475a&&_0x59475a['commentThread']&&0x1===_0x59475a['commentThread']['length']&&this['_updateSuggestionData'](_0x28c8cb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x145772,'removeComment',(_0x3acbd4,{threadId:_0x4e16e0})=>{const _0x5da404=this['_suggestions']['get'](_0x4e16e0);_0x5da404&&_0x5da404['commentThread']&&!_0x5da404['commentThread']['length']&&this['_updateSuggestionData'](_0x4e16e0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xf8f804){if(this['_adapter'])throw new _0x523c67('track-changes-adapter-already-set',this);this['_adapter']=_0xf8f804;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3eec47=!0x1,toJSON:_0x576997=!0x1}={}){const _0x1ed7dd=[];for(const _0x43a016 of this['_suggestions']['values']())_0x3eec47&&!_0x43a016['isInContent']||_0x1ed7dd['push'](_0x43a016);return _0x576997?_0x1ed7dd['map'](_0x5ac844=>_0x5ac844['toJSON']()):_0x1ed7dd;}['getSuggestion'](_0x3013d2){const _0xe50063=this['_suggestions']['get'](_0x3013d2);if(!_0xe50063)throw new _0x523c67('track-changes-suggestion-not-found',this);return _0xe50063;}['hasSuggestion'](_0x25cb1c){return this['_suggestions']['has'](_0x25cb1c);}['addSuggestionData'](_0x560364){const {authorId:_0x49cddc,id:_0x24714c,attributes:_0x18025c}=_0x560364,[_0x347105,_0x1c7edc]=_0x560364['type']['split'](':'),_0x45bd0f=this['_suggestions']['get'](_0x24714c)||this['_createSuggestion'](_0x347105,_0x1c7edc,_0x24714c,_0x49cddc,_0x18025c);if(this['_addThreadToSuggestion'](_0x45bd0f),this['_checkSuggestionCorrectness'](_0x45bd0f,_0x347105,_0x1c7edc||null,_0x49cddc),_0x45bd0f['createdAt']=_0x560364['createdAt'],_0x45bd0f['_isDataLoaded']=!0x0,_0x18025c&&_0x18025c['@external']){const _0x555e6a=_0x18025c['@external'],_0x5f55bb=this['_getExternalAuthor'](_0x555e6a['authorName']);_0x45bd0f['authoredAt']=_0x555e6a['createdAt'],_0x45bd0f['author']=_0x5f55bb,_0x45bd0f['isExternal']=!0x0;}else _0x45bd0f['authoredAt']=_0x560364['createdAt'];switch(_0x560364['data']&&(_0x45bd0f['data']=_0x560364['data']),_0x560364['attributes']&&(_0x45bd0f['attributes']=_0x560364['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x45bd0f['_saved']=!0x0),this['_suggestionState']['get'](_0x45bd0f)){case'notReady':this['_suggestionState']['set'](_0x45bd0f,'dataReady');break;case'markerReady':_0x45bd0f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x45bd0f])),this['_refreshSuggestionsChain'](new Set([_0x45bd0f])),this['_suggestionState']['set'](_0x45bd0f,'ready'),this['fire']('suggestionLoaded',_0x45bd0f)):this['_suggestionState']['set'](_0x45bd0f,'removed');}return _0x45bd0f;}['acceptSuggestion'](_0x57a24d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x402a72 of _0x57a24d['getAllAdjacentSuggestions']())_0x402a72['accept']();});});}['discardSuggestion'](_0x2696be){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12b2e1 of _0x2696be['getAllAdjacentSuggestions']())_0x12b2e1['discard']();});});}['enableCommand'](_0x4e6041,_0x9c6fde){const _0x9736f9=this['editor']['commands']['get'](_0x4e6041);if(!_0x9736f9)throw new _0x523c67('track-changes-command-not-found',this,{'commandName':_0x4e6041});if(this['_enabledCommands']['has'](_0x9736f9))throw new _0x523c67('track-changes-enable-command-twice',this,{'commandName':_0x4e6041});this['_enabledCommands']['add'](_0x9736f9),_0x9c6fde&&_0x9736f9['on']('execute',(_0x1fb1f3,_0x4d8e95)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d8e95['length']>0x0&&_0x4d8e95[_0x4d8e95['length']-0x1]&&_0x4d8e95[_0x4d8e95['length']-0x1]['forceDefaultExecution']?_0x4d8e95['pop']():(_0x1fb1f3['return']=_0x9c6fde((..._0x271496)=>_0x9736f9['execute'](..._0x271496,{'forceDefaultExecution':!0x0}),..._0x4d8e95),_0x1fb1f3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x537c33){let _0x50f04f,_0xd0ec1a;const _0x5b5c1a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50f04f=_0x537c33();}catch(_0x2b8136){_0xd0ec1a=_0x2b8136;}return _0x5b5c1a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xd0ec1a&&_0x523c67['rethrowUnexpectedError'](_0xd0ec1a,this),_0x50f04f;}['markInsertion'](_0x46c9b1,_0x22e81d=null,_0x329306={}){if(_0x46c9b1['isCollapsed'])return null;const _0x1ca92d=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5c4cff,meta:_0x21f7c2}of this['_findSuggestions'](_0x46c9b1,'insertion'))if(_0x21f7c2['isOwn']){if(!_0x21f7c2['isNextTo']){if(_0x21f7c2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5c4cff,_0x329306))continue;return _0x5c4cff;}if(Lt(_0x5c4cff,_0x329306))return _0x5c4cff;this['_breakSuggestionMarker'](_0x5c4cff,_0x46c9b1['start'],_0x46c9b1['end']);break;}if(_0x22e81d==_0x5c4cff['subType']&&Lt(_0x5c4cff,_0x329306)){const _0x5c9fdc=_0x5c4cff['getFirstRange']();return _0x5c9fdc['start']['isEqual'](_0x46c9b1['end'])?this['_setSuggestionRange'](_0x5c4cff,this['_model']['createRange'](_0x46c9b1['start'],_0x5c9fdc['end'])):this['_setSuggestionRange'](_0x5c4cff,this['_model']['createRange'](_0x5c9fdc['start'],_0x46c9b1['end'])),_0x5c4cff;}}const _0x506ef0=_0x15f178(),_0x5bbc27=_0x1ca92d['id'],_0x4273aa=_0x22e81d?'insertion:'+_0x22e81d:'insertion',_0x34696f=this['_setSuggestionData']({'id':_0x506ef0,'type':_0x4273aa,'createdAt':new Date(),'authorId':_0x5bbc27,'attributes':_0x329306});return this['_addSuggestionMarker'](_0x4273aa,_0x506ef0,_0x5bbc27,_0x46c9b1),_0x34696f;}['markMultiRangeInsertion'](_0x5db6e1,_0x43ef69='multi',_0x55f645={}){const _0x3f9d1b=this['editor']['plugins']['get']('Users')['me'],_0x27f4de=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x43ef69,'join');for(const _0x56e205 of this['getSuggestions']())if(_0x56e205['author']['id']==_0x3f9d1b['id']&&'insertion'==_0x56e205['type']&&_0x56e205['subType']==_0x43ef69&&Lt(_0x56e205,_0x55f645)&&(_0x27f4de(_0x56e205['getRanges'](),_0x5db6e1)||_0x27f4de(_0x5db6e1,_0x56e205['getRanges']()))){for(const _0x1c6623 of _0x5db6e1)_0x56e205['addRange'](_0x1c6623);return _0x56e205;}for(const {suggestion:_0x37badf,meta:_0x3cfe41}of this['_findSuggestions'](_0x5db6e1,'insertion')){if(!_0x3cfe41['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3cfe41['containsRangeInObject'])continue;if(!Lt(_0x37badf,_0x55f645))continue;let _0x4612f1=!0x0;for(const _0x2f1757 of _0x37badf['getRanges']())for(const _0x9da786 of _0x5db6e1)if(!_0x2f1757['containsRange'](_0x9da786)){_0x4612f1=!0x1;break;}if(_0x4612f1)return _0x37badf;}const _0x2638cd=_0x15f178(),_0x22feed=_0x3f9d1b['id'],_0x514294='insertion:'+_0x43ef69,_0x438ea2=this['_setSuggestionData']({'id':_0x2638cd,'type':_0x514294,'createdAt':new Date(),'authorId':_0x22feed,'attributes':_0x55f645});for(const _0x11111d of _0x5db6e1)this['_addSuggestionMarker'](_0x514294,_0x2638cd,_0x22feed,_0x11111d,u['getMultiRangeId']());return _0x438ea2;}['markInlineFormat'](_0x4bbe84,_0x4fd8fe,_0x177151=null,_0x5ee89a={}){if(_0x177151=_0x177151||Vt(_0x4fd8fe),_0x4bbe84['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3e78fc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x177151,'accept');return this['forceDefaultExecution'](()=>_0x3e78fc([_0x4bbe84],_0x4fd8fe,_0x5ee89a)),null;}const _0x1dfa3c=this['editor']['plugins']['get']('Users')['me'],_0x19f0b5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x10ef36,meta:_0x440248}of this['_findSuggestions'](_0x4bbe84,'insertion'))_0x440248['isOwn']&&!_0x440248['isInsideObject']&&_0x19f0b5['push'](..._0x10ef36['getRanges']());}const _0x15a814=function(_0x57f77b,_0xe6e90d){const _0x582bff=[];for(const _0x17dfdc of _0xe6e90d){const _0x3d9540=_0x57f77b['getIntersection'](_0x17dfdc);_0x3d9540&&_0x582bff['push'](_0x3d9540);}return _0x582bff;}(_0x4bbe84,_0x19f0b5),_0x2ad415=function(_0x399963,_0xff4b58){const _0x9d2eb1=[_0x399963];for(const _0x38c2df of _0xff4b58){let _0x334e98=0x0;for(;_0x334e98<_0x9d2eb1['length'];){const _0x37542d=_0x9d2eb1[_0x334e98]['getDifference'](_0x38c2df);_0x9d2eb1['splice'](_0x334e98,0x1,..._0x37542d),_0x334e98+=_0x37542d['length'];}}return _0x9d2eb1;}(_0x4bbe84,_0x19f0b5);_0x15a814['length']&&this['_model']['change'](()=>{for(const _0x30b085 of _0x15a814){const _0x2c003b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x177151,'accept');this['forceDefaultExecution'](()=>_0x2c003b([_0x30b085],_0x4fd8fe,_0x5ee89a));}});for(const _0x4da828 of _0x2ad415){let _0x26267e=null,_0x4b1e08=_0x4da828['start'],_0x2bf424=_0x4da828['end'];for(const {suggestion:_0x207713,meta:_0x4a4a38}of this['_findSuggestions'](_0x4da828,'formatInline')){if(!_0x4a4a38['isOwn'])continue;if(_0x207713['subType']!=_0x177151)continue;if(!Lt(_0x207713,_0x5ee89a))continue;const _0x2f02ea=_0x207713['getFirstRange']();if(_0x2f02ea['containsRange'](_0x4da828,!0x0))return null;_0x4b1e08=_0x4b1e08['isBefore'](_0x2f02ea['start'])?_0x4b1e08:_0x2f02ea['start'],_0x2bf424=_0x2bf424['isAfter'](_0x2f02ea['end'])?_0x2bf424:_0x2f02ea['end'],_0x26267e?_0x2f02ea['start']['isBefore'](_0x26267e['getFirstRange']()['start'])?(_0x26267e['removeMarkers'](),_0x26267e=_0x207713):_0x207713['removeMarkers']():_0x26267e=_0x207713;}const _0x1db9c4=this['_model']['createRange'](_0x4b1e08,_0x2bf424);if(_0x26267e)this['_setSuggestionRange'](_0x26267e,_0x1db9c4);else{const _0x1e3280=_0x15f178(),_0x315a22=_0x1dfa3c['id'];this['_setSuggestionData']({'id':_0x1e3280,'type':'formatInline:'+_0x177151,'data':_0x4fd8fe,'createdAt':new Date(),'authorId':_0x315a22,'attributes':_0x5ee89a}),this['_addSuggestionMarker']('formatInline:'+_0x177151,_0x1e3280,_0x315a22,_0x1db9c4);}}return null;}['markBlockFormat'](_0xa5c68,_0x5c8938,_0x50046b=[],_0x4a415b=null,_0x7a4e82={}){_0x5c8938['formatGroupId']||(_0x5c8938['formatGroupId']=_0x5c8938['commandName']),_0x5c8938['multipleBlocks']=_0xa5c68['is']('range'),_0x4a415b=_0x4a415b||Vt(_0x5c8938);const _0x29cd23=_0x50046b['map'](_0x180452=>Gt(_0x180452,this['_model'])),_0x4e9a8f=_0xa5c68['is']('range')?_0xa5c68:Gt(_0xa5c68,this['_model']);if('never'===this['_trackFormatChanges']){const _0x301a9b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a415b,'accept');return this['forceDefaultExecution'](()=>_0x301a9b([_0x4e9a8f],_0x5c8938,_0x7a4e82)),null;}_0x29cd23['push'](_0x4e9a8f);let _0x1f4d48=!0x0;for(const _0x3eb51e of _0x29cd23)if(!this['_rangeIsInLocalUserInsertion'](_0x3eb51e)){_0x1f4d48=!0x1;break;}if(_0x1f4d48&&'always'!==this['_trackFormatChanges']){const _0x2ab02c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a415b,'accept');return this['forceDefaultExecution'](()=>_0x2ab02c([_0x4e9a8f],_0x5c8938,_0x7a4e82)),null;}let _0x5403d9=null,_0x13469c=_0x4e9a8f['start'],_0x163128=_0x4e9a8f['end'];for(const {suggestion:_0x330797,meta:_0x18d3fb}of this['_findSuggestions'](_0x4e9a8f,'formatBlock')){if(!_0x18d3fb['isOwn'])continue;if(_0x18d3fb['isNextTo']||_0x18d3fb['containsRangeInObject']||_0x18d3fb['isInsideObject'])continue;if(_0x330797['data']['formatGroupId']!=_0x5c8938['formatGroupId'])continue;if(!Lt(_0x330797,_0x7a4e82))continue;const _0x377e9a=_0x330797['getFirstRange']();if(_0x330797['subType']==_0x4a415b){if(_0x377e9a['containsRange'](_0x4e9a8f,!0x0))return null;_0x13469c=_0x13469c['isBefore'](_0x377e9a['start'])?_0x13469c:_0x377e9a['start'],_0x163128=_0x163128['isAfter'](_0x377e9a['end'])?_0x163128:_0x377e9a['end'],_0x5403d9?_0x377e9a['start']['isBefore'](_0x5403d9['getFirstRange']()['start'])?(_0x5403d9['removeMarkers'](),_0x5403d9=_0x330797):_0x330797['removeMarkers']():_0x5403d9=_0x330797;}else{const _0x32b11a=_0x4e9a8f['getIntersection'](_0x377e9a);this['_cutOutSuggestionMarker'](_0x330797,_0x32b11a);}}const _0x16835a=this['editor']['plugins']['get']('Users')['me'],_0x2060ff=_0x15f178(),_0x2472a6=_0x16835a['id'];if(_0x5403d9)return this['_setSuggestionRange'](_0x5403d9,this['_model']['createRange'](_0x13469c,_0x163128)),_0x5403d9;{const _0x423fb2=this['_setSuggestionData']({'id':_0x2060ff,'type':'formatBlock:'+_0x4a415b,'data':_0x5c8938,'createdAt':new Date(),'authorId':_0x2472a6,'attributes':_0x7a4e82});return this['_addSuggestionMarker']('formatBlock:'+_0x4a415b,_0x2060ff,_0x2472a6,this['_model']['createRange'](_0x13469c,_0x163128)),_0x423fb2;}}['markMultiRangeBlockFormat'](_0x4dedf8,_0x4189b7,_0x3242dd=[],_0x38b46a=null,_0x2ab716={}){_0x4189b7['formatGroupId']||(_0x4189b7['formatGroupId']=_0x4189b7['commandName']);const _0x1b7bc2=_0x4dedf8[0x0];_0x4189b7['multipleBlocks']=_0x1b7bc2['is']('range'),_0x38b46a=_0x38b46a||Vt(_0x4189b7);const _0x2e451a=_0x3242dd['map'](_0x4f31d3=>Gt(_0x4f31d3,this['_model'])),_0x34356d=_0x1b7bc2['is']('range')?_0x4dedf8:_0x4dedf8['map'](_0x2695ed=>Gt(_0x2695ed,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4bf45d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38b46a,'accept');return this['forceDefaultExecution'](()=>_0x4bf45d(_0x34356d,_0x4189b7,_0x2ab716)),null;}_0x2e451a['push'](..._0x34356d);let _0x4343f8=!0x0;for(const _0x1999e8 of _0x2e451a)if(!this['_rangeIsInLocalUserInsertion'](_0x1999e8)){_0x4343f8=!0x1;break;}if(_0x4343f8&&'always'!==this['_trackFormatChanges']){const _0x516d12=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38b46a,'accept');return this['forceDefaultExecution'](()=>_0x516d12(_0x34356d,_0x4189b7,_0x2ab716)),null;}const _0x4bf8cc=this['editor']['plugins']['get']('Users')['me'];for(const _0x39e67b of this['getSuggestions']()){if(_0x39e67b['author']['id']!=_0x4bf8cc['id'])continue;if('formatBlock'!=_0x39e67b['type']||_0x39e67b['data']['formatGroupId']!=_0x4189b7['formatGroupId'])continue;if(!Lt(_0x39e67b,_0x2ab716))continue;const _0x103955=_0x39e67b['subType']==_0x38b46a;for(let _0x254b22=0x0;_0x254b22<_0x34356d['length'];_0x254b22++){const _0x10e187=_0x34356d[_0x254b22];for(const _0x32de25 of _0x39e67b['getMarkers']()){const _0x1e7892=_0x32de25['getRange']();if(_0x10e187['isEqual'](_0x1e7892)){_0x103955?(_0x34356d['splice'](_0x254b22,0x1),_0x254b22--):_0x39e67b['removeMarker'](_0x32de25['name']);break;}}}}if(0x0==_0x34356d['length'])return null;const _0x2badc4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38b46a,'join');for(const _0x3e40c3 of this['getSuggestions']())if(_0x3e40c3['author']['id']==_0x4bf8cc['id']&&'formatBlock'==_0x3e40c3['type']&&_0x3e40c3['data']['formatGroupId']==_0x4189b7['formatGroupId']&&_0x3e40c3['subType']==_0x38b46a&&Lt(_0x3e40c3,_0x2ab716)&&(_0x2badc4(_0x3e40c3['getRanges'](),_0x34356d)||_0x2badc4(_0x34356d,_0x3e40c3['getRanges']()))){for(const _0x282ac6 of _0x34356d)_0x3e40c3['addRange'](_0x282ac6);return _0x3e40c3;}const _0x2af515=_0x15f178(),_0x39cf57=_0x4bf8cc['id'],_0x5de5ef='formatBlock:'+_0x38b46a,_0x37e215=this['_setSuggestionData']({'id':_0x2af515,'type':_0x5de5ef,'data':_0x4189b7,'createdAt':new Date(),'authorId':_0x39cf57,'attributes':_0x2ab716});for(const _0x46e1dd of _0x34356d)this['_addSuggestionMarker'](_0x5de5ef,_0x2af515,_0x39cf57,_0x46e1dd,u['getMultiRangeId']());return _0x37e215;}['markDeletion'](_0xa96a10,_0x27d066=null,_0x587390={}){if(_0xa96a10['isCollapsed'])return null;const _0x310521=this['editor']['plugins']['get']('Users')['me'],_0x3f25b2=new _0x1dfa9b(_0xa96a10['start'],_0xa96a10['end']);for(const {suggestion:_0x1a041d,meta:_0x589b28}of this['_findSuggestions'](_0x3f25b2,'insertion'))if(_0x589b28['isOwn']&&!_0x589b28['isNextTo']){if(_0x1a041d['isMultiRange']){const _0x3c1850=_0x1a041d['getRanges']()['filter'](_0x4e7ebd=>'$graveyard'!=_0x4e7ebd['root']['rootName']);_0x3c1850['every'](_0x392401=>_0x3f25b2['containsRange'](_0x392401,!0x0))&&_0x1a041d['discard']();if(_0x3c1850['some'](_0x5114d6=>_0x5114d6['containsRange'](_0x3f25b2,!0x0))){const _0x5ab02c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27d066,'accept');return this['forceDefaultExecution'](()=>_0x5ab02c([_0x3f25b2],null,_0x587390)),null;}}else{const _0x3cd063=_0x3f25b2['getIntersection'](_0x1a041d['getFirstRange']());null!==_0x3cd063&&_0x1a041d['_onDiscard']([_0x3cd063],null,_0x587390);}}if(_0x3f25b2['detach'](),_0x3f25b2['isCollapsed']||'$graveyard'==_0x3f25b2['root']['rootName'])return null;let _0x3db4d7=null,_0x223efd=_0x3f25b2['start'],_0x573342=_0x3f25b2['end'];const _0x36e4f0=this['_findSuggestions'](_0x3f25b2,'deletion');for(const {suggestion:_0x167044,meta:_0x1be26c}of _0x36e4f0){const _0x21c4ab=this['_model']['createRange'](_0x223efd,_0x573342);if(_0x1be26c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1be26c['containsRangeInObject']&&!_0x1be26c['isInsideObject'])){if(_0x167044['isMultiRange']){if(!Lt(_0x167044,_0x587390))continue;let _0xf6dadf=!0x0;for(const _0x39e757 of _0x167044['getRanges']()){if(_0x39e757['containsRange'](_0x21c4ab,!0x0))return _0x167044;_0x21c4ab['containsRange'](_0x39e757)||(_0xf6dadf=!0x1);}_0xf6dadf&&_0x167044['discard']();}else{const _0x3ff047=_0x167044['getFirstRange']();if(_0x3ff047['containsRange'](_0x21c4ab,!0x0))return _0x167044;if(!Lt(_0x167044,_0x587390)){_0x21c4ab['containsRange'](_0x3ff047)?_0x167044['removeMarkers']():_0x3ff047['containsPosition'](_0x223efd)?_0x223efd=_0x3ff047['end']:_0x3ff047['containsPosition'](_0x573342)&&(_0x573342=_0x3ff047['start']);continue;}_0x223efd=_0x223efd['isBefore'](_0x3ff047['start'])?_0x223efd:_0x3ff047['start'],_0x573342=_0x573342['isAfter'](_0x3ff047['end'])?_0x573342:_0x3ff047['end'],_0x587390=Object['assign']({},_0x167044['attributes']),_0x3db4d7?_0x3ff047['start']['isBefore'](_0x3db4d7['getFirstRange']()['start'])?(_0x3db4d7['removeMarkers'](),_0x3db4d7=_0x167044):_0x167044['removeMarkers']():_0x3db4d7=_0x167044;}}}if(_0x3db4d7)return this['_setSuggestionRange'](_0x3db4d7,this['_model']['createRange'](_0x223efd,_0x573342)),_0x3db4d7;{const _0xdd6b70=_0x15f178(),_0x4c6128=this['_model']['createRange'](_0x223efd,_0x573342),_0x3b7930=_0x310521['id'],_0x11c199=_0x27d066?'deletion:'+_0x27d066:'deletion',_0x476974=this['_setSuggestionData']({'id':_0xdd6b70,'type':_0x11c199,'createdAt':new Date(),'authorId':_0x3b7930,'attributes':_0x587390});return this['_addSuggestionMarker'](_0x11c199,_0xdd6b70,_0x3b7930,_0x4c6128),_0x476974;}}['markMultiRangeDeletion'](_0xb03bf9,_0x17e451='multi',_0x430309={}){const _0x21ec1d=this['editor']['plugins']['get']('Users')['me'],_0x4c820a=_0xb03bf9['map'](_0x5073af=>new _0x1dfa9b(_0x5073af['start'],_0x5073af['end'])),_0x5958a9=new Set();for(const {suggestion:_0x2cafcd,meta:_0x4255e9}of this['_findSuggestions'](_0x4c820a,'insertion'))_0x4255e9['isOwn']&&!_0x4255e9['isNextTo']&&_0x5958a9['add'](_0x2cafcd);for(const _0x49c69b of _0x5958a9)if(_0x49c69b['isMultiRange']){const _0xb8a866=_0x49c69b['getRanges']();(!_0x49c69b['attributes']||!_0x49c69b['attributes']['skipNestingCheck'])&&(_0xb8a866['every'](_0x513a1e=>_0x4c820a['some'](_0x534da9=>_0x534da9['containsRange'](_0x513a1e,!0x0)))&&_0x49c69b['discard']());if(_0x4c820a['every'](_0xb72c03=>_0xb8a866['some'](_0x352686=>_0x352686['containsRange'](_0xb72c03,!0x0)))){const _0x13b033=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17e451,'accept');return this['forceDefaultExecution'](()=>_0x13b033(_0xb03bf9,null,_0x430309)),null;}}else{const _0x3bfc2d=_0x49c69b['getFirstRange']();_0x4c820a['some'](_0x56fa88=>_0x56fa88['containsRange'](_0x3bfc2d,!0x0))&&_0x49c69b['discard']();if(_0x4c820a['every'](_0x32d489=>_0x3bfc2d['containsRange'](_0x32d489,!0x0))){const _0x5ac06a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17e451,'accept');return this['forceDefaultExecution'](()=>_0x5ac06a(_0x4c820a,null,_0x430309)),null;}}const _0x4569bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17e451,'join');let _0x350a4f=null;for(const _0x1ad1aa of this['getSuggestions']())if(_0x1ad1aa['author']['id']==_0x21ec1d['id']&&_0x1ad1aa['isInContent']&&'deletion'==_0x1ad1aa['type']&&_0x1ad1aa['subType']==_0x17e451&&Lt(_0x1ad1aa,_0x430309)&&(_0x4569bf(_0x1ad1aa['getRanges'](),_0x4c820a)||_0x4569bf(_0x4c820a,_0x1ad1aa['getRanges']()))){if(_0x350a4f){if(_0x1ad1aa['commentThread']&&_0x1ad1aa['commentThread']['length'])continue;for(const _0x33bcef of _0x1ad1aa['getRanges']())_0x350a4f['isIntersectingWithRange'](_0x33bcef)||_0x350a4f['addRange'](_0x33bcef);_0x1ad1aa['removeMarkers']();}else{_0x350a4f=_0x1ad1aa;for(const _0x1e84e4 of _0x4c820a)_0x1ad1aa['isIntersectingWithRange'](_0x1e84e4)||_0x1ad1aa['addRange'](_0x1e84e4);}}if(_0x350a4f)return _0x350a4f;_0x5958a9['clear']();for(const {suggestion:_0x42eb7b,meta:_0x354826}of this['_findSuggestions'](_0x4c820a,'deletion'))_0x354826['isOwn']&&(this['_mergeNestedSuggestions']||!_0x354826['containsRangeInObject']&&!_0x354826['isInsideObject'])&&Lt(_0x42eb7b,_0x430309)&&_0x5958a9['add'](_0x42eb7b);for(const _0x1c30b3 of _0x5958a9){const _0x34a3a5=_0x1c30b3['getRanges']();if(!_0x430309||!_0x430309['skipNestingCheck']){if(_0x4c820a['every'](_0x39afe7=>_0x34a3a5['some'](_0xb05c95=>_0xb05c95['containsRange'](_0x39afe7,!0x0))))return _0x1c30b3;}(!_0x1c30b3['attributes']||!_0x1c30b3['attributes']['skipNestingCheck'])&&(_0x34a3a5['every'](_0x3f8b13=>_0x4c820a['some'](_0xe6f94e=>_0xe6f94e['containsRange'](_0x3f8b13,!0x0)))&&_0x1c30b3['discard']());}const _0x50e9a1=_0x15f178(),_0x52c47e=_0x21ec1d['id'],_0x301e3e='deletion:'+_0x17e451,_0x40d823=this['_setSuggestionData']({'id':_0x50e9a1,'type':_0x301e3e,'createdAt':new Date(),'authorId':_0x52c47e,'attributes':_0x430309});for(const _0x3829ff of _0x4c820a)_0x3829ff['detach'](),_0x3829ff['isCollapsed']||'$graveyard'==_0x3829ff['root']['rootName']||this['_addSuggestionMarker'](_0x301e3e,_0x50e9a1,_0x52c47e,_0x3829ff,u['getMultiRangeId']());return _0x40d823;}['markAttributeChange'](_0x428e97,_0x2721c6,_0x4085d3,_0x782c1f,_0x13a80e){if(_0x428e97['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x155567=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f90b5=Array['from'](this['_suggestions']['values']())['filter'](_0x48b07c=>'attribute'==_0x48b07c['type']&&_0x48b07c['data']['key']==_0x2721c6&&_0x48b07c['isIntersectingWithRange'](_0x428e97));if('default'===this['_trackFormatChanges']){const _0x3b6855=this['_findSuggestions'](_0x428e97,'insertion')['filter'](({meta:_0x36f947})=>_0x36f947['isOwn']&&!_0x36f947['isInsideObject']&&!_0x36f947['isNextTo'])['map'](({suggestion:_0x2c794b})=>_0x2c794b);_0x1f90b5['unshift'](..._0x3b6855);}const _0xfd0fbd=new Map([[_0x428e97,_0x4085d3]]);for(const _0x280cb6 of _0x1f90b5){const _0x1d2959='attribute'==_0x280cb6['type']?_0x280cb6['data']['oldValue']:void 0x0,_0x533df0=_0x280cb6['getFirstRange'](),_0x102297=Array['from'](_0xfd0fbd['keys']())['find'](_0x43d741=>_0x43d741['isIntersecting'](_0x533df0));if(!_0x102297)continue;const _0x4ae633=_0x102297['getDifference'](_0x533df0);this['_isBlockAttribute'](_0x2721c6)&&'insertion'==_0x280cb6['type']&&0x0!=_0x4ae633['length']||(_0xfd0fbd['delete'](_0x102297),_0x4ae633['forEach'](_0x22f031=>{_0xfd0fbd['set'](_0x22f031,_0x4085d3);}),'insertion'!=_0x280cb6['type']&&_0x1d2959!=_0x782c1f&&_0xfd0fbd['set'](_0x102297['getIntersection'](_0x533df0),_0x1d2959));}const _0x195c75=[];for(const [_0x357a7f,_0xfe6660]of _0xfd0fbd){const _0x352546=_0x15f178(),_0x36ecde={'key':_0x2721c6,'oldValue':_0xfe6660,'newValue':_0x782c1f};_0x2721c6['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':_0x2721c6});const _0x33ba17=('attribute:'+(_0x2721c6+'|'+Vt({'newValue':_0x782c1f})))['substring'](0x0,0x3c),_0x4afda9=this['_setSuggestionData']({'id':_0x352546,'type':_0x33ba17,'data':_0x36ecde,'createdAt':new Date(),'authorId':_0x155567,'attributes':_0x13a80e});_0x195c75['push'](_0x4afda9),this['_addSuggestionMarker'](_0x33ba17,_0x352546,_0x155567,_0x357a7f);}return _0x195c75;}['enableDefaultAttributesIntegration'](_0x16b199){this['enableCommand'](_0x16b199,(_0x5c7f67,..._0x34e987)=>{this['_recordAttributeChanges'](()=>{_0x5c7f67(..._0x34e987);});});}['registerBlockAttribute'](_0x3c0483){this['_blockAttributeKeys']['add'](_0x3c0483);}['registerInlineAttribute'](_0x5a883b){this['_inlineAttributeKeys']['add'](_0x5a883b);}['_getAttributeKey'](_0x3cb930){return'attribute'==_0x3cb930['type']?_0x3cb930['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x422cee,_0x520714){const _0x150781=_0x422cee['getFirstMarker']();this['_model']['change'](_0x49ce86=>{_0x49ce86['updateMarker'](_0x150781,{'range':_0x520714});});}['_addThreadToSuggestion'](_0x1d0cff){const _0xe8c0d1=_0x1d0cff['id'],_0x5730de=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xe8c0d1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5730de,'threadId':_0xe8c0d1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x46ac32=this['_commentsRepository']['getCommentThread'](_0xe8c0d1);_0x46ac32['unbind']('isRemovable'),_0x46ac32['isRemovable']=!0x1,_0x1d0cff['commentThread']=_0x46ac32;}['_checkSuggestionCorrectness'](_0x5023f7,_0x3fe0e8,_0x2c21a3,_0x57ec6f){if(_0x5023f7['type']!=_0x3fe0e8||_0x5023f7['subType']!=_0x2c21a3||_0x5023f7['creator']['id']!=_0x57ec6f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x523c67('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x34d6cf,_0x33f0c3){const _0x143355=_0x34d6cf['getFirstRange']();if(_0x33f0c3['isEqual'](_0x143355))_0x34d6cf['removeMarkers']();else{if(_0x143355['containsRange'](_0x33f0c3)){const _0x3630c7=this['_model']['createPositionAt'](_0x33f0c3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34d6cf,this['_model']['createRange'](_0x143355['start'],_0x3630c7));const _0x3512b9=_0x15f178(),_0x4ff904=_0x34d6cf['creator']['id'],_0x70739f=_0x34d6cf['type']+':'+_0x34d6cf['subType'];this['_setSuggestionData']({'id':_0x3512b9,'type':_0x70739f,'createdAt':new Date(),'authorId':_0x4ff904,'data':_0x34d6cf['data'],'attributes':_0x34d6cf['attributes']});const _0x4ce162=this['_model']['createPositionAt'](_0x33f0c3['end']['parent'],'after'),_0x407956=this['_model']['createRange'](_0x4ce162,_0x143355['end']);this['_addSuggestionMarker'](_0x70739f,_0x3512b9,_0x4ff904,_0x407956);}else{if(_0x143355['containsPosition'](_0x33f0c3['start'])){const _0x57c5d7=this['_model']['createPositionAt'](_0x33f0c3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34d6cf,this['_model']['createRange'](_0x143355['start'],_0x57c5d7));}else{const _0x568384=this['_model']['createPositionAt'](_0x33f0c3['end']['parent'],'after');this['_setSuggestionRange'](_0x34d6cf,this['_model']['createRange'](_0x568384,_0x143355['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x26565b){for(const {suggestion:_0x5581b6,meta:_0x4d0aa2}of this['_findSuggestions'](_0x26565b,'insertion')){if(!_0x4d0aa2['isOwn'])continue;const _0x2441c9=_0x5581b6['getRanges']();for(const _0x1d1bee of _0x2441c9)if(!_0x26565b['getDifference'](_0x1d1bee)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x342487){const _0x537692=this['editor']['plugins']['get']('Users')['getUser'](_0x342487);if(!_0x537692)throw new _0x523c67('track-changes-user-not-found',this);return _0x537692;}['_getExternalAuthor'](_0x219a29){const _0x4ef9c5=this['editor']['plugins']['get']('Users'),_0x282b98=_0x54329d('external:'+_0x219a29),_0x3083b5=_0x4ef9c5['getUser'](_0x282b98);return _0x3083b5||_0x4ef9c5['addUser']({'id':_0x282b98,'name':_0x219a29});}['_createSuggestion'](_0x47ef40,_0x14a5cd,_0x318626,_0x13e288,_0x2106be){const _0x34ece7=this['_getAuthorFromId'](_0x13e288),_0x1d9fa1=this['_suggestionFactory']['buildSuggestion'](_0x47ef40,_0x14a5cd,_0x318626,_0x34ece7,_0x2106be,_0x28c58e=>{this['_updateSuggestionData'](_0x318626,{'attributes':_0x28c58e});const _0x4cc818=this['getSuggestion'](_0x318626);this['_joinWithAdjacentSuggestions'](new Set([_0x4cc818])),this['_refreshSuggestionsChain'](new Set([_0x4cc818]));});return this['listenTo'](_0x1d9fa1,'accept',()=>{this['_updateSuggestionData'](_0x318626,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d9fa1,'discard',()=>{this['_updateSuggestionData'](_0x318626,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x318626,_0x1d9fa1),this['_suggestionState']['set'](_0x1d9fa1,'notReady'),_0x1d9fa1;}['_splitMarkerName'](_0x32b2b4){const _0x249103=_0x32b2b4['split'](':');return{'group':_0x249103[0x0],'type':_0x249103[0x1],'subType':_0x249103['length']>=0x5?_0x249103[0x2]:null,'id':_0x249103['length']<0x5?_0x249103[0x2]:_0x249103[0x3],'authorId':_0x249103['length']<0x5?_0x249103[0x3]:_0x249103[0x4],'markerCount':0x6==_0x249103['length']?_0x249103[0x5]:null};}['_breakSuggestionMarker'](_0x199879,_0x467969,_0x29d7b0){const _0x3cb6f9=_0x199879['getFirstRange'](),_0x1f20c2=_0x3cb6f9['start'],_0x29c51a=_0x3cb6f9['end'];this['_setSuggestionRange'](_0x199879,this['_model']['createRange'](_0x1f20c2,_0x467969));const _0x28bebd=_0x15f178(),_0x69f3e4=_0x199879['creator']['id'],_0x5debe7=_0x199879['type']+(_0x199879['subType']?':'+_0x199879['subType']:'');this['_setSuggestionData']({'id':_0x28bebd,'type':_0x5debe7,'createdAt':new Date(),'authorId':_0x69f3e4,'originalSuggestionId':_0x199879['id'],'attributes':_0x199879['attributes'],'data':_0x199879['data']});const _0x572917=this['_getAttributeKey'](_0x199879);('formatBlock'==_0x199879['type']||_0x572917&&this['_isBlockAttribute'](_0x572917))&&(_0x29d7b0=this['_model']['createPositionBefore'](_0x29d7b0['parent'])),this['_addSuggestionMarker'](_0x5debe7,_0x28bebd,_0x69f3e4,this['_model']['createRange'](_0x29d7b0,_0x29c51a));}['_findSuggestions'](_0x2ee459,_0x403bda=null){const _0x134574=[],_0x1e2832=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2ee459)||(_0x2ee459=[_0x2ee459]);for(const _0x161857 of this['getSuggestions']()){if(!_0x161857['isInContent'])continue;if(_0x403bda&&_0x161857['type']!=_0x403bda)continue;let _0x2bb65d=!0x1;for(const _0x44965d of _0x161857['getRanges']()){for(const _0x531a84 of _0x2ee459){const _0x1d1dac=_0x531a84['start']['isEqual'](_0x44965d['end'])||_0x531a84['end']['isEqual'](_0x44965d['start']);if(_0x1d1dac||_0x531a84['getIntersection'](_0x44965d)){const _0x40b1df=_0x531a84['containsRange'](_0x44965d)&&Rt(this['_model']['schema'],_0x44965d['start'],_0x531a84),_0xc2baa6=_0x44965d['containsRange'](_0x531a84)&&Rt(this['_model']['schema'],_0x531a84['start'],_0x44965d);_0x134574['push']({'suggestion':_0x161857,'meta':{'isOwn':_0x1e2832==_0x161857['author'],'isNextTo':_0x1d1dac,'isInsideObject':_0x40b1df,'containsRangeInObject':_0xc2baa6}}),_0x2bb65d=!0x0;break;}}if(_0x2bb65d)break;}}return _0x134574;}['_addSuggestionMarker'](_0x47e3ae,_0x32765c,_0x5417b9,_0x5f4a7b,_0x37281e){this['_model']['change'](_0x4d988f=>{let _0x489c5b='suggestion:'+_0x47e3ae+':'+_0x32765c+':'+_0x5417b9;_0x37281e&&(_0x489c5b=_0x489c5b+':'+_0x37281e),_0x4d988f['addMarker'](_0x489c5b,{'range':_0x5f4a7b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x56f858){const _0xbf9af7=_0x56f858['previous'],_0x224392=_0x56f858['next'];_0x56f858['previous']=null,_0x56f858['next']=null,null!=_0xbf9af7&&_0xbf9af7['next']==_0x56f858&&(_0xbf9af7['next']=_0x224392),null!=_0x224392&&_0x224392['previous']==_0x56f858&&(_0x224392['previous']=_0xbf9af7),'ready'==this['_suggestionState']['get'](_0x56f858)&&(this['_suggestionState']['set'](_0x56f858,'removed'),this['fire']('suggestionUnloaded',_0x56f858,_0xbf9af7,_0x224392));}['_setSuggestionData'](_0x509244){const _0x34bae3=_0x509244['id'],_0x4e18c1=this['addSuggestionData'](_0x509244);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x530cf6=this['editor']['plugins']['get']('PendingActions'),_0x2d20dd=_0x4e18c1['hasComments'],_0x44c2a8=_0x4e18c1['subType']?_0x4e18c1['type']+':'+_0x4e18c1['subType']:_0x4e18c1['type'],_0x53c6ee=this['editor']['locale'],_0x5cb3ab=_0x530cf6['add'](o(_0x53c6ee,'PENDING_ACTION_SUGGESTION')),_0x242a7c={'id':_0x34bae3,'type':_0x44c2a8,'hasComments':_0x2d20dd,'data':_0x509244['data']||null,'originalSuggestionId':_0x509244['originalSuggestionId']||null,'attributes':_0x4e18c1['attributes']};this['_adapter']['addSuggestion'](_0x242a7c)['then'](_0xbbaed4=>{_0x4e18c1['_saved']=!0x0,_0x530cf6['remove'](_0x5cb3ab),_0xbbaed4&&_0xbbaed4['createdAt']&&(this['_suggestions']['get'](_0x34bae3)['createdAt']=_0xbbaed4['createdAt']);})['catch'](_0x1dbbed=>{throw _0x2202ce('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4e18c1['discard']();}),_0x4e18c1['stopListening'](),this['_suggestions']['delete'](_0x4e18c1['id']),this['_suggestionState']['delete'](_0x4e18c1),_0x1dbbed;});}return _0x4e18c1;}['_isBlockAttribute'](_0x1da212){return this['_blockAttributeKeys']['has'](_0x1da212);}['_updateSuggestionData'](_0x127395,_0x3d97ff){const _0x1f5f98=this['editor']['plugins']['get']('PendingActions'),_0x56222b=this['getSuggestion'](_0x127395);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x56222b['_saved']){const _0x19cb9d=_0x1f5f98['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x127395,_0x3d97ff)['then'](()=>{_0x1f5f98['remove'](_0x19cb9d);});}else _0x56222b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x127395,_0x3d97ff);});}}['_getSuggestionData'](_0x1b82a9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x523c67('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b82a9);}['_handleNewSuggestionMarker'](_0x4876fa){const {id:_0xc5c29c,type:_0x151dc3,subType:_0x58c37a,authorId:_0x55f923}=this['_splitMarkerName'](_0x4876fa),_0x290a0a=this['_suggestions']['get'](_0xc5c29c)||this['_createSuggestion'](_0x151dc3,_0x58c37a,_0xc5c29c,_0x55f923,{});switch(this['_checkSuggestionCorrectness'](_0x290a0a,_0x151dc3,_0x58c37a,_0x55f923),this['_suggestionState']['get'](_0x290a0a)){case'notReady':this['_getSuggestionData'](_0xc5c29c)['then'](_0x23fb45=>{let _0x4f18e2=Promise['resolve']();_0x23fb45['hasComments']&&(_0x4f18e2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc5c29c})),_0x4f18e2['then'](()=>{this['addSuggestionData'](_0x23fb45)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x290a0a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc5c29c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x290a0a,'ready'),this['fire']('suggestionLoaded',_0x290a0a);break;case'ready':this['fire']('suggestionChanged',_0x290a0a);}return _0x290a0a['addMarkerName'](_0x4876fa),_0x290a0a;}['_refreshSuggestionsChain'](_0x107d45){const _0x4b55aa=Array['from'](_0x107d45),_0x5974c7=_0x4b55aa['filter'](_0x12ec33=>'attribute'==_0x12ec33['type']);this['_refreshAttributeSuggestionsChain'](_0x5974c7);const _0x5d1b3d=_0x4b55aa['filter'](_0x2b4f1d=>!_0x2b4f1d['isMultiRange']&&'attribute'!=_0x2b4f1d['type']),_0x100ff9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5101cc=>!_0x5101cc['isMultiRange']&&'attribute'!=_0x5101cc['type']),_0x3fe9c7=_0x100ff9['filter'](_0x456fe3=>!_0x107d45['has'](_0x456fe3)),_0x3e3061=new Map(_0x100ff9['map'](_0x1695f0=>[_0x1695f0,this['_suggestionFactory']['getSuggestionCallback'](_0x1695f0['type'],_0x1695f0['subType'],'chain')])),_0x3a39b3=new Map(_0x100ff9['map'](_0x57f6a0=>[_0x57f6a0,_0x57f6a0['getFirstRange']()])),_0x51e3c9=new Set(),_0x9f4349=new Set();for(let _0x314922=0x0;_0x314922<_0x5d1b3d['length'];_0x314922++)_0x40fb8d(_0x5d1b3d[_0x314922],_0x5d1b3d,_0x314922+0x1);for(let _0x21b155=0x0;_0x21b155<_0x5d1b3d['length'];_0x21b155++)_0x40fb8d(_0x5d1b3d[_0x21b155],_0x3fe9c7,0x0);const _0x5b78f2=new Set();for(let _0x2d8c44=0x0;_0x2d8c44<_0x5d1b3d['length'];_0x2d8c44++){const _0xec1dec=_0x5d1b3d[_0x2d8c44];!_0x9f4349['has'](_0xec1dec)&&_0xec1dec['previous']&&(_0x5b78f2['add'](_0xec1dec['previous']),_0xec1dec['previous']['next']===_0xec1dec&&(_0xec1dec['previous']['next']=null),_0xec1dec['previous']=null),!_0x51e3c9['has'](_0xec1dec)&&_0xec1dec['next']&&(_0x5b78f2['add'](_0xec1dec['next']),_0xec1dec['next']['previous']===_0xec1dec&&(_0xec1dec['next']['previous']=null),_0xec1dec['next']=null);}function _0x40fb8d(_0x26ddbd,_0x116a6c,_0x4b77f4){for(let _0x2cbfce=_0x4b77f4;_0x2cbfce<_0x116a6c['length'];_0x2cbfce++){const _0x5453bf=_0x34f669(_0x26ddbd,_0x116a6c[_0x2cbfce]);_0x5453bf&&(_0x5453bf[0x0]['next']=_0x5453bf[0x1],_0x5453bf[0x1]['previous']=_0x5453bf[0x0],_0x51e3c9['add'](_0x5453bf[0x0]),_0x9f4349['add'](_0x5453bf[0x1]));}}function _0x34f669(_0x105276,_0x1c1dc0){if(_0x105276['author']['id']!==_0x1c1dc0['author']['id'])return null;const _0x1d7c79=_0x3e3061['get'](_0x105276)(_0x105276,_0x1c1dc0,_0x3a39b3['get'](_0x105276),_0x3a39b3['get'](_0x1c1dc0));if(!_0x1d7c79)return null;return _0x3e3061['get'](_0x1c1dc0)(_0x105276,_0x1c1dc0,_0x3a39b3['get'](_0x105276),_0x3a39b3['get'](_0x1c1dc0))?_0x1d7c79[0x1]['commentThread']&&_0x1d7c79[0x1]['commentThread']['length']?null:_0x1d7c79:null;}_0x5b78f2['size']&&this['_refreshSuggestionsChain'](_0x5b78f2);}['_refreshAttributeSuggestionsChain'](_0x2d208a){if(0x0==_0x2d208a['length'])return;const _0x36d900=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48b47f=>'attribute'==_0x48b47f['type']&&_0x48b47f['_isDataLoaded']),_0x5f0228=[],_0x25d0c0=new Map();for(const _0x391d9c of _0x36d900){const _0x554bf1=_0x54329d(_0x391d9c['attributes']);_0x25d0c0['has'](_0x554bf1)||(_0x25d0c0['set'](_0x554bf1,_0x5f0228['length']),_0x5f0228['push']([]));const _0x37010e=_0x25d0c0['get'](_0x554bf1);_0x5f0228[_0x37010e]['push'](_0x391d9c);}!(function(){_0x5f0228['sort']((_0xd285a5,_0x1cfa1a)=>{const _0x3a2be8=_0xd285a5[0x0]['createdAt'],_0x544b69=_0x1cfa1a[0x0]['createdAt'];return _0x3a2be8==_0x544b69?_0xd285a5[0x0]['attributes']['groupId']<_0x1cfa1a[0x0]['attributes']['groupId']?-0x1:0x1:_0x3a2be8<_0x544b69?-0x1:0x1;});for(const _0x580991 of _0x5f0228)_0x580991['sort']((_0x693abe,_0x5df4ee)=>_0x693abe['id']<_0x5df4ee['id']?-0x1:0x1);}());for(let _0x5b9900=0x0;_0x5b9900<_0x5f0228['length'];_0x5b9900++){if(0x0==_0x5f0228[_0x5b9900]['length'])continue;const _0x5b6757=[];for(let _0x2bb7b5=_0x5b9900+0x1;_0x2bb7b5<_0x5f0228['length'];_0x2bb7b5++)0x0!=_0x5f0228[_0x2bb7b5]['length']&&_0x3803c7(_0x5f0228[_0x5b9900],_0x5f0228[_0x2bb7b5])&&_0x5b6757['push'](_0x2bb7b5);for(const _0xbbc835 of _0x5b6757)_0x5f0228[_0x5b9900]=_0x5f0228[_0x5b9900]['concat'](_0x5f0228[_0xbbc835]),_0x5f0228[_0xbbc835]=[];}for(const _0x20c26d of _0x5f0228)for(let _0x8bca2e=0x0;_0x8bca2e<_0x20c26d['length'];_0x8bca2e++)_0x20c26d[_0x8bca2e]['next']=_0x20c26d[_0x8bca2e+0x1]||null;for(const _0x2cc42d of _0x5f0228)for(let _0x498e8a=0x0;_0x498e8a<_0x2cc42d['length'];_0x498e8a++)_0x2cc42d[_0x498e8a]['previous']=_0x2cc42d[_0x498e8a-0x1]||null;function _0x3803c7(_0x5710e5,_0x40566f){if(_0x5710e5[0x0]['attributes']['groupId']!==_0x40566f[0x0]['attributes']['groupId']&&_0x5710e5[0x0]['author']!==_0x40566f[0x0]['author'])return!0x1;if(!function(_0x3ce771,_0x4c5c8a){if(!_0x3ce771['hasComments']&&!_0x4c5c8a['hasComments'])return!0x0;if(_0x3ce771['hasComments']&&_0x4c5c8a['hasComments'])return!0x1;if(_0x3ce771['hasComments']&&_0x4c5c8a['createdAt']<_0x3ce771['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c5c8a['hasComments']&&_0x3ce771['createdAt']<_0x4c5c8a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5710e5[0x0],_0x40566f[0x0]))return!0x1;const _0x58aa2b=Bt(_0x5710e5[0x0]['attributes'],'groupId'),_0x1854f2=Bt(_0x40566f[0x0]['attributes'],'groupId');if(!_0x31ca00(_0x58aa2b,_0x1854f2))return!0x1;return!!_0x5710e5['every'](_0x1db896=>_0x40566f['some'](_0xfaf963=>_0x1db896['getFirstRange']()['isEqual'](_0xfaf963['getFirstRange']())))&&_0x40566f['every'](_0x13d2f1=>_0x5710e5['some'](_0x2d29f7=>_0x13d2f1['getFirstRange']()['isEqual'](_0x2d29f7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x12ab68){const _0x36d12a=Array['from'](_0x12ab68),_0x5a12e9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x457a8b=_0x5a12e9['filter'](_0x518c80=>!_0x12ab68['has'](_0x518c80)),_0x267ba7=new Map(_0x36d12a['map'](_0x27ce98=>[_0x27ce98,this['_suggestionFactory']['getSuggestionCallback'](_0x27ce98['type'],_0x27ce98['subType'],'join')])),_0x58440b=new Map(_0x5a12e9['map'](_0x4c9cb4=>[_0x4c9cb4,_0x4c9cb4['getRanges']()]));for(let _0x1ac329=0x0;_0x1ac329<_0x36d12a['length'];_0x1ac329++){if(_0x449a10(this,_0x36d12a[_0x1ac329],_0x36d12a,_0x1ac329+0x1))return!0x0;}for(let _0x4c2bcc=0x0;_0x4c2bcc<_0x36d12a['length'];_0x4c2bcc++){if(_0x449a10(this,_0x36d12a[_0x4c2bcc],_0x457a8b,0x0))return!0x0;}return!0x1;function _0x449a10(_0x1959c3,_0x29ea73,_0x4fc21e,_0x25dc25){for(let _0xd0b20e=_0x25dc25;_0xd0b20e<_0x4fc21e['length'];_0xd0b20e++){const _0x1eb9cf=_0x4fc21e[_0xd0b20e];if(_0x1eb9cf['type']!==_0x29ea73['type']||_0x1eb9cf['author']['id']!==_0x29ea73['author']['id']||_0x1eb9cf['subType']!==_0x29ea73['subType'])continue;if(!Pt(_0x29ea73,_0x1eb9cf,['groupId']))continue;if('attribute'==_0x29ea73['type']&&_0x29ea73['data']['oldValue']!=_0x1eb9cf['data']['oldValue'])continue;if('attribute'==_0x29ea73['type']&&_0x1959c3['_isBlockAttribute'](_0x29ea73['data']['key']))continue;if('formatBlock'==_0x29ea73['type']){const _0x4058c4=_0x1959c3['editor']['model'],_0x3bb9ac=_0x29ea73['getContainedElement']();if(_0x3bb9ac&&(_0x4058c4['schema']['isObject'](_0x3bb9ac)||_0x4058c4['schema']['isLimit'](_0x3bb9ac)))continue;}const _0x835d95=_0x267ba7['get'](_0x29ea73),_0x1c9365=_0x58440b['get'](_0x29ea73),_0xfd050f=_0x58440b['get'](_0x1eb9cf),_0xeafb84=_0x29ea73['commentThread']&&_0x29ea73['commentThread']['length'],_0x3b6a94=_0x1eb9cf['commentThread']&&_0x1eb9cf['commentThread']['length'];if(!_0xeafb84&&_0x835d95(_0xfd050f,_0x1c9365))return _0x1959c3['_joinSuggestions'](_0x1eb9cf,_0x29ea73),_0x58440b['delete'](_0x29ea73),!0x0;if(!_0x3b6a94&&_0x835d95(_0x1c9365,_0xfd050f))return _0x1959c3['_joinSuggestions'](_0x29ea73,_0x1eb9cf),_0x58440b['delete'](_0x1eb9cf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x54b9f5,_0x4ab633){if(_0x54b9f5['isMultiRange']){for(const _0x433098 of _0x4ab633['getRanges']())_0x54b9f5['addRange'](_0x433098);}else{const _0x230d83=_0x4ab633['getFirstRange']()['end'];this['_setSuggestionRange'](_0x54b9f5,this['_model']['createRange'](_0x54b9f5['getFirstRange']()['start'],_0x230d83));}_0x4ab633['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2e7bd5,_0x4c94c4){const _0x1d6b31=_0x2e7bd5['startsWith']('format')||_0x2e7bd5['startsWith']('attribute')?'FORMATTING':_0x2e7bd5['toUpperCase']();return o(this['editor']['locale'],_0x4c94c4+'_'+_0x1d6b31+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4a81b5=this['editor'];if(!_0x4a81b5['ui'])return;const {ariaLiveAnnouncer:_0x380171}=_0x4a81b5['ui'];_0x584d8a(this['_model'],({left:_0x2486d2,entered:_0x2a0410})=>{for(const _0x5746ee of _0x2486d2){const {group:_0x1ab0c5,type:_0x4665b6}=this['_splitMarkerName'](_0x5746ee['name']);if('suggestion'===_0x1ab0c5){_0x380171['announce'](this['_getMarkerAnnouncementText'](_0x4665b6,'LEAVE'));break;}}for(const _0x513613 of _0x2a0410){const {group:_0x3de3fd,type:_0x59ba2c}=this['_splitMarkerName'](_0x513613['name']);if('suggestion'===_0x3de3fd){_0x380171['announce'](this['_getMarkerAnnouncementText'](_0x59ba2c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x448add){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb94b6e=this['editor'],_0x46a977=_0xb94b6e['model']['document']['differ']['getChanges']();if(0x0==_0x46a977['length'])return!0x1;const _0xe0cbd4=[],_0x3a92e1=_0x46a977['filter'](_0xd09d5d=>'attribute'==_0xd09d5d['type']),_0x57909b=_0x46a977['filter'](_0x4ad531=>'insert'==_0x4ad531['type']&&'$text'!=_0x4ad531['name']),_0x58e44d=_0x46a977['filter'](_0x5408de=>'remove'==_0x5408de['type']&&'$text'!=_0x5408de['name']);for(const _0x1ecba9 of _0x3a92e1)_0xe0cbd4['push']({'key':_0x1ecba9['attributeKey'],'newValue':_0x1ecba9['attributeNewValue'],'oldValue':_0x1ecba9['attributeOldValue'],'range':Ot(_0x1ecba9['range'],_0xb94b6e['model'])});for(const _0x58e54a of _0x57909b){const _0x25979b=_0x58e44d['find'](_0x1b34b1=>_0x1b34b1['position']['isEqual'](_0x58e54a['position']));_0x25979b&&_0xe0cbd4['push']({'key':m,'newValue':_0x58e54a['name'],'oldValue':_0x25979b['name'],'range':_0xb94b6e['model']['createRangeOn'](_0x58e54a['position']['nodeAfter'])});}return 0x0!=_0xe0cbd4['length']&&this['_reduceExistingSuggestions'](_0x448add,_0xe0cbd4);}['_processAttributeSuggestions'](_0xf3c67c){let _0x359a28=!0x1;const _0x57efba=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e0c50=>_0x1e0c50['data']['newRange']&&_0x1e0c50['name']['startsWith']('suggestion:attribute:'));for(const _0x5e2dbe of _0x57efba){const {subType:_0x4e7d24,id:_0x20e1d0}=this['_splitMarkerName'](_0x5e2dbe['name']),_0x3d405e=_0x4e7d24['split']('|')[0x0];for(const _0x4055f2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4055f2['id']!=_0x20e1d0&&'attribute'==_0x4055f2['type']&&_0x4055f2['data']&&_0x4055f2['data']['key']==_0x3d405e&&_0x4055f2['getFirstRange']()['isIntersecting'](_0x5e2dbe['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4055f2,_0x5e2dbe['data']['newRange'],_0xf3c67c),_0x359a28=!0x0);}return _0x359a28;}['_recordAttributeChanges'](_0x213024){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x213024();}['_isRegisteredAttribute'](_0x35423b){const _0x59c758=this['_isBlockAttribute'](_0x35423b),_0x14bb11=this['_inlineAttributeKeys']['has'](_0x35423b);return _0x59c758||_0x14bb11;}['_reduceExistingSuggestions'](_0x20cde9,_0x3f12c3){if(0x0==_0x3f12c3['length'])return!0x1;let _0x2d7dfe=!0x1;for(const _0x17074c of _0x3f12c3){const _0x2f9170=this['_findSuggestions'](_0x17074c['range'],'attribute')['filter'](_0x4a92c9=>!_0x4a92c9['meta']['isNextTo'])['map'](_0x2a9cec=>_0x2a9cec['suggestion']),_0x7b8409=_0x54329d({'newValue':_0x17074c['newValue']});_0x2f9170['filter'](_0x27e9fb=>{const [_0x32f176,_0x44e945]=_0x27e9fb['subType']['split']('|');return _0x32f176==_0x17074c['key']&&_0x44e945!=_0x7b8409;})['forEach'](_0x19d2e3=>{this['_reduceSuggestionAttributeRange'](_0x19d2e3,_0x17074c['range'],_0x20cde9),_0x2d7dfe=!0x0;});}return _0x2d7dfe;}['_reduceSuggestionAttributeRange'](_0x96d034,_0x395070,_0x2cde7b){const _0x375049=_0x96d034['getFirstRange']()['getDifference'](_0x395070);0x0!==_0x375049['length']?0x1!==_0x375049['length']?this['_breakSuggestionMarker'](_0x96d034,_0x395070['start'],_0x395070['end']):this['_setSuggestionRange'](_0x96d034,_0x375049[0x0]):_0x2cde7b['removeMarker'](_0x96d034['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x714c98){this['_editor']=_0x714c98,this['_model']=_0x714c98['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x27ad81,_0x381e39,_0x3f6255,_0x2cd03d,_0xabcd6a,_0x495ee1){return new u(this['_model'],{'type':_0x27ad81,'subType':_0x381e39,'id':_0x3f6255,'author':_0x2cd03d,'creator':_0x2cd03d,'attributes':_0xabcd6a,'onAttributesChange':_0x495ee1,'onAccept':(..._0x3a7336)=>this['getSuggestionCallback'](_0x27ad81,_0x381e39,'accept')(..._0x3a7336),'onDiscard':(..._0x43c44b)=>this['getSuggestionCallback'](_0x27ad81,_0x381e39,'discard')(..._0x43c44b)});}['registerCustomCallback'](_0x89f5d4,_0x26430b,_0x296101,_0x1c7a3e){const _0x2d41a6=_0x89f5d4+':'+_0x26430b+':'+_0x296101;this['_customCallbacks']['set'](_0x2d41a6,_0x1c7a3e);}['getSuggestionCallback'](_0x2387a9,_0x456fa8,_0x53f657){const _0x5cb36c=_0x2387a9+':'+_0x456fa8+':'+_0x53f657;return this['_customCallbacks']['get'](_0x5cb36c)||this['_defaultCallbacks']['get'](_0x2387a9+':'+_0x53f657);}['_registerDefaultCallbacks'](){const _0x36f3be=()=>!0x1,_0x38ed6a=_0x5c4711=>{_0x5c4711['sort']((_0x4643b6,_0x449342)=>_0x4643b6['start']['isBefore'](_0x449342['start'])?0x1:-0x1),this['_model']['change'](_0x120678=>{for(const _0x4abc4f of _0x5c4711){let _0x4fdb9e;_0x4fdb9e=_0x4abc4f['end']['isAtEnd']&&_0x4abc4f['end']['parent']==_0x4abc4f['start']['nodeAfter']?_0x120678['createSelection'](_0x4abc4f['start']['nodeAfter'],'on'):_0x120678['createSelection'](_0x4abc4f),this['_model']['deleteContent'](_0x4fdb9e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24823e=(_0x260aff,_0x52d28b)=>{_0x52d28b&&this['_model']['change'](_0x47d8ca=>{const {commandName:_0x5b97ba,commandParams:_0x197dc4=[]}=_0x52d28b,_0x1e7061=_0x260aff['map'](_0x140511=>(Tt(_0x140511)&&(_0x140511=this['_model']['createRange'](_0x140511['end'])),_0x140511))['filter'](_0x52d322=>'$graveyard'!==_0x52d322['root']['rootName']);if(_0x1e7061['length']<0x1)return;const _0x15dbb4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xeedc82=>_0x1dfa9b['fromRange'](_0xeedc82));_0x47d8ca['setSelection'](_0x1e7061);for(const _0x14b94f of this['_editor']['commands']['commands']())_0x14b94f['refresh']();_0x197dc4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5b97ba,..._0x197dc4);const _0x4890cb=_0x15dbb4['filter'](_0x31df45=>'$graveyard'!=_0x31df45['root']['rootName']);_0x4890cb['length']>0x0&&_0x47d8ca['setSelection'](_0x4890cb);for(const _0x420f10 of _0x15dbb4)_0x420f10['detach']();});},_0xf3dd5c=(_0x194fb9,_0x5a18c1)=>0x1==_0x194fb9['length']&&0x1==_0x5a18c1['length']&&_0x194fb9[0x0]['end']['isEqual'](_0x5a18c1[0x0]['start']),_0x253286=(_0x3917fe,_0x5ead21,_0xd2d640,_0xd29881)=>Ft(_0x3917fe,_0x5ead21,_0xd2d640,_0xd29881,this['_model'])?[_0x3917fe,_0x5ead21]:Ft(_0x5ead21,_0x3917fe,_0xd29881,_0xd2d640,this['_model'])?[_0x5ead21,_0x3917fe]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x36f3be),this['_defaultCallbacks']['set']('insertion:discard',_0x38ed6a),this['_defaultCallbacks']['set']('insertion:join',_0xf3dd5c),this['_defaultCallbacks']['set']('insertion:chain',_0x253286),this['_defaultCallbacks']['set']('deletion:accept',_0x38ed6a),this['_defaultCallbacks']['set']('deletion:discard',_0x36f3be),this['_defaultCallbacks']['set']('deletion:join',_0xf3dd5c),this['_defaultCallbacks']['set']('deletion:chain',_0x253286),this['_defaultCallbacks']['set']('formatInline:accept',_0x24823e),this['_defaultCallbacks']['set']('formatInline:discard',_0x36f3be),this['_defaultCallbacks']['set']('formatInline:join',_0xf3dd5c),this['_defaultCallbacks']['set']('formatInline:chain',_0x36f3be),this['_defaultCallbacks']['set']('formatBlock:accept',_0x24823e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x36f3be),this['_defaultCallbacks']['set']('formatBlock:join',_0xf3dd5c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x36f3be),this['_defaultCallbacks']['set']('attribute:accept',_0x36f3be),this['_defaultCallbacks']['set']('attribute:discard',(_0xa4417f,_0x5923b1)=>{if(!_0x5923b1)return;const _0x60c7bb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c2b8e=>{if(_0x5923b1['key']==m)for(const _0x5eb158 of _0xa4417f){const _0x3d9715=_0x5eb158['start']['nodeAfter'],_0x421915=_0x5923b1['oldValue'];_0x2c2b8e['rename'](_0x3d9715,_0x421915);}else{if(_0x60c7bb['_isBlockAttribute'](_0x5923b1['key'])){for(const _0x459358 of _0xa4417f)void 0x0!==_0x5923b1['oldValue']?_0x2c2b8e['setAttribute'](_0x5923b1['key'],_0x5923b1['oldValue'],_0x459358['start']['nodeAfter']):_0x2c2b8e['removeAttribute'](_0x5923b1['key'],_0x459358['start']['nodeAfter']);}else{for(const _0x14fbf4 of _0xa4417f)_0x5923b1['oldValue']?_0x2c2b8e['setAttribute'](_0x5923b1['key'],_0x5923b1['oldValue'],_0x14fbf4):_0x2c2b8e['removeAttribute'](_0x5923b1['key'],_0x14fbf4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xf3dd5c);}}function Rt(_0x536191,_0x448b86,_0x2b3117){for(const _0x3af518 of _0x448b86['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3af518['root']==_0x3af518)return!0x1;if(!_0x2b3117['containsItem'](_0x3af518))return!0x1;if(_0x536191['isObject'](_0x3af518)||_0x536191['isLimit'](_0x3af518))return!0x0;}return!0x1;}function Tt(_0x482e82){return _0x482e82['end']['parent']==_0x482e82['start']['nodeAfter']&&_0x482e82['end']['isAtStart'];}function Et(_0x206ccd,_0x1e8ba6,_0x3087a4,_0x5b16a1){const _0x24a111=_0x335486=>!_0x335486['item']['is']('$textProxy')&&!_0x5b16a1['isObject'](_0x335486['item']),_0x54f845=_0x206ccd['start']['getLastMatchingPosition'](_0x24a111),_0x4ccb4c=_0x206ccd['end']['getLastMatchingPosition'](_0x24a111,{'direction':'backward'});return(!_0x206ccd['start']['isEqual'](_0x54f845)||!_0x206ccd['end']['isEqual'](_0x4ccb4c))&&(_0x54f845['isBefore'](_0x4ccb4c)?_0x3087a4['updateMarker'](_0x1e8ba6,{'range':_0x3087a4['createRange'](_0x54f845,_0x4ccb4c)}):_0x3087a4['removeMarker'](_0x1e8ba6),!0x0);}function Vt(_0x4aaa99){return _0x54329d(_0x4aaa99);}function Ut(_0xb4d0c9){const _0x1c876a=_0xb4d0c9['start']['nodeAfter'];return _0x1c876a&&_0x1c876a['is']('element');}function Ot(_0x2b7a47,_0x1fc01d){return null==_0x2b7a47['end']['nodeBefore']&&_0x2b7a47['end']['parent']==_0x2b7a47['start']['nodeAfter']?Gt(_0x2b7a47['start']['nodeAfter'],_0x1fc01d):_0x2b7a47;}function Gt(_0x53f14b,_0x560d07){const _0x46ba5b=_0x560d07['schema']['isObject'](_0x53f14b)||_0x560d07['schema']['isSelectable'](_0x53f14b);return _0x560d07['createRange'](_0x560d07['createPositionAt'](_0x53f14b,'before'),_0x46ba5b?_0x560d07['createPositionAfter'](_0x53f14b):_0x560d07['createPositionAt'](_0x53f14b,'end'));}function Ft(_0x32411b,_0x54bc2f,_0x4bf9d3,_0x2452a8,_0x4f56f7){if(!Pt(_0x32411b,_0x54bc2f))return!0x1;if(_0x4bf9d3['end']['isEqual'](_0x2452a8['start']))return!0x0;if(_0x32411b['type']!=_0x54bc2f['type'])return!0x1;if(!_0x4bf9d3['end']['isTouching'](_0x2452a8['start']))return!0x1;const _0x163b30=_0x4f56f7['createRange'](_0x4bf9d3['end'],_0x2452a8['start'])['getWalker']();for(const _0x16f9fe of _0x163b30)if(['elementStart','elementEnd']['includes'](_0x16f9fe['type'])&&_0x4f56f7['schema']['isLimit'](_0x16f9fe['item']))return!0x1;return!0x0;}function Pt(_0x1ef593,_0x4497f3,_0x2c63c6=[]){return!(!_0x1ef593['_isDataLoaded']||!_0x4497f3['_isDataLoaded'])&&_0x31ca00(Bt(_0x1ef593['attributes'],_0x2c63c6),Bt(_0x4497f3['attributes'],_0x2c63c6));}function Lt(_0x257290,_0x271b75){const _0x490496=Ht(_0x257290['attributes']),_0x51099e=Ht(_0x271b75);if(!_0x257290['_isDataLoaded'])return!0x1;for(const _0x56b4b7 of Object['keys'](_0x51099e))if(!_0x31ca00(_0x490496[_0x56b4b7],_0x51099e[_0x56b4b7]))return!0x1;return!0x0;}function Ht(_0x510bec){const _0x48e092=Object['assign']({},_0x510bec);return delete _0x48e092['skipNestingCheck'],delete _0x48e092['tablePasteChainId'],_0x48e092;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x2fb989(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x34d51a,_0x3aaea9,_0x47dc42,_0xc83293){super(),this['model']=_0x3aaea9,this['view']=_0x47dc42,this['commentThreadController']=_0xc83293,this['_editor']=_0x34d51a,this['_acceptCommand']=_0x34d51a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x34d51a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x19aa90,_0x47a60c)=>_0x19aa90||_0x47a60c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x145383=>_0x145383&&this['_editor']['model']['canEditAt'](_0x3aaea9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2a4957=>_0x2a4957&&this['_editor']['model']['canEditAt'](_0x3aaea9['getRanges']())),this['_pendingAction']=null,_0x47dc42['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x47dc42,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x47dc42,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x47dc42,'change:isDirty',()=>{_0x47dc42['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 _0xade53=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xade53);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x409079{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x56c3b8,_0x46a3b9,_0x52c7ed,_0x4e949e){super(_0x56c3b8),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x46a3b9['authoredAt']),this['bind']('authoredAt')['to'](_0x46a3b9),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x46a3b9,this['_localUser']=_0x52c7ed,this['_config']=_0x4e949e,_0x4e949e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3b5244}=this['_config'];this['commentsListView']=new _0x3b5244(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',_0x543a6c=>_0x543a6c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xfb1714,_0x5aa258)=>_0xfb1714||!!_0x5aa258);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4080a8}=this['_config'],_0x44d27d=new _0x4080a8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x14e210=_0x44d27d['commentInputView'];return _0x44d27d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x14e210,'value',(_0x59c074,_0x58c986,_0x54837c)=>!!_0x54837c||_0x59c074&&!_0x58c986),_0x14e210['on']('submit',(_0x1aba96,_0x326c0f)=>{this['fire']('addComment',_0x326c0f),_0x14e210['editor']['setData']('');}),_0x14e210['on']('cancel',()=>this['focus']()),_0x14e210['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x44d27d;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x531c90,_0x36bfcb,_0x33d78b,_0x2ee85d){super(_0x531c90,_0x36bfcb,_0x33d78b,_0x2ee85d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x269d05=>_0x269d05&&_0x269d05[0x0]?_0x269d05[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x447971,_0x2217ab)=>{let _0x305539='';for(const _0xa0cf5d of _0x447971)_0x305539+='<p>'+ds(_0xa0cf5d['content'],_0xa0cf5d['color'])+'</p>';return _0x2217ab?_0x305539:_0x4db2b0(_0x305539,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x531c90,'Accept\x20suggestion'),_0x41ed1b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x531c90,'Discard\x20suggestion'),_0x41ed1b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x52e2cc(_0x531c90,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x32aebd=this['bindTemplate'],_0x107cca=[{'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':_0x32aebd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x32aebd['to']('authoredAt',_0x33fb0d=>this['_config']['formatDateTime'](_0x33fb0d))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x107cca['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1a4fb5={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x32aebd['if']('isActive','ck-suggestion-wrapper--active'),_0x32aebd['to']('type',_0x186b12=>'ck-suggestion-'+_0x186b12),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x107cca}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1a4fb5['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1a4fb5;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x31724a,_0x4c9cad,_0x15fcde)=>{this['_descriptionElement']['innerHTML']=_0x15fcde;});}['_createButton'](_0x3f1a7a,_0x49694e,_0x7b6c16,_0x24598b,_0x1c1f7f){const _0x4b91cf=new _0x3678e0(this['locale']);return _0x4b91cf['set']({'label':_0x3f1a7a,'icon':_0x49694e,'tooltip':!0x0,'tooltipPosition':_0x1c1f7f}),_0x4b91cf['extendTemplate']({'attributes':{'class':_0x7b6c16}}),_0x4b91cf['on']('execute',()=>{this['fire'](_0x24598b,this['_model']['id']);}),_0x4b91cf;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x5d9094,_0x49df2d){let _0x4aed9c='';return _0x4aed9c+=_0x5d9094['split']('*')['map']((_0x1668e8,_0x4f65be)=>_0x4f65be%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x1668e8)+'</span>':us(_0x1668e8))['join'](''),_0x49df2d&&(_0x4aed9c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x49df2d['value']+'\x22\x20title=\x22'+_0x49df2d['title']+'\x22></span>'),_0x4aed9c;}function us(_0x3e6b5e){const _0x396bee=document['createElement']('span');return _0x396bee['innerText']=_0x3e6b5e,_0x396bee['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x427f36{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x394f1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x21ae08){super(_0x21ae08),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x22c053=this['editor']['config'];_0x22c053['define']('trackChanges.SuggestionThreadView',ne),_0x22c053['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x22c053['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8ecef3,_0x55a52d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x17bb42,_0x5c4f17]of this['_handleControllerBuffer']){const _0x282a44=this['_suggestionToController']['has'](_0x17bb42);_0x282a44||_0x5c4f17?_0x282a44&&_0x5c4f17&&this['_destroyController'](_0x17bb42):this['_initializeController'](_0x17bb42);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8ecef3,_0x55a52d);}['init'](){const _0x1d72d6=this['editor'],_0x2944bb=_0x1d72d6['plugins']['get']('TrackChangesEditing'),_0x453712=_0x1d72d6['plugins']['get']('Annotations'),_0x4452c3=_0x1d72d6['plugins']['get']('EditorAnnotations'),_0x14a5dc=_0x1d72d6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4452c3['addSourceCollector'](()=>{const _0x44a9ba=[];for(const [_0x3e24e8,_0x1f4a32]of Array['from'](this['_suggestionToController'])){const _0x1b1fda=_0x3e24e8['getAllAdjacentSuggestions'](),_0x3a3223=[];for(const _0x3f3841 of _0x1b1fda){if(!_0x3f3841['isInContent'])continue;if(_0x3f3841['isMultiRange']){_0x3a3223['push'](..._0x3f3841['getRanges']());continue;}const _0x4e420b=_0x3f3841['getFirstRange']();if(_0x3a3223['length']>0x0){const _0x3730f6=_0x3a3223[0x0]['getJoined'](_0x4e420b);if(_0x3730f6){_0x3a3223[0x0]=_0x3730f6;continue;}}_0x3a3223['push'](_0x4e420b);}_0x44a9ba['push']([_0x1f4a32['view'],_0x3a3223]);}return _0x44a9ba;}),this['listenTo'](_0x2944bb,'suggestionLoaded',(_0x14d047,_0x75a053)=>{this['listenTo'](_0x75a053,'change:previous',(_0x54be01,_0x4c2445,_0x36d7a5,_0x3cee43)=>{_0x75a053['isInContent']&&(null==_0x36d7a5?(this['_updateController'](_0x3cee43['head']),this['_handleSuggestionControllerDelayed'](_0x75a053,!0x1)):(this['_updateController'](_0x36d7a5['head']),null==_0x3cee43&&this['_handleSuggestionControllerDelayed'](_0x75a053,!0x0)));}),null!==_0x75a053['previous']?this['_updateController'](_0x75a053['head']):this['_handleSuggestionControllerDelayed'](_0x75a053,!0x1);}),this['listenTo'](_0x2944bb,'suggestionUnloaded',(_0x5b456d,_0x40259c,_0x150aa8)=>{this['stopListening'](_0x40259c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x40259c),this['_suggestionToController']['has'](_0x40259c)&&this['_destroyController'](_0x40259c),_0x150aa8&&this['_updateController'](_0x150aa8['head']);}),this['listenTo'](_0x2944bb,'suggestionChanged',(_0x1971ba,_0x2f2774)=>{this['_updateController'](_0x2f2774);}),this['listenTo'](_0x453712,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x14a5dc,'addComment',(_0x401218,{threadId:_0x11e1ac,isFromAdapter:_0x33d877})=>{if(_0x33d877||!_0x2944bb['hasSuggestion'](_0x11e1ac))return;const _0x188f60=_0x2944bb['getSuggestion'](_0x11e1ac);this['_suggestionToController']['get'](_0x188f60)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5bb960=this['editor']['plugins']['get']('Annotations'),_0x24e1e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x396d3b=Array['from'](_0x5bb960['activeAnnotations'],_0x4269e1=>_0x4269e1['innerView'])['filter'](_0x4c9004=>this['_viewToController']['has'](_0x4c9004)),_0x50fcfa=[];for(const _0xa1e5b3 of _0x396d3b){const _0x5ecfa1=this['_viewToController']['get'](_0xa1e5b3)['model']['getAllAdjacentSuggestions']();_0x50fcfa['push'](..._0x5ecfa1['reduce']((_0x1e8e05,_0x96fdf8)=>[..._0x1e8e05,..._0x96fdf8['getMarkerNames']()],[]));}_0x24e1e8['activeMarkers']=_0x50fcfa;}['_addUIComponentsToFactory'](){const _0x59e608=this['editor'],_0x2dc276=_0x59e608['locale'],_0x18740f=o(_0x2dc276,'Track\x20changes'),_0x5b1142=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x18740f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2dc276,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2dc276,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2dc276,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2dc276,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x594c61 of _0x5b1142)if(ae(_0x594c61)){const _0x4d8d57=_0x59e608['commands']['get'](_0x594c61['model']['commandName']);_0x594c61['model']['bind']('isOn','isEnabled')['to'](_0x4d8d57,'value','isEnabled');}_0x59e608['ui']['componentFactory']['add']('trackChanges',_0x198849=>this['_createToolbarButton'](_0x198849,_0x5b1142,_0x18740f)),_0x59e608['ui']['componentFactory']['add']('menuBar:trackChanges',_0x423478=>this['_createMenuBarMenu'](_0x423478,_0x5b1142,_0x18740f));}['_createToolbarButton'](_0x2030e6,_0x507d26,_0x462edf){const _0x19343a=zt(_0x2030e6,Zt),_0x3923be=this['editor']['commands']['get']('trackChanges');_0x19343a['buttonView']['set']({'tooltip':_0x462edf,'label':_0x462edf,'icon':ie}),_0x19343a['buttonView']['bind']('isOn')['to'](_0x3923be,'value'),_0x19343a['buttonView']['on']('execute',()=>{_0x3923be['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x19343a,_0x507d26,{'role':'menu'});const _0x41c5b8=[];for(const _0x28cba9 of _0x507d26)ae(_0x28cba9)&&_0x41c5b8['push'](this['editor']['commands']['get'](_0x28cba9['model']['commandName']));const _0x3da777=_0x19343a['buttonView'];return _0x3da777['actionView']['unbind']('isEnabled'),_0x3da777['arrowView']['unbind']('isEnabled'),_0x3da777['actionView']['bind']('isEnabled')['to'](_0x3923be,'isEnabled'),_0x3da777['arrowView']['bind']('isEnabled')['toMany'](_0x41c5b8,'isEnabled',(..._0x3120dc)=>_0x3120dc['some'](_0x3f0d40=>_0x3f0d40)),_0x19343a['on']('execute',_0x39f966=>{this['editor']['execute'](_0x39f966['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x19343a;}['_createMenuBarMenu'](_0x250ef5,_0x17d4c8,_0x242863){const _0x160b41=new Kt(_0x250ef5),_0x5a44c6=this['editor']['commands']['get']('trackChanges');_0x160b41['buttonView']['set']({'label':_0x242863,'icon':ie});const _0xe67529=new Qt(_0x250ef5);for(const _0xde3a82 of _0x17d4c8){if('separator'==_0xde3a82['type']){_0xe67529['items']['add'](new Jt(_0x250ef5));continue;}const _0x233d63=new Xt(_0x250ef5,_0x160b41),_0xdb3c2c=new Yt(_0x250ef5),_0x3ee54d=_0xde3a82['model'];_0xdb3c2c['bind'](...Object['keys'](_0x3ee54d))['to'](_0x3ee54d),_0xdb3c2c['delegate']('execute')['to'](_0x160b41),_0xdb3c2c['on']('execute',()=>{this['editor']['execute'](_0x3ee54d['commandName']),this['editor']['editing']['view']['focus']();}),_0x233d63['children']['add'](_0xdb3c2c),_0xe67529['items']['add'](_0x233d63);}return _0x160b41['bind']('isEnabled')['to'](_0x5a44c6,'isEnabled'),_0x160b41['panelView']['children']['add'](_0xe67529),_0x160b41;}['_initializeController'](_0x506c09){const _0x251302=this['editor'],_0x4b403b=_0x251302['config'],_0xa61017=_0x251302['plugins']['get']('Annotations'),_0x2911a3=_0x251302['plugins']['get']('CommentsRepository'),_0xa4ee1d=_0x251302['plugins']['get']('EditorAnnotations'),_0x529ca3=_0x251302['plugins']['get'](_0x394f1a)['me'],_0x23a697=_0x4b403b['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x195331,CommentThreadInputView:_0x497b3f}=_0x251302['plugins']['get']('CommentsUI');let _0x5a0e3c,_0x3fc7cf;this['_annotationViews']['has'](_0x506c09['id'])?(_0x3fc7cf=this['_annotationViews']['get'](_0x506c09['id']),_0x5a0e3c=_0x3fc7cf['mainView']):(_0x5a0e3c=new _0x23a697(_0x251302['locale'],_0x506c09,_0x529ca3,{'disableComments':this['_disableComments'],'editorConfig':_0x4b403b['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4b403b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b403b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b403b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5f0d19(_0x4b403b['get']('locale')),'CommentView':_0x4b403b['get']('comments')['CommentView'],'CommentsListView':_0x195331,'CommentThreadInputView':_0x497b3f}),_0x5a0e3c['acceptButton']['on']('execute',()=>{_0x251302['editing']['view']['focus']();}),_0x5a0e3c['discardButton']['on']('execute',()=>{_0x251302['editing']['view']['focus']();}),_0x3fc7cf=_0xa61017['createAnnotationView'](this['editor']['locale'],_0x5a0e3c),_0x3fc7cf['bind']('isDirty')['to'](_0x5a0e3c,'isDirty'),_0x3fc7cf['bind']('length')['to'](_0x5a0e3c),_0x3fc7cf['bind']('type')['to'](_0x5a0e3c,'type',_0x1c4c30=>'suggestion-'+_0x1c4c30),this['_annotationViews']['set'](_0x506c09['id'],_0x3fc7cf));const _0x1b91a2=_0x2911a3['createCommentThreadController'](_0x506c09['commentThread'],_0x5a0e3c),_0xf3b058=new oe(_0x251302,_0x506c09,_0x5a0e3c,_0x1b91a2),_0x50a65b=_0x506c09['getAllAdjacentSuggestions']()['filter'](_0x747ac1=>_0x747ac1['isInContent']);_0x5a0e3c['descriptionParts']=_0x251302['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x50a65b),this['_suggestionToController']['set'](_0x506c09,_0xf3b058),this['_viewToController']['set'](_0x5a0e3c,_0xf3b058);const _0x10bb31=_0xa61017['createAnnotation']({'view':_0x3fc7cf,'target':()=>{const _0x29ced1=[],_0x3decd3=_0x506c09['getAllAdjacentSuggestions']()['filter'](_0x30cbe7=>_0x30cbe7['isInContent']);for(const _0x29eddf of _0x3decd3)_0x29ced1['push'](..._0x29eddf['getMarkers']());return _0x337491(_0x251302['editing'],_0x29ced1);},'type':()=>'suggestion-'+_0xf3b058['view']['type']});_0x2911a3['_bindAnnotationToEditors'](_0x5a0e3c,_0x10bb31),_0xa61017['add'](_0x10bb31),_0xa4ee1d['registerAnnotation'](_0x10bb31);}['_destroyController'](_0x4548b1){const _0x312742=this['editor']['plugins']['get']('CommentsRepository'),_0x3b01e4=this['editor']['plugins']['get']('Annotations'),_0x4ba639=this['_suggestionToController']['get'](_0x4548b1),_0x2e5afb=_0x4ba639['view'],_0x3b410c=_0x3b01e4['getByInnerView'](_0x2e5afb);_0x312742['_unbindEditors'](_0x2e5afb),_0x3b410c&&_0x3b01e4['remove'](_0x3b410c),this['_suggestionToController']['delete'](_0x4548b1),this['_viewToController']['delete'](_0x2e5afb),_0x4ba639['destroy']();}['_updateController'](_0x2dba3a){if(!_0x2dba3a['isInContent']||!this['_suggestionToController']['has'](_0x2dba3a))return;const _0x105d3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5229f5=this['_suggestionToController']['get'](_0x2dba3a),_0x13be7b=_0x2dba3a['getAllAdjacentSuggestions']();_0x5229f5['view']['descriptionParts']=_0x105d3b['descriptionFactory']['getDescriptions'](_0x13be7b);}['destroy'](){for(const _0x38c231 of this['_suggestionToController']['keys']())this['_destroyController'](_0x38c231);for(const _0xf1823 of this['_annotationViews']['values']())_0xf1823['mainView']['destroy']();super['destroy']();}}function ae(_0x5cd50d){return'model'in _0x5cd50d;}class k extends _0x427f36{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x328bba){this['editor']['plugins']['get'](p)['adapter']=_0x328bba;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1b1533){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1b1533);}['getSuggestions']({skipNotAttached:_0x1e2bbe=!0x1,toJSON:_0x36a9d6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1e2bbe,'toJSON':_0x36a9d6});}['getSuggestion'](_0x10983b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x10983b);}}const T=['Pagination'];class P extends _0x427f36{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x50f021=this['editor'];if(_0x50f021['config']['define']('trackChangesData.editorCreator',_0x1af3ef=>{const _0x55f97d=_0x50f021['model']['document']['getRootNames']()['reduce']((_0x8b75ad,_0x1b824d)=>(_0x8b75ad[_0x1b824d]='',_0x8b75ad),{});return _0x50f021['constructor']['create'](_0x55f97d,_0x1af3ef);}),'function'!=typeof _0x50f021['config']['get']('trackChangesData')['editorCreator'])throw new _0x523c67('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xedbb98){return N(this['editor'],!0x0,_0xedbb98);}['getDataWithDiscardedSuggestions'](_0x276b93){return N(this['editor'],!0x1,_0x276b93);}}class D extends _0x427f36{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x903079){super(_0x903079),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(_0x5b1317){return void 0x0!==_0x5b1317['getRootsAttributes'];}async function N(_0x5a4586,_0x500fb1,_0x39cd6b){const _0x8353e7=_0x21be5c(_0x5a4586,T);_0x8353e7['plugins']['push'](p,D),_0x8353e7['rootsAttributes']=v(_0x5a4586)?_0x5a4586['getRootsAttributes']():void 0x0;const _0x3b2439=document['createDocumentFragment'](),_0x117cc6=_0x5a4586['config']['get']('trackChangesData')['editorCreator'],_0x1fa55a=await _0x117cc6(_0x8353e7,()=>function(_0x1c3deb){const _0x4d7758=document['createElement']('div');return _0x1c3deb['appendChild'](_0x4d7758),_0x4d7758;}(_0x3b2439));!function(_0x419a79,_0x3c900f){const _0x4d2530=_0x419a79['model']['document']['getRootNames']()['reduce']((_0x2d8a95,_0x342193)=>(_0x2d8a95[_0x342193]=_0x419a79['data']['get']({'rootName':_0x342193}),_0x2d8a95),{}),_0x4cf24c=_0x419a79['plugins']['get']('Users')['users']['map'](_0x119c50=>({'id':_0x119c50['id'],'name':_0x119c50['name']})),_0x4c8854=_0x419a79['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd8db7e=_0x419a79['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4260bd=_0x3c900f['plugins']['get']('Users'),_0xb9eede=_0x3c900f['plugins']['get']('TrackChangesEditing'),_0x26404b=_0x3c900f['plugins']['get']('CommentsRepository');for(const _0x4536fc of _0x4cf24c)_0x4260bd['getUser'](_0x4536fc['id'])||_0x4260bd['addUser'](_0x4536fc);_0x4260bd['me']||_0x4260bd['useAnonymousUser']();for(const _0x35ffbb of _0xd8db7e)_0x26404b['addCommentThread'](_0x35ffbb);for(const _0x4c58d5 of _0x4c8854)_0xb9eede['addSuggestionData'](_0x4c58d5);_0x3c900f['data']['set'](_0x4d2530);}(_0x5a4586,_0x1fa55a),_0x1fa55a['execute'](_0x500fb1?'acceptAllSuggestions':'discardAllSuggestions');const _0x125042=v(_0x1fa55a)?_0x1fa55a['getFullData'](_0x39cd6b):_0x1fa55a['data']['get'](_0x39cd6b);return await _0x1fa55a['destroy'](),_0x125042;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};