@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240716.0 → 0.0.0-nightly-20240717.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/CHANGELOG.md +1 -203
  2. package/build/track-changes.js +1 -1
  3. package/dist/index.js +3 -3
  4. package/dist/translations/ar.js +1 -1
  5. package/dist/translations/ar.umd.js +1 -1
  6. package/dist/translations/az.js +1 -1
  7. package/dist/translations/az.umd.js +1 -1
  8. package/dist/translations/bg.js +1 -1
  9. package/dist/translations/bg.umd.js +1 -1
  10. package/dist/translations/bn.js +1 -1
  11. package/dist/translations/bn.umd.js +1 -1
  12. package/dist/translations/ca.js +1 -1
  13. package/dist/translations/ca.umd.js +1 -1
  14. package/dist/translations/cs.js +1 -1
  15. package/dist/translations/cs.umd.js +1 -1
  16. package/dist/translations/da.js +1 -1
  17. package/dist/translations/da.umd.js +1 -1
  18. package/dist/translations/de.js +1 -1
  19. package/dist/translations/de.umd.js +1 -1
  20. package/dist/translations/el.js +1 -1
  21. package/dist/translations/el.umd.js +1 -1
  22. package/dist/translations/en-au.js +1 -1
  23. package/dist/translations/en-au.umd.js +1 -1
  24. package/dist/translations/en.umd.js +1 -1
  25. package/dist/translations/es.js +1 -1
  26. package/dist/translations/es.umd.js +1 -1
  27. package/dist/translations/et.js +1 -1
  28. package/dist/translations/et.umd.js +1 -1
  29. package/dist/translations/fi.js +1 -1
  30. package/dist/translations/fi.umd.js +1 -1
  31. package/dist/translations/fr.js +1 -1
  32. package/dist/translations/fr.umd.js +1 -1
  33. package/dist/translations/gl.js +1 -1
  34. package/dist/translations/gl.umd.js +1 -1
  35. package/dist/translations/he.js +1 -1
  36. package/dist/translations/he.umd.js +1 -1
  37. package/dist/translations/hi.js +1 -1
  38. package/dist/translations/hi.umd.js +1 -1
  39. package/dist/translations/hr.js +1 -1
  40. package/dist/translations/hr.umd.js +1 -1
  41. package/dist/translations/hu.js +1 -1
  42. package/dist/translations/hu.umd.js +1 -1
  43. package/dist/translations/id.js +1 -1
  44. package/dist/translations/id.umd.js +1 -1
  45. package/dist/translations/it.js +1 -1
  46. package/dist/translations/it.umd.js +1 -1
  47. package/dist/translations/ja.js +1 -1
  48. package/dist/translations/ja.umd.js +1 -1
  49. package/dist/translations/ko.js +1 -1
  50. package/dist/translations/ko.umd.js +1 -1
  51. package/dist/translations/lt.js +1 -1
  52. package/dist/translations/lt.umd.js +1 -1
  53. package/dist/translations/lv.js +1 -1
  54. package/dist/translations/lv.umd.js +1 -1
  55. package/dist/translations/ms.js +1 -1
  56. package/dist/translations/ms.umd.js +1 -1
  57. package/dist/translations/nl.js +1 -1
  58. package/dist/translations/nl.umd.js +1 -1
  59. package/dist/translations/no.js +1 -1
  60. package/dist/translations/no.umd.js +1 -1
  61. package/dist/translations/pl.js +1 -1
  62. package/dist/translations/pl.umd.js +1 -1
  63. package/dist/translations/pt-br.js +1 -1
  64. package/dist/translations/pt-br.umd.js +1 -1
  65. package/dist/translations/pt.js +1 -1
  66. package/dist/translations/pt.umd.js +1 -1
  67. package/dist/translations/ro.js +1 -1
  68. package/dist/translations/ro.umd.js +1 -1
  69. package/dist/translations/ru.js +1 -1
  70. package/dist/translations/ru.umd.js +1 -1
  71. package/dist/translations/sk.js +1 -1
  72. package/dist/translations/sk.umd.js +1 -1
  73. package/dist/translations/sq.js +1 -1
  74. package/dist/translations/sq.umd.js +1 -1
  75. package/dist/translations/sr-latn.js +1 -1
  76. package/dist/translations/sr-latn.umd.js +1 -1
  77. package/dist/translations/sr.js +1 -1
  78. package/dist/translations/sr.umd.js +1 -1
  79. package/dist/translations/sv.js +1 -1
  80. package/dist/translations/sv.umd.js +1 -1
  81. package/dist/translations/th.js +1 -1
  82. package/dist/translations/th.umd.js +1 -1
  83. package/dist/translations/tk.js +1 -1
  84. package/dist/translations/tk.umd.js +1 -1
  85. package/dist/translations/tr.js +1 -1
  86. package/dist/translations/tr.umd.js +1 -1
  87. package/dist/translations/tt.js +1 -1
  88. package/dist/translations/tt.umd.js +1 -1
  89. package/dist/translations/uk.js +1 -1
  90. package/dist/translations/uk.umd.js +1 -1
  91. package/dist/translations/ur.js +1 -1
  92. package/dist/translations/ur.umd.js +1 -1
  93. package/dist/translations/vi.js +1 -1
  94. package/dist/translations/vi.umd.js +1 -1
  95. package/dist/translations/zh-cn.js +1 -1
  96. package/dist/translations/zh-cn.umd.js +1 -1
  97. package/dist/translations/zh.js +1 -1
  98. package/dist/translations/zh.umd.js +1 -1
  99. package/dist/types/integrations/mergefields.d.ts +21 -0
  100. package/dist/types/trackchangesediting.d.ts +2 -1
  101. package/lang/contexts.json +1 -0
  102. package/package.json +3 -3
  103. package/src/commands/acceptsuggestioncommand.js +1 -1
  104. package/src/commands/discardsuggestioncommand.js +1 -1
  105. package/src/commands/executeonallsuggestionscommand.js +1 -1
  106. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  107. package/src/commands/trackchangescommand.js +1 -1
  108. package/src/index.js +1 -1
  109. package/src/integrations/aiassistant.js +1 -1
  110. package/src/integrations/alignment.js +1 -1
  111. package/src/integrations/basicstyles.js +1 -1
  112. package/src/integrations/blockquote.js +1 -1
  113. package/src/integrations/casechange.js +1 -1
  114. package/src/integrations/ckbox.js +1 -1
  115. package/src/integrations/codeblock.js +1 -1
  116. package/src/integrations/comments.js +1 -1
  117. package/src/integrations/deletecommand.js +1 -1
  118. package/src/integrations/entercommand.js +1 -1
  119. package/src/integrations/findandreplace.js +1 -1
  120. package/src/integrations/font.js +1 -1
  121. package/src/integrations/formatpainter.js +1 -1
  122. package/src/integrations/heading.js +1 -1
  123. package/src/integrations/highlight.js +1 -1
  124. package/src/integrations/horizontalline.js +1 -1
  125. package/src/integrations/htmlembed.js +1 -1
  126. package/src/integrations/image.js +1 -1
  127. package/src/integrations/imagereplace.js +1 -1
  128. package/src/integrations/imagestyle.js +1 -1
  129. package/src/integrations/importword.js +1 -1
  130. package/src/integrations/indent.js +1 -1
  131. package/src/integrations/inputcommand.js +1 -1
  132. package/src/integrations/legacylist.js +1 -1
  133. package/src/integrations/legacylistproperties.js +1 -1
  134. package/src/integrations/link.js +1 -1
  135. package/src/integrations/list.js +1 -1
  136. package/src/integrations/listproperties.js +1 -1
  137. package/src/integrations/mediaembed.js +1 -1
  138. package/src/integrations/mention.js +1 -1
  139. package/src/integrations/mergefields.d.ts +17 -0
  140. package/src/integrations/mergefields.js +23 -0
  141. package/src/integrations/multilevellist.js +1 -1
  142. package/src/integrations/pagebreak.js +1 -1
  143. package/src/integrations/paragraph.js +1 -1
  144. package/src/integrations/removeformat.js +1 -1
  145. package/src/integrations/restrictededitingmode.js +1 -1
  146. package/src/integrations/shiftentercommand.js +1 -1
  147. package/src/integrations/standardeditingmode.js +1 -1
  148. package/src/integrations/style.js +1 -1
  149. package/src/integrations/table.js +1 -1
  150. package/src/integrations/tablecaption.js +1 -1
  151. package/src/integrations/tableclipboard.js +1 -1
  152. package/src/integrations/tablecolumnresize.js +1 -1
  153. package/src/integrations/tableheadings.js +1 -1
  154. package/src/integrations/tablemergesplit.js +1 -1
  155. package/src/integrations/tableofcontents.js +1 -1
  156. package/src/integrations/tableproperties.js +1 -1
  157. package/src/integrations/template.js +1 -1
  158. package/src/integrations/title.js +1 -1
  159. package/src/integrations/undo.js +1 -1
  160. package/src/integrations/utils.js +1 -1
  161. package/src/suggestion.js +2 -2
  162. package/src/suggestiondescriptionfactory.js +1 -1
  163. package/src/trackchanges.js +1 -1
  164. package/src/trackchangesdata.js +1 -1
  165. package/src/trackchangesediting.d.ts +2 -1
  166. package/src/trackchangesediting.js +1 -1
  167. package/src/trackchangesui.js +1 -1
  168. package/src/ui/suggestioncontroller.js +2 -2
  169. package/src/ui/view/basesuggestionthreadview.js +1 -1
  170. package/src/ui/view/suggestionthreadview.js +1 -1
  171. package/src/utils/common-translations.js +1 -1
  172. 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 _0x16371d,PendingActions as _0x225db4,icons as _0x210fdb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x40a0bd,ObservableMixin as _0x2d203a,uid as _0x4b80ff,insertToPriorityArray as _0x33419e,priorities as _0x1135d8,logWarning as _0x23467f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1ca3e4,View as _0x4490c1,ButtonView as _0x199a7d,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 _0x2e67ee,hashObject as _0x2c77f1,surroundingMarkersDetector as _0x3e7c00,trimHtml as _0x48be8a,UserView as _0x5909ed,getDateTimeFormatter as _0x5ab875,getAllMarkersDomElementsSorted as _0x1af8ea,sanitizeEditorConfig as _0x5b10d0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2557c1,LiveRange as _0x218be5,LivePosition as _0x2570a3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2b8f92,toWidget as _0x44ddaf}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2912c1,set as _0x4812d9,isEqual as _0xf2bb64,unset as _0x2e1adc,omit as Bt}from'lodash-es';import{Delete as _0x11678d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x187c42,ShiftEnter as _0x5406cc}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x27e285,_0x4a1cf6){super(_0x27e285),this['_enabledCommands']=_0x4a1cf6,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 _0x6a043b of this['editor']['commands']['commands']())_0x6a043b['affectsData']&&!this['_enabledCommands']['has'](_0x6a043b)&&_0x6a043b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x35a116 of this['editor']['commands']['commands']())_0x35a116['affectsData']&&!this['_enabledCommands']['has'](_0x35a116)&&_0x35a116['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xea7b15,_0x2edb55){super(_0xea7b15),this['_suggestions']=_0x2edb55,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x576b4a){const _0x4f2979=this['_suggestions']['get'](_0x576b4a);if(!_0x4f2979)throw new _0x40a0bd('track-changes-accept-suggestion-not-found',this);const _0x29f24b=_0x4f2979['getRanges']();this['editor']['model']['canEditAt'](_0x29f24b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4f2979);}}class B extends ts{['_suggestions'];constructor(_0x2b65e0,_0x2ac4a8){super(_0x2b65e0),this['_suggestions']=_0x2ac4a8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x165204){const _0x188455=this['_suggestions']['get'](_0x165204);if(!_0x188455)throw new _0x40a0bd('track-changes-discard-suggestion-not-found',this);const _0x2079a4=_0x188455['getRanges']();this['editor']['model']['canEditAt'](_0x2079a4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x188455);}}function ss(_0x278f9c){return _0x278f9c['sort']((_0x50d2c4,_0x1821ec)=>'deletion'==_0x50d2c4['type']&&'deletion'!=_0x1821ec['type']?-0x1:'deletion'!=_0x50d2c4['type']&&'deletion'==_0x1821ec['type']?0x1:0x0);}function to(_0x4cb58f,_0x1be7e){let _0x18d5cf,_0x351b1e=0x0;const _0x231969=[],_0x1cca6c=_0x1be7e['schema'];for(;_0x351b1e<_0x4cb58f['length'];){const _0x4d5575=_0x4cb58f[_0x351b1e],_0x12ae1a=_0x4cb58f[_0x351b1e+0x1];_0x18d5cf||(_0x18d5cf=_0x1be7e['createPositionBefore'](_0x4d5575)),co(_0x1be7e,_0x4d5575,_0x12ae1a)||(_0x231969['push'](_0x1be7e['createRange'](_0x18d5cf,_0x1cca6c['isObject'](_0x4d5575)?_0x1be7e['createPositionAfter'](_0x4d5575):_0x1be7e['createPositionAt'](_0x4d5575,'end'))),_0x18d5cf=null),_0x351b1e++;}return _0x231969;}function co(_0x363e98,_0x7cb148,_0x1ee654){if(!_0x1ee654)return!0x1;const _0x56bfa9=_0x363e98['createPositionAfter'](_0x7cb148),_0x30a60f=_0x363e98['createPositionBefore'](_0x1ee654);return _0x56bfa9['isTouching'](_0x30a60f);}function rs(_0x43c791,_0x47ffac,_0x49fdfb){for(;_0x49fdfb['length'];){const _0x58b273=_0x49fdfb['splice'](0x0,0x64);_0x43c791['change'](()=>{for(const _0x41085c of _0x58b273)_0x41085c['isInContent']&&_0x47ffac['execute'](_0x41085c['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4a1e78,_0x4cedca,_0x510c9d){super(_0x4a1e78),this['_command']=_0x4cedca,this['_suggestions']=_0x510c9d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ff1c0=Array['from'](this['_suggestions']['values']())['some'](_0x56cdce=>_0x56cdce['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3ff1c0;}['execute'](){const _0x48cfb5=ss(Array['from'](this['_suggestions']['values']()));for(const _0x316177 of _0x48cfb5){const _0x5863e6=_0x316177['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5863e6))return;}rs(this['editor']['model'],this['_command'],_0x48cfb5);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x27300d,_0x13d8bc,_0xcf9a78){super(_0x27300d),this['_command']=_0x13d8bc,this['_suggestions']=_0xcf9a78,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e560f=this['editor']['model']['document']['selection'],_0x85dc7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4bcfe3,_0x188588){const _0x39ab12=Array['from'](_0x4bcfe3['getRanges']()),_0x35fec8=new Set();for(const _0x2d7115 of _0x188588)if(_0x2d7115['isInContent']){for(const _0x2bc3f1 of _0x39ab12)for(const _0x31c37a of _0x2d7115['getRanges']())(_0x2bc3f1['isIntersecting'](_0x31c37a)||_0x4bcfe3['isCollapsed']&&!_0x2d7115['isMultiRange']&&_0x2d7115['next']&&_0x31c37a['end']['isTouching'](_0x2bc3f1['start']))&&_0x35fec8['add'](_0x2d7115);}return _0x35fec8;}(_0x3e560f,_0x85dc7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2bfdea=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5aa068 of _0x2bfdea){const _0x532774=_0x5aa068['getRanges']();if(!this['editor']['model']['canEditAt'](_0x532774))return;}rs(this['editor']['model'],this['_command'],_0x2bfdea);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x2d203a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xea9f2f,_0x311241){super(),this['id']=_0x311241['id'],this['type']=_0x311241['type'],this['subType']=_0x311241['subType']||null,this['author']=_0x311241['author'],this['creator']=_0x311241['creator']||_0x311241['author'],this['isExternal']=Boolean(_0x311241['attributes']&&_0x311241['attributes']['@external']),this['data']=null,this['_model']=_0xea9f2f,this['_onAccept']=_0x311241['onAccept'],this['_onDiscard']=_0x311241['onDiscard'],this['_onAttributesChange']=_0x311241['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x311241['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 _0x288cde=this;for(;_0x288cde['previous'];)_0x288cde=_0x288cde['previous'];return _0x288cde;}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'](_0x4734b7){this['_markerNames']['add'](_0x4734b7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x199b63=>this['_model']['markers']['get'](_0x199b63))['filter'](_0x161aff=>_0x161aff);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x10f29f=>{for(const _0xf492fe of this['getMarkers']())_0x10f29f['removeMarker'](_0xf492fe);}),this['_markerNames']['clear']();}['removeMarker'](_0x1897be){this['_model']['change'](_0x209d42=>{_0x209d42['removeMarker'](_0x1897be);}),this['_markerNames']['delete'](_0x1897be);}['addRange'](_0x24d4f1){const _0x42eb28='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x42eb28),this['_model']['change'](_0xde7b=>{_0xde7b['addMarker'](_0x42eb28,{'range':_0x24d4f1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2c4a51){for(const _0xb68baa of this['getRanges']())if(_0xb68baa['isIntersecting'](_0x2c4a51))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x402937=>_0x402937['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5718b1,_0x5ba754)=>[..._0x5718b1,..._0x5ba754['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4cdab4=this['getRanges']();if(0x1!=_0x4cdab4['length'])return null;const _0x28c28c=_0x4cdab4[0x0],_0x2ac925=_0x28c28c['start']['nodeAfter'],_0x43ddb1=_0x28c28c['end']['nodeBefore'];return _0x2ac925 instanceof _0x2557c1?_0x2ac925!=_0x43ddb1?null:_0x2ac925: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 _0x9a0274=[];let _0x563d4b=this['head'];for(;_0x563d4b;)_0x9a0274['push'](_0x563d4b),_0x563d4b=_0x563d4b['next'];return _0x9a0274;}['setAttribute'](_0x369a8f,_0xbcf954){const _0x618c84=_0x2912c1(this['attributes']);_0x4812d9(_0x618c84,_0x369a8f,_0xbcf954),_0xf2bb64(_0x618c84,this['attributes'])||(this['attributes']=_0x618c84,this['_onAttributesChange'](_0x618c84));}['removeAttribute'](_0x225f3f){const _0x38e56b=_0x2912c1(this['attributes']);_0x2e1adc(_0x38e56b,_0x225f3f),_0xf2bb64(_0x38e56b,this['attributes'])||(this['attributes']=_0x38e56b,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 _0x4b80ff()['substr'](0x1,0x5);}}function o(_0x6b4115,_0x3201a7,_0x3ed847){const t=_0x6b4115['t'];switch(_0x3201a7){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',_0x3ed847);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ed847);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ed847);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ed847);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ed847);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',_0x3ed847);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ed847);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',_0x3ed847);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ed847);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ed847);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ed847);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ed847);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ed847);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ed847);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ed847);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ed847);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ed847);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ed847);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ed847);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ed847);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ed847);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ed847);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ed847);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'},_0x3ed847);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ed847);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ed847);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ed847);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ed847);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ed847);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ed847);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ed847);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ed847);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'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ed847);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ed847);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'},_0x3ed847);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'},_0x3ed847);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 _0x3201a7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b1255,_0x39ce02){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b1255,this['_locale']=_0x39ce02;}['getDescriptions'](_0x466357){const _0x49c17e=[],_0x10050c=new Set(),_0x1d0de7=new Set();for(let _0x462e2e=0x0;_0x462e2e<_0x466357['length'];_0x462e2e++){const _0x194970=_0x466357[_0x462e2e];if(!_0x194970['isInContent'])continue;const _0x1db8e7=this['_handleCustomCallbackDescription'](_0x194970);if(_0x1db8e7){if(null!=_0x194970['subType']){if(_0x10050c['has'](_0x194970['subType']))continue;_0x10050c['add'](_0x194970['subType']);}_0x49c17e['push'](_0x1db8e7);}else{if('attribute'!=_0x194970['type'])'insertion'!=_0x194970['type']&&'deletion'!=_0x194970['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49c17e,_0x194970,_0x466357[_0x462e2e+0x1]);else{const _0x2e403c=_0x194970['data']['key'];if(_0x1d0de7['has'](_0x2e403c))continue;_0x1d0de7['add'](_0x194970['data']['key']),_0x2e403c==m?this['_handleRenameSuggestionDescription'](_0x49c17e,_0x194970):this['_handleAttributeSuggestionDescription'](_0x49c17e,_0x194970);}}}return this['_resolveDescriptionItems'](_0x49c17e);}['registerDescriptionCallback'](_0x331a71){this['_customCallbacks']['push'](_0x331a71);}['registerElementLabel'](_0x22a8ec,_0x3e2a00,_0x181083=_0x1135d8['normal']){'function'==typeof _0x22a8ec?_0x33419e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x22a8ec,'label':_0x3e2a00,'priority':_0x181083}):this['_itemLabels']['set'](_0x22a8ec,_0x3e2a00);}['registerAttributeLabel'](_0x5dfb8c,_0x4df25e){this['_attributeLabels']['set'](_0x5dfb8c,_0x4df25e);}['getItemLabel'](_0x40ec4f,_0x4ab04b=0x1){let _0x4043da;for(const _0x9768b8 of this['_itemLabelsCallbacks'])if(_0x9768b8['matchingCallback'](_0x40ec4f)){_0x4043da=_0x9768b8['label'];break;}return _0x4043da||(_0x4043da=this['_itemLabels']['get'](_0x40ec4f['name'])),_0x4043da?_0x4043da(_0x4ab04b):0x1!==_0x4ab04b?_0x4ab04b+'\x20'+_0x40ec4f['name']+'s':''+_0x40ec4f['name'];}['_addDescriptionItems'](_0x499854,_0xf551c8){const _0x1cfc76=_0xf551c8['getFirstRange']()['getWalker'](),_0x5836ba='insertion'==_0xf551c8['type']?'add':'remove';for(const _0x5701d2 of _0x1cfc76){const _0x60e961=_0x5701d2['item'],_0x3f1a15=_0x499854[_0x499854['length']-0x1];if(_0x60e961['is']('$textProxy'))_0x3f1a15&&_0x3f1a15['type']['indexOf']('Container')>-0x1&&_0x499854['pop'](),_0x3f1a15&&'text'==_0x3f1a15['type']?_0x3f1a15[_0x5836ba]+=_0x60e961['data']:_0x499854['push']({'type':'text','add':'add'==_0x5836ba?_0x60e961['data']:'','remove':'remove'==_0x5836ba?_0x60e961['data']:''});else{if(this['_schema']['isObject'](_0x60e961)){const _0x47c91f=_0x60e961;if(_0x3f1a15&&_0x3f1a15['type']['indexOf']('Container')>-0x1&&_0x499854['pop'](),'elementEnd'==_0x5701d2['type'])continue;_0x3f1a15&&_0x3f1a15['type']==_0x5836ba+'Object'&&_0x3f1a15['element']['name']==_0x47c91f['name']?_0x3f1a15['quantity']++:_0x499854['push']({'type':_0x5836ba+'Object','element':_0x47c91f,'quantity':0x1}),_0x1cfc76['skip'](_0x22a3aa=>!('elementEnd'==_0x22a3aa['type']&&_0x22a3aa['item']==_0x60e961));}else{if(this['_schema']['checkChild'](_0x60e961,'$text')||_0x60e961['is']('element','softBreak')){const _0x26b323=_0x60e961;if('add'==_0x5836ba&&'elementStart'==_0x5701d2['type']||'remove'==_0x5836ba&&'elementEnd'==_0x5701d2['type'])continue;if(_0x3f1a15&&-0x1==_0x3f1a15['type']['indexOf']('Container')){'text'==_0x3f1a15['type']&&(_0x3f1a15[_0x5836ba]+='\x0a');continue;}let _0x5321ad;if(_0x5321ad='add'==_0x5836ba?_0x26b323['nextSibling']&&!this['_schema']['isObject'](_0x26b323['nextSibling'])?_0x26b323['nextSibling']:null:_0x26b323['previousSibling']&&!this['_schema']['isObject'](_0x26b323['previousSibling'])?_0x26b323['previousSibling']:null,_0x26b323['isEmpty']||_0x5321ad&&_0x5321ad['isEmpty']){const _0x38a32=_0x5321ad&&_0x5321ad['isEmpty']?_0x5321ad:_0x26b323;_0x3f1a15&&_0x3f1a15['type']==_0x5836ba+'EmptyContainer'&&_0x3f1a15['element']['name']==_0x38a32['name']?_0x3f1a15['quantity']++:_0x499854['push']({'type':_0x5836ba+'EmptyContainer','element':_0x38a32,'quantity':0x1});}else _0x499854['push']({'type':_0x5836ba+'Container','element':_0x26b323});}}}}}['_resolveDescriptionItems'](_0x576457){const _0x305641=this['_locale'],_0x1c0db5=[],_0x935715=[],_0xfd3f27=[];for(const _0x29d76f of _0x576457)switch(_0x29d76f['type']){case'text':if(_0x29d76f['add']=_0x29d76f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x29d76f['remove']=_0x29d76f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x29d76f['add']&&''!=_0x29d76f['remove']){_0x1c0db5['push']({'type':'replace','content':o(_0x305641,'REPLACE_TEXT',['\x22'+_0x29d76f['remove']+'\x22','\x22'+_0x29d76f['add']+'\x22'])});continue;}if(null!=_0x29d76f['add']['match'](/^ +$/)){_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Insert:*\x20%0',o(_0x305641,'ELEMENT_SPACE',_0x29d76f['add']['length']))});continue;}if(null!=_0x29d76f['remove']['match'](/^ +$/)){_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Remove:*\x20%0',o(_0x305641,'ELEMENT_SPACE',_0x29d76f['remove']['length']))});continue;}if(''!=_0x29d76f['add']){_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Insert:*\x20%0','\x22'+_0x29d76f['add']+'\x22')});continue;}_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Remove:*\x20%0','\x22'+_0x29d76f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Insert:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Remove:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'addContainer':_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Split:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'removeContainer':_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Merge:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'addFormat':_0x935715['push'](_0x29d76f['key']);continue;case'removeFormat':_0xfd3f27['push'](_0x29d76f['key']);continue;default:_0x1c0db5['push'](_0x29d76f);}if(_0x935715['length']){const _0x1204fc=_0x935715['map'](_0x4d1bd3=>this['_attributeLabels']['has'](_0x4d1bd3)?this['_attributeLabels']['get'](_0x4d1bd3):_0x4d1bd3)['join'](',\x20');_0x1c0db5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1204fc)});}if(_0xfd3f27['length']){const _0x36cc7f=_0xfd3f27['map'](_0x4f0a1d=>this['_attributeLabels']['has'](_0x4f0a1d)?this['_attributeLabels']['get'](_0x4f0a1d):_0x4f0a1d)['join'](',\x20');_0x1c0db5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x36cc7f)});}return _0x1c0db5;}['_handleCustomCallbackDescription'](_0xe3c038){for(const _0x38e588 of this['_customCallbacks']){const _0x4319a7=_0x38e588(_0xe3c038);if(_0x4319a7&&'type'in _0x4319a7)return _0x4319a7;}}['_handleAttributeSuggestionDescription'](_0x5a900a,_0x5530b4){const _0x482008=_0x5530b4['data'],_0x5305a5=void 0x0===_0x482008['newValue']?'removeFormat':'addFormat';_0x5a900a['push']({'type':_0x5305a5,'key':_0x482008['key']});}['_handleRenameSuggestionDescription'](_0x5032eb,_0x465b12){_0x5032eb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x465b12['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d1dea,_0x42dbc0,_0x25d17d){if(this['_addDescriptionItems'](_0x1d1dea,_0x42dbc0),_0x25d17d&&_0x25d17d['getFirstRange']()&&!_0x42dbc0['getFirstRange']()['end']['isEqual'](_0x25d17d['getFirstRange']()['start'])){const _0x2b883c=_0x1d1dea[_0x1d1dea['length']-0x1],_0x53a1b3='insertion'==_0x42dbc0['type']?'add':'remove';_0x2b883c&&'text'==_0x2b883c['type']&&(_0x2b883c[_0x53a1b3]+='\x0a');}}}class E extends _0x16371d{['afterInit'](){const _0x16d20d=this['editor'],_0x1e90ca=_0x16d20d['plugins']['get']('TrackChangesEditing');_0x16d20d['commands']['get']('showAIAssistant')&&_0x1e90ca['enableCommand']('showAIAssistant');}}class V extends _0x16371d{['afterInit'](){const _0xf4a59a=this['editor'],_0x37c822=_0xf4a59a['locale'];if(!_0xf4a59a['plugins']['has']('AlignmentEditing'))return;const _0x28965f=_0xf4a59a['plugins']['get']('TrackChangesEditing');_0x28965f['enableDefaultAttributesIntegration']('alignment'),_0x28965f['registerBlockAttribute']('alignment'),_0x28965f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x37c822,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30c075=this['editor'],_0x5a39c1=_0x30c075['locale'];_0x30c075['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3082cb=>{if('formatBlock'!=_0x3082cb['type'])return;const {data:_0x3c1c30}=_0x3082cb;if(_0x3c1c30&&'alignment'==_0x3c1c30['commandName']){const _0x223712=_0x3c1c30['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5a39c1,'*Format:*\x20%0',function(_0x4c2ca3){switch(_0x4c2ca3){case'left':return o(_0x5a39c1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5a39c1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5a39c1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5a39c1,'FORMAT_JUSTIFY_TEXT');}}(_0x223712))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x16371d{['afterInit'](){const _0x495973=this['editor'],_0x5b1118=_0x495973['plugins']['get']('TrackChangesEditing'),_0x17e532=_0x495973['locale'];for(const _0x4b9b60 of ti){if(!_0x495973['plugins']['has'](_0x4b9b60))continue;const _0x492d84=_0x4b9b60['slice'](0x0,-0x7)['toLowerCase'](),_0x33cfee='FORMAT_'+_0x492d84['toUpperCase']();_0x5b1118['enableDefaultAttributesIntegration'](_0x492d84),_0x5b1118['registerInlineAttribute'](_0x492d84),_0x5b1118['descriptionFactory']['registerAttributeLabel'](_0x492d84,o(_0x17e532,_0x33cfee));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x381a99=this['editor'],_0xaf3d70=_0x381a99['locale'],_0x366b36=_0x381a99['plugins']['get']('TrackChangesEditing');function _0x4b836b(_0x36fb2f,_0x2a29d3){_0x366b36['descriptionFactory']['registerDescriptionCallback'](_0x19f323=>{if('formatInline'!=_0x19f323['type'])return;const {data:_0x46766d}=_0x19f323;return _0x46766d&&_0x46766d['commandName']===_0x36fb2f?_0x46766d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xaf3d70,'*Format:*\x20%0',_0x2a29d3)}:{'type':'format','content':o(_0xaf3d70,'*Remove\x20format:*\x20%0',_0x2a29d3)}:void 0x0;});}_0x4b836b('bold',o(_0xaf3d70,'FORMAT_BOLD')),_0x4b836b('italic',o(_0xaf3d70,'FORMAT_ITALIC')),_0x4b836b('underline',o(_0xaf3d70,'FORMAT_UNDERLINE')),_0x4b836b('code',o(_0xaf3d70,'FORMAT_CODE')),_0x4b836b('strikethrough',o(_0xaf3d70,'FORMAT_STRIKETHROUGH')),_0x4b836b('subscript',o(_0xaf3d70,'FORMAT_SUBSCRIPT')),_0x4b836b('superscript',o(_0xaf3d70,'FORMAT_SUPERSCRIPT'));}}class O extends _0x16371d{['afterInit'](){const _0x1df737=this['editor'],_0x39d50d=_0x1df737['locale'];if(!_0x1df737['plugins']['has']('BlockQuoteEditing'))return;const _0x312c29=_0x1df737['plugins']['get']('TrackChangesEditing'),_0x1e3037=this['editor']['commands']['get']('blockQuote');_0x312c29['enableCommand']('blockQuote',(_0x5bed08,_0x3b2136={})=>{const _0x485252=this['editor']['model']['document']['selection'],_0x3089e1=_0x3b2136&&void 0x0!==_0x3b2136['forceValue']?_0x3b2136['forceValue']:!_0x1e3037['value'];let _0x2d3e14=[];if(_0x3089e1){const _0x174112=Array['from'](_0x485252['getSelectedBlocks']())['filter'](_0x491d83=>oo(_0x491d83)||function(_0x252958,_0x1344bb){const _0xa007b2=_0x1344bb['checkChild'](_0x252958['parent'],'blockQuote'),_0x5d531c=_0x1344bb['checkChild'](['$root','blockQuote'],_0x252958);return _0xa007b2&&_0x5d531c;}(_0x491d83,this['editor']['model']['schema']));_0x2d3e14=to(_0x174112,_0x1df737['model']);}else{const _0x393f40=Array['from'](_0x485252['getSelectedBlocks']())['filter'](_0x2633f5=>oo(_0x2633f5));_0x2d3e14=to(_0x393f40,_0x1df737['model']);}_0x1df737['model']['change'](()=>{for(const _0x26b454 of _0x2d3e14)_0x312c29['markBlockFormat'](_0x26b454,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3089e1}]});});}),_0x312c29['descriptionFactory']['registerDescriptionCallback'](_0x1a5d31=>{const {data:_0x3e39b0}=_0x1a5d31;if(_0x3e39b0&&'blockQuote'==_0x3e39b0['commandName']){const _0x341ce5=o(_0x39d50d,'ELEMENT_BLOCK_QUOTE');return _0x3e39b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39d50d,'*Set\x20format:*\x20%0',_0x341ce5)}:{'type':'format','content':o(_0x39d50d,'*Remove\x20format:*\x20%0',_0x341ce5)};}});}}function oo(_0x2bb569){return'blockQuote'==_0x2bb569['parent']['name'];}class G extends _0x16371d{['afterInit'](){const _0x5c909a=this['editor'];_0x5c909a['plugins']['has']('CaseChange')&&(_0x5c909a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c909a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c909a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x16371d{['afterInit'](){const _0x554799=this['editor'];_0x554799['commands']['get']('ckbox')&&_0x554799['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x16371d{['afterInit'](){const _0x11f59e=this['editor'];if(!_0x11f59e['plugins']['has']('CodeBlock'))return;const _0x130b7c=_0x11f59e['plugins']['get']('TrackChangesEditing'),_0x2bf4d6=_0x11f59e['locale'],_0x13d066=_0x11f59e['config']['get']('codeBlock')['languages'],_0x3f0741=_0x11f59e['commands']['get']('codeBlock');_0x130b7c['enableCommand']('indentCodeBlock'),_0x130b7c['enableCommand']('outdentCodeBlock'),_0x130b7c['enableCommand']('codeBlock',(_0x3c7b99,_0x176773={})=>{const _0x46b1c8=_0x11f59e['model'],_0x4bf416=_0x11f59e['model']['document']['selection'],_0x1f276f=_0x176773&&void 0x0!==_0x176773['forceValue']?_0x176773['forceValue']:!_0x3f0741['value'];let _0x5c49a8;_0x176773['language']||(_0x176773['language']=_0x13d066[0x0]['language']),_0x5c49a8=_0x1f276f?Array['from'](_0x4bf416['getSelectedBlocks']())['filter'](_0x1c7313=>eo(_0x1c7313)||function(_0xa2bf05,_0x322743){if(_0xa2bf05['is']('rootElement')||_0x322743['isLimit'](_0xa2bf05))return!0x1;return _0x322743['checkChild'](_0xa2bf05['parent'],'codeBlock');}(_0x1c7313,_0x46b1c8['schema'])):Array['from'](_0x4bf416['getSelectedBlocks']())['filter'](_0xedf0e3=>eo(_0xedf0e3));const _0xefd74b=to(_0x5c49a8,_0x46b1c8);_0x46b1c8['change'](()=>{for(const _0x20e9c6 of _0xefd74b)_0x130b7c['markBlockFormat'](_0x20e9c6,{'commandName':'codeBlock','commandParams':[{..._0x176773,'forceValue':_0x1f276f}],'formatGroupId':'blockName'});});}),(_0x130b7c['descriptionFactory']['registerElementLabel']('codeBlock',_0x415513=>o(_0x2bf4d6,'ELEMENT_CODE_BLOCK',_0x415513)),_0x130b7c['descriptionFactory']['registerDescriptionCallback'](_0x43a2d4=>{if('formatBlock'!=_0x43a2d4['type'])return;const _0x231899=_0x2bf4d6['t'],{data:_0x709f2d}=_0x43a2d4;if(!_0x709f2d||'codeBlock'!=_0x709f2d['commandName'])return;const _0x5954b8=_0x709f2d['commandParams'][0x0]['language'],_0x52ba06=_0x231899(_0x13d066['find'](_0x439465=>_0x439465['language']===_0x5954b8)['label'])['toLowerCase']();return _0x709f2d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bf4d6,'*Set\x20format:*\x20%0',o(_0x2bf4d6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52ba06+')')}:{'type':'format','content':o(_0x2bf4d6,'*Remove\x20format:*\x20%0',o(_0x2bf4d6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3fc593){return'codeBlock'==_0x3fc593['name'];}class H extends _0x16371d{['afterInit'](){const _0x5a16cf=this['editor'];if(!_0x5a16cf['plugins']['has']('CommentsEditing'))return;_0x5a16cf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x837a72,_0x193e66,_0x8b7011){const _0x37f2af=[];for(const _0x5062b0 of _0x193e66['getItems']())_0x5062b0['hasAttribute'](_0x837a72)&&_0x37f2af['push'](_0x8b7011['createRangeOn'](_0x5062b0));return _0x37f2af;}function _e(_0x4321c8,_0x131a59,{showActiveMarker:_0x5d97bb=!0x0}={}){const _0x3a9b77=_0x4321c8['plugins']['get']('TrackChangesEditing');return(_0xb31d48,_0x17c6b0,_0x5b19c2)=>{if(!_0x5b19c2['consumable']['test'](_0x17c6b0['markerRange'],_0xb31d48['name']))return;const _0x3dfaf8=_0x17c6b0['markerRange']['getWalker'](),_0x5289f6=_0x17c6b0['markerRange']['start'],_0x3a4c9f=_0x4321c8['model']['schema'];let _0x3caa17=null,_0x30be74=null,_0x5b5477=!0x1,_0x3c68a0=!0x1;for(const _0x57cad1 of _0x3dfaf8){const _0x404223=_0x57cad1['item'];_0x5b5477=_0x5b5477||_0x3a4c9f['isContent'](_0x404223);const _0x10eeae=_0x5b19c2['mapper']['toViewElement'](_0x404223);if(_0x10eeae&&_0x10eeae['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57cad1['type']&&(_0x3a4c9f['isBlock'](_0x404223)&&!_0x3a4c9f['isLimit'](_0x404223)&&(_0x404223['nextSibling']||_0x5289f6['isAtEnd']?_0x3caa17&&_0x3caa17['parent']==_0x404223||(_0x3caa17=_0x404223,_0x1b16a5(_0x57cad1['previousPosition']),_0x3c68a0=!0x0):_0x30be74=_0x30be74||_0x57cad1['previousPosition']));}function _0x1b16a5(_0x18fcbb){const _0x2c0bd2=_0x5b19c2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x131a59}),_0x5c3d64=_0x5b19c2['mapper']['toViewPosition'](_0x18fcbb);_0x5d97bb&&_0x3a9b77['activeMarkers']['includes'](_0x17c6b0['markerName'])&&_0x5b19c2['writer']['addClass']('ck-suggestion-marker--active',_0x2c0bd2),_0x5b19c2['writer']['insert'](_0x5c3d64,_0x2c0bd2),_0x5b19c2['mapper']['bindElementToMarker'](_0x2c0bd2,_0x17c6b0['markerName']);}_0x5b5477||_0x3c68a0||!_0x30be74||_0x1b16a5(_0x30be74);};}class q extends _0x16371d{static get['requires'](){return[_0x11678d];}['init'](){const _0x196263=this['editor'],_0x19360b=_0x196263['plugins']['get']('TrackChangesEditing');_0x19360b['enableCommand']('delete');const _0x24edaa=_0x196263['commands']['get']('deleteForward');_0x19360b['enableCommand']('deleteForward',(_0x166f56,_0x22f68b={})=>{const _0x3d65dc=_0x196263['model']['createSelection'](_0x196263['model']['document']['selection']);_0x3d65dc['isCollapsed']&&_0x196263['model']['modifySelection'](_0x3d65dc,{'direction':'forward','unit':_0x22f68b['unit']});const _0x589dd6=_0x3d65dc['getFirstRange'](),_0x4068cd=_0x218be5['fromRange'](_0x589dd6);let _0x2aafb5;_0x166f56(_0x22f68b),_0x2aafb5='$graveyard'==_0x4068cd['root']['rootName']?_0x196263['model']['createRange'](_0x589dd6['start']):_0x196263['model']['createRange'](_0x4068cd['start'],_0x4068cd['end']),_0x4068cd['detach'](),_0x196263['model']['enqueueChange'](_0x24edaa['buffer']['batch'],_0x23f14e=>{_0x24edaa['buffer']['lock'](),_0x23f14e['setSelection'](_0x23f14e['createRange'](_0x2aafb5['end'])),_0x24edaa['buffer']['unlock']();});}),_0x196263['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x196263,'merge'),{'priority':'high'}),_0x196263['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x44c8ec,_0x3cddec,_0x20c579)=>{_0x20c579['options']['showSuggestionHighlights']&&_e(_0x196263,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x44c8ec,_0x3cddec,_0x20c579);},{'priority':'high'}),_0x196263['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x23cac1,_0x1b6094,_0x524445)=>{const _0x13d5aa=_0x524445['mapper']['markerNameToElements'](_0x1b6094['markerName']);if(_0x13d5aa){for(const _0x220eb8 of _0x13d5aa)_0x220eb8['is']('uiElement')&&(_0x524445['mapper']['unbindElementFromMarkerName'](_0x220eb8,_0x1b6094['markerName']),_0x524445['writer']['remove'](_0x220eb8));}},{'priority':'high'});}}class z extends _0x16371d{['afterInit'](){const _0x27ff58=this['editor'];if(!_0x27ff58['plugins']['has']('ListEditing'))return;const _0x280749=_0x27ff58['locale'],_0x25541b=_0x27ff58['plugins']['get']('TrackChangesEditing'),_0x4074e2=_0x27ff58['plugins']['has']('TodoListEditing'),_0x2db9f6=!!_0x27ff58['config']['get']('list.multiBlock');function _0xd57398(_0x1a3e84){return{'type':'format','content':''+o(_0x280749,'*Set\x20format:*\x20%0',_0x1a3e84)};}function _0x38cb23(_0x2ee05c){return{'type':'format','content':''+o(_0x280749,'*Remove\x20format:*\x20%0',_0x2ee05c)};}_0x25541b['enableDefaultAttributesIntegration']('numberedList'),_0x25541b['enableDefaultAttributesIntegration']('bulletedList'),_0x25541b['enableDefaultAttributesIntegration']('customNumberedList'),_0x25541b['enableDefaultAttributesIntegration']('customBulletedList'),_0x25541b['enableDefaultAttributesIntegration']('indentList'),_0x25541b['enableDefaultAttributesIntegration']('outdentList'),_0x25541b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x25541b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x25541b['registerBlockAttribute']('listItemId'),_0x25541b['registerBlockAttribute']('listType'),_0x25541b['registerBlockAttribute']('listIndent'),_0x2db9f6&&(_0x25541b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x25541b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4074e2&&(_0x25541b['enableDefaultAttributesIntegration']('todoList'),_0x25541b['enableDefaultAttributesIntegration']('checkTodoList'),_0x25541b['registerBlockAttribute']('todoListChecked'),_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0x130d38=>{const {data:_0x16f6b9}=_0x130d38;if(_0x16f6b9&&'todoListChecked'==_0x16f6b9['key'])return{'type':'format','content':_0x16f6b9['newValue']?o(_0x280749,'*Check\x20item*'):o(_0x280749,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x39f0b6=>{if(_0x39f0b6['batch']['isUndo'])return!0x1;let _0x23fbf3=!0x1;const _0x37a1d5=_0x25541b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb5dcc1=>'todoListChecked'===_0x25541b['_getAttributeKey'](_0xb5dcc1));for(const _0x2cab31 of _0x37a1d5){'todo'!=_0x2cab31['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x25541b['_findSuggestions'](_0x2cab31['getFirstRange'](),'attribute')['find'](_0x5bcadb=>'listType'===_0x25541b['_getAttributeKey'](_0x5bcadb['suggestion']))||(_0x39f0b6['removeMarker'](_0x2cab31['getFirstMarker']()),_0x23fbf3=!0x0));}return _0x23fbf3;})),_0x25541b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x280749,'FORMAT_INDENT'));const _0x3ec888={'type':'format','content':''};_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0xf78edd=>{const {data:_0xb82013}=_0xf78edd;if(!_0xb82013||'listType'!=_0xb82013['key'])return;let _0x1cddf2=_0xf78edd['head'];for(;_0x1cddf2;){if(_0x1cddf2['data']&&(('listStyle'==_0x1cddf2['data']['key']||'listMarkerStyle'==_0x1cddf2['data']['key'])&&(_0x1cddf2['data']['newValue']&&'default'!=_0x1cddf2['data']['newValue']||'default'!=_0x1cddf2['data']['oldValue']&&!_0xb82013['newValue'])||!_0x2db9f6&&_0x1cddf2['data']['key']==m))return _0x3ec888;_0x1cddf2=_0x1cddf2['next'];}if(null==_0xb82013['newValue'])switch(_0xb82013['oldValue']){case'bulleted':return _0x38cb23(o(_0x280749,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38cb23(o(_0x280749,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38cb23(o(_0x280749,'ELEMENT_TODO_LIST'));}switch(_0xb82013['newValue']){case'bulleted':return _0xd57398(o(_0x280749,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd57398(o(_0x280749,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd57398(o(_0x280749,'ELEMENT_TODO_LIST'));}}),_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0x9e431b=>{const {data:_0x4e61ed}=_0x9e431b;if(_0x4e61ed&&'listIndent'==_0x4e61ed['key'])return null==_0x4e61ed['newValue']||null==_0x4e61ed['oldValue']&&0x0==_0x4e61ed['newValue']?_0x3ec888:void 0x0;}),_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0x51c273=>{if('attribute'!=_0x51c273['type'])return;const {data:_0x5833fc}=_0x51c273;if(!_0x5833fc||'listItemId'!=_0x5833fc['key'])return;const _0x4ced42=le(_0x51c273);return'newValue'==_0x4ced42?{'type':'format','content':o(_0x280749,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4ced42?{'type':'format','content':o(_0x280749,'*Split:*\x20list\x20item')}:_0x3ec888;}),_0x27ff58['model']['document']['registerPostFixer'](_0x412543=>this['listItemIdFixer'](_0x412543)),_0x27ff58['model']['document']['registerPostFixer'](_0x294cb1=>this['noTrackChangesFixer'](_0x294cb1)),_0x27ff58['model']['document']['registerPostFixer'](_0x458c3c=>this['assureChains'](_0x458c3c)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x228d9d){if(_0x228d9d['batch']['isUndo']||!_0x228d9d['batch']['isLocal'])return!0x1;let _0x552d67=!0x1;const _0x2e4ac9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x209906=>_0x209906['data']&&'listItemId'==_0x209906['data']['key'])['filter'](_0x56f424=>_0x56f424['data']['newValue']&&_0x56f424['data']['oldValue']);for(const _0x5ac544 of _0x2e4ac9)le(_0x5ac544)||(_0x228d9d['removeMarker'](_0x5ac544['getFirstMarker']()),_0x552d67=!0x0);return _0x552d67;}['noTrackChangesFixer'](_0x39944e){if(_0x39944e['batch']['isUndo']||!_0x39944e['batch']['isLocal'])return!0x1;const _0x4b66c8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b66c8['trackChangesCommand']['value'])return!0x1;let _0x2264cd=!0x1;const _0x47f1f9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46fe27=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2219f0=>'attribute'==_0x2219f0['type'])['filter'](_0xdb8c80=>_0x47f1f9['includes'](_0xdb8c80['attributeKey']));if(0x0==_0x46fe27['length'])return _0x2264cd;for(const _0x32c91c of _0x46fe27){const _0x951a29=_0x4b66c8['_findSuggestions'](_0x32c91c['range'],'attribute')['filter'](_0x2553dc=>!_0x2553dc['meta']['isNextTo'])['map'](_0x33fca3=>_0x33fca3['suggestion'])['filter'](_0x2b4f93=>{const _0x5ddcef=_0x4b66c8['_getAttributeKey'](_0x2b4f93);return _0x47f1f9['includes'](_0x5ddcef);});if(_0x951a29['length']){for(const _0x300bf4 of _0x951a29)_0x39944e['removeMarker'](_0x300bf4['getFirstMarker']());_0x2264cd=!0x0;}}return _0x2264cd;}['assureChains'](_0x480545){if(_0x480545['batch']['isUndo']||!_0x480545['batch']['isLocal'])return!0x1;const _0xeb9b22=this['editor']['plugins']['get']('TrackChangesEditing');let _0x211251=!0x1;const _0x928937=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x3c0c84 of _0xeb9b22['getSuggestions']({'skipNotAttached':!0x0})){const _0x3847db=_0xeb9b22['_findSuggestions'](_0x3c0c84['getFirstRange'](),'attribute')['map'](_0x290ffb=>_0x290ffb['suggestion'])['filter'](_0x4df98d=>_0x4df98d['data']&&_0x928937['includes'](_0x4df98d['data']['key']));if(!_0x3847db['length'])continue;const _0x41a323=_0x3847db[0x0]['head']['attributes']['groupId'];if(!_0x3847db['every'](_0x171274=>_0x171274['attributes']['groupId']===_0x41a323)){for(const _0x579245 of _0x3847db)_0x2c9bd2(_0x579245,_0x41a323)&&(_0x211251=!0x0);}}return _0x211251;function _0x3099a1(_0x4714d2,_0x37a6f5){for(const _0x329362 of _0xeb9b22['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa6340d=>'attribute'==_0xa6340d['type']&&_0xa6340d['attributes']['groupId']==_0x4714d2))_0x329362['setAttribute']('groupId',_0x37a6f5);}function _0x2c9bd2(_0x58d30c,_0x504b01){let _0x3be0eb=_0x58d30c['head'],_0x181435=!0x1;for(;_0x3be0eb;)_0x3be0eb['attributes']['groupId']!=_0x504b01&&(_0x3099a1(_0x3be0eb['attributes']['groupId'],_0x504b01),_0x3be0eb['setAttribute']('groupId',_0x504b01),_0x181435=!0x0),_0x3be0eb=_0x3be0eb['next'];return _0x181435;}}['_supportLegacySuggestions'](){const _0x3e1819=this['editor'],_0x10db7=_0x3e1819['locale'],_0x1a7780=_0x3e1819['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a7780['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x106297,_0x48ee62){const _0x1f1d23=[];for(let _0x77691 of _0x106297)_0x77691['start']['nodeAfter']===_0x77691['end']['parent']&&(_0x77691=_0x3e1819['model']['createRange'](_0x3e1819['model']['createPositionAt'](_0x77691['start']['nodeAfter'],0x0))),_0x1f1d23['push'](_0x77691);_0x3e1819['model']['change'](_0x233a22=>{const _0x302e67=_0x3e1819['model']['document']['selection'],_0x1cd705=Array['from'](_0x302e67['getRanges']())['map'](_0x557e30=>_0x218be5['fromRange'](_0x557e30));_0x233a22['setSelection'](_0x1f1d23),_0x3e1819['commands']['get'](_0x48ee62['commandName'])['refresh'](),_0x48ee62['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3e1819['execute'](_0x48ee62['commandName'],..._0x48ee62['commandParams']),_0x233a22['setSelection'](_0x1cd705);for(const _0x521c22 of _0x1cd705)_0x521c22['detach']();});}),_0x1a7780['descriptionFactory']['registerElementLabel'](function(_0x2ffcbf){const _0x2b3659=!_0x3e1819['model']['schema']['isObject'](_0x2ffcbf),_0xfb113c=_0x2ffcbf['previousSibling'],_0x36170a=_0x2ffcbf['nextSibling'],_0x3e6ed8=_0x2ffcbf['getAttribute']('listItemId'),_0x20f094=!_0xfb113c||_0xfb113c['getAttribute']('listItemId')!==_0x3e6ed8,_0x5999c9=!_0x36170a||_0x36170a['getAttribute']('listItemId')!==_0x3e6ed8;return _0x2b3659&&Boolean(_0x3e6ed8)&&_0x20f094&&_0x5999c9;},_0x14296d=>o(_0x10db7,'ELEMENT_LIST_ITEM',_0x14296d));}['_registerLegacyDescription'](){const _0x111402=this['editor'],_0x485e93=_0x111402['locale'];function _0x5973d6(_0x2b64fe){const _0x3bf8b0=_0x111402['commands']['get']('bulletedList')['value'],_0x6917ab=_0x111402['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b64fe?_0x3bf8b0:_0x6917ab;}_0x111402['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49af70){if('formatBlock'!=_0x49af70['type'])return;const {data:_0x439227}=_0x49af70;if(!_0x439227)return;let _0x4f7085,_0x3def6a,_0x1b7cf6,_0x59da29;switch(_0x439227['commandName']){case'bulletedList':_0x1b7cf6=_0x439227['commandParams'][0x0]['forceValue'],_0x59da29=_0x5973d6(_0x439227['commandName']),_0x4f7085=_0x1b7cf6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59da29&&_0x111402['config']['get']('list.multiBlock')||(_0x4f7085='*Change\x20to:*\x20%0'),_0x3def6a={'type':'format','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1b7cf6=_0x439227['commandParams'][0x0]['forceValue'],_0x59da29=_0x5973d6(_0x439227['commandName']),_0x4f7085=_0x1b7cf6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59da29&&_0x111402['config']['get']('list.multiBlock')||(_0x4f7085='*Change\x20to:*\x20%0'),_0x3def6a={'type':'format','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4f7085='*Indent:*\x20%0',_0x3def6a={'type':'format','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4f7085=function(_0x38e4dc){const _0x5c60c1=_0x38e4dc['getFirstRange']();let _0x82f623=_0x5c60c1['start']['nodeAfter'];for(;_0x82f623&&_0x5c60c1['containsItem'](_0x82f623);){if(_0x82f623['getAttribute']('listIndent')>0x0)return!0x1;_0x82f623=_0x82f623['nextSibling'];}return!0x0;}(_0x49af70)?o(_0x485e93,'*Format:*\x20remove\x20from\x20%0',o(_0x485e93,function(_0x43477b){return'ELEMENT_'+_0x43477b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49af70))):o(_0x485e93,'*Outdent:*\x20%0',o(_0x485e93,'ELEMENT_LIST_ITEM')),_0x3def6a={'type':'format','content':_0x4f7085};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x439227['multipleBlocks']&&(_0x4f7085='*Merge:*\x20%0',_0x3def6a={'type':'deletion','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_LIST_ITEM'))});}return _0x3def6a;});}}function le(_0x244a1a){let _0x23bb1a=_0x244a1a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23bb1a;){const _0x45998d=_0x23bb1a['getAttribute']('listItemId');if(!_0x45998d)return!0x1;if(_0x45998d==_0x244a1a['data']['newValue'])return'newValue';if(_0x45998d==_0x244a1a['data']['oldValue'])return'oldValue';_0x23bb1a=_0x23bb1a['previousSibling'];}return!0x1;}class ue extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bc9a1=this['editor']['config']['get']('list.properties'),_0x5f1b02=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bc9a1['styles']&&(_0x5f1b02['enableDefaultAttributesIntegration']('listStyle'),_0x5f1b02['registerBlockAttribute']('listStyle')),_0x2bc9a1['reversed']&&(_0x5f1b02['enableDefaultAttributesIntegration']('listReversed'),_0x5f1b02['registerBlockAttribute']('listReversed')),_0x2bc9a1['startIndex']&&(_0x5f1b02['enableDefaultAttributesIntegration']('listStart'),_0x5f1b02['registerBlockAttribute']('listStart'));const _0x399bdb={'type':'format','content':''};_0x5f1b02['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ffeb6=this['editor']['locale'];_0x5f1b02['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ffeb6,'FORMAT_LIST_REVERSED')),_0x5f1b02['descriptionFactory']['registerDescriptionCallback'](_0x8a272f=>{const {data:_0x1b6d9a}=_0x8a272f;if(_0x1b6d9a&&'listReversed'==_0x1b6d9a['key'])return null==_0x1b6d9a['newValue']||0x0==_0x1b6d9a['newValue']&&null==_0x1b6d9a['oldValue']?_0x399bdb:void 0x0;}),_0x5f1b02['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ffeb6,'FORMAT_LIST_START')),_0x5f1b02['descriptionFactory']['registerDescriptionCallback'](_0x49cca1=>{const {data:_0x254e54}=_0x49cca1;if(_0x254e54&&'listStart'==_0x254e54['key'])return null==_0x254e54['newValue']||0x1==_0x254e54['newValue']&&null==_0x254e54['oldValue']?_0x399bdb:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x12640b=>{if(_0x12640b['batch']['isUndo'])return!0x1;let _0x53dac4=!0x1;const _0x57607c=_0x5f1b02['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e05be=>{const _0x45f421=_0x5f1b02['_getAttributeKey'](_0x2e05be);return'listStart'==_0x45f421||'listReversed'==_0x45f421;});for(const _0xab650e of _0x57607c){const _0x535e07=_0xab650e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x535e07||'customNumbered'==_0x535e07)continue;_0x5f1b02['_findSuggestions'](_0xab650e['getFirstRange'](),'attribute')['find'](_0x24abe5=>'listType'==_0x5f1b02['_getAttributeKey'](_0x24abe5['suggestion']))||(_0x12640b['removeMarker'](_0xab650e['getFirstMarker']()),_0x53dac4=!0x0);}return _0x53dac4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xaa2db3){const _0x3b3b00=this['editor']['locale'],{data:_0xdc25c0}=_0xaa2db3,_0x22959d={'type':'format','content':''};if(!_0xdc25c0||'listStyle'!=_0xdc25c0['key'])return;if(!_0xdc25c0['oldValue'])return'default'==_0xdc25c0['newValue']?_0x22959d:{'type':'format','content':''+o(_0x3b3b00,'*Set\x20format:*\x20%0',o(_0x3b3b00,this['_getTranslationKeyForListStyle'](_0xdc25c0['newValue'])))};if(!_0xdc25c0['newValue']){if('default'==_0xdc25c0['oldValue'])return _0x22959d;let _0x2b4ad7=_0xaa2db3['head'];for(;_0x2b4ad7;){if(_0x2b4ad7['data']&&'listType'==_0x2b4ad7['data']['key']&&_0x2b4ad7['data']['newValue'])return _0x22959d;_0x2b4ad7=_0x2b4ad7['next'];}return{'type':'format','content':''+o(_0x3b3b00,'*Remove\x20format:*\x20%0',o(_0x3b3b00,this['_getTranslationKeyForListStyle'](_0xdc25c0['oldValue'])))};}if('default'!=_0xdc25c0['newValue'])return{'type':'format','content':''+o(_0x3b3b00,'*Set\x20format:*\x20%0',o(_0x3b3b00,this['_getTranslationKeyForListStyle'](_0xdc25c0['newValue'])))};let _0x32d699=_0xaa2db3['head'];for(;_0x32d699;){if(_0x32d699['data']&&'listType'==_0x32d699['data']['key']&&_0x32d699['data']['newValue']&&_0x32d699['data']['oldValue'])return _0x22959d;_0x32d699=_0x32d699['next'];}return{'type':'format','content':o(_0x3b3b00,'*Set\x20format:*\x20%0',o(_0x3b3b00,'ELEMENT_'+_0xaa2db3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x403738=this['editor'],_0x3d9c73=_0x403738['locale'];_0x403738['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3df5d8=>{if('formatBlock'!=_0x3df5d8['type'])return;const {data:_0x561426}=_0x3df5d8;if(!_0x561426)return;let _0x40fc88,_0x2d33bc;switch(_0x561426['commandName']){case'listStyle':_0x40fc88='*Change\x20to:*\x20%0',_0x2d33bc={'type':'format','content':o(_0x3d9c73,_0x40fc88,o(_0x3d9c73,this['_getTranslationKeyForListStyle'](_0x561426['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40fc88=_0x561426['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d33bc={'type':'format','content':o(_0x3d9c73,_0x40fc88)};break;case'listStart':_0x40fc88='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d33bc={'type':'format','content':o(_0x3d9c73,_0x40fc88,_0x561426['commandParams'][0x0]['startIndex'])};}return _0x2d33bc;});}['_getTranslationKeyForListStyle'](_0x2fdfe2){return'ELEMENT_'+function(_0x1d933b){if(pe['includes'](_0x1d933b))return'bulleted';if(ye['includes'](_0x1d933b))return'numbered';return null;}(_0x2fdfe2)['toUpperCase']()+'_LIST_'+_0x2fdfe2['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x16371d{static get['requires'](){return[_0x187c42];}['init'](){const _0x2641f6=this['editor'],_0x4e7206=_0x2641f6['plugins']['get']('TrackChangesEditing'),_0x5df6e2=_0x2641f6['commands']['get']('enter');_0x4e7206['enableCommand']('enter',()=>{_0x2641f6['model']['change'](_0x25b31a=>{const _0x1a24ec=_0x2641f6['model']['document']['selection'],_0x477295=_0x1a24ec['getFirstPosition'](),_0x729f26=_0x218be5['fromRange'](_0x1a24ec['getFirstRange']());if(_0x5df6e2['enterBlock'](_0x25b31a)){const _0x39fce2=_0x2641f6['model']['createPositionAt'](_0x477295['parent']['nextSibling'],0x0),_0x21375f=_0x25b31a['createRange'](_0x477295,_0x39fce2);_0x4e7206['markInsertion'](_0x21375f);}else _0x25b31a['setSelection'](_0x25b31a['createRange'](_0x729f26['end']));_0x729f26['detach'](),_0x5df6e2['fire']('afterExecute',{'writer':_0x25b31a});});}),_0x2641f6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2641f6,'split'),{'priority':'high'}),_0x2641f6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x577929,_0x65e5bf,_0x50e3b2)=>{const _0x555505=_0x50e3b2['mapper']['markerNameToElements'](_0x65e5bf['markerName']);if(_0x555505){for(const _0x3ac2da of _0x555505)_0x3ac2da['hasClass']('ck-suggestion-marker-split')&&(_0x50e3b2['mapper']['unbindElementFromMarkerName'](_0x3ac2da,_0x65e5bf['markerName']),_0x50e3b2['writer']['remove'](_0x3ac2da));}},{'priority':'high'}),_0x2641f6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f8283,_0x58808c,_0x22b596)=>{_0x22b596['options']['showSuggestionHighlights']&&_e(_0x2641f6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1f8283,_0x58808c,_0x22b596);},{'priority':'high'});}}class J extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xadfcac=this['editor']['plugins']['get']('TrackChangesEditing');_0xadfcac['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xadfcac['enableCommand']('findNext'),_0xadfcac['enableCommand']('findPrevious'),_0xadfcac['enableCommand']('replace'),_0xadfcac['enableCommand']('replaceAll');}['handleFindCommand'](_0x55b3b1,_0x6d15b9,_0x40ae74={}){const _0x38f635=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x55b3b1(_0x5f30e2=>{let _0x4e3c52=('string'==typeof _0x6d15b9?_0x38f635['findByTextCallback'](_0x6d15b9,_0x40ae74):_0x6d15b9)(_0x5f30e2);Array['isArray'](_0x4e3c52)&&(_0x4e3c52={'results':_0x4e3c52,'searchText':'string'==typeof _0x6d15b9?_0x6d15b9:''});const _0xacd92b=_0x4e3c52['results']['filter'](_0x307780=>!0x1===this['_isInDeletionRange'](_0x307780,_0x5f30e2['item']));return{..._0x4e3c52,'results':_0xacd92b};},_0x40ae74);}['_isInDeletionRange'](_0x4c28aa,_0x2599df){const _0x5965a2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2599df,_0x4c28aa['start']),this['editor']['model']['createPositionAt'](_0x2599df,_0x4c28aa['end']));for(const _0x4da7c8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5965a2['getIntersection'](_0x4da7c8['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 _0x16371d{['afterInit'](){const _0x323b9c=this['editor']['locale'],_0xd0b666=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x47c57a,commandName:_0x477ae5}of ro)this['editor']['plugins']['has'](_0x47c57a)&&(_0xd0b666['enableDefaultAttributesIntegration'](_0x477ae5),_0xd0b666['registerInlineAttribute'](_0x477ae5));_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x323b9c,'FORMAT_FONT_SIZE')),_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x323b9c,'FORMAT_FONT_FAMILY')),_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x323b9c,'FORMAT_FONT_COLOR')),_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x323b9c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6b3566=this['editor'],_0x289cf0=_0x6b3566['locale'];_0x6b3566['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ff68b=>{const _0x2873a7=_0x289cf0['t'];if('formatInline'!=_0x4ff68b['type'])return;const {data:_0x493e44}=_0x4ff68b;if(null!=_0x493e44){if('fontSize'==_0x493e44['commandName']){const _0x111215=_0x493e44['commandParams'][0x0]['value'];if(_0x111215){const _0x40b871=_0x2873a7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x15ee6c=>_0x15ee6c['model']==_0x111215)['title'])['toLowerCase']();return{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20size:*\x20%0',_0x40b871)};}return{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x493e44['commandName']){const _0x54d612=_0x493e44['commandParams'][0x0]['value'];return _0x54d612?{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20family:*\x20%0',_0x54d612)}:{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x493e44['commandName']){const _0x25843b=_0x493e44['commandParams'][0x0]['value'];if(_0x25843b){const _0x49c1bc=_0x1ca3e4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x12a7aa=>_0x12a7aa['model']==_0x25843b);let _0x5b98a1=_0x25843b,_0xc35b08='';return _0x49c1bc&&(_0x5b98a1=_0x49c1bc['label'],_0xc35b08=_0x2873a7(_0x5b98a1)['toLowerCase']()),{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20color:*\x20%0',_0xc35b08)['trim'](),'color':{'value':_0x25843b,'title':_0xc35b08||_0x5b98a1}};}return{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x493e44['commandName']){const _0xd3af5d=_0x493e44['commandParams'][0x0]['value'];if(_0xd3af5d){const _0x4ac531=_0x1ca3e4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe690b1=>_0xe690b1['model']==_0xd3af5d);let _0x2f9689=_0xd3af5d,_0x5763b3='';return _0x4ac531&&(_0x2f9689=_0x4ac531['label'],_0x5763b3=_0x2873a7(_0x2f9689)['toLowerCase']()),{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20background\x20color:*\x20%0',_0x5763b3)['trim'](),'color':{'value':_0xd3af5d,'title':_0x5763b3||_0x2f9689}};}return{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x16371d{['afterInit'](){const _0x520de3=this['editor'],_0x2be05b=_0x520de3['plugins']['get']('TrackChangesEditing'),_0x10045e=_0x520de3['commands']['get']('copyFormat'),_0x1a6beb=_0x520de3['commands']['get']('pasteFormat');_0x10045e&&_0x1a6beb&&(_0x2be05b['enableDefaultAttributesIntegration']('pasteFormat'),_0x2be05b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x146a3b=this['editor'],_0x212312=_0x146a3b['locale'];_0x146a3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ba4e=>{if('formatBlock'!=_0x27ba4e['type']&&'formatInline'!=_0x27ba4e['type'])return;const {data:_0x4490ca}=_0x27ba4e;if(_0x4490ca&&'pasteFormat'===_0x4490ca['commandName']){const _0x37ad02=[],_0x2319d6=_0x4490ca['commandParams'][0x0];for(const [_0x4224e2,_0x486b60]of Object['entries'](_0x2319d6))_0x37ad02['push'](so(_0x146a3b,_0x4224e2,_0x486b60));return _0x37ad02['length']?{'type':'format','content':o(_0x212312,'*Set\x20format\x20to:*\x20%0',_0x37ad02['join'](',\x20'))}:{'type':'format','content':o(_0x212312,'*Remove\x20all\x20formatting*')};}});}}function so(_0x48f702,_0x57a5c5,_0x5d8c43){const _0x3937b9=_0x48f702['locale']['t'],_0x3a8b1e=_0x57a5c5['split'](/(?=[A-Z])/)['join']('\x20'),_0x12ee5e=_0x3937b9(_0x3a8b1e['charAt'](0x0)['toUpperCase']()+_0x3a8b1e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5d8c43)return _0x12ee5e;if('fontColor'===_0x57a5c5||'fontBackgroundColor'===_0x57a5c5){const _0x25c562=_0x1ca3e4(_0x48f702['config']['get']('fontColor.colors'))['find'](_0x548082=>_0x548082['model']==_0x5d8c43);return _0x12ee5e+'\x20('+(_0x25c562?_0x3937b9(_0x25c562['label'])['toLowerCase']():_0x5d8c43)+')';}if('fontSize'===_0x57a5c5&&isNaN(parseFloat(_0x5d8c43))){const _0x2eca75=_0x48f702['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x48f702['config']['get']('fontSize.options'))['find'](_0x40fa09=>_0x40fa09['model']==_0x5d8c43);return _0x12ee5e+'\x20('+(_0x2eca75?_0x3937b9(_0x2eca75['title'])['toLowerCase']():_0x5d8c43)+')';}return _0x12ee5e+'\x20('+_0x5d8c43+')';}class Y extends _0x16371d{['_headingOptions'];['afterInit'](){const _0x4346fe=this['editor'];if(!_0x4346fe['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4346fe['config']['get']('heading.options');const _0xabe875=_0x4346fe['locale'],_0x42d669=_0x4346fe['plugins']['get']('TrackChangesEditing');_0x42d669['enableDefaultAttributesIntegration']('heading');for(const _0x451c0d of this['_headingOptions'])'paragraph'!=_0x451c0d['model']&&_0x42d669['descriptionFactory']['registerElementLabel'](_0x451c0d['model'],_0x750ea6=>{const _0x5777cc=this['_getHeadingLevel'](_0x451c0d['model']);return null!==_0x5777cc?_0x44243a(_0x750ea6,_0x5777cc):_0x1f416f(_0x750ea6,_0x451c0d['title']);});function _0x44243a(_0x1643b6,_0x404e55){return o(_0xabe875,'ELEMENT_HEADING',[_0x1643b6,_0x404e55]);}function _0x1f416f(_0xd0d2c5,_0x381dc5){return o(_0xabe875,'ELEMENT_HEADING_CUSTOM',[_0xd0d2c5,_0x381dc5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d1666=this['editor'],_0x395250=_0x1d1666['locale'];function _0xc63de7(_0x11f23f,_0x421230){return o(_0x395250,'ELEMENT_HEADING_CUSTOM',[_0x11f23f,_0x421230]);}_0x1d1666['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x507244=>{if('formatBlock'!=_0x507244['type'])return;const {data:_0x2e3a90}=_0x507244;if(_0x2e3a90&&'heading'==_0x2e3a90['commandName']){const _0x3d3680=_0x2e3a90['commandParams'][0x0]['value'],_0x224e63=this['_getHeadingLevel'](_0x3d3680);if(null!==_0x224e63)return{'type':'format','content':o(_0x395250,'*Change\x20to:*\x20%0',(_0x5b6897=0x1,_0x3aa3f3=_0x224e63,o(_0x395250,'ELEMENT_HEADING',[_0x5b6897,_0x3aa3f3])))};const _0x471e1b=this['_headingOptions']['find'](_0x47af00=>_0x47af00['model']===_0x3d3680)['title'];return{'type':'format','content':o(_0x395250,'*Change\x20to:*\x20%0',_0xc63de7(0x1,_0x471e1b))};}var _0x5b6897,_0x3aa3f3;});}['_getHeadingLevel'](_0x48dc84){const _0x1d36cc=_0x48dc84['match'](/^heading(\d+)/);if(_0x1d36cc)return _0x1d36cc[0x1];const _0x545ca1=this['_headingOptions']?.['find'](_0x208278=>_0x208278['model']==_0x48dc84);if(_0x545ca1&&_0x545ca1['view']){const _0x280f96=_0x545ca1['view'],_0x2ce286=(_0x280f96['name']??_0x280f96)['match'](/^h(\d+)/);if(_0x2ce286)return _0x2ce286[0x1];}return null;}}class Z extends _0x16371d{['afterInit'](){const _0x1ec6f0=this['editor'];if(!_0x1ec6f0['plugins']['has']('HighlightEditing'))return;const _0x3db240=_0x1ec6f0['plugins']['get']('TrackChangesEditing'),_0x6f3997=_0x1ec6f0['locale'];_0x3db240['enableDefaultAttributesIntegration']('highlight'),_0x3db240['registerInlineAttribute']('highlight'),_0x3db240['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x6f3997,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc82a9c=this['editor'],_0x4d4dbb=_0xc82a9c['locale'];_0xc82a9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519d3f=>{if('formatInline'!=_0x519d3f['type'])return;const {data:_0x375c1a}=_0x519d3f;if(_0x375c1a&&'highlight'==_0x375c1a['commandName']){const _0x32a0ff=_0x4d4dbb['t'],_0x2ba40c=_0x375c1a['commandParams'][0x0]['value'];if(_0x2ba40c){const _0x27186c=_0xc82a9c['config']['get']('highlight.options')['find'](_0x371b8a=>_0x371b8a['model']==_0x2ba40c),_0x1a25f7=_0x32a0ff(_0x27186c['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d4dbb,'*Set\x20highlight:*\x20%0',_0x1a25f7),'color':{'value':_0x27186c['color'],'title':_0x27186c['title']}};}return{'type':'format','content':o(_0x4d4dbb,'*Remove\x20highlight*',o(_0x4d4dbb,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x16371d{['afterInit'](){const _0xd16f70=this['editor'];if(!_0xd16f70['plugins']['has']('HorizontalLineEditing'))return;_0xd16f70['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3a6787=_0xd16f70['plugins']['get']('TrackChangesEditing'),_0x24aa9c=_0xd16f70['locale'];_0x3a6787['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4713ca=>o(_0x24aa9c,'ELEMENT_HORIZONTAL_LINE',_0x4713ca)),_0xd16f70['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1cd2ee,{writer:_0x3f3473,options:_0xf7c24b})=>{if(!_0xf7c24b['showSuggestionHighlights'])return null;const _0x518d56=_0x3f3473['createContainerElement']('div'),_0x38361b=_0x3f3473['createEmptyElement']('hr');return _0x3f3473['addClass']('ck-horizontal-line',_0x518d56),_0x3f3473['insert'](_0x3f3473['createPositionAt'](_0x518d56,0x0),_0x38361b),_0x518d56;},'converterPriority':'high'});}}class et extends _0x16371d{['afterInit'](){const _0x2564b8=this['editor'];if(!_0x2564b8['plugins']['has']('HtmlEmbed'))return;const _0x50cae9=_0x2564b8['plugins']['get']('TrackChangesEditing'),_0x1cadc8=_0x2564b8['locale'];_0x50cae9['descriptionFactory']['registerElementLabel']('rawHtml',_0x18e3da=>o(_0x1cadc8,'ELEMENT_HTML_EMBED',_0x18e3da)),_0x50cae9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50cae9['registerBlockAttribute']('value'),_0x50cae9['descriptionFactory']['registerDescriptionCallback'](_0x2f5444=>{if('attribute'!=_0x2f5444['type'])return;const {data:_0x223a41}=_0x2f5444;if(_0x223a41&&'value'==_0x223a41['key']&&_0x2f5444['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f364f=o(_0x1cadc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1cadc8,'*Change\x20%0\x20content*',_0x5f364f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49fb60=this['editor'],_0x37f64d=_0x49fb60['locale'];_0x49fb60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f7dc=>{if('formatBlock'!=_0x44f7dc['type'])return;const {data:_0x318abb}=_0x44f7dc;if(_0x318abb&&'htmlEmbed'==_0x318abb['commandName']){const _0x2dd0d5=o(_0x37f64d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37f64d,'*Change\x20%0\x20content*',_0x2dd0d5)};}});}}class it extends _0x16371d{['afterInit'](){const _0x347f2d=this['editor'];if(!_0x347f2d['plugins']['has']('ImageEditing'))return;const _0x1941c6=_0x347f2d['plugins']['get']('TrackChangesEditing'),_0x27c5f2=_0x347f2d['plugins']['get']('ImageUtils'),_0x47171e=_0x347f2d['locale'];_0x1941c6['enableCommand']('insertImage'),_0x1941c6['descriptionFactory']['registerElementLabel']('imageBlock',_0x2f5245=>o(_0x47171e,'ELEMENT_IMAGE',_0x2f5245)),_0x1941c6['descriptionFactory']['registerElementLabel']('imageInline',_0x4eadc8=>o(_0x47171e,'ELEMENT_INLINE_IMAGE',_0x4eadc8)),_0x1941c6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x47171e,'ELEMENT_CAPTION')),_0x347f2d['plugins']['has']('ImageUploadEditing')&&_0x1941c6['enableCommand']('uploadImage'),_0x347f2d['plugins']['has']('ImageBlockEditing')&&_0x347f2d['plugins']['has']('ImageInlineEditing')&&(_0x1941c6['enableCommand']('imageTypeInline',(_0x2932f5,_0x5c0caa)=>{const _0x558d7c=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']);_0x347f2d['model']['change'](()=>{_0x1941c6['markBlockFormat'](_0x558d7c,{'commandName':'imageTypeInline','commandParams':[_0x5c0caa]},[],'convertBlockImageToInline');});}),_0x1941c6['enableCommand']('imageTypeBlock',(_0x53c280,_0x354f33)=>{_0x347f2d['model']['change'](_0x62b090=>{let _0x25a343=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3fe2e9=_0x62b090['createRangeOn'](_0x25a343);const _0xaede9f=_0x2570a3['fromPosition'](_0x3fe2e9['start'],'toPrevious'),_0x1b31ad=_0x2570a3['fromPosition'](_0x3fe2e9['end'],'toNext');_0x1941c6['forceDefaultExecution'](()=>_0x53c280(_0x354f33)),_0x25a343=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3fe2e9=_0x62b090['createRangeOn'](_0x25a343);const _0x5e354a=_0x62b090['createRange'](_0xaede9f,_0x1b31ad);_0xaede9f['detach'](),_0x1b31ad['detach'](),_0x1941c6['markBlockFormat'](_0x25a343,{'commandName':'imageTypeInline','commandParams':[_0x354f33]},[],'convertInlineImageToBlock'),_0x5e354a['start']['isBefore'](_0x3fe2e9['start'])&&_0x1941c6['markInsertion'](_0x62b090['createRange'](_0x5e354a['start'],_0x3fe2e9['start']),'convertInlineImageToBlock'),_0x3fe2e9['end']['isBefore'](_0x5e354a['end'])&&_0x1941c6['markInsertion'](_0x62b090['createRange'](_0x3fe2e9['end'],_0x5e354a['end']),'convertInlineImageToBlock');});}),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1941c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5e8f62])=>{const _0x39a00c=_0x1941c6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3595c3=_0x5e8f62['start'],_0x326992=_0x5e8f62['end'];const _0x364e8b=_0x347f2d['model']['schema']['getNearestSelectionRange'](_0x3595c3,'backward'),_0x59f907=_0x347f2d['model']['schema']['getNearestSelectionRange'](_0x326992,'forward');_0x364e8b['isCollapsed']&&(_0x3595c3=_0x364e8b['start']),_0x59f907['isCollapsed']&&(_0x326992=_0x59f907['end']),_0x39a00c([_0x347f2d['model']['createRange'](_0x3595c3,_0x326992)]);}),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x38d1b6),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x38d1b6)),_0x347f2d['plugins']['has']('ImageCaptionEditing')&&(_0x1941c6['enableCommand']('toggleImageCaption',(_0x23b055,_0x502a2c)=>{const _0x59b121=_0x347f2d['plugins']['get']('ImageCaptionUtils');let _0x3c5f5d=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3ab86b=_0x59b121['getCaptionFromImageModelElement'](_0x3c5f5d);_0x347f2d['model']['change'](()=>{if(_0x3ab86b)return void _0x1941c6['markDeletion'](_0x347f2d['model']['createRangeOn'](_0x3ab86b));const _0x102998=_0x27c5f2['isBlockImage'](_0x3c5f5d);_0x23b055(_0x502a2c),_0x3c5f5d=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3ab86b=_0x59b121['getCaptionFromImageModelElement'](_0x3c5f5d),_0x1941c6['markInsertion'](_0x347f2d['model']['createRangeOn'](_0x3ab86b),_0x102998?null:'imageCaption');});}),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x38d1b6));const _0x1e2a0b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5db414(_0x167fe7,_0x752986){const _0x321724=_0x1e2a0b['findIndex'](({type:_0x39914f,subType:_0x3ddc40})=>_0x167fe7['type']==_0x39914f&&_0x167fe7['subType']==_0x3ddc40),_0xd61820=_0x1e2a0b['findIndex'](({type:_0x3302ec,subType:_0x60708c})=>_0x752986['type']==_0x3302ec&&_0x752986['subType']==_0x60708c);if(_0x321724<0x0||_0xd61820<0x0)return!0x1;const _0x4e74f8=_0x167fe7['getFirstRange'](),_0x10060c=_0x752986['getFirstRange']();if((0x0==_0x321724||0x1==_0x321724)&&0x2==_0xd61820&&_0x4e74f8['isIntersecting'](_0x10060c))return!0x0;if(0x2==_0x321724&&0x3==_0xd61820){const _0x1d38bb=_0x1941c6['_findSuggestions'](_0x4e74f8,'insertion')['filter'](({suggestion:_0x1875ca,meta:_0x4aae9d})=>_0x4aae9d['isOwn']&&'convertInlineImageToBlock'==_0x1875ca['subType']);if(_0x1d38bb['length']>0x1&&_0x10060c['end']['isEqual'](_0x4e74f8['start']))return!0x0;if(0x1==_0x1d38bb['length']&&(_0x4e74f8['start']['isEqual'](_0x10060c['end'])||_0x4e74f8['end']['isEqual'](_0x10060c['start'])))return!0x0;}if(0x3==_0x321724&&0x3==_0xd61820&&_0x4e74f8['start']['isBefore'](_0x10060c['start'])){const _0x5df218=_0x4e74f8['end']['nodeAfter'],_0x5f11c5=_0x10060c['start']['nodeBefore'];return _0x27c5f2['isBlockImage'](_0x5df218)&&_0x5df218===_0x5f11c5;}return!0x1;}function _0x38d1b6(_0x3c6d06,_0x525ead){return _0x5db414(_0x3c6d06,_0x525ead)?[_0x3c6d06,_0x525ead]:_0x5db414(_0x525ead,_0x3c6d06)?[_0x525ead,_0x3c6d06]:null;}_0x347f2d['plugins']['has']('ImageResize')&&(_0x1941c6['enableDefaultAttributesIntegration']('resizeImage'),_0x1941c6['registerBlockAttribute']('resizedWidth'),_0x1941c6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x47171e,'FORMAT_IMAGE_SIZE'))),_0x347f2d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1941c6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1941c6['registerBlockAttribute']('alt')),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x33b6bd=>{if(!!_0x1e2a0b['find'](({type:_0x44dba4,subType:_0x43b115})=>_0x33b6bd['type']==_0x44dba4&&_0x33b6bd['subType']==_0x43b115))return _0x33b6bd['previous']?{}:void 0x0;}),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x2409d3=>{if('insertion'==_0x2409d3['type']||'deletion'==_0x2409d3['type']){const _0x1f3675=_0x2409d3['getContainedElement']();if(_0x1f3675&&_0x1f3675['is']('element','caption'))return{'type':'insertion'==_0x2409d3['type']?'addObject':'removeObject','element':_0x1f3675,'quantity':0x1};}}),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x23a6f8=>'formatBlock'==_0x23a6f8['type']&&'convertInlineImageToBlock'==_0x23a6f8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23a6f8['type']&&'convertBlockImageToInline'==_0x23a6f8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x5232da=>{if('attribute'!=_0x5232da['type'])return;const {data:_0x17a227}=_0x5232da;if(!_0x17a227||'alt'!=_0x17a227['key'])return;const _0x4aa398=_0x17a227['newValue'];return _0x4aa398?{'type':'format','content':o(_0x47171e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4aa398+'\x22')}:{'type':'format','content':o(_0x47171e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28969e=this['editor'],_0x9b3a7f=_0x28969e['locale'];_0x28969e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2647c2=>{if('formatBlock'!=_0x2647c2['type']&&'formatInline'!=_0x2647c2['type'])return;const {data:_0x10e3cc}=_0x2647c2;if(_0x10e3cc){if('imageTextAlternative'==_0x10e3cc['commandName']){const _0x2971e7=_0x10e3cc['commandParams'][0x0]['newValue'];return _0x2971e7?{'type':'format','content':o(_0x9b3a7f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2971e7+'\x22')}:{'type':'format','content':o(_0x9b3a7f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x10e3cc['commandName']){const _0x5bc758=_0x10e3cc['commandParams'][0x0]['width'];return _0x5bc758?{'type':'format','content':o(_0x9b3a7f,'*Set\x20image\x20width:*\x20%0',_0x5bc758)}:{'type':'format','content':o(_0x9b3a7f,'*Reset\x20image\x20width*')};}}});}}class st extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x8e6f70=this['editor']['locale'],_0x276e9f=this['editor']['plugins']['get']('TrackChangesEditing');_0x276e9f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x276e9f['registerBlockAttribute']('src'),_0x276e9f['descriptionFactory']['registerDescriptionCallback'](_0x59df0e=>{if('attribute'!=_0x59df0e['type'])return;const {data:_0x580faf}=_0x59df0e;return _0x580faf&&'src'==_0x580faf['key']?_0x580faf['newValue']&&_0x580faf['oldValue']?{'type':'format','content':o(_0x8e6f70,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3586e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3586e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3586e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3586e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3586e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b76e=this['editor'],_0x3484a8=_0x13b76e['locale'];_0x13b76e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x373ce1=>{if('formatBlock'!=_0x373ce1['type']&&'formatInline'!=_0x373ce1['type'])return;const {data:_0x2633ad}=_0x373ce1;if(!_0x2633ad||'replaceImageSource'!=_0x2633ad['commandName'])return;return{'type':'format','content':o(_0x3484a8,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x16371d{['afterInit'](){const _0x115e01=this['editor'];if(!_0x115e01['plugins']['has']('ImageStyleEditing'))return;const _0x5c968e=_0x115e01['plugins']['get']('TrackChangesEditing'),_0x13cfa2=_0x115e01['plugins']['get']('ImageUtils'),_0x31e92c={};_0x5c968e['enableCommand']('imageStyle',(_0x22f6f5,_0x480291)=>{const _0x33dd26=_0x115e01['plugins']['get']('Users')['me'],_0x45b1d6=_0x115e01['commands']['get']('imageStyle');let _0x5a7660=_0x13cfa2['getClosestSelectedImageElement'](_0x115e01['model']['document']['selection']),_0xf87bac=_0x115e01['model']['createRangeOn'](_0x5a7660),_0x12d4bb=_0x45b1d6['value'];if(_0x12d4bb==_0x480291['value'])return;const _0x5dea6a={'commandName':'imageStyle','commandParams':[_0x480291],'formatGroupId':_0x4b80ff()};_0x115e01['model']['change'](()=>{if(_0x5c968e['getSuggestions']()['filter'](_0x22d73e=>_0x22d73e['isInContent']&&_0x33dd26==_0x22d73e['author']&&('formatBlock'==_0x22d73e['type']||'formatInline'==_0x22d73e['type'])&&('imageStylePreApply'==_0x22d73e['subType']||'imageStylePostApply'==_0x22d73e['subType'])&&_0x22d73e['getFirstRange']()['isEqual'](_0xf87bac))['forEach'](_0x46eeab=>_0x5c968e['discardSuggestion'](_0x46eeab['head'])),_0x5a7660=_0x13cfa2['getClosestSelectedImageElement'](_0x115e01['model']['document']['selection']),_0xf87bac=_0x115e01['model']['createRangeOn'](_0x5a7660),_0x45b1d6['refresh'](),_0x115e01['commands']['get']('imageTypeInline')['refresh'](),_0x115e01['commands']['get']('imageTypeBlock')['refresh'](),_0x12d4bb=_0x45b1d6['value'],_0x12d4bb!=_0x480291['value'])return _0x13cfa2['isInlineImage'](_0x5a7660)&&_0x45b1d6['shouldConvertImageType'](_0x480291['value'],_0x5a7660)?(_0x22f6f5({..._0x480291,'setImageSizes':!0x1}),_0x5a7660=_0x13cfa2['getClosestSelectedImageElement'](_0x115e01['model']['document']['selection']),void _0x5c968e['markBlockFormat'](_0x5a7660,{..._0x5dea6a,'commandReversedParams':[{'value':_0x12d4bb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x13cfa2['isBlockImage'](_0x5a7660)?_0x5c968e['markBlockFormat'](_0x5a7660,_0x5dea6a,[],'imageStylePostApply'):_0x5c968e['markInlineFormat'](_0xf87bac,_0x5dea6a,'imageStylePostApply'));});});for(const _0x1f4c48 of _0x115e01['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x31e92c[_0x1f4c48['name']]=_0x1f4c48['title']['toLowerCase']();_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5edcba])=>{_0x13cfa2['setImageNaturalSizeAttributes'](_0x5edcba['getContainedElement']());}),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x44662b,_0x58bb13)=>{_0x5c968e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x44662b,{'commandName':_0x58bb13['commandName'],'commandParams':_0x58bb13['commandReversedParams']});}),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x146876,_0x9ced56){if(_0x1ae430(_0x146876,_0x9ced56))return[_0x146876,_0x9ced56];if(_0x1ae430(_0x9ced56,_0x146876))return[_0x9ced56,_0x146876];return null;});const _0x358d5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ae430(_0x279810,_0x1f3b9e){const _0x421bde=_0x358d5d['findIndex'](({type:_0x544f8e,subType:_0x14f5ed})=>_0x279810['type']==_0x544f8e&&_0x279810['subType']==_0x14f5ed),_0x2be0e5=_0x358d5d['findIndex'](({type:_0x524d4c,subType:_0x5398f2})=>_0x1f3b9e['type']==_0x524d4c&&_0x1f3b9e['subType']==_0x5398f2);if(_0x421bde<0x0||_0x2be0e5<0x0)return!0x1;const _0x3cc822=_0x279810['getFirstRange'](),_0x13d840=_0x1f3b9e['getFirstRange']();if((0x0==_0x421bde||0x1==_0x421bde)&&0x2==_0x2be0e5&&_0x3cc822['isIntersecting'](_0x13d840))return!0x0;if(0x2==_0x421bde&&0x3==_0x2be0e5){const _0x1530ee=_0x5c968e['_findSuggestions'](_0x3cc822,'insertion')['filter'](({suggestion:_0x171cce,meta:_0x29e200})=>_0x29e200['isOwn']&&'convertInlineImageToBlock'==_0x171cce['subType']);if(_0x1530ee['length']>0x1&&_0x13d840['end']['isEqual'](_0x3cc822['start']))return!0x0;if(0x1==_0x1530ee['length']&&(_0x3cc822['start']['isEqual'](_0x13d840['end'])||_0x3cc822['end']['isEqual'](_0x13d840['start'])))return!0x0;}if(0x3==_0x421bde&&0x3==_0x2be0e5&&_0x3cc822['start']['isBefore'](_0x13d840['start'])){const _0x4cd20a=_0x3cc822['end']['nodeAfter'],_0x4a079c=_0x13d840['start']['nodeBefore'];return _0x13cfa2['isBlockImage'](_0x4cd20a)&&_0x4cd20a===_0x4a079c;}return!0x1;}_0x115e01['model']['document']['registerPostFixer'](()=>{let _0x16fdf1=!0x1;const _0x5c2a46=Array['from'](_0x115e01['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c369a,data:_0x4794b8}of _0x5c2a46){const {group:_0x293e96,type:_0x391fae,subType:_0x31bba9,id:_0x1b7e73}=_0x5c968e['_splitMarkerName'](_0x1c369a);if('suggestion'==_0x293e96&&_0x5c968e['hasSuggestion'](_0x1b7e73)){if('formatBlock'==_0x391fae&&('imageStylePreApply'==_0x31bba9||'imageStylePostApply'==_0x31bba9)){const _0x888313=_0x5c968e['getSuggestion'](_0x1b7e73);if(_0x4794b8['newRange']){const _0x45f8af=_0x888313['getFirstRange']()['getContainedElement']();if(_0x13cfa2['isBlockImage'](_0x45f8af))continue;_0x5c968e['discardSuggestion'](_0x888313),_0x16fdf1=!0x0;}}if('insertion'==_0x391fae&&'imageCaption'==_0x31bba9&&!_0x4794b8['newRange']){const _0x2d4f65=_0x5c968e['getSuggestion'](_0x1b7e73);_0x2d4f65['next']&&_0x2d4f65['next']['isInContent']&&(_0x5c968e['discardSuggestion'](_0x2d4f65['next']),_0x16fdf1=!0x0);}}}return _0x16fdf1;}),this['_registerLegacyDescription'](_0x31e92c);}['_registerLegacyDescription'](_0x5dc75d){const _0x19fe00=this['editor'],_0x50166e=_0x19fe00['locale'];_0x19fe00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dae90=>{if('formatBlock'!=_0x5dae90['type']&&'formatInline'!=_0x5dae90['type'])return;const {data:_0x372632}=_0x5dae90;if(!_0x372632||'imageStyle'!=_0x372632['commandName'])return;const _0x196f70=_0x372632['commandParams'][0x0]['value'];return _0xd2bae2('side'===_0x196f70?o(_0x50166e,'FORMAT_SIDE_IMAGE'):_0x5dc75d[_0x196f70]||_0x196f70);function _0xd2bae2(_0x24e99e){return{'type':'format','content':o(_0x50166e,'*Format:*\x20%0',_0x24e99e)};}});}}class ot extends _0x16371d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48db4c){super(_0x48db4c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5851ba=this['editor'],_0xd75ccd=_0x5851ba['commands']['get']('importWord'),_0x3b1fd4=_0x5851ba['commands']['get']('trackChanges');_0xd75ccd&&(_0xd75ccd['on']('execute',(_0x66ceb0,[,_0x24ce09])=>{this['_trackChangesValueDuringImport']=_0x3b1fd4['value'],_0x24ce09['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd75ccd,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd75ccd,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3b1fd4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5851ba['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f95cc,_0x4ebd02){const {suggestions:_0x24c711}=_0x4ebd02,_0x50711b=this['editor']['commands']['get']('trackChanges'),_0x162c51=_0x50711b['value'];this['_trackChangesValueDuringImport']!==_0x162c51&&(_0x50711b['execute'](),this['_trackChangesExecuted']=!0x0),_0x24c711&&_0x24c711['forEach'](({id:_0x549a8c,type:_0x1367e8,author:_0x47a64a,created_at:_0x30faef})=>{const _0x494686={'id':_0x549a8c,'type':_0x1367e8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x47a64a,'createdAt':_0x30faef?new Date(_0x30faef):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x494686);});}}class rt extends _0x16371d{['afterInit'](){const _0x4f160b=this['editor'],_0x321fa3=_0x4f160b['plugins']['get']('TrackChangesEditing');if(_0x4f160b['plugins']['has']('IndentEditing')&&(_0x321fa3['enableCommand']('indent'),_0x321fa3['enableCommand']('outdent')),_0x4f160b['plugins']['has']('IndentBlock')){for(const _0x43d463 of['indentBlock','outdentBlock'])_0x321fa3['enableDefaultAttributesIntegration'](_0x43d463);}const _0x274d0c=_0x4f160b['locale'];_0x321fa3['registerBlockAttribute']('blockIndent'),_0x321fa3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x274d0c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23e658=this['editor'],_0x539880=_0x23e658['locale'],_0x2eb7f5=_0x23e658['plugins']['get']('TrackChangesEditing');_0x2eb7f5['descriptionFactory']['registerDescriptionCallback'](_0x4efca5=>{if('formatBlock'!=_0x4efca5['type'])return;const {data:_0x6606a}=_0x4efca5;if(!_0x6606a)return;if('indentBlock'!=_0x6606a['commandName']&&'outdentBlock'!=_0x6606a['commandName'])return;const _0x8e4810=_0x4efca5['getItems']()[0x0],_0x2857cd=_0x2eb7f5['descriptionFactory']['getItemLabel'](_0x8e4810);return'indentBlock'==_0x6606a['commandName']?{'type':'format','content':o(_0x539880,'*Indent:*\x20%0',_0x2857cd)}:'outdentBlock'==_0x6606a['commandName']?{'type':'format','content':o(_0x539880,'*Outdent:*\x20%0',_0x2857cd)}:void 0x0;});}}class at extends _0x16371d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x16371d{['afterInit'](){const _0x44f609=this['editor'];if(!_0x44f609['plugins']['has']('LinkEditing'))return;const _0x5f2457=_0x44f609['plugins']['get']('TrackChangesEditing'),_0x56eb39=_0x44f609['commands']['get']('link');_0x5f2457['enableDefaultAttributesIntegration']('link'),_0x5f2457['enableDefaultAttributesIntegration']('unlink'),_0x5f2457['registerInlineAttribute']('linkHref');for(const _0x5f4be0 of _0x56eb39['manualDecorators'])_0x5f2457['registerInlineAttribute'](_0x5f4be0['id']),_0x5f2457['descriptionFactory']['registerAttributeLabel'](_0x5f4be0['id'],'link\x20('+_0x5f4be0['label']['toLowerCase']()+')');_0x5f2457['descriptionFactory']['registerDescriptionCallback'](_0x1894b7=>{if('attribute'!=_0x1894b7['type'])return;const {data:_0x4b3e40}=_0x1894b7;if(!_0x4b3e40||'linkHref'!=_0x4b3e40['key'])return;const _0xe31695=_0x4b3e40['newValue'],_0x482fc8=_0x44f609['locale'];return{'type':'format','content':null==_0xe31695?o(_0x482fc8,'*Remove\x20link*'):o(_0x482fc8,'*Set\x20link:*\x20%0','\x22'+_0xe31695+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e948d=this['editor'],_0x3f6f6e=_0x3e948d['locale'];_0x3e948d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bac7c=>{if('formatInline'!=_0x3bac7c['type'])return;const {data:_0x5e9e0b}=_0x3bac7c;if(_0x5e9e0b){if('link'==_0x5e9e0b['commandName']){const _0x3f6f59=_0x5e9e0b['commandParams'][0x0];return{'type':'format','content':o(_0x3f6f6e,'*Set\x20link:*\x20%0','\x22'+_0x3f6f59+'\x22')};}return'unlink'==_0x5e9e0b['commandName']?{'type':'format','content':o(_0x3f6f6e,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x16371d{['afterInit'](){const _0x5f1179=this['editor'],_0x5842bd=_0x5f1179['locale'];if(!_0x5f1179['plugins']['has']('LegacyListEditing'))return;const _0x7d5b86=_0x5f1179['plugins']['get']('TrackChangesEditing'),_0x17b70a=_0x5f1179['plugins']['has']('LegacyTodoListEditing');function _0x4e0d6c(_0x28e374){return()=>{const _0x24dc9f=_0x5f1179['model']['document']['selection'],_0x375599=_0x5f1179['commands']['get'](_0x28e374);if(_0x375599['value'])return void _0x5f1179['execute']('paragraph',{});const _0x199b1d=_0x28e374['slice'](0x0,-0x4),_0x5d5d50=function(_0x5a7b54,_0x40905f,_0x307ddf){let _0x185ada=Array['from'](_0x5a7b54)['filter'](_0x283d92=>function(_0xa665a7,_0x63e9e0){return _0x63e9e0['checkChild'](_0xa665a7['parent'],'listItem')&&!_0x63e9e0['isObject'](_0xa665a7);}(_0x283d92,_0x307ddf));_0x185ada=_0x185ada['filter'](_0x2af99d=>!_0x2af99d['is']('element','listItem')||_0x2af99d['getAttribute']('listType')!=_0x40905f);const _0x1b3b4d=new Set();for(const _0x5ccef6 of _0x185ada)_0x5ccef6['is']('element','listItem')?_0x1b3b4d['add'](me(_0x5ccef6)):_0x1b3b4d['add'](_0x5ccef6);return Array['from'](_0x1b3b4d);}(_0x24dc9f['getSelectedBlocks'](),_0x199b1d,_0x5f1179['model']['schema']);_0x5f1179['model']['change'](()=>{for(const _0x1b86b9 of _0x5d5d50)_0x7d5b86['markBlockFormat'](_0x1b86b9,{'commandName':_0x28e374,'commandParams':[{'forceValue':!_0x375599['value']}],'formatGroupId':'blockName'},fe(_0x1b86b9));});};}function _0x3eac64(_0x3eb57e){return()=>{const _0x181b25=function(_0x567900){let _0x3460f2=Array['from'](_0x567900);const _0x30cf8=_0x3460f2['findIndex'](_0x4aadc1=>'listItem'!=_0x4aadc1['name']);return _0x30cf8>-0x1&&(_0x3460f2=_0x3460f2['slice'](0x0,_0x30cf8)),_0x3460f2;}(_0x5f1179['model']['document']['selection']['getSelectedBlocks']()),_0x1d2b25=_0x5f1179['model']['createRange'](_0x5f1179['model']['createPositionAt'](_0x181b25[0x0],'before'),_0x5f1179['model']['createPositionAt'](_0x181b25[_0x181b25['length']-0x1],'end'));_0x5f1179['model']['change'](()=>{_0x7d5b86['markBlockFormat'](_0x1d2b25,{'commandName':_0x3eb57e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x22d7a6){const _0x136288=new Set();for(const _0x1813e7 of _0x22d7a6){let _0x2cceef=_0x1813e7['nextSibling'];for(;_0x2cceef&&_0x2cceef['getAttribute']('listIndent')>_0x1813e7['getAttribute']('listIndent');)_0x136288['add'](_0x2cceef),_0x2cceef=_0x2cceef['nextSibling'];}return Array['from'](_0x136288);}(_0x181b25));});};}_0x7d5b86['enableCommand']('numberedList',_0x4e0d6c('numberedList')),_0x7d5b86['enableCommand']('bulletedList',_0x4e0d6c('bulletedList')),_0x17b70a&&_0x7d5b86['enableCommand']('todoList',_0x4e0d6c('todoList')),_0x7d5b86['enableCommand']('indentList',_0x3eac64('indentList')),_0x7d5b86['enableCommand']('outdentList',_0x3eac64('outdentList')),_0x17b70a&&_0x7d5b86['enableCommand']('checkTodoList',()=>{const _0x5ea52c=_0x5f1179['commands']['get']('checkTodoList'),_0x135355=Array['from'](_0x5ea52c['_selectedElements']);_0x135355['filter'](_0x1402a0=>_0x1402a0['getAttribute']('todoListChecked')!=_0x5ea52c['value']),_0x5f1179['model']['change'](()=>{for(const _0x5dc3fd of _0x135355)_0x7d5b86['markBlockFormat'](_0x5dc3fd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ea52c['value']}]});});}),_0x7d5b86['descriptionFactory']['registerElementLabel']('listItem',_0x49b308=>o(_0x5842bd,'ELEMENT_LIST_ITEM',_0x49b308)),_0x7d5b86['descriptionFactory']['registerDescriptionCallback'](_0x328e15=>{if('formatBlock'!=_0x328e15['type']&&'formatInline'!=_0x328e15['type'])return;const {data:_0x873954}=_0x328e15;if(_0x873954){if('numberedList'==_0x873954['commandName']||'bulletedList'==_0x873954['commandName']||'todoList'==_0x873954['commandName'])switch(_0x873954['commandName']['replace']('List','')){case'bulleted':return _0x393956(o(_0x5842bd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x393956(o(_0x5842bd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x393956(o(_0x5842bd,'ELEMENT_TODO_LIST'));}if('indentList'==_0x873954['commandName'])return{'type':'format','content':o(_0x5842bd,'*Indent:*\x20%0',o(_0x5842bd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x873954['commandName'])return{'type':'format','content':o(_0x5842bd,'*Outdent:*\x20%0',o(_0x5842bd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x873954['commandName'])return _0x873954['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5842bd,'*Check\x20item*')}:{'type':'format','content':o(_0x5842bd,'*Uncheck\x20item*')};}function _0x393956(_0x3e46df){return{'type':'format','content':o(_0x5842bd,'*Change\x20to:*\x20%0',_0x3e46df)};}});}}function me(_0x32b7d5){const _0x1bfbb8=_0x32b7d5['getAttribute']('listIndent');if(0x0==_0x1bfbb8)return _0x32b7d5;let _0x4f4a1e=_0x32b7d5;for(;_0x32b7d5['previousSibling']&&_0x32b7d5['previousSibling']['is']('element','listItem');){const _0xfa449d=_0x32b7d5['previousSibling']['getAttribute']('listIndent');if(_0xfa449d==_0x1bfbb8)_0x4f4a1e=_0x32b7d5['previousSibling'];else{if(_0xfa449d<_0x1bfbb8)break;}_0x32b7d5=_0x32b7d5['previousSibling'];}return _0x4f4a1e;}function fe(_0x1e32a5){const _0xe215ab=[];if(_0x1e32a5['is']('element','listItem')&&_0x1e32a5['getAttribute']('listIndent')>0x0){let _0x2eb5eb=_0x1e32a5['nextSibling'];for(;_0x2eb5eb&&'listItem'==_0x2eb5eb['name']&&_0x2eb5eb['getAttribute']('listIndent')==_0x1e32a5['getAttribute']('listIndent');)_0xe215ab['push'](_0x2eb5eb),_0x2eb5eb=_0x2eb5eb['nextSibling'];}return _0xe215ab;}class K extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x347844=this['editor']['config']['get']('list.properties'),_0xed5304=this['editor']['plugins']['get']('TrackChangesEditing');_0x347844['styles']&&_0xed5304['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x347844['reversed']&&_0xed5304['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x347844['startIndex']&&_0xed5304['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xed5304['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x172078,_0x38481a={}){const _0x2e415d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d54f6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2e415d['markMultiRangeBlockFormat'](_0x2d54f6,{'commandName':'listStyle','commandParams':[{'type':_0x38481a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x240fda,_0xb9464d={}){const _0x290dcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3db082=this['_getSuggestionBlocks'](_0x565ae8=>_0x565ae8['is']('element','listItem')&&'numbered'===_0x565ae8['getAttribute']('listType'));if(_0x3db082['length']<0x1)return;const _0x54b1a5=_0x3db082['map'](_0x357eaa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x357eaa,'before'),this['editor']['model']['createPositionAt'](_0x357eaa,0x0)));this['editor']['model']['change'](()=>{_0x290dcd['markMultiRangeBlockFormat'](_0x54b1a5,{'commandName':'listReversed','commandParams':[{'reversed':_0xb9464d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd11fb9,_0x3cd73e={}){const _0x4bf776=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40fb7a=this['_getSuggestionBlocks'](_0x2f28a3=>_0x2f28a3['is']('element','listItem')&&'numbered'===_0x2f28a3['getAttribute']('listType'));if(_0x40fb7a['length']<0x1)return;const _0x2d62d7=_0x40fb7a['map'](_0x5b32f1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b32f1,'before'),this['editor']['model']['createPositionAt'](_0x5b32f1,0x0)));this['editor']['model']['change'](()=>{_0x4bf776['markMultiRangeBlockFormat'](_0x2d62d7,{'commandName':'listStart','commandParams':[{'startIndex':_0x3cd73e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1fd2a1){if('formatBlock'!=_0x1fd2a1['type']&&'formatInline'!=_0x1fd2a1['type'])return;const _0x5b4259=this['editor']['locale'],{data:_0x3d78f2}=_0x1fd2a1;if(!_0x3d78f2)return;let _0x3a4b8e,_0x412de8;switch(_0x3d78f2['commandName']){case'listStyle':_0x3a4b8e='*Change\x20to:*\x20%0',_0x412de8={'type':'format','content':o(_0x5b4259,_0x3a4b8e,o(_0x5b4259,this['_getTranslationKeyForListStyle'](_0x3d78f2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3a4b8e=_0x3d78f2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x412de8={'type':'format','content':o(_0x5b4259,_0x3a4b8e)};break;case'listStart':_0x3a4b8e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x412de8={'type':'format','content':o(_0x5b4259,_0x3a4b8e,_0x3d78f2['commandParams'][0x0]['startIndex'])};}return _0x412de8;}['_getSuggestionBlocksForListStyle'](){const _0x276a42=this['editor']['plugins']['get']('LegacyListUtils');let _0x5dea77=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5dea77[0x0]?.['is']('element','listItem')&&_0x5dea77['unshift'](..._0x276a42['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5dea77[_0x5dea77['length']-0x1]?.['is']('element','listItem')&&_0x5dea77['push'](..._0x276a42['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5dea77=[...new Set(_0x5dea77)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5dea77=_0x5dea77['filter'](_0x51fdb9=>_0x51fdb9['is']('element','listItem'))),_0x5dea77;}['_getSuggestionBlocks'](_0x32549b){const _0x4574dd=this['editor']['plugins']['get']('LegacyListUtils');let _0x15f27e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x32549b)['map'](_0x4e1ffb=>{const _0x58129b=this['editor']['model']['createPositionAt'](_0x4e1ffb,0x0);return[..._0x4574dd['getSiblingNodes'](_0x58129b,'backward'),..._0x4574dd['getSiblingNodes'](_0x58129b,'forward')];})['flat']();return _0x15f27e=[...new Set(_0x15f27e)],_0x15f27e;}['_getTranslationKeyForListStyle'](_0xa58715){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xa58715)||'default')['toUpperCase']()+'_LIST_'+_0xa58715['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x16371d{['afterInit'](){const _0x5b8825=this['editor'];if(!_0x5b8825['plugins']['has']('MediaEmbedEditing'))return;const _0x4c1c4b=_0x5b8825['plugins']['get']('TrackChangesEditing'),_0x10f640=_0x5b8825['locale'];_0x4c1c4b['enableCommand']('mediaEmbed'),_0x4c1c4b['descriptionFactory']['registerElementLabel']('media',_0x12f434=>o(_0x10f640,'ELEMENT_MEDIA',_0x12f434)),_0x5b8825['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xa33bf3,{writer:_0x471d20,options:_0x9b93cb})=>{if(_0x9b93cb['showSuggestionHighlights'])return _0x471d20['createEmptyElement']('div');},'converterPriority':'high'}),_0x5b8825['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3e5e88,_0x34bf0b,_0x1fdda4)=>{_0x1fdda4['options']['showSuggestionHighlights']&&_0x3e5e88['stop']();},{'priority':'high'});}}class gt extends _0x16371d{['afterInit'](){const _0x379098=this['editor'];_0x379098['plugins']['has']('MentionEditing')&&_0x379098['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x16371d{['afterInit'](){const _0x57da05=this['editor'],_0x1fd1e3=_0x57da05['plugins']['get']('TrackChangesEditing');_0x57da05['plugins']['has']('MultiLevelList')&&(_0x1fd1e3['enableDefaultAttributesIntegration']('multiLevelList'),_0x1fd1e3['registerBlockAttribute']('listMarkerStyle'),_0x1fd1e3['descriptionFactory']['registerDescriptionCallback'](_0xa6dc69=>this['handleDescriptions'](_0xa6dc69)));}['handleDescriptions'](_0x18308a){const _0x3ebb34=this['editor']['locale'],{data:_0x28c71c}=_0x18308a,_0x3683c0={'type':'format','content':''};if(_0x28c71c&&'listMarkerStyle'==_0x28c71c['key']){if(!_0x28c71c['oldValue'])return{'type':'format','content':o(_0x3ebb34,'*Set\x20format:*\x20%0',o(_0x3ebb34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x28c71c['newValue']+')'};if(!_0x28c71c['newValue']){let _0x5663bb=_0x18308a['head'];for(;_0x5663bb;){if(_0x5663bb['data']&&'listType'==_0x5663bb['data']['key']&&_0x5663bb['data']['newValue'])return _0x3683c0;_0x5663bb=_0x5663bb['next'];}return{'type':'format','content':o(_0x3ebb34,'*Remove\x20format:*\x20%0',o(_0x3ebb34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x28c71c['oldValue']+')'};}}}}class mt extends _0x16371d{['afterInit'](){const _0x2d7224=this['editor'];if(!_0x2d7224['plugins']['has']('PageBreakEditing'))return;_0x2d7224['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24a1e7=_0x2d7224['plugins']['get']('TrackChangesEditing'),_0x141d90=_0x2d7224['locale'];_0x24a1e7['descriptionFactory']['registerElementLabel']('pageBreak',_0x52bdee=>o(_0x141d90,'ELEMENT_PAGE_BREAK',_0x52bdee));}}class dt extends _0x16371d{['afterInit'](){const _0x1f306b=this['editor'];if(!_0x1f306b['plugins']['has']('Paragraph'))return;const _0x5ddcee=_0x1f306b['locale'],_0x35313e=_0x1f306b['plugins']['get']('TrackChangesEditing');_0x35313e['descriptionFactory']['registerElementLabel']('paragraph',_0x2fd400=>o(_0x5ddcee,'ELEMENT_PARAGRAPH',_0x2fd400)),_0x35313e['enableDefaultAttributesIntegration']('paragraph'),_0x35313e['enableCommand']('insertParagraph'),_0x1f306b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1f306b),{'priority':'highest'}),_0x1f306b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43ea15,_0x15be8d,_0x8c15e9)=>{_0x8c15e9['options']['showSuggestionHighlights']&&nr(_0x1f306b,{'showActiveMarker':!0x1})(_0x43ea15,_0x15be8d,_0x8c15e9);},{'priority':'highest'});const _0xcf3b41=_0x35313e['descriptionFactory'];_0xcf3b41['registerDescriptionCallback'](_0x270027=>{if('insertion'!==_0x270027['type'])return;const {start:_0x3e5538,end:_0x13788a}=_0x270027['getFirstRange']();if(!_0x3e5538['isTouching'](_0x13788a)||!_0x3e5538['nodeAfter'])return;const _0x508487=_0x1f306b['model']['schema'],_0x5eb498=_0x3e5538['nodeAfter'];return _0x508487['isBlock'](_0x5eb498)&&!_0x508487['isLimit'](_0x5eb498)&&_0x508487['checkChild'](_0x5eb498,'$text')?{'type':'insertion','content':o(_0x5ddcee,'*Insert:*\x20%0',_0xcf3b41['getItemLabel'](_0x5eb498,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35c5a0=this['editor'],_0x176abd=_0x35c5a0['locale'];_0x35c5a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3abfa4=>{if('formatBlock'!=_0x3abfa4['type'])return;const {data:_0x36df92}=_0x3abfa4;return _0x36df92&&'paragraph'==_0x36df92['commandName']?{'type':'format','content':o(_0x176abd,'*Change\x20to:*\x20%0',o(_0x176abd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3ebd73,{showActiveMarker:_0x6f0002=!0x0}={}){return(_0x181b46,_0x20c956,_0x2fdb04)=>{const _0x55387a=_0x3ebd73['plugins']['get']('TrackChangesEditing'),_0x5a0c6f=_0x20c956['markerRange']['start'],_0x43bf88=_0x20c956['markerRange']['end'],_0x4ed886=_0x3ebd73['model']['schema'];if(!_0x5a0c6f['isTouching'](_0x43bf88)||!_0x5a0c6f['nodeAfter'])return;const _0x561655=_0x5a0c6f['nodeAfter'];if(_0x4ed886['isBlock'](_0x561655)&&!_0x4ed886['isLimit'](_0x561655)&&_0x4ed886['checkChild'](_0x561655,'$text')){if(!_0x2fdb04['consumable']['consume'](_0x20c956['markerRange'],_0x181b46['name']))return;const _0x37d766=_0x2fdb04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4ac1c4=_0x2fdb04['mapper']['toViewPosition'](_0x43bf88);_0x6f0002&&_0x55387a['activeMarkers']['includes'](_0x20c956['markerName'])&&_0x2fdb04['writer']['addClass']('ck-suggestion-marker--active',_0x37d766),_0x2fdb04['writer']['insert'](_0x4ac1c4,_0x37d766),_0x2fdb04['mapper']['bindElementToMarker'](_0x37d766,_0x20c956['markerName']);}};}class pt extends _0x16371d{['afterInit'](){const _0x32c024=this['editor'];if(!_0x32c024['plugins']['has']('RemoveFormatEditing'))return;_0x32c024['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49e245=this['editor'];_0x49e245['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f284=>{if('formatBlock'!=_0x53f284['type']&&'formatInline'!=_0x53f284['type'])return;const {data:_0x1962df}=_0x53f284;return _0x1962df&&'removeFormat'==_0x1962df['commandName']?{'type':'format','content':o(_0x49e245['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x16371d{['afterInit'](){const _0x4c0a03=this['editor'];if(!_0x4c0a03['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5f316d=_0x4c0a03['plugins']['get']('TrackChangesEditing');_0x5f316d['enableCommand']('goToPreviousRestrictedEditingException'),_0x5f316d['enableCommand']('goToNextRestrictedEditingException');const _0x3af6b1=_0x4c0a03['plugins']['get']('RestrictedEditingModeEditing');_0x3af6b1['enableCommand']('trackChanges'),_0x3af6b1['enableCommand']('acceptSuggestion'),_0x3af6b1['enableCommand']('discardSuggestion'),_0x3af6b1['enableCommand']('acceptAllSuggestions'),_0x3af6b1['enableCommand']('discardAllSuggestions'),_0x3af6b1['enableCommand']('acceptSelectedSuggestions'),_0x3af6b1['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x16371d{static get['requires'](){return[_0x5406cc];}['init'](){const _0x4ae660=this['editor'],_0x2186d5=_0x4ae660['plugins']['get']('TrackChangesEditing');_0x2186d5['enableCommand']('shiftEnter'),_0x4ae660['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4ae660),{'priority':'high'}),_0x4ae660['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4ae660),{'priority':'high'}),_0x4ae660['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27e639,_0x2c1026,_0x3e6070)=>{_0x3e6070['options']['showSuggestionHighlights']&&de(_0x4ae660,{'showActiveMarker':!0x1})(_0x27e639,_0x2c1026,_0x3e6070);}),_0x2186d5['descriptionFactory']['registerElementLabel']('softBreak',_0x36f7b7=>o(_0x4ae660['locale'],'ELEMENT_LINE_BREAK',_0x36f7b7));}}function de(_0x1fdfb7,{showActiveMarker:_0x28f27c=!0x0}={}){return(_0x5a1c97,_0x13fbed,_0x4c81ea)=>{const _0x5ab417=_0x1fdfb7['plugins']['get']('TrackChangesEditing');if(!_0x4c81ea['consumable']['test'](_0x13fbed['markerRange'],_0x5a1c97['name']))return;const _0x1e564e=_0x1fdfb7['model'];for(const _0xb0e10e of _0x13fbed['markerRange']['getItems']()){if(!_0xb0e10e['is']('element','softBreak'))continue;const _0x3fe903='deletion'==_0x13fbed['markerName']['split'](':')[0x1]?'merge':'split',_0x557c56=_0x4c81ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3fe903}),_0x5890f2=_0x4c81ea['mapper']['toViewPosition'](_0x1e564e['createPositionBefore'](_0xb0e10e));_0x28f27c&&_0x5ab417['activeMarkers']['includes'](_0x13fbed['markerName'])&&_0x4c81ea['writer']['addClass']('ck-suggestion-marker--active',_0x557c56),_0x4c81ea['writer']['insert'](_0x5890f2,_0x557c56),_0x4c81ea['mapper']['bindElementToMarker'](_0x557c56,_0x13fbed['markerName']);}};}class wt extends _0x16371d{['afterInit'](){const _0x515665=this['editor'],_0x3c7795=_0x515665['model'],_0x3a5312=_0x515665['locale'];if(!_0x515665['plugins']['has']('StandardEditingModeEditing'))return;const _0x264703=_0x515665['plugins']['get']('TrackChangesEditing'),_0x15a885='restrictedEditingException',_0xe93248=_0x515665['commands']['get'](_0x15a885);_0x264703['enableCommand'](_0x15a885,(_0x27cabe,_0xbe9838={})=>{const _0x1b590a=_0x3c7795['document']['selection'];if(_0x1b590a['isCollapsed'])return void _0x27cabe(_0xbe9838);const _0x5871d1=void 0x0!==_0xbe9838['forceValue']?_0xbe9838['forceValue']:!_0xe93248['value'];_0x3c7795['change'](()=>{const _0x332570=Array['from'](_0x1b590a['getRanges']());for(const _0x3f83ff of _0x332570){const _0x41f8af=_0x5871d1?[_0x3f83ff]:io(_0x15a885,_0x3f83ff,_0x3c7795);for(const _0x1aa37b of _0x41f8af)_0x264703['markInlineFormat'](_0x1aa37b,{'commandName':_0x15a885,'commandParams':[{'forceValue':_0x5871d1}]});}});}),_0x264703['descriptionFactory']['registerDescriptionCallback'](_0x3150fe=>{if('formatBlock'!=_0x3150fe['type']&&'formatInline'!=_0x3150fe['type'])return;const {data:_0x55db98}=_0x3150fe;return _0x55db98&&_0x55db98['commandName']==_0x15a885?_0x55db98['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a5312,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3a5312,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x16371d{['afterInit'](){const _0x7539bb=this['editor'];if(!_0x7539bb['plugins']['has']('Style')||!_0x7539bb['plugins']['has']('DataSchema'))return;const _0xca823d=_0x7539bb['plugins']['get']('TrackChangesEditing'),_0x50b0a1=_0x7539bb['locale'],_0x1c1405=_0x7539bb['config']['get']('style')||{},_0x29daf8=_0x7539bb['plugins']['get']('GeneralHtmlSupport'),_0x2e0e81=_0x7539bb['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7539bb['plugins']['get']('DataSchema'),_0x1c1405['definitions']);_0xca823d['enableDefaultAttributesIntegration']('style');const _0x55eec3=new Set();for(const _0x5319f2 of _0x2e0e81['block']){const _0x35aa00=_0x29daf8['getGhsAttributeNameForElement'](_0x5319f2['element']);_0x55eec3['add'](_0x35aa00);}const _0x216991=new Set();for(const _0x4feb46 of _0x2e0e81['inline']){const _0x273640=_0x29daf8['getGhsAttributeNameForElement'](_0x4feb46['element']);_0x216991['add'](_0x273640);for(const _0x20af0d of _0x4feb46['ghsAttributes'])_0x216991['add'](_0x20af0d);}for(const _0x139b24 of _0x55eec3)_0xca823d['registerBlockAttribute'](_0x139b24),_0xca823d['descriptionFactory']['registerAttributeLabel'](_0x139b24,o(_0x50b0a1,'FORMAT_STYLE'));for(const _0x5bc4a9 of _0x216991)_0xca823d['registerInlineAttribute'](_0x5bc4a9),_0xca823d['descriptionFactory']['registerAttributeLabel'](_0x5bc4a9,o(_0x50b0a1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9900=this['editor'],_0xc47628=_0x4d9900['locale'];_0x4d9900['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cd822=>{if('formatBlock'!=_0x3cd822['type']&&'formatInline'!=_0x3cd822['type'])return;const {data:_0x530250}=_0x3cd822;return _0x530250&&'style'===_0x530250['commandName']?_0x530250['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc47628,'*Set\x20format:*\x20%0',_0x530250['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc47628,'*Remove\x20format:*\x20%0',_0x530250['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x16371d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ade94){super(_0x1ade94),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x506265=this['editor'],_0x5bc3ee=_0x506265['model']['document']['selection'];if(!_0x506265['plugins']['has']('TableEditing'))return;const _0x50a85a=_0x506265['locale'],_0x149c88=_0x506265['plugins']['get']('TrackChangesEditing'),_0x472023=_0x506265['plugins']['get']('TableUtils');_0x149c88['descriptionFactory']['registerElementLabel']('table',_0x3b5f5c=>o(_0x50a85a,'ELEMENT_TABLE',_0x3b5f5c)),this['_setupColumnsRowsFixing'](),_0x149c88['enableCommand']('insertTable'),_0x149c88['enableCommand']('selectTableRow'),_0x149c88['enableCommand']('selectTableColumn');for(const _0x21b00e of['insertTableRowAbove','insertTableRowBelow']){const _0x2d22c7=_0x506265['commands']['get'](_0x21b00e);_0x149c88['enableCommand'](_0x21b00e,_0x62b386=>{_0x506265['model']['change'](_0x337646=>{_0x62b386();const _0x6ad049='above'===_0x2d22c7['order'],_0x375d41=_0x472023['getSelectionAffectedTableCells'](_0x5bc3ee),_0x503bff=_0x472023['getRowIndexes'](_0x375d41),_0x3a61ad=_0x6ad049?_0x503bff['first']-0x1:_0x503bff['last']+0x1,_0x2bb991=_0x375d41[0x0]['findAncestor']('table'),_0x3da915=_0x472023['createTableWalker'](_0x2bb991,{'startRow':_0x3a61ad,'endRow':_0x3a61ad}),_0x1eb0ea=Array['from'](_0x3da915)['map'](_0x26d4b4=>_0x337646['createRangeOn'](_0x26d4b4['cell']));_0x149c88['markMultiRangeInsertion'](_0x1eb0ea,'tableRow');});});}for(const _0x266131 of['insertTableColumnLeft','insertTableColumnRight']){const _0x12e1c0=_0x506265['commands']['get'](_0x266131);_0x149c88['enableCommand'](_0x266131,_0x33b01e=>{_0x506265['model']['change'](_0x5e990f=>{_0x33b01e();const _0x252e8d='left'===_0x12e1c0['order'],_0x23bfd3=_0x472023['getSelectionAffectedTableCells'](_0x5bc3ee),_0x4747f9=_0x472023['getColumnIndexes'](_0x23bfd3),_0x412bd2=_0x252e8d?_0x4747f9['first']-0x1:_0x4747f9['last']+0x1,_0x4ba3ed=_0x23bfd3[0x0]['findAncestor']('table'),_0x1c9590=_0x472023['createTableWalker'](_0x4ba3ed,{'startRow':0x0,'column':_0x412bd2,'includeAllSlots':!0x1}),_0x407b5e=Array['from'](_0x1c9590)['map'](_0x264738=>_0x5e990f['createRangeOn'](_0x264738['cell']));_0x149c88['markMultiRangeInsertion'](_0x407b5e,'tableColumn');});});}for(const _0x2889e4 of['removeTableRow','removeTableColumn']){const _0x42b013=_0x2889e4['substr'](0xb),_0xb84f3f=_0x42b013['toLowerCase'](),_0x265645=_0xb84f3f['substr'](0x0,0x3)+'span',_0x591983='table'+_0x42b013,_0x32a97e='min'+_0x42b013,_0x335d06='max'+_0x42b013;_0x149c88['enableCommand'](_0x2889e4,()=>{_0x506265['model']['change'](_0x4af68c=>{const _0x103246=_0x472023['getSelectionAffectedTableCells'](_0x5bc3ee),_0x233beb=_0x103246[0x0]['findAncestor']('table');let _0x1ff00f;if('removeTableRow'==_0x2889e4){const _0x1ab9b4=_0x472023['getRowIndexes'](_0x103246);_0x1ff00f={'startRow':_0x1ab9b4['first'],'endRow':_0x1ab9b4['last'],'includeAllSlots':!0x0};}else{const _0x314286=_0x472023['getColumnIndexes'](_0x103246);_0x1ff00f={'startColumn':_0x314286['first'],'endColumn':_0x314286['last'],'includeAllSlots':!0x0};}const _0x3d2a06=_0x472023['createTableWalker'](_0x233beb,_0x1ff00f),_0xd56e=Array['from'](_0x3d2a06)['map'](({cell:_0x160ea8})=>_0x160ea8),_0x5c9b2c=Ee(_0xd56e['filter'](_0xcd24e1=>_0xcd24e1['hasAttribute'](_0x265645))),_0x4dd095=Ee(_0xd56e['filter'](_0x18b2c7=>!_0x18b2c7['hasAttribute'](_0x265645)))['map'](_0x2963a1=>_0x4af68c['createRangeOn'](_0x2963a1)),_0x37f086=_0x149c88['markMultiRangeDeletion'](_0x4dd095,_0x591983);if(_0x37f086&&('tableRow'==_0x37f086['subType']||'tableColumn'==_0x37f086['subType'])){const _0x222f1b=this['_getSuggestionCoords'](_0x37f086);for(const _0x42012a of _0x5c9b2c){const _0x50da60=_0x4af68c['createRangeOn'](_0x42012a),_0x3eb712=_0x472023['getCellLocation'](_0x42012a),_0x4ebe63=_0x42012a['getAttribute'](_0x265645)-0x1,_0x290c7a=_0x222f1b[_0x32a97e],_0x126825=_0x222f1b[_0x335d06];_0x290c7a<=_0x3eb712[_0xb84f3f]&&_0x3eb712[_0xb84f3f]+_0x4ebe63<=_0x126825&&_0x37f086['addRange'](_0x50da60);}}});});}function _0x4270be(_0x148d6c){const _0x481304=Array['from'](_0x5bc3ee['getRanges']())['map'](_0x324903=>_0x218be5['fromRange'](_0x324903));_0x506265['model']['change'](_0x1bdb15=>{const _0x21f990=_0x1bdb15['batch'];_0x148d6c=_0x148d6c['filter'](_0x3ed51c=>'$graveyard'!=_0x3ed51c['root']['rootName']),_0x1bdb15['setSelection'](_0x148d6c),_0x506265['commands']['get']('removeTableRow')['refresh'](),_0x506265['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x506265['model']['enqueueChange'](()=>{_0x506265['model']['enqueueChange'](_0x21f990,_0x379a96=>{const _0x245647=_0x481304['filter'](_0xebba01=>'$graveyard'!=_0xebba01['root']['rootName']);_0x245647['length']>0x0&&_0x379a96['setSelection'](_0x245647);for(const _0xa481cc of _0x481304)_0xa481cc['detach']();});});});}function _0x481d8c(_0x5e990e){_0x506265['model']['change'](_0x2645da=>{const _0x44d3e8=Array['from'](_0x5bc3ee['getRanges']())['map'](_0x52caf0=>_0x218be5['fromRange'](_0x52caf0)),_0x2f38e7=[];for(const _0x5dcc77 of _0x5e990e)for(const _0x5ab8ca of _0x5dcc77['getItems']({'shallow':!0x0}))_0x2f38e7['push'](_0x5ab8ca);for(const _0x254c87 of _0x2f38e7)'$graveyard'!=_0x254c87['root']['rootName']&&(_0x2645da['setSelection'](_0x2645da['createPositionAt'](_0x254c87,0x0)),_0x506265['commands']['get']('removeTableColumn')['refresh'](),_0x506265['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2bd969=_0x44d3e8['filter'](_0x4ba638=>'$graveyard'!=_0x4ba638['root']['rootName']);_0x2bd969['length']>0x0&&_0x2645da['setSelection'](_0x2bd969);for(const _0x35bf51 of _0x44d3e8)_0x35bf51['detach']();});}function _0x5bb1e5(_0xa9a6c0,_0x257db){return _0x257db['every'](_0x5869de=>_0xa9a6c0['some'](_0x5539eb=>_0x5539eb['end']['isEqual'](_0x5869de['start'])||_0x5869de['end']['isEqual'](_0x5539eb['start'])));}function _0x5db349(_0x3c54c1,_0x32866a){return!_0x3c54c1['some'](_0x5acee1=>_0x32866a['some'](_0x5237e3=>_0x5acee1['isIntersecting'](_0x5237e3)))&&_0x3c54c1['some'](_0x46e077=>_0x32866a['some'](_0x59e283=>_0x46e077['end']['isTouching'](_0x59e283['start'])));}_0x506265['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x218ade,_0x13a9b9,_0x550f2d)=>{if(!_0x550f2d['options']['showSuggestionHighlights'])return;const _0x236a16=_0x13a9b9['item'];if(!_0x236a16)return;const _0x695d68=_0x550f2d['mapper']['toViewElement'](_0x236a16);function _0x5e90eb(_0x97665c){return Array['isArray'](_0x97665c)?_0x97665c:[_0x97665c];}_0x695d68&&'tableCell'===_0x236a16['name']&&_0x2b8f92(_0x695d68,_0x550f2d['writer'],(_0x321bbb,_0x4b85f2,_0x4b47d3)=>_0x4b47d3['addClass'](_0x5e90eb(_0x4b85f2['classes']),_0x321bbb),(_0x5e0f00,_0x19b7c0,_0x64c8ea)=>_0x64c8ea['removeClass'](_0x5e90eb(_0x19b7c0['classes']),_0x5e0f00));},{'priority':'highest'}),_0x149c88['descriptionFactory']['registerDescriptionCallback'](_0x10be0e=>{if('insertion'!=_0x10be0e['type']&&'deletion'!=_0x10be0e['type'])return;const _0xff48e2=_0x10be0e['getContainedElement']();if(null!=_0xff48e2&&_0xff48e2['is']('element','table')){if('insertion'==_0x10be0e['type']){const _0x1a62cd=_0x10be0e['getItems']()['filter'](_0x5a4248=>_0x5a4248['is']('$textProxy'))['map'](_0x555c35=>_0x555c35['data']);if(_0x1a62cd['length'])return{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a62cd['join']('\x20')+'\x22'))};}if('deletion'==_0x10be0e['type']){const _0x416dcc=_0x10be0e['getItems']()['filter'](_0x2c907a=>_0x2c907a['is']('$textProxy'))['map'](_0x1930b0=>_0x1930b0['data']);if(_0x416dcc['length'])return{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x416dcc['join']('\x20')+'\x22'))};}}}),_0x149c88['descriptionFactory']['registerDescriptionCallback'](_0xa75a46=>{if('tableRow'==_0xa75a46['subType']){const _0x2713ab=_0xa75a46['getItems']()['filter'](_0x44514c=>_0x44514c['is']('$textProxy'))['map'](_0x44c484=>_0x44c484['data']),_0x5d54a2=this['_getSuggestionCoords'](_0xa75a46),_0x367cae=_0x5d54a2['maxRow']-_0x5d54a2['minRow']+0x1;if('insertion'==_0xa75a46['type'])return _0x2713ab['length']?{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x367cae,'\x22'+_0x2713ab['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW',_0x367cae))};if('deletion'==_0xa75a46['type'])return _0x2713ab['length']?{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x367cae,'\x22'+_0x2713ab['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW',_0x367cae))};}if('tableColumn'==_0xa75a46['subType']){const _0x2c8b59=_0xa75a46['getItems']()['filter'](_0x5fe706=>_0x5fe706['is']('$textProxy'))['map'](_0x4c66a1=>_0x4c66a1['data']),_0x1ec519=this['_getSuggestionCoords'](_0xa75a46),_0x40f4a2=_0x1ec519['maxColumn']-_0x1ec519['minColumn']+0x1;if('insertion'==_0xa75a46['type'])return _0x2c8b59['length']?{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40f4a2,'\x22'+_0x2c8b59['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN',_0x40f4a2))};if('deletion'==_0xa75a46['type'])return _0x2c8b59['length']?{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40f4a2,'\x22'+_0x2c8b59['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN',_0x40f4a2))};}}),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4270be),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4270be),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x481d8c),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x481d8c),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bb1e5),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bb1e5),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5db349),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5db349);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4a69de=this['editor'],_0x16ff09=_0x4a69de['model']['document']['selection'];return(_0x1bf9ab,_0x50cbbe)=>{_0x4a69de['model']['change'](_0x4ee3d7=>{const {commandName:_0x9a66a9,commandParams:_0x5858fa}=_0x50cbbe;let _0x7250d=_0x1bf9ab[0x0]['end']['nodeBefore'];_0x5858fa&&_0x5858fa[0x0]&&!0x1===_0x5858fa[0x0]['forceValue']&&(_0x7250d=_0x1bf9ab[0x0]['start']['nodeAfter']);const _0x165936=_0x4ee3d7['createRangeIn'](_0x7250d);if('$graveyard'==_0x165936['root']['rootName'])return;const _0x5e8379=Array['from'](_0x16ff09['getRanges']())['map'](_0x4689cb=>_0x218be5['fromRange'](_0x4689cb));_0x4ee3d7['setSelection'](_0x165936),_0x4a69de['commands']['get'](_0x9a66a9)['refresh'](),_0x5858fa['push']({'forceDefaultExecution':!0x0}),_0x4a69de['execute'](_0x9a66a9,..._0x5858fa);const _0x1ff0c2=_0x5e8379['filter'](_0x366eae=>'$graveyard'!=_0x366eae['root']['rootName']);_0x1ff0c2['length']>0x0&&_0x4ee3d7['setSelection'](_0x1ff0c2);for(const _0x57efa1 of _0x5e8379)_0x57efa1['detach']();});};}['_getCoordsForCells'](_0x5aaf6a){const _0x666a90=this['editor']['plugins']['get']('TableUtils');let _0x301649=Number['MAX_SAFE_INTEGER'],_0x107760=Number['MIN_SAFE_INTEGER'],_0x525fa6=Number['MAX_SAFE_INTEGER'],_0x4c2195=Number['MIN_SAFE_INTEGER'];for(const _0x48ab00 of _0x5aaf6a){if('$graveyard'==_0x48ab00['root']['rootName'])continue;const {row:_0x2943e1,column:_0x127d24}=_0x666a90['getCellLocation'](_0x48ab00),_0x50df5b=_0x48ab00['hasAttribute']('rowspan')?_0x48ab00['getAttribute']('rowspan')-0x1:0x0,_0x2cae4d=_0x48ab00['hasAttribute']('colspan')?_0x48ab00['getAttribute']('colspan')-0x1:0x0;_0x301649=_0x2943e1<_0x301649?_0x2943e1:_0x301649,_0x107760=_0x2943e1+_0x50df5b>_0x107760?_0x2943e1+_0x50df5b:_0x107760,_0x525fa6=_0x127d24<_0x525fa6?_0x127d24:_0x525fa6,_0x4c2195=_0x127d24+_0x2cae4d>_0x4c2195?_0x127d24+_0x2cae4d:_0x4c2195;}return{'minRow':_0x301649,'maxRow':_0x107760,'minColumn':_0x525fa6,'maxColumn':_0x4c2195};}['_setupColumnsRowsFixing'](){const _0x3e3124=this['editor'],_0x1e034c=_0x3e3124['plugins']['get']('TrackChangesEditing'),_0x145a8d=_0x3e3124['plugins']['get']('TableUtils');_0x3e3124['model']['document']['on']('change:data',()=>{const _0x3c2d4f=Array['from'](_0x3e3124['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5086a7,data:_0x2ade9}of _0x3c2d4f){const {group:_0x336556,id:_0x7c5184,subType:_0x16e54f}=_0x1e034c['_splitMarkerName'](_0x5086a7);if('suggestion'!=_0x336556)continue;if(null!=_0x2ade9['oldRange'])continue;const _0x28ce6a=_0x1e034c['getSuggestion'](_0x7c5184);this['_tablePostFixingSubtypes']['includes'](_0x16e54f)&&this['_tableSuggestions']['add'](_0x28ce6a);}},{'priority':'low'});const _0x48fc89=(_0x1bed2c,_0xdae753)=>{let _0x4500c8=!0x1;const _0x3ca589=_0xdae753['createRangeOn'](_0x1bed2c),_0x4b9afc=_0x1bed2c['findAncestor']('table'),_0x111e40=_0x145a8d['getCellLocation'](_0x1bed2c);for(const _0xd5ae38 of this['_tableSuggestions']){const _0x4f01e1=_0xd5ae38['subType'],_0x5104ad=_0x4f01e1['startsWith']('tablePaste'),_0x1ca175=_0x4f01e1['substr'](_0x5104ad?0xa:0x5),_0x44c2c5=_0x1ca175['toLowerCase'](),_0xd55074=_0x44c2c5['substr'](0x0,0x3)+'span',_0x5630b7='min'+_0x1ca175,_0x5ca9ea='max'+_0x1ca175;if(!_0xd5ae38['isInContent'])continue;if(_0x4b9afc!=_0xd5ae38['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xd5ae38['isIntersectingWithRange'](_0x3ca589))continue;const _0x5a189b=_0x1bed2c['hasAttribute'](_0xd55074)?_0x1bed2c['getAttribute'](_0xd55074)-0x1:0x0,_0x47f2fa=this['_getSuggestionCoords'](_0xd5ae38),_0x4c1072=_0x47f2fa[_0x5630b7],_0x537044=_0x47f2fa[_0x5ca9ea];_0x4c1072<=_0x111e40[_0x44c2c5]&&_0x111e40[_0x44c2c5]+_0x5a189b<=_0x537044&&(_0xd5ae38['addRange'](_0x3ca589),_0x4500c8=!0x0);}return _0x4500c8;};_0x3e3124['model']['document']['registerPostFixer'](_0x337dc4=>{let _0x349082=!0x1;for(const _0x5cff48 of _0x3e3124['model']['document']['differ']['getChanges']())if('insert'==_0x5cff48['type']){if('tableRow'==_0x5cff48['name']){for(const _0x192c77 of _0x5cff48['position']['nodeAfter']['getChildren']())_0x349082=_0x349082||_0x48fc89(_0x192c77,_0x337dc4);}else'tableCell'==_0x5cff48['name']&&(_0x349082=_0x349082||_0x48fc89(_0x5cff48['position']['nodeAfter'],_0x337dc4));}return _0x349082;});}['_getSuggestionCoords'](_0x36d294){return this['_getCoordsForCells'](_0x36d294['getRanges']()['map'](_0x431548=>_0x431548['start']['nodeAfter']));}}function Ee(_0x4ca235){return Array['from'](new Set(_0x4ca235)['values']());}class St extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x24ed42=this['editor'],_0x54eb03=_0x24ed42['model']['document']['selection'],_0x1fdcf6=_0x24ed42['locale'];if(!_0x24ed42['plugins']['has']('TableEditing'))return;const _0x2bb423=_0x24ed42['plugins']['get']('TrackChangesEditing'),_0x3c90a5=_0x24ed42['plugins']['get']('TableUtils'),_0x57f038=_0x24ed42['plugins']['get'](jt);_0x57f038['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2bb423['enableCommand']('mergeTableCells',()=>{const _0x5a7539=_0x3c90a5['getSelectionAffectedTableCells'](_0x24ed42['model']['document']['selection']);_0x24ed42['model']['change'](()=>{_0x2bb423['markMultiRangeBlockFormat'](_0x5a7539,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x24ed42['commands']['get']('mergeTableCells')['on']('execute',(_0x4789f7,_0x3adfd5)=>{_0x24ed42['commands']['get']('trackChanges')['value']&&(_0x3adfd5['length']>0x0&&_0x3adfd5[_0x3adfd5['length']-0x1]&&_0x3adfd5[_0x3adfd5['length']-0x1]['forceDefaultExecution']||_0x2bb423['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4789f7['stop']());},{'priority':'highest'});for(const _0x228f34 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x563a46=_0x24ed42['commands']['get'](_0x228f34);_0x2bb423['enableCommand'](_0x228f34,()=>{const _0x449e03=_0x24ed42['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4cb694=>_0x4cb694['is']('element','tableCell')),_0x16fa28=_0x563a46['value'];_0x24ed42['model']['change'](()=>{_0x2bb423['markMultiRangeBlockFormat']([_0x449e03,_0x16fa28],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2eef10 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3b0a02=_0x24ed42['commands']['get'](_0x2eef10);_0x2bb423['enableCommand'](_0x2eef10,()=>{const _0x577ce5=_0x3c90a5['getSelectionAffectedTableCells'](_0x24ed42['model']['document']['selection'])[0x0],_0x5ba047=_0x577ce5['findAncestor']('table'),{column:_0x4b1f85,row:_0x545b0c}=_0x3c90a5['getCellLocation'](_0x577ce5);let _0x3b4434=[];if('horizontally'==_0x3b0a02['direction']){const _0x2af99f=_0x3c90a5['createTableWalker'](_0x5ba047,{'startRow':_0x545b0c,'endRow':_0x545b0c,'includeAllSlots':!0x0});_0x3b4434=Array['from'](_0x2af99f)['map'](_0x5d8667=>_0x5d8667['cell']);}else{const _0x4a8395=_0x3c90a5['createTableWalker'](_0x5ba047,{'column':_0x4b1f85,'includeAllSlots':!0x0});_0x3b4434=Array['from'](_0x4a8395)['map'](_0x340d96=>_0x340d96['cell']);}_0x24ed42['model']['change'](_0x24146f=>{_0x2bb423['markBlockFormat'](_0x24146f['createRangeOn'](_0x577ce5),{'commandName':_0x2eef10,'commandParams':[]},_0x3b4434,_0x2eef10);});});}_0x2bb423['descriptionFactory']['registerDescriptionCallback'](_0x28b9c7=>{if('formatBlock'!=_0x28b9c7['type']&&'formatInline'!=_0x28b9c7['type'])return;const {data:_0x1da2cd}=_0x28b9c7;return _0x1da2cd&&'mergeTableCells'==_0x1da2cd['commandName']?{'type':'format','content':o(_0x1fdcf6,'*Merge\x20cells*')}:void 0x0;}),_0x2bb423['descriptionFactory']['registerDescriptionCallback'](_0x24ad66=>{if('formatBlock'!=_0x24ad66['type']&&'formatInline'!=_0x24ad66['type'])return;const {data:_0x34597a}=_0x24ad66;return _0x34597a?'splitTableCellVertically'==_0x34597a['commandName']?{'type':'format','content':o(_0x1fdcf6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34597a['commandName']?{'type':'format','content':o(_0x1fdcf6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5ba62b=_0x57f038['_acceptFormatSuggestionCallbackFactory']();for(const _0x406a12 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2bb423['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x406a12,'accept',_0x5ba62b);for(const _0x8e2623 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2bb423['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8e2623,'accept',_0x5ba62b);_0x2bb423['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x301b17=>{_0x24ed42['model']['change'](_0x2dc532=>{const _0x55f99f=Array['from'](_0x54eb03['getRanges']())['map'](_0x28df8c=>_0x218be5['fromRange'](_0x28df8c));_0x2dc532['setSelection'](_0x301b17),_0x24ed42['commands']['get']('mergeTableCells')['refresh'](),_0x24ed42['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x38367f=_0x55f99f['filter'](_0x3568ef=>'$graveyard'!=_0x3568ef['root']['rootName']);_0x38367f['length']>0x0&&_0x2dc532['setSelection'](_0x38367f);for(const _0x4a72f5 of _0x55f99f)_0x4a72f5['detach']();});});for(const _0x35c163 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1310d5=_0x24ed42['commands']['get'](_0x35c163);_0x1310d5['on']('set:isEnabled',(_0x4ec1cc,_0x31fde3,_0x45cbb3)=>{if(_0x45cbb3){const _0x1d9c64=_0x24ed42['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x158aa7=>_0x158aa7['is']('element','tableCell'));this['_areMergableCells'](_0x1310d5['value'],_0x1d9c64)||(_0x4ec1cc['return']=!0x1,_0x4ec1cc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x56dd01=this['editor']['commands']['get']('mergeTableCells'),_0x2b9f38=this['editor']['plugins']['get']('TableUtils');if(!_0x56dd01['isEnabled'])return!0x1;const _0xed400=_0x2b9f38['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4f6d4a of _0xed400)for(const _0x349f36 of _0xed400)if(_0x4f6d4a!=_0x349f36&&!this['_areMergableCells'](_0x4f6d4a,_0x349f36))return!0x1;return!0x0;}['_areMergableCells'](_0x50b564,_0x40ebad){const _0x341d64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fac39=this['editor']['model']['createRangeOn'](_0x50b564),_0x2b88e7=this['editor']['model']['createRangeOn'](_0x40ebad),_0x36cb52=new Set(),_0x59caae=new Set();for(const _0x25632f of _0x341d64['getSuggestions']())if(('insertion'==_0x25632f['type']||'deletion'==_0x25632f['type']||'mergeTableCells'==_0x25632f['subType'])&&_0x25632f['isInContent']){for(const _0x1d1df0 of _0x25632f['getRanges']())_0x1d1df0['containsRange'](_0x4fac39,!0x0)&&_0x36cb52['add'](_0x25632f['type']+':'+_0x25632f['author']['id']),_0x1d1df0['containsRange'](_0x2b88e7,!0x0)&&_0x59caae['add'](_0x25632f['type']+':'+_0x25632f['author']['id']);}if(_0x36cb52['size']!=_0x59caae['size'])return!0x1;for(const _0xd5accc of _0x36cb52)if(!_0x59caae['has'](_0xd5accc))return!0x1;return!0x0;}}class At extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x55649f=this['editor'];if(!_0x55649f['plugins']['has']('TableEditing'))return;const _0xcc3a4b=_0x55649f['locale'],_0x11ba6d=_0x55649f['plugins']['get']('TrackChangesEditing');_0x11ba6d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x11ba6d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x11ba6d['registerBlockAttribute']('headingRows'),_0x11ba6d['registerBlockAttribute']('headingColumns'),_0x11ba6d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xcc3a4b,'FORMAT_HEADER_ROW')),_0x11ba6d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xcc3a4b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5170ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21d1d3=this['editor']['plugins']['get']('TableUtils'),_0x8d2aea=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1cf834({showActiveMarker:_0x237758=!0x0,setDataAttribute:_0x387249=!0x0}={}){return(_0x13370a,_0xacb149,_0xb3ee8)=>{const {type:_0x139aaf,id:_0x51d7ed}=_0x5170ec['_splitMarkerName'](_0xacb149['markerName']),_0x3515ab=_0x5170ec['getSuggestion'](_0x51d7ed),_0x46477d=_0x3515ab['data'];if('formatBlock'!=_0x3515ab['type']||!_0x46477d||'setTableColumnHeader'!=_0x46477d['commandName'])return;if(_0xacb149['item'])return void _0x13370a['stop']();if(!_0xb3ee8['consumable']['consume'](_0xacb149['markerRange'],_0x13370a['name']))return;const _0x4e03bd=_0xacb149['markerRange']['start']['nodeAfter'],_0x2ce540=_0xacb149['markerRange']['end']['nodeBefore'],_0x346ff0=_0x4e03bd['parent']['parent'],{column:_0x2d2999}=_0x21d1d3['getCellLocation'](_0x4e03bd),{column:_0x52184e}=_0x21d1d3['getCellLocation'](_0x2ce540);for(let _0x2f9e4a=_0x2d2999;_0x2f9e4a<=_0x52184e;_0x2f9e4a++){const _0x99043c=_0x21d1d3['createTableWalker'](_0x346ff0,{'column':_0x2f9e4a,'includeAllSlots':!0x1});for(const _0x19434b of _0x99043c){const _0xb23d57=_0x19434b['cell'],_0x21ec98=_0xb3ee8['mapper']['toViewElement'](_0xb23d57);_0xb3ee8['writer']['addClass']('ck-suggestion-marker-'+_0x139aaf,_0x21ec98),_0x387249&&_0xb3ee8['writer']['setAttribute']('data-suggestion',_0x51d7ed,_0x21ec98),_0xb3ee8['mapper']['bindElementToMarker'](_0x21ec98,_0xacb149['markerName']),_0x237758&&(_0x5170ec['activeMarkers']['includes'](_0xacb149['markerName'])?_0xb3ee8['writer']['addClass']('ck-suggestion-marker--active',_0x21ec98):_0xb3ee8['writer']['removeClass']('ck-suggestion-marker--active',_0x21ec98));}}};}_0x5170ec['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8d2aea),_0x5170ec['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8d2aea),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1cf834(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58bece,_0x1284cf,_0x2c3d1a)=>{_0x2c3d1a['options']['showSuggestionHighlights']&&_0x1cf834({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x58bece,_0x1284cf,_0x2c3d1a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x335eba,_0x4d6b83,_0x316555)=>{const {type:_0x4c1924,id:_0x33f3ca}=_0x5170ec['_splitMarkerName'](_0x4d6b83['markerName']),_0x4c8c7f=_0x5170ec['getSuggestion'](_0x33f3ca),_0xb4c064=_0x4c8c7f['data'];if('formatBlock'!=_0x4c8c7f['type']||!_0xb4c064||'setTableColumnHeader'!=_0xb4c064['commandName'])return;const _0x37a728=_0x316555['mapper']['markerNameToElements'](_0x4d6b83['markerName']);if(_0x37a728){for(const _0x2f10c0 of _0x37a728)_0x316555['writer']['removeClass']('ck-suggestion-marker-'+_0x4c1924,_0x2f10c0),_0x316555['writer']['removeClass']('ck-suggestion-marker--active',_0x2f10c0),_0x316555['writer']['removeAttribute']('data-suggestion',_0x2f10c0),_0x316555['mapper']['unbindElementFromMarkerName'](_0x2f10c0,_0x4d6b83['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2695a=this['editor'],_0x3f9fa9=_0xe2695a['locale'];function _0x389cdd(_0xb2d2cf){return{'type':'format','content':o(_0x3f9fa9,'*Format:*\x20%0',_0xb2d2cf)};}_0xe2695a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e13cf=>{if('formatBlock'!=_0x1e13cf['type'])return;const {data:_0x1b3465}=_0x1e13cf;if(_0x1b3465){if('setTableRowHeader'==_0x1b3465['commandName']){const _0x41b4a8=_0x1b3465['commandParams'][0x0]['forceValue'];return _0x389cdd(o(_0x3f9fa9,_0x41b4a8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1b3465['commandName']){const _0x52511d=_0x1b3465['commandParams'][0x0]['forceValue'];return _0x389cdd(o(_0x3f9fa9,_0x52511d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x17c299=>[_0x17c299,null]));class It extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x55fe6e=this['editor'];if(!_0x55fe6e['plugins']['has']('TableClipboard'))return;const _0x1b360b=_0x55fe6e['plugins']['get']('TrackChangesEditing'),_0x1a5ff4=_0x55fe6e['plugins']['get']('TableUtils'),_0x1df479=_0x55fe6e['plugins']['get'](jt),_0x2ced00=_0x55fe6e['plugins']['get']('TableClipboard');_0x1df479['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55fe6e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55fe6e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ad22b=null;_0x55fe6e['model']['on']('insertContent',(_0x22e608,_0x2c439a)=>{const [_0x455438,_0x7d7810]=_0x2c439a,_0x92032e=_0x2c439a[_0x2c439a['length']-0x1];_0x92032e&&_0x92032e['forceDefaultExecution']||_0x1b360b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x314559,_0x2197fc,_0x5b3861,_0x424e5d,_0x3c5f63){if(_0x2197fc&&!_0x2197fc['is']('documentSelection'))return!0x1;const _0x4190fb=_0x3c5f63['getTableIfOnlyTableInContent'](_0x314559,_0x5b3861);if(!_0x4190fb||!he(_0x4190fb,void 0x0,_0x424e5d))return!0x1;const _0x1949a2=_0x424e5d['getSelectionAffectedTableCells'](_0x5b3861['document']['selection']);if(!_0x1949a2['length'])return!0x1;const _0x3bb123=_0x1949a2[0x0]['findAncestor']('table'),_0x2e89b9=_0x424e5d['getRowIndexes'](_0x1949a2),_0x3c4665=_0x424e5d['getColumnIndexes'](_0x1949a2),_0x3bd8a9={'startRow':_0x2e89b9['first'],'endRow':_0x2e89b9['last'],'startColumn':_0x3c4665['first'],'endColumn':_0x3c4665['last']};return 0x1==_0x1949a2['length']&&(_0x3bd8a9['endRow']+=_0x424e5d['getRows'](_0x4190fb)-0x1,_0x3bd8a9['endColumn']+=_0x424e5d['getColumns'](_0x4190fb)-0x1),he(_0x3bb123,_0x3bd8a9,_0x424e5d);}(_0x455438,_0x7d7810,_0x55fe6e['model'],_0x1a5ff4,_0x2ced00)&&(_0x22e608['stop'](),_0x2ad22b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55fe6e['model']['change'](()=>{_0x55fe6e['model']['insertContent'](_0x2c439a[0x0],_0x2c439a[0x1],_0x2c439a[0x2],{'forceDefaultExecution':!0x0});const _0x334238=_0x4b80ff(),{rowInsertionRanges:_0x1fd255,columnInsertionRanges:_0x12450d,insertionRanges:_0x29d8d4,deletionRanges:_0x259ff9,cells:_0x50812c}=_0x2ad22b;_0x1fd255['length']&&_0x1b360b['markMultiRangeInsertion'](_0x1fd255,'tablePasteRow',{'tablePasteChainId':_0x334238}),_0x12450d['length']&&_0x1b360b['markMultiRangeInsertion'](_0x12450d,'tablePasteColumn',{'tablePasteChainId':_0x334238}),_0x29d8d4['length']&&(_0x1b360b['markMultiRangeInsertion'](_0x29d8d4,'tablePaste',{'tablePasteChainId':_0x334238,'skipNestingCheck':!0x0}),_0x29d8d4['forEach'](_0x1fabad=>_0x1fabad['detach']?.())),_0x259ff9['length']&&(_0x1b360b['markMultiRangeDeletion'](_0x259ff9,'tablePaste',{'tablePasteChainId':_0x334238,'skipNestingCheck':!0x0}),_0x259ff9['forEach'](_0x3ad4bf=>_0x3ad4bf['detach']?.()));const _0x3aef69=_0x1b360b['markMultiRangeBlockFormat'](_0x50812c['map'](({element:_0x311243})=>_0x311243),{'formatGroupId':_0x4b80ff()},[],'tablePasteCell',{'tablePasteChainId':_0x334238});if(_0x3aef69){const _0x199c20=_0x3aef69['getMarkers'](),_0x1b712f=[];for(const {element:_0x7094a1,attributes:_0x221711}of _0x50812c){if(!_0x221711)continue;const _0x3cbc34=_0x55fe6e['model']['createRangeOn'](_0x7094a1),_0x160a92=_0x199c20['find'](_0x529908=>_0x529908['getRange']()['isEqual'](_0x3cbc34));_0x160a92&&_0x1b712f['push']([_0x160a92['name'],_0x221711]);}_0x1b712f['length']&&_0x3aef69['setAttribute']('markerAttributes',Object['fromEntries'](_0x1b712f));}_0x2ad22b=null;}));},{'priority':_0x1135d8['high']+0xa}),_0x55fe6e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x451eef,_0x56733e)=>{const [_0x447e88,_0x22e93a,,_0x4b3082]=_0x56733e;if(!_0x2ad22b)return;_0x451eef['stop']();const _0x4dad5c=_0x447e88['cell'],_0x3b1f56=_0x22e93a,_0x4ca8c9=Pe(_0x4dad5c),_0x3f400c=Pe(_0x3b1f56);_0x451eef['return']=_0x4dad5c;let _0x5561dc=null,_0xb4caf2=null;if(_0x3f400c||_0x4ca8c9){if(_0x4ca8c9&&!_0x3f400c){_0x4b3082['remove'](_0x4dad5c['getChild'](0x0));for(const _0x20b2a8 of Array['from'](_0x3b1f56['getChildren']()))_0x4b3082['insert'](_0x20b2a8,_0x4dad5c,'end');const _0x5554e4=_0x2ad22b['rowInsertionIndexes']['includes'](_0x447e88['row']),_0x16b0c8=_0x2ad22b['columnInsertionIndexes']['includes'](_0x447e88['column']);_0x5554e4||_0x16b0c8||(_0x5561dc=_0x218be5['fromRange'](_0x4b3082['createRangeIn'](_0x4dad5c)));}else _0x3f400c&&!_0x4ca8c9&&(_0xb4caf2=_0x4b3082['createRangeIn'](_0x4dad5c));}else{const _0x1d9a17=_0x4b3082['createElement']('tableCellSuggestion'),_0x2689e5=_0x4b3082['createElement']('tableCellSuggestion');_0x4b3082['wrap'](_0x4b3082['createRangeIn'](_0x4dad5c),_0x2689e5),_0x4b3082['insert'](_0x1d9a17,_0x4dad5c,0x0);for(const _0x3848f3 of Array['from'](_0x3b1f56['getChildren']()))_0x4b3082['insert'](_0x3848f3,_0x1d9a17,'end');_0x5561dc=_0x218be5['fromRange'](_0x4b3082['createRangeOn'](_0x1d9a17)),_0xb4caf2=_0x218be5['fromRange'](_0x4b3082['createRangeOn'](_0x2689e5));}const _0x281465=Array['from'](_0x3b1f56['getAttributes']())['filter'](([_0x1ae63a])=>ge['includes'](_0x1ae63a));_0x2ad22b['cells']['push']({'element':_0x4dad5c,'attributes':_0x281465['length']?Object['fromEntries'](_0x281465):null}),_0x5561dc&&_0x2ad22b['insertionRanges']['push'](_0x5561dc),_0xb4caf2&&_0x2ad22b['deletionRanges']['push'](_0xb4caf2);},{'priority':'high'}),_0x1a5ff4['on']('insertColumns',(_0x4d95a0,_0x52437d)=>{const [_0x549fe0,_0x5b1135={}]=_0x52437d;if(!_0x2ad22b)return;const _0x24954c=_0x5b1135['at']||0x0,_0x6f43ac=_0x5b1135['columns']||0x1;_0x2ad22b['columnInsertionIndexes']=new Array(_0x6f43ac)['fill'](_0x24954c)['map']((_0x166cc9,_0x57b8b4)=>_0x166cc9+_0x57b8b4);for(const {cell:_0x270d3e}of _0x1a5ff4['createTableWalker'](_0x549fe0,{'startColumn':_0x24954c,'endColumn':_0x24954c+_0x6f43ac-0x1}))_0x2ad22b['columnInsertionRanges']['push'](_0x55fe6e['model']['createRangeOn'](_0x270d3e));},{'priority':'low'}),_0x1a5ff4['on']('insertRows',(_0x520164,_0x5759d4)=>{const [_0x1312be,_0x2a8fcf={}]=_0x5759d4;if(!_0x2ad22b)return;const _0x3c0b54=_0x2a8fcf['at']||0x0,_0x56401b=_0x2a8fcf['rows']||0x1;_0x2ad22b['rowInsertionIndexes']=new Array(_0x56401b)['fill'](_0x3c0b54)['map']((_0x76622,_0x1949ec)=>_0x76622+_0x1949ec);for(const {cell:_0x129282}of _0x1a5ff4['createTableWalker'](_0x1312be,{'startRow':_0x3c0b54,'endRow':_0x3c0b54+_0x56401b-0x1}))_0x2ad22b['rowInsertionRanges']['push'](_0x55fe6e['model']['createRangeOn'](_0x129282));},{'priority':'low'}),_0x1b360b['descriptionFactory']['registerDescriptionCallback'](_0x3cf347=>{if(_0x3cf347['subType']&&_0x3cf347['subType']['startsWith']('tablePaste'))return _0x3cf347['previous']?{}:{'type':'insertion','content':o(_0x55fe6e['locale'],'*Replace\x20table\x20cells*')};});const _0x3938a2=()=>!0x1;for(const _0x57d223 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1b360b['_suggestionFactory']['registerCustomCallback']('insertion',_0x57d223,'join',_0x3938a2),_0x1b360b['_suggestionFactory']['registerCustomCallback']('deletion',_0x57d223,'join',_0x3938a2),_0x1b360b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57d223,'join',_0x3938a2);_0x1b360b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3938a2),_0x1b360b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3bd10d,_0x59edf7,_0x325f9d)=>{const _0x13cc85=_0x3bd10d['map'](_0x12378e=>_0x12378e['getContainedElement']())['filter'](_0x4dbb83=>_0x4dbb83),_0x182c4a=new Map(_0x13cc85['map'](_0x3c9d27=>[_0x3c9d27,null]));if(_0x2ad22b){for(const {element:_0x15bd17,attributes:_0x29015c}of _0x2ad22b['cells'])_0x29015c&&_0x182c4a['set'](_0x15bd17,_0x29015c);}else{if(_0x325f9d&&_0x325f9d['markerAttributes'])for(const [_0x74351e,_0x5ea89f]of Object['entries'](_0x325f9d['markerAttributes'])){const _0x451ad6=_0x55fe6e['model']['markers']['get'](_0x74351e),_0x18ea5b=_0x451ad6?_0x451ad6['getRange']()['getContainedElement']():null;_0x18ea5b&&_0x182c4a['set'](_0x18ea5b,_0x5ea89f);}}_0x55fe6e['model']['change'](_0x56c186=>{for(const [_0x3ef6ef,_0x483b8f]of _0x182c4a)_0x56c186['setAttributes']({...Ce,..._0x483b8f},_0x3ef6ef);});});const _0x56b833=(_0x29dad9,_0x515b59)=>{_0x1b360b['_suggestionFactory']['registerCustomCallback'](_0x29dad9,'tablePaste',_0x515b59,(_0x19c33e,_0x40dd21,_0x4a636e)=>{_0x55fe6e['model']['change'](_0x3b0399=>{const _0xaaecf8=[];for(const _0x588aaa of _0x19c33e){const _0x3a16e2=_0x588aaa['start']['nodeAfter'];_0x3a16e2['is']('element','tableCellSuggestion')&&_0xaaecf8['push'](_0x3a16e2);}_0x1b360b['_suggestionFactory']['getSuggestionCallback'](_0x29dad9,null,_0x515b59)(_0x19c33e,_0x40dd21,_0x4a636e);for(const _0x2ecaff of _0xaaecf8)'$graveyard'!=_0x2ecaff['root']['rootName']&&_0x3b0399['unwrap'](_0x2ecaff);});});};_0x56b833('insertion','accept'),_0x56b833('insertion','discard'),_0x56b833('deletion','accept'),_0x56b833('deletion','discard'),_0x1b360b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1aa842=>{const _0x3f07ad=_0x1aa842['map'](_0x3cb3e7=>_0x3cb3e7['getContainedElement']()),_0x27b42d=_0x3f07ad[0x0]['findAncestor']('table'),{minRow:_0x373c7a,maxRow:_0x4c69cf}=_0x1df479['_getCoordsForCells'](_0x3f07ad);_0x1a5ff4['removeRows'](_0x27b42d,{'at':_0x373c7a,'rows':_0x4c69cf-_0x373c7a+0x1});}),_0x1b360b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b901d=>{const _0xf6c54e=_0x1b901d['map'](_0x37bdcb=>_0x37bdcb['getContainedElement']()),_0x5e278a=_0xf6c54e[0x0]['findAncestor']('table'),{minColumn:_0x1dd5ff,maxColumn:_0x1d7a40}=_0x1df479['_getCoordsForCells'](_0xf6c54e);_0x1a5ff4['removeColumns'](_0x5e278a,{'at':_0x1dd5ff,'columns':_0x1d7a40-_0x1dd5ff+0x1});});const _0x1acad3=(_0xed7331,_0x261bfb)=>{if(!_0x261bfb['subType']||!_0x261bfb['subType']['startsWith']('tablePaste'))return;const _0x34d8c0=_0x261bfb['attributes']['tablePasteChainId'],_0x399349=_0x1b360b['getSuggestions']()['filter'](_0x1a9377=>_0x1a9377['isInContent']&&_0x1a9377['attributes']&&_0x1a9377['attributes']['tablePasteChainId']==_0x34d8c0);_0x399349['length']&&_0x261bfb['getAllAdjacentSuggestions']()['length']!=_0x399349['length']&&_0x399349['reduce']((_0x1e4f82,_0x2f175f)=>(_0x1e4f82['next']=_0x2f175f,_0x2f175f['previous']=_0x1e4f82,_0x2f175f));};function _0x49f6fc(_0x66724,_0x53e3e5=!0x0){const {id:_0xb7c6c0}=_0x1b360b['_splitMarkerName'](_0x66724['markerName']),_0x4642f4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3ba85a=_0x1b360b['activeMarkers']['includes'](_0x66724['markerName']);return _0x3ba85a&&_0x4642f4['push']('ck-suggestion-marker--active'),{'classes':_0x4642f4,'attributes':{'data-suggestion':_0xb7c6c0},'priority':_0x3ba85a&&_0x53e3e5?0xbc2:0xbb8};}_0x1b360b['on']('suggestionLoaded',_0x1acad3,{'priority':'high'}),_0x1b360b['on']('suggestionUnloaded',_0x1acad3,{'priority':'high'}),_0x55fe6e['model']['document']['registerPostFixer'](()=>{let _0x1b7131=!0x1;const _0x59fa20=Array['from'](_0x55fe6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf604af,data:_0x2f8a31}of _0x59fa20){const {group:_0xd91674,type:_0x3eac17,id:_0x20c2b7}=_0x1b360b['_splitMarkerName'](_0xf604af);if('suggestion'!=_0xd91674||'deletion'!=_0x3eac17||_0x2f8a31['oldRange'])continue;if(!_0x1b360b['hasSuggestion'](_0x20c2b7))continue;const _0x428f85=_0x1b360b['getSuggestion'](_0x20c2b7)['getRanges'](),_0x64ee0f=_0x55fe6e['plugins']['get']('Users')['me'];for(const _0x550295 of _0x1b360b['getSuggestions']()){if(!_0x550295['isInContent']||_0x550295['author']!=_0x64ee0f)continue;if('formatBlock'!=_0x550295['type']||'tablePasteCell'!=_0x550295['subType'])continue;if(_0x550295['getRanges']()['every'](_0x2b181c=>_0x428f85['some'](_0xa9d1ed=>_0xa9d1ed['containsRange'](_0x2b181c,!0x0)))){for(const _0x3145f6 of _0x550295['getAllAdjacentSuggestions']())_0x3145f6['isInContent']&&(_0x3145f6['discard'](),_0x1b7131=!0x0);}}}return _0x1b7131;}),_0x55fe6e['model']['document']['registerPostFixer'](_0xfacaff=>{const _0x301f4d=_0x55fe6e['commands']['get']('redo');if(!_0x301f4d||!_0x301f4d['_createdBatches']['has'](_0xfacaff['batch']))return!0x1;let _0x33b601=!0x1;const _0x5d0f2f=_0x55fe6e['plugins']['get']('Users')['me'],_0x576209=_0x55fe6e['model']['document']['differ']['getChanges'](),_0x3788c8=Array['from'](_0x55fe6e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x256700,data:_0x4a10af})=>{const {group:_0x55ea6e,subType:_0x5d16b5,authorId:_0x382836}=_0x1b360b['_splitMarkerName'](_0x256700);return'suggestion'==_0x55ea6e&&'tablePaste'==_0x5d16b5&&_0x382836==_0x5d0f2f['id']&&!_0x4a10af['oldRange'];});for(const _0x3c21cb of _0x576209){if('insert'!=_0x3c21cb['type']||'tableCellSuggestion'!=_0x3c21cb['name']||0x1!=_0x3c21cb['length'])continue;const _0x325b5e=_0xfacaff['createRange'](_0x3c21cb['position'],_0x3c21cb['position']['getShiftedBy'](0x1));if(!_0x3788c8['find'](({data:_0x14e21d})=>_0x14e21d['newRange']['isEqual'](_0x325b5e))){for(const {name:_0x62065d,data:_0x2b3a90}of _0x3788c8)if(_0x325b5e['containsRange'](_0x2b3a90['newRange'])){_0xfacaff['updateMarker'](_0x62065d,{'range':_0x325b5e}),_0x33b601=!0x0;break;}}}return _0x33b601;}),_0x55fe6e['model']['document']['registerPostFixer'](_0x42adff=>{let _0x531fea=!0x1;const _0x37b109=_0x55fe6e['plugins']['get']('Users')['me'],_0x1cb2ca=_0x1b360b['getSuggestions']()['filter'](_0xbe8abb=>_0xbe8abb['isInContent']&&_0xbe8abb['author']==_0x37b109),_0x1415a0=new Set(),_0x11325c=new Set();for(const _0x4ae4b4 of _0x1cb2ca)if('tablePaste'==_0x4ae4b4['subType'])for(const _0x2ebdb9 of _0x4ae4b4['getMarkers']()){const _0x21fb36=_0x2ebdb9['getRange']()['getContainedElement']();if(_0x21fb36){if(_0x21fb36['is']('element','tableCellSuggestion')&&Pe(_0x21fb36)){_0x4ae4b4['removeMarker'](_0x2ebdb9['name']),_0x1415a0['add'](_0x21fb36),_0x531fea=!0x0;const _0x567aa7=_0x21fb36['nextSibling'],_0x518cb6=_0x21fb36['previousSibling'],_0x587f96=_0x567aa7&&_0x567aa7['is']('element','tableCellSuggestion'),_0x1cf17f=_0x518cb6&&_0x518cb6['is']('element','tableCellSuggestion');_0x587f96&&!_0x1415a0['has'](_0x567aa7)&&_0x11325c['add'](_0x567aa7),_0x1cf17f&&!_0x1415a0['has'](_0x518cb6)&&_0x11325c['add'](_0x518cb6);}else _0x21fb36['is']('element','paragraph')&&_0x21fb36['isEmpty']&&(_0x4ae4b4['removeMarker'](_0x2ebdb9['name']),_0x531fea=!0x0);}}else{if('tablePasteCell'==_0x4ae4b4['subType']){if(!_0x4ae4b4['attributes']||!_0x4ae4b4['attributes']['tablePasteChainId'])continue;const _0x3c9d32=_0x4ae4b4['attributes']['markerAttributes'];if(_0x3c9d32&&Object['keys'](_0x3c9d32)['length'])continue;const _0x3d96a4=_0x4ae4b4['attributes']['tablePasteChainId'];let _0x439962=!0x0,_0x22a1a6=!0x0;for(const _0x134a50 of _0x1cb2ca)if(_0x134a50['subType']&&_0x134a50['subType']['startsWith']('tablePaste')){if(!_0x134a50['attributes']['tablePasteChainId']){_0x22a1a6=!0x1;break;}if(_0x134a50['id']!=_0x4ae4b4['id']&&_0x134a50['attributes']['tablePasteChainId']==_0x3d96a4){_0x439962=!0x1;break;}}_0x22a1a6&&_0x439962&&(_0x4ae4b4['removeMarkers'](),_0x531fea=!0x0);}}for(const _0x31e287 of _0x1415a0)_0x42adff['remove'](_0x31e287);for(const _0x3fc94b of _0x11325c)_0x42adff['unwrap'](_0x3fc94b);return _0x531fea;}),_0x55fe6e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3bb0e5,_0x5420fe)=>_0x49f6fc(_0x3bb0e5),'converterPriority':'high'}),_0x55fe6e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x278e79,_0x17b543)=>_0x17b543['options']['showSuggestionHighlights']?_0x49f6fc(_0x278e79,!0x1):null,'converterPriority':'high'});const _0x513161=_0x55fe6e['editing']['view'];this['listenTo'](_0x513161['document'],'clipboardOutput',(_0x56e09a,_0x4bbf01)=>{const _0x959107=[];for(const _0x3492b9 of _0x513161['createRangeIn'](_0x4bbf01['content'])['getItems']())_0x3492b9['is']('element','suggestion-td')&&_0x959107['push'](_0x3492b9);_0x513161['change'](_0xbcf26c=>{for(const _0x3d7212 of _0x959107)_0xbcf26c['move'](_0xbcf26c['createRangeIn'](_0x3d7212),_0xbcf26c['createPositionBefore'](_0x3d7212)),_0xbcf26c['remove'](_0x3d7212);});});}}function Pe(_0x4c27b1){if(_0x4c27b1['isEmpty'])return!0x0;const _0x2c9165=_0x4c27b1['getChild'](0x0);return _0x2c9165['is']('element','paragraph')&&_0x2c9165['isEmpty'];}function he(_0x31db8b,_0x34cdc5={},_0x30359d){for(const {isAnchor:_0x4e5ff5,cellHeight:_0xe753ae,cellWidth:_0xfda276}of _0x30359d['createTableWalker'](_0x31db8b,{'includeAllSlots':!0x0,..._0x34cdc5}))if(!_0x4e5ff5||0x1!=_0xe753ae||0x1!=_0xfda276)return!0x1;return!0x0;}class vt extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x526e17=this['editor']['plugins']['get']('TrackChangesEditing');_0x526e17['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x526e17['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x526e17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x526e17['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x526e17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x526e17['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xbd2989,_0x518172){const _0x1f307=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf00348=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f3a55=_0x518172['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x168d47=_0xf00348['getColumnGroupElement'](_0x1f3a55);let _0x1315d0=_0x168d47?_0xf00348['getTableColumnsWidths'](_0x168d47):null,_0x5975d0=_0x1f3a55['getAttribute']('tableWidth')||null;const _0x5bf6b0=_0x518172['tableWidth']||_0x5975d0,_0x4976e0=_0x518172['columnWidths']||_0x1315d0,_0x15e7b4=this['editor']['plugins']['get']('Users')['me'];for(const _0x241ab9 of _0x1f307['getSuggestions']()){const _0x1a787c=_0x241ab9['getContainedElement']();if('resizeTable'===_0x241ab9['subType']&&_0x1a787c===_0x1f3a55){_0x241ab9['author']!==_0x15e7b4&&_0x241ab9['discard']();const _0x19464d=_0x241ab9['data']['commandParams'];_0x5975d0=_0x19464d[0x0]['tableWidth'],_0x1315d0=_0x19464d[0x0]['columnWidths'];break;}}_0xbd2989({'table':_0x1f3a55,'tableWidth':_0x5bf6b0,'columnWidths':_0x4976e0}),_0x1f307['markBlockFormat'](_0x1f3a55,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5975d0,'columnWidths':_0x1315d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xf6af77){if('formatBlock'!=_0xf6af77['type']&&'formatInline'!=_0xf6af77['type'])return;const {data:_0x16acae}=_0xf6af77;if(_0x16acae&&'resizeTable'===_0x16acae['formatGroupId']){const _0x242ea8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x242ea8)};}}}class Ct extends _0x16371d{['afterInit'](){const _0x700c01=this['editor'];_0x700c01['plugins']['has']('Template')&&_0x700c01['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x16371d{['afterInit'](){const _0x488e54=this['editor'];if(!_0x488e54['commands']['get']('insertTableOfContents'))return;_0x488e54['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36b0fd=_0x488e54['plugins']['get']('TrackChangesEditing'),_0x577c73=_0x488e54['locale'];_0x36b0fd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bb36c=>o(_0x577c73,'ELEMENT_TABLE_OF_CONTENTS',_0x3bb36c));}}class Dt extends _0x16371d{['afterInit'](){const _0x2b5bc4=this['editor'];if(!_0x2b5bc4['plugins']['has']('Title'))return;const _0x150cd3=_0x2b5bc4['plugins']['get']('TrackChangesEditing');_0x150cd3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2b5bc4['locale'],'ELEMENT_TITLE')),_0x2b5bc4['model']['document']['registerPostFixer'](_0x59e8ef=>{let _0x58330d=!0x1;const _0x426205=Array['from'](_0x2b5bc4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c2748,data:_0x3e8ee5}of _0x426205){const {group:_0x23b90a}=_0x150cd3['_splitMarkerName'](_0x3c2748);if('suggestion'!==_0x23b90a||!_0x3e8ee5['newRange'])continue;const _0x55eb6e=_0x3e8ee5['newRange'],_0x319a2c=_0x55eb6e['end']['nodeBefore'];if(!_0x319a2c||!_0x319a2c['is']('element','title-content'))continue;if(!_0x55eb6e['start']['isTouching'](_0x55eb6e['end']))continue;const _0x558cf0=_0x2b5bc4['model']['schema']['getNearestSelectionRange'](_0x55eb6e['end'],'forward');if(_0x558cf0&&_0x558cf0['isCollapsed']){const _0x1a1196=_0x59e8ef['createRange'](_0x55eb6e['start'],_0x558cf0['start']);_0x1a1196['isEqual'](_0x55eb6e)||(_0x59e8ef['updateMarker'](_0x3c2748,{'range':_0x1a1196}),_0x58330d=!0x0);}_0x58330d||(_0x59e8ef['removeMarker'](_0x3c2748),_0x58330d=!0x0);}return _0x58330d;});}}class Nt extends _0x16371d{['afterInit'](){const _0x808530=this['editor'],_0x352faa=_0x808530['plugins']['get']('TrackChangesEditing');_0x808530['plugins']['has']('UndoEditing')&&(_0x352faa['enableCommand']('undo'),_0x352faa['enableCommand']('redo'));}}class Mt extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x506e0b=this['editor'];if(!_0x506e0b['plugins']['has']('TableCaptionEditing'))return;_0x506e0b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x16371d{['tableProperties'];['tableCellProperties'];constructor(_0xe03985){super(_0xe03985),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 _0x1795ab=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5de489 of this['tableProperties'])_0x1795ab['enableCommand'](_0x5de489,(_0x13d877,_0x4fb674)=>{const _0x58f68e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5de489,[_0x58f68e],this['tableProperties'],'tableProperties',_0x13d877,_0x4fb674);});_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1795ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c2d67,_0x27a5b5)=>this['handleDiscardAction'](this['tableProperties'],_0x2c2d67,_0x27a5b5)),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x509b85 of this['tableCellProperties'])_0x1795ab['enableCommand'](_0x509b85,(_0x4dfbde,_0x584d5d)=>{const _0x4ef247=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x509b85,_0x4ef247,this['tableCellProperties'],'tableCellProperties',_0x4dfbde,_0x584d5d);});_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1795ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5f3a52,_0x2c3b72)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5f3a52,_0x2c3b72)),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1795ab['descriptionFactory']['registerDescriptionCallback'](_0x2be749=>this['handleSuggestionDescription'](_0x2be749));}['_handlePropertyChange'](_0x48840c,_0x1f84b2,_0x551693,_0x38bcdd,_0xafbaa0,_0x4e8fd2){const _0x1d6734=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4e8fd2['batch'],()=>{for(const _0x385ea5 of _0x1f84b2){if(this['_getSuggestion'](_0x385ea5,_0x38bcdd))_0xafbaa0(_0x4e8fd2);else{const _0x3f2db4={};for(const _0x549fc5 of _0x551693){const _0x52a0e2=_0x385ea5['getAttribute'](_0x549fc5);void 0x0!==_0x52a0e2&&(_0x3f2db4[_0x549fc5]=_0x52a0e2);}_0xafbaa0(_0x4e8fd2),_0x1d6734['markBlockFormat'](_0x385ea5,{'commandParams':[_0x3f2db4]},[],_0x38bcdd);}}});}['handleDiscardAction'](_0x5c9b4e,_0x4c952c,_0x28094a){const _0x55b952=_0x4c952c[0x0]['start']['nodeAfter'],_0x3613e1=_0x28094a['commandParams'][0x0];this['editor']['model']['change'](_0x31f977=>{for(const _0x3e862a of _0x5c9b4e)void 0x0!==_0x3613e1[_0x3e862a]?_0x31f977['setAttribute'](_0x3e862a,_0x3613e1[_0x3e862a],_0x55b952):_0x31f977['removeAttribute'](_0x3e862a,_0x55b952);});}['handleSuggestionDescription'](_0x27fae1){if(_0x27fae1['data'])switch(_0x27fae1['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'](_0x1d00ab,_0x5a8985){const _0x8b6e59=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x491428 of _0x8b6e59['getSuggestions']({'skipNotAttached':!0x0})){const _0x3e0871=_0x491428['getContainedElement']();if(_0x491428['subType']===_0x5a8985&&_0x3e0871===_0x1d00ab)return _0x491428;}return null;}}const m='$elementName';class p extends _0x16371d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2e67ee,_0x225db4,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(_0x465534){function _0x4a4e49(_0xde9005){return _0xde9005['map'](_0x190ff2=>String['fromCharCode'](_0x190ff2))['join']('');}super(_0x465534),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2876c8,_0x257529,_0x633968,_0x50d96a)=>{this['_model']['change'](()=>{for(const _0x3a5d8b of[..._0x50d96a,..._0x633968])this['_model']['markers']['has'](_0x3a5d8b)&&_0x465534['editing']['reconvertMarker'](_0x3a5d8b);});}),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']=_0x465534['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(),_0x465534['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x465534['config']['get']('trackChanges.trackFormatChanges'),_0x465534['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x465534['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x465534,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4a4e49([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4a4e49([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x32]);}['init'](){const _0x187b31=this['editor'],_0x257f04=(_0x4daa2e,_0x147c8b)=>{if('attribute'!=_0x4daa2e)return'ck-suggestion-marker-'+_0x4daa2e;const _0x3c8b87=_0x147c8b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c8b87)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x187b31['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2282ab=>{const {id:_0x334b79,type:_0x30694c,subType:_0x3d3440}=this['_splitMarkerName'](_0x2282ab['markerName']),_0x385007=['ck-suggestion-marker',_0x257f04(_0x30694c,_0x3d3440)];let _0x293c7d=0xbb8;return this['activeMarkers']['includes'](_0x2282ab['markerName'])&&(_0x385007['push']('ck-suggestion-marker--active'),_0x293c7d=0xbc2),'deletion'==_0x30694c&&(_0x293c7d+=0x5),{'classes':_0x385007,'attributes':{'data-suggestion':_0x334b79},'priority':_0x293c7d};}}),_0x187b31['conversion']['for']('dataDowncast')['add'](_0x69d5ac=>{_0x69d5ac['on']('addMarker:suggestion',(_0x41551e,_0x5f470f,_0x2ef954)=>{if(!_0x2ef954['options']['showSuggestionHighlights'])return;const _0x4cc633=_0x5f470f['item'];if(!_0x4cc633)return;const _0x3fddb8=_0x2ef954['mapper']['toViewElement'](_0x4cc633);_0x187b31['model']['schema']['isObject'](_0x4cc633)&&_0x3fddb8&&!_0x3fddb8['getCustomProperty']('widget')&&_0x3fddb8['is']('containerElement')&&_0x44ddaf(_0x3fddb8,_0x2ef954['writer']);},{'priority':'high'});}),_0x187b31['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x31c35e,_0x37acdb)=>{if(!_0x37acdb['options']['showSuggestionHighlights'])return null;const {type:_0x3550eb,subType:_0x395690}=this['_splitMarkerName'](_0x31c35e['markerName']);return{'classes':['ck-suggestion-marker',_0x257f04(_0x3550eb,_0x395690)],'priority':0xbb8};}});const _0xcd8489=({showActiveMarkers:_0x2a84c0=!0x0,isAttributeSuggestion:_0x3c263c=!0x1}={})=>(_0x4d37d6,_0x326480,_0xc9a357)=>{if(!_0x326480['item'])return;const {id:_0x325ef4}=this['_splitMarkerName'](_0x326480['markerName']);if(_0x3c263c){const _0x221249=this['_suggestions']['get'](_0x325ef4),_0x181710=this['_getAttributeKey'](_0x221249);if(!this['_isBlockAttribute'](_0x181710))return;}if(_0x326480['item']['is']('selection'))return void _0xc9a357['consumable']['consume'](_0x326480['item'],_0x4d37d6['name']);const _0x17f134=_0xc9a357['mapper']['toViewElement'](_0x326480['item']);if(_0x326480['item']['is']('element')&&_0x187b31['model']['schema']['isBlock'](_0x326480['item'])&&!_0x17f134['getCustomProperty']('addHighlight')){_0xc9a357['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x17f134),_0xc9a357['writer']['setAttribute']('data-suggestion',_0x325ef4,_0x17f134),_0xc9a357['mapper']['bindElementToMarker'](_0x17f134,_0x326480['markerName']),_0x2a84c0&&(this['activeMarkers']['includes'](_0x326480['markerName'])?_0xc9a357['writer']['addClass']('ck-suggestion-marker--active',_0x17f134):_0xc9a357['writer']['removeClass']('ck-suggestion-marker--active',_0x17f134));for(const _0xdec98 of _0x187b31['model']['createRangeIn'](_0x326480['item'])['getItems']())_0xc9a357['consumable']['consume'](_0xdec98,_0x4d37d6['name']);_0xc9a357['consumable']['consume'](_0x326480['item'],_0x4d37d6['name']);}};_0x187b31['conversion']['for']('dataDowncast')['add'](_0x2cf017=>{_0x2cf017['on']('addMarker:suggestion:formatBlock',(_0x44a50c,_0x4e0552,_0x2e9cce)=>{_0x2e9cce['options']['showSuggestionHighlights']&&_0xcd8489({'showActiveMarkers':!0x1})(_0x44a50c,_0x4e0552,_0x2e9cce);},{'priority':'highest'});}),_0x187b31['conversion']['for']('dataDowncast')['add'](_0x5bf219=>{_0x5bf219['on']('addMarker:suggestion:attribute',(_0x564dac,_0x3835b1,_0x1669b5)=>{_0x1669b5['options']['showSuggestionHighlights']&&_0xcd8489({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x564dac,_0x3835b1,_0x1669b5);},{'priority':'highest'});}),_0x187b31['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x214794,_0x5c59f7)=>_0x5c59f7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x214794['substr'](0xb)}}),_0x187b31['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41392c,{writer:_0x7b4ea2})=>{let _0x151e98='suggestion:'+_0x41392c['getAttribute']('suggestion-type')+':'+_0x41392c['getAttribute']('id');return _0x41392c['getAttribute']('marker-count')&&(_0x151e98+=':'+_0x41392c['getAttribute']('marker-count')),_0x7b4ea2['createElement']('$marker',{'data-name':_0x151e98});}}),_0x187b31['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x5a4fb4=>{_0x5a4fb4['on']('addMarker:suggestion:formatBlock',_0xcd8489(),{'priority':'high'});}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x252ac0=>{_0x252ac0['on']('addMarker:suggestion:attribute',_0xcd8489({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x4e8e15=>{_0x4e8e15['on']('removeMarker:suggestion:formatBlock',(_0x428d8e,_0x18f72d,_0x3bf8ea)=>{const _0x2c6d59=_0x3bf8ea['mapper']['markerNameToElements'](_0x18f72d['markerName']);if(_0x2c6d59){for(const _0x47bd7d of _0x2c6d59)_0x47bd7d['getCustomProperty']('addHighlight')||(_0x3bf8ea['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x47bd7d),_0x3bf8ea['writer']['removeAttribute']('data-suggestion',_0x47bd7d),_0x3bf8ea['mapper']['unbindElementFromMarkerName'](_0x47bd7d,_0x18f72d['markerName']));}},{'priority':'high'});}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x143d4f=>{_0x143d4f['on']('removeMarker:suggestion:attribute',(_0x4cc067,_0x856cac,_0x5b382d)=>{const _0x5771fa=_0x5b382d['mapper']['markerNameToElements'](_0x856cac['markerName']);if(!_0x5771fa)return;const {id:_0x2e1ad5}=this['_splitMarkerName'](_0x856cac['markerName']),_0xcaa3c2=this['_suggestions']['get'](_0x2e1ad5),_0x47a3cb=this['_getAttributeKey'](_0xcaa3c2);if(this['_isBlockAttribute'](_0x47a3cb)){for(const _0x34dafa of _0x5771fa)_0x34dafa['getCustomProperty']('addHighlight')||(_0x5b382d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34dafa),_0x5b382d['writer']['removeAttribute']('data-suggestion',_0x34dafa),_0x5b382d['mapper']['unbindElementFromMarkerName'](_0x34dafa,_0x856cac['markerName']));}},{'priority':'high'});}),_0x187b31['model']['document']['registerPostFixer'](_0x2e4971=>{let _0x27c58a=!0x1;const _0x233e6e=Array['from'](_0x187b31['model']['document']['differ']['getChangedMarkers']()),_0x1ffe25=new Set();for(const {name:_0x367ede,data:_0x5236a2}of _0x233e6e){const {group:_0xb11cea,type:_0x33eca2,subType:_0x1c6016,id:_0x10aab8}=this['_splitMarkerName'](_0x367ede);if('suggestion'!==_0xb11cea)continue;const _0x290e4a=this['_suggestions']['get'](_0x10aab8);if(null!=_0x5236a2['newRange']){'formatInline'==_0x33eca2&&(_0x27c58a=_0x27c58a||Et(_0x5236a2['newRange'],_0x367ede,_0x2e4971,_0x187b31['model']['schema']));const _0x10e6ff='attribute'==_0x33eca2&&this['_isBlockAttribute'](_0x1c6016['split']('|')[0x0]);if(_0x5236a2['newRange']['isCollapsed']||'$graveyard'==_0x5236a2['newRange']['root']['rootName']||'formatBlock'==_0x33eca2&&!Ut(_0x5236a2['newRange'])||_0x10e6ff&&!Ut(_0x5236a2['newRange'])||'deletion'==_0x33eca2&&!(!Tt(_0x59f5a8=_0x5236a2['newRange'])&&!function(_0x42e8fa){return _0x42e8fa['start']['parent']==_0x42e8fa['end']['nodeBefore']&&_0x42e8fa['start']['isAtEnd'];}(_0x59f5a8)))_0x2e4971['removeMarker'](_0x367ede),_0x27c58a=!0x0;else{if(!_0x290e4a||!_0x290e4a['isInContent'])continue;_0x1ffe25['add'](_0x290e4a);}}}var _0x59f5a8;return _0x1ffe25['size']>0x0&&(_0x27c58a=!!this['_joinWithAdjacentSuggestions'](_0x1ffe25)||_0x27c58a),_0x27c58a;}),_0x187b31['model']['document']['registerPostFixer'](_0x27a400=>{let _0x37308b=!0x1;for(const _0x20e0d9 of _0x187b31['model']['document']['differ']['getChanges']())if('insert'==_0x20e0d9['type'])for(const _0x133cf1 of this['_suggestions']['values']()){if(_0x133cf1['isMultiRange']||!_0x133cf1['isInContent'])continue;const _0xd44b2f='formatBlock'==_0x133cf1['type'],_0x1b4437=this['_getAttributeKey'](_0x133cf1),_0x8ee936=_0x1b4437&&this['_isBlockAttribute'](_0x1b4437);if(!_0xd44b2f&&!_0x8ee936)continue;const _0x18e04c=_0x133cf1['getFirstRange']();if(_0x18e04c['start']['parent']!=_0x18e04c['end']['parent']&&!_0x18e04c['end']['isAtEnd']){const _0xa22a92=_0x187b31['model']['createPositionAt'](_0x18e04c['start']['nodeAfter'],'end'),_0x3c1f0e=_0x187b31['model']['createRange'](_0x18e04c['start'],_0xa22a92);_0x27a400['updateMarker'](_0x133cf1['getFirstMarker'](),{'range':_0x3c1f0e}),_0x37308b=!0x0;}}return _0x37308b;}),_0x187b31['model']['document']['registerPostFixer'](_0x298e9b=>this['_processAttributeChanges'](_0x298e9b)),_0x187b31['model']['document']['registerPostFixer'](_0x5d7489=>!_0x5d7489['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5d7489)),_0x187b31['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x187b31['model']['document']['on']('change:data',(_0x4a8a34,_0x45f1ef)=>{if(!_0x45f1ef['isLocal']||_0x45f1ef['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x557971=_0x187b31['model']['document']['differ']['getChanges']();if(0x0==_0x557971['length'])return;const _0x258a92=[],_0x4bf0d4=_0x557971['filter'](_0x31cbde=>'attribute'==_0x31cbde['type']),_0x4eed8e=_0x557971['filter'](_0x118e89=>'insert'==_0x118e89['type']&&'$text'!=_0x118e89['name']);for(const _0x26f594 of _0x4bf0d4)this['_isRegisteredAttribute'](_0x26f594['attributeKey'])&&_0x258a92['push']({'key':_0x26f594['attributeKey'],'newValue':_0x26f594['attributeNewValue'],'oldValue':_0x26f594['attributeOldValue'],'range':Ot(_0x26f594['range'],_0x187b31['model'])});for(const _0x8c98fc of _0x4eed8e){if('rename'!=_0x8c98fc['action']&&'refresh'!=_0x8c98fc['action'])continue;const _0x208efa=Gt(_0x8c98fc['position']['nodeAfter'],_0x187b31['model']),_0x4250a0=_0x8c98fc['before'];'rename'==_0x8c98fc['action']&&_0x258a92['push']({'key':m,'newValue':_0x8c98fc['name'],'oldValue':_0x4250a0['name'],'range':_0x208efa});for(const [_0xe77176,_0x2987f0]of _0x4250a0['attributes']){if(!this['_isRegisteredAttribute'](_0xe77176))continue;const _0x55ff13=_0x8c98fc['attributes']['get'](_0xe77176);_0x2987f0!==_0x55ff13&&_0x258a92['push']({'key':_0xe77176,'newValue':_0x55ff13,'oldValue':_0x2987f0,'range':_0x208efa});}for(const [_0x404ad1,_0x2d02bc]of _0x8c98fc['attributes'])this['_isRegisteredAttribute'](_0x404ad1)&&(_0x4250a0['attributes']['has'](_0x404ad1)||_0x258a92['push']({'key':_0x404ad1,'newValue':_0x2d02bc,'oldValue':null,'range':_0x208efa}));}0x0!=_0x258a92['length']&&_0x187b31['model']['enqueueChange'](_0x45f1ef,_0x424cf9=>{const _0x38802f=_0x4b80ff();for(const {range:_0x4062b0,key:_0xba687c,oldValue:_0x564ae2,newValue:_0x49db2e}of _0x258a92)this['markAttributeChange'](_0x4062b0,_0xba687c,_0x564ae2,_0x49db2e,{'groupId':_0x38802f});this['_reduceExistingSuggestions'](_0x424cf9,_0x258a92);});},{'priority':'lowest'}),_0x187b31['model']['markers']['on']('update:suggestion',(_0x4b6d0f,_0xab26a0,_0x4c93df)=>{if(null==_0x4c93df){const {id:_0x3d70fc}=this['_splitMarkerName'](_0xab26a0['name']),_0x191755=this['_suggestions']['get'](_0x3d70fc);_0x191755&&_0x191755['addMarkerName'](_0xab26a0['name']);}}),_0x187b31['model']['document']['on']('change:data',()=>{const _0x39bebc=Array['from'](_0x187b31['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4c4ea3=>'suggestion'===this['_splitMarkerName'](_0x4c4ea3['name'])['group']);if(0x0===_0x39bebc['length'])return;_0x39bebc['sort']((_0x2ce13a,_0x5d3858)=>{const _0x4d51ce=_0x2ce13a['data']['oldRange'],_0x5edd21=_0x5d3858['data']['oldRange'];return null===_0x4d51ce&&null===_0x5edd21?0x0:null===_0x4d51ce&&null!==_0x5edd21?-0x1:null!==_0x4d51ce&&null===_0x5edd21?0x1:_0x4d51ce['start']['isBefore'](_0x5edd21['start'])?-0x1:0x1;});const _0x24397c=new Set(),_0x36b332=new Set();for(const {name:_0x24b356,data:_0x4b5cf0}of _0x39bebc){const {id:_0x2ef1bd}=this['_splitMarkerName'](_0x24b356);if(null===_0x4b5cf0['oldRange']){const _0xc763d6=this['_handleNewSuggestionMarker'](_0x24b356);_0x36b332['add'](_0xc763d6);}else{const _0x3e2142=this['_suggestions']['get'](_0x2ef1bd);null!==_0x4b5cf0['newRange']||_0x3e2142['isInContent']?(_0x24397c['add'](_0x3e2142['head']),_0x36b332['add'](_0x3e2142)):this['_removeSuggestion'](_0x3e2142);}}_0x36b332['size']>0x0&&this['_refreshSuggestionsChain'](_0x36b332);for(const _0x5b21f3 of _0x24397c)this['fire']('suggestionChanged',_0x5b21f3);}),_0x187b31['model']['on']('applyOperation',(_0x27339c,_0xb79ae3)=>{const _0x51ccce=_0xb79ae3[0x0];if(!this['_suggestions']['size'])return;if(!_0x51ccce['isDocumentOperation'])return;if(_0x51ccce['batch']['isUndo']||!_0x51ccce['batch']['isLocal'])return;let _0x4b0213,_0x4d1c7c;switch(_0x51ccce['type']){case'insert':_0x4b0213=_0x187b31['model']['createPositionAt'](_0x51ccce['position']),_0x4d1c7c=_0x4b0213['getShiftedBy'](_0x51ccce['howMany']);break;case'split':_0x4b0213=_0x187b31['model']['createPositionAt'](_0x51ccce['splitPosition']),_0x4d1c7c=_0x187b31['model']['createPositionAt'](_0x51ccce['moveTargetPosition']);break;case'move':_0x4b0213=_0x187b31['model']['createPositionAt'](_0x51ccce['targetPosition']),_0x4d1c7c=_0x4b0213['getShiftedBy'](_0x51ccce['howMany']);break;default:return;}const _0x366007=_0x187b31['model']['createRange'](_0x4b0213,_0x4d1c7c);_0x187b31['model']['change'](()=>{for(const {suggestion:_0x2a00a4,meta:_0x3df0a6}of this['_findSuggestions'](_0x366007)){if(_0x2a00a4['isMultiRange'])continue;if('formatInline'==_0x2a00a4['type'])continue;const _0x10d9c6=this['_getAttributeKey'](_0x2a00a4);if(_0x10d9c6&&this['_isBlockAttribute'](_0x10d9c6)&&'split'!=_0x51ccce['type'])continue;const _0x421615=_0x2a00a4['data']&&_0x2a00a4['data']['multipleBlocks'];('formatBlock'!=_0x2a00a4['type']||'split'==_0x51ccce['type']&&!_0x421615)&&(_0x3df0a6['containsRangeInObject']||'insertion'==_0x2a00a4['type']&&_0x3df0a6['isOwn']||_0x2a00a4['getFirstRange']()['containsRange'](_0x366007)&&this['_breakSuggestionMarker'](_0x2a00a4,_0x4b0213,_0x4d1c7c));}});},{'priority':'lowest'}),_0x187b31['model']['on']('deleteContent',(_0x3833ba,_0x45864e)=>{const _0x2bafea=_0x45864e[0x0],_0x45356e=_0x45864e[0x1];if(_0x45356e&&_0x45356e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2bafea['isCollapsed'])return;const _0x145298=_0x187b31['model']['schema'],{start:_0x324b58,end:_0x5e278f}=_0x2bafea['getFirstRange'](),_0x324f20=_0x324b58['nodeAfter']&&_0x145298['isLimit'](_0x324b58['nodeAfter'])?null:_0x145298['getNearestSelectionRange'](_0x324b58,'forward'),_0x391295=_0x5e278f['nodeBefore']&&_0x145298['isLimit'](_0x5e278f['nodeBefore'])?null:_0x145298['getNearestSelectionRange'](_0x5e278f,'backward'),_0x5a9aee=_0x187b31['model']['createRange'](_0x324f20?_0x324f20['start']:_0x324b58,_0x391295?_0x391295['end']:_0x5e278f);_0x187b31['model']['change'](_0x2b359a=>{this['markDeletion'](_0x5a9aee);const _0x484de8=_0x187b31['model']['schema']['getNearestSelectionRange'](_0x5a9aee['start']);_0x2bafea['is']('documentSelection')?_0x2b359a['setSelection'](_0x484de8):_0x2bafea['setTo'](_0x484de8);}),_0x3833ba['stop']();},{'priority':_0x1135d8['normal']+0xa}),_0x187b31['model']['on']('insertContent',(_0x29a5b4,_0x366de9)=>{const _0x63ec87=_0x366de9[_0x366de9['length']-0x1];_0x63ec87&&_0x63ec87['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x187b31['model']['change'](()=>{let _0x42f16c=_0x187b31['model']['insertContent'](_0x366de9[0x0],_0x366de9[0x1],_0x366de9[0x2],{'forceDefaultExecution':!0x0});if(!_0x42f16c)return;_0x29a5b4['return']=_0x42f16c['clone']();const _0x35b5b6=_0x42f16c['end']['nodeBefore'],_0x45e254=_0x187b31['model']['schema'];_0x35b5b6&&_0x45e254['isBlock'](_0x35b5b6)&&!_0x45e254['isObject'](_0x35b5b6)&&(_0x42f16c=_0x187b31['model']['createRange'](_0x42f16c['start'],_0x187b31['model']['createPositionAt'](_0x35b5b6,'end'))),this['markInsertion'](_0x42f16c);}),_0x29a5b4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1dc000=new $(_0x187b31,this['_suggestions']);_0x187b31['commands']['add']('acceptSuggestion',_0x1dc000),this['enableCommand']('acceptSuggestion');const _0x40d33e=new B(_0x187b31,this['_suggestions']);_0x187b31['commands']['add']('discardSuggestion',_0x40d33e),this['enableCommand']('discardSuggestion'),_0x187b31['commands']['add']('acceptAllSuggestions',new x(_0x187b31,_0x1dc000,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x187b31['commands']['add']('discardAllSuggestions',new x(_0x187b31,_0x40d33e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x187b31['commands']['add']('acceptSelectedSuggestions',new R(_0x187b31,_0x1dc000,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x187b31['commands']['add']('discardSelectedSuggestions',new R(_0x187b31,_0x40d33e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2d0a3b=_0x187b31['plugins']['get']('CommentsRepository');this['listenTo'](_0x2d0a3b,'addComment',(_0x252abd,{threadId:_0xbff65e})=>{const _0x2f5676=this['_suggestions']['get'](_0xbff65e);_0x2f5676&&_0x2f5676['commentThread']&&0x1===_0x2f5676['commentThread']['length']&&this['_updateSuggestionData'](_0xbff65e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2d0a3b,'removeComment',(_0xa8e2f2,{threadId:_0x203716})=>{const _0x29d8cc=this['_suggestions']['get'](_0x203716);_0x29d8cc&&_0x29d8cc['commentThread']&&!_0x29d8cc['commentThread']['length']&&this['_updateSuggestionData'](_0x203716,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5a0c3e){if(this['_adapter'])throw new _0x40a0bd('track-changes-adapter-already-set',this);this['_adapter']=_0x5a0c3e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4bd006=!0x1,toJSON:_0x2dc70c=!0x1}={}){const _0x1e9f42=[];for(const _0x5de1c0 of this['_suggestions']['values']())_0x4bd006&&!_0x5de1c0['isInContent']||_0x1e9f42['push'](_0x5de1c0);return _0x2dc70c?_0x1e9f42['map'](_0x54134b=>_0x54134b['toJSON']()):_0x1e9f42;}['getSuggestion'](_0xb1cf2a){const _0x68eba3=this['_suggestions']['get'](_0xb1cf2a);if(!_0x68eba3)throw new _0x40a0bd('track-changes-suggestion-not-found',this);return _0x68eba3;}['hasSuggestion'](_0x587445){return this['_suggestions']['has'](_0x587445);}['addSuggestionData'](_0x288f2c){const {authorId:_0x37f2ea,id:_0x472230,attributes:_0x2b4809}=_0x288f2c,[_0x228d20,_0x51451b]=_0x288f2c['type']['split'](':'),_0x4cce5d=this['_suggestions']['get'](_0x472230)||this['_createSuggestion'](_0x228d20,_0x51451b,_0x472230,_0x37f2ea,_0x2b4809);if(this['_addThreadToSuggestion'](_0x4cce5d),this['_checkSuggestionCorrectness'](_0x4cce5d,_0x228d20,_0x51451b||null,_0x37f2ea),_0x4cce5d['createdAt']=_0x288f2c['createdAt'],_0x4cce5d['_isDataLoaded']=!0x0,_0x2b4809&&_0x2b4809['@external']){const _0x4ead60=_0x2b4809['@external'],_0x4ee14f=this['_getExternalAuthor'](_0x4ead60['authorName']);_0x4cce5d['authoredAt']=_0x4ead60['createdAt'],_0x4cce5d['author']=_0x4ee14f,_0x4cce5d['isExternal']=!0x0;}else _0x4cce5d['authoredAt']=_0x288f2c['createdAt'];switch(_0x288f2c['data']&&(_0x4cce5d['data']=_0x288f2c['data']),_0x288f2c['attributes']&&(_0x4cce5d['attributes']=_0x288f2c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4cce5d['_saved']=!0x0),this['_suggestionState']['get'](_0x4cce5d)){case'notReady':this['_suggestionState']['set'](_0x4cce5d,'dataReady');break;case'markerReady':_0x4cce5d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4cce5d])),this['_refreshSuggestionsChain'](new Set([_0x4cce5d])),this['_suggestionState']['set'](_0x4cce5d,'ready'),this['fire']('suggestionLoaded',_0x4cce5d)):this['_suggestionState']['set'](_0x4cce5d,'removed');}return _0x4cce5d;}['acceptSuggestion'](_0x2cb4b1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x518c5c of _0x2cb4b1['getAllAdjacentSuggestions']())_0x518c5c['accept']();});});}['discardSuggestion'](_0x54ebb6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e4c7b of _0x54ebb6['getAllAdjacentSuggestions']())_0x2e4c7b['discard']();});});}['enableCommand'](_0x17f93c,_0x5f1626){const _0x2b9979=this['editor']['commands']['get'](_0x17f93c);if(!_0x2b9979)throw new _0x40a0bd('track-changes-command-not-found',this,{'commandName':_0x17f93c});if(this['_enabledCommands']['has'](_0x2b9979))throw new _0x40a0bd('track-changes-enable-command-twice',this,{'commandName':_0x17f93c});this['_enabledCommands']['add'](_0x2b9979),_0x5f1626&&_0x2b9979['on']('execute',(_0x557326,_0x48b439)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x48b439['length']>0x0&&_0x48b439[_0x48b439['length']-0x1]&&_0x48b439[_0x48b439['length']-0x1]['forceDefaultExecution']?_0x48b439['pop']():(_0x557326['return']=_0x5f1626((..._0x57ee83)=>_0x2b9979['execute'](..._0x57ee83,{'forceDefaultExecution':!0x0}),..._0x48b439),_0x557326['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2656ea){let _0x3eba06,_0x39fe69;const _0x4bd299=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3eba06=_0x2656ea();}catch(_0x4ddb75){_0x39fe69=_0x4ddb75;}return _0x4bd299||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x39fe69&&_0x40a0bd['rethrowUnexpectedError'](_0x39fe69,this),_0x3eba06;}['markInsertion'](_0x3537e6,_0xc20a71=null,_0x5472c9={}){if(_0x3537e6['isCollapsed'])return null;const _0x2c0f77=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x25f060,meta:_0x14e226}of this['_findSuggestions'](_0x3537e6,'insertion'))if(_0x14e226['isOwn']){if(!_0x14e226['isNextTo']){if(_0x14e226['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x25f060,_0x5472c9))continue;return _0x25f060;}if(Lt(_0x25f060,_0x5472c9))return _0x25f060;this['_breakSuggestionMarker'](_0x25f060,_0x3537e6['start'],_0x3537e6['end']);break;}if(_0xc20a71==_0x25f060['subType']&&Lt(_0x25f060,_0x5472c9)){const _0x2bbe88=_0x25f060['getFirstRange']();return _0x2bbe88['start']['isEqual'](_0x3537e6['end'])?this['_setSuggestionRange'](_0x25f060,this['_model']['createRange'](_0x3537e6['start'],_0x2bbe88['end'])):this['_setSuggestionRange'](_0x25f060,this['_model']['createRange'](_0x2bbe88['start'],_0x3537e6['end'])),_0x25f060;}}const _0x5e3315=_0x4b80ff(),_0x36a1ad=_0x2c0f77['id'],_0x394ce3=_0xc20a71?'insertion:'+_0xc20a71:'insertion',_0x1ebaab=this['_setSuggestionData']({'id':_0x5e3315,'type':_0x394ce3,'createdAt':new Date(),'authorId':_0x36a1ad,'attributes':_0x5472c9});return this['_addSuggestionMarker'](_0x394ce3,_0x5e3315,_0x36a1ad,_0x3537e6),_0x1ebaab;}['markMultiRangeInsertion'](_0x4a1479,_0x457eca='multi',_0x52b5b7={}){const _0x5f256d=this['editor']['plugins']['get']('Users')['me'],_0x4d6e82=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x457eca,'join');for(const _0x51e28e of this['getSuggestions']())if(_0x51e28e['author']['id']==_0x5f256d['id']&&'insertion'==_0x51e28e['type']&&_0x51e28e['subType']==_0x457eca&&Lt(_0x51e28e,_0x52b5b7)&&(_0x4d6e82(_0x51e28e['getRanges'](),_0x4a1479)||_0x4d6e82(_0x4a1479,_0x51e28e['getRanges']()))){for(const _0x4196c7 of _0x4a1479)_0x51e28e['addRange'](_0x4196c7);return _0x51e28e;}for(const {suggestion:_0x43253d,meta:_0x48990a}of this['_findSuggestions'](_0x4a1479,'insertion')){if(!_0x48990a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x48990a['containsRangeInObject'])continue;if(!Lt(_0x43253d,_0x52b5b7))continue;let _0xfd4818=!0x0;for(const _0x574521 of _0x43253d['getRanges']())for(const _0x33cb0b of _0x4a1479)if(!_0x574521['containsRange'](_0x33cb0b)){_0xfd4818=!0x1;break;}if(_0xfd4818)return _0x43253d;}const _0x583592=_0x4b80ff(),_0x475f42=_0x5f256d['id'],_0x30cf8d='insertion:'+_0x457eca,_0x5025bc=this['_setSuggestionData']({'id':_0x583592,'type':_0x30cf8d,'createdAt':new Date(),'authorId':_0x475f42,'attributes':_0x52b5b7});for(const _0x176415 of _0x4a1479)this['_addSuggestionMarker'](_0x30cf8d,_0x583592,_0x475f42,_0x176415,u['getMultiRangeId']());return _0x5025bc;}['markInlineFormat'](_0x348e54,_0x4008d1,_0x52b6d8=null,_0x45e8ff={}){if(_0x52b6d8=_0x52b6d8||Vt(_0x4008d1),_0x348e54['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d5dda=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52b6d8,'accept');return this['forceDefaultExecution'](()=>_0x2d5dda([_0x348e54],_0x4008d1,_0x45e8ff)),null;}const _0x3f202d=this['editor']['plugins']['get']('Users')['me'],_0xedcc54=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x402cb2,meta:_0x30a772}of this['_findSuggestions'](_0x348e54,'insertion'))_0x30a772['isOwn']&&!_0x30a772['isInsideObject']&&_0xedcc54['push'](..._0x402cb2['getRanges']());}const _0x575e31=function(_0x367a18,_0x2b7832){const _0x54ebfa=[];for(const _0x558715 of _0x2b7832){const _0x3a8ad8=_0x367a18['getIntersection'](_0x558715);_0x3a8ad8&&_0x54ebfa['push'](_0x3a8ad8);}return _0x54ebfa;}(_0x348e54,_0xedcc54),_0x3af84c=function(_0x17d709,_0x139c04){const _0x5e3c9a=[_0x17d709];for(const _0x22b366 of _0x139c04){let _0x2c478b=0x0;for(;_0x2c478b<_0x5e3c9a['length'];){const _0x42fee4=_0x5e3c9a[_0x2c478b]['getDifference'](_0x22b366);_0x5e3c9a['splice'](_0x2c478b,0x1,..._0x42fee4),_0x2c478b+=_0x42fee4['length'];}}return _0x5e3c9a;}(_0x348e54,_0xedcc54);_0x575e31['length']&&this['_model']['change'](()=>{for(const _0x48a4f6 of _0x575e31){const _0x4a0661=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52b6d8,'accept');this['forceDefaultExecution'](()=>_0x4a0661([_0x48a4f6],_0x4008d1,_0x45e8ff));}});for(const _0x3da246 of _0x3af84c){let _0x49d2cb=null,_0x1ed596=_0x3da246['start'],_0x32ab83=_0x3da246['end'];for(const {suggestion:_0x3f2679,meta:_0x4f406d}of this['_findSuggestions'](_0x3da246,'formatInline')){if(!_0x4f406d['isOwn'])continue;if(_0x3f2679['subType']!=_0x52b6d8)continue;if(!Lt(_0x3f2679,_0x45e8ff))continue;const _0x4b5ae2=_0x3f2679['getFirstRange']();if(_0x4b5ae2['containsRange'](_0x3da246,!0x0))return null;_0x1ed596=_0x1ed596['isBefore'](_0x4b5ae2['start'])?_0x1ed596:_0x4b5ae2['start'],_0x32ab83=_0x32ab83['isAfter'](_0x4b5ae2['end'])?_0x32ab83:_0x4b5ae2['end'],_0x49d2cb?_0x4b5ae2['start']['isBefore'](_0x49d2cb['getFirstRange']()['start'])?(_0x49d2cb['removeMarkers'](),_0x49d2cb=_0x3f2679):_0x3f2679['removeMarkers']():_0x49d2cb=_0x3f2679;}const _0x3fa238=this['_model']['createRange'](_0x1ed596,_0x32ab83);if(_0x49d2cb)this['_setSuggestionRange'](_0x49d2cb,_0x3fa238);else{const _0x38724e=_0x4b80ff(),_0xf55789=_0x3f202d['id'];this['_setSuggestionData']({'id':_0x38724e,'type':'formatInline:'+_0x52b6d8,'data':_0x4008d1,'createdAt':new Date(),'authorId':_0xf55789,'attributes':_0x45e8ff}),this['_addSuggestionMarker']('formatInline:'+_0x52b6d8,_0x38724e,_0xf55789,_0x3fa238);}}return null;}['markBlockFormat'](_0x3251ea,_0x4a6e0a,_0x3a9749=[],_0x24fd69=null,_0x22a6d4={}){_0x4a6e0a['formatGroupId']||(_0x4a6e0a['formatGroupId']=_0x4a6e0a['commandName']),_0x4a6e0a['multipleBlocks']=_0x3251ea['is']('range'),_0x24fd69=_0x24fd69||Vt(_0x4a6e0a);const _0x11ce27=_0x3a9749['map'](_0x2bd42f=>Gt(_0x2bd42f,this['_model'])),_0x315ac1=_0x3251ea['is']('range')?_0x3251ea:Gt(_0x3251ea,this['_model']);if('never'===this['_trackFormatChanges']){const _0xd7c0e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24fd69,'accept');return this['forceDefaultExecution'](()=>_0xd7c0e0([_0x315ac1],_0x4a6e0a,_0x22a6d4)),null;}_0x11ce27['push'](_0x315ac1);let _0x1fac0d=!0x0;for(const _0xf2f926 of _0x11ce27)if(!this['_rangeIsInLocalUserInsertion'](_0xf2f926)){_0x1fac0d=!0x1;break;}if(_0x1fac0d&&'always'!==this['_trackFormatChanges']){const _0x4a45a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24fd69,'accept');return this['forceDefaultExecution'](()=>_0x4a45a9([_0x315ac1],_0x4a6e0a,_0x22a6d4)),null;}let _0x5ced6c=null,_0x4f588c=_0x315ac1['start'],_0x4dc3a4=_0x315ac1['end'];for(const {suggestion:_0x50a109,meta:_0x4a6875}of this['_findSuggestions'](_0x315ac1,'formatBlock')){if(!_0x4a6875['isOwn'])continue;if(_0x4a6875['isNextTo']||_0x4a6875['containsRangeInObject']||_0x4a6875['isInsideObject'])continue;if(_0x50a109['data']['formatGroupId']!=_0x4a6e0a['formatGroupId'])continue;if(!Lt(_0x50a109,_0x22a6d4))continue;const _0x32135e=_0x50a109['getFirstRange']();if(_0x50a109['subType']==_0x24fd69){if(_0x32135e['containsRange'](_0x315ac1,!0x0))return null;_0x4f588c=_0x4f588c['isBefore'](_0x32135e['start'])?_0x4f588c:_0x32135e['start'],_0x4dc3a4=_0x4dc3a4['isAfter'](_0x32135e['end'])?_0x4dc3a4:_0x32135e['end'],_0x5ced6c?_0x32135e['start']['isBefore'](_0x5ced6c['getFirstRange']()['start'])?(_0x5ced6c['removeMarkers'](),_0x5ced6c=_0x50a109):_0x50a109['removeMarkers']():_0x5ced6c=_0x50a109;}else{const _0x36ec3d=_0x315ac1['getIntersection'](_0x32135e);this['_cutOutSuggestionMarker'](_0x50a109,_0x36ec3d);}}const _0x5406a5=this['editor']['plugins']['get']('Users')['me'],_0x538118=_0x4b80ff(),_0x2a26bc=_0x5406a5['id'];if(_0x5ced6c)return this['_setSuggestionRange'](_0x5ced6c,this['_model']['createRange'](_0x4f588c,_0x4dc3a4)),_0x5ced6c;{const _0x1d9373=this['_setSuggestionData']({'id':_0x538118,'type':'formatBlock:'+_0x24fd69,'data':_0x4a6e0a,'createdAt':new Date(),'authorId':_0x2a26bc,'attributes':_0x22a6d4});return this['_addSuggestionMarker']('formatBlock:'+_0x24fd69,_0x538118,_0x2a26bc,this['_model']['createRange'](_0x4f588c,_0x4dc3a4)),_0x1d9373;}}['markMultiRangeBlockFormat'](_0x4f64d7,_0xdbb2e4,_0x3693cf=[],_0x3ef983=null,_0x2c343f={}){_0xdbb2e4['formatGroupId']||(_0xdbb2e4['formatGroupId']=_0xdbb2e4['commandName']);const _0x366ec6=_0x4f64d7[0x0];_0xdbb2e4['multipleBlocks']=_0x366ec6['is']('range'),_0x3ef983=_0x3ef983||Vt(_0xdbb2e4);const _0x39faf6=_0x3693cf['map'](_0x84ebe9=>Gt(_0x84ebe9,this['_model'])),_0x285488=_0x366ec6['is']('range')?_0x4f64d7:_0x4f64d7['map'](_0x63e3b3=>Gt(_0x63e3b3,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5b66af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef983,'accept');return this['forceDefaultExecution'](()=>_0x5b66af(_0x285488,_0xdbb2e4,_0x2c343f)),null;}_0x39faf6['push'](..._0x285488);let _0x1dd8ba=!0x0;for(const _0x1bac43 of _0x39faf6)if(!this['_rangeIsInLocalUserInsertion'](_0x1bac43)){_0x1dd8ba=!0x1;break;}if(_0x1dd8ba&&'always'!==this['_trackFormatChanges']){const _0x5c4ebd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef983,'accept');return this['forceDefaultExecution'](()=>_0x5c4ebd(_0x285488,_0xdbb2e4,_0x2c343f)),null;}const _0x555588=this['editor']['plugins']['get']('Users')['me'];for(const _0x5dcb1a of this['getSuggestions']()){if(_0x5dcb1a['author']['id']!=_0x555588['id'])continue;if('formatBlock'!=_0x5dcb1a['type']||_0x5dcb1a['data']['formatGroupId']!=_0xdbb2e4['formatGroupId'])continue;if(!Lt(_0x5dcb1a,_0x2c343f))continue;const _0x557f66=_0x5dcb1a['subType']==_0x3ef983;for(let _0x5d3d5f=0x0;_0x5d3d5f<_0x285488['length'];_0x5d3d5f++){const _0x475aa7=_0x285488[_0x5d3d5f];for(const _0x3bd198 of _0x5dcb1a['getMarkers']()){const _0x5ec19d=_0x3bd198['getRange']();if(_0x475aa7['isEqual'](_0x5ec19d)){_0x557f66?(_0x285488['splice'](_0x5d3d5f,0x1),_0x5d3d5f--):_0x5dcb1a['removeMarker'](_0x3bd198['name']);break;}}}}if(0x0==_0x285488['length'])return null;const _0x169864=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef983,'join');for(const _0x21da7e of this['getSuggestions']())if(_0x21da7e['author']['id']==_0x555588['id']&&'formatBlock'==_0x21da7e['type']&&_0x21da7e['data']['formatGroupId']==_0xdbb2e4['formatGroupId']&&_0x21da7e['subType']==_0x3ef983&&Lt(_0x21da7e,_0x2c343f)&&(_0x169864(_0x21da7e['getRanges'](),_0x285488)||_0x169864(_0x285488,_0x21da7e['getRanges']()))){for(const _0x2b8ece of _0x285488)_0x21da7e['addRange'](_0x2b8ece);return _0x21da7e;}const _0x48446c=_0x4b80ff(),_0x57e9d3=_0x555588['id'],_0x2e3c9b='formatBlock:'+_0x3ef983,_0x5b3f13=this['_setSuggestionData']({'id':_0x48446c,'type':_0x2e3c9b,'data':_0xdbb2e4,'createdAt':new Date(),'authorId':_0x57e9d3,'attributes':_0x2c343f});for(const _0x1f0541 of _0x285488)this['_addSuggestionMarker'](_0x2e3c9b,_0x48446c,_0x57e9d3,_0x1f0541,u['getMultiRangeId']());return _0x5b3f13;}['markDeletion'](_0x264f76,_0x323192=null,_0x57c82c={}){if(_0x264f76['isCollapsed'])return null;const _0x4f26af=this['editor']['plugins']['get']('Users')['me'],_0x2fa564=new _0x218be5(_0x264f76['start'],_0x264f76['end']);for(const {suggestion:_0x5e615f,meta:_0x1ff8e5}of this['_findSuggestions'](_0x2fa564,'insertion'))if(_0x1ff8e5['isOwn']&&!_0x1ff8e5['isNextTo']){if(_0x5e615f['isMultiRange']){const _0x2f1ffd=_0x5e615f['getRanges']()['filter'](_0xcf7662=>'$graveyard'!=_0xcf7662['root']['rootName']);_0x2f1ffd['every'](_0x39c4ad=>_0x2fa564['containsRange'](_0x39c4ad,!0x0))&&_0x5e615f['discard']();if(_0x2f1ffd['some'](_0x3f5504=>_0x3f5504['containsRange'](_0x2fa564,!0x0))){const _0x400db1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x323192,'accept');return this['forceDefaultExecution'](()=>_0x400db1([_0x2fa564],null,_0x57c82c)),null;}}else{const _0x4a7ac8=_0x2fa564['getIntersection'](_0x5e615f['getFirstRange']());null!==_0x4a7ac8&&_0x5e615f['_onDiscard']([_0x4a7ac8],null,_0x57c82c);}}if(_0x2fa564['detach'](),_0x2fa564['isCollapsed']||'$graveyard'==_0x2fa564['root']['rootName'])return null;let _0x541aa3=null,_0x12cff2=_0x2fa564['start'],_0x196069=_0x2fa564['end'];const _0x5730c7=this['_findSuggestions'](_0x2fa564,'deletion');for(const {suggestion:_0x5e45be,meta:_0x195145}of _0x5730c7){const _0x1e5d88=this['_model']['createRange'](_0x12cff2,_0x196069);if(_0x195145['isOwn']&&(this['_mergeNestedSuggestions']||!_0x195145['containsRangeInObject']&&!_0x195145['isInsideObject'])){if(_0x5e45be['isMultiRange']){if(!Lt(_0x5e45be,_0x57c82c))continue;let _0x460bbf=!0x0;for(const _0x32c4e1 of _0x5e45be['getRanges']()){if(_0x32c4e1['containsRange'](_0x1e5d88,!0x0))return _0x5e45be;_0x1e5d88['containsRange'](_0x32c4e1)||(_0x460bbf=!0x1);}_0x460bbf&&_0x5e45be['discard']();}else{const _0x461642=_0x5e45be['getFirstRange']();if(_0x461642['containsRange'](_0x1e5d88,!0x0))return _0x5e45be;if(!Lt(_0x5e45be,_0x57c82c)){_0x1e5d88['containsRange'](_0x461642)?_0x5e45be['removeMarkers']():_0x461642['containsPosition'](_0x12cff2)?_0x12cff2=_0x461642['end']:_0x461642['containsPosition'](_0x196069)&&(_0x196069=_0x461642['start']);continue;}_0x12cff2=_0x12cff2['isBefore'](_0x461642['start'])?_0x12cff2:_0x461642['start'],_0x196069=_0x196069['isAfter'](_0x461642['end'])?_0x196069:_0x461642['end'],_0x57c82c=Object['assign']({},_0x5e45be['attributes']),_0x541aa3?_0x461642['start']['isBefore'](_0x541aa3['getFirstRange']()['start'])?(_0x541aa3['removeMarkers'](),_0x541aa3=_0x5e45be):_0x5e45be['removeMarkers']():_0x541aa3=_0x5e45be;}}}if(_0x541aa3)return this['_setSuggestionRange'](_0x541aa3,this['_model']['createRange'](_0x12cff2,_0x196069)),_0x541aa3;{const _0x1316c1=_0x4b80ff(),_0xd60da7=this['_model']['createRange'](_0x12cff2,_0x196069),_0x44067b=_0x4f26af['id'],_0x155604=_0x323192?'deletion:'+_0x323192:'deletion',_0x62ece3=this['_setSuggestionData']({'id':_0x1316c1,'type':_0x155604,'createdAt':new Date(),'authorId':_0x44067b,'attributes':_0x57c82c});return this['_addSuggestionMarker'](_0x155604,_0x1316c1,_0x44067b,_0xd60da7),_0x62ece3;}}['markMultiRangeDeletion'](_0x108c79,_0x1e7017='multi',_0x4bbe8b={}){const _0xa54556=this['editor']['plugins']['get']('Users')['me'],_0x2961fc=_0x108c79['map'](_0x53dcf1=>new _0x218be5(_0x53dcf1['start'],_0x53dcf1['end'])),_0xba16f4=new Set();for(const {suggestion:_0x16cb03,meta:_0x2c8ed3}of this['_findSuggestions'](_0x2961fc,'insertion'))_0x2c8ed3['isOwn']&&!_0x2c8ed3['isNextTo']&&_0xba16f4['add'](_0x16cb03);for(const _0x153c6e of _0xba16f4)if(_0x153c6e['isMultiRange']){const _0x2eec4e=_0x153c6e['getRanges']();(!_0x153c6e['attributes']||!_0x153c6e['attributes']['skipNestingCheck'])&&(_0x2eec4e['every'](_0x4b5401=>_0x2961fc['some'](_0x195917=>_0x195917['containsRange'](_0x4b5401,!0x0)))&&_0x153c6e['discard']());if(_0x2961fc['every'](_0x2c58df=>_0x2eec4e['some'](_0x3f92f2=>_0x3f92f2['containsRange'](_0x2c58df,!0x0)))){const _0x57be2e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7017,'accept');return this['forceDefaultExecution'](()=>_0x57be2e(_0x108c79,null,_0x4bbe8b)),null;}}else{const _0x21c6f5=_0x153c6e['getFirstRange']();_0x2961fc['some'](_0xe19323=>_0xe19323['containsRange'](_0x21c6f5,!0x0))&&_0x153c6e['discard']();if(_0x2961fc['every'](_0x5cb34a=>_0x21c6f5['containsRange'](_0x5cb34a,!0x0))){const _0x12a45a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7017,'accept');return this['forceDefaultExecution'](()=>_0x12a45a(_0x2961fc,null,_0x4bbe8b)),null;}}const _0x2b28e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7017,'join');let _0x32d1f9=null;for(const _0xe34cb of this['getSuggestions']())if(_0xe34cb['author']['id']==_0xa54556['id']&&_0xe34cb['isInContent']&&'deletion'==_0xe34cb['type']&&_0xe34cb['subType']==_0x1e7017&&Lt(_0xe34cb,_0x4bbe8b)&&(_0x2b28e9(_0xe34cb['getRanges'](),_0x2961fc)||_0x2b28e9(_0x2961fc,_0xe34cb['getRanges']()))){if(_0x32d1f9){if(_0xe34cb['commentThread']&&_0xe34cb['commentThread']['length'])continue;for(const _0x310cd9 of _0xe34cb['getRanges']())_0x32d1f9['isIntersectingWithRange'](_0x310cd9)||_0x32d1f9['addRange'](_0x310cd9);_0xe34cb['removeMarkers']();}else{_0x32d1f9=_0xe34cb;for(const _0x549d8f of _0x2961fc)_0xe34cb['isIntersectingWithRange'](_0x549d8f)||_0xe34cb['addRange'](_0x549d8f);}}if(_0x32d1f9)return _0x32d1f9;_0xba16f4['clear']();for(const {suggestion:_0x2591aa,meta:_0x4d1e87}of this['_findSuggestions'](_0x2961fc,'deletion'))_0x4d1e87['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d1e87['containsRangeInObject']&&!_0x4d1e87['isInsideObject'])&&Lt(_0x2591aa,_0x4bbe8b)&&_0xba16f4['add'](_0x2591aa);for(const _0x1a58f0 of _0xba16f4){const _0xb9cb78=_0x1a58f0['getRanges']();if(!_0x4bbe8b||!_0x4bbe8b['skipNestingCheck']){if(_0x2961fc['every'](_0x4084f5=>_0xb9cb78['some'](_0x2411fd=>_0x2411fd['containsRange'](_0x4084f5,!0x0))))return _0x1a58f0;}(!_0x1a58f0['attributes']||!_0x1a58f0['attributes']['skipNestingCheck'])&&(_0xb9cb78['every'](_0x545c98=>_0x2961fc['some'](_0x363c98=>_0x363c98['containsRange'](_0x545c98,!0x0)))&&_0x1a58f0['discard']());}const _0x31d781=_0x4b80ff(),_0x37d1f6=_0xa54556['id'],_0x2ed3a9='deletion:'+_0x1e7017,_0x1f7257=this['_setSuggestionData']({'id':_0x31d781,'type':_0x2ed3a9,'createdAt':new Date(),'authorId':_0x37d1f6,'attributes':_0x4bbe8b});for(const _0x2cb1fe of _0x2961fc)_0x2cb1fe['detach'](),_0x2cb1fe['isCollapsed']||'$graveyard'==_0x2cb1fe['root']['rootName']||this['_addSuggestionMarker'](_0x2ed3a9,_0x31d781,_0x37d1f6,_0x2cb1fe,u['getMultiRangeId']());return _0x1f7257;}['markAttributeChange'](_0x3986de,_0x4708fa,_0x4f42b2,_0x436c42,_0x5993d1){if(_0x3986de['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x143733=this['editor']['plugins']['get']('Users')['me']['id'],_0x39e3ff=Array['from'](this['_suggestions']['values']())['filter'](_0x5c19c0=>'attribute'==_0x5c19c0['type']&&_0x5c19c0['data']['key']==_0x4708fa&&_0x5c19c0['isIntersectingWithRange'](_0x3986de));if('default'===this['_trackFormatChanges']){const _0x485796=this['_findSuggestions'](_0x3986de,'insertion')['filter'](({meta:_0x1cf972})=>_0x1cf972['isOwn']&&!_0x1cf972['isInsideObject']&&!_0x1cf972['isNextTo'])['map'](({suggestion:_0x2dc456})=>_0x2dc456);_0x39e3ff['unshift'](..._0x485796);}const _0x4461e8=new Map([[_0x3986de,_0x4f42b2]]);for(const _0x258bf7 of _0x39e3ff){const _0x58ab57='attribute'==_0x258bf7['type']?_0x258bf7['data']['oldValue']:void 0x0,_0x2e2947=_0x258bf7['getFirstRange'](),_0xac799=Array['from'](_0x4461e8['keys']())['find'](_0x2f72ca=>_0x2f72ca['isIntersecting'](_0x2e2947));if(!_0xac799)continue;const _0x3ad2f3=_0xac799['getDifference'](_0x2e2947);this['_isBlockAttribute'](_0x4708fa)&&'insertion'==_0x258bf7['type']&&0x0!=_0x3ad2f3['length']||(_0x4461e8['delete'](_0xac799),_0x3ad2f3['forEach'](_0x296a15=>{_0x4461e8['set'](_0x296a15,_0x4f42b2);}),'insertion'!=_0x258bf7['type']&&_0x58ab57!=_0x436c42&&_0x4461e8['set'](_0xac799['getIntersection'](_0x2e2947),_0x58ab57));}const _0x3e1a7f=[];for(const [_0x575409,_0x483e75]of _0x4461e8){const _0x47c388=_0x4b80ff(),_0xb57c66={'key':_0x4708fa,'oldValue':_0x483e75,'newValue':_0x436c42};_0x4708fa['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':_0x4708fa});const _0x1842c0=('attribute:'+(_0x4708fa+'|'+Vt({'newValue':_0x436c42})))['substring'](0x0,0x3c),_0x2bda37=this['_setSuggestionData']({'id':_0x47c388,'type':_0x1842c0,'data':_0xb57c66,'createdAt':new Date(),'authorId':_0x143733,'attributes':_0x5993d1});_0x3e1a7f['push'](_0x2bda37),this['_addSuggestionMarker'](_0x1842c0,_0x47c388,_0x143733,_0x575409);}return _0x3e1a7f;}['enableDefaultAttributesIntegration'](_0x156e31){this['enableCommand'](_0x156e31,(_0x5cbb8e,..._0x46479c)=>{this['_recordAttributeChanges'](()=>{_0x5cbb8e(..._0x46479c);});});}['registerBlockAttribute'](_0x24d269){this['_blockAttributeKeys']['add'](_0x24d269);}['registerInlineAttribute'](_0x2c20d4){this['_inlineAttributeKeys']['add'](_0x2c20d4);}['_getAttributeKey'](_0x28893e){return'attribute'==_0x28893e['type']?_0x28893e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x38095e,_0x41331e){const _0x15c48f=_0x38095e['getFirstMarker']();this['_model']['change'](_0x31b087=>{_0x31b087['updateMarker'](_0x15c48f,{'range':_0x41331e});});}['_addThreadToSuggestion'](_0x3fb674){const _0x378dd4=_0x3fb674['id'],_0x24b234=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x378dd4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x24b234,'threadId':_0x378dd4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3915a1=this['_commentsRepository']['getCommentThread'](_0x378dd4);_0x3915a1['unbind']('isRemovable'),_0x3915a1['isRemovable']=!0x1,_0x3fb674['commentThread']=_0x3915a1;}['_checkSuggestionCorrectness'](_0x96bbfb,_0x5488ca,_0x5bed9a,_0x293e23){if(_0x96bbfb['type']!=_0x5488ca||_0x96bbfb['subType']!=_0x5bed9a||_0x96bbfb['creator']['id']!=_0x293e23)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x40a0bd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x75d0e8,_0x5ee0db){const _0x468920=_0x75d0e8['getFirstRange']();if(_0x5ee0db['isEqual'](_0x468920))_0x75d0e8['removeMarkers']();else{if(_0x468920['containsRange'](_0x5ee0db)){const _0x51fade=this['_model']['createPositionAt'](_0x5ee0db['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x75d0e8,this['_model']['createRange'](_0x468920['start'],_0x51fade));const _0x2d9b96=_0x4b80ff(),_0x1ac7c4=_0x75d0e8['creator']['id'],_0x44fdec=_0x75d0e8['type']+':'+_0x75d0e8['subType'];this['_setSuggestionData']({'id':_0x2d9b96,'type':_0x44fdec,'createdAt':new Date(),'authorId':_0x1ac7c4,'data':_0x75d0e8['data'],'attributes':_0x75d0e8['attributes']});const _0x5dcc53=this['_model']['createPositionAt'](_0x5ee0db['end']['parent'],'after'),_0x4f53c5=this['_model']['createRange'](_0x5dcc53,_0x468920['end']);this['_addSuggestionMarker'](_0x44fdec,_0x2d9b96,_0x1ac7c4,_0x4f53c5);}else{if(_0x468920['containsPosition'](_0x5ee0db['start'])){const _0x46a2bb=this['_model']['createPositionAt'](_0x5ee0db['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x75d0e8,this['_model']['createRange'](_0x468920['start'],_0x46a2bb));}else{const _0x5a1372=this['_model']['createPositionAt'](_0x5ee0db['end']['parent'],'after');this['_setSuggestionRange'](_0x75d0e8,this['_model']['createRange'](_0x5a1372,_0x468920['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x425119){for(const {suggestion:_0x45bf5a,meta:_0x823ba8}of this['_findSuggestions'](_0x425119,'insertion')){if(!_0x823ba8['isOwn'])continue;const _0x1c7e03=_0x45bf5a['getRanges']();for(const _0x4ff874 of _0x1c7e03)if(!_0x425119['getDifference'](_0x4ff874)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2f95f1){const _0x4a3e7f=this['editor']['plugins']['get']('Users')['getUser'](_0x2f95f1);if(!_0x4a3e7f)throw new _0x40a0bd('track-changes-user-not-found',this);return _0x4a3e7f;}['_getExternalAuthor'](_0x56d8cc){const _0x536627=this['editor']['plugins']['get']('Users'),_0xb2b89f=_0x2c77f1('external:'+_0x56d8cc),_0x302b32=_0x536627['getUser'](_0xb2b89f);return _0x302b32||_0x536627['addUser']({'id':_0xb2b89f,'name':_0x56d8cc});}['_createSuggestion'](_0x277f9a,_0x2aa694,_0x481281,_0xb03255,_0x574d2e){const _0x2d1a5c=this['_getAuthorFromId'](_0xb03255),_0x2199a1=this['_suggestionFactory']['buildSuggestion'](_0x277f9a,_0x2aa694,_0x481281,_0x2d1a5c,_0x574d2e,_0x486e26=>{this['_updateSuggestionData'](_0x481281,{'attributes':_0x486e26});const _0xd0163b=this['getSuggestion'](_0x481281);this['_joinWithAdjacentSuggestions'](new Set([_0xd0163b])),this['_refreshSuggestionsChain'](new Set([_0xd0163b]));});return this['listenTo'](_0x2199a1,'accept',()=>{this['_updateSuggestionData'](_0x481281,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2199a1,'discard',()=>{this['_updateSuggestionData'](_0x481281,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x481281,_0x2199a1),this['_suggestionState']['set'](_0x2199a1,'notReady'),_0x2199a1;}['_splitMarkerName'](_0x1d05d3){const _0x49d89a=_0x1d05d3['split'](':');return{'group':_0x49d89a[0x0],'type':_0x49d89a[0x1],'subType':_0x49d89a['length']>=0x5?_0x49d89a[0x2]:null,'id':_0x49d89a['length']<0x5?_0x49d89a[0x2]:_0x49d89a[0x3],'authorId':_0x49d89a['length']<0x5?_0x49d89a[0x3]:_0x49d89a[0x4],'markerCount':0x6==_0x49d89a['length']?_0x49d89a[0x5]:null};}['_breakSuggestionMarker'](_0x3dff0f,_0x3ad6ce,_0x548f2a){const _0x22bd5c=_0x3dff0f['getFirstRange'](),_0x102c0d=_0x22bd5c['start'],_0x3c3f50=_0x22bd5c['end'];this['_setSuggestionRange'](_0x3dff0f,this['_model']['createRange'](_0x102c0d,_0x3ad6ce));const _0x59f71d=_0x4b80ff(),_0x18d4d7=_0x3dff0f['creator']['id'],_0x351629=_0x3dff0f['type']+(_0x3dff0f['subType']?':'+_0x3dff0f['subType']:'');this['_setSuggestionData']({'id':_0x59f71d,'type':_0x351629,'createdAt':new Date(),'authorId':_0x18d4d7,'originalSuggestionId':_0x3dff0f['id'],'attributes':_0x3dff0f['attributes'],'data':_0x3dff0f['data']});const _0x33cb98=this['_getAttributeKey'](_0x3dff0f);('formatBlock'==_0x3dff0f['type']||_0x33cb98&&this['_isBlockAttribute'](_0x33cb98))&&(_0x548f2a=this['_model']['createPositionBefore'](_0x548f2a['parent'])),this['_addSuggestionMarker'](_0x351629,_0x59f71d,_0x18d4d7,this['_model']['createRange'](_0x548f2a,_0x3c3f50));}['_findSuggestions'](_0xefe4f,_0x3813d4=null){const _0x556597=[],_0xf65783=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xefe4f)||(_0xefe4f=[_0xefe4f]);for(const _0x49f9c9 of this['getSuggestions']()){if(!_0x49f9c9['isInContent'])continue;if(_0x3813d4&&_0x49f9c9['type']!=_0x3813d4)continue;let _0x5b132e=!0x1;for(const _0x104eec of _0x49f9c9['getRanges']()){for(const _0x3535e6 of _0xefe4f){const _0x1009d0=_0x3535e6['start']['isEqual'](_0x104eec['end'])||_0x3535e6['end']['isEqual'](_0x104eec['start']);if(_0x1009d0||_0x3535e6['getIntersection'](_0x104eec)){const _0x80f5fc=_0x3535e6['containsRange'](_0x104eec)&&Rt(this['_model']['schema'],_0x104eec['start'],_0x3535e6),_0x25e81f=_0x104eec['containsRange'](_0x3535e6)&&Rt(this['_model']['schema'],_0x3535e6['start'],_0x104eec);_0x556597['push']({'suggestion':_0x49f9c9,'meta':{'isOwn':_0xf65783==_0x49f9c9['author'],'isNextTo':_0x1009d0,'isInsideObject':_0x80f5fc,'containsRangeInObject':_0x25e81f}}),_0x5b132e=!0x0;break;}}if(_0x5b132e)break;}}return _0x556597;}['_addSuggestionMarker'](_0x473ce3,_0x285327,_0x55b4f5,_0x3adfb9,_0x22a3e3){this['_model']['change'](_0x37e843=>{let _0x31d09c='suggestion:'+_0x473ce3+':'+_0x285327+':'+_0x55b4f5;_0x22a3e3&&(_0x31d09c=_0x31d09c+':'+_0x22a3e3),_0x37e843['addMarker'](_0x31d09c,{'range':_0x3adfb9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x20f43f){const _0x21365b=_0x20f43f['previous'],_0x9b58e9=_0x20f43f['next'];_0x20f43f['previous']=null,_0x20f43f['next']=null,null!=_0x21365b&&_0x21365b['next']==_0x20f43f&&(_0x21365b['next']=_0x9b58e9),null!=_0x9b58e9&&_0x9b58e9['previous']==_0x20f43f&&(_0x9b58e9['previous']=_0x21365b),'ready'==this['_suggestionState']['get'](_0x20f43f)&&(this['_suggestionState']['set'](_0x20f43f,'removed'),this['fire']('suggestionUnloaded',_0x20f43f,_0x21365b,_0x9b58e9));}['_setSuggestionData'](_0x11ca98){const _0x14aa43=_0x11ca98['id'],_0x1cedc6=this['addSuggestionData'](_0x11ca98);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x511592=this['editor']['plugins']['get']('PendingActions'),_0x138dd3=_0x1cedc6['hasComments'],_0x1f79d3=_0x1cedc6['subType']?_0x1cedc6['type']+':'+_0x1cedc6['subType']:_0x1cedc6['type'],_0x3dd7af=this['editor']['locale'],_0x1d1ac6=_0x511592['add'](o(_0x3dd7af,'PENDING_ACTION_SUGGESTION')),_0x105059={'id':_0x14aa43,'type':_0x1f79d3,'hasComments':_0x138dd3,'data':_0x11ca98['data']||null,'originalSuggestionId':_0x11ca98['originalSuggestionId']||null,'attributes':_0x1cedc6['attributes']};this['_adapter']['addSuggestion'](_0x105059)['then'](_0x2d3a82=>{_0x1cedc6['_saved']=!0x0,_0x511592['remove'](_0x1d1ac6),_0x2d3a82&&_0x2d3a82['createdAt']&&(this['_suggestions']['get'](_0x14aa43)['createdAt']=_0x2d3a82['createdAt']);})['catch'](_0x2e3025=>{throw _0x23467f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1cedc6['discard']();}),_0x1cedc6['stopListening'](),this['_suggestions']['delete'](_0x1cedc6['id']),this['_suggestionState']['delete'](_0x1cedc6),_0x2e3025;});}return _0x1cedc6;}['_isBlockAttribute'](_0x279a57){return this['_blockAttributeKeys']['has'](_0x279a57);}['_updateSuggestionData'](_0x2d5c8f,_0x4ae82b){const _0x39eff1=this['editor']['plugins']['get']('PendingActions'),_0x13f990=this['getSuggestion'](_0x2d5c8f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x13f990['_saved']){const _0x21d407=_0x39eff1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2d5c8f,_0x4ae82b)['then'](()=>{_0x39eff1['remove'](_0x21d407);});}else _0x13f990['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2d5c8f,_0x4ae82b);});}}['_getSuggestionData'](_0x4f93b8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x40a0bd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f93b8);}['_handleNewSuggestionMarker'](_0x5cce81){const {id:_0x3fdd53,type:_0x4e540b,subType:_0x4e1e34,authorId:_0x18a406}=this['_splitMarkerName'](_0x5cce81),_0x3bc73b=this['_suggestions']['get'](_0x3fdd53)||this['_createSuggestion'](_0x4e540b,_0x4e1e34,_0x3fdd53,_0x18a406,{});switch(this['_checkSuggestionCorrectness'](_0x3bc73b,_0x4e540b,_0x4e1e34,_0x18a406),this['_suggestionState']['get'](_0x3bc73b)){case'notReady':this['_getSuggestionData'](_0x3fdd53)['then'](_0x5a6fc2=>{let _0x1ed006=Promise['resolve']();_0x5a6fc2['hasComments']&&(_0x1ed006=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fdd53})),_0x1ed006['then'](()=>{this['addSuggestionData'](_0x5a6fc2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3bc73b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fdd53,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3bc73b,'ready'),this['fire']('suggestionLoaded',_0x3bc73b);break;case'ready':this['fire']('suggestionChanged',_0x3bc73b);}return _0x3bc73b['addMarkerName'](_0x5cce81),_0x3bc73b;}['_refreshSuggestionsChain'](_0x55fd85){const _0x367bca=Array['from'](_0x55fd85),_0x5614b4=_0x367bca['filter'](_0x3f0ac2=>'attribute'==_0x3f0ac2['type']);this['_refreshAttributeSuggestionsChain'](_0x5614b4);const _0x194932=_0x367bca['filter'](_0x540b07=>!_0x540b07['isMultiRange']&&'attribute'!=_0x540b07['type']),_0x269b18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ebfac=>!_0x3ebfac['isMultiRange']&&'attribute'!=_0x3ebfac['type']),_0xc45100=_0x269b18['filter'](_0x5a1832=>!_0x55fd85['has'](_0x5a1832)),_0x405c97=new Map(_0x269b18['map'](_0x552217=>[_0x552217,this['_suggestionFactory']['getSuggestionCallback'](_0x552217['type'],_0x552217['subType'],'chain')])),_0x35cfd9=new Map(_0x269b18['map'](_0xe158c8=>[_0xe158c8,_0xe158c8['getFirstRange']()])),_0x2f8a9e=new Set(),_0x322f30=new Set();for(let _0x3fa493=0x0;_0x3fa493<_0x194932['length'];_0x3fa493++)_0x23b693(_0x194932[_0x3fa493],_0x194932,_0x3fa493+0x1);for(let _0x1373b1=0x0;_0x1373b1<_0x194932['length'];_0x1373b1++)_0x23b693(_0x194932[_0x1373b1],_0xc45100,0x0);const _0x26ae97=new Set();for(let _0x11a911=0x0;_0x11a911<_0x194932['length'];_0x11a911++){const _0x1a5939=_0x194932[_0x11a911];!_0x322f30['has'](_0x1a5939)&&_0x1a5939['previous']&&(_0x26ae97['add'](_0x1a5939['previous']),_0x1a5939['previous']['next']===_0x1a5939&&(_0x1a5939['previous']['next']=null),_0x1a5939['previous']=null),!_0x2f8a9e['has'](_0x1a5939)&&_0x1a5939['next']&&(_0x26ae97['add'](_0x1a5939['next']),_0x1a5939['next']['previous']===_0x1a5939&&(_0x1a5939['next']['previous']=null),_0x1a5939['next']=null);}function _0x23b693(_0x719dd7,_0x1aa7df,_0x48c4eb){for(let _0x5116a9=_0x48c4eb;_0x5116a9<_0x1aa7df['length'];_0x5116a9++){const _0x5aa29a=_0x12db53(_0x719dd7,_0x1aa7df[_0x5116a9]);_0x5aa29a&&(_0x5aa29a[0x0]['next']=_0x5aa29a[0x1],_0x5aa29a[0x1]['previous']=_0x5aa29a[0x0],_0x2f8a9e['add'](_0x5aa29a[0x0]),_0x322f30['add'](_0x5aa29a[0x1]));}}function _0x12db53(_0x3be22b,_0x35cfd4){if(_0x3be22b['author']['id']!==_0x35cfd4['author']['id'])return null;const _0x2ef9dd=_0x405c97['get'](_0x3be22b)(_0x3be22b,_0x35cfd4,_0x35cfd9['get'](_0x3be22b),_0x35cfd9['get'](_0x35cfd4));if(!_0x2ef9dd)return null;return _0x405c97['get'](_0x35cfd4)(_0x3be22b,_0x35cfd4,_0x35cfd9['get'](_0x3be22b),_0x35cfd9['get'](_0x35cfd4))?_0x2ef9dd[0x1]['commentThread']&&_0x2ef9dd[0x1]['commentThread']['length']?null:_0x2ef9dd:null;}_0x26ae97['size']&&this['_refreshSuggestionsChain'](_0x26ae97);}['_refreshAttributeSuggestionsChain'](_0x3d5b4f){if(0x0==_0x3d5b4f['length'])return;const _0x1962fe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x361551=>'attribute'==_0x361551['type']&&_0x361551['_isDataLoaded']),_0x1c8270=[],_0x1def64=new Map();for(const _0x187821 of _0x1962fe){const _0x448853=_0x2c77f1(_0x187821['attributes']);_0x1def64['has'](_0x448853)||(_0x1def64['set'](_0x448853,_0x1c8270['length']),_0x1c8270['push']([]));const _0x1a1d0d=_0x1def64['get'](_0x448853);_0x1c8270[_0x1a1d0d]['push'](_0x187821);}!(function(){_0x1c8270['sort']((_0x146531,_0x1bd39f)=>{const _0x183359=_0x146531[0x0]['createdAt'],_0x4598b4=_0x1bd39f[0x0]['createdAt'];return _0x183359==_0x4598b4?_0x146531[0x0]['attributes']['groupId']<_0x1bd39f[0x0]['attributes']['groupId']?-0x1:0x1:_0x183359<_0x4598b4?-0x1:0x1;});for(const _0x3629f5 of _0x1c8270)_0x3629f5['sort']((_0x4b068d,_0x30b8fc)=>_0x4b068d['id']<_0x30b8fc['id']?-0x1:0x1);}());for(let _0x17842e=0x0;_0x17842e<_0x1c8270['length'];_0x17842e++){if(0x0==_0x1c8270[_0x17842e]['length'])continue;const _0x47ef44=[];for(let _0x59d7c6=_0x17842e+0x1;_0x59d7c6<_0x1c8270['length'];_0x59d7c6++)0x0!=_0x1c8270[_0x59d7c6]['length']&&_0x1a8162(_0x1c8270[_0x17842e],_0x1c8270[_0x59d7c6])&&_0x47ef44['push'](_0x59d7c6);for(const _0x51c2c8 of _0x47ef44)_0x1c8270[_0x17842e]=_0x1c8270[_0x17842e]['concat'](_0x1c8270[_0x51c2c8]),_0x1c8270[_0x51c2c8]=[];}for(const _0x4d7b52 of _0x1c8270)for(let _0x19d494=0x0;_0x19d494<_0x4d7b52['length'];_0x19d494++)_0x4d7b52[_0x19d494]['next']=_0x4d7b52[_0x19d494+0x1]||null;for(const _0x200d43 of _0x1c8270)for(let _0x50a02e=0x0;_0x50a02e<_0x200d43['length'];_0x50a02e++)_0x200d43[_0x50a02e]['previous']=_0x200d43[_0x50a02e-0x1]||null;function _0x1a8162(_0x1d708c,_0x280833){if(_0x1d708c[0x0]['attributes']['groupId']!==_0x280833[0x0]['attributes']['groupId']&&_0x1d708c[0x0]['author']!==_0x280833[0x0]['author'])return!0x1;if(!function(_0x4fe12a,_0x7912f5){if(!_0x4fe12a['hasComments']&&!_0x7912f5['hasComments'])return!0x0;if(_0x4fe12a['hasComments']&&_0x7912f5['hasComments'])return!0x1;if(_0x4fe12a['hasComments']&&_0x7912f5['createdAt']<_0x4fe12a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x7912f5['hasComments']&&_0x4fe12a['createdAt']<_0x7912f5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d708c[0x0],_0x280833[0x0]))return!0x1;const _0x2b2875=Bt(_0x1d708c[0x0]['attributes'],'groupId'),_0x2d20fd=Bt(_0x280833[0x0]['attributes'],'groupId');if(!_0xf2bb64(_0x2b2875,_0x2d20fd))return!0x1;return!!_0x1d708c['every'](_0x5cebd3=>_0x280833['some'](_0x2948c1=>_0x5cebd3['getFirstRange']()['isEqual'](_0x2948c1['getFirstRange']())))&&_0x280833['every'](_0x4d6222=>_0x1d708c['some'](_0x50373e=>_0x4d6222['getFirstRange']()['isEqual'](_0x50373e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1af1d1){const _0x538624=Array['from'](_0x1af1d1),_0x4bf689=this['getSuggestions']({'skipNotAttached':!0x0}),_0x15d6b7=_0x4bf689['filter'](_0x45994f=>!_0x1af1d1['has'](_0x45994f)),_0x1dfea2=new Map(_0x538624['map'](_0x42624a=>[_0x42624a,this['_suggestionFactory']['getSuggestionCallback'](_0x42624a['type'],_0x42624a['subType'],'join')])),_0x3cd32d=new Map(_0x4bf689['map'](_0xbaa0d3=>[_0xbaa0d3,_0xbaa0d3['getRanges']()]));for(let _0x189c48=0x0;_0x189c48<_0x538624['length'];_0x189c48++){if(_0x1a2160(this,_0x538624[_0x189c48],_0x538624,_0x189c48+0x1))return!0x0;}for(let _0x2c2cd8=0x0;_0x2c2cd8<_0x538624['length'];_0x2c2cd8++){if(_0x1a2160(this,_0x538624[_0x2c2cd8],_0x15d6b7,0x0))return!0x0;}return!0x1;function _0x1a2160(_0x123421,_0x4e680b,_0x794211,_0x49ac8c){for(let _0x1d39d2=_0x49ac8c;_0x1d39d2<_0x794211['length'];_0x1d39d2++){const _0x22b763=_0x794211[_0x1d39d2];if(_0x22b763['type']!==_0x4e680b['type']||_0x22b763['author']['id']!==_0x4e680b['author']['id']||_0x22b763['subType']!==_0x4e680b['subType'])continue;if(!Pt(_0x4e680b,_0x22b763,['groupId']))continue;if('attribute'==_0x4e680b['type']&&_0x4e680b['data']['oldValue']!=_0x22b763['data']['oldValue'])continue;if('attribute'==_0x4e680b['type']&&_0x123421['_isBlockAttribute'](_0x4e680b['data']['key']))continue;if('formatBlock'==_0x4e680b['type']){const _0x199c45=_0x123421['editor']['model'],_0x2ed50b=_0x4e680b['getContainedElement']();if(_0x2ed50b&&(_0x199c45['schema']['isObject'](_0x2ed50b)||_0x199c45['schema']['isLimit'](_0x2ed50b)))continue;}const _0x1dc9a6=_0x1dfea2['get'](_0x4e680b),_0x588f51=_0x3cd32d['get'](_0x4e680b),_0x3ae123=_0x3cd32d['get'](_0x22b763),_0x3be97c=_0x4e680b['commentThread']&&_0x4e680b['commentThread']['length'],_0x573f7b=_0x22b763['commentThread']&&_0x22b763['commentThread']['length'];if(!_0x3be97c&&_0x1dc9a6(_0x3ae123,_0x588f51))return _0x123421['_joinSuggestions'](_0x22b763,_0x4e680b),_0x3cd32d['delete'](_0x4e680b),!0x0;if(!_0x573f7b&&_0x1dc9a6(_0x588f51,_0x3ae123))return _0x123421['_joinSuggestions'](_0x4e680b,_0x22b763),_0x3cd32d['delete'](_0x22b763),!0x0;}return!0x1;}}['_joinSuggestions'](_0x236821,_0x401f33){if(_0x236821['isMultiRange']){for(const _0x160cb8 of _0x401f33['getRanges']())_0x236821['addRange'](_0x160cb8);}else{const _0x11d1fd=_0x401f33['getFirstRange']()['end'];this['_setSuggestionRange'](_0x236821,this['_model']['createRange'](_0x236821['getFirstRange']()['start'],_0x11d1fd));}_0x401f33['removeMarkers']();}['_getMarkerAnnouncementText'](_0x52e145,_0x35908d){const _0x465466=_0x52e145['startsWith']('format')||_0x52e145['startsWith']('attribute')?'FORMATTING':_0x52e145['toUpperCase']();return o(this['editor']['locale'],_0x35908d+'_'+_0x465466+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4f73f4=this['editor'];if(!_0x4f73f4['ui'])return;const {ariaLiveAnnouncer:_0x1e1c64}=_0x4f73f4['ui'];_0x3e7c00(this['_model'],({left:_0x341560,entered:_0x1b8f2d})=>{for(const _0x487758 of _0x341560){const {group:_0x1b1bbd,type:_0x25a360}=this['_splitMarkerName'](_0x487758['name']);if('suggestion'===_0x1b1bbd){_0x1e1c64['announce'](this['_getMarkerAnnouncementText'](_0x25a360,'LEAVE'));break;}}for(const _0x2992f2 of _0x1b8f2d){const {group:_0x553574,type:_0xce603}=this['_splitMarkerName'](_0x2992f2['name']);if('suggestion'===_0x553574){_0x1e1c64['announce'](this['_getMarkerAnnouncementText'](_0xce603,'ENTER'));break;}}});}['_processAttributeChanges'](_0x46778b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ce92d=this['editor'],_0x60aa52=_0x3ce92d['model']['document']['differ']['getChanges']();if(0x0==_0x60aa52['length'])return!0x1;const _0x4ccb8e=[],_0x4d286b=_0x60aa52['filter'](_0xfc3b15=>'attribute'==_0xfc3b15['type']),_0x3240b1=_0x60aa52['filter'](_0x30be86=>'insert'==_0x30be86['type']&&'$text'!=_0x30be86['name']),_0x1ade1d=_0x60aa52['filter'](_0x1b01d3=>'remove'==_0x1b01d3['type']&&'$text'!=_0x1b01d3['name']);for(const _0x533b04 of _0x4d286b)_0x4ccb8e['push']({'key':_0x533b04['attributeKey'],'newValue':_0x533b04['attributeNewValue'],'oldValue':_0x533b04['attributeOldValue'],'range':Ot(_0x533b04['range'],_0x3ce92d['model'])});for(const _0x380ee5 of _0x3240b1){const _0x3ec349=_0x1ade1d['find'](_0xcc8582=>_0xcc8582['position']['isEqual'](_0x380ee5['position']));_0x3ec349&&_0x4ccb8e['push']({'key':m,'newValue':_0x380ee5['name'],'oldValue':_0x3ec349['name'],'range':_0x3ce92d['model']['createRangeOn'](_0x380ee5['position']['nodeAfter'])});}return 0x0!=_0x4ccb8e['length']&&this['_reduceExistingSuggestions'](_0x46778b,_0x4ccb8e);}['_processAttributeSuggestions'](_0x32076e){let _0x7379b2=!0x1;const _0x1d2ed8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x503ec6=>_0x503ec6['data']['newRange']&&_0x503ec6['name']['startsWith']('suggestion:attribute:'));for(const _0x5c6399 of _0x1d2ed8){const {subType:_0xe94681,id:_0x372f33}=this['_splitMarkerName'](_0x5c6399['name']),_0x52b470=_0xe94681['split']('|')[0x0];for(const _0x1efca6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1efca6['id']!=_0x372f33&&'attribute'==_0x1efca6['type']&&_0x1efca6['data']&&_0x1efca6['data']['key']==_0x52b470&&_0x1efca6['getFirstRange']()['isIntersecting'](_0x5c6399['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1efca6,_0x5c6399['data']['newRange'],_0x32076e),_0x7379b2=!0x0);}return _0x7379b2;}['_recordAttributeChanges'](_0x1bfb97){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1bfb97();}['_isRegisteredAttribute'](_0x3d79fc){const _0x44d0b2=this['_isBlockAttribute'](_0x3d79fc),_0x4c2562=this['_inlineAttributeKeys']['has'](_0x3d79fc);return _0x44d0b2||_0x4c2562;}['_reduceExistingSuggestions'](_0x24c226,_0x33b916){if(0x0==_0x33b916['length'])return!0x1;let _0x42a815=!0x1;for(const _0x33a8cb of _0x33b916){const _0x483634=this['_findSuggestions'](_0x33a8cb['range'],'attribute')['filter'](_0x5f89bd=>!_0x5f89bd['meta']['isNextTo'])['map'](_0x1c54f8=>_0x1c54f8['suggestion']),_0xdaa1ad=_0x2c77f1({'newValue':_0x33a8cb['newValue']});_0x483634['filter'](_0x1d1255=>{const [_0x29cf1c,_0x32ae23]=_0x1d1255['subType']['split']('|');return _0x29cf1c==_0x33a8cb['key']&&_0x32ae23!=_0xdaa1ad;})['forEach'](_0x4c0036=>{this['_reduceSuggestionAttributeRange'](_0x4c0036,_0x33a8cb['range'],_0x24c226),_0x42a815=!0x0;});}return _0x42a815;}['_reduceSuggestionAttributeRange'](_0x1aa1b9,_0x1b7c6f,_0x50d871){const _0x3eda50=_0x1aa1b9['getFirstRange']()['getDifference'](_0x1b7c6f);0x0!==_0x3eda50['length']?0x1!==_0x3eda50['length']?this['_breakSuggestionMarker'](_0x1aa1b9,_0x1b7c6f['start'],_0x1b7c6f['end']):this['_setSuggestionRange'](_0x1aa1b9,_0x3eda50[0x0]):_0x50d871['removeMarker'](_0x1aa1b9['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x99471e){this['_editor']=_0x99471e,this['_model']=_0x99471e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xc8cb82,_0x4b1ac3,_0x3c5b8b,_0x2e709f,_0x4ea6bc,_0x55be8d){return new u(this['_model'],{'type':_0xc8cb82,'subType':_0x4b1ac3,'id':_0x3c5b8b,'author':_0x2e709f,'creator':_0x2e709f,'attributes':_0x4ea6bc,'onAttributesChange':_0x55be8d,'onAccept':(..._0x49c3d5)=>this['getSuggestionCallback'](_0xc8cb82,_0x4b1ac3,'accept')(..._0x49c3d5),'onDiscard':(..._0x37f029)=>this['getSuggestionCallback'](_0xc8cb82,_0x4b1ac3,'discard')(..._0x37f029)});}['registerCustomCallback'](_0x526fb8,_0x1aa27b,_0x297014,_0x2e0861){const _0x5b6990=_0x526fb8+':'+_0x1aa27b+':'+_0x297014;this['_customCallbacks']['set'](_0x5b6990,_0x2e0861);}['getSuggestionCallback'](_0x32155a,_0x41ede7,_0x421522){const _0x5440b8=_0x32155a+':'+_0x41ede7+':'+_0x421522;return this['_customCallbacks']['get'](_0x5440b8)||this['_defaultCallbacks']['get'](_0x32155a+':'+_0x421522);}['_registerDefaultCallbacks'](){const _0x5e4861=()=>!0x1,_0x45bd0c=_0x24da84=>{_0x24da84['sort']((_0xe3f3a1,_0x9d8ae7)=>_0xe3f3a1['start']['isBefore'](_0x9d8ae7['start'])?0x1:-0x1),this['_model']['change'](_0x1a563e=>{for(const _0x2a91a2 of _0x24da84){let _0x25b5e1;_0x25b5e1=_0x2a91a2['end']['isAtEnd']&&_0x2a91a2['end']['parent']==_0x2a91a2['start']['nodeAfter']?_0x1a563e['createSelection'](_0x2a91a2['start']['nodeAfter'],'on'):_0x1a563e['createSelection'](_0x2a91a2),this['_model']['deleteContent'](_0x25b5e1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x9f4ce0=(_0x34e058,_0x1ee781)=>{_0x1ee781&&this['_model']['change'](_0x425b2f=>{const {commandName:_0x38467b,commandParams:_0x42ecc6=[]}=_0x1ee781,_0x1781bc=_0x34e058['map'](_0x513710=>(Tt(_0x513710)&&(_0x513710=this['_model']['createRange'](_0x513710['end'])),_0x513710))['filter'](_0x129f27=>'$graveyard'!==_0x129f27['root']['rootName']);if(_0x1781bc['length']<0x1)return;const _0x378f24=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc0ebc9=>_0x218be5['fromRange'](_0xc0ebc9));_0x425b2f['setSelection'](_0x1781bc);for(const _0x14d3a1 of this['_editor']['commands']['commands']())_0x14d3a1['refresh']();_0x42ecc6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x38467b,..._0x42ecc6);const _0x49ebf4=_0x378f24['filter'](_0x526c8e=>'$graveyard'!=_0x526c8e['root']['rootName']);_0x49ebf4['length']>0x0&&_0x425b2f['setSelection'](_0x49ebf4);for(const _0x52e5fa of _0x378f24)_0x52e5fa['detach']();});},_0x7bf024=(_0x49b9f7,_0x5f4ed0)=>0x1==_0x49b9f7['length']&&0x1==_0x5f4ed0['length']&&_0x49b9f7[0x0]['end']['isEqual'](_0x5f4ed0[0x0]['start']),_0x355230=(_0x556031,_0x153f30,_0x4e9c84,_0x5a0be0)=>Ft(_0x556031,_0x153f30,_0x4e9c84,_0x5a0be0,this['_model'])?[_0x556031,_0x153f30]:Ft(_0x153f30,_0x556031,_0x5a0be0,_0x4e9c84,this['_model'])?[_0x153f30,_0x556031]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e4861),this['_defaultCallbacks']['set']('insertion:discard',_0x45bd0c),this['_defaultCallbacks']['set']('insertion:join',_0x7bf024),this['_defaultCallbacks']['set']('insertion:chain',_0x355230),this['_defaultCallbacks']['set']('deletion:accept',_0x45bd0c),this['_defaultCallbacks']['set']('deletion:discard',_0x5e4861),this['_defaultCallbacks']['set']('deletion:join',_0x7bf024),this['_defaultCallbacks']['set']('deletion:chain',_0x355230),this['_defaultCallbacks']['set']('formatInline:accept',_0x9f4ce0),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e4861),this['_defaultCallbacks']['set']('formatInline:join',_0x7bf024),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e4861),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9f4ce0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e4861),this['_defaultCallbacks']['set']('formatBlock:join',_0x7bf024),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e4861),this['_defaultCallbacks']['set']('attribute:accept',_0x5e4861),this['_defaultCallbacks']['set']('attribute:discard',(_0x15d9b6,_0x569f2a)=>{if(!_0x569f2a)return;const _0x27ca7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x44b504=>{if(_0x569f2a['key']==m)for(const _0x9fd4e6 of _0x15d9b6){const _0x2ad2ea=_0x9fd4e6['start']['nodeAfter'],_0x53a142=_0x569f2a['oldValue'];_0x44b504['rename'](_0x2ad2ea,_0x53a142);}else{if(_0x27ca7['_isBlockAttribute'](_0x569f2a['key'])){for(const _0x4d4049 of _0x15d9b6)void 0x0!==_0x569f2a['oldValue']?_0x44b504['setAttribute'](_0x569f2a['key'],_0x569f2a['oldValue'],_0x4d4049['start']['nodeAfter']):_0x44b504['removeAttribute'](_0x569f2a['key'],_0x4d4049['start']['nodeAfter']);}else{for(const _0x4fa175 of _0x15d9b6)_0x569f2a['oldValue']?_0x44b504['setAttribute'](_0x569f2a['key'],_0x569f2a['oldValue'],_0x4fa175):_0x44b504['removeAttribute'](_0x569f2a['key'],_0x4fa175);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7bf024);}}function Rt(_0x5e5973,_0x5386bd,_0x41a379){for(const _0x19c483 of _0x5386bd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x19c483['root']==_0x19c483)return!0x1;if(!_0x41a379['containsItem'](_0x19c483))return!0x1;if(_0x5e5973['isObject'](_0x19c483)||_0x5e5973['isLimit'](_0x19c483))return!0x0;}return!0x1;}function Tt(_0x5f3366){return _0x5f3366['end']['parent']==_0x5f3366['start']['nodeAfter']&&_0x5f3366['end']['isAtStart'];}function Et(_0x470119,_0x35115e,_0x3c38de,_0xbae7a1){const _0x596719=_0xcd68ce=>!_0xcd68ce['item']['is']('$textProxy')&&!_0xbae7a1['isObject'](_0xcd68ce['item']),_0xc4c38a=_0x470119['start']['getLastMatchingPosition'](_0x596719),_0xbbc240=_0x470119['end']['getLastMatchingPosition'](_0x596719,{'direction':'backward'});return(!_0x470119['start']['isEqual'](_0xc4c38a)||!_0x470119['end']['isEqual'](_0xbbc240))&&(_0xc4c38a['isBefore'](_0xbbc240)?_0x3c38de['updateMarker'](_0x35115e,{'range':_0x3c38de['createRange'](_0xc4c38a,_0xbbc240)}):_0x3c38de['removeMarker'](_0x35115e),!0x0);}function Vt(_0x134aed){return _0x2c77f1(_0x134aed);}function Ut(_0x24f9cf){const _0x21f659=_0x24f9cf['start']['nodeAfter'];return _0x21f659&&_0x21f659['is']('element');}function Ot(_0x1808b2,_0x467320){return null==_0x1808b2['end']['nodeBefore']&&_0x1808b2['end']['parent']==_0x1808b2['start']['nodeAfter']?Gt(_0x1808b2['start']['nodeAfter'],_0x467320):_0x1808b2;}function Gt(_0x3bd388,_0x2e7604){const _0x27c206=_0x2e7604['schema']['isObject'](_0x3bd388)||_0x2e7604['schema']['isSelectable'](_0x3bd388);return _0x2e7604['createRange'](_0x2e7604['createPositionAt'](_0x3bd388,'before'),_0x27c206?_0x2e7604['createPositionAfter'](_0x3bd388):_0x2e7604['createPositionAt'](_0x3bd388,'end'));}function Ft(_0x3ebc80,_0x37ca07,_0x2739f2,_0x118414,_0x2e0898){if(!Pt(_0x3ebc80,_0x37ca07))return!0x1;if(_0x2739f2['end']['isEqual'](_0x118414['start']))return!0x0;if(_0x3ebc80['type']!=_0x37ca07['type'])return!0x1;if(!_0x2739f2['end']['isTouching'](_0x118414['start']))return!0x1;const _0x3efd53=_0x2e0898['createRange'](_0x2739f2['end'],_0x118414['start'])['getWalker']();for(const _0x452d62 of _0x3efd53)if(['elementStart','elementEnd']['includes'](_0x452d62['type'])&&_0x2e0898['schema']['isLimit'](_0x452d62['item']))return!0x1;return!0x0;}function Pt(_0x1bb681,_0x1e0f49,_0x1ea56c=[]){return!(!_0x1bb681['_isDataLoaded']||!_0x1e0f49['_isDataLoaded'])&&_0xf2bb64(Bt(_0x1bb681['attributes'],_0x1ea56c),Bt(_0x1e0f49['attributes'],_0x1ea56c));}function Lt(_0x10d793,_0x45d3c0){const _0x1c8d33=Ht(_0x10d793['attributes']),_0x3f3e38=Ht(_0x45d3c0);if(!_0x10d793['_isDataLoaded'])return!0x1;for(const _0x43da7c of Object['keys'](_0x3f3e38))if(!_0xf2bb64(_0x1c8d33[_0x43da7c],_0x3f3e38[_0x43da7c]))return!0x1;return!0x0;}function Ht(_0x2b6de0){const _0x376866=Object['assign']({},_0x2b6de0);return delete _0x376866['skipNestingCheck'],delete _0x376866['tablePasteChainId'],_0x376866;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x2d203a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2f5bef,_0x210cbc,_0xc8e80,_0x485aa0){super(),this['model']=_0x210cbc,this['view']=_0xc8e80,this['commentThreadController']=_0x485aa0,this['_editor']=_0x2f5bef,this['_acceptCommand']=_0x2f5bef['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f5bef['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2284fd,_0x3393d9)=>_0x2284fd||_0x3393d9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5c7dc6=>_0x5c7dc6&&this['_editor']['model']['canEditAt'](_0x210cbc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xa7918e=>_0xa7918e&&this['_editor']['model']['canEditAt'](_0x210cbc['getRanges']())),this['_pendingAction']=null,_0xc8e80['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xc8e80,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xc8e80,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xc8e80,'change:isDirty',()=>{_0xc8e80['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 _0x2b0667=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2b0667);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4490c1{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x21aae6,_0x98cd19,_0x330210,_0x15385e){super(_0x21aae6),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x98cd19['authoredAt']),this['bind']('authoredAt')['to'](_0x98cd19),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x98cd19,this['_localUser']=_0x330210,this['_config']=_0x15385e,_0x15385e['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:_0x134ffe}=this['_config'];this['commentsListView']=new _0x134ffe(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',_0x4fc0b9=>_0x4fc0b9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1bf969,_0x293a7f)=>_0x1bf969||!!_0x293a7f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1449bd}=this['_config'],_0x3e3f87=new _0x1449bd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2900e3=_0x3e3f87['commentInputView'];return _0x3e3f87['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2900e3,'value',(_0x3c0b08,_0x5e9b77,_0x51524a)=>!!_0x51524a||_0x3c0b08&&!_0x5e9b77),_0x2900e3['on']('submit',(_0x22fd9d,_0xa0379a)=>{this['fire']('addComment',_0xa0379a),_0x2900e3['editor']['setData']('');}),_0x2900e3['on']('cancel',()=>this['focus']()),_0x2900e3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3e3f87;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x56668e,_0x4bddb9,_0x306cb3,_0x396148){super(_0x56668e,_0x4bddb9,_0x306cb3,_0x396148),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26639d=>_0x26639d&&_0x26639d[0x0]?_0x26639d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3ed720,_0x1179cf)=>{let _0x5a8b20='';for(const _0x2b1fa6 of _0x3ed720)_0x5a8b20+='<p>'+ds(_0x2b1fa6['content'],_0x2b1fa6['color'])+'</p>';return _0x1179cf?_0x5a8b20:_0x48be8a(_0x5a8b20,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x56668e,'Accept\x20suggestion'),_0x210fdb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x56668e,'Discard\x20suggestion'),_0x210fdb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5909ed(_0x56668e,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x38fe92=this['bindTemplate'],_0x3133bf=[{'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':_0x38fe92['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x38fe92['to']('authoredAt',_0x219f05=>this['_config']['formatDateTime'](_0x219f05))}]}]},{'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']&&_0x3133bf['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x53740a={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x38fe92['if']('isActive','ck-suggestion-wrapper--active'),_0x38fe92['to']('type',_0x5b0ac0=>'ck-suggestion-'+_0x5b0ac0),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':_0x3133bf}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x53740a['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)),_0x53740a;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5d8e94,_0xb1ea95,_0x516ba5)=>{this['_descriptionElement']['innerHTML']=_0x516ba5;});}['_createButton'](_0x91d67f,_0x5aa75b,_0xf0970c,_0x14badf,_0x50fb3e){const _0x3bb96f=new _0x199a7d(this['locale']);return _0x3bb96f['set']({'label':_0x91d67f,'icon':_0x5aa75b,'tooltip':!0x0,'tooltipPosition':_0x50fb3e}),_0x3bb96f['extendTemplate']({'attributes':{'class':_0xf0970c}}),_0x3bb96f['on']('execute',()=>{this['fire'](_0x14badf,this['_model']['id']);}),_0x3bb96f;}['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(_0x4eb9de,_0x54e8f2){let _0x26a9a8='';return _0x26a9a8+=_0x4eb9de['split']('*')['map']((_0x107b81,_0x24d48a)=>_0x24d48a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x107b81)+'</span>':us(_0x107b81))['join'](''),_0x54e8f2&&(_0x26a9a8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x54e8f2['value']+'\x22\x20title=\x22'+_0x54e8f2['title']+'\x22></span>'),_0x26a9a8;}function us(_0x3b3e21){const _0x4e83fc=document['createElement']('span');return _0x4e83fc['innerText']=_0x3b3e21,_0x4e83fc['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 _0x16371d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2e67ee,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4c1ca6){super(_0x4c1ca6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32f2ac=this['editor']['config'];_0x32f2ac['define']('trackChanges.SuggestionThreadView',ne),_0x32f2ac['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32f2ac['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xf4211d,_0x187f38){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x7c8a25,_0x3eb7fe]of this['_handleControllerBuffer']){const _0x124f78=this['_suggestionToController']['has'](_0x7c8a25);_0x124f78||_0x3eb7fe?_0x124f78&&_0x3eb7fe&&this['_destroyController'](_0x7c8a25):this['_initializeController'](_0x7c8a25);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xf4211d,_0x187f38);}['init'](){const _0x2268ce=this['editor'],_0x122a32=_0x2268ce['plugins']['get']('TrackChangesEditing'),_0x3a5820=_0x2268ce['plugins']['get']('Annotations'),_0x1f4525=_0x2268ce['plugins']['get']('EditorAnnotations'),_0x34b61b=_0x2268ce['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f4525['addSourceCollector'](()=>{const _0x52b77e=[];for(const [_0x585aee,_0x32fe1f]of Array['from'](this['_suggestionToController'])){const _0x5a9c8a=_0x585aee['getAllAdjacentSuggestions'](),_0x4cf087=[];for(const _0x81796d of _0x5a9c8a){if(!_0x81796d['isInContent'])continue;if(_0x81796d['isMultiRange']){_0x4cf087['push'](..._0x81796d['getRanges']());continue;}const _0x18e823=_0x81796d['getFirstRange']();if(_0x4cf087['length']>0x0){const _0x470656=_0x4cf087[0x0]['getJoined'](_0x18e823);if(_0x470656){_0x4cf087[0x0]=_0x470656;continue;}}_0x4cf087['push'](_0x18e823);}_0x52b77e['push']([_0x32fe1f['view'],_0x4cf087]);}return _0x52b77e;}),this['listenTo'](_0x122a32,'suggestionLoaded',(_0x549444,_0xe56378)=>{this['listenTo'](_0xe56378,'change:previous',(_0xf2f94,_0x58708a,_0x35dc46,_0x530b96)=>{_0xe56378['isInContent']&&(null==_0x35dc46?(this['_updateController'](_0x530b96['head']),this['_handleSuggestionControllerDelayed'](_0xe56378,!0x1)):(this['_updateController'](_0x35dc46['head']),null==_0x530b96&&this['_handleSuggestionControllerDelayed'](_0xe56378,!0x0)));}),null!==_0xe56378['previous']?this['_updateController'](_0xe56378['head']):this['_handleSuggestionControllerDelayed'](_0xe56378,!0x1);}),this['listenTo'](_0x122a32,'suggestionUnloaded',(_0x3f233b,_0x39c4cd,_0x42f6ae)=>{this['stopListening'](_0x39c4cd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x39c4cd),this['_suggestionToController']['has'](_0x39c4cd)&&this['_destroyController'](_0x39c4cd),_0x42f6ae&&this['_updateController'](_0x42f6ae['head']);}),this['listenTo'](_0x122a32,'suggestionChanged',(_0x75c22c,_0x53d8b2)=>{this['_updateController'](_0x53d8b2);}),this['listenTo'](_0x3a5820,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x34b61b,'addComment',(_0x592878,{threadId:_0x22786b,isFromAdapter:_0x30c89e})=>{if(_0x30c89e||!_0x122a32['hasSuggestion'](_0x22786b))return;const _0x11e17c=_0x122a32['getSuggestion'](_0x22786b);this['_suggestionToController']['get'](_0x11e17c)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1983df=this['editor']['plugins']['get']('Annotations'),_0x261486=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c0053=Array['from'](_0x1983df['activeAnnotations'],_0x344c03=>_0x344c03['innerView'])['filter'](_0x47da4a=>this['_viewToController']['has'](_0x47da4a)),_0x3e4714=[];for(const _0x11c33b of _0x4c0053){const _0x24388d=this['_viewToController']['get'](_0x11c33b)['model']['getAllAdjacentSuggestions']();_0x3e4714['push'](..._0x24388d['reduce']((_0x65a503,_0x403b3e)=>[..._0x65a503,..._0x403b3e['getMarkerNames']()],[]));}_0x261486['activeMarkers']=_0x3e4714;}['_addUIComponentsToFactory'](){const _0x51298c=this['editor'],_0xef33d7=_0x51298c['locale'],_0x381f08=o(_0xef33d7,'Track\x20changes'),_0x2885cb=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x381f08,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x178d0d of _0x2885cb)if(ae(_0x178d0d)){const _0x371dd0=_0x51298c['commands']['get'](_0x178d0d['model']['commandName']);_0x178d0d['model']['bind']('isOn','isEnabled')['to'](_0x371dd0,'value','isEnabled');}_0x51298c['ui']['componentFactory']['add']('trackChanges',_0x632c20=>this['_createToolbarButton'](_0x632c20,_0x2885cb,_0x381f08)),_0x51298c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x599b82=>this['_createMenuBarMenu'](_0x599b82,_0x2885cb,_0x381f08));}['_createToolbarButton'](_0x5f47ec,_0x10f41d,_0x129620){const _0x488e59=zt(_0x5f47ec,Zt),_0x3e9bd6=this['editor']['commands']['get']('trackChanges');_0x488e59['buttonView']['set']({'tooltip':_0x129620,'label':_0x129620,'icon':ie}),_0x488e59['buttonView']['bind']('isOn')['to'](_0x3e9bd6,'value'),_0x488e59['buttonView']['on']('execute',()=>{_0x3e9bd6['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x488e59,_0x10f41d,{'role':'menu'});const _0x51fee5=[];for(const _0x14eee4 of _0x10f41d)ae(_0x14eee4)&&_0x51fee5['push'](this['editor']['commands']['get'](_0x14eee4['model']['commandName']));const _0x37a188=_0x488e59['buttonView'];return _0x37a188['actionView']['unbind']('isEnabled'),_0x37a188['arrowView']['unbind']('isEnabled'),_0x37a188['actionView']['bind']('isEnabled')['to'](_0x3e9bd6,'isEnabled'),_0x37a188['arrowView']['bind']('isEnabled')['toMany'](_0x51fee5,'isEnabled',(..._0x34e9d6)=>_0x34e9d6['some'](_0xbf0701=>_0xbf0701)),_0x488e59['on']('execute',_0x562bb4=>{this['editor']['execute'](_0x562bb4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x488e59;}['_createMenuBarMenu'](_0x50e756,_0x4fc98b,_0x10b32a){const _0x147c0f=new Kt(_0x50e756),_0x5a6f53=this['editor']['commands']['get']('trackChanges');_0x147c0f['buttonView']['set']({'label':_0x10b32a,'icon':ie});const _0xc23f19=new Qt(_0x50e756);for(const _0x3cc04c of _0x4fc98b){if('separator'==_0x3cc04c['type']){_0xc23f19['items']['add'](new Jt(_0x50e756));continue;}const _0x2132b4=new Xt(_0x50e756,_0x147c0f),_0x2fa2a2=new Yt(_0x50e756),_0x5d4e22=_0x3cc04c['model'];_0x2fa2a2['bind'](...Object['keys'](_0x5d4e22))['to'](_0x5d4e22),_0x2fa2a2['delegate']('execute')['to'](_0x147c0f),_0x2fa2a2['on']('execute',()=>{this['editor']['execute'](_0x5d4e22['commandName']),this['editor']['editing']['view']['focus']();}),_0x2132b4['children']['add'](_0x2fa2a2),_0xc23f19['items']['add'](_0x2132b4);}return _0x147c0f['bind']('isEnabled')['to'](_0x5a6f53,'isEnabled'),_0x147c0f['panelView']['children']['add'](_0xc23f19),_0x147c0f;}['_initializeController'](_0x22377a){const _0x73ffba=this['editor'],_0x360127=_0x73ffba['config'],_0x24e89e=_0x73ffba['plugins']['get']('Annotations'),_0x4b3581=_0x73ffba['plugins']['get']('CommentsRepository'),_0x4fedd9=_0x73ffba['plugins']['get']('EditorAnnotations'),_0x103c32=_0x73ffba['plugins']['get'](_0x2e67ee)['me'],_0x53ec47=_0x360127['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4f04f0,CommentThreadInputView:_0x35b5b7}=_0x73ffba['plugins']['get']('CommentsUI');let _0xd05db9,_0x5144d4;this['_annotationViews']['has'](_0x22377a['id'])?(_0x5144d4=this['_annotationViews']['get'](_0x22377a['id']),_0xd05db9=_0x5144d4['mainView']):(_0xd05db9=new _0x53ec47(_0x73ffba['locale'],_0x22377a,_0x103c32,{'disableComments':this['_disableComments'],'editorConfig':_0x360127['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x360127['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x360127['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x360127['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ab875(_0x360127['get']('locale')),'CommentView':_0x360127['get']('comments')['CommentView'],'CommentsListView':_0x4f04f0,'CommentThreadInputView':_0x35b5b7}),_0xd05db9['acceptButton']['on']('execute',()=>{_0x73ffba['editing']['view']['focus']();}),_0xd05db9['discardButton']['on']('execute',()=>{_0x73ffba['editing']['view']['focus']();}),_0x5144d4=_0x24e89e['createAnnotationView'](this['editor']['locale'],_0xd05db9),_0x5144d4['bind']('isDirty')['to'](_0xd05db9,'isDirty'),_0x5144d4['bind']('length')['to'](_0xd05db9),_0x5144d4['bind']('type')['to'](_0xd05db9,'type',_0x17a7ba=>'suggestion-'+_0x17a7ba),this['_annotationViews']['set'](_0x22377a['id'],_0x5144d4));const _0x530be6=_0x4b3581['createCommentThreadController'](_0x22377a['commentThread'],_0xd05db9),_0x524887=new oe(_0x73ffba,_0x22377a,_0xd05db9,_0x530be6),_0x405b97=_0x22377a['getAllAdjacentSuggestions']()['filter'](_0x46bd17=>_0x46bd17['isInContent']);_0xd05db9['descriptionParts']=_0x73ffba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x405b97),this['_suggestionToController']['set'](_0x22377a,_0x524887),this['_viewToController']['set'](_0xd05db9,_0x524887);const _0x2bb009=_0x24e89e['createAnnotation']({'view':_0x5144d4,'target':()=>{const _0x3a0b3a=[],_0x3e9a70=_0x22377a['getAllAdjacentSuggestions']()['filter'](_0x336cee=>_0x336cee['isInContent']);for(const _0x2f8a50 of _0x3e9a70)_0x3a0b3a['push'](..._0x2f8a50['getMarkers']());return _0x1af8ea(_0x73ffba['editing'],_0x3a0b3a);},'type':()=>'suggestion-'+_0x524887['view']['type']});_0x4b3581['_bindAnnotationToEditors'](_0xd05db9,_0x2bb009),_0x24e89e['add'](_0x2bb009),_0x4fedd9['registerAnnotation'](_0x2bb009);}['_destroyController'](_0xd24d09){const _0x140be8=this['editor']['plugins']['get']('CommentsRepository'),_0x2519a0=this['editor']['plugins']['get']('Annotations'),_0x16fe33=this['_suggestionToController']['get'](_0xd24d09),_0x268c0d=_0x16fe33['view'],_0xf04712=_0x2519a0['getByInnerView'](_0x268c0d);_0x140be8['_unbindEditors'](_0x268c0d),_0xf04712&&_0x2519a0['remove'](_0xf04712),this['_suggestionToController']['delete'](_0xd24d09),this['_viewToController']['delete'](_0x268c0d),_0x16fe33['destroy']();}['_updateController'](_0x21dc25){if(!_0x21dc25['isInContent']||!this['_suggestionToController']['has'](_0x21dc25))return;const _0x4f1f63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x550824=this['_suggestionToController']['get'](_0x21dc25),_0x53b158=_0x21dc25['getAllAdjacentSuggestions']();_0x550824['view']['descriptionParts']=_0x4f1f63['descriptionFactory']['getDescriptions'](_0x53b158);}['destroy'](){for(const _0x2b70b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b70b8);for(const _0x5ebfa6 of this['_annotationViews']['values']())_0x5ebfa6['mainView']['destroy']();super['destroy']();}}function ae(_0x51097b){return'model'in _0x51097b;}class k extends _0x16371d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x48b8ac){this['editor']['plugins']['get'](p)['adapter']=_0x48b8ac;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5e8cc9){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5e8cc9);}['getSuggestions']({skipNotAttached:_0x5737c2=!0x1,toJSON:_0x15dcbe=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5737c2,'toJSON':_0x15dcbe});}['getSuggestion'](_0x414e9b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x414e9b);}}const T=['Pagination'];class P extends _0x16371d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4b8a57=this['editor'];if(_0x4b8a57['config']['define']('trackChangesData.editorCreator',_0x469539=>{const _0x18f5af=_0x4b8a57['model']['document']['getRootNames']()['reduce']((_0x20ce6f,_0x1f7c5d)=>(_0x20ce6f[_0x1f7c5d]='',_0x20ce6f),{});return _0x4b8a57['constructor']['create'](_0x18f5af,_0x469539);}),'function'!=typeof _0x4b8a57['config']['get']('trackChangesData')['editorCreator'])throw new _0x40a0bd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4fcf24){return N(this['editor'],!0x0,_0x4fcf24);}['getDataWithDiscardedSuggestions'](_0x7b9f8a){return N(this['editor'],!0x1,_0x7b9f8a);}}class D extends _0x16371d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x30585e){super(_0x30585e),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(_0x673f98){return void 0x0!==_0x673f98['getRootsAttributes'];}async function N(_0x28dfed,_0x4cda15,_0x195565){const _0x1f9e74=_0x5b10d0(_0x28dfed,T);_0x1f9e74['plugins']['push'](p,D),_0x1f9e74['rootsAttributes']=v(_0x28dfed)?_0x28dfed['getRootsAttributes']():void 0x0;const _0x51d11c=document['createDocumentFragment'](),_0x3c9dac=_0x28dfed['config']['get']('trackChangesData')['editorCreator'],_0x10cb68=await _0x3c9dac(_0x1f9e74,()=>function(_0x4ec4ca){const _0x572f9b=document['createElement']('div');return _0x4ec4ca['appendChild'](_0x572f9b),_0x572f9b;}(_0x51d11c));!function(_0xc971d,_0x48c6e6){const _0x43fe65=_0xc971d['model']['document']['getRootNames']()['reduce']((_0xe5205b,_0x57abc8)=>(_0xe5205b[_0x57abc8]=_0xc971d['data']['get']({'rootName':_0x57abc8}),_0xe5205b),{}),_0x51c883=_0xc971d['plugins']['get']('Users')['users']['map'](_0x422785=>({'id':_0x422785['id'],'name':_0x422785['name']})),_0x4783d9=_0xc971d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x392930=_0xc971d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x380cac=_0x48c6e6['plugins']['get']('Users'),_0x1effed=_0x48c6e6['plugins']['get']('TrackChangesEditing'),_0x4e3894=_0x48c6e6['plugins']['get']('CommentsRepository');for(const _0x20e4f1 of _0x51c883)_0x380cac['getUser'](_0x20e4f1['id'])||_0x380cac['addUser'](_0x20e4f1);_0x380cac['me']||_0x380cac['useAnonymousUser']();for(const _0x48e707 of _0x392930)_0x4e3894['addCommentThread'](_0x48e707);for(const _0x464b46 of _0x4783d9)_0x1effed['addSuggestionData'](_0x464b46);_0x48c6e6['data']['set'](_0x43fe65);}(_0x28dfed,_0x10cb68),_0x10cb68['execute'](_0x4cda15?'acceptAllSuggestions':'discardAllSuggestions');const _0x11749a=v(_0x10cb68)?_0x10cb68['getFullData'](_0x195565):_0x10cb68['data']['get'](_0x195565);return await _0x10cb68['destroy'](),_0x11749a;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x1ec07f,PendingActions as _0x47113b,icons as _0x5369ba}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5c47f2,ObservableMixin as _0x5f5866,uid as _0x280966,insertToPriorityArray as _0x539e24,priorities as _0x5bbedb,logWarning as _0x5a2c18,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5d10c7,View as _0x597b77,ButtonView as _0x2909a3,ViewModel as _0x98a43d,createDropdown as Jt,SplitButtonView as te,addListToDropdown as zt,MenuBarMenuView as Qt,MenuBarMenuListView as Xt,ListSeparatorView as Kt,MenuBarMenuListItemView as Yt,MenuBarMenuListItemButtonView as Zt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x485a72,hashObject as _0x16f00d,surroundingMarkersDetector as _0x270514,trimHtml as _0x153237,UserView as _0xebcb09,getDateTimeFormatter as _0x231b59,getAllMarkersDomElementsSorted as _0xff7661,sanitizeEditorConfig as _0x1344ad}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1bdd4a,LiveRange as _0x30fc72,LivePosition as _0x2e0135}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1ccc96,toWidget as _0x16abdf}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x267494,set as _0x5f45b0,isEqual as _0x5678e2,unset as _0x4d77c4,omit as xt}from'lodash-es';import{Delete as _0x2e6297,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x422272,ShiftEnter as _0x2eff47}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x13dd96,_0x31594d){super(_0x13dd96),this['_enabledCommands']=_0x31594d,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 _0x30b091 of this['editor']['commands']['commands']())_0x30b091['affectsData']&&!this['_enabledCommands']['has'](_0x30b091)&&_0x30b091['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2f73d0 of this['editor']['commands']['commands']())_0x2f73d0['affectsData']&&!this['_enabledCommands']['has'](_0x2f73d0)&&_0x2f73d0['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x392309,_0x3db742){super(_0x392309),this['_suggestions']=_0x3db742,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd6a6fc){const _0x1b7b1b=this['_suggestions']['get'](_0xd6a6fc);if(!_0x1b7b1b)throw new _0x5c47f2('track-changes-accept-suggestion-not-found',this);const _0x4b07b6=_0x1b7b1b['getRanges']();this['editor']['model']['canEditAt'](_0x4b07b6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b7b1b);}}class B extends ts{['_suggestions'];constructor(_0x4e9285,_0x17048c){super(_0x4e9285),this['_suggestions']=_0x17048c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x111979){const _0x5b2a86=this['_suggestions']['get'](_0x111979);if(!_0x5b2a86)throw new _0x5c47f2('track-changes-discard-suggestion-not-found',this);const _0x8dbcf7=_0x5b2a86['getRanges']();this['editor']['model']['canEditAt'](_0x8dbcf7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5b2a86);}}function ss(_0x752727){return _0x752727['sort']((_0x1a39a9,_0x2e89ce)=>'deletion'==_0x1a39a9['type']&&'deletion'!=_0x2e89ce['type']?-0x1:'deletion'!=_0x1a39a9['type']&&'deletion'==_0x2e89ce['type']?0x1:0x0);}function to(_0x3cce6f,_0x1964b9){let _0x5d2ce0,_0x5f1048=0x0;const _0x1bfb35=[],_0x2ddd34=_0x1964b9['schema'];for(;_0x5f1048<_0x3cce6f['length'];){const _0xf39457=_0x3cce6f[_0x5f1048],_0x8f11f6=_0x3cce6f[_0x5f1048+0x1];_0x5d2ce0||(_0x5d2ce0=_0x1964b9['createPositionBefore'](_0xf39457)),co(_0x1964b9,_0xf39457,_0x8f11f6)||(_0x1bfb35['push'](_0x1964b9['createRange'](_0x5d2ce0,_0x2ddd34['isObject'](_0xf39457)?_0x1964b9['createPositionAfter'](_0xf39457):_0x1964b9['createPositionAt'](_0xf39457,'end'))),_0x5d2ce0=null),_0x5f1048++;}return _0x1bfb35;}function co(_0x3e03d2,_0x335c0f,_0x3ae424){if(!_0x3ae424)return!0x1;const _0x585f3d=_0x3e03d2['createPositionAfter'](_0x335c0f),_0x489cb6=_0x3e03d2['createPositionBefore'](_0x3ae424);return _0x585f3d['isTouching'](_0x489cb6);}function rs(_0x5f5c1e,_0x59475a,_0x4056cd){for(;_0x4056cd['length'];){const _0x20ab0c=_0x4056cd['splice'](0x0,0x64);_0x5f5c1e['change'](()=>{for(const _0x2be261 of _0x20ab0c)_0x2be261['isInContent']&&_0x59475a['execute'](_0x2be261['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x124223,_0x491aff,_0x30228b){super(_0x124223),this['_command']=_0x491aff,this['_suggestions']=_0x30228b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x497290=Array['from'](this['_suggestions']['values']())['some'](_0x5b3385=>_0x5b3385['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x497290;}['execute'](){const _0x58f558=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2d509f of _0x58f558){const _0x276af9=_0x2d509f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x276af9))return;}rs(this['editor']['model'],this['_command'],_0x58f558);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1c7f56,_0x5c6f70,_0x54d8c2){super(_0x1c7f56),this['_command']=_0x5c6f70,this['_suggestions']=_0x54d8c2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3bb3d0=this['editor']['model']['document']['selection'],_0x3b4be2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xdc0abd,_0x3d66f0){const _0x1b4b17=Array['from'](_0xdc0abd['getRanges']()),_0x1406c8=new Set();for(const _0x4dbd4c of _0x3d66f0)if(_0x4dbd4c['isInContent']){for(const _0xeeacb9 of _0x1b4b17)for(const _0x2402ba of _0x4dbd4c['getRanges']())(_0xeeacb9['isIntersecting'](_0x2402ba)||_0xdc0abd['isCollapsed']&&!_0x4dbd4c['isMultiRange']&&_0x4dbd4c['next']&&_0x2402ba['end']['isTouching'](_0xeeacb9['start']))&&_0x1406c8['add'](_0x4dbd4c);}return _0x1406c8;}(_0x3bb3d0,_0x3b4be2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x38603d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x59582d of _0x38603d){const _0x392dd7=_0x59582d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x392dd7))return;}rs(this['editor']['model'],this['_command'],_0x38603d);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x5f5866(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xa50d6d,_0x423a24){super(),this['id']=_0x423a24['id'],this['type']=_0x423a24['type'],this['subType']=_0x423a24['subType']||null,this['author']=_0x423a24['author'],this['creator']=_0x423a24['creator']||_0x423a24['author'],this['isExternal']=Boolean(_0x423a24['attributes']&&_0x423a24['attributes']['@external']),this['data']=null,this['_model']=_0xa50d6d,this['_onAccept']=_0x423a24['onAccept'],this['_onDiscard']=_0x423a24['onDiscard'],this['_onAttributesChange']=_0x423a24['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x423a24['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 _0x44a0ec=this;for(;_0x44a0ec['previous'];)_0x44a0ec=_0x44a0ec['previous'];return _0x44a0ec;}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'](_0x26a840){this['_markerNames']['add'](_0x26a840);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x150d79=>this['_model']['markers']['get'](_0x150d79))['filter'](_0x313fb6=>_0x313fb6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4a5f1f=>{for(const _0x4cfc7c of this['getMarkers']())_0x4a5f1f['removeMarker'](_0x4cfc7c);}),this['_markerNames']['clear']();}['removeMarker'](_0x488f85){this['_model']['change'](_0x369a1b=>{_0x369a1b['removeMarker'](_0x488f85);}),this['_markerNames']['delete'](_0x488f85);}['addRange'](_0x327409){const _0x21ad6b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x21ad6b),this['_model']['change'](_0x3b7174=>{_0x3b7174['addMarker'](_0x21ad6b,{'range':_0x327409,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x273ba0){for(const _0x424512 of this['getRanges']())if(_0x424512['isIntersecting'](_0x273ba0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xc67cba=>_0xc67cba['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1fb7ff,_0x4808a3)=>[..._0x1fb7ff,..._0x4808a3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1e5624=this['getRanges']();if(0x1!=_0x1e5624['length'])return null;const _0x2a36c4=_0x1e5624[0x0],_0x314e8a=_0x2a36c4['start']['nodeAfter'],_0x4afd7a=_0x2a36c4['end']['nodeBefore'];return _0x314e8a instanceof _0x1bdd4a?_0x314e8a!=_0x4afd7a?null:_0x314e8a: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 _0x28d35f=[];let _0xd5beca=this['head'];for(;_0xd5beca;)_0x28d35f['push'](_0xd5beca),_0xd5beca=_0xd5beca['next'];return _0x28d35f;}['setAttribute'](_0x317dc7,_0x1cd910){const _0x1d83d9=_0x267494(this['attributes']);_0x5f45b0(_0x1d83d9,_0x317dc7,_0x1cd910),_0x5678e2(_0x1d83d9,this['attributes'])||(this['attributes']=_0x1d83d9,this['_onAttributesChange'](_0x1d83d9));}['removeAttribute'](_0x3d9f60){const _0x431e8a=_0x267494(this['attributes']);_0x4d77c4(_0x431e8a,_0x3d9f60),_0x5678e2(_0x431e8a,this['attributes'])||(this['attributes']=_0x431e8a,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 _0x280966()['substr'](0x1,0x5);}}function o(_0x5909a7,_0x1af1a2,_0x4e26e5){const t=_0x5909a7['t'];switch(_0x1af1a2){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',_0x4e26e5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4e26e5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4e26e5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4e26e5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4e26e5);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',_0x4e26e5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4e26e5);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',_0x4e26e5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4e26e5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4e26e5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4e26e5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4e26e5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4e26e5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4e26e5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4e26e5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4e26e5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4e26e5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4e26e5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4e26e5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4e26e5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4e26e5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4e26e5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4e26e5);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'},_0x4e26e5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4e26e5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4e26e5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4e26e5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4e26e5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4e26e5);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'},_0x4e26e5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4e26e5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4e26e5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4e26e5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4e26e5);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'},_0x4e26e5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4e26e5);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'},_0x4e26e5);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'},_0x4e26e5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4e26e5);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'},_0x4e26e5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4e26e5);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'},_0x4e26e5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4e26e5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4e26e5);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x4e26e5);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'},_0x4e26e5);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'},_0x4e26e5);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 _0x1af1a2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11646f,_0x419df3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11646f,this['_locale']=_0x419df3;}['getDescriptions'](_0x2f6cf5){const _0x37bbed=[],_0x2e0c60=new Set(),_0x44626b=new Set();for(let _0x185c39=0x0;_0x185c39<_0x2f6cf5['length'];_0x185c39++){const _0x5f0c55=_0x2f6cf5[_0x185c39];if(!_0x5f0c55['isInContent'])continue;const _0x478194=this['_handleCustomCallbackDescription'](_0x5f0c55);if(_0x478194){if(null!=_0x5f0c55['subType']){if(_0x2e0c60['has'](_0x5f0c55['subType']))continue;_0x2e0c60['add'](_0x5f0c55['subType']);}_0x37bbed['push'](_0x478194);}else{if('attribute'!=_0x5f0c55['type'])'insertion'!=_0x5f0c55['type']&&'deletion'!=_0x5f0c55['type']||this['_handleInsertRemoveSuggestionDescription'](_0x37bbed,_0x5f0c55,_0x2f6cf5[_0x185c39+0x1]);else{const _0x57b8a3=_0x5f0c55['data']['key'];if(_0x44626b['has'](_0x57b8a3))continue;_0x44626b['add'](_0x5f0c55['data']['key']),_0x57b8a3==m?this['_handleRenameSuggestionDescription'](_0x37bbed,_0x5f0c55):this['_handleAttributeSuggestionDescription'](_0x37bbed,_0x5f0c55);}}}return this['_resolveDescriptionItems'](_0x37bbed);}['registerDescriptionCallback'](_0x5884c1){this['_customCallbacks']['push'](_0x5884c1);}['registerElementLabel'](_0x4cecc7,_0xcb0364,_0x44a353=_0x5bbedb['normal']){'function'==typeof _0x4cecc7?_0x539e24(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4cecc7,'label':_0xcb0364,'priority':_0x44a353}):this['_itemLabels']['set'](_0x4cecc7,_0xcb0364);}['registerAttributeLabel'](_0x21fbb7,_0x23cdf9){this['_attributeLabels']['set'](_0x21fbb7,_0x23cdf9);}['getItemLabel'](_0x20fc36,_0x13d494=0x1){let _0x2db5ff;for(const _0x32a177 of this['_itemLabelsCallbacks'])if(_0x32a177['matchingCallback'](_0x20fc36)){_0x2db5ff=_0x32a177['label'];break;}return _0x2db5ff||(_0x2db5ff=this['_itemLabels']['get'](_0x20fc36['name'])),_0x2db5ff?_0x2db5ff(_0x13d494):0x1!==_0x13d494?_0x13d494+'\x20'+_0x20fc36['name']+'s':''+_0x20fc36['name'];}['_addDescriptionItems'](_0x30d672,_0x143cff){const _0x21fc0c=_0x143cff['getFirstRange']()['getWalker'](),_0x42cbb5='insertion'==_0x143cff['type']?'add':'remove';for(const _0x2b43b4 of _0x21fc0c){const _0x412a48=_0x2b43b4['item'],_0x13a953=_0x30d672[_0x30d672['length']-0x1];if(_0x412a48['is']('$textProxy'))_0x13a953&&_0x13a953['type']['indexOf']('Container')>-0x1&&_0x30d672['pop'](),_0x13a953&&'text'==_0x13a953['type']?_0x13a953[_0x42cbb5]+=_0x412a48['data']:_0x30d672['push']({'type':'text','add':'add'==_0x42cbb5?_0x412a48['data']:'','remove':'remove'==_0x42cbb5?_0x412a48['data']:''});else{if(this['_schema']['isObject'](_0x412a48)){const _0x32ab9e=_0x412a48;if(_0x13a953&&_0x13a953['type']['indexOf']('Container')>-0x1&&_0x30d672['pop'](),'elementEnd'==_0x2b43b4['type'])continue;_0x13a953&&_0x13a953['type']==_0x42cbb5+'Object'&&_0x13a953['element']['name']==_0x32ab9e['name']?_0x13a953['quantity']++:_0x30d672['push']({'type':_0x42cbb5+'Object','element':_0x32ab9e,'quantity':0x1}),_0x21fc0c['skip'](_0x2cdfca=>!('elementEnd'==_0x2cdfca['type']&&_0x2cdfca['item']==_0x412a48));}else{if(this['_schema']['checkChild'](_0x412a48,'$text')||_0x412a48['is']('element','softBreak')){const _0x689dff=_0x412a48;if('add'==_0x42cbb5&&'elementStart'==_0x2b43b4['type']||'remove'==_0x42cbb5&&'elementEnd'==_0x2b43b4['type'])continue;if(_0x13a953&&-0x1==_0x13a953['type']['indexOf']('Container')){'text'==_0x13a953['type']&&(_0x13a953[_0x42cbb5]+='\x0a');continue;}let _0x22b25f;if(_0x22b25f='add'==_0x42cbb5?_0x689dff['nextSibling']&&!this['_schema']['isObject'](_0x689dff['nextSibling'])?_0x689dff['nextSibling']:null:_0x689dff['previousSibling']&&!this['_schema']['isObject'](_0x689dff['previousSibling'])?_0x689dff['previousSibling']:null,_0x689dff['isEmpty']||_0x22b25f&&_0x22b25f['isEmpty']){const _0x7c56bc=_0x22b25f&&_0x22b25f['isEmpty']?_0x22b25f:_0x689dff;_0x13a953&&_0x13a953['type']==_0x42cbb5+'EmptyContainer'&&_0x13a953['element']['name']==_0x7c56bc['name']?_0x13a953['quantity']++:_0x30d672['push']({'type':_0x42cbb5+'EmptyContainer','element':_0x7c56bc,'quantity':0x1});}else _0x30d672['push']({'type':_0x42cbb5+'Container','element':_0x689dff});}}}}}['_resolveDescriptionItems'](_0x7c1de9){const _0x4901fc=this['_locale'],_0x24a646=[],_0x333e19=[],_0x4a076d=[];for(const _0x2f8eb9 of _0x7c1de9)switch(_0x2f8eb9['type']){case'text':if(_0x2f8eb9['add']=_0x2f8eb9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2f8eb9['remove']=_0x2f8eb9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2f8eb9['add']&&''!=_0x2f8eb9['remove']){_0x24a646['push']({'type':'replace','content':o(_0x4901fc,'REPLACE_TEXT',['\x22'+_0x2f8eb9['remove']+'\x22','\x22'+_0x2f8eb9['add']+'\x22'])});continue;}if(null!=_0x2f8eb9['add']['match'](/^ +$/)){_0x24a646['push']({'type':'insertion','content':o(_0x4901fc,'*Insert:*\x20%0',o(_0x4901fc,'ELEMENT_SPACE',_0x2f8eb9['add']['length']))});continue;}if(null!=_0x2f8eb9['remove']['match'](/^ +$/)){_0x24a646['push']({'type':'deletion','content':o(_0x4901fc,'*Remove:*\x20%0',o(_0x4901fc,'ELEMENT_SPACE',_0x2f8eb9['remove']['length']))});continue;}if(''!=_0x2f8eb9['add']){_0x24a646['push']({'type':'insertion','content':o(_0x4901fc,'*Insert:*\x20%0','\x22'+_0x2f8eb9['add']+'\x22')});continue;}_0x24a646['push']({'type':'deletion','content':o(_0x4901fc,'*Remove:*\x20%0','\x22'+_0x2f8eb9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x24a646['push']({'type':'insertion','content':o(_0x4901fc,'*Insert:*\x20%0',this['getItemLabel'](_0x2f8eb9['element'],_0x2f8eb9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x24a646['push']({'type':'deletion','content':o(_0x4901fc,'*Remove:*\x20%0',this['getItemLabel'](_0x2f8eb9['element'],_0x2f8eb9['quantity']))});continue;case'addContainer':_0x24a646['push']({'type':'insertion','content':o(_0x4901fc,'*Split:*\x20%0',this['getItemLabel'](_0x2f8eb9['element'],_0x2f8eb9['quantity']))});continue;case'removeContainer':_0x24a646['push']({'type':'deletion','content':o(_0x4901fc,'*Merge:*\x20%0',this['getItemLabel'](_0x2f8eb9['element'],_0x2f8eb9['quantity']))});continue;case'addFormat':_0x333e19['push'](_0x2f8eb9['key']);continue;case'removeFormat':_0x4a076d['push'](_0x2f8eb9['key']);continue;default:_0x24a646['push'](_0x2f8eb9);}if(_0x333e19['length']){const _0x2e2122=_0x333e19['map'](_0xb4e9a3=>this['_attributeLabels']['has'](_0xb4e9a3)?this['_attributeLabels']['get'](_0xb4e9a3):_0xb4e9a3)['join'](',\x20');_0x24a646['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2e2122)});}if(_0x4a076d['length']){const _0x178c4e=_0x4a076d['map'](_0x4b0977=>this['_attributeLabels']['has'](_0x4b0977)?this['_attributeLabels']['get'](_0x4b0977):_0x4b0977)['join'](',\x20');_0x24a646['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x178c4e)});}return _0x24a646;}['_handleCustomCallbackDescription'](_0x4fdbbc){for(const _0x231d56 of this['_customCallbacks']){const _0x4894a6=_0x231d56(_0x4fdbbc);if(_0x4894a6&&'type'in _0x4894a6)return _0x4894a6;}}['_handleAttributeSuggestionDescription'](_0x3e0ce5,_0x341ee2){const _0x4ac0f2=_0x341ee2['data'],_0x1a1b46=void 0x0===_0x4ac0f2['newValue']?'removeFormat':'addFormat';_0x3e0ce5['push']({'type':_0x1a1b46,'key':_0x4ac0f2['key']});}['_handleRenameSuggestionDescription'](_0x2cd233,_0x4fc56d){_0x2cd233['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4fc56d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2de40c,_0x35739d,_0x2c165c){if(this['_addDescriptionItems'](_0x2de40c,_0x35739d),_0x2c165c&&_0x2c165c['getFirstRange']()&&!_0x35739d['getFirstRange']()['end']['isEqual'](_0x2c165c['getFirstRange']()['start'])){const _0x4bd895=_0x2de40c[_0x2de40c['length']-0x1],_0x51ae01='insertion'==_0x35739d['type']?'add':'remove';_0x4bd895&&'text'==_0x4bd895['type']&&(_0x4bd895[_0x51ae01]+='\x0a');}}}class E extends _0x1ec07f{['afterInit'](){const _0x398614=this['editor'],_0x4dc9df=_0x398614['plugins']['get']('TrackChangesEditing');_0x398614['commands']['get']('showAIAssistant')&&_0x4dc9df['enableCommand']('showAIAssistant');}}class V extends _0x1ec07f{['afterInit'](){const _0x1321cb=this['editor'],_0x2d31ce=_0x1321cb['locale'];if(!_0x1321cb['plugins']['has']('AlignmentEditing'))return;const _0x47e093=_0x1321cb['plugins']['get']('TrackChangesEditing');_0x47e093['enableDefaultAttributesIntegration']('alignment'),_0x47e093['registerBlockAttribute']('alignment'),_0x47e093['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2d31ce,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1557d9=this['editor'],_0x2c7689=_0x1557d9['locale'];_0x1557d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f1e78=>{if('formatBlock'!=_0x3f1e78['type'])return;const {data:_0x2bc538}=_0x3f1e78;if(_0x2bc538&&'alignment'==_0x2bc538['commandName']){const _0x598a86=_0x2bc538['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2c7689,'*Format:*\x20%0',function(_0x117bb7){switch(_0x117bb7){case'left':return o(_0x2c7689,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2c7689,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2c7689,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2c7689,'FORMAT_JUSTIFY_TEXT');}}(_0x598a86))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1ec07f{['afterInit'](){const _0x3203a2=this['editor'],_0xb723ca=_0x3203a2['plugins']['get']('TrackChangesEditing'),_0x4ff237=_0x3203a2['locale'];for(const _0x4e023b of ti){if(!_0x3203a2['plugins']['has'](_0x4e023b))continue;const _0x5777b8=_0x4e023b['slice'](0x0,-0x7)['toLowerCase'](),_0x1b41ad='FORMAT_'+_0x5777b8['toUpperCase']();_0xb723ca['enableDefaultAttributesIntegration'](_0x5777b8),_0xb723ca['registerInlineAttribute'](_0x5777b8),_0xb723ca['descriptionFactory']['registerAttributeLabel'](_0x5777b8,o(_0x4ff237,_0x1b41ad));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9c92c=this['editor'],_0x59c565=_0xa9c92c['locale'],_0x579412=_0xa9c92c['plugins']['get']('TrackChangesEditing');function _0x1fe9ba(_0x474ec0,_0x1cfc7e){_0x579412['descriptionFactory']['registerDescriptionCallback'](_0x41a965=>{if('formatInline'!=_0x41a965['type'])return;const {data:_0x2788ea}=_0x41a965;return _0x2788ea&&_0x2788ea['commandName']===_0x474ec0?_0x2788ea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59c565,'*Format:*\x20%0',_0x1cfc7e)}:{'type':'format','content':o(_0x59c565,'*Remove\x20format:*\x20%0',_0x1cfc7e)}:void 0x0;});}_0x1fe9ba('bold',o(_0x59c565,'FORMAT_BOLD')),_0x1fe9ba('italic',o(_0x59c565,'FORMAT_ITALIC')),_0x1fe9ba('underline',o(_0x59c565,'FORMAT_UNDERLINE')),_0x1fe9ba('code',o(_0x59c565,'FORMAT_CODE')),_0x1fe9ba('strikethrough',o(_0x59c565,'FORMAT_STRIKETHROUGH')),_0x1fe9ba('subscript',o(_0x59c565,'FORMAT_SUBSCRIPT')),_0x1fe9ba('superscript',o(_0x59c565,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1ec07f{['afterInit'](){const _0x2fd1a1=this['editor'],_0xcd76ee=_0x2fd1a1['locale'];if(!_0x2fd1a1['plugins']['has']('BlockQuoteEditing'))return;const _0x33a756=_0x2fd1a1['plugins']['get']('TrackChangesEditing'),_0x30effc=this['editor']['commands']['get']('blockQuote');_0x33a756['enableCommand']('blockQuote',(_0x2c3696,_0x3ac0d6={})=>{const _0x14be5d=this['editor']['model']['document']['selection'],_0x512337=_0x3ac0d6&&void 0x0!==_0x3ac0d6['forceValue']?_0x3ac0d6['forceValue']:!_0x30effc['value'];let _0x7e40=[];if(_0x512337){const _0x20759f=Array['from'](_0x14be5d['getSelectedBlocks']())['filter'](_0x4c739f=>oo(_0x4c739f)||function(_0x240597,_0x2c7dfb){const _0x4f4552=_0x2c7dfb['checkChild'](_0x240597['parent'],'blockQuote'),_0x43ed8b=_0x2c7dfb['checkChild'](['$root','blockQuote'],_0x240597);return _0x4f4552&&_0x43ed8b;}(_0x4c739f,this['editor']['model']['schema']));_0x7e40=to(_0x20759f,_0x2fd1a1['model']);}else{const _0x51f986=Array['from'](_0x14be5d['getSelectedBlocks']())['filter'](_0x5a8f29=>oo(_0x5a8f29));_0x7e40=to(_0x51f986,_0x2fd1a1['model']);}_0x2fd1a1['model']['change'](()=>{for(const _0x5e1fde of _0x7e40)_0x33a756['markBlockFormat'](_0x5e1fde,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x512337}]});});}),_0x33a756['descriptionFactory']['registerDescriptionCallback'](_0x4c49ef=>{const {data:_0x328ec4}=_0x4c49ef;if(_0x328ec4&&'blockQuote'==_0x328ec4['commandName']){const _0x3a82e9=o(_0xcd76ee,'ELEMENT_BLOCK_QUOTE');return _0x328ec4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcd76ee,'*Set\x20format:*\x20%0',_0x3a82e9)}:{'type':'format','content':o(_0xcd76ee,'*Remove\x20format:*\x20%0',_0x3a82e9)};}});}}function oo(_0x554eb8){return'blockQuote'==_0x554eb8['parent']['name'];}class G extends _0x1ec07f{['afterInit'](){const _0x3f063b=this['editor'];_0x3f063b['plugins']['has']('CaseChange')&&(_0x3f063b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f063b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f063b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1ec07f{['afterInit'](){const _0x57e09f=this['editor'];_0x57e09f['commands']['get']('ckbox')&&_0x57e09f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1ec07f{['afterInit'](){const _0xec436c=this['editor'];if(!_0xec436c['plugins']['has']('CodeBlock'))return;const _0x1276fa=_0xec436c['plugins']['get']('TrackChangesEditing'),_0x3b6aed=_0xec436c['locale'],_0x3f7f64=_0xec436c['config']['get']('codeBlock')['languages'],_0x57ad9a=_0xec436c['commands']['get']('codeBlock');_0x1276fa['enableCommand']('indentCodeBlock'),_0x1276fa['enableCommand']('outdentCodeBlock'),_0x1276fa['enableCommand']('codeBlock',(_0x3f37b5,_0x47e503={})=>{const _0x688559=_0xec436c['model'],_0x2d5ad1=_0xec436c['model']['document']['selection'],_0x4e0a04=_0x47e503&&void 0x0!==_0x47e503['forceValue']?_0x47e503['forceValue']:!_0x57ad9a['value'];let _0x510b50;_0x47e503['language']||(_0x47e503['language']=_0x3f7f64[0x0]['language']),_0x510b50=_0x4e0a04?Array['from'](_0x2d5ad1['getSelectedBlocks']())['filter'](_0x17789=>eo(_0x17789)||function(_0x49040d,_0x256df7){if(_0x49040d['is']('rootElement')||_0x256df7['isLimit'](_0x49040d))return!0x1;return _0x256df7['checkChild'](_0x49040d['parent'],'codeBlock');}(_0x17789,_0x688559['schema'])):Array['from'](_0x2d5ad1['getSelectedBlocks']())['filter'](_0x2b87ec=>eo(_0x2b87ec));const _0x5616cc=to(_0x510b50,_0x688559);_0x688559['change'](()=>{for(const _0x2e8214 of _0x5616cc)_0x1276fa['markBlockFormat'](_0x2e8214,{'commandName':'codeBlock','commandParams':[{..._0x47e503,'forceValue':_0x4e0a04}],'formatGroupId':'blockName'});});}),(_0x1276fa['descriptionFactory']['registerElementLabel']('codeBlock',_0x34e70a=>o(_0x3b6aed,'ELEMENT_CODE_BLOCK',_0x34e70a)),_0x1276fa['descriptionFactory']['registerDescriptionCallback'](_0xf6a45d=>{if('formatBlock'!=_0xf6a45d['type'])return;const _0x20c8f0=_0x3b6aed['t'],{data:_0x1c4a84}=_0xf6a45d;if(!_0x1c4a84||'codeBlock'!=_0x1c4a84['commandName'])return;const _0x4bbbab=_0x1c4a84['commandParams'][0x0]['language'],_0x4a350e=_0x20c8f0(_0x3f7f64['find'](_0x194e44=>_0x194e44['language']===_0x4bbbab)['label'])['toLowerCase']();return _0x1c4a84['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b6aed,'*Set\x20format:*\x20%0',o(_0x3b6aed,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4a350e+')')}:{'type':'format','content':o(_0x3b6aed,'*Remove\x20format:*\x20%0',o(_0x3b6aed,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4d4512){return'codeBlock'==_0x4d4512['name'];}class H extends _0x1ec07f{['afterInit'](){const _0x47e40d=this['editor'];if(!_0x47e40d['plugins']['has']('CommentsEditing'))return;_0x47e40d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x32e2b3,_0x93f2bf,_0x3c8af5){const _0x290f53=[];for(const _0x45fc81 of _0x93f2bf['getItems']())_0x45fc81['hasAttribute'](_0x32e2b3)&&_0x290f53['push'](_0x3c8af5['createRangeOn'](_0x45fc81));return _0x290f53;}function _e(_0x5bc566,_0x214486,{showActiveMarker:_0x30c6b6=!0x0}={}){const _0x300064=_0x5bc566['plugins']['get']('TrackChangesEditing');return(_0x42bfce,_0x104338,_0x1d65c3)=>{if(!_0x1d65c3['consumable']['test'](_0x104338['markerRange'],_0x42bfce['name']))return;const _0x3969fc=_0x104338['markerRange']['getWalker'](),_0x3e1612=_0x104338['markerRange']['start'],_0x51603f=_0x5bc566['model']['schema'];let _0x2bdd17=null,_0x14240b=null,_0x3a648a=!0x1,_0x3a17c7=!0x1;for(const _0x420bd1 of _0x3969fc){const _0x55afe4=_0x420bd1['item'];_0x3a648a=_0x3a648a||_0x51603f['isContent'](_0x55afe4);const _0x2b6c2c=_0x1d65c3['mapper']['toViewElement'](_0x55afe4);if(_0x2b6c2c&&_0x2b6c2c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x420bd1['type']&&(_0x51603f['isBlock'](_0x55afe4)&&!_0x51603f['isLimit'](_0x55afe4)&&(_0x55afe4['nextSibling']||_0x3e1612['isAtEnd']?_0x2bdd17&&_0x2bdd17['parent']==_0x55afe4||(_0x2bdd17=_0x55afe4,_0x33604a(_0x420bd1['previousPosition']),_0x3a17c7=!0x0):_0x14240b=_0x14240b||_0x420bd1['previousPosition']));}function _0x33604a(_0x2c6073){const _0x5a3847=_0x1d65c3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x214486}),_0x45aced=_0x1d65c3['mapper']['toViewPosition'](_0x2c6073);_0x30c6b6&&_0x300064['activeMarkers']['includes'](_0x104338['markerName'])&&_0x1d65c3['writer']['addClass']('ck-suggestion-marker--active',_0x5a3847),_0x1d65c3['writer']['insert'](_0x45aced,_0x5a3847),_0x1d65c3['mapper']['bindElementToMarker'](_0x5a3847,_0x104338['markerName']);}_0x3a648a||_0x3a17c7||!_0x14240b||_0x33604a(_0x14240b);};}class q extends _0x1ec07f{static get['requires'](){return[_0x2e6297];}['init'](){const _0x4ccd19=this['editor'],_0x38a4e3=_0x4ccd19['plugins']['get']('TrackChangesEditing');_0x38a4e3['enableCommand']('delete');const _0x32210d=_0x4ccd19['commands']['get']('deleteForward');_0x38a4e3['enableCommand']('deleteForward',(_0x1d81fc,_0x193e31={})=>{const _0x47a381=_0x4ccd19['model']['createSelection'](_0x4ccd19['model']['document']['selection']);_0x47a381['isCollapsed']&&_0x4ccd19['model']['modifySelection'](_0x47a381,{'direction':'forward','unit':_0x193e31['unit']});const _0x4e1f12=_0x47a381['getFirstRange'](),_0x445604=_0x30fc72['fromRange'](_0x4e1f12);let _0x2066bd;_0x1d81fc(_0x193e31),_0x2066bd='$graveyard'==_0x445604['root']['rootName']?_0x4ccd19['model']['createRange'](_0x4e1f12['start']):_0x4ccd19['model']['createRange'](_0x445604['start'],_0x445604['end']),_0x445604['detach'](),_0x4ccd19['model']['enqueueChange'](_0x32210d['buffer']['batch'],_0x408adf=>{_0x32210d['buffer']['lock'](),_0x408adf['setSelection'](_0x408adf['createRange'](_0x2066bd['end'])),_0x32210d['buffer']['unlock']();});}),_0x4ccd19['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4ccd19,'merge'),{'priority':'high'}),_0x4ccd19['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x264f86,_0x9dba23,_0x4609f1)=>{_0x4609f1['options']['showSuggestionHighlights']&&_e(_0x4ccd19,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x264f86,_0x9dba23,_0x4609f1);},{'priority':'high'}),_0x4ccd19['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4b3f00,_0x34f0f4,_0x5cada2)=>{const _0x5a30e0=_0x5cada2['mapper']['markerNameToElements'](_0x34f0f4['markerName']);if(_0x5a30e0){for(const _0x1a0f77 of _0x5a30e0)_0x1a0f77['is']('uiElement')&&(_0x5cada2['mapper']['unbindElementFromMarkerName'](_0x1a0f77,_0x34f0f4['markerName']),_0x5cada2['writer']['remove'](_0x1a0f77));}},{'priority':'high'});}}class z extends _0x1ec07f{['afterInit'](){const _0x380cb7=this['editor'];if(!_0x380cb7['plugins']['has']('ListEditing'))return;const _0x29c491=_0x380cb7['locale'],_0x521ef7=_0x380cb7['plugins']['get']('TrackChangesEditing'),_0x13780f=_0x380cb7['plugins']['has']('TodoListEditing'),_0x34dd6c=!!_0x380cb7['config']['get']('list.multiBlock');function _0x301113(_0x1414b5){return{'type':'format','content':''+o(_0x29c491,'*Set\x20format:*\x20%0',_0x1414b5)};}function _0x557f60(_0x186853){return{'type':'format','content':''+o(_0x29c491,'*Remove\x20format:*\x20%0',_0x186853)};}_0x521ef7['enableDefaultAttributesIntegration']('numberedList'),_0x521ef7['enableDefaultAttributesIntegration']('bulletedList'),_0x521ef7['enableDefaultAttributesIntegration']('customNumberedList'),_0x521ef7['enableDefaultAttributesIntegration']('customBulletedList'),_0x521ef7['enableDefaultAttributesIntegration']('indentList'),_0x521ef7['enableDefaultAttributesIntegration']('outdentList'),_0x521ef7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x521ef7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x521ef7['registerBlockAttribute']('listItemId'),_0x521ef7['registerBlockAttribute']('listType'),_0x521ef7['registerBlockAttribute']('listIndent'),_0x34dd6c&&(_0x521ef7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x521ef7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x13780f&&(_0x521ef7['enableDefaultAttributesIntegration']('todoList'),_0x521ef7['enableDefaultAttributesIntegration']('checkTodoList'),_0x521ef7['registerBlockAttribute']('todoListChecked'),_0x521ef7['descriptionFactory']['registerDescriptionCallback'](_0x27b422=>{const {data:_0x221a5c}=_0x27b422;if(_0x221a5c&&'todoListChecked'==_0x221a5c['key'])return{'type':'format','content':_0x221a5c['newValue']?o(_0x29c491,'*Check\x20item*'):o(_0x29c491,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x507c06=>{if(_0x507c06['batch']['isUndo'])return!0x1;let _0x3d666c=!0x1;const _0x3ce190=_0x521ef7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c962a=>'todoListChecked'===_0x521ef7['_getAttributeKey'](_0x5c962a));for(const _0x3ddafe of _0x3ce190){'todo'!=_0x3ddafe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x521ef7['_findSuggestions'](_0x3ddafe['getFirstRange'](),'attribute')['find'](_0x5be369=>'listType'===_0x521ef7['_getAttributeKey'](_0x5be369['suggestion']))||(_0x507c06['removeMarker'](_0x3ddafe['getFirstMarker']()),_0x3d666c=!0x0));}return _0x3d666c;})),_0x521ef7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x29c491,'FORMAT_INDENT'));const _0x1d88cc={'type':'format','content':''};_0x521ef7['descriptionFactory']['registerDescriptionCallback'](_0x42ec35=>{const {data:_0x12113e}=_0x42ec35;if(!_0x12113e||'listType'!=_0x12113e['key'])return;let _0x5997c5=_0x42ec35['head'];for(;_0x5997c5;){if(_0x5997c5['data']&&(('listStyle'==_0x5997c5['data']['key']||'listMarkerStyle'==_0x5997c5['data']['key'])&&(_0x5997c5['data']['newValue']&&'default'!=_0x5997c5['data']['newValue']||'default'!=_0x5997c5['data']['oldValue']&&!_0x12113e['newValue'])||!_0x34dd6c&&_0x5997c5['data']['key']==m))return _0x1d88cc;_0x5997c5=_0x5997c5['next'];}if(null==_0x12113e['newValue'])switch(_0x12113e['oldValue']){case'bulleted':return _0x557f60(o(_0x29c491,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x557f60(o(_0x29c491,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x557f60(o(_0x29c491,'ELEMENT_TODO_LIST'));}switch(_0x12113e['newValue']){case'bulleted':return _0x301113(o(_0x29c491,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x301113(o(_0x29c491,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x301113(o(_0x29c491,'ELEMENT_TODO_LIST'));}}),_0x521ef7['descriptionFactory']['registerDescriptionCallback'](_0x1e2d7a=>{const {data:_0x1cdc07}=_0x1e2d7a;if(_0x1cdc07&&'listIndent'==_0x1cdc07['key'])return null==_0x1cdc07['newValue']||null==_0x1cdc07['oldValue']&&0x0==_0x1cdc07['newValue']?_0x1d88cc:void 0x0;}),_0x521ef7['descriptionFactory']['registerDescriptionCallback'](_0xc9bd37=>{if('attribute'!=_0xc9bd37['type'])return;const {data:_0x545bca}=_0xc9bd37;if(!_0x545bca||'listItemId'!=_0x545bca['key'])return;const _0x30d0a5=le(_0xc9bd37);return'newValue'==_0x30d0a5?{'type':'format','content':o(_0x29c491,'*Merge:*\x20list\x20item')}:'oldValue'==_0x30d0a5?{'type':'format','content':o(_0x29c491,'*Split:*\x20list\x20item')}:_0x1d88cc;}),_0x380cb7['model']['document']['registerPostFixer'](_0x26cde2=>this['listItemIdFixer'](_0x26cde2)),_0x380cb7['model']['document']['registerPostFixer'](_0x31d251=>this['noTrackChangesFixer'](_0x31d251)),_0x380cb7['model']['document']['registerPostFixer'](_0x553ad5=>this['assureChains'](_0x553ad5)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x724c3){if(_0x724c3['batch']['isUndo']||!_0x724c3['batch']['isLocal'])return!0x1;let _0x1ebbac=!0x1;const _0x3a5156=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d9e6b=>_0x5d9e6b['data']&&'listItemId'==_0x5d9e6b['data']['key'])['filter'](_0x3c75b2=>_0x3c75b2['data']['newValue']&&_0x3c75b2['data']['oldValue']);for(const _0x182a61 of _0x3a5156)le(_0x182a61)||(_0x724c3['removeMarker'](_0x182a61['getFirstMarker']()),_0x1ebbac=!0x0);return _0x1ebbac;}['noTrackChangesFixer'](_0x1ddee9){if(_0x1ddee9['batch']['isUndo']||!_0x1ddee9['batch']['isLocal'])return!0x1;const _0x2070f9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2070f9['trackChangesCommand']['value'])return!0x1;let _0x5e0f1c=!0x1;const _0x14fd04=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2418eb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1dfd0e=>'attribute'==_0x1dfd0e['type'])['filter'](_0x4f2395=>_0x14fd04['includes'](_0x4f2395['attributeKey']));if(0x0==_0x2418eb['length'])return _0x5e0f1c;for(const _0x637442 of _0x2418eb){const _0x25e7e4=_0x2070f9['_findSuggestions'](_0x637442['range'],'attribute')['filter'](_0x33a6b2=>!_0x33a6b2['meta']['isNextTo'])['map'](_0x2616ae=>_0x2616ae['suggestion'])['filter'](_0xc46a2c=>{const _0x2b8740=_0x2070f9['_getAttributeKey'](_0xc46a2c);return _0x14fd04['includes'](_0x2b8740);});if(_0x25e7e4['length']){for(const _0x1515bd of _0x25e7e4)_0x1ddee9['removeMarker'](_0x1515bd['getFirstMarker']());_0x5e0f1c=!0x0;}}return _0x5e0f1c;}['assureChains'](_0x2bd1f9){if(_0x2bd1f9['batch']['isUndo']||!_0x2bd1f9['batch']['isLocal'])return!0x1;const _0x310507=this['editor']['plugins']['get']('TrackChangesEditing');let _0x1b51c5=!0x1;const _0x1dbad4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1ba78c of _0x310507['getSuggestions']({'skipNotAttached':!0x0})){const _0x1a836a=_0x310507['_findSuggestions'](_0x1ba78c['getFirstRange'](),'attribute')['map'](_0x3a7d98=>_0x3a7d98['suggestion'])['filter'](_0x1ad5d7=>_0x1ad5d7['data']&&_0x1dbad4['includes'](_0x1ad5d7['data']['key']));if(!_0x1a836a['length'])continue;const _0x7d2cf7=_0x1a836a[0x0]['head']['attributes']['groupId'];if(!_0x1a836a['every'](_0x58c831=>_0x58c831['attributes']['groupId']===_0x7d2cf7)){for(const _0x775a67 of _0x1a836a)_0x2f0143(_0x775a67,_0x7d2cf7)&&(_0x1b51c5=!0x0);}}return _0x1b51c5;function _0x3d64ee(_0x194a3e,_0x436351){for(const _0x53e2de of _0x310507['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c7398=>'attribute'==_0x1c7398['type']&&_0x1c7398['attributes']['groupId']==_0x194a3e))_0x53e2de['setAttribute']('groupId',_0x436351);}function _0x2f0143(_0xd191a0,_0x4fb362){let _0x3926a2=_0xd191a0['head'],_0x4ba584=!0x1;for(;_0x3926a2;)_0x3926a2['attributes']['groupId']!=_0x4fb362&&(_0x3d64ee(_0x3926a2['attributes']['groupId'],_0x4fb362),_0x3926a2['setAttribute']('groupId',_0x4fb362),_0x4ba584=!0x0),_0x3926a2=_0x3926a2['next'];return _0x4ba584;}}['_supportLegacySuggestions'](){const _0x45a396=this['editor'],_0xb02603=_0x45a396['locale'],_0x14f570=_0x45a396['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14f570['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3642e2,_0x3cf984){const _0x213f74=[];for(let _0x553673 of _0x3642e2)_0x553673['start']['nodeAfter']===_0x553673['end']['parent']&&(_0x553673=_0x45a396['model']['createRange'](_0x45a396['model']['createPositionAt'](_0x553673['start']['nodeAfter'],0x0))),_0x213f74['push'](_0x553673);_0x45a396['model']['change'](_0x125ef1=>{const _0x2dffda=_0x45a396['model']['document']['selection'],_0x501887=Array['from'](_0x2dffda['getRanges']())['map'](_0x333cf4=>_0x30fc72['fromRange'](_0x333cf4));_0x125ef1['setSelection'](_0x213f74),_0x45a396['commands']['get'](_0x3cf984['commandName'])['refresh'](),_0x3cf984['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45a396['execute'](_0x3cf984['commandName'],..._0x3cf984['commandParams']),_0x125ef1['setSelection'](_0x501887);for(const _0x2bbed8 of _0x501887)_0x2bbed8['detach']();});}),_0x14f570['descriptionFactory']['registerElementLabel'](function(_0x409a20){const _0x128433=!_0x45a396['model']['schema']['isObject'](_0x409a20),_0x119899=_0x409a20['previousSibling'],_0x32a945=_0x409a20['nextSibling'],_0x2c8d43=_0x409a20['getAttribute']('listItemId'),_0x1dd2c8=!_0x119899||_0x119899['getAttribute']('listItemId')!==_0x2c8d43,_0x3df457=!_0x32a945||_0x32a945['getAttribute']('listItemId')!==_0x2c8d43;return _0x128433&&Boolean(_0x2c8d43)&&_0x1dd2c8&&_0x3df457;},_0x47d2ea=>o(_0xb02603,'ELEMENT_LIST_ITEM',_0x47d2ea));}['_registerLegacyDescription'](){const _0x7e8139=this['editor'],_0x1f8024=_0x7e8139['locale'];function _0x336f04(_0x25ebe0){const _0x19ea7a=_0x7e8139['commands']['get']('bulletedList')['value'],_0x19abe5=_0x7e8139['commands']['get']('numberedList')['value'];return'numberedList'===_0x25ebe0?_0x19ea7a:_0x19abe5;}_0x7e8139['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3801c0){if('formatBlock'!=_0x3801c0['type'])return;const {data:_0x2f8268}=_0x3801c0;if(!_0x2f8268)return;let _0xa7599c,_0x34ed7b,_0x5ed701,_0x21c71d;switch(_0x2f8268['commandName']){case'bulletedList':_0x5ed701=_0x2f8268['commandParams'][0x0]['forceValue'],_0x21c71d=_0x336f04(_0x2f8268['commandName']),_0xa7599c=_0x5ed701?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21c71d&&_0x7e8139['config']['get']('list.multiBlock')||(_0xa7599c='*Change\x20to:*\x20%0'),_0x34ed7b={'type':'format','content':o(_0x1f8024,_0xa7599c,o(_0x1f8024,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ed701=_0x2f8268['commandParams'][0x0]['forceValue'],_0x21c71d=_0x336f04(_0x2f8268['commandName']),_0xa7599c=_0x5ed701?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21c71d&&_0x7e8139['config']['get']('list.multiBlock')||(_0xa7599c='*Change\x20to:*\x20%0'),_0x34ed7b={'type':'format','content':o(_0x1f8024,_0xa7599c,o(_0x1f8024,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa7599c='*Indent:*\x20%0',_0x34ed7b={'type':'format','content':o(_0x1f8024,_0xa7599c,o(_0x1f8024,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa7599c=function(_0x4a1c46){const _0xddac7d=_0x4a1c46['getFirstRange']();let _0xd2ff24=_0xddac7d['start']['nodeAfter'];for(;_0xd2ff24&&_0xddac7d['containsItem'](_0xd2ff24);){if(_0xd2ff24['getAttribute']('listIndent')>0x0)return!0x1;_0xd2ff24=_0xd2ff24['nextSibling'];}return!0x0;}(_0x3801c0)?o(_0x1f8024,'*Format:*\x20remove\x20from\x20%0',o(_0x1f8024,function(_0x240032){return'ELEMENT_'+_0x240032['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3801c0))):o(_0x1f8024,'*Outdent:*\x20%0',o(_0x1f8024,'ELEMENT_LIST_ITEM')),_0x34ed7b={'type':'format','content':_0xa7599c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2f8268['multipleBlocks']&&(_0xa7599c='*Merge:*\x20%0',_0x34ed7b={'type':'deletion','content':o(_0x1f8024,_0xa7599c,o(_0x1f8024,'ELEMENT_LIST_ITEM'))});}return _0x34ed7b;});}}function le(_0x48cb3e){let _0x4948b6=_0x48cb3e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4948b6;){const _0x3e78ed=_0x4948b6['getAttribute']('listItemId');if(!_0x3e78ed)return!0x1;if(_0x3e78ed==_0x48cb3e['data']['newValue'])return'newValue';if(_0x3e78ed==_0x48cb3e['data']['oldValue'])return'oldValue';_0x4948b6=_0x4948b6['previousSibling'];}return!0x1;}class pe extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4e388f=this['editor']['config']['get']('list.properties'),_0x24066c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e388f['styles']&&(_0x24066c['enableDefaultAttributesIntegration']('listStyle'),_0x24066c['registerBlockAttribute']('listStyle')),_0x4e388f['reversed']&&(_0x24066c['enableDefaultAttributesIntegration']('listReversed'),_0x24066c['registerBlockAttribute']('listReversed')),_0x4e388f['startIndex']&&(_0x24066c['enableDefaultAttributesIntegration']('listStart'),_0x24066c['registerBlockAttribute']('listStart'));const _0xe765c8={'type':'format','content':''};_0x24066c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x51b3b0=this['editor']['locale'];_0x24066c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x51b3b0,'FORMAT_LIST_REVERSED')),_0x24066c['descriptionFactory']['registerDescriptionCallback'](_0x48a535=>{const {data:_0x2896e1}=_0x48a535;if(_0x2896e1&&'listReversed'==_0x2896e1['key'])return null==_0x2896e1['newValue']||0x0==_0x2896e1['newValue']&&null==_0x2896e1['oldValue']?_0xe765c8:void 0x0;}),_0x24066c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x51b3b0,'FORMAT_LIST_START')),_0x24066c['descriptionFactory']['registerDescriptionCallback'](_0x39209a=>{const {data:_0x424181}=_0x39209a;if(_0x424181&&'listStart'==_0x424181['key'])return null==_0x424181['newValue']||0x1==_0x424181['newValue']&&null==_0x424181['oldValue']?_0xe765c8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b0f69=>{if(_0x4b0f69['batch']['isUndo'])return!0x1;let _0x225b05=!0x1;const _0x11b246=_0x24066c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56232a=>{const _0x7278c7=_0x24066c['_getAttributeKey'](_0x56232a);return'listStart'==_0x7278c7||'listReversed'==_0x7278c7;});for(const _0x5cb326 of _0x11b246){const _0x110b7a=_0x5cb326['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x110b7a||'customNumbered'==_0x110b7a)continue;_0x24066c['_findSuggestions'](_0x5cb326['getFirstRange'](),'attribute')['find'](_0x5c604a=>'listType'==_0x24066c['_getAttributeKey'](_0x5c604a['suggestion']))||(_0x4b0f69['removeMarker'](_0x5cb326['getFirstMarker']()),_0x225b05=!0x0);}return _0x225b05;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x8959d){const _0x1edbee=this['editor']['locale'],{data:_0x3f914d}=_0x8959d,_0x31cbd2={'type':'format','content':''};if(!_0x3f914d||'listStyle'!=_0x3f914d['key'])return;if(!_0x3f914d['oldValue'])return'default'==_0x3f914d['newValue']?_0x31cbd2:{'type':'format','content':''+o(_0x1edbee,'*Set\x20format:*\x20%0',o(_0x1edbee,this['_getTranslationKeyForListStyle'](_0x3f914d['newValue'])))};if(!_0x3f914d['newValue']){if('default'==_0x3f914d['oldValue'])return _0x31cbd2;let _0x3368a6=_0x8959d['head'];for(;_0x3368a6;){if(_0x3368a6['data']&&'listType'==_0x3368a6['data']['key']&&_0x3368a6['data']['newValue'])return _0x31cbd2;_0x3368a6=_0x3368a6['next'];}return{'type':'format','content':''+o(_0x1edbee,'*Remove\x20format:*\x20%0',o(_0x1edbee,this['_getTranslationKeyForListStyle'](_0x3f914d['oldValue'])))};}if('default'!=_0x3f914d['newValue'])return{'type':'format','content':''+o(_0x1edbee,'*Set\x20format:*\x20%0',o(_0x1edbee,this['_getTranslationKeyForListStyle'](_0x3f914d['newValue'])))};let _0x35bee5=_0x8959d['head'];for(;_0x35bee5;){if(_0x35bee5['data']&&'listType'==_0x35bee5['data']['key']&&_0x35bee5['data']['newValue']&&_0x35bee5['data']['oldValue'])return _0x31cbd2;_0x35bee5=_0x35bee5['next'];}return{'type':'format','content':o(_0x1edbee,'*Set\x20format:*\x20%0',o(_0x1edbee,'ELEMENT_'+_0x8959d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x40c499=this['editor'],_0x20d789=_0x40c499['locale'];_0x40c499['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa4301a=>{if('formatBlock'!=_0xa4301a['type'])return;const {data:_0x93ab40}=_0xa4301a;if(!_0x93ab40)return;let _0xa252f1,_0x448c1f;switch(_0x93ab40['commandName']){case'listStyle':_0xa252f1='*Change\x20to:*\x20%0',_0x448c1f={'type':'format','content':o(_0x20d789,_0xa252f1,o(_0x20d789,this['_getTranslationKeyForListStyle'](_0x93ab40['commandParams'][0x0]['type'])))};break;case'listReversed':_0xa252f1=_0x93ab40['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x448c1f={'type':'format','content':o(_0x20d789,_0xa252f1)};break;case'listStart':_0xa252f1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x448c1f={'type':'format','content':o(_0x20d789,_0xa252f1,_0x93ab40['commandParams'][0x0]['startIndex'])};}return _0x448c1f;});}['_getTranslationKeyForListStyle'](_0x1319dc){return'ELEMENT_'+function(_0x1557e){if(ye['includes'](_0x1557e))return'bulleted';if(he['includes'](_0x1557e))return'numbered';return null;}(_0x1319dc)['toUpperCase']()+'_LIST_'+_0x1319dc['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1ec07f{static get['requires'](){return[_0x422272];}['init'](){const _0x480412=this['editor'],_0xfce3ec=_0x480412['plugins']['get']('TrackChangesEditing'),_0x12f638=_0x480412['commands']['get']('enter');_0xfce3ec['enableCommand']('enter',()=>{_0x480412['model']['change'](_0x233650=>{const _0x287dbf=_0x480412['model']['document']['selection'],_0x4aa2c9=_0x287dbf['getFirstPosition'](),_0x8afdab=_0x30fc72['fromRange'](_0x287dbf['getFirstRange']());if(_0x12f638['enterBlock'](_0x233650)){const _0x3fc1db=_0x480412['model']['createPositionAt'](_0x4aa2c9['parent']['nextSibling'],0x0),_0x363097=_0x233650['createRange'](_0x4aa2c9,_0x3fc1db);_0xfce3ec['markInsertion'](_0x363097);}else _0x233650['setSelection'](_0x233650['createRange'](_0x8afdab['end']));_0x8afdab['detach'](),_0x12f638['fire']('afterExecute',{'writer':_0x233650});});}),_0x480412['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x480412,'split'),{'priority':'high'}),_0x480412['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xd33ac6,_0x4a313c,_0x1b1155)=>{const _0x27d707=_0x1b1155['mapper']['markerNameToElements'](_0x4a313c['markerName']);if(_0x27d707){for(const _0x5cb92f of _0x27d707)_0x5cb92f['hasClass']('ck-suggestion-marker-split')&&(_0x1b1155['mapper']['unbindElementFromMarkerName'](_0x5cb92f,_0x4a313c['markerName']),_0x1b1155['writer']['remove'](_0x5cb92f));}},{'priority':'high'}),_0x480412['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x301a21,_0x22999a,_0x5072ac)=>{_0x5072ac['options']['showSuggestionHighlights']&&_e(_0x480412,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x301a21,_0x22999a,_0x5072ac);},{'priority':'high'});}}class J extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2fc851=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fc851['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2fc851['enableCommand']('findNext'),_0x2fc851['enableCommand']('findPrevious'),_0x2fc851['enableCommand']('replace'),_0x2fc851['enableCommand']('replaceAll');}['handleFindCommand'](_0x3f7009,_0x2b940c,_0x100db6={}){const _0xc2efab=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3f7009(_0x7ec29a=>{let _0x180928=('string'==typeof _0x2b940c?_0xc2efab['findByTextCallback'](_0x2b940c,_0x100db6):_0x2b940c)(_0x7ec29a);Array['isArray'](_0x180928)&&(_0x180928={'results':_0x180928,'searchText':'string'==typeof _0x2b940c?_0x2b940c:''});const _0x9b2ab9=_0x180928['results']['filter'](_0x92e0ac=>!0x1===this['_isInDeletionRange'](_0x92e0ac,_0x7ec29a['item']));return{..._0x180928,'results':_0x9b2ab9};},_0x100db6);}['_isInDeletionRange'](_0x5ba29e,_0x5108d5){const _0x5ab853=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5108d5,_0x5ba29e['start']),this['editor']['model']['createPositionAt'](_0x5108d5,_0x5ba29e['end']));for(const _0xa4ce23 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ab853['getIntersection'](_0xa4ce23['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 _0x1ec07f{['afterInit'](){const _0x39712b=this['editor']['locale'],_0x100ad6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3697f3,commandName:_0x16ccfe}of ro)this['editor']['plugins']['has'](_0x3697f3)&&(_0x100ad6['enableDefaultAttributesIntegration'](_0x16ccfe),_0x100ad6['registerInlineAttribute'](_0x16ccfe));_0x100ad6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39712b,'FORMAT_FONT_SIZE')),_0x100ad6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39712b,'FORMAT_FONT_FAMILY')),_0x100ad6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39712b,'FORMAT_FONT_COLOR')),_0x100ad6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39712b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23af78=this['editor'],_0x442e15=_0x23af78['locale'];_0x23af78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24fef7=>{const _0x1cefa7=_0x442e15['t'];if('formatInline'!=_0x24fef7['type'])return;const {data:_0x2ec4f7}=_0x24fef7;if(null!=_0x2ec4f7){if('fontSize'==_0x2ec4f7['commandName']){const _0x2f26ee=_0x2ec4f7['commandParams'][0x0]['value'];if(_0x2f26ee){const _0x27e803=_0x1cefa7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x396b51=>_0x396b51['model']==_0x2f26ee)['title'])['toLowerCase']();return{'type':'format','content':o(_0x442e15,'*Set\x20font\x20size:*\x20%0',_0x27e803)};}return{'type':'format','content':o(_0x442e15,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2ec4f7['commandName']){const _0x123985=_0x2ec4f7['commandParams'][0x0]['value'];return _0x123985?{'type':'format','content':o(_0x442e15,'*Set\x20font\x20family:*\x20%0',_0x123985)}:{'type':'format','content':o(_0x442e15,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2ec4f7['commandName']){const _0x581978=_0x2ec4f7['commandParams'][0x0]['value'];if(_0x581978){const _0x20e9a7=_0x5d10c7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3affe2=>_0x3affe2['model']==_0x581978);let _0x239129=_0x581978,_0x53d9a9='';return _0x20e9a7&&(_0x239129=_0x20e9a7['label'],_0x53d9a9=_0x1cefa7(_0x239129)['toLowerCase']()),{'type':'format','content':o(_0x442e15,'*Set\x20font\x20color:*\x20%0',_0x53d9a9)['trim'](),'color':{'value':_0x581978,'title':_0x53d9a9||_0x239129}};}return{'type':'format','content':o(_0x442e15,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2ec4f7['commandName']){const _0x34a905=_0x2ec4f7['commandParams'][0x0]['value'];if(_0x34a905){const _0xf7d5fe=_0x5d10c7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f29bc=>_0x1f29bc['model']==_0x34a905);let _0x2a0812=_0x34a905,_0x2a8bc7='';return _0xf7d5fe&&(_0x2a0812=_0xf7d5fe['label'],_0x2a8bc7=_0x1cefa7(_0x2a0812)['toLowerCase']()),{'type':'format','content':o(_0x442e15,'*Set\x20font\x20background\x20color:*\x20%0',_0x2a8bc7)['trim'](),'color':{'value':_0x34a905,'title':_0x2a8bc7||_0x2a0812}};}return{'type':'format','content':o(_0x442e15,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1ec07f{['afterInit'](){const _0x221710=this['editor'],_0x5eef50=_0x221710['plugins']['get']('TrackChangesEditing'),_0x5f4ddf=_0x221710['commands']['get']('copyFormat'),_0x5b0523=_0x221710['commands']['get']('pasteFormat');_0x5f4ddf&&_0x5b0523&&(_0x5eef50['enableDefaultAttributesIntegration']('pasteFormat'),_0x5eef50['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x129c64=this['editor'],_0x520937=_0x129c64['locale'];_0x129c64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1658a5=>{if('formatBlock'!=_0x1658a5['type']&&'formatInline'!=_0x1658a5['type'])return;const {data:_0x3d7bdd}=_0x1658a5;if(_0x3d7bdd&&'pasteFormat'===_0x3d7bdd['commandName']){const _0x13826c=[],_0x5ecd7e=_0x3d7bdd['commandParams'][0x0];for(const [_0x47f85c,_0x23f39e]of Object['entries'](_0x5ecd7e))_0x13826c['push'](so(_0x129c64,_0x47f85c,_0x23f39e));return _0x13826c['length']?{'type':'format','content':o(_0x520937,'*Set\x20format\x20to:*\x20%0',_0x13826c['join'](',\x20'))}:{'type':'format','content':o(_0x520937,'*Remove\x20all\x20formatting*')};}});}}function so(_0x54b708,_0x46fa3a,_0x3fc89e){const _0x288548=_0x54b708['locale']['t'],_0x4e9aa8=_0x46fa3a['split'](/(?=[A-Z])/)['join']('\x20'),_0x55cb9d=_0x288548(_0x4e9aa8['charAt'](0x0)['toUpperCase']()+_0x4e9aa8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3fc89e)return _0x55cb9d;if('fontColor'===_0x46fa3a||'fontBackgroundColor'===_0x46fa3a){const _0x6a8e30=_0x5d10c7(_0x54b708['config']['get']('fontColor.colors'))['find'](_0x5596b6=>_0x5596b6['model']==_0x3fc89e);return _0x55cb9d+'\x20('+(_0x6a8e30?_0x288548(_0x6a8e30['label'])['toLowerCase']():_0x3fc89e)+')';}if('fontSize'===_0x46fa3a&&isNaN(parseFloat(_0x3fc89e))){const _0x4a8f93=_0x54b708['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x54b708['config']['get']('fontSize.options'))['find'](_0x27f31e=>_0x27f31e['model']==_0x3fc89e);return _0x55cb9d+'\x20('+(_0x4a8f93?_0x288548(_0x4a8f93['title'])['toLowerCase']():_0x3fc89e)+')';}return _0x55cb9d+'\x20('+_0x3fc89e+')';}class Y extends _0x1ec07f{['_headingOptions'];['afterInit'](){const _0x584c7c=this['editor'];if(!_0x584c7c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x584c7c['config']['get']('heading.options');const _0x160e9e=_0x584c7c['locale'],_0x5e019a=_0x584c7c['plugins']['get']('TrackChangesEditing');_0x5e019a['enableDefaultAttributesIntegration']('heading');for(const _0x270b56 of this['_headingOptions'])'paragraph'!=_0x270b56['model']&&_0x5e019a['descriptionFactory']['registerElementLabel'](_0x270b56['model'],_0xc8f8ad=>{const _0x5a7fb1=this['_getHeadingLevel'](_0x270b56['model']);return null!==_0x5a7fb1?_0x2b0f8e(_0xc8f8ad,_0x5a7fb1):_0x53fa2b(_0xc8f8ad,_0x270b56['title']);});function _0x2b0f8e(_0x23fed2,_0x2d08e3){return o(_0x160e9e,'ELEMENT_HEADING',[_0x23fed2,_0x2d08e3]);}function _0x53fa2b(_0x119be8,_0x5dce5e){return o(_0x160e9e,'ELEMENT_HEADING_CUSTOM',[_0x119be8,_0x5dce5e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e1bc=this['editor'],_0x40cf60=_0x58e1bc['locale'];function _0x2d60a0(_0x239a7a,_0x247d0b){return o(_0x40cf60,'ELEMENT_HEADING_CUSTOM',[_0x239a7a,_0x247d0b]);}_0x58e1bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42d542=>{if('formatBlock'!=_0x42d542['type'])return;const {data:_0x14e7a1}=_0x42d542;if(_0x14e7a1&&'heading'==_0x14e7a1['commandName']){const _0x146cb1=_0x14e7a1['commandParams'][0x0]['value'],_0x11f5e6=this['_getHeadingLevel'](_0x146cb1);if(null!==_0x11f5e6)return{'type':'format','content':o(_0x40cf60,'*Change\x20to:*\x20%0',(_0x11dc43=0x1,_0x3a0703=_0x11f5e6,o(_0x40cf60,'ELEMENT_HEADING',[_0x11dc43,_0x3a0703])))};const _0x4421f4=this['_headingOptions']['find'](_0x3544ee=>_0x3544ee['model']===_0x146cb1)['title'];return{'type':'format','content':o(_0x40cf60,'*Change\x20to:*\x20%0',_0x2d60a0(0x1,_0x4421f4))};}var _0x11dc43,_0x3a0703;});}['_getHeadingLevel'](_0x11fa4c){const _0x254392=_0x11fa4c['match'](/^heading(\d+)/);if(_0x254392)return _0x254392[0x1];const _0x434731=this['_headingOptions']?.['find'](_0x1c9014=>_0x1c9014['model']==_0x11fa4c);if(_0x434731&&_0x434731['view']){const _0x288740=_0x434731['view'],_0x32d32c=(_0x288740['name']??_0x288740)['match'](/^h(\d+)/);if(_0x32d32c)return _0x32d32c[0x1];}return null;}}class Z extends _0x1ec07f{['afterInit'](){const _0x17b9b6=this['editor'];if(!_0x17b9b6['plugins']['has']('HighlightEditing'))return;const _0x2fdd1c=_0x17b9b6['plugins']['get']('TrackChangesEditing'),_0x74c412=_0x17b9b6['locale'];_0x2fdd1c['enableDefaultAttributesIntegration']('highlight'),_0x2fdd1c['registerInlineAttribute']('highlight'),_0x2fdd1c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x74c412,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f1cf9=this['editor'],_0x33a9f5=_0x5f1cf9['locale'];_0x5f1cf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da0af=>{if('formatInline'!=_0x5da0af['type'])return;const {data:_0x51cfc6}=_0x5da0af;if(_0x51cfc6&&'highlight'==_0x51cfc6['commandName']){const _0x487865=_0x33a9f5['t'],_0x57626b=_0x51cfc6['commandParams'][0x0]['value'];if(_0x57626b){const _0x944233=_0x5f1cf9['config']['get']('highlight.options')['find'](_0x5d04ae=>_0x5d04ae['model']==_0x57626b),_0x17eb66=_0x487865(_0x944233['title'])['toLowerCase']();return{'type':'format','content':o(_0x33a9f5,'*Set\x20highlight:*\x20%0',_0x17eb66),'color':{'value':_0x944233['color'],'title':_0x944233['title']}};}return{'type':'format','content':o(_0x33a9f5,'*Remove\x20highlight*',o(_0x33a9f5,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1ec07f{['afterInit'](){const _0x5e7726=this['editor'];if(!_0x5e7726['plugins']['has']('HorizontalLineEditing'))return;_0x5e7726['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2f959e=_0x5e7726['plugins']['get']('TrackChangesEditing'),_0x7e4faa=_0x5e7726['locale'];_0x2f959e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2426cb=>o(_0x7e4faa,'ELEMENT_HORIZONTAL_LINE',_0x2426cb)),_0x5e7726['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1a3127,{writer:_0x388533,options:_0x4aa0dd})=>{if(!_0x4aa0dd['showSuggestionHighlights'])return null;const _0x506875=_0x388533['createContainerElement']('div'),_0x3fff40=_0x388533['createEmptyElement']('hr');return _0x388533['addClass']('ck-horizontal-line',_0x506875),_0x388533['insert'](_0x388533['createPositionAt'](_0x506875,0x0),_0x3fff40),_0x506875;},'converterPriority':'high'});}}class et extends _0x1ec07f{['afterInit'](){const _0x71bb93=this['editor'];if(!_0x71bb93['plugins']['has']('HtmlEmbed'))return;const _0x45cd30=_0x71bb93['plugins']['get']('TrackChangesEditing'),_0x5ee5e9=_0x71bb93['locale'];_0x45cd30['descriptionFactory']['registerElementLabel']('rawHtml',_0x543541=>o(_0x5ee5e9,'ELEMENT_HTML_EMBED',_0x543541)),_0x45cd30['enableDefaultAttributesIntegration']('htmlEmbed'),_0x45cd30['registerBlockAttribute']('value'),_0x45cd30['descriptionFactory']['registerDescriptionCallback'](_0x25c094=>{if('attribute'!=_0x25c094['type'])return;const {data:_0x51d6e1}=_0x25c094;if(_0x51d6e1&&'value'==_0x51d6e1['key']&&_0x25c094['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10e90f=o(_0x5ee5e9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5ee5e9,'*Change\x20%0\x20content*',_0x10e90f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c2f79=this['editor'],_0x2590a5=_0x6c2f79['locale'];_0x6c2f79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x263138=>{if('formatBlock'!=_0x263138['type'])return;const {data:_0x174e7b}=_0x263138;if(_0x174e7b&&'htmlEmbed'==_0x174e7b['commandName']){const _0x4381e2=o(_0x2590a5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2590a5,'*Change\x20%0\x20content*',_0x4381e2)};}});}}class it extends _0x1ec07f{['afterInit'](){const _0x13ac2c=this['editor'];if(!_0x13ac2c['plugins']['has']('ImageEditing'))return;const _0x317e0d=_0x13ac2c['plugins']['get']('TrackChangesEditing'),_0x550295=_0x13ac2c['plugins']['get']('ImageUtils'),_0x16fb27=_0x13ac2c['locale'];_0x317e0d['enableCommand']('insertImage'),_0x317e0d['descriptionFactory']['registerElementLabel']('imageBlock',_0x18aea4=>o(_0x16fb27,'ELEMENT_IMAGE',_0x18aea4)),_0x317e0d['descriptionFactory']['registerElementLabel']('imageInline',_0xaa28ff=>o(_0x16fb27,'ELEMENT_INLINE_IMAGE',_0xaa28ff)),_0x317e0d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x16fb27,'ELEMENT_CAPTION')),_0x13ac2c['plugins']['has']('ImageUploadEditing')&&_0x317e0d['enableCommand']('uploadImage'),_0x13ac2c['plugins']['has']('ImageBlockEditing')&&_0x13ac2c['plugins']['has']('ImageInlineEditing')&&(_0x317e0d['enableCommand']('imageTypeInline',(_0x9283aa,_0x447199)=>{const _0x5054c0=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']);_0x13ac2c['model']['change'](()=>{_0x317e0d['markBlockFormat'](_0x5054c0,{'commandName':'imageTypeInline','commandParams':[_0x447199]},[],'convertBlockImageToInline');});}),_0x317e0d['enableCommand']('imageTypeBlock',(_0x183b95,_0x4aef89)=>{_0x13ac2c['model']['change'](_0x57bf5c=>{let _0x3c5fc5=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']),_0x47b243=_0x57bf5c['createRangeOn'](_0x3c5fc5);const _0x88813d=_0x2e0135['fromPosition'](_0x47b243['start'],'toPrevious'),_0x1c1c37=_0x2e0135['fromPosition'](_0x47b243['end'],'toNext');_0x317e0d['forceDefaultExecution'](()=>_0x183b95(_0x4aef89)),_0x3c5fc5=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']),_0x47b243=_0x57bf5c['createRangeOn'](_0x3c5fc5);const _0x3b602d=_0x57bf5c['createRange'](_0x88813d,_0x1c1c37);_0x88813d['detach'](),_0x1c1c37['detach'](),_0x317e0d['markBlockFormat'](_0x3c5fc5,{'commandName':'imageTypeInline','commandParams':[_0x4aef89]},[],'convertInlineImageToBlock'),_0x3b602d['start']['isBefore'](_0x47b243['start'])&&_0x317e0d['markInsertion'](_0x57bf5c['createRange'](_0x3b602d['start'],_0x47b243['start']),'convertInlineImageToBlock'),_0x47b243['end']['isBefore'](_0x3b602d['end'])&&_0x317e0d['markInsertion'](_0x57bf5c['createRange'](_0x47b243['end'],_0x3b602d['end']),'convertInlineImageToBlock');});}),_0x317e0d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x317e0d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x317e0d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x317e0d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x317e0d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x317e0d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2af9a9])=>{const _0x2f235c=_0x317e0d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x384e08=_0x2af9a9['start'],_0x39f1a1=_0x2af9a9['end'];const _0x58e0a8=_0x13ac2c['model']['schema']['getNearestSelectionRange'](_0x384e08,'backward'),_0x55c22b=_0x13ac2c['model']['schema']['getNearestSelectionRange'](_0x39f1a1,'forward');_0x58e0a8['isCollapsed']&&(_0x384e08=_0x58e0a8['start']),_0x55c22b['isCollapsed']&&(_0x39f1a1=_0x55c22b['end']),_0x2f235c([_0x13ac2c['model']['createRange'](_0x384e08,_0x39f1a1)]);}),_0x317e0d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2583ad),_0x317e0d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2583ad)),_0x13ac2c['plugins']['has']('ImageCaptionEditing')&&(_0x317e0d['enableCommand']('toggleImageCaption',(_0x28c1fb,_0x4e86da)=>{const _0x22d150=_0x13ac2c['plugins']['get']('ImageCaptionUtils');let _0x19924b=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']),_0xa1945d=_0x22d150['getCaptionFromImageModelElement'](_0x19924b);_0x13ac2c['model']['change'](()=>{if(_0xa1945d)return void _0x317e0d['markDeletion'](_0x13ac2c['model']['createRangeOn'](_0xa1945d));const _0x28cc55=_0x550295['isBlockImage'](_0x19924b);_0x28c1fb(_0x4e86da),_0x19924b=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']),_0xa1945d=_0x22d150['getCaptionFromImageModelElement'](_0x19924b),_0x317e0d['markInsertion'](_0x13ac2c['model']['createRangeOn'](_0xa1945d),_0x28cc55?null:'imageCaption');});}),_0x317e0d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2583ad));const _0x396d94=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25ecb5(_0x540e4d,_0x268659){const _0x117377=_0x396d94['findIndex'](({type:_0x3b4fe0,subType:_0x3a8551})=>_0x540e4d['type']==_0x3b4fe0&&_0x540e4d['subType']==_0x3a8551),_0x1b7946=_0x396d94['findIndex'](({type:_0x5bc40e,subType:_0x2d4dee})=>_0x268659['type']==_0x5bc40e&&_0x268659['subType']==_0x2d4dee);if(_0x117377<0x0||_0x1b7946<0x0)return!0x1;const _0x2d3258=_0x540e4d['getFirstRange'](),_0x159742=_0x268659['getFirstRange']();if((0x0==_0x117377||0x1==_0x117377)&&0x2==_0x1b7946&&_0x2d3258['isIntersecting'](_0x159742))return!0x0;if(0x2==_0x117377&&0x3==_0x1b7946){const _0x62550c=_0x317e0d['_findSuggestions'](_0x2d3258,'insertion')['filter'](({suggestion:_0x129137,meta:_0x56e443})=>_0x56e443['isOwn']&&'convertInlineImageToBlock'==_0x129137['subType']);if(_0x62550c['length']>0x1&&_0x159742['end']['isEqual'](_0x2d3258['start']))return!0x0;if(0x1==_0x62550c['length']&&(_0x2d3258['start']['isEqual'](_0x159742['end'])||_0x2d3258['end']['isEqual'](_0x159742['start'])))return!0x0;}if(0x3==_0x117377&&0x3==_0x1b7946&&_0x2d3258['start']['isBefore'](_0x159742['start'])){const _0x46bbeb=_0x2d3258['end']['nodeAfter'],_0x14dc01=_0x159742['start']['nodeBefore'];return _0x550295['isBlockImage'](_0x46bbeb)&&_0x46bbeb===_0x14dc01;}return!0x1;}function _0x2583ad(_0x54c436,_0x5a91e1){return _0x25ecb5(_0x54c436,_0x5a91e1)?[_0x54c436,_0x5a91e1]:_0x25ecb5(_0x5a91e1,_0x54c436)?[_0x5a91e1,_0x54c436]:null;}_0x13ac2c['plugins']['has']('ImageResize')&&(_0x317e0d['enableDefaultAttributesIntegration']('resizeImage'),_0x317e0d['registerBlockAttribute']('resizedWidth'),_0x317e0d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x16fb27,'FORMAT_IMAGE_SIZE'))),_0x13ac2c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x317e0d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x317e0d['registerBlockAttribute']('alt')),_0x317e0d['descriptionFactory']['registerDescriptionCallback'](_0x3ee026=>{if(!!_0x396d94['find'](({type:_0x475211,subType:_0x3f37eb})=>_0x3ee026['type']==_0x475211&&_0x3ee026['subType']==_0x3f37eb))return _0x3ee026['previous']?{}:void 0x0;}),_0x317e0d['descriptionFactory']['registerDescriptionCallback'](_0x54b725=>{if('insertion'==_0x54b725['type']||'deletion'==_0x54b725['type']){const _0x1d6a50=_0x54b725['getContainedElement']();if(_0x1d6a50&&_0x1d6a50['is']('element','caption'))return{'type':'insertion'==_0x54b725['type']?'addObject':'removeObject','element':_0x1d6a50,'quantity':0x1};}}),_0x317e0d['descriptionFactory']['registerDescriptionCallback'](_0x21752d=>'formatBlock'==_0x21752d['type']&&'convertInlineImageToBlock'==_0x21752d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x21752d['type']&&'convertBlockImageToInline'==_0x21752d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x317e0d['descriptionFactory']['registerDescriptionCallback'](_0x5e98cd=>{if('attribute'!=_0x5e98cd['type'])return;const {data:_0xdec972}=_0x5e98cd;if(!_0xdec972||'alt'!=_0xdec972['key'])return;const _0x58bc19=_0xdec972['newValue'];return _0x58bc19?{'type':'format','content':o(_0x16fb27,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x58bc19+'\x22')}:{'type':'format','content':o(_0x16fb27,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cb4ec=this['editor'],_0x88787e=_0x1cb4ec['locale'];_0x1cb4ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f685a=>{if('formatBlock'!=_0x4f685a['type']&&'formatInline'!=_0x4f685a['type'])return;const {data:_0x4861f4}=_0x4f685a;if(_0x4861f4){if('imageTextAlternative'==_0x4861f4['commandName']){const _0x50212a=_0x4861f4['commandParams'][0x0]['newValue'];return _0x50212a?{'type':'format','content':o(_0x88787e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50212a+'\x22')}:{'type':'format','content':o(_0x88787e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4861f4['commandName']){const _0x12bb47=_0x4861f4['commandParams'][0x0]['width'];return _0x12bb47?{'type':'format','content':o(_0x88787e,'*Set\x20image\x20width:*\x20%0',_0x12bb47)}:{'type':'format','content':o(_0x88787e,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x13dc4c=this['editor']['locale'],_0x4a1733=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a1733['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4a1733['registerBlockAttribute']('src'),_0x4a1733['descriptionFactory']['registerDescriptionCallback'](_0x3df73b=>{if('attribute'!=_0x3df73b['type'])return;const {data:_0x1bc757}=_0x3df73b;return _0x1bc757&&'src'==_0x1bc757['key']?_0x1bc757['newValue']&&_0x1bc757['oldValue']?{'type':'format','content':o(_0x13dc4c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48c891=this['editor']['plugins']['get']('TrackChangesEditing');_0x48c891['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x48c891['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48c891['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x48c891['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3839ef=this['editor'],_0xac6821=_0x3839ef['locale'];_0x3839ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58c19e=>{if('formatBlock'!=_0x58c19e['type']&&'formatInline'!=_0x58c19e['type'])return;const {data:_0x94a409}=_0x58c19e;if(!_0x94a409||'replaceImageSource'!=_0x94a409['commandName'])return;return{'type':'format','content':o(_0xac6821,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1ec07f{['afterInit'](){const _0x63c644=this['editor'];if(!_0x63c644['plugins']['has']('ImageStyleEditing'))return;const _0x223eb2=_0x63c644['plugins']['get']('TrackChangesEditing'),_0x4ddc85=_0x63c644['plugins']['get']('ImageUtils'),_0x47bcda={};_0x223eb2['enableCommand']('imageStyle',(_0x206376,_0x875a1d)=>{const _0x584732=_0x63c644['plugins']['get']('Users')['me'],_0x80a84a=_0x63c644['commands']['get']('imageStyle');let _0x5ac1f9=_0x4ddc85['getClosestSelectedImageElement'](_0x63c644['model']['document']['selection']),_0x12c16b=_0x63c644['model']['createRangeOn'](_0x5ac1f9),_0x4ca07b=_0x80a84a['value'];if(_0x4ca07b==_0x875a1d['value'])return;const _0x3f87e2={'commandName':'imageStyle','commandParams':[_0x875a1d],'formatGroupId':_0x280966()};_0x63c644['model']['change'](()=>{if(_0x223eb2['getSuggestions']()['filter'](_0x36fcfa=>_0x36fcfa['isInContent']&&_0x584732==_0x36fcfa['author']&&('formatBlock'==_0x36fcfa['type']||'formatInline'==_0x36fcfa['type'])&&('imageStylePreApply'==_0x36fcfa['subType']||'imageStylePostApply'==_0x36fcfa['subType'])&&_0x36fcfa['getFirstRange']()['isEqual'](_0x12c16b))['forEach'](_0x350065=>_0x223eb2['discardSuggestion'](_0x350065['head'])),_0x5ac1f9=_0x4ddc85['getClosestSelectedImageElement'](_0x63c644['model']['document']['selection']),_0x12c16b=_0x63c644['model']['createRangeOn'](_0x5ac1f9),_0x80a84a['refresh'](),_0x63c644['commands']['get']('imageTypeInline')['refresh'](),_0x63c644['commands']['get']('imageTypeBlock')['refresh'](),_0x4ca07b=_0x80a84a['value'],_0x4ca07b!=_0x875a1d['value'])return _0x4ddc85['isInlineImage'](_0x5ac1f9)&&_0x80a84a['shouldConvertImageType'](_0x875a1d['value'],_0x5ac1f9)?(_0x206376({..._0x875a1d,'setImageSizes':!0x1}),_0x5ac1f9=_0x4ddc85['getClosestSelectedImageElement'](_0x63c644['model']['document']['selection']),void _0x223eb2['markBlockFormat'](_0x5ac1f9,{..._0x3f87e2,'commandReversedParams':[{'value':_0x4ca07b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ddc85['isBlockImage'](_0x5ac1f9)?_0x223eb2['markBlockFormat'](_0x5ac1f9,_0x3f87e2,[],'imageStylePostApply'):_0x223eb2['markInlineFormat'](_0x12c16b,_0x3f87e2,'imageStylePostApply'));});});for(const _0x4e60ad of _0x63c644['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x47bcda[_0x4e60ad['name']]=_0x4e60ad['title']['toLowerCase']();_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3f71b7])=>{_0x4ddc85['setImageNaturalSizeAttributes'](_0x3f71b7['getContainedElement']());}),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x391a9b,_0x1e776d)=>{_0x223eb2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x391a9b,{'commandName':_0x1e776d['commandName'],'commandParams':_0x1e776d['commandReversedParams']});}),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1bd8fa,_0xf24082){if(_0x2aab2c(_0x1bd8fa,_0xf24082))return[_0x1bd8fa,_0xf24082];if(_0x2aab2c(_0xf24082,_0x1bd8fa))return[_0xf24082,_0x1bd8fa];return null;});const _0xd84ade=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2aab2c(_0x579f2a,_0x334c6a){const _0x2ed87b=_0xd84ade['findIndex'](({type:_0x167fa2,subType:_0x7d7595})=>_0x579f2a['type']==_0x167fa2&&_0x579f2a['subType']==_0x7d7595),_0x2aab29=_0xd84ade['findIndex'](({type:_0x244fd2,subType:_0x264b35})=>_0x334c6a['type']==_0x244fd2&&_0x334c6a['subType']==_0x264b35);if(_0x2ed87b<0x0||_0x2aab29<0x0)return!0x1;const _0x4a0a64=_0x579f2a['getFirstRange'](),_0x2c7a43=_0x334c6a['getFirstRange']();if((0x0==_0x2ed87b||0x1==_0x2ed87b)&&0x2==_0x2aab29&&_0x4a0a64['isIntersecting'](_0x2c7a43))return!0x0;if(0x2==_0x2ed87b&&0x3==_0x2aab29){const _0x3051d1=_0x223eb2['_findSuggestions'](_0x4a0a64,'insertion')['filter'](({suggestion:_0x27bdff,meta:_0x3d218c})=>_0x3d218c['isOwn']&&'convertInlineImageToBlock'==_0x27bdff['subType']);if(_0x3051d1['length']>0x1&&_0x2c7a43['end']['isEqual'](_0x4a0a64['start']))return!0x0;if(0x1==_0x3051d1['length']&&(_0x4a0a64['start']['isEqual'](_0x2c7a43['end'])||_0x4a0a64['end']['isEqual'](_0x2c7a43['start'])))return!0x0;}if(0x3==_0x2ed87b&&0x3==_0x2aab29&&_0x4a0a64['start']['isBefore'](_0x2c7a43['start'])){const _0x54dd15=_0x4a0a64['end']['nodeAfter'],_0xcaed4c=_0x2c7a43['start']['nodeBefore'];return _0x4ddc85['isBlockImage'](_0x54dd15)&&_0x54dd15===_0xcaed4c;}return!0x1;}_0x63c644['model']['document']['registerPostFixer'](()=>{let _0x5e42ae=!0x1;const _0x4549e0=Array['from'](_0x63c644['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25064b,data:_0x4b0850}of _0x4549e0){const {group:_0x3e3d59,type:_0x190a34,subType:_0x3b79bf,id:_0x115990}=_0x223eb2['_splitMarkerName'](_0x25064b);if('suggestion'==_0x3e3d59&&_0x223eb2['hasSuggestion'](_0x115990)){if('formatBlock'==_0x190a34&&('imageStylePreApply'==_0x3b79bf||'imageStylePostApply'==_0x3b79bf)){const _0x494034=_0x223eb2['getSuggestion'](_0x115990);if(_0x4b0850['newRange']){const _0xfc95c0=_0x494034['getFirstRange']()['getContainedElement']();if(_0x4ddc85['isBlockImage'](_0xfc95c0))continue;_0x223eb2['discardSuggestion'](_0x494034),_0x5e42ae=!0x0;}}if('insertion'==_0x190a34&&'imageCaption'==_0x3b79bf&&!_0x4b0850['newRange']){const _0x1617d0=_0x223eb2['getSuggestion'](_0x115990);_0x1617d0['next']&&_0x1617d0['next']['isInContent']&&(_0x223eb2['discardSuggestion'](_0x1617d0['next']),_0x5e42ae=!0x0);}}}return _0x5e42ae;}),this['_registerLegacyDescription'](_0x47bcda);}['_registerLegacyDescription'](_0x4814d0){const _0x159d80=this['editor'],_0xf9785a=_0x159d80['locale'];_0x159d80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f0470=>{if('formatBlock'!=_0x5f0470['type']&&'formatInline'!=_0x5f0470['type'])return;const {data:_0x5f3263}=_0x5f0470;if(!_0x5f3263||'imageStyle'!=_0x5f3263['commandName'])return;const _0x1bb4c5=_0x5f3263['commandParams'][0x0]['value'];return _0x433920('side'===_0x1bb4c5?o(_0xf9785a,'FORMAT_SIDE_IMAGE'):_0x4814d0[_0x1bb4c5]||_0x1bb4c5);function _0x433920(_0x5036a8){return{'type':'format','content':o(_0xf9785a,'*Format:*\x20%0',_0x5036a8)};}});}}class ot extends _0x1ec07f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xb5d5a3){super(_0xb5d5a3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5309fc=this['editor'],_0x4f96e2=_0x5309fc['commands']['get']('importWord'),_0x378685=_0x5309fc['commands']['get']('trackChanges');_0x4f96e2&&(_0x4f96e2['on']('execute',(_0x30d0e5,[,_0x579855])=>{this['_trackChangesValueDuringImport']=_0x378685['value'],_0x579855['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f96e2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f96e2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x378685['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5309fc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x34c4ca,_0x4485cf){const {suggestions:_0x50a6da}=_0x4485cf,_0x4c7d14=this['editor']['commands']['get']('trackChanges'),_0x3d97ca=_0x4c7d14['value'];this['_trackChangesValueDuringImport']!==_0x3d97ca&&(_0x4c7d14['execute'](),this['_trackChangesExecuted']=!0x0),_0x50a6da&&_0x50a6da['forEach'](({id:_0x2d4f82,type:_0x1f5f31,author:_0x27c36b,created_at:_0x1f4b55})=>{const _0x111b32={'id':_0x2d4f82,'type':_0x1f5f31,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27c36b,'createdAt':_0x1f4b55?new Date(_0x1f4b55):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x111b32);});}}class rt extends _0x1ec07f{['afterInit'](){const _0x46e579=this['editor'],_0x2adaa1=_0x46e579['plugins']['get']('TrackChangesEditing');if(_0x46e579['plugins']['has']('IndentEditing')&&(_0x2adaa1['enableCommand']('indent'),_0x2adaa1['enableCommand']('outdent')),_0x46e579['plugins']['has']('IndentBlock')){for(const _0x40231c of['indentBlock','outdentBlock'])_0x2adaa1['enableDefaultAttributesIntegration'](_0x40231c);}const _0x1cc095=_0x46e579['locale'];_0x2adaa1['registerBlockAttribute']('blockIndent'),_0x2adaa1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1cc095,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eeecc=this['editor'],_0x1f0fb5=_0x2eeecc['locale'],_0x2433dd=_0x2eeecc['plugins']['get']('TrackChangesEditing');_0x2433dd['descriptionFactory']['registerDescriptionCallback'](_0x16da65=>{if('formatBlock'!=_0x16da65['type'])return;const {data:_0x5b654b}=_0x16da65;if(!_0x5b654b)return;if('indentBlock'!=_0x5b654b['commandName']&&'outdentBlock'!=_0x5b654b['commandName'])return;const _0x3ab8f9=_0x16da65['getItems']()[0x0],_0xb1da37=_0x2433dd['descriptionFactory']['getItemLabel'](_0x3ab8f9);return'indentBlock'==_0x5b654b['commandName']?{'type':'format','content':o(_0x1f0fb5,'*Indent:*\x20%0',_0xb1da37)}:'outdentBlock'==_0x5b654b['commandName']?{'type':'format','content':o(_0x1f0fb5,'*Outdent:*\x20%0',_0xb1da37)}:void 0x0;});}}class at extends _0x1ec07f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1ec07f{['afterInit'](){const _0x229aa9=this['editor'];if(!_0x229aa9['plugins']['has']('LinkEditing'))return;const _0x110260=_0x229aa9['plugins']['get']('TrackChangesEditing'),_0x4659cc=_0x229aa9['commands']['get']('link');_0x110260['enableDefaultAttributesIntegration']('link'),_0x110260['enableDefaultAttributesIntegration']('unlink'),_0x110260['registerInlineAttribute']('linkHref');for(const _0x4f4e07 of _0x4659cc['manualDecorators'])_0x110260['registerInlineAttribute'](_0x4f4e07['id']),_0x110260['descriptionFactory']['registerAttributeLabel'](_0x4f4e07['id'],'link\x20('+_0x4f4e07['label']['toLowerCase']()+')');_0x110260['descriptionFactory']['registerDescriptionCallback'](_0x2fcf47=>{if('attribute'!=_0x2fcf47['type'])return;const {data:_0x2a1d5a}=_0x2fcf47;if(!_0x2a1d5a||'linkHref'!=_0x2a1d5a['key'])return;const _0x3d6eb0=_0x2a1d5a['newValue'],_0x4ab5e3=_0x229aa9['locale'];return{'type':'format','content':null==_0x3d6eb0?o(_0x4ab5e3,'*Remove\x20link*'):o(_0x4ab5e3,'*Set\x20link:*\x20%0','\x22'+_0x3d6eb0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49cccc=this['editor'],_0x1d2eaf=_0x49cccc['locale'];_0x49cccc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1df85d=>{if('formatInline'!=_0x1df85d['type'])return;const {data:_0x4efb44}=_0x1df85d;if(_0x4efb44){if('link'==_0x4efb44['commandName']){const _0x4d5fe9=_0x4efb44['commandParams'][0x0];return{'type':'format','content':o(_0x1d2eaf,'*Set\x20link:*\x20%0','\x22'+_0x4d5fe9+'\x22')};}return'unlink'==_0x4efb44['commandName']?{'type':'format','content':o(_0x1d2eaf,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1ec07f{['afterInit'](){const _0x532c9c=this['editor'],_0x4463b5=_0x532c9c['locale'];if(!_0x532c9c['plugins']['has']('LegacyListEditing'))return;const _0x2a1215=_0x532c9c['plugins']['get']('TrackChangesEditing'),_0x4d4573=_0x532c9c['plugins']['has']('LegacyTodoListEditing');function _0x52566c(_0x471cff){return()=>{const _0x440bea=_0x532c9c['model']['document']['selection'],_0x46314e=_0x532c9c['commands']['get'](_0x471cff);if(_0x46314e['value'])return void _0x532c9c['execute']('paragraph',{});const _0x3f6ff8=_0x471cff['slice'](0x0,-0x4),_0x5494eb=function(_0x3be377,_0x54809f,_0x170924){let _0x9959d9=Array['from'](_0x3be377)['filter'](_0x13e55c=>function(_0x4c7c0d,_0x3e05eb){return _0x3e05eb['checkChild'](_0x4c7c0d['parent'],'listItem')&&!_0x3e05eb['isObject'](_0x4c7c0d);}(_0x13e55c,_0x170924));_0x9959d9=_0x9959d9['filter'](_0xb8fe66=>!_0xb8fe66['is']('element','listItem')||_0xb8fe66['getAttribute']('listType')!=_0x54809f);const _0x30feeb=new Set();for(const _0x2e0da1 of _0x9959d9)_0x2e0da1['is']('element','listItem')?_0x30feeb['add'](fe(_0x2e0da1)):_0x30feeb['add'](_0x2e0da1);return Array['from'](_0x30feeb);}(_0x440bea['getSelectedBlocks'](),_0x3f6ff8,_0x532c9c['model']['schema']);_0x532c9c['model']['change'](()=>{for(const _0x5a0cb3 of _0x5494eb)_0x2a1215['markBlockFormat'](_0x5a0cb3,{'commandName':_0x471cff,'commandParams':[{'forceValue':!_0x46314e['value']}],'formatGroupId':'blockName'},ue(_0x5a0cb3));});};}function _0x34492c(_0x4e53a5){return()=>{const _0x4b6473=function(_0x425fb2){let _0x1c3b37=Array['from'](_0x425fb2);const _0x10c8af=_0x1c3b37['findIndex'](_0xdfa707=>'listItem'!=_0xdfa707['name']);return _0x10c8af>-0x1&&(_0x1c3b37=_0x1c3b37['slice'](0x0,_0x10c8af)),_0x1c3b37;}(_0x532c9c['model']['document']['selection']['getSelectedBlocks']()),_0x287773=_0x532c9c['model']['createRange'](_0x532c9c['model']['createPositionAt'](_0x4b6473[0x0],'before'),_0x532c9c['model']['createPositionAt'](_0x4b6473[_0x4b6473['length']-0x1],'end'));_0x532c9c['model']['change'](()=>{_0x2a1215['markBlockFormat'](_0x287773,{'commandName':_0x4e53a5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3237d9){const _0x571590=new Set();for(const _0x5ac3f6 of _0x3237d9){let _0x198cd3=_0x5ac3f6['nextSibling'];for(;_0x198cd3&&_0x198cd3['getAttribute']('listIndent')>_0x5ac3f6['getAttribute']('listIndent');)_0x571590['add'](_0x198cd3),_0x198cd3=_0x198cd3['nextSibling'];}return Array['from'](_0x571590);}(_0x4b6473));});};}_0x2a1215['enableCommand']('numberedList',_0x52566c('numberedList')),_0x2a1215['enableCommand']('bulletedList',_0x52566c('bulletedList')),_0x4d4573&&_0x2a1215['enableCommand']('todoList',_0x52566c('todoList')),_0x2a1215['enableCommand']('indentList',_0x34492c('indentList')),_0x2a1215['enableCommand']('outdentList',_0x34492c('outdentList')),_0x4d4573&&_0x2a1215['enableCommand']('checkTodoList',()=>{const _0x303ae0=_0x532c9c['commands']['get']('checkTodoList'),_0x65600b=Array['from'](_0x303ae0['_selectedElements']);_0x65600b['filter'](_0x4ab273=>_0x4ab273['getAttribute']('todoListChecked')!=_0x303ae0['value']),_0x532c9c['model']['change'](()=>{for(const _0x3ed69d of _0x65600b)_0x2a1215['markBlockFormat'](_0x3ed69d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x303ae0['value']}]});});}),_0x2a1215['descriptionFactory']['registerElementLabel']('listItem',_0x3158b4=>o(_0x4463b5,'ELEMENT_LIST_ITEM',_0x3158b4)),_0x2a1215['descriptionFactory']['registerDescriptionCallback'](_0x403ff7=>{if('formatBlock'!=_0x403ff7['type']&&'formatInline'!=_0x403ff7['type'])return;const {data:_0x5f049b}=_0x403ff7;if(_0x5f049b){if('numberedList'==_0x5f049b['commandName']||'bulletedList'==_0x5f049b['commandName']||'todoList'==_0x5f049b['commandName'])switch(_0x5f049b['commandName']['replace']('List','')){case'bulleted':return _0x388c2b(o(_0x4463b5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x388c2b(o(_0x4463b5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x388c2b(o(_0x4463b5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5f049b['commandName'])return{'type':'format','content':o(_0x4463b5,'*Indent:*\x20%0',o(_0x4463b5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5f049b['commandName'])return{'type':'format','content':o(_0x4463b5,'*Outdent:*\x20%0',o(_0x4463b5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5f049b['commandName'])return _0x5f049b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4463b5,'*Check\x20item*')}:{'type':'format','content':o(_0x4463b5,'*Uncheck\x20item*')};}function _0x388c2b(_0x7c8961){return{'type':'format','content':o(_0x4463b5,'*Change\x20to:*\x20%0',_0x7c8961)};}});}}function fe(_0x4f472c){const _0x2dab8e=_0x4f472c['getAttribute']('listIndent');if(0x0==_0x2dab8e)return _0x4f472c;let _0x5a5735=_0x4f472c;for(;_0x4f472c['previousSibling']&&_0x4f472c['previousSibling']['is']('element','listItem');){const _0x1ca2a6=_0x4f472c['previousSibling']['getAttribute']('listIndent');if(_0x1ca2a6==_0x2dab8e)_0x5a5735=_0x4f472c['previousSibling'];else{if(_0x1ca2a6<_0x2dab8e)break;}_0x4f472c=_0x4f472c['previousSibling'];}return _0x5a5735;}function ue(_0x3e319d){const _0x33b794=[];if(_0x3e319d['is']('element','listItem')&&_0x3e319d['getAttribute']('listIndent')>0x0){let _0x97184=_0x3e319d['nextSibling'];for(;_0x97184&&'listItem'==_0x97184['name']&&_0x97184['getAttribute']('listIndent')==_0x3e319d['getAttribute']('listIndent');)_0x33b794['push'](_0x97184),_0x97184=_0x97184['nextSibling'];}return _0x33b794;}class K extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x301aea=this['editor']['config']['get']('list.properties'),_0x30b1b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x301aea['styles']&&_0x30b1b8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x301aea['reversed']&&_0x30b1b8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x301aea['startIndex']&&_0x30b1b8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30b1b8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xc5f07,_0x2ef3b6={}){const _0x29204c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50ee06=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x29204c['markMultiRangeBlockFormat'](_0x50ee06,{'commandName':'listStyle','commandParams':[{'type':_0x2ef3b6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b2d72,_0x59e8e9={}){const _0x20e14b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x304f66=this['_getSuggestionBlocks'](_0x588e1e=>_0x588e1e['is']('element','listItem')&&'numbered'===_0x588e1e['getAttribute']('listType'));if(_0x304f66['length']<0x1)return;const _0x3f2ceb=_0x304f66['map'](_0x18717f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x18717f,'before'),this['editor']['model']['createPositionAt'](_0x18717f,0x0)));this['editor']['model']['change'](()=>{_0x20e14b['markMultiRangeBlockFormat'](_0x3f2ceb,{'commandName':'listReversed','commandParams':[{'reversed':_0x59e8e9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xe25ff2,_0x15023e={}){const _0x14b074=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ba95=this['_getSuggestionBlocks'](_0x1e0b95=>_0x1e0b95['is']('element','listItem')&&'numbered'===_0x1e0b95['getAttribute']('listType'));if(_0x20ba95['length']<0x1)return;const _0x43f548=_0x20ba95['map'](_0x424adc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x424adc,'before'),this['editor']['model']['createPositionAt'](_0x424adc,0x0)));this['editor']['model']['change'](()=>{_0x14b074['markMultiRangeBlockFormat'](_0x43f548,{'commandName':'listStart','commandParams':[{'startIndex':_0x15023e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x14021d){if('formatBlock'!=_0x14021d['type']&&'formatInline'!=_0x14021d['type'])return;const _0x11940f=this['editor']['locale'],{data:_0x43f50b}=_0x14021d;if(!_0x43f50b)return;let _0x3ccc1c,_0x29d51d;switch(_0x43f50b['commandName']){case'listStyle':_0x3ccc1c='*Change\x20to:*\x20%0',_0x29d51d={'type':'format','content':o(_0x11940f,_0x3ccc1c,o(_0x11940f,this['_getTranslationKeyForListStyle'](_0x43f50b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3ccc1c=_0x43f50b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x29d51d={'type':'format','content':o(_0x11940f,_0x3ccc1c)};break;case'listStart':_0x3ccc1c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x29d51d={'type':'format','content':o(_0x11940f,_0x3ccc1c,_0x43f50b['commandParams'][0x0]['startIndex'])};}return _0x29d51d;}['_getSuggestionBlocksForListStyle'](){const _0x3a6246=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e786a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3e786a[0x0]?.['is']('element','listItem')&&_0x3e786a['unshift'](..._0x3a6246['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3e786a[_0x3e786a['length']-0x1]?.['is']('element','listItem')&&_0x3e786a['push'](..._0x3a6246['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3e786a=[...new Set(_0x3e786a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3e786a=_0x3e786a['filter'](_0x2bb158=>_0x2bb158['is']('element','listItem'))),_0x3e786a;}['_getSuggestionBlocks'](_0x4e2e7d){const _0x5bcba2=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c22e6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4e2e7d)['map'](_0x826e91=>{const _0x401c0f=this['editor']['model']['createPositionAt'](_0x826e91,0x0);return[..._0x5bcba2['getSiblingNodes'](_0x401c0f,'backward'),..._0x5bcba2['getSiblingNodes'](_0x401c0f,'forward')];})['flat']();return _0x2c22e6=[...new Set(_0x2c22e6)],_0x2c22e6;}['_getTranslationKeyForListStyle'](_0x41b825){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41b825)||'default')['toUpperCase']()+'_LIST_'+_0x41b825['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1ec07f{['afterInit'](){const _0x1c6423=this['editor'];if(!_0x1c6423['plugins']['has']('MediaEmbedEditing'))return;const _0x47b928=_0x1c6423['plugins']['get']('TrackChangesEditing'),_0x54836b=_0x1c6423['locale'];_0x47b928['enableCommand']('mediaEmbed'),_0x47b928['descriptionFactory']['registerElementLabel']('media',_0x19e591=>o(_0x54836b,'ELEMENT_MEDIA',_0x19e591)),_0x1c6423['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x17932d,{writer:_0x2b5318,options:_0x46be7a})=>{if(_0x46be7a['showSuggestionHighlights'])return _0x2b5318['createEmptyElement']('div');},'converterPriority':'high'}),_0x1c6423['data']['downcastDispatcher']['on']('attribute:url:media',(_0x34a138,_0x296cb1,_0x27adae)=>{_0x27adae['options']['showSuggestionHighlights']&&_0x34a138['stop']();},{'priority':'high'});}}class gt extends _0x1ec07f{['afterInit'](){const _0x5b3bbe=this['editor'];_0x5b3bbe['plugins']['has']('MentionEditing')&&_0x5b3bbe['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1ec07f{['afterInit'](){const _0x3ad1f1=this['editor'];if(!_0x3ad1f1['commands']['get']('insertMergeField'))return;_0x3ad1f1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0xe43795=_0x3ad1f1['plugins']['get']('TrackChangesEditing'),_0x3d255a=_0x3ad1f1['locale'];_0xe43795['descriptionFactory']['registerElementLabel']('mergeField',_0x1765ec=>o(_0x3d255a,'ELEMENT_MERGE_FIELD',_0x1765ec)),_0xe43795['descriptionFactory']['registerDescriptionCallback'](_0x513805=>{if('insertion'!=_0x513805['type']&&'deletion'!=_0x513805['type'])return;const _0x5a67ed=_0x513805['getContainedElement']();if(null==_0x5a67ed)return;if(!_0x5a67ed['is']('element','mergeField'))return;const _0x2dbb3a=_0x3ad1f1['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5a67ed['getAttribute']('id'));return'insertion'==_0x513805['type']?{'type':'insertion','content':o(_0x3d255a,'*Insert:*\x20%0','\x22'+_0x2dbb3a+'\x22\x20'+o(_0x3d255a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3d255a,'*Remove:*\x20%0','\x22'+_0x2dbb3a+'\x22\x20'+o(_0x3d255a,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x1ec07f{['afterInit'](){const _0x4adcbe=this['editor'],_0x28d116=_0x4adcbe['plugins']['get']('TrackChangesEditing');_0x4adcbe['plugins']['has']('MultiLevelList')&&(_0x28d116['enableDefaultAttributesIntegration']('multiLevelList'),_0x28d116['registerBlockAttribute']('listMarkerStyle'),_0x28d116['descriptionFactory']['registerDescriptionCallback'](_0x462729=>this['handleDescriptions'](_0x462729)));}['handleDescriptions'](_0x48c15c){const _0xf611c6=this['editor']['locale'],{data:_0x3e89ee}=_0x48c15c,_0x229cb7={'type':'format','content':''};if(_0x3e89ee&&'listMarkerStyle'==_0x3e89ee['key']){if(!_0x3e89ee['oldValue'])return{'type':'format','content':o(_0xf611c6,'*Set\x20format:*\x20%0',o(_0xf611c6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e89ee['newValue']+')'};if(!_0x3e89ee['newValue']){let _0x315238=_0x48c15c['head'];for(;_0x315238;){if(_0x315238['data']&&'listType'==_0x315238['data']['key']&&_0x315238['data']['newValue'])return _0x229cb7;_0x315238=_0x315238['next'];}return{'type':'format','content':o(_0xf611c6,'*Remove\x20format:*\x20%0',o(_0xf611c6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e89ee['oldValue']+')'};}}}}class dt extends _0x1ec07f{['afterInit'](){const _0x488044=this['editor'];if(!_0x488044['plugins']['has']('PageBreakEditing'))return;_0x488044['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x29816d=_0x488044['plugins']['get']('TrackChangesEditing'),_0x59cc43=_0x488044['locale'];_0x29816d['descriptionFactory']['registerElementLabel']('pageBreak',_0x32080a=>o(_0x59cc43,'ELEMENT_PAGE_BREAK',_0x32080a));}}class pt extends _0x1ec07f{['afterInit'](){const _0x2a15c0=this['editor'];if(!_0x2a15c0['plugins']['has']('Paragraph'))return;const _0x353abf=_0x2a15c0['locale'],_0x2d14fc=_0x2a15c0['plugins']['get']('TrackChangesEditing');_0x2d14fc['descriptionFactory']['registerElementLabel']('paragraph',_0x59b812=>o(_0x353abf,'ELEMENT_PARAGRAPH',_0x59b812)),_0x2d14fc['enableDefaultAttributesIntegration']('paragraph'),_0x2d14fc['enableCommand']('insertParagraph'),_0x2a15c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2a15c0),{'priority':'highest'}),_0x2a15c0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1bba2e,_0x4f4ed7,_0x494f11)=>{_0x494f11['options']['showSuggestionHighlights']&&nr(_0x2a15c0,{'showActiveMarker':!0x1})(_0x1bba2e,_0x4f4ed7,_0x494f11);},{'priority':'highest'});const _0x5cca15=_0x2d14fc['descriptionFactory'];_0x5cca15['registerDescriptionCallback'](_0x41167d=>{if('insertion'!==_0x41167d['type'])return;const {start:_0x53bafd,end:_0xed9c3f}=_0x41167d['getFirstRange']();if(!_0x53bafd['isTouching'](_0xed9c3f)||!_0x53bafd['nodeAfter'])return;const _0x5b7c59=_0x2a15c0['model']['schema'],_0x24ae0d=_0x53bafd['nodeAfter'];return _0x5b7c59['isBlock'](_0x24ae0d)&&!_0x5b7c59['isLimit'](_0x24ae0d)&&_0x5b7c59['checkChild'](_0x24ae0d,'$text')?{'type':'insertion','content':o(_0x353abf,'*Insert:*\x20%0',_0x5cca15['getItemLabel'](_0x24ae0d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9f8c7=this['editor'],_0x10996d=_0xa9f8c7['locale'];_0xa9f8c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x89ac7=>{if('formatBlock'!=_0x89ac7['type'])return;const {data:_0x20bebf}=_0x89ac7;return _0x20bebf&&'paragraph'==_0x20bebf['commandName']?{'type':'format','content':o(_0x10996d,'*Change\x20to:*\x20%0',o(_0x10996d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x521412,{showActiveMarker:_0x4e0502=!0x0}={}){return(_0x26978b,_0x5bde3f,_0x142db7)=>{const _0x392bd4=_0x521412['plugins']['get']('TrackChangesEditing'),_0x2eb2c2=_0x5bde3f['markerRange']['start'],_0x43e653=_0x5bde3f['markerRange']['end'],_0x2be13f=_0x521412['model']['schema'];if(!_0x2eb2c2['isTouching'](_0x43e653)||!_0x2eb2c2['nodeAfter'])return;const _0x56080e=_0x2eb2c2['nodeAfter'];if(_0x2be13f['isBlock'](_0x56080e)&&!_0x2be13f['isLimit'](_0x56080e)&&_0x2be13f['checkChild'](_0x56080e,'$text')){if(!_0x142db7['consumable']['consume'](_0x5bde3f['markerRange'],_0x26978b['name']))return;const _0x12e4d5=_0x142db7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x446285=_0x142db7['mapper']['toViewPosition'](_0x43e653);_0x4e0502&&_0x392bd4['activeMarkers']['includes'](_0x5bde3f['markerName'])&&_0x142db7['writer']['addClass']('ck-suggestion-marker--active',_0x12e4d5),_0x142db7['writer']['insert'](_0x446285,_0x12e4d5),_0x142db7['mapper']['bindElementToMarker'](_0x12e4d5,_0x5bde3f['markerName']);}};}class kt extends _0x1ec07f{['afterInit'](){const _0x52eae0=this['editor'];if(!_0x52eae0['plugins']['has']('RemoveFormatEditing'))return;_0x52eae0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58dff5=this['editor'];_0x58dff5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46d8a6=>{if('formatBlock'!=_0x46d8a6['type']&&'formatInline'!=_0x46d8a6['type'])return;const {data:_0x56cdfd}=_0x46d8a6;return _0x56cdfd&&'removeFormat'==_0x56cdfd['commandName']?{'type':'format','content':o(_0x58dff5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x1ec07f{['afterInit'](){const _0x47532b=this['editor'];if(!_0x47532b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3404df=_0x47532b['plugins']['get']('TrackChangesEditing');_0x3404df['enableCommand']('goToPreviousRestrictedEditingException'),_0x3404df['enableCommand']('goToNextRestrictedEditingException');const _0x173ad3=_0x47532b['plugins']['get']('RestrictedEditingModeEditing');_0x173ad3['enableCommand']('trackChanges'),_0x173ad3['enableCommand']('acceptSuggestion'),_0x173ad3['enableCommand']('discardSuggestion'),_0x173ad3['enableCommand']('acceptAllSuggestions'),_0x173ad3['enableCommand']('discardAllSuggestions'),_0x173ad3['enableCommand']('acceptSelectedSuggestions'),_0x173ad3['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x1ec07f{static get['requires'](){return[_0x2eff47];}['init'](){const _0x26f6f8=this['editor'],_0x151db8=_0x26f6f8['plugins']['get']('TrackChangesEditing');_0x151db8['enableCommand']('shiftEnter'),_0x26f6f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x26f6f8),{'priority':'high'}),_0x26f6f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x26f6f8),{'priority':'high'}),_0x26f6f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8d0063,_0x260e83,_0x4f3c54)=>{_0x4f3c54['options']['showSuggestionHighlights']&&ce(_0x26f6f8,{'showActiveMarker':!0x1})(_0x8d0063,_0x260e83,_0x4f3c54);}),_0x151db8['descriptionFactory']['registerElementLabel']('softBreak',_0x26755b=>o(_0x26f6f8['locale'],'ELEMENT_LINE_BREAK',_0x26755b));}}function ce(_0x13d1c7,{showActiveMarker:_0x5d1290=!0x0}={}){return(_0x27ec0e,_0x262f1e,_0x3bdd78)=>{const _0x3ab078=_0x13d1c7['plugins']['get']('TrackChangesEditing');if(!_0x3bdd78['consumable']['test'](_0x262f1e['markerRange'],_0x27ec0e['name']))return;const _0x94357c=_0x13d1c7['model'];for(const _0x3e78dc of _0x262f1e['markerRange']['getItems']()){if(!_0x3e78dc['is']('element','softBreak'))continue;const _0x12ce5e='deletion'==_0x262f1e['markerName']['split'](':')[0x1]?'merge':'split',_0x3477aa=_0x3bdd78['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12ce5e}),_0x209e79=_0x3bdd78['mapper']['toViewPosition'](_0x94357c['createPositionBefore'](_0x3e78dc));_0x5d1290&&_0x3ab078['activeMarkers']['includes'](_0x262f1e['markerName'])&&_0x3bdd78['writer']['addClass']('ck-suggestion-marker--active',_0x3477aa),_0x3bdd78['writer']['insert'](_0x209e79,_0x3477aa),_0x3bdd78['mapper']['bindElementToMarker'](_0x3477aa,_0x262f1e['markerName']);}};}class yt extends _0x1ec07f{['afterInit'](){const _0x2cc45d=this['editor'],_0x43c433=_0x2cc45d['model'],_0x2d95d7=_0x2cc45d['locale'];if(!_0x2cc45d['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c8951=_0x2cc45d['plugins']['get']('TrackChangesEditing'),_0x5d55ab='restrictedEditingException',_0x494081=_0x2cc45d['commands']['get'](_0x5d55ab);_0x5c8951['enableCommand'](_0x5d55ab,(_0x5eae6d,_0x43c77b={})=>{const _0x672d26=_0x43c433['document']['selection'];if(_0x672d26['isCollapsed'])return void _0x5eae6d(_0x43c77b);const _0x1f5467=void 0x0!==_0x43c77b['forceValue']?_0x43c77b['forceValue']:!_0x494081['value'];_0x43c433['change'](()=>{const _0x46a1ad=Array['from'](_0x672d26['getRanges']());for(const _0x377479 of _0x46a1ad){const _0x552a80=_0x1f5467?[_0x377479]:io(_0x5d55ab,_0x377479,_0x43c433);for(const _0x394b86 of _0x552a80)_0x5c8951['markInlineFormat'](_0x394b86,{'commandName':_0x5d55ab,'commandParams':[{'forceValue':_0x1f5467}]});}});}),_0x5c8951['descriptionFactory']['registerDescriptionCallback'](_0x593aee=>{if('formatBlock'!=_0x593aee['type']&&'formatInline'!=_0x593aee['type'])return;const {data:_0x1e54e5}=_0x593aee;return _0x1e54e5&&_0x1e54e5['commandName']==_0x5d55ab?_0x1e54e5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d95d7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2d95d7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x1ec07f{['afterInit'](){const _0x28099c=this['editor'];if(!_0x28099c['plugins']['has']('Style')||!_0x28099c['plugins']['has']('DataSchema'))return;const _0x4624d7=_0x28099c['plugins']['get']('TrackChangesEditing'),_0xe8bd2f=_0x28099c['locale'],_0x3b8c7d=_0x28099c['config']['get']('style')||{},_0x45e320=_0x28099c['plugins']['get']('GeneralHtmlSupport'),_0x3df0fe=_0x28099c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x28099c['plugins']['get']('DataSchema'),_0x3b8c7d['definitions']);_0x4624d7['enableDefaultAttributesIntegration']('style');const _0x238219=new Set();for(const _0x3dd526 of _0x3df0fe['block']){const _0x41ae00=_0x45e320['getGhsAttributeNameForElement'](_0x3dd526['element']);_0x238219['add'](_0x41ae00);}const _0x4336ed=new Set();for(const _0x1f0985 of _0x3df0fe['inline']){const _0x2652e5=_0x45e320['getGhsAttributeNameForElement'](_0x1f0985['element']);_0x4336ed['add'](_0x2652e5);for(const _0x51bec3 of _0x1f0985['ghsAttributes'])_0x4336ed['add'](_0x51bec3);}for(const _0x2e9449 of _0x238219)_0x4624d7['registerBlockAttribute'](_0x2e9449),_0x4624d7['descriptionFactory']['registerAttributeLabel'](_0x2e9449,o(_0xe8bd2f,'FORMAT_STYLE'));for(const _0x1d8080 of _0x4336ed)_0x4624d7['registerInlineAttribute'](_0x1d8080),_0x4624d7['descriptionFactory']['registerAttributeLabel'](_0x1d8080,o(_0xe8bd2f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12a4f1=this['editor'],_0xdf56dc=_0x12a4f1['locale'];_0x12a4f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x518b53=>{if('formatBlock'!=_0x518b53['type']&&'formatInline'!=_0x518b53['type'])return;const {data:_0x574cbb}=_0x518b53;return _0x574cbb&&'style'===_0x574cbb['commandName']?_0x574cbb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdf56dc,'*Set\x20format:*\x20%0',_0x574cbb['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xdf56dc,'*Remove\x20format:*\x20%0',_0x574cbb['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x1ec07f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2fe50d){super(_0x2fe50d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x25a891=this['editor'],_0x138cde=_0x25a891['model']['document']['selection'];if(!_0x25a891['plugins']['has']('TableEditing'))return;const _0x17dcc7=_0x25a891['locale'],_0x4bd792=_0x25a891['plugins']['get']('TrackChangesEditing'),_0x6a74fa=_0x25a891['plugins']['get']('TableUtils');_0x4bd792['descriptionFactory']['registerElementLabel']('table',_0x2c24a5=>o(_0x17dcc7,'ELEMENT_TABLE',_0x2c24a5)),this['_setupColumnsRowsFixing'](),_0x4bd792['enableCommand']('insertTable'),_0x4bd792['enableCommand']('selectTableRow'),_0x4bd792['enableCommand']('selectTableColumn');for(const _0x3c3013 of['insertTableRowAbove','insertTableRowBelow']){const _0x470aa1=_0x25a891['commands']['get'](_0x3c3013);_0x4bd792['enableCommand'](_0x3c3013,_0x3d6c3f=>{_0x25a891['model']['change'](_0x30e753=>{_0x3d6c3f();const _0x36d84f='above'===_0x470aa1['order'],_0x5827cc=_0x6a74fa['getSelectionAffectedTableCells'](_0x138cde),_0x2f1348=_0x6a74fa['getRowIndexes'](_0x5827cc),_0x60d454=_0x36d84f?_0x2f1348['first']-0x1:_0x2f1348['last']+0x1,_0x4fead8=_0x5827cc[0x0]['findAncestor']('table'),_0x9828b5=_0x6a74fa['createTableWalker'](_0x4fead8,{'startRow':_0x60d454,'endRow':_0x60d454}),_0x4eedc4=Array['from'](_0x9828b5)['map'](_0x1615e5=>_0x30e753['createRangeOn'](_0x1615e5['cell']));_0x4bd792['markMultiRangeInsertion'](_0x4eedc4,'tableRow');});});}for(const _0x5ad7ab of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ab5f2=_0x25a891['commands']['get'](_0x5ad7ab);_0x4bd792['enableCommand'](_0x5ad7ab,_0x361bc0=>{_0x25a891['model']['change'](_0x14b7f4=>{_0x361bc0();const _0x2485fa='left'===_0x5ab5f2['order'],_0x29cac5=_0x6a74fa['getSelectionAffectedTableCells'](_0x138cde),_0x9f7294=_0x6a74fa['getColumnIndexes'](_0x29cac5),_0x435283=_0x2485fa?_0x9f7294['first']-0x1:_0x9f7294['last']+0x1,_0x58a6d3=_0x29cac5[0x0]['findAncestor']('table'),_0x5536ea=_0x6a74fa['createTableWalker'](_0x58a6d3,{'startRow':0x0,'column':_0x435283,'includeAllSlots':!0x1}),_0x4a615b=Array['from'](_0x5536ea)['map'](_0x5535e1=>_0x14b7f4['createRangeOn'](_0x5535e1['cell']));_0x4bd792['markMultiRangeInsertion'](_0x4a615b,'tableColumn');});});}for(const _0x2ce5c1 of['removeTableRow','removeTableColumn']){const _0xa96da5=_0x2ce5c1['substr'](0xb),_0x4ca56a=_0xa96da5['toLowerCase'](),_0x26bc59=_0x4ca56a['substr'](0x0,0x3)+'span',_0x4be865='table'+_0xa96da5,_0x4fec76='min'+_0xa96da5,_0xf5aca3='max'+_0xa96da5;_0x4bd792['enableCommand'](_0x2ce5c1,()=>{_0x25a891['model']['change'](_0x5d2c98=>{const _0x5d9703=_0x6a74fa['getSelectionAffectedTableCells'](_0x138cde),_0x433ef6=_0x5d9703[0x0]['findAncestor']('table');let _0x205d1e;if('removeTableRow'==_0x2ce5c1){const _0x4831fe=_0x6a74fa['getRowIndexes'](_0x5d9703);_0x205d1e={'startRow':_0x4831fe['first'],'endRow':_0x4831fe['last'],'includeAllSlots':!0x0};}else{const _0x4c9c73=_0x6a74fa['getColumnIndexes'](_0x5d9703);_0x205d1e={'startColumn':_0x4c9c73['first'],'endColumn':_0x4c9c73['last'],'includeAllSlots':!0x0};}const _0x12bcf5=_0x6a74fa['createTableWalker'](_0x433ef6,_0x205d1e),_0x546a39=Array['from'](_0x12bcf5)['map'](({cell:_0x351096})=>_0x351096),_0x2ac43a=Ee(_0x546a39['filter'](_0xe5edc2=>_0xe5edc2['hasAttribute'](_0x26bc59))),_0x5406b4=Ee(_0x546a39['filter'](_0x5b0c66=>!_0x5b0c66['hasAttribute'](_0x26bc59)))['map'](_0x3758db=>_0x5d2c98['createRangeOn'](_0x3758db)),_0x2be2b2=_0x4bd792['markMultiRangeDeletion'](_0x5406b4,_0x4be865);if(_0x2be2b2&&('tableRow'==_0x2be2b2['subType']||'tableColumn'==_0x2be2b2['subType'])){const _0x81bb10=this['_getSuggestionCoords'](_0x2be2b2);for(const _0x3a094b of _0x2ac43a){const _0x2002a3=_0x5d2c98['createRangeOn'](_0x3a094b),_0xfb933d=_0x6a74fa['getCellLocation'](_0x3a094b),_0x3e77ea=_0x3a094b['getAttribute'](_0x26bc59)-0x1,_0x1a742b=_0x81bb10[_0x4fec76],_0x4e41b8=_0x81bb10[_0xf5aca3];_0x1a742b<=_0xfb933d[_0x4ca56a]&&_0xfb933d[_0x4ca56a]+_0x3e77ea<=_0x4e41b8&&_0x2be2b2['addRange'](_0x2002a3);}}});});}function _0x336e6e(_0x219082){const _0x422121=Array['from'](_0x138cde['getRanges']())['map'](_0x38629c=>_0x30fc72['fromRange'](_0x38629c));_0x25a891['model']['change'](_0xb6a0f6=>{const _0x41b7f1=_0xb6a0f6['batch'];_0x219082=_0x219082['filter'](_0xfc9a9c=>'$graveyard'!=_0xfc9a9c['root']['rootName']),_0xb6a0f6['setSelection'](_0x219082),_0x25a891['commands']['get']('removeTableRow')['refresh'](),_0x25a891['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x25a891['model']['enqueueChange'](()=>{_0x25a891['model']['enqueueChange'](_0x41b7f1,_0x7197d8=>{const _0x50d98b=_0x422121['filter'](_0x1786ef=>'$graveyard'!=_0x1786ef['root']['rootName']);_0x50d98b['length']>0x0&&_0x7197d8['setSelection'](_0x50d98b);for(const _0x53fcfe of _0x422121)_0x53fcfe['detach']();});});});}function _0x19eb0f(_0x5ed039){_0x25a891['model']['change'](_0x144ca0=>{const _0x322920=Array['from'](_0x138cde['getRanges']())['map'](_0x4f8685=>_0x30fc72['fromRange'](_0x4f8685)),_0x270951=[];for(const _0x1b485b of _0x5ed039)for(const _0x4f4d18 of _0x1b485b['getItems']({'shallow':!0x0}))_0x270951['push'](_0x4f4d18);for(const _0x3cb7f3 of _0x270951)'$graveyard'!=_0x3cb7f3['root']['rootName']&&(_0x144ca0['setSelection'](_0x144ca0['createPositionAt'](_0x3cb7f3,0x0)),_0x25a891['commands']['get']('removeTableColumn')['refresh'](),_0x25a891['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3f98aa=_0x322920['filter'](_0x23a7f8=>'$graveyard'!=_0x23a7f8['root']['rootName']);_0x3f98aa['length']>0x0&&_0x144ca0['setSelection'](_0x3f98aa);for(const _0x183494 of _0x322920)_0x183494['detach']();});}function _0x2a52ef(_0x2aaeca,_0x45aab7){return _0x45aab7['every'](_0x27c519=>_0x2aaeca['some'](_0x1d9609=>_0x1d9609['end']['isEqual'](_0x27c519['start'])||_0x27c519['end']['isEqual'](_0x1d9609['start'])));}function _0x42e975(_0x1432c3,_0x4e74bf){return!_0x1432c3['some'](_0x1c2c16=>_0x4e74bf['some'](_0x29a5ee=>_0x1c2c16['isIntersecting'](_0x29a5ee)))&&_0x1432c3['some'](_0x50343c=>_0x4e74bf['some'](_0x579b15=>_0x50343c['end']['isTouching'](_0x579b15['start'])));}_0x25a891['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x419043,_0x1446fd,_0x24b560)=>{if(!_0x24b560['options']['showSuggestionHighlights'])return;const _0x367e4a=_0x1446fd['item'];if(!_0x367e4a)return;const _0x14c298=_0x24b560['mapper']['toViewElement'](_0x367e4a);function _0x2d2d75(_0x17cc25){return Array['isArray'](_0x17cc25)?_0x17cc25:[_0x17cc25];}_0x14c298&&'tableCell'===_0x367e4a['name']&&_0x1ccc96(_0x14c298,_0x24b560['writer'],(_0x148ee2,_0x594da6,_0x5b85ae)=>_0x5b85ae['addClass'](_0x2d2d75(_0x594da6['classes']),_0x148ee2),(_0xc17557,_0x119437,_0x1fc7bd)=>_0x1fc7bd['removeClass'](_0x2d2d75(_0x119437['classes']),_0xc17557));},{'priority':'highest'}),_0x4bd792['descriptionFactory']['registerDescriptionCallback'](_0x14e741=>{if('insertion'!=_0x14e741['type']&&'deletion'!=_0x14e741['type'])return;const _0x11f214=_0x14e741['getContainedElement']();if(null!=_0x11f214&&_0x11f214['is']('element','table')){if('insertion'==_0x14e741['type']){const _0x14a326=_0x14e741['getItems']()['filter'](_0x28d887=>_0x28d887['is']('$textProxy'))['map'](_0x5e0c1f=>_0x5e0c1f['data']);if(_0x14a326['length'])return{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x14a326['join']('\x20')+'\x22'))};}if('deletion'==_0x14e741['type']){const _0x3a81cf=_0x14e741['getItems']()['filter'](_0x34a633=>_0x34a633['is']('$textProxy'))['map'](_0x1ccf03=>_0x1ccf03['data']);if(_0x3a81cf['length'])return{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a81cf['join']('\x20')+'\x22'))};}}}),_0x4bd792['descriptionFactory']['registerDescriptionCallback'](_0x3888ef=>{if('tableRow'==_0x3888ef['subType']){const _0xe2d584=_0x3888ef['getItems']()['filter'](_0x355f45=>_0x355f45['is']('$textProxy'))['map'](_0x1f7ed1=>_0x1f7ed1['data']),_0x508062=this['_getSuggestionCoords'](_0x3888ef),_0x55ad92=_0x508062['maxRow']-_0x508062['minRow']+0x1;if('insertion'==_0x3888ef['type'])return _0xe2d584['length']?{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x55ad92,'\x22'+_0xe2d584['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_ROW',_0x55ad92))};if('deletion'==_0x3888ef['type'])return _0xe2d584['length']?{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x55ad92,'\x22'+_0xe2d584['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_ROW',_0x55ad92))};}if('tableColumn'==_0x3888ef['subType']){const _0x4f9102=_0x3888ef['getItems']()['filter'](_0x163fb7=>_0x163fb7['is']('$textProxy'))['map'](_0x2c7ad3=>_0x2c7ad3['data']),_0x73f1a6=this['_getSuggestionCoords'](_0x3888ef),_0x1e4d47=_0x73f1a6['maxColumn']-_0x73f1a6['minColumn']+0x1;if('insertion'==_0x3888ef['type'])return _0x4f9102['length']?{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4d47,'\x22'+_0x4f9102['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_COLUMN',_0x1e4d47))};if('deletion'==_0x3888ef['type'])return _0x4f9102['length']?{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4d47,'\x22'+_0x4f9102['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_COLUMN',_0x1e4d47))};}}),_0x4bd792['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x336e6e),_0x4bd792['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x336e6e),_0x4bd792['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x19eb0f),_0x4bd792['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x19eb0f),_0x4bd792['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2a52ef),_0x4bd792['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2a52ef),_0x4bd792['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x42e975),_0x4bd792['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x42e975);}['_acceptFormatSuggestionCallbackFactory'](){const _0x55b62c=this['editor'],_0x5e7a17=_0x55b62c['model']['document']['selection'];return(_0x5734c6,_0xc9abe4)=>{_0x55b62c['model']['change'](_0x30dbc8=>{const {commandName:_0x89622c,commandParams:_0x52b85d}=_0xc9abe4;let _0x5c6262=_0x5734c6[0x0]['end']['nodeBefore'];_0x52b85d&&_0x52b85d[0x0]&&!0x1===_0x52b85d[0x0]['forceValue']&&(_0x5c6262=_0x5734c6[0x0]['start']['nodeAfter']);const _0xc7027=_0x30dbc8['createRangeIn'](_0x5c6262);if('$graveyard'==_0xc7027['root']['rootName'])return;const _0x4fe72b=Array['from'](_0x5e7a17['getRanges']())['map'](_0x267b1c=>_0x30fc72['fromRange'](_0x267b1c));_0x30dbc8['setSelection'](_0xc7027),_0x55b62c['commands']['get'](_0x89622c)['refresh'](),_0x52b85d['push']({'forceDefaultExecution':!0x0}),_0x55b62c['execute'](_0x89622c,..._0x52b85d);const _0x4170e3=_0x4fe72b['filter'](_0x28b1a4=>'$graveyard'!=_0x28b1a4['root']['rootName']);_0x4170e3['length']>0x0&&_0x30dbc8['setSelection'](_0x4170e3);for(const _0x5af0ff of _0x4fe72b)_0x5af0ff['detach']();});};}['_getCoordsForCells'](_0x460ec7){const _0x5c7236=this['editor']['plugins']['get']('TableUtils');let _0x5df3fc=Number['MAX_SAFE_INTEGER'],_0x36bb97=Number['MIN_SAFE_INTEGER'],_0x24264c=Number['MAX_SAFE_INTEGER'],_0x354f70=Number['MIN_SAFE_INTEGER'];for(const _0x52ee7e of _0x460ec7){if('$graveyard'==_0x52ee7e['root']['rootName'])continue;const {row:_0x4ded43,column:_0x3fac2b}=_0x5c7236['getCellLocation'](_0x52ee7e),_0x3c7d84=_0x52ee7e['hasAttribute']('rowspan')?_0x52ee7e['getAttribute']('rowspan')-0x1:0x0,_0x5977f5=_0x52ee7e['hasAttribute']('colspan')?_0x52ee7e['getAttribute']('colspan')-0x1:0x0;_0x5df3fc=_0x4ded43<_0x5df3fc?_0x4ded43:_0x5df3fc,_0x36bb97=_0x4ded43+_0x3c7d84>_0x36bb97?_0x4ded43+_0x3c7d84:_0x36bb97,_0x24264c=_0x3fac2b<_0x24264c?_0x3fac2b:_0x24264c,_0x354f70=_0x3fac2b+_0x5977f5>_0x354f70?_0x3fac2b+_0x5977f5:_0x354f70;}return{'minRow':_0x5df3fc,'maxRow':_0x36bb97,'minColumn':_0x24264c,'maxColumn':_0x354f70};}['_setupColumnsRowsFixing'](){const _0x23f8b3=this['editor'],_0x5ee9c2=_0x23f8b3['plugins']['get']('TrackChangesEditing'),_0x2c760d=_0x23f8b3['plugins']['get']('TableUtils');_0x23f8b3['model']['document']['on']('change:data',()=>{const _0xecbaa4=Array['from'](_0x23f8b3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51b31e,data:_0x184749}of _0xecbaa4){const {group:_0x12c96f,id:_0x20895b,subType:_0x2ac079}=_0x5ee9c2['_splitMarkerName'](_0x51b31e);if('suggestion'!=_0x12c96f)continue;if(null!=_0x184749['oldRange'])continue;const _0x52e2d1=_0x5ee9c2['getSuggestion'](_0x20895b);this['_tablePostFixingSubtypes']['includes'](_0x2ac079)&&this['_tableSuggestions']['add'](_0x52e2d1);}},{'priority':'low'});const _0x426bd7=(_0x522377,_0x4af3f2)=>{let _0x372a6b=!0x1;const _0x392faa=_0x4af3f2['createRangeOn'](_0x522377),_0x36cfbe=_0x522377['findAncestor']('table'),_0x44e21a=_0x2c760d['getCellLocation'](_0x522377);for(const _0x5000fa of this['_tableSuggestions']){const _0x2614ff=_0x5000fa['subType'],_0x2a2ae7=_0x2614ff['startsWith']('tablePaste'),_0x3edf87=_0x2614ff['substr'](_0x2a2ae7?0xa:0x5),_0x335810=_0x3edf87['toLowerCase'](),_0x2912a8=_0x335810['substr'](0x0,0x3)+'span',_0x461025='min'+_0x3edf87,_0x3d4aa3='max'+_0x3edf87;if(!_0x5000fa['isInContent'])continue;if(_0x36cfbe!=_0x5000fa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5000fa['isIntersectingWithRange'](_0x392faa))continue;const _0x71f3bd=_0x522377['hasAttribute'](_0x2912a8)?_0x522377['getAttribute'](_0x2912a8)-0x1:0x0,_0x123bf0=this['_getSuggestionCoords'](_0x5000fa),_0x4778c3=_0x123bf0[_0x461025],_0x4391c4=_0x123bf0[_0x3d4aa3];_0x4778c3<=_0x44e21a[_0x335810]&&_0x44e21a[_0x335810]+_0x71f3bd<=_0x4391c4&&(_0x5000fa['addRange'](_0x392faa),_0x372a6b=!0x0);}return _0x372a6b;};_0x23f8b3['model']['document']['registerPostFixer'](_0x51d23a=>{let _0xcfc7c5=!0x1;for(const _0x232f6d of _0x23f8b3['model']['document']['differ']['getChanges']())if('insert'==_0x232f6d['type']){if('tableRow'==_0x232f6d['name']){for(const _0x99f59 of _0x232f6d['position']['nodeAfter']['getChildren']())_0xcfc7c5=_0xcfc7c5||_0x426bd7(_0x99f59,_0x51d23a);}else'tableCell'==_0x232f6d['name']&&(_0xcfc7c5=_0xcfc7c5||_0x426bd7(_0x232f6d['position']['nodeAfter'],_0x51d23a));}return _0xcfc7c5;});}['_getSuggestionCoords'](_0x1a3cc4){return this['_getCoordsForCells'](_0x1a3cc4['getRanges']()['map'](_0x26c9df=>_0x26c9df['start']['nodeAfter']));}}function Ee(_0x51ff62){return Array['from'](new Set(_0x51ff62)['values']());}class At extends _0x1ec07f{static get['requires'](){return[St];}['afterInit'](){const _0x29f985=this['editor'],_0xfca231=_0x29f985['model']['document']['selection'],_0x1fd73c=_0x29f985['locale'];if(!_0x29f985['plugins']['has']('TableEditing'))return;const _0x584fb0=_0x29f985['plugins']['get']('TrackChangesEditing'),_0x5a4fdd=_0x29f985['plugins']['get']('TableUtils'),_0x23575f=_0x29f985['plugins']['get'](St);_0x23575f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x584fb0['enableCommand']('mergeTableCells',()=>{const _0x253e03=_0x5a4fdd['getSelectionAffectedTableCells'](_0x29f985['model']['document']['selection']);_0x29f985['model']['change'](()=>{_0x584fb0['markMultiRangeBlockFormat'](_0x253e03,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x29f985['commands']['get']('mergeTableCells')['on']('execute',(_0x5ae179,_0x1ff6ae)=>{_0x29f985['commands']['get']('trackChanges')['value']&&(_0x1ff6ae['length']>0x0&&_0x1ff6ae[_0x1ff6ae['length']-0x1]&&_0x1ff6ae[_0x1ff6ae['length']-0x1]['forceDefaultExecution']||_0x584fb0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5ae179['stop']());},{'priority':'highest'});for(const _0x4d99af of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x19806d=_0x29f985['commands']['get'](_0x4d99af);_0x584fb0['enableCommand'](_0x4d99af,()=>{const _0x3cfa11=_0x29f985['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x155e30=>_0x155e30['is']('element','tableCell')),_0x1409e3=_0x19806d['value'];_0x29f985['model']['change'](()=>{_0x584fb0['markMultiRangeBlockFormat']([_0x3cfa11,_0x1409e3],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x304f89 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f2415=_0x29f985['commands']['get'](_0x304f89);_0x584fb0['enableCommand'](_0x304f89,()=>{const _0x147173=_0x5a4fdd['getSelectionAffectedTableCells'](_0x29f985['model']['document']['selection'])[0x0],_0x233c0b=_0x147173['findAncestor']('table'),{column:_0x522809,row:_0x12ca62}=_0x5a4fdd['getCellLocation'](_0x147173);let _0x2c7110=[];if('horizontally'==_0x2f2415['direction']){const _0x48b59f=_0x5a4fdd['createTableWalker'](_0x233c0b,{'startRow':_0x12ca62,'endRow':_0x12ca62,'includeAllSlots':!0x0});_0x2c7110=Array['from'](_0x48b59f)['map'](_0x5c81e3=>_0x5c81e3['cell']);}else{const _0x251c85=_0x5a4fdd['createTableWalker'](_0x233c0b,{'column':_0x522809,'includeAllSlots':!0x0});_0x2c7110=Array['from'](_0x251c85)['map'](_0x156ab3=>_0x156ab3['cell']);}_0x29f985['model']['change'](_0x5c1604=>{_0x584fb0['markBlockFormat'](_0x5c1604['createRangeOn'](_0x147173),{'commandName':_0x304f89,'commandParams':[]},_0x2c7110,_0x304f89);});});}_0x584fb0['descriptionFactory']['registerDescriptionCallback'](_0x5a292d=>{if('formatBlock'!=_0x5a292d['type']&&'formatInline'!=_0x5a292d['type'])return;const {data:_0x10a982}=_0x5a292d;return _0x10a982&&'mergeTableCells'==_0x10a982['commandName']?{'type':'format','content':o(_0x1fd73c,'*Merge\x20cells*')}:void 0x0;}),_0x584fb0['descriptionFactory']['registerDescriptionCallback'](_0x35af3d=>{if('formatBlock'!=_0x35af3d['type']&&'formatInline'!=_0x35af3d['type'])return;const {data:_0x2a70ed}=_0x35af3d;return _0x2a70ed?'splitTableCellVertically'==_0x2a70ed['commandName']?{'type':'format','content':o(_0x1fd73c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a70ed['commandName']?{'type':'format','content':o(_0x1fd73c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5adb11=_0x23575f['_acceptFormatSuggestionCallbackFactory']();for(const _0x471dd8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x584fb0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x471dd8,'accept',_0x5adb11);for(const _0x3dc8c0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x584fb0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3dc8c0,'accept',_0x5adb11);_0x584fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2a0698=>{_0x29f985['model']['change'](_0x3190c5=>{const _0x21df3d=Array['from'](_0xfca231['getRanges']())['map'](_0x465bcf=>_0x30fc72['fromRange'](_0x465bcf));_0x3190c5['setSelection'](_0x2a0698),_0x29f985['commands']['get']('mergeTableCells')['refresh'](),_0x29f985['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3210c6=_0x21df3d['filter'](_0x5502fc=>'$graveyard'!=_0x5502fc['root']['rootName']);_0x3210c6['length']>0x0&&_0x3190c5['setSelection'](_0x3210c6);for(const _0x3e1121 of _0x21df3d)_0x3e1121['detach']();});});for(const _0x5acf43 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4061d0=_0x29f985['commands']['get'](_0x5acf43);_0x4061d0['on']('set:isEnabled',(_0x458aeb,_0x4c45d2,_0x2a85ed)=>{if(_0x2a85ed){const _0x131d25=_0x29f985['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d7a9a=>_0x2d7a9a['is']('element','tableCell'));this['_areMergableCells'](_0x4061d0['value'],_0x131d25)||(_0x458aeb['return']=!0x1,_0x458aeb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x37ff93=this['editor']['commands']['get']('mergeTableCells'),_0x5c1b39=this['editor']['plugins']['get']('TableUtils');if(!_0x37ff93['isEnabled'])return!0x1;const _0x3ff6a6=_0x5c1b39['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5220d8 of _0x3ff6a6)for(const _0x13bec3 of _0x3ff6a6)if(_0x5220d8!=_0x13bec3&&!this['_areMergableCells'](_0x5220d8,_0x13bec3))return!0x1;return!0x0;}['_areMergableCells'](_0x1a12dd,_0xb1d4b2){const _0x1369b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xef1c48=this['editor']['model']['createRangeOn'](_0x1a12dd),_0x2d890e=this['editor']['model']['createRangeOn'](_0xb1d4b2),_0x3ee62d=new Set(),_0x539c1c=new Set();for(const _0xef271c of _0x1369b2['getSuggestions']())if(('insertion'==_0xef271c['type']||'deletion'==_0xef271c['type']||'mergeTableCells'==_0xef271c['subType'])&&_0xef271c['isInContent']){for(const _0x4a5aaf of _0xef271c['getRanges']())_0x4a5aaf['containsRange'](_0xef1c48,!0x0)&&_0x3ee62d['add'](_0xef271c['type']+':'+_0xef271c['author']['id']),_0x4a5aaf['containsRange'](_0x2d890e,!0x0)&&_0x539c1c['add'](_0xef271c['type']+':'+_0xef271c['author']['id']);}if(_0x3ee62d['size']!=_0x539c1c['size'])return!0x1;for(const _0x39ac6f of _0x3ee62d)if(!_0x539c1c['has'](_0x39ac6f))return!0x1;return!0x0;}}class It extends _0x1ec07f{static get['requires'](){return[St];}['afterInit'](){const _0x59ec3f=this['editor'];if(!_0x59ec3f['plugins']['has']('TableEditing'))return;const _0x475157=_0x59ec3f['locale'],_0x3b16d1=_0x59ec3f['plugins']['get']('TrackChangesEditing');_0x3b16d1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3b16d1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3b16d1['registerBlockAttribute']('headingRows'),_0x3b16d1['registerBlockAttribute']('headingColumns'),_0x3b16d1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x475157,'FORMAT_HEADER_ROW')),_0x3b16d1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x475157,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7d4899=this['editor']['plugins']['get']('TrackChangesEditing'),_0x474f80=this['editor']['plugins']['get']('TableUtils'),_0x293272=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x3a7a90({showActiveMarker:_0x4847a1=!0x0,setDataAttribute:_0x153220=!0x0}={}){return(_0x2cbe46,_0x364118,_0x3f01a2)=>{const {type:_0x485c2a,id:_0x13e3c7}=_0x7d4899['_splitMarkerName'](_0x364118['markerName']),_0x55acc2=_0x7d4899['getSuggestion'](_0x13e3c7),_0x1e6ffb=_0x55acc2['data'];if('formatBlock'!=_0x55acc2['type']||!_0x1e6ffb||'setTableColumnHeader'!=_0x1e6ffb['commandName'])return;if(_0x364118['item'])return void _0x2cbe46['stop']();if(!_0x3f01a2['consumable']['consume'](_0x364118['markerRange'],_0x2cbe46['name']))return;const _0x30a56d=_0x364118['markerRange']['start']['nodeAfter'],_0xa4dce2=_0x364118['markerRange']['end']['nodeBefore'],_0x133464=_0x30a56d['parent']['parent'],{column:_0xb0e27b}=_0x474f80['getCellLocation'](_0x30a56d),{column:_0x3cb521}=_0x474f80['getCellLocation'](_0xa4dce2);for(let _0x27e2a0=_0xb0e27b;_0x27e2a0<=_0x3cb521;_0x27e2a0++){const _0x2ad308=_0x474f80['createTableWalker'](_0x133464,{'column':_0x27e2a0,'includeAllSlots':!0x1});for(const _0x50df80 of _0x2ad308){const _0x4d623e=_0x50df80['cell'],_0x19be3d=_0x3f01a2['mapper']['toViewElement'](_0x4d623e);_0x3f01a2['writer']['addClass']('ck-suggestion-marker-'+_0x485c2a,_0x19be3d),_0x153220&&_0x3f01a2['writer']['setAttribute']('data-suggestion',_0x13e3c7,_0x19be3d),_0x3f01a2['mapper']['bindElementToMarker'](_0x19be3d,_0x364118['markerName']),_0x4847a1&&(_0x7d4899['activeMarkers']['includes'](_0x364118['markerName'])?_0x3f01a2['writer']['addClass']('ck-suggestion-marker--active',_0x19be3d):_0x3f01a2['writer']['removeClass']('ck-suggestion-marker--active',_0x19be3d));}}};}_0x7d4899['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x293272),_0x7d4899['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x293272),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3a7a90(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5f1376,_0x5da558,_0x1edd6d)=>{_0x1edd6d['options']['showSuggestionHighlights']&&_0x3a7a90({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5f1376,_0x5da558,_0x1edd6d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3793a5,_0x18a280,_0x421fc2)=>{const {type:_0x3fe587,id:_0x22240c}=_0x7d4899['_splitMarkerName'](_0x18a280['markerName']),_0xbb89e2=_0x7d4899['getSuggestion'](_0x22240c),_0x1e77a2=_0xbb89e2['data'];if('formatBlock'!=_0xbb89e2['type']||!_0x1e77a2||'setTableColumnHeader'!=_0x1e77a2['commandName'])return;const _0x2447ad=_0x421fc2['mapper']['markerNameToElements'](_0x18a280['markerName']);if(_0x2447ad){for(const _0x1c5f19 of _0x2447ad)_0x421fc2['writer']['removeClass']('ck-suggestion-marker-'+_0x3fe587,_0x1c5f19),_0x421fc2['writer']['removeClass']('ck-suggestion-marker--active',_0x1c5f19),_0x421fc2['writer']['removeAttribute']('data-suggestion',_0x1c5f19),_0x421fc2['mapper']['unbindElementFromMarkerName'](_0x1c5f19,_0x18a280['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4226f7=this['editor'],_0x480056=_0x4226f7['locale'];function _0x55a161(_0x2f4693){return{'type':'format','content':o(_0x480056,'*Format:*\x20%0',_0x2f4693)};}_0x4226f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b453f=>{if('formatBlock'!=_0x2b453f['type'])return;const {data:_0x2b0c63}=_0x2b453f;if(_0x2b0c63){if('setTableRowHeader'==_0x2b0c63['commandName']){const _0x1f09b1=_0x2b0c63['commandParams'][0x0]['forceValue'];return _0x55a161(o(_0x480056,_0x1f09b1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2b0c63['commandName']){const _0x407641=_0x2b0c63['commandParams'][0x0]['forceValue'];return _0x55a161(o(_0x480056,_0x407641?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x272c20=>[_0x272c20,null]));class vt extends _0x1ec07f{static get['requires'](){return[St];}['afterInit'](){const _0x512381=this['editor'];if(!_0x512381['plugins']['has']('TableClipboard'))return;const _0x4908c5=_0x512381['plugins']['get']('TrackChangesEditing'),_0xcaad5=_0x512381['plugins']['get']('TableUtils'),_0x5d663f=_0x512381['plugins']['get'](St),_0x31a1de=_0x512381['plugins']['get']('TableClipboard');_0x5d663f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x512381['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x512381['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4b5e82=null;_0x512381['model']['on']('insertContent',(_0x308c57,_0x56bb2c)=>{const [_0x286135,_0x2b341a]=_0x56bb2c,_0x3ba0b0=_0x56bb2c[_0x56bb2c['length']-0x1];_0x3ba0b0&&_0x3ba0b0['forceDefaultExecution']||_0x4908c5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc82d18,_0x4c684a,_0x1df2fc,_0x38af9e,_0x4a74aa){if(_0x4c684a&&!_0x4c684a['is']('documentSelection'))return!0x1;const _0x1d7c7a=_0x4a74aa['getTableIfOnlyTableInContent'](_0xc82d18,_0x1df2fc);if(!_0x1d7c7a||!we(_0x1d7c7a,void 0x0,_0x38af9e))return!0x1;const _0xc94403=_0x38af9e['getSelectionAffectedTableCells'](_0x1df2fc['document']['selection']);if(!_0xc94403['length'])return!0x1;const _0x5b10d7=_0xc94403[0x0]['findAncestor']('table'),_0x318a86=_0x38af9e['getRowIndexes'](_0xc94403),_0x577362=_0x38af9e['getColumnIndexes'](_0xc94403),_0x35c365={'startRow':_0x318a86['first'],'endRow':_0x318a86['last'],'startColumn':_0x577362['first'],'endColumn':_0x577362['last']};return 0x1==_0xc94403['length']&&(_0x35c365['endRow']+=_0x38af9e['getRows'](_0x1d7c7a)-0x1,_0x35c365['endColumn']+=_0x38af9e['getColumns'](_0x1d7c7a)-0x1),we(_0x5b10d7,_0x35c365,_0x38af9e);}(_0x286135,_0x2b341a,_0x512381['model'],_0xcaad5,_0x31a1de)&&(_0x308c57['stop'](),_0x4b5e82={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x512381['model']['change'](()=>{_0x512381['model']['insertContent'](_0x56bb2c[0x0],_0x56bb2c[0x1],_0x56bb2c[0x2],{'forceDefaultExecution':!0x0});const _0x540367=_0x280966(),{rowInsertionRanges:_0x2ce23e,columnInsertionRanges:_0x1bac3c,insertionRanges:_0x4e986f,deletionRanges:_0x2885bf,cells:_0x91fe17}=_0x4b5e82;_0x2ce23e['length']&&_0x4908c5['markMultiRangeInsertion'](_0x2ce23e,'tablePasteRow',{'tablePasteChainId':_0x540367}),_0x1bac3c['length']&&_0x4908c5['markMultiRangeInsertion'](_0x1bac3c,'tablePasteColumn',{'tablePasteChainId':_0x540367}),_0x4e986f['length']&&(_0x4908c5['markMultiRangeInsertion'](_0x4e986f,'tablePaste',{'tablePasteChainId':_0x540367,'skipNestingCheck':!0x0}),_0x4e986f['forEach'](_0xa13e4f=>_0xa13e4f['detach']?.())),_0x2885bf['length']&&(_0x4908c5['markMultiRangeDeletion'](_0x2885bf,'tablePaste',{'tablePasteChainId':_0x540367,'skipNestingCheck':!0x0}),_0x2885bf['forEach'](_0x45cd27=>_0x45cd27['detach']?.()));const _0x9af315=_0x4908c5['markMultiRangeBlockFormat'](_0x91fe17['map'](({element:_0x1777dd})=>_0x1777dd),{'formatGroupId':_0x280966()},[],'tablePasteCell',{'tablePasteChainId':_0x540367});if(_0x9af315){const _0x13dbca=_0x9af315['getMarkers'](),_0x3a3ec5=[];for(const {element:_0x137354,attributes:_0x32d525}of _0x91fe17){if(!_0x32d525)continue;const _0x25eb7a=_0x512381['model']['createRangeOn'](_0x137354),_0x39699f=_0x13dbca['find'](_0x3d8038=>_0x3d8038['getRange']()['isEqual'](_0x25eb7a));_0x39699f&&_0x3a3ec5['push']([_0x39699f['name'],_0x32d525]);}_0x3a3ec5['length']&&_0x9af315['setAttribute']('markerAttributes',Object['fromEntries'](_0x3a3ec5));}_0x4b5e82=null;}));},{'priority':_0x5bbedb['high']+0xa}),_0x512381['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3612d7,_0x225680)=>{const [_0x56323f,_0x7e3668,,_0x359075]=_0x225680;if(!_0x4b5e82)return;_0x3612d7['stop']();const _0x57e6ae=_0x56323f['cell'],_0x3136b3=_0x7e3668,_0x8fc030=Pe(_0x57e6ae),_0x357c75=Pe(_0x3136b3);_0x3612d7['return']=_0x57e6ae;let _0x222aeb=null,_0x4ffbc8=null;if(_0x357c75||_0x8fc030){if(_0x8fc030&&!_0x357c75){_0x359075['remove'](_0x57e6ae['getChild'](0x0));for(const _0x2f4c59 of Array['from'](_0x3136b3['getChildren']()))_0x359075['insert'](_0x2f4c59,_0x57e6ae,'end');const _0xfc19bb=_0x4b5e82['rowInsertionIndexes']['includes'](_0x56323f['row']),_0x85b5a2=_0x4b5e82['columnInsertionIndexes']['includes'](_0x56323f['column']);_0xfc19bb||_0x85b5a2||(_0x222aeb=_0x30fc72['fromRange'](_0x359075['createRangeIn'](_0x57e6ae)));}else _0x357c75&&!_0x8fc030&&(_0x4ffbc8=_0x359075['createRangeIn'](_0x57e6ae));}else{const _0x300ebe=_0x359075['createElement']('tableCellSuggestion'),_0xfcacc4=_0x359075['createElement']('tableCellSuggestion');_0x359075['wrap'](_0x359075['createRangeIn'](_0x57e6ae),_0xfcacc4),_0x359075['insert'](_0x300ebe,_0x57e6ae,0x0);for(const _0x3f0547 of Array['from'](_0x3136b3['getChildren']()))_0x359075['insert'](_0x3f0547,_0x300ebe,'end');_0x222aeb=_0x30fc72['fromRange'](_0x359075['createRangeOn'](_0x300ebe)),_0x4ffbc8=_0x30fc72['fromRange'](_0x359075['createRangeOn'](_0xfcacc4));}const _0xa1d688=Array['from'](_0x3136b3['getAttributes']())['filter'](([_0x417c7c])=>ge['includes'](_0x417c7c));_0x4b5e82['cells']['push']({'element':_0x57e6ae,'attributes':_0xa1d688['length']?Object['fromEntries'](_0xa1d688):null}),_0x222aeb&&_0x4b5e82['insertionRanges']['push'](_0x222aeb),_0x4ffbc8&&_0x4b5e82['deletionRanges']['push'](_0x4ffbc8);},{'priority':'high'}),_0xcaad5['on']('insertColumns',(_0x5b8048,_0x276b46)=>{const [_0x33edce,_0x34d7db={}]=_0x276b46;if(!_0x4b5e82)return;const _0x4f4130=_0x34d7db['at']||0x0,_0x5d5dc4=_0x34d7db['columns']||0x1;_0x4b5e82['columnInsertionIndexes']=new Array(_0x5d5dc4)['fill'](_0x4f4130)['map']((_0x38ed77,_0xc136a)=>_0x38ed77+_0xc136a);for(const {cell:_0xaaa9d7}of _0xcaad5['createTableWalker'](_0x33edce,{'startColumn':_0x4f4130,'endColumn':_0x4f4130+_0x5d5dc4-0x1}))_0x4b5e82['columnInsertionRanges']['push'](_0x512381['model']['createRangeOn'](_0xaaa9d7));},{'priority':'low'}),_0xcaad5['on']('insertRows',(_0x213211,_0x1b13bf)=>{const [_0xa05703,_0x572404={}]=_0x1b13bf;if(!_0x4b5e82)return;const _0x27985c=_0x572404['at']||0x0,_0x369ea9=_0x572404['rows']||0x1;_0x4b5e82['rowInsertionIndexes']=new Array(_0x369ea9)['fill'](_0x27985c)['map']((_0x30a87f,_0x3bf53b)=>_0x30a87f+_0x3bf53b);for(const {cell:_0x38b893}of _0xcaad5['createTableWalker'](_0xa05703,{'startRow':_0x27985c,'endRow':_0x27985c+_0x369ea9-0x1}))_0x4b5e82['rowInsertionRanges']['push'](_0x512381['model']['createRangeOn'](_0x38b893));},{'priority':'low'}),_0x4908c5['descriptionFactory']['registerDescriptionCallback'](_0x39272e=>{if(_0x39272e['subType']&&_0x39272e['subType']['startsWith']('tablePaste'))return _0x39272e['previous']?{}:{'type':'insertion','content':o(_0x512381['locale'],'*Replace\x20table\x20cells*')};});const _0x398029=()=>!0x1;for(const _0x1edf94 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4908c5['_suggestionFactory']['registerCustomCallback']('insertion',_0x1edf94,'join',_0x398029),_0x4908c5['_suggestionFactory']['registerCustomCallback']('deletion',_0x1edf94,'join',_0x398029),_0x4908c5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1edf94,'join',_0x398029);_0x4908c5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x398029),_0x4908c5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xf40c45,_0x4fd7e9,_0x2bbd9e)=>{const _0x5c5d1a=_0xf40c45['map'](_0x1556f9=>_0x1556f9['getContainedElement']())['filter'](_0x295846=>_0x295846),_0xfef9e6=new Map(_0x5c5d1a['map'](_0x56ddd2=>[_0x56ddd2,null]));if(_0x4b5e82){for(const {element:_0x237a73,attributes:_0x21f8f5}of _0x4b5e82['cells'])_0x21f8f5&&_0xfef9e6['set'](_0x237a73,_0x21f8f5);}else{if(_0x2bbd9e&&_0x2bbd9e['markerAttributes'])for(const [_0x328b1b,_0x94dfa6]of Object['entries'](_0x2bbd9e['markerAttributes'])){const _0xb0632=_0x512381['model']['markers']['get'](_0x328b1b),_0x4cb949=_0xb0632?_0xb0632['getRange']()['getContainedElement']():null;_0x4cb949&&_0xfef9e6['set'](_0x4cb949,_0x94dfa6);}}_0x512381['model']['change'](_0xca8b24=>{for(const [_0x2df81c,_0x36424d]of _0xfef9e6)_0xca8b24['setAttributes']({...Ce,..._0x36424d},_0x2df81c);});});const _0x3ded1f=(_0x5ac800,_0x2b34ee)=>{_0x4908c5['_suggestionFactory']['registerCustomCallback'](_0x5ac800,'tablePaste',_0x2b34ee,(_0x483aa5,_0x26ca4f,_0x38c3f6)=>{_0x512381['model']['change'](_0x3004fd=>{const _0x3797d8=[];for(const _0xa1eb2c of _0x483aa5){const _0x51fb9a=_0xa1eb2c['start']['nodeAfter'];_0x51fb9a['is']('element','tableCellSuggestion')&&_0x3797d8['push'](_0x51fb9a);}_0x4908c5['_suggestionFactory']['getSuggestionCallback'](_0x5ac800,null,_0x2b34ee)(_0x483aa5,_0x26ca4f,_0x38c3f6);for(const _0xfc575f of _0x3797d8)'$graveyard'!=_0xfc575f['root']['rootName']&&_0x3004fd['unwrap'](_0xfc575f);});});};_0x3ded1f('insertion','accept'),_0x3ded1f('insertion','discard'),_0x3ded1f('deletion','accept'),_0x3ded1f('deletion','discard'),_0x4908c5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5d477b=>{const _0x2d4b58=_0x5d477b['map'](_0x36345d=>_0x36345d['getContainedElement']()),_0x593f2a=_0x2d4b58[0x0]['findAncestor']('table'),{minRow:_0x7b09d,maxRow:_0x4dbf32}=_0x5d663f['_getCoordsForCells'](_0x2d4b58);_0xcaad5['removeRows'](_0x593f2a,{'at':_0x7b09d,'rows':_0x4dbf32-_0x7b09d+0x1});}),_0x4908c5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x20b5ac=>{const _0xd2f890=_0x20b5ac['map'](_0x47f8d4=>_0x47f8d4['getContainedElement']()),_0x28c98d=_0xd2f890[0x0]['findAncestor']('table'),{minColumn:_0x10df2b,maxColumn:_0x59587a}=_0x5d663f['_getCoordsForCells'](_0xd2f890);_0xcaad5['removeColumns'](_0x28c98d,{'at':_0x10df2b,'columns':_0x59587a-_0x10df2b+0x1});});const _0x23405f=(_0x36dfbe,_0x57460a)=>{if(!_0x57460a['subType']||!_0x57460a['subType']['startsWith']('tablePaste'))return;const _0x43cf49=_0x57460a['attributes']['tablePasteChainId'],_0x35334a=_0x4908c5['getSuggestions']()['filter'](_0x51ab74=>_0x51ab74['isInContent']&&_0x51ab74['attributes']&&_0x51ab74['attributes']['tablePasteChainId']==_0x43cf49);_0x35334a['length']&&_0x57460a['getAllAdjacentSuggestions']()['length']!=_0x35334a['length']&&_0x35334a['reduce']((_0x260821,_0x5fd375)=>(_0x260821['next']=_0x5fd375,_0x5fd375['previous']=_0x260821,_0x5fd375));};function _0x228956(_0x363575,_0x52d7b0=!0x0){const {id:_0x25c3e1}=_0x4908c5['_splitMarkerName'](_0x363575['markerName']),_0x2820f7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x30eb11=_0x4908c5['activeMarkers']['includes'](_0x363575['markerName']);return _0x30eb11&&_0x2820f7['push']('ck-suggestion-marker--active'),{'classes':_0x2820f7,'attributes':{'data-suggestion':_0x25c3e1},'priority':_0x30eb11&&_0x52d7b0?0xbc2:0xbb8};}_0x4908c5['on']('suggestionLoaded',_0x23405f,{'priority':'high'}),_0x4908c5['on']('suggestionUnloaded',_0x23405f,{'priority':'high'}),_0x512381['model']['document']['registerPostFixer'](()=>{let _0x14be64=!0x1;const _0x52a436=Array['from'](_0x512381['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x81e3d3,data:_0xb8d44d}of _0x52a436){const {group:_0x24cab6,type:_0x15df53,id:_0x176c89}=_0x4908c5['_splitMarkerName'](_0x81e3d3);if('suggestion'!=_0x24cab6||'deletion'!=_0x15df53||_0xb8d44d['oldRange'])continue;if(!_0x4908c5['hasSuggestion'](_0x176c89))continue;const _0x1ca8e0=_0x4908c5['getSuggestion'](_0x176c89)['getRanges'](),_0x203f9f=_0x512381['plugins']['get']('Users')['me'];for(const _0x3343cf of _0x4908c5['getSuggestions']()){if(!_0x3343cf['isInContent']||_0x3343cf['author']!=_0x203f9f)continue;if('formatBlock'!=_0x3343cf['type']||'tablePasteCell'!=_0x3343cf['subType'])continue;if(_0x3343cf['getRanges']()['every'](_0x3de612=>_0x1ca8e0['some'](_0x117317=>_0x117317['containsRange'](_0x3de612,!0x0)))){for(const _0x448ea4 of _0x3343cf['getAllAdjacentSuggestions']())_0x448ea4['isInContent']&&(_0x448ea4['discard'](),_0x14be64=!0x0);}}}return _0x14be64;}),_0x512381['model']['document']['registerPostFixer'](_0x43a5ca=>{const _0x9f33f=_0x512381['commands']['get']('redo');if(!_0x9f33f||!_0x9f33f['_createdBatches']['has'](_0x43a5ca['batch']))return!0x1;let _0x553bc3=!0x1;const _0x23a56e=_0x512381['plugins']['get']('Users')['me'],_0x3fd74e=_0x512381['model']['document']['differ']['getChanges'](),_0x2e918a=Array['from'](_0x512381['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x34bf54,data:_0x55d5e6})=>{const {group:_0x45ce2b,subType:_0x42effd,authorId:_0x2cfcad}=_0x4908c5['_splitMarkerName'](_0x34bf54);return'suggestion'==_0x45ce2b&&'tablePaste'==_0x42effd&&_0x2cfcad==_0x23a56e['id']&&!_0x55d5e6['oldRange'];});for(const _0x9cd437 of _0x3fd74e){if('insert'!=_0x9cd437['type']||'tableCellSuggestion'!=_0x9cd437['name']||0x1!=_0x9cd437['length'])continue;const _0x6a26e=_0x43a5ca['createRange'](_0x9cd437['position'],_0x9cd437['position']['getShiftedBy'](0x1));if(!_0x2e918a['find'](({data:_0x4ae3cf})=>_0x4ae3cf['newRange']['isEqual'](_0x6a26e))){for(const {name:_0xc46827,data:_0xae171e}of _0x2e918a)if(_0x6a26e['containsRange'](_0xae171e['newRange'])){_0x43a5ca['updateMarker'](_0xc46827,{'range':_0x6a26e}),_0x553bc3=!0x0;break;}}}return _0x553bc3;}),_0x512381['model']['document']['registerPostFixer'](_0x20600f=>{let _0x4ad874=!0x1;const _0x43f94a=_0x512381['plugins']['get']('Users')['me'],_0x557393=_0x4908c5['getSuggestions']()['filter'](_0x25c607=>_0x25c607['isInContent']&&_0x25c607['author']==_0x43f94a),_0x3545b6=new Set(),_0x3de919=new Set();for(const _0x581d59 of _0x557393)if('tablePaste'==_0x581d59['subType'])for(const _0x28ae6e of _0x581d59['getMarkers']()){const _0x553609=_0x28ae6e['getRange']()['getContainedElement']();if(_0x553609){if(_0x553609['is']('element','tableCellSuggestion')&&Pe(_0x553609)){_0x581d59['removeMarker'](_0x28ae6e['name']),_0x3545b6['add'](_0x553609),_0x4ad874=!0x0;const _0x25aa6c=_0x553609['nextSibling'],_0x24fce4=_0x553609['previousSibling'],_0x1f1f6d=_0x25aa6c&&_0x25aa6c['is']('element','tableCellSuggestion'),_0x4538de=_0x24fce4&&_0x24fce4['is']('element','tableCellSuggestion');_0x1f1f6d&&!_0x3545b6['has'](_0x25aa6c)&&_0x3de919['add'](_0x25aa6c),_0x4538de&&!_0x3545b6['has'](_0x24fce4)&&_0x3de919['add'](_0x24fce4);}else _0x553609['is']('element','paragraph')&&_0x553609['isEmpty']&&(_0x581d59['removeMarker'](_0x28ae6e['name']),_0x4ad874=!0x0);}}else{if('tablePasteCell'==_0x581d59['subType']){if(!_0x581d59['attributes']||!_0x581d59['attributes']['tablePasteChainId'])continue;const _0x45e270=_0x581d59['attributes']['markerAttributes'];if(_0x45e270&&Object['keys'](_0x45e270)['length'])continue;const _0x2a463a=_0x581d59['attributes']['tablePasteChainId'];let _0x1ab50b=!0x0,_0x20cb6c=!0x0;for(const _0x74f9c8 of _0x557393)if(_0x74f9c8['subType']&&_0x74f9c8['subType']['startsWith']('tablePaste')){if(!_0x74f9c8['attributes']['tablePasteChainId']){_0x20cb6c=!0x1;break;}if(_0x74f9c8['id']!=_0x581d59['id']&&_0x74f9c8['attributes']['tablePasteChainId']==_0x2a463a){_0x1ab50b=!0x1;break;}}_0x20cb6c&&_0x1ab50b&&(_0x581d59['removeMarkers'](),_0x4ad874=!0x0);}}for(const _0x1b71af of _0x3545b6)_0x20600f['remove'](_0x1b71af);for(const _0x8e214b of _0x3de919)_0x20600f['unwrap'](_0x8e214b);return _0x4ad874;}),_0x512381['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x386cbf,_0x572d73)=>_0x228956(_0x386cbf),'converterPriority':'high'}),_0x512381['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x41aeda,_0x5844d3)=>_0x5844d3['options']['showSuggestionHighlights']?_0x228956(_0x41aeda,!0x1):null,'converterPriority':'high'});const _0x427c0e=_0x512381['editing']['view'];this['listenTo'](_0x427c0e['document'],'clipboardOutput',(_0x40825c,_0x3616e6)=>{const _0x4d466f=[];for(const _0x5ae836 of _0x427c0e['createRangeIn'](_0x3616e6['content'])['getItems']())_0x5ae836['is']('element','suggestion-td')&&_0x4d466f['push'](_0x5ae836);_0x427c0e['change'](_0x4bdb35=>{for(const _0x41d783 of _0x4d466f)_0x4bdb35['move'](_0x4bdb35['createRangeIn'](_0x41d783),_0x4bdb35['createPositionBefore'](_0x41d783)),_0x4bdb35['remove'](_0x41d783);});});}}function Pe(_0x1ecdaa){if(_0x1ecdaa['isEmpty'])return!0x0;const _0x4b4e9f=_0x1ecdaa['getChild'](0x0);return _0x4b4e9f['is']('element','paragraph')&&_0x4b4e9f['isEmpty'];}function we(_0x5997b7,_0x3e718f={},_0x45311b){for(const {isAnchor:_0xc3913a,cellHeight:_0x3f1b10,cellWidth:_0x4d7c1f}of _0x45311b['createTableWalker'](_0x5997b7,{'includeAllSlots':!0x0,..._0x3e718f}))if(!_0xc3913a||0x1!=_0x3f1b10||0x1!=_0x4d7c1f)return!0x1;return!0x0;}class Ct extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x46fc1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x46fc1e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x46fc1e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x46fc1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46fc1e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x46fc1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x46fc1e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x24a274,_0x557b65){const _0x5e44e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x586478=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4701d6=_0x557b65['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3438d8=_0x586478['getColumnGroupElement'](_0x4701d6);let _0x14c2ac=_0x3438d8?_0x586478['getTableColumnsWidths'](_0x3438d8):null,_0x5e132d=_0x4701d6['getAttribute']('tableWidth')||null;const _0x4ff96d=_0x557b65['tableWidth']||_0x5e132d,_0x1ba538=_0x557b65['columnWidths']||_0x14c2ac,_0x416e28=this['editor']['plugins']['get']('Users')['me'];for(const _0x19caf4 of _0x5e44e2['getSuggestions']()){const _0x21b25b=_0x19caf4['getContainedElement']();if('resizeTable'===_0x19caf4['subType']&&_0x21b25b===_0x4701d6){_0x19caf4['author']!==_0x416e28&&_0x19caf4['discard']();const _0x244b7d=_0x19caf4['data']['commandParams'];_0x5e132d=_0x244b7d[0x0]['tableWidth'],_0x14c2ac=_0x244b7d[0x0]['columnWidths'];break;}}_0x24a274({'table':_0x4701d6,'tableWidth':_0x4ff96d,'columnWidths':_0x1ba538}),_0x5e44e2['markBlockFormat'](_0x4701d6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5e132d,'columnWidths':_0x14c2ac}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41ef06){if('formatBlock'!=_0x41ef06['type']&&'formatInline'!=_0x41ef06['type'])return;const {data:_0x445b3b}=_0x41ef06;if(_0x445b3b&&'resizeTable'===_0x445b3b['formatGroupId']){const _0x3d0304='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3d0304)};}}}class _t extends _0x1ec07f{['afterInit'](){const _0x3b7c99=this['editor'];_0x3b7c99['plugins']['has']('Template')&&_0x3b7c99['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x1ec07f{['afterInit'](){const _0x463e49=this['editor'];if(!_0x463e49['commands']['get']('insertTableOfContents'))return;_0x463e49['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x49df09=_0x463e49['plugins']['get']('TrackChangesEditing'),_0x5db2fc=_0x463e49['locale'];_0x49df09['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4fb600=>o(_0x5db2fc,'ELEMENT_TABLE_OF_CONTENTS',_0x4fb600));}}class Nt extends _0x1ec07f{['afterInit'](){const _0x576f25=this['editor'];if(!_0x576f25['plugins']['has']('Title'))return;const _0x2d702a=_0x576f25['plugins']['get']('TrackChangesEditing');_0x2d702a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x576f25['locale'],'ELEMENT_TITLE')),_0x576f25['model']['document']['registerPostFixer'](_0x719942=>{let _0x4e196e=!0x1;const _0x20ce77=Array['from'](_0x576f25['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55a736,data:_0x21190d}of _0x20ce77){const {group:_0x1fdfd5}=_0x2d702a['_splitMarkerName'](_0x55a736);if('suggestion'!==_0x1fdfd5||!_0x21190d['newRange'])continue;const _0x14f55d=_0x21190d['newRange'],_0x327d3e=_0x14f55d['end']['nodeBefore'];if(!_0x327d3e||!_0x327d3e['is']('element','title-content'))continue;if(!_0x14f55d['start']['isTouching'](_0x14f55d['end']))continue;const _0xade457=_0x576f25['model']['schema']['getNearestSelectionRange'](_0x14f55d['end'],'forward');if(_0xade457&&_0xade457['isCollapsed']){const _0xf4389e=_0x719942['createRange'](_0x14f55d['start'],_0xade457['start']);_0xf4389e['isEqual'](_0x14f55d)||(_0x719942['updateMarker'](_0x55a736,{'range':_0xf4389e}),_0x4e196e=!0x0);}_0x4e196e||(_0x719942['removeMarker'](_0x55a736),_0x4e196e=!0x0);}return _0x4e196e;});}}class Mt extends _0x1ec07f{['afterInit'](){const _0x192a5a=this['editor'],_0x53ac6c=_0x192a5a['plugins']['get']('TrackChangesEditing');_0x192a5a['plugins']['has']('UndoEditing')&&(_0x53ac6c['enableCommand']('undo'),_0x53ac6c['enableCommand']('redo'));}}class $t extends _0x1ec07f{static get['requires'](){return[St];}['afterInit'](){const _0x450c12=this['editor'];if(!_0x450c12['plugins']['has']('TableCaptionEditing'))return;_0x450c12['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x1ec07f{['tableProperties'];['tableCellProperties'];constructor(_0x32b477){super(_0x32b477),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 _0x32dd0f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x20bab4 of this['tableProperties'])_0x32dd0f['enableCommand'](_0x20bab4,(_0x4240f1,_0x16ff86)=>{const _0x3777e5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x20bab4,[_0x3777e5],this['tableProperties'],'tableProperties',_0x4240f1,_0x16ff86);});_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x32dd0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x38ff5e,_0xf2e491)=>this['handleDiscardAction'](this['tableProperties'],_0x38ff5e,_0xf2e491)),_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ce507 of this['tableCellProperties'])_0x32dd0f['enableCommand'](_0x2ce507,(_0x57421f,_0x48499a)=>{const _0x1374f0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ce507,_0x1374f0,this['tableCellProperties'],'tableCellProperties',_0x57421f,_0x48499a);});_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x32dd0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5af494,_0x3e7558)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5af494,_0x3e7558)),_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x32dd0f['descriptionFactory']['registerDescriptionCallback'](_0x413b71=>this['handleSuggestionDescription'](_0x413b71));}['_handlePropertyChange'](_0x32c0f8,_0x4db46a,_0x57833b,_0x5825f0,_0x271559,_0x495fe3){const _0x3f08e3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x495fe3['batch'],()=>{for(const _0x26ba31 of _0x4db46a){if(this['_getSuggestion'](_0x26ba31,_0x5825f0))_0x271559(_0x495fe3);else{const _0x3d4ed7={};for(const _0x2ac66e of _0x57833b){const _0x510667=_0x26ba31['getAttribute'](_0x2ac66e);void 0x0!==_0x510667&&(_0x3d4ed7[_0x2ac66e]=_0x510667);}_0x271559(_0x495fe3),_0x3f08e3['markBlockFormat'](_0x26ba31,{'commandParams':[_0x3d4ed7]},[],_0x5825f0);}}});}['handleDiscardAction'](_0x4c25a7,_0x4c6b0b,_0x35f5ab){const _0x11f650=_0x4c6b0b[0x0]['start']['nodeAfter'],_0x27ab94=_0x35f5ab['commandParams'][0x0];this['editor']['model']['change'](_0x115fd2=>{for(const _0x24f850 of _0x4c25a7)void 0x0!==_0x27ab94[_0x24f850]?_0x115fd2['setAttribute'](_0x24f850,_0x27ab94[_0x24f850],_0x11f650):_0x115fd2['removeAttribute'](_0x24f850,_0x11f650);});}['handleSuggestionDescription'](_0x37b4c6){if(_0x37b4c6['data'])switch(_0x37b4c6['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'](_0x5e0b00,_0x280132){const _0x2fe353=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x35cc5e of _0x2fe353['getSuggestions']({'skipNotAttached':!0x0})){const _0x501295=_0x35cc5e['getContainedElement']();if(_0x35cc5e['subType']===_0x280132&&_0x501295===_0x5e0b00)return _0x35cc5e;}return null;}}const m='$elementName';class p extends _0x1ec07f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x485a72,_0x47113b,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,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1ea0fb){function _0x4f9cad(_0x2c1b4d){return _0x2c1b4d['map'](_0x13532a=>String['fromCharCode'](_0x13532a))['join']('');}super(_0x1ea0fb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xdbefb5,_0x13b148,_0x20d377,_0x4b3bd4)=>{this['_model']['change'](()=>{for(const _0x3f1d8b of[..._0x4b3bd4,..._0x20d377])this['_model']['markers']['has'](_0x3f1d8b)&&_0x1ea0fb['editing']['reconvertMarker'](_0x3f1d8b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1ea0fb['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(),_0x1ea0fb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1ea0fb['config']['get']('trackChanges.trackFormatChanges'),_0x1ea0fb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1ea0fb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1ea0fb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4f9cad([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4f9cad([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x34]);}['init'](){const _0x2eeef7=this['editor'],_0xda263=(_0x222747,_0x3b41e6)=>{if('attribute'!=_0x222747)return'ck-suggestion-marker-'+_0x222747;const _0x10b87d=_0x3b41e6['split']('|')[0x0];return this['_isBlockAttribute'](_0x10b87d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2eeef7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1a528d=>{const {id:_0x4fa304,type:_0x9d3278,subType:_0x1f75d6}=this['_splitMarkerName'](_0x1a528d['markerName']),_0x5d0d0e=['ck-suggestion-marker',_0xda263(_0x9d3278,_0x1f75d6)];let _0x237e6b=0xbb8;return this['activeMarkers']['includes'](_0x1a528d['markerName'])&&(_0x5d0d0e['push']('ck-suggestion-marker--active'),_0x237e6b=0xbc2),'deletion'==_0x9d3278&&(_0x237e6b+=0x5),{'classes':_0x5d0d0e,'attributes':{'data-suggestion':_0x4fa304},'priority':_0x237e6b};}}),_0x2eeef7['conversion']['for']('dataDowncast')['add'](_0x3d9f94=>{_0x3d9f94['on']('addMarker:suggestion',(_0x438574,_0x45d819,_0x29a6a5)=>{if(!_0x29a6a5['options']['showSuggestionHighlights'])return;const _0x47ebf0=_0x45d819['item'];if(!_0x47ebf0)return;const _0x3e5b38=_0x29a6a5['mapper']['toViewElement'](_0x47ebf0);_0x2eeef7['model']['schema']['isObject'](_0x47ebf0)&&_0x3e5b38&&!_0x3e5b38['getCustomProperty']('widget')&&_0x3e5b38['is']('containerElement')&&_0x16abdf(_0x3e5b38,_0x29a6a5['writer']);},{'priority':'high'});}),_0x2eeef7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x319bf9,_0x4c4021)=>{if(!_0x4c4021['options']['showSuggestionHighlights'])return null;const {type:_0x1219d5,subType:_0x449661}=this['_splitMarkerName'](_0x319bf9['markerName']);return{'classes':['ck-suggestion-marker',_0xda263(_0x1219d5,_0x449661)],'priority':0xbb8};}});const _0x446955=({showActiveMarkers:_0x144ad9=!0x0,isAttributeSuggestion:_0x12b334=!0x1}={})=>(_0x52426d,_0x19d548,_0x1a6990)=>{if(!_0x19d548['item'])return;const {id:_0x11d4ac}=this['_splitMarkerName'](_0x19d548['markerName']);if(_0x12b334){const _0xb90496=this['_suggestions']['get'](_0x11d4ac),_0x473625=this['_getAttributeKey'](_0xb90496);if(!this['_isBlockAttribute'](_0x473625))return;}if(_0x19d548['item']['is']('selection'))return void _0x1a6990['consumable']['consume'](_0x19d548['item'],_0x52426d['name']);const _0x4bde38=_0x1a6990['mapper']['toViewElement'](_0x19d548['item']);if(_0x19d548['item']['is']('element')&&_0x2eeef7['model']['schema']['isBlock'](_0x19d548['item'])&&!_0x4bde38['getCustomProperty']('addHighlight')){_0x1a6990['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4bde38),_0x1a6990['writer']['setAttribute']('data-suggestion',_0x11d4ac,_0x4bde38),_0x1a6990['mapper']['bindElementToMarker'](_0x4bde38,_0x19d548['markerName']),_0x144ad9&&(this['activeMarkers']['includes'](_0x19d548['markerName'])?_0x1a6990['writer']['addClass']('ck-suggestion-marker--active',_0x4bde38):_0x1a6990['writer']['removeClass']('ck-suggestion-marker--active',_0x4bde38));for(const _0x46a58d of _0x2eeef7['model']['createRangeIn'](_0x19d548['item'])['getItems']())_0x1a6990['consumable']['consume'](_0x46a58d,_0x52426d['name']);_0x1a6990['consumable']['consume'](_0x19d548['item'],_0x52426d['name']);}};_0x2eeef7['conversion']['for']('dataDowncast')['add'](_0x51322e=>{_0x51322e['on']('addMarker:suggestion:formatBlock',(_0x6f741,_0x7cadfc,_0x46e7a1)=>{_0x46e7a1['options']['showSuggestionHighlights']&&_0x446955({'showActiveMarkers':!0x1})(_0x6f741,_0x7cadfc,_0x46e7a1);},{'priority':'highest'});}),_0x2eeef7['conversion']['for']('dataDowncast')['add'](_0x238741=>{_0x238741['on']('addMarker:suggestion:attribute',(_0x250858,_0xee058b,_0x48338b)=>{_0x48338b['options']['showSuggestionHighlights']&&_0x446955({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x250858,_0xee058b,_0x48338b);},{'priority':'highest'});}),_0x2eeef7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5ae63a,_0x169465)=>_0x169465['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5ae63a['substr'](0xb)}}),_0x2eeef7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x31e9f9,{writer:_0x3e2d17})=>{let _0x3c962d='suggestion:'+_0x31e9f9['getAttribute']('suggestion-type')+':'+_0x31e9f9['getAttribute']('id');return _0x31e9f9['getAttribute']('marker-count')&&(_0x3c962d+=':'+_0x31e9f9['getAttribute']('marker-count')),_0x3e2d17['createElement']('$marker',{'data-name':_0x3c962d});}}),_0x2eeef7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2eeef7['conversion']['for']('editingDowncast')['add'](_0x35520b=>{_0x35520b['on']('addMarker:suggestion:formatBlock',_0x446955(),{'priority':'high'});}),_0x2eeef7['conversion']['for']('editingDowncast')['add'](_0x583f44=>{_0x583f44['on']('addMarker:suggestion:attribute',_0x446955({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2eeef7['conversion']['for']('editingDowncast')['add'](_0x3b623f=>{_0x3b623f['on']('removeMarker:suggestion:formatBlock',(_0x52151b,_0x39a10c,_0x25647d)=>{const _0x470b19=_0x25647d['mapper']['markerNameToElements'](_0x39a10c['markerName']);if(_0x470b19){for(const _0x28c9e0 of _0x470b19)_0x28c9e0['getCustomProperty']('addHighlight')||(_0x25647d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x28c9e0),_0x25647d['writer']['removeAttribute']('data-suggestion',_0x28c9e0),_0x25647d['mapper']['unbindElementFromMarkerName'](_0x28c9e0,_0x39a10c['markerName']));}},{'priority':'high'});}),_0x2eeef7['conversion']['for']('editingDowncast')['add'](_0x4c0c38=>{_0x4c0c38['on']('removeMarker:suggestion:attribute',(_0x1acb8d,_0x29cd75,_0x4c66f3)=>{const _0x17d6de=_0x4c66f3['mapper']['markerNameToElements'](_0x29cd75['markerName']);if(!_0x17d6de)return;const {id:_0x15663f}=this['_splitMarkerName'](_0x29cd75['markerName']),_0x4afa31=this['_suggestions']['get'](_0x15663f),_0x209f6c=this['_getAttributeKey'](_0x4afa31);if(this['_isBlockAttribute'](_0x209f6c)){for(const _0x381c89 of _0x17d6de)_0x381c89['getCustomProperty']('addHighlight')||(_0x4c66f3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x381c89),_0x4c66f3['writer']['removeAttribute']('data-suggestion',_0x381c89),_0x4c66f3['mapper']['unbindElementFromMarkerName'](_0x381c89,_0x29cd75['markerName']));}},{'priority':'high'});}),_0x2eeef7['model']['document']['registerPostFixer'](_0x18e777=>{let _0x4caa4d=!0x1;const _0x550381=Array['from'](_0x2eeef7['model']['document']['differ']['getChangedMarkers']()),_0x524598=new Set();for(const {name:_0x5a7aa3,data:_0x1d54e3}of _0x550381){const {group:_0x6d2ef3,type:_0x346bfe,subType:_0x1e2d9c,id:_0x372f6b}=this['_splitMarkerName'](_0x5a7aa3);if('suggestion'!==_0x6d2ef3)continue;const _0x2f7cac=this['_suggestions']['get'](_0x372f6b);if(null!=_0x1d54e3['newRange']){'formatInline'==_0x346bfe&&(_0x4caa4d=_0x4caa4d||Vt(_0x1d54e3['newRange'],_0x5a7aa3,_0x18e777,_0x2eeef7['model']['schema']));const _0x480a24='attribute'==_0x346bfe&&this['_isBlockAttribute'](_0x1e2d9c['split']('|')[0x0]);if(_0x1d54e3['newRange']['isCollapsed']||'$graveyard'==_0x1d54e3['newRange']['root']['rootName']||'formatBlock'==_0x346bfe&&!Ot(_0x1d54e3['newRange'])||_0x480a24&&!Ot(_0x1d54e3['newRange'])||'deletion'==_0x346bfe&&!(!Et(_0x1c291f=_0x1d54e3['newRange'])&&!function(_0x40f25a){return _0x40f25a['start']['parent']==_0x40f25a['end']['nodeBefore']&&_0x40f25a['start']['isAtEnd'];}(_0x1c291f)))_0x18e777['removeMarker'](_0x5a7aa3),_0x4caa4d=!0x0;else{if(!_0x2f7cac||!_0x2f7cac['isInContent'])continue;_0x524598['add'](_0x2f7cac);}}}var _0x1c291f;return _0x524598['size']>0x0&&(_0x4caa4d=!!this['_joinWithAdjacentSuggestions'](_0x524598)||_0x4caa4d),_0x4caa4d;}),_0x2eeef7['model']['document']['registerPostFixer'](_0x32793d=>{let _0x122d26=!0x1;for(const _0x38ebb5 of _0x2eeef7['model']['document']['differ']['getChanges']())if('insert'==_0x38ebb5['type'])for(const _0x23c85f of this['_suggestions']['values']()){if(_0x23c85f['isMultiRange']||!_0x23c85f['isInContent'])continue;const _0x2f0434='formatBlock'==_0x23c85f['type'],_0x28a6a6=this['_getAttributeKey'](_0x23c85f),_0x4d66d0=_0x28a6a6&&this['_isBlockAttribute'](_0x28a6a6);if(!_0x2f0434&&!_0x4d66d0)continue;const _0x33a83d=_0x23c85f['getFirstRange']();if(_0x33a83d['start']['parent']!=_0x33a83d['end']['parent']&&!_0x33a83d['end']['isAtEnd']){const _0x6bee15=_0x2eeef7['model']['createPositionAt'](_0x33a83d['start']['nodeAfter'],'end'),_0x194b1f=_0x2eeef7['model']['createRange'](_0x33a83d['start'],_0x6bee15);_0x32793d['updateMarker'](_0x23c85f['getFirstMarker'](),{'range':_0x194b1f}),_0x122d26=!0x0;}}return _0x122d26;}),_0x2eeef7['model']['document']['registerPostFixer'](_0x407ddd=>this['_processAttributeChanges'](_0x407ddd)),_0x2eeef7['model']['document']['registerPostFixer'](_0x4cfbd2=>!_0x4cfbd2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4cfbd2)),_0x2eeef7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2eeef7['model']['document']['on']('change:data',(_0x27d32c,_0x3d7748)=>{if(!_0x3d7748['isLocal']||_0x3d7748['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x51e6f6=_0x2eeef7['model']['document']['differ']['getChanges']();if(0x0==_0x51e6f6['length'])return;const _0x45deb7=[],_0x7c1a2b=_0x51e6f6['filter'](_0x2b11c9=>'attribute'==_0x2b11c9['type']),_0x4056e2=_0x51e6f6['filter'](_0xc5a66f=>'insert'==_0xc5a66f['type']&&'$text'!=_0xc5a66f['name']);for(const _0x2bf750 of _0x7c1a2b)this['_isRegisteredAttribute'](_0x2bf750['attributeKey'])&&_0x45deb7['push']({'key':_0x2bf750['attributeKey'],'newValue':_0x2bf750['attributeNewValue'],'oldValue':_0x2bf750['attributeOldValue'],'range':Gt(_0x2bf750['range'],_0x2eeef7['model'])});for(const _0x3afb78 of _0x4056e2){if('rename'!=_0x3afb78['action']&&'refresh'!=_0x3afb78['action'])continue;const _0x2860f9=Ft(_0x3afb78['position']['nodeAfter'],_0x2eeef7['model']),_0x5765a9=_0x3afb78['before'];'rename'==_0x3afb78['action']&&_0x45deb7['push']({'key':m,'newValue':_0x3afb78['name'],'oldValue':_0x5765a9['name'],'range':_0x2860f9});for(const [_0x20306c,_0x54d907]of _0x5765a9['attributes']){if(!this['_isRegisteredAttribute'](_0x20306c))continue;const _0x32abd3=_0x3afb78['attributes']['get'](_0x20306c);_0x54d907!==_0x32abd3&&_0x45deb7['push']({'key':_0x20306c,'newValue':_0x32abd3,'oldValue':_0x54d907,'range':_0x2860f9});}for(const [_0x2fc292,_0x4e3596]of _0x3afb78['attributes'])this['_isRegisteredAttribute'](_0x2fc292)&&(_0x5765a9['attributes']['has'](_0x2fc292)||_0x45deb7['push']({'key':_0x2fc292,'newValue':_0x4e3596,'oldValue':null,'range':_0x2860f9}));}0x0!=_0x45deb7['length']&&_0x2eeef7['model']['enqueueChange'](_0x3d7748,_0x3cf064=>{const _0x669a1d=_0x280966();for(const {range:_0x2de71d,key:_0x211476,oldValue:_0x1993e3,newValue:_0x4813fb}of _0x45deb7)this['markAttributeChange'](_0x2de71d,_0x211476,_0x1993e3,_0x4813fb,{'groupId':_0x669a1d});this['_reduceExistingSuggestions'](_0x3cf064,_0x45deb7);});},{'priority':'lowest'}),_0x2eeef7['model']['markers']['on']('update:suggestion',(_0x1c7f3b,_0x2734b6,_0x16d398)=>{if(null==_0x16d398){const {id:_0x8a3326}=this['_splitMarkerName'](_0x2734b6['name']),_0x418d3c=this['_suggestions']['get'](_0x8a3326);_0x418d3c&&_0x418d3c['addMarkerName'](_0x2734b6['name']);}}),_0x2eeef7['model']['document']['on']('change:data',()=>{const _0x3e5112=Array['from'](_0x2eeef7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3c1917=>'suggestion'===this['_splitMarkerName'](_0x3c1917['name'])['group']);if(0x0===_0x3e5112['length'])return;_0x3e5112['sort']((_0x5ecb70,_0x40af63)=>{const _0x439515=_0x5ecb70['data']['oldRange'],_0x30e7dd=_0x40af63['data']['oldRange'];return null===_0x439515&&null===_0x30e7dd?0x0:null===_0x439515&&null!==_0x30e7dd?-0x1:null!==_0x439515&&null===_0x30e7dd?0x1:_0x439515['start']['isBefore'](_0x30e7dd['start'])?-0x1:0x1;});const _0x24dee4=new Set(),_0x2dc94f=new Set();for(const {name:_0x585ac2,data:_0x37bf3c}of _0x3e5112){const {id:_0x4a5a5b}=this['_splitMarkerName'](_0x585ac2);if(null===_0x37bf3c['oldRange']){const _0x441848=this['_handleNewSuggestionMarker'](_0x585ac2);_0x2dc94f['add'](_0x441848);}else{const _0x15a722=this['_suggestions']['get'](_0x4a5a5b);null!==_0x37bf3c['newRange']||_0x15a722['isInContent']?(_0x24dee4['add'](_0x15a722['head']),_0x2dc94f['add'](_0x15a722)):this['_removeSuggestion'](_0x15a722);}}_0x2dc94f['size']>0x0&&this['_refreshSuggestionsChain'](_0x2dc94f);for(const _0x5df546 of _0x24dee4)this['fire']('suggestionChanged',_0x5df546);}),_0x2eeef7['model']['on']('applyOperation',(_0x2cbed7,_0x3d2b4d)=>{const _0x2a1a88=_0x3d2b4d[0x0];if(!this['_suggestions']['size'])return;if(!_0x2a1a88['isDocumentOperation'])return;if(_0x2a1a88['batch']['isUndo']||!_0x2a1a88['batch']['isLocal'])return;let _0x49c836,_0x31da99;switch(_0x2a1a88['type']){case'insert':_0x49c836=_0x2eeef7['model']['createPositionAt'](_0x2a1a88['position']),_0x31da99=_0x49c836['getShiftedBy'](_0x2a1a88['howMany']);break;case'split':_0x49c836=_0x2eeef7['model']['createPositionAt'](_0x2a1a88['splitPosition']),_0x31da99=_0x2eeef7['model']['createPositionAt'](_0x2a1a88['moveTargetPosition']);break;case'move':_0x49c836=_0x2eeef7['model']['createPositionAt'](_0x2a1a88['targetPosition']),_0x31da99=_0x49c836['getShiftedBy'](_0x2a1a88['howMany']);break;default:return;}const _0x1dbbff=_0x2eeef7['model']['createRange'](_0x49c836,_0x31da99);_0x2eeef7['model']['change'](()=>{for(const {suggestion:_0x2fbb82,meta:_0x49dd24}of this['_findSuggestions'](_0x1dbbff)){if(_0x2fbb82['isMultiRange'])continue;if('formatInline'==_0x2fbb82['type'])continue;const _0xf5880f=this['_getAttributeKey'](_0x2fbb82);if(_0xf5880f&&this['_isBlockAttribute'](_0xf5880f)&&'split'!=_0x2a1a88['type'])continue;const _0x5ea92d=_0x2fbb82['data']&&_0x2fbb82['data']['multipleBlocks'];('formatBlock'!=_0x2fbb82['type']||'split'==_0x2a1a88['type']&&!_0x5ea92d)&&(_0x49dd24['containsRangeInObject']||'insertion'==_0x2fbb82['type']&&_0x49dd24['isOwn']||_0x2fbb82['getFirstRange']()['containsRange'](_0x1dbbff)&&this['_breakSuggestionMarker'](_0x2fbb82,_0x49c836,_0x31da99));}});},{'priority':'lowest'}),_0x2eeef7['model']['on']('deleteContent',(_0x4c0584,_0x4b62ae)=>{const _0x4f1ed9=_0x4b62ae[0x0],_0x8d663c=_0x4b62ae[0x1];if(_0x8d663c&&_0x8d663c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4f1ed9['isCollapsed'])return;const _0x2ba0c2=_0x2eeef7['model']['schema'],{start:_0x433547,end:_0x296eb3}=_0x4f1ed9['getFirstRange'](),_0x32f018=_0x433547['nodeAfter']&&_0x2ba0c2['isLimit'](_0x433547['nodeAfter'])?null:_0x2ba0c2['getNearestSelectionRange'](_0x433547,'forward'),_0x4bb04e=_0x296eb3['nodeBefore']&&_0x2ba0c2['isLimit'](_0x296eb3['nodeBefore'])?null:_0x2ba0c2['getNearestSelectionRange'](_0x296eb3,'backward'),_0x5730fa=_0x2eeef7['model']['createRange'](_0x32f018?_0x32f018['start']:_0x433547,_0x4bb04e?_0x4bb04e['end']:_0x296eb3);_0x2eeef7['model']['change'](_0x5257a4=>{this['markDeletion'](_0x5730fa);const _0x2796b3=_0x2eeef7['model']['schema']['getNearestSelectionRange'](_0x5730fa['start']);_0x4f1ed9['is']('documentSelection')?_0x5257a4['setSelection'](_0x2796b3):_0x4f1ed9['setTo'](_0x2796b3);}),_0x4c0584['stop']();},{'priority':_0x5bbedb['normal']+0xa}),_0x2eeef7['model']['on']('insertContent',(_0x3c3d84,_0x1b3351)=>{const _0x4a2993=_0x1b3351[_0x1b3351['length']-0x1];_0x4a2993&&_0x4a2993['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2eeef7['model']['change'](()=>{let _0xddb7c1=_0x2eeef7['model']['insertContent'](_0x1b3351[0x0],_0x1b3351[0x1],_0x1b3351[0x2],{'forceDefaultExecution':!0x0});if(!_0xddb7c1)return;_0x3c3d84['return']=_0xddb7c1['clone']();const _0x43b939=_0xddb7c1['end']['nodeBefore'],_0x3c02f6=_0x2eeef7['model']['schema'];_0x43b939&&_0x3c02f6['isBlock'](_0x43b939)&&!_0x3c02f6['isObject'](_0x43b939)&&(_0xddb7c1=_0x2eeef7['model']['createRange'](_0xddb7c1['start'],_0x2eeef7['model']['createPositionAt'](_0x43b939,'end'))),this['markInsertion'](_0xddb7c1);}),_0x3c3d84['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3b71df=new $(_0x2eeef7,this['_suggestions']);_0x2eeef7['commands']['add']('acceptSuggestion',_0x3b71df),this['enableCommand']('acceptSuggestion');const _0x26fe91=new B(_0x2eeef7,this['_suggestions']);_0x2eeef7['commands']['add']('discardSuggestion',_0x26fe91),this['enableCommand']('discardSuggestion'),_0x2eeef7['commands']['add']('acceptAllSuggestions',new x(_0x2eeef7,_0x3b71df,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2eeef7['commands']['add']('discardAllSuggestions',new x(_0x2eeef7,_0x26fe91,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2eeef7['commands']['add']('acceptSelectedSuggestions',new R(_0x2eeef7,_0x3b71df,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2eeef7['commands']['add']('discardSelectedSuggestions',new R(_0x2eeef7,_0x26fe91,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15b13f=_0x2eeef7['plugins']['get']('CommentsRepository');this['listenTo'](_0x15b13f,'addComment',(_0x4017df,{threadId:_0x56ef77})=>{const _0xbde663=this['_suggestions']['get'](_0x56ef77);_0xbde663&&_0xbde663['commentThread']&&0x1===_0xbde663['commentThread']['length']&&this['_updateSuggestionData'](_0x56ef77,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15b13f,'removeComment',(_0x497347,{threadId:_0x2cf4dd})=>{const _0x80f05e=this['_suggestions']['get'](_0x2cf4dd);_0x80f05e&&_0x80f05e['commentThread']&&!_0x80f05e['commentThread']['length']&&this['_updateSuggestionData'](_0x2cf4dd,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2a928a){if(this['_adapter'])throw new _0x5c47f2('track-changes-adapter-already-set',this);this['_adapter']=_0x2a928a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4235dc=!0x1,toJSON:_0x2df4fc=!0x1}={}){const _0x30dcb2=[];for(const _0xe4de86 of this['_suggestions']['values']())_0x4235dc&&!_0xe4de86['isInContent']||_0x30dcb2['push'](_0xe4de86);return _0x2df4fc?_0x30dcb2['map'](_0x335f3d=>_0x335f3d['toJSON']()):_0x30dcb2;}['getSuggestion'](_0xed6126){const _0x5c40f4=this['_suggestions']['get'](_0xed6126);if(!_0x5c40f4)throw new _0x5c47f2('track-changes-suggestion-not-found',this);return _0x5c40f4;}['hasSuggestion'](_0x3fc8bf){return this['_suggestions']['has'](_0x3fc8bf);}['addSuggestionData'](_0x80d995){const {authorId:_0x500f62,id:_0x539595,attributes:_0x229328}=_0x80d995,[_0x18a4b0,_0x19d00a]=_0x80d995['type']['split'](':'),_0x380901=this['_suggestions']['get'](_0x539595)||this['_createSuggestion'](_0x18a4b0,_0x19d00a,_0x539595,_0x500f62,_0x229328);if(this['_addThreadToSuggestion'](_0x380901),this['_checkSuggestionCorrectness'](_0x380901,_0x18a4b0,_0x19d00a||null,_0x500f62),_0x380901['createdAt']=_0x80d995['createdAt'],_0x380901['_isDataLoaded']=!0x0,_0x229328&&_0x229328['@external']){const _0xccb95a=_0x229328['@external'],_0x5379a5=this['_getExternalAuthor'](_0xccb95a['authorName']);_0x380901['authoredAt']=_0xccb95a['createdAt'],_0x380901['author']=_0x5379a5,_0x380901['isExternal']=!0x0;}else _0x380901['authoredAt']=_0x80d995['createdAt'];switch(_0x80d995['data']&&(_0x380901['data']=_0x80d995['data']),_0x80d995['attributes']&&(_0x380901['attributes']=_0x80d995['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x380901['_saved']=!0x0),this['_suggestionState']['get'](_0x380901)){case'notReady':this['_suggestionState']['set'](_0x380901,'dataReady');break;case'markerReady':_0x380901['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x380901])),this['_refreshSuggestionsChain'](new Set([_0x380901])),this['_suggestionState']['set'](_0x380901,'ready'),this['fire']('suggestionLoaded',_0x380901)):this['_suggestionState']['set'](_0x380901,'removed');}return _0x380901;}['acceptSuggestion'](_0x5a4b7e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5da986 of _0x5a4b7e['getAllAdjacentSuggestions']())_0x5da986['accept']();});});}['discardSuggestion'](_0x1027bc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x18c10f of _0x1027bc['getAllAdjacentSuggestions']())_0x18c10f['discard']();});});}['enableCommand'](_0x2066e3,_0x2148b2){const _0x5f3540=this['editor']['commands']['get'](_0x2066e3);if(!_0x5f3540)throw new _0x5c47f2('track-changes-command-not-found',this,{'commandName':_0x2066e3});if(this['_enabledCommands']['has'](_0x5f3540))throw new _0x5c47f2('track-changes-enable-command-twice',this,{'commandName':_0x2066e3});this['_enabledCommands']['add'](_0x5f3540),_0x2148b2&&_0x5f3540['on']('execute',(_0x2283ae,_0x5ebe74)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5ebe74['length']>0x0&&_0x5ebe74[_0x5ebe74['length']-0x1]&&_0x5ebe74[_0x5ebe74['length']-0x1]['forceDefaultExecution']?_0x5ebe74['pop']():(_0x2283ae['return']=_0x2148b2((..._0x5d5f17)=>_0x5f3540['execute'](..._0x5d5f17,{'forceDefaultExecution':!0x0}),..._0x5ebe74),_0x2283ae['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x40a3ec){let _0x24dfa3,_0x17c423;const _0x250fc4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x24dfa3=_0x40a3ec();}catch(_0x247916){_0x17c423=_0x247916;}return _0x250fc4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17c423&&_0x5c47f2['rethrowUnexpectedError'](_0x17c423,this),_0x24dfa3;}['markInsertion'](_0x424efe,_0x3b3ca1=null,_0x28a0bf={}){if(_0x424efe['isCollapsed'])return null;const _0x1e1555=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x34f43c,meta:_0x2e605e}of this['_findSuggestions'](_0x424efe,'insertion'))if(_0x2e605e['isOwn']){if(!_0x2e605e['isNextTo']){if(_0x2e605e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x34f43c,_0x28a0bf))continue;return _0x34f43c;}if(Ht(_0x34f43c,_0x28a0bf))return _0x34f43c;this['_breakSuggestionMarker'](_0x34f43c,_0x424efe['start'],_0x424efe['end']);break;}if(_0x3b3ca1==_0x34f43c['subType']&&Ht(_0x34f43c,_0x28a0bf)){const _0x2047a0=_0x34f43c['getFirstRange']();return _0x2047a0['start']['isEqual'](_0x424efe['end'])?this['_setSuggestionRange'](_0x34f43c,this['_model']['createRange'](_0x424efe['start'],_0x2047a0['end'])):this['_setSuggestionRange'](_0x34f43c,this['_model']['createRange'](_0x2047a0['start'],_0x424efe['end'])),_0x34f43c;}}const _0x29860d=_0x280966(),_0x4f83d0=_0x1e1555['id'],_0x3ba4b2=_0x3b3ca1?'insertion:'+_0x3b3ca1:'insertion',_0xc34010=this['_setSuggestionData']({'id':_0x29860d,'type':_0x3ba4b2,'createdAt':new Date(),'authorId':_0x4f83d0,'attributes':_0x28a0bf});return this['_addSuggestionMarker'](_0x3ba4b2,_0x29860d,_0x4f83d0,_0x424efe),_0xc34010;}['markMultiRangeInsertion'](_0x5a63fb,_0x42fe04='multi',_0x144115={}){const _0x5c6a69=this['editor']['plugins']['get']('Users')['me'],_0x4db95d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42fe04,'join');for(const _0x598316 of this['getSuggestions']())if(_0x598316['author']['id']==_0x5c6a69['id']&&'insertion'==_0x598316['type']&&_0x598316['subType']==_0x42fe04&&Ht(_0x598316,_0x144115)&&(_0x4db95d(_0x598316['getRanges'](),_0x5a63fb)||_0x4db95d(_0x5a63fb,_0x598316['getRanges']()))){for(const _0x48bc31 of _0x5a63fb)_0x598316['addRange'](_0x48bc31);return _0x598316;}for(const {suggestion:_0x282240,meta:_0x536e7b}of this['_findSuggestions'](_0x5a63fb,'insertion')){if(!_0x536e7b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x536e7b['containsRangeInObject'])continue;if(!Ht(_0x282240,_0x144115))continue;let _0x3b01d5=!0x0;for(const _0xf65ad2 of _0x282240['getRanges']())for(const _0x13528e of _0x5a63fb)if(!_0xf65ad2['containsRange'](_0x13528e)){_0x3b01d5=!0x1;break;}if(_0x3b01d5)return _0x282240;}const _0xef2ad6=_0x280966(),_0x6468cd=_0x5c6a69['id'],_0x2443ef='insertion:'+_0x42fe04,_0x3d471b=this['_setSuggestionData']({'id':_0xef2ad6,'type':_0x2443ef,'createdAt':new Date(),'authorId':_0x6468cd,'attributes':_0x144115});for(const _0x32290e of _0x5a63fb)this['_addSuggestionMarker'](_0x2443ef,_0xef2ad6,_0x6468cd,_0x32290e,u['getMultiRangeId']());return _0x3d471b;}['markInlineFormat'](_0x4ba773,_0x5d42f2,_0x4b9b55=null,_0x310188={}){if(_0x4b9b55=_0x4b9b55||Ut(_0x5d42f2),_0x4ba773['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51e9a5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b9b55,'accept');return this['forceDefaultExecution'](()=>_0x51e9a5([_0x4ba773],_0x5d42f2,_0x310188)),null;}const _0x1c1c0c=this['editor']['plugins']['get']('Users')['me'],_0x1fdefd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x618b4e,meta:_0x519c10}of this['_findSuggestions'](_0x4ba773,'insertion'))_0x519c10['isOwn']&&!_0x519c10['isInsideObject']&&_0x1fdefd['push'](..._0x618b4e['getRanges']());}const _0x308eee=function(_0x466f40,_0x5c5cf7){const _0x7b3d4=[];for(const _0xe3440 of _0x5c5cf7){const _0x996bf7=_0x466f40['getIntersection'](_0xe3440);_0x996bf7&&_0x7b3d4['push'](_0x996bf7);}return _0x7b3d4;}(_0x4ba773,_0x1fdefd),_0x12b0cd=function(_0x3e91e2,_0x3edb57){const _0x3ed0b0=[_0x3e91e2];for(const _0x52638e of _0x3edb57){let _0x9d0300=0x0;for(;_0x9d0300<_0x3ed0b0['length'];){const _0x2ed89d=_0x3ed0b0[_0x9d0300]['getDifference'](_0x52638e);_0x3ed0b0['splice'](_0x9d0300,0x1,..._0x2ed89d),_0x9d0300+=_0x2ed89d['length'];}}return _0x3ed0b0;}(_0x4ba773,_0x1fdefd);_0x308eee['length']&&this['_model']['change'](()=>{for(const _0xc83d7a of _0x308eee){const _0x33c9e4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b9b55,'accept');this['forceDefaultExecution'](()=>_0x33c9e4([_0xc83d7a],_0x5d42f2,_0x310188));}});for(const _0x562ee8 of _0x12b0cd){let _0x22977e=null,_0x4fd62e=_0x562ee8['start'],_0x516383=_0x562ee8['end'];for(const {suggestion:_0x38c0bf,meta:_0x210367}of this['_findSuggestions'](_0x562ee8,'formatInline')){if(!_0x210367['isOwn'])continue;if(_0x38c0bf['subType']!=_0x4b9b55)continue;if(!Ht(_0x38c0bf,_0x310188))continue;const _0x415f32=_0x38c0bf['getFirstRange']();if(_0x415f32['containsRange'](_0x562ee8,!0x0))return null;_0x4fd62e=_0x4fd62e['isBefore'](_0x415f32['start'])?_0x4fd62e:_0x415f32['start'],_0x516383=_0x516383['isAfter'](_0x415f32['end'])?_0x516383:_0x415f32['end'],_0x22977e?_0x415f32['start']['isBefore'](_0x22977e['getFirstRange']()['start'])?(_0x22977e['removeMarkers'](),_0x22977e=_0x38c0bf):_0x38c0bf['removeMarkers']():_0x22977e=_0x38c0bf;}const _0x4246c9=this['_model']['createRange'](_0x4fd62e,_0x516383);if(_0x22977e)this['_setSuggestionRange'](_0x22977e,_0x4246c9);else{const _0x73f90d=_0x280966(),_0x484da9=_0x1c1c0c['id'];this['_setSuggestionData']({'id':_0x73f90d,'type':'formatInline:'+_0x4b9b55,'data':_0x5d42f2,'createdAt':new Date(),'authorId':_0x484da9,'attributes':_0x310188}),this['_addSuggestionMarker']('formatInline:'+_0x4b9b55,_0x73f90d,_0x484da9,_0x4246c9);}}return null;}['markBlockFormat'](_0x576f4d,_0x47ac3b,_0x2380ea=[],_0x11e3db=null,_0x2d32f2={}){_0x47ac3b['formatGroupId']||(_0x47ac3b['formatGroupId']=_0x47ac3b['commandName']),_0x47ac3b['multipleBlocks']=_0x576f4d['is']('range'),_0x11e3db=_0x11e3db||Ut(_0x47ac3b);const _0x390fbd=_0x2380ea['map'](_0x240752=>Ft(_0x240752,this['_model'])),_0x2beb2d=_0x576f4d['is']('range')?_0x576f4d:Ft(_0x576f4d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x202604=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e3db,'accept');return this['forceDefaultExecution'](()=>_0x202604([_0x2beb2d],_0x47ac3b,_0x2d32f2)),null;}_0x390fbd['push'](_0x2beb2d);let _0x7d3178=!0x0;for(const _0x983c05 of _0x390fbd)if(!this['_rangeIsInLocalUserInsertion'](_0x983c05)){_0x7d3178=!0x1;break;}if(_0x7d3178&&'always'!==this['_trackFormatChanges']){const _0x5157d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e3db,'accept');return this['forceDefaultExecution'](()=>_0x5157d4([_0x2beb2d],_0x47ac3b,_0x2d32f2)),null;}let _0x5231eb=null,_0x164859=_0x2beb2d['start'],_0x13760f=_0x2beb2d['end'];for(const {suggestion:_0x2a297b,meta:_0x422538}of this['_findSuggestions'](_0x2beb2d,'formatBlock')){if(!_0x422538['isOwn'])continue;if(_0x422538['isNextTo']||_0x422538['containsRangeInObject']||_0x422538['isInsideObject'])continue;if(_0x2a297b['data']['formatGroupId']!=_0x47ac3b['formatGroupId'])continue;if(!Ht(_0x2a297b,_0x2d32f2))continue;const _0x46ee48=_0x2a297b['getFirstRange']();if(_0x2a297b['subType']==_0x11e3db){if(_0x46ee48['containsRange'](_0x2beb2d,!0x0))return null;_0x164859=_0x164859['isBefore'](_0x46ee48['start'])?_0x164859:_0x46ee48['start'],_0x13760f=_0x13760f['isAfter'](_0x46ee48['end'])?_0x13760f:_0x46ee48['end'],_0x5231eb?_0x46ee48['start']['isBefore'](_0x5231eb['getFirstRange']()['start'])?(_0x5231eb['removeMarkers'](),_0x5231eb=_0x2a297b):_0x2a297b['removeMarkers']():_0x5231eb=_0x2a297b;}else{const _0x2fad0f=_0x2beb2d['getIntersection'](_0x46ee48);this['_cutOutSuggestionMarker'](_0x2a297b,_0x2fad0f);}}const _0xf39f5b=this['editor']['plugins']['get']('Users')['me'],_0x2324e6=_0x280966(),_0x4d6218=_0xf39f5b['id'];if(_0x5231eb)return this['_setSuggestionRange'](_0x5231eb,this['_model']['createRange'](_0x164859,_0x13760f)),_0x5231eb;{const _0x49787b=this['_setSuggestionData']({'id':_0x2324e6,'type':'formatBlock:'+_0x11e3db,'data':_0x47ac3b,'createdAt':new Date(),'authorId':_0x4d6218,'attributes':_0x2d32f2});return this['_addSuggestionMarker']('formatBlock:'+_0x11e3db,_0x2324e6,_0x4d6218,this['_model']['createRange'](_0x164859,_0x13760f)),_0x49787b;}}['markMultiRangeBlockFormat'](_0xc68eb7,_0x4f72e0,_0x4b0feb=[],_0x1fa98b=null,_0x21d967={}){_0x4f72e0['formatGroupId']||(_0x4f72e0['formatGroupId']=_0x4f72e0['commandName']);const _0x4ff13b=_0xc68eb7[0x0];_0x4f72e0['multipleBlocks']=_0x4ff13b['is']('range'),_0x1fa98b=_0x1fa98b||Ut(_0x4f72e0);const _0x42f4e6=_0x4b0feb['map'](_0xbffbd7=>Ft(_0xbffbd7,this['_model'])),_0x180e6c=_0x4ff13b['is']('range')?_0xc68eb7:_0xc68eb7['map'](_0x119ff6=>Ft(_0x119ff6,this['_model']));if('never'===this['_trackFormatChanges']){const _0x29b66c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa98b,'accept');return this['forceDefaultExecution'](()=>_0x29b66c(_0x180e6c,_0x4f72e0,_0x21d967)),null;}_0x42f4e6['push'](..._0x180e6c);let _0x75facd=!0x0;for(const _0x6ec20a of _0x42f4e6)if(!this['_rangeIsInLocalUserInsertion'](_0x6ec20a)){_0x75facd=!0x1;break;}if(_0x75facd&&'always'!==this['_trackFormatChanges']){const _0x4f04bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa98b,'accept');return this['forceDefaultExecution'](()=>_0x4f04bf(_0x180e6c,_0x4f72e0,_0x21d967)),null;}const _0x354a25=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b26d6 of this['getSuggestions']()){if(_0x2b26d6['author']['id']!=_0x354a25['id'])continue;if('formatBlock'!=_0x2b26d6['type']||_0x2b26d6['data']['formatGroupId']!=_0x4f72e0['formatGroupId'])continue;if(!Ht(_0x2b26d6,_0x21d967))continue;const _0x1a07ca=_0x2b26d6['subType']==_0x1fa98b;for(let _0x29c2d3=0x0;_0x29c2d3<_0x180e6c['length'];_0x29c2d3++){const _0x1031cd=_0x180e6c[_0x29c2d3];for(const _0x4187ba of _0x2b26d6['getMarkers']()){const _0x335b04=_0x4187ba['getRange']();if(_0x1031cd['isEqual'](_0x335b04)){_0x1a07ca?(_0x180e6c['splice'](_0x29c2d3,0x1),_0x29c2d3--):_0x2b26d6['removeMarker'](_0x4187ba['name']);break;}}}}if(0x0==_0x180e6c['length'])return null;const _0x26adad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa98b,'join');for(const _0x16d6ee of this['getSuggestions']())if(_0x16d6ee['author']['id']==_0x354a25['id']&&'formatBlock'==_0x16d6ee['type']&&_0x16d6ee['data']['formatGroupId']==_0x4f72e0['formatGroupId']&&_0x16d6ee['subType']==_0x1fa98b&&Ht(_0x16d6ee,_0x21d967)&&(_0x26adad(_0x16d6ee['getRanges'](),_0x180e6c)||_0x26adad(_0x180e6c,_0x16d6ee['getRanges']()))){for(const _0x3a8806 of _0x180e6c)_0x16d6ee['addRange'](_0x3a8806);return _0x16d6ee;}const _0x5c5c5e=_0x280966(),_0x1cc858=_0x354a25['id'],_0x29efd3='formatBlock:'+_0x1fa98b,_0x9afa19=this['_setSuggestionData']({'id':_0x5c5c5e,'type':_0x29efd3,'data':_0x4f72e0,'createdAt':new Date(),'authorId':_0x1cc858,'attributes':_0x21d967});for(const _0x26b356 of _0x180e6c)this['_addSuggestionMarker'](_0x29efd3,_0x5c5c5e,_0x1cc858,_0x26b356,u['getMultiRangeId']());return _0x9afa19;}['markDeletion'](_0x47cedb,_0x448b71=null,_0x6a0488={}){if(_0x47cedb['isCollapsed'])return null;const _0x14eb9e=this['editor']['plugins']['get']('Users')['me'],_0x4f813b=new _0x30fc72(_0x47cedb['start'],_0x47cedb['end']);for(const {suggestion:_0xee8fd0,meta:_0x15f05c}of this['_findSuggestions'](_0x4f813b,'insertion'))if(_0x15f05c['isOwn']&&!_0x15f05c['isNextTo']){if(_0xee8fd0['isMultiRange']){const _0x2f1430=_0xee8fd0['getRanges']()['filter'](_0x4d7232=>'$graveyard'!=_0x4d7232['root']['rootName']);_0x2f1430['every'](_0x5ae584=>_0x4f813b['containsRange'](_0x5ae584,!0x0))&&_0xee8fd0['discard']();if(_0x2f1430['some'](_0x5b3c3e=>_0x5b3c3e['containsRange'](_0x4f813b,!0x0))){const _0x4f75f1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x448b71,'accept');return this['forceDefaultExecution'](()=>_0x4f75f1([_0x4f813b],null,_0x6a0488)),null;}}else{const _0x30e387=_0x4f813b['getIntersection'](_0xee8fd0['getFirstRange']());null!==_0x30e387&&_0xee8fd0['_onDiscard']([_0x30e387],null,_0x6a0488);}}if(_0x4f813b['detach'](),_0x4f813b['isCollapsed']||'$graveyard'==_0x4f813b['root']['rootName'])return null;let _0x139e4c=null,_0x533405=_0x4f813b['start'],_0x454dcc=_0x4f813b['end'];const _0x1c008e=this['_findSuggestions'](_0x4f813b,'deletion');for(const {suggestion:_0x19f488,meta:_0xd75c4e}of _0x1c008e){const _0x2e239b=this['_model']['createRange'](_0x533405,_0x454dcc);if(_0xd75c4e['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd75c4e['containsRangeInObject']&&!_0xd75c4e['isInsideObject'])){if(_0x19f488['isMultiRange']){if(!Ht(_0x19f488,_0x6a0488))continue;let _0xe9fccd=!0x0;for(const _0x24445e of _0x19f488['getRanges']()){if(_0x24445e['containsRange'](_0x2e239b,!0x0))return _0x19f488;_0x2e239b['containsRange'](_0x24445e)||(_0xe9fccd=!0x1);}_0xe9fccd&&_0x19f488['discard']();}else{const _0x3aaa79=_0x19f488['getFirstRange']();if(_0x3aaa79['containsRange'](_0x2e239b,!0x0))return _0x19f488;if(!Ht(_0x19f488,_0x6a0488)){_0x2e239b['containsRange'](_0x3aaa79)?_0x19f488['removeMarkers']():_0x3aaa79['containsPosition'](_0x533405)?_0x533405=_0x3aaa79['end']:_0x3aaa79['containsPosition'](_0x454dcc)&&(_0x454dcc=_0x3aaa79['start']);continue;}_0x533405=_0x533405['isBefore'](_0x3aaa79['start'])?_0x533405:_0x3aaa79['start'],_0x454dcc=_0x454dcc['isAfter'](_0x3aaa79['end'])?_0x454dcc:_0x3aaa79['end'],_0x6a0488=Object['assign']({},_0x19f488['attributes']),_0x139e4c?_0x3aaa79['start']['isBefore'](_0x139e4c['getFirstRange']()['start'])?(_0x139e4c['removeMarkers'](),_0x139e4c=_0x19f488):_0x19f488['removeMarkers']():_0x139e4c=_0x19f488;}}}if(_0x139e4c)return this['_setSuggestionRange'](_0x139e4c,this['_model']['createRange'](_0x533405,_0x454dcc)),_0x139e4c;{const _0x153754=_0x280966(),_0x26ec8f=this['_model']['createRange'](_0x533405,_0x454dcc),_0xa61d8b=_0x14eb9e['id'],_0x3ac628=_0x448b71?'deletion:'+_0x448b71:'deletion',_0x333376=this['_setSuggestionData']({'id':_0x153754,'type':_0x3ac628,'createdAt':new Date(),'authorId':_0xa61d8b,'attributes':_0x6a0488});return this['_addSuggestionMarker'](_0x3ac628,_0x153754,_0xa61d8b,_0x26ec8f),_0x333376;}}['markMultiRangeDeletion'](_0x55137a,_0x359ff6='multi',_0x573060={}){const _0x153869=this['editor']['plugins']['get']('Users')['me'],_0x34e4cd=_0x55137a['map'](_0x48793b=>new _0x30fc72(_0x48793b['start'],_0x48793b['end'])),_0x379129=new Set();for(const {suggestion:_0x51d05b,meta:_0x247564}of this['_findSuggestions'](_0x34e4cd,'insertion'))_0x247564['isOwn']&&!_0x247564['isNextTo']&&_0x379129['add'](_0x51d05b);for(const _0x12dde6 of _0x379129)if(_0x12dde6['isMultiRange']){const _0x548925=_0x12dde6['getRanges']();(!_0x12dde6['attributes']||!_0x12dde6['attributes']['skipNestingCheck'])&&(_0x548925['every'](_0x396d7a=>_0x34e4cd['some'](_0x182219=>_0x182219['containsRange'](_0x396d7a,!0x0)))&&_0x12dde6['discard']());if(_0x34e4cd['every'](_0x4c54a1=>_0x548925['some'](_0x3bfc9b=>_0x3bfc9b['containsRange'](_0x4c54a1,!0x0)))){const _0x549834=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x359ff6,'accept');return this['forceDefaultExecution'](()=>_0x549834(_0x55137a,null,_0x573060)),null;}}else{const _0xef1fee=_0x12dde6['getFirstRange']();_0x34e4cd['some'](_0x10f118=>_0x10f118['containsRange'](_0xef1fee,!0x0))&&_0x12dde6['discard']();if(_0x34e4cd['every'](_0xb79471=>_0xef1fee['containsRange'](_0xb79471,!0x0))){const _0x3aca89=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x359ff6,'accept');return this['forceDefaultExecution'](()=>_0x3aca89(_0x34e4cd,null,_0x573060)),null;}}const _0x307211=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x359ff6,'join');let _0x391dfd=null;for(const _0x5666ed of this['getSuggestions']())if(_0x5666ed['author']['id']==_0x153869['id']&&_0x5666ed['isInContent']&&'deletion'==_0x5666ed['type']&&_0x5666ed['subType']==_0x359ff6&&Ht(_0x5666ed,_0x573060)&&(_0x307211(_0x5666ed['getRanges'](),_0x34e4cd)||_0x307211(_0x34e4cd,_0x5666ed['getRanges']()))){if(_0x391dfd){if(_0x5666ed['commentThread']&&_0x5666ed['commentThread']['length'])continue;for(const _0x38cbe9 of _0x5666ed['getRanges']())_0x391dfd['isIntersectingWithRange'](_0x38cbe9)||_0x391dfd['addRange'](_0x38cbe9);_0x5666ed['removeMarkers']();}else{_0x391dfd=_0x5666ed;for(const _0x165507 of _0x34e4cd)_0x5666ed['isIntersectingWithRange'](_0x165507)||_0x5666ed['addRange'](_0x165507);}}if(_0x391dfd)return _0x391dfd;_0x379129['clear']();for(const {suggestion:_0x4b13c0,meta:_0x200f0c}of this['_findSuggestions'](_0x34e4cd,'deletion'))_0x200f0c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x200f0c['containsRangeInObject']&&!_0x200f0c['isInsideObject'])&&Ht(_0x4b13c0,_0x573060)&&_0x379129['add'](_0x4b13c0);for(const _0x91e179 of _0x379129){const _0x2b6f30=_0x91e179['getRanges']();if(!_0x573060||!_0x573060['skipNestingCheck']){if(_0x34e4cd['every'](_0x3a91d4=>_0x2b6f30['some'](_0x36a69d=>_0x36a69d['containsRange'](_0x3a91d4,!0x0))))return _0x91e179;}(!_0x91e179['attributes']||!_0x91e179['attributes']['skipNestingCheck'])&&(_0x2b6f30['every'](_0xe196bf=>_0x34e4cd['some'](_0xc2b97f=>_0xc2b97f['containsRange'](_0xe196bf,!0x0)))&&_0x91e179['discard']());}const _0xe260fa=_0x280966(),_0x501e69=_0x153869['id'],_0xf45570='deletion:'+_0x359ff6,_0x4ff69a=this['_setSuggestionData']({'id':_0xe260fa,'type':_0xf45570,'createdAt':new Date(),'authorId':_0x501e69,'attributes':_0x573060});for(const _0x1d8a99 of _0x34e4cd)_0x1d8a99['detach'](),_0x1d8a99['isCollapsed']||'$graveyard'==_0x1d8a99['root']['rootName']||this['_addSuggestionMarker'](_0xf45570,_0xe260fa,_0x501e69,_0x1d8a99,u['getMultiRangeId']());return _0x4ff69a;}['markAttributeChange'](_0xa5e01,_0x1d2fca,_0x227d8b,_0x1470ff,_0x545f45){if(_0xa5e01['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x116ee9=this['editor']['plugins']['get']('Users')['me']['id'],_0x33735e=Array['from'](this['_suggestions']['values']())['filter'](_0x27a33d=>'attribute'==_0x27a33d['type']&&_0x27a33d['data']['key']==_0x1d2fca&&_0x27a33d['isIntersectingWithRange'](_0xa5e01));if('default'===this['_trackFormatChanges']){const _0x4cef7a=this['_findSuggestions'](_0xa5e01,'insertion')['filter'](({meta:_0x2386cf})=>_0x2386cf['isOwn']&&!_0x2386cf['isInsideObject']&&!_0x2386cf['isNextTo'])['map'](({suggestion:_0x23a187})=>_0x23a187);_0x33735e['unshift'](..._0x4cef7a);}const _0x453584=new Map([[_0xa5e01,_0x227d8b]]);for(const _0xc068ec of _0x33735e){const _0x1a9804='attribute'==_0xc068ec['type']?_0xc068ec['data']['oldValue']:void 0x0,_0x17e9eb=_0xc068ec['getFirstRange'](),_0x1de9b6=Array['from'](_0x453584['keys']())['find'](_0x743c45=>_0x743c45['isIntersecting'](_0x17e9eb));if(!_0x1de9b6)continue;const _0x36199f=_0x1de9b6['getDifference'](_0x17e9eb);this['_isBlockAttribute'](_0x1d2fca)&&'insertion'==_0xc068ec['type']&&0x0!=_0x36199f['length']||(_0x453584['delete'](_0x1de9b6),_0x36199f['forEach'](_0x22ab10=>{_0x453584['set'](_0x22ab10,_0x227d8b);}),'insertion'!=_0xc068ec['type']&&_0x1a9804!=_0x1470ff&&_0x453584['set'](_0x1de9b6['getIntersection'](_0x17e9eb),_0x1a9804));}const _0x310873=[];for(const [_0x3b03c7,_0x1c3615]of _0x453584){const _0x123d66=_0x280966(),_0x4d2176={'key':_0x1d2fca,'oldValue':_0x1c3615,'newValue':_0x1470ff};_0x1d2fca['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':_0x1d2fca});const _0x523fdd=('attribute:'+(_0x1d2fca+'|'+Ut({'newValue':_0x1470ff})))['substring'](0x0,0x3c),_0x377388=this['_setSuggestionData']({'id':_0x123d66,'type':_0x523fdd,'data':_0x4d2176,'createdAt':new Date(),'authorId':_0x116ee9,'attributes':_0x545f45});_0x310873['push'](_0x377388),this['_addSuggestionMarker'](_0x523fdd,_0x123d66,_0x116ee9,_0x3b03c7);}return _0x310873;}['enableDefaultAttributesIntegration'](_0x3c7316){this['enableCommand'](_0x3c7316,(_0x363d7e,..._0x57121b)=>{this['_recordAttributeChanges'](()=>{_0x363d7e(..._0x57121b);});});}['registerBlockAttribute'](_0x4d9d56){this['_blockAttributeKeys']['add'](_0x4d9d56);}['registerInlineAttribute'](_0x3f890b){this['_inlineAttributeKeys']['add'](_0x3f890b);}['_getAttributeKey'](_0x3b7940){return'attribute'==_0x3b7940['type']?_0x3b7940['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4b4b7a,_0x3d1398){const _0x353c0c=_0x4b4b7a['getFirstMarker']();this['_model']['change'](_0xe5fe40=>{_0xe5fe40['updateMarker'](_0x353c0c,{'range':_0x3d1398});});}['_addThreadToSuggestion'](_0x13a74e){const _0x408075=_0x13a74e['id'],_0x506883=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x408075)||this['_commentsRepository']['addCommentThread']({'channelId':_0x506883,'threadId':_0x408075,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1af36d=this['_commentsRepository']['getCommentThread'](_0x408075);_0x1af36d['unbind']('isRemovable'),_0x1af36d['isRemovable']=!0x1,_0x13a74e['commentThread']=_0x1af36d;}['_checkSuggestionCorrectness'](_0x5a8ba8,_0x4cf89e,_0x4f3cea,_0x49515b){if(_0x5a8ba8['type']!=_0x4cf89e||_0x5a8ba8['subType']!=_0x4f3cea||_0x5a8ba8['creator']['id']!=_0x49515b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5c47f2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3dce3f,_0x4a9e55){const _0x589217=_0x3dce3f['getFirstRange']();if(_0x4a9e55['isEqual'](_0x589217))_0x3dce3f['removeMarkers']();else{if(_0x589217['containsRange'](_0x4a9e55)){const _0x1948ba=this['_model']['createPositionAt'](_0x4a9e55['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dce3f,this['_model']['createRange'](_0x589217['start'],_0x1948ba));const _0x537b69=_0x280966(),_0x2e953b=_0x3dce3f['creator']['id'],_0x16d6e9=_0x3dce3f['type']+':'+_0x3dce3f['subType'];this['_setSuggestionData']({'id':_0x537b69,'type':_0x16d6e9,'createdAt':new Date(),'authorId':_0x2e953b,'data':_0x3dce3f['data'],'attributes':_0x3dce3f['attributes']});const _0xf6f62b=this['_model']['createPositionAt'](_0x4a9e55['end']['parent'],'after'),_0x38589e=this['_model']['createRange'](_0xf6f62b,_0x589217['end']);this['_addSuggestionMarker'](_0x16d6e9,_0x537b69,_0x2e953b,_0x38589e);}else{if(_0x589217['containsPosition'](_0x4a9e55['start'])){const _0x3d6991=this['_model']['createPositionAt'](_0x4a9e55['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dce3f,this['_model']['createRange'](_0x589217['start'],_0x3d6991));}else{const _0x428df6=this['_model']['createPositionAt'](_0x4a9e55['end']['parent'],'after');this['_setSuggestionRange'](_0x3dce3f,this['_model']['createRange'](_0x428df6,_0x589217['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x6da2cc){for(const {suggestion:_0x27d49b,meta:_0x1eaf1e}of this['_findSuggestions'](_0x6da2cc,'insertion')){if(!_0x1eaf1e['isOwn'])continue;const _0x220fb9=_0x27d49b['getRanges']();for(const _0x493e8f of _0x220fb9)if(!_0x6da2cc['getDifference'](_0x493e8f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13065c){const _0x4a9cfc=this['editor']['plugins']['get']('Users')['getUser'](_0x13065c);if(!_0x4a9cfc)throw new _0x5c47f2('track-changes-user-not-found',this);return _0x4a9cfc;}['_getExternalAuthor'](_0x469b24){const _0x4b0328=this['editor']['plugins']['get']('Users'),_0x4ccde6=_0x16f00d('external:'+_0x469b24),_0x338f74=_0x4b0328['getUser'](_0x4ccde6);return _0x338f74||_0x4b0328['addUser']({'id':_0x4ccde6,'name':_0x469b24});}['_createSuggestion'](_0x59121e,_0x1be47e,_0x521284,_0xaa12d7,_0x1216a6){const _0xa437b9=this['_getAuthorFromId'](_0xaa12d7),_0x34711c=this['_suggestionFactory']['buildSuggestion'](_0x59121e,_0x1be47e,_0x521284,_0xa437b9,_0x1216a6,_0xe2f3d5=>{this['_updateSuggestionData'](_0x521284,{'attributes':_0xe2f3d5});const _0x343ec8=this['getSuggestion'](_0x521284);this['_joinWithAdjacentSuggestions'](new Set([_0x343ec8])),this['_refreshSuggestionsChain'](new Set([_0x343ec8]));});return this['listenTo'](_0x34711c,'accept',()=>{this['_updateSuggestionData'](_0x521284,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x34711c,'discard',()=>{this['_updateSuggestionData'](_0x521284,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x521284,_0x34711c),this['_suggestionState']['set'](_0x34711c,'notReady'),_0x34711c;}['_splitMarkerName'](_0x5ba2e9){const _0x37a244=_0x5ba2e9['split'](':');return{'group':_0x37a244[0x0],'type':_0x37a244[0x1],'subType':_0x37a244['length']>=0x5?_0x37a244[0x2]:null,'id':_0x37a244['length']<0x5?_0x37a244[0x2]:_0x37a244[0x3],'authorId':_0x37a244['length']<0x5?_0x37a244[0x3]:_0x37a244[0x4],'markerCount':0x6==_0x37a244['length']?_0x37a244[0x5]:null};}['_breakSuggestionMarker'](_0x256ccf,_0x35f22a,_0x27d3b5){const _0x188c70=_0x256ccf['getFirstRange'](),_0xe05fb3=_0x188c70['start'],_0x398d7b=_0x188c70['end'];this['_setSuggestionRange'](_0x256ccf,this['_model']['createRange'](_0xe05fb3,_0x35f22a));const _0x534a5a=_0x280966(),_0x441929=_0x256ccf['creator']['id'],_0x1ce320=_0x256ccf['type']+(_0x256ccf['subType']?':'+_0x256ccf['subType']:'');this['_setSuggestionData']({'id':_0x534a5a,'type':_0x1ce320,'createdAt':new Date(),'authorId':_0x441929,'originalSuggestionId':_0x256ccf['id'],'attributes':_0x256ccf['attributes'],'data':_0x256ccf['data']});const _0x14684d=this['_getAttributeKey'](_0x256ccf);('formatBlock'==_0x256ccf['type']||_0x14684d&&this['_isBlockAttribute'](_0x14684d))&&(_0x27d3b5=this['_model']['createPositionBefore'](_0x27d3b5['parent'])),this['_addSuggestionMarker'](_0x1ce320,_0x534a5a,_0x441929,this['_model']['createRange'](_0x27d3b5,_0x398d7b));}['_findSuggestions'](_0x4540d7,_0x435e95=null){const _0x56ec42=[],_0x55131c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4540d7)||(_0x4540d7=[_0x4540d7]);for(const _0x258ee6 of this['getSuggestions']()){if(!_0x258ee6['isInContent'])continue;if(_0x435e95&&_0x258ee6['type']!=_0x435e95)continue;let _0x3d0b7e=!0x1;for(const _0x7f0fc of _0x258ee6['getRanges']()){for(const _0x359203 of _0x4540d7){const _0x3367d5=_0x359203['start']['isEqual'](_0x7f0fc['end'])||_0x359203['end']['isEqual'](_0x7f0fc['start']);if(_0x3367d5||_0x359203['getIntersection'](_0x7f0fc)){const _0x5dce39=_0x359203['containsRange'](_0x7f0fc)&&Tt(this['_model']['schema'],_0x7f0fc['start'],_0x359203),_0x10aeed=_0x7f0fc['containsRange'](_0x359203)&&Tt(this['_model']['schema'],_0x359203['start'],_0x7f0fc);_0x56ec42['push']({'suggestion':_0x258ee6,'meta':{'isOwn':_0x55131c==_0x258ee6['author'],'isNextTo':_0x3367d5,'isInsideObject':_0x5dce39,'containsRangeInObject':_0x10aeed}}),_0x3d0b7e=!0x0;break;}}if(_0x3d0b7e)break;}}return _0x56ec42;}['_addSuggestionMarker'](_0x47b640,_0x5b437f,_0x12805e,_0x189ec3,_0x21c343){this['_model']['change'](_0x49e57e=>{let _0x4a6373='suggestion:'+_0x47b640+':'+_0x5b437f+':'+_0x12805e;_0x21c343&&(_0x4a6373=_0x4a6373+':'+_0x21c343),_0x49e57e['addMarker'](_0x4a6373,{'range':_0x189ec3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x49a845){const _0x288fc0=_0x49a845['previous'],_0x9727bd=_0x49a845['next'];_0x49a845['previous']=null,_0x49a845['next']=null,null!=_0x288fc0&&_0x288fc0['next']==_0x49a845&&(_0x288fc0['next']=_0x9727bd),null!=_0x9727bd&&_0x9727bd['previous']==_0x49a845&&(_0x9727bd['previous']=_0x288fc0),'ready'==this['_suggestionState']['get'](_0x49a845)&&(this['_suggestionState']['set'](_0x49a845,'removed'),this['fire']('suggestionUnloaded',_0x49a845,_0x288fc0,_0x9727bd));}['_setSuggestionData'](_0x365e39){const _0xa8bb9d=_0x365e39['id'],_0x4ebae9=this['addSuggestionData'](_0x365e39);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4032e0=this['editor']['plugins']['get']('PendingActions'),_0x2c94bc=_0x4ebae9['hasComments'],_0x3e840b=_0x4ebae9['subType']?_0x4ebae9['type']+':'+_0x4ebae9['subType']:_0x4ebae9['type'],_0x567760=this['editor']['locale'],_0x103dbd=_0x4032e0['add'](o(_0x567760,'PENDING_ACTION_SUGGESTION')),_0x2ac2ec={'id':_0xa8bb9d,'type':_0x3e840b,'hasComments':_0x2c94bc,'data':_0x365e39['data']||null,'originalSuggestionId':_0x365e39['originalSuggestionId']||null,'attributes':_0x4ebae9['attributes']};this['_adapter']['addSuggestion'](_0x2ac2ec)['then'](_0x5a8097=>{_0x4ebae9['_saved']=!0x0,_0x4032e0['remove'](_0x103dbd),_0x5a8097&&_0x5a8097['createdAt']&&(this['_suggestions']['get'](_0xa8bb9d)['createdAt']=_0x5a8097['createdAt']);})['catch'](_0x7d853=>{throw _0x5a2c18('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4ebae9['discard']();}),_0x4ebae9['stopListening'](),this['_suggestions']['delete'](_0x4ebae9['id']),this['_suggestionState']['delete'](_0x4ebae9),_0x7d853;});}return _0x4ebae9;}['_isBlockAttribute'](_0xc205c3){return this['_blockAttributeKeys']['has'](_0xc205c3);}['_updateSuggestionData'](_0x22c542,_0xd79e19){const _0x5dea26=this['editor']['plugins']['get']('PendingActions'),_0x237fde=this['getSuggestion'](_0x22c542);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x237fde['_saved']){const _0x456245=_0x5dea26['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x22c542,_0xd79e19)['then'](()=>{_0x5dea26['remove'](_0x456245);});}else _0x237fde['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x22c542,_0xd79e19);});}}['_getSuggestionData'](_0x29e027){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5c47f2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x29e027);}['_handleNewSuggestionMarker'](_0x595c95){const {id:_0x5af506,type:_0x5070a7,subType:_0x1cfacd,authorId:_0x4b0b6b}=this['_splitMarkerName'](_0x595c95),_0x28b74d=this['_suggestions']['get'](_0x5af506)||this['_createSuggestion'](_0x5070a7,_0x1cfacd,_0x5af506,_0x4b0b6b,{});switch(this['_checkSuggestionCorrectness'](_0x28b74d,_0x5070a7,_0x1cfacd,_0x4b0b6b),this['_suggestionState']['get'](_0x28b74d)){case'notReady':this['_getSuggestionData'](_0x5af506)['then'](_0x351cf5=>{let _0x2dba98=Promise['resolve']();_0x351cf5['hasComments']&&(_0x2dba98=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5af506})),_0x2dba98['then'](()=>{this['addSuggestionData'](_0x351cf5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x28b74d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5af506,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x28b74d,'ready'),this['fire']('suggestionLoaded',_0x28b74d);break;case'ready':this['fire']('suggestionChanged',_0x28b74d);}return _0x28b74d['addMarkerName'](_0x595c95),_0x28b74d;}['_refreshSuggestionsChain'](_0x14d035){const _0x475246=Array['from'](_0x14d035),_0x277a2b=_0x475246['filter'](_0x3d27cb=>'attribute'==_0x3d27cb['type']);this['_refreshAttributeSuggestionsChain'](_0x277a2b);const _0x58c5de=_0x475246['filter'](_0x5947ca=>!_0x5947ca['isMultiRange']&&'attribute'!=_0x5947ca['type']),_0x2ae662=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8abd=>!_0x3d8abd['isMultiRange']&&'attribute'!=_0x3d8abd['type']),_0x1c7dcd=_0x2ae662['filter'](_0xe5e6e1=>!_0x14d035['has'](_0xe5e6e1)),_0x295e83=new Map(_0x2ae662['map'](_0x274f05=>[_0x274f05,this['_suggestionFactory']['getSuggestionCallback'](_0x274f05['type'],_0x274f05['subType'],'chain')])),_0x49330e=new Map(_0x2ae662['map'](_0x1f4105=>[_0x1f4105,_0x1f4105['getFirstRange']()])),_0x2edbfa=new Set(),_0x190a6e=new Set();for(let _0x1f9541=0x0;_0x1f9541<_0x58c5de['length'];_0x1f9541++)_0x26c3d4(_0x58c5de[_0x1f9541],_0x58c5de,_0x1f9541+0x1);for(let _0x1dd2bf=0x0;_0x1dd2bf<_0x58c5de['length'];_0x1dd2bf++)_0x26c3d4(_0x58c5de[_0x1dd2bf],_0x1c7dcd,0x0);const _0x3f6be6=new Set();for(let _0x40988b=0x0;_0x40988b<_0x58c5de['length'];_0x40988b++){const _0x34cade=_0x58c5de[_0x40988b];!_0x190a6e['has'](_0x34cade)&&_0x34cade['previous']&&(_0x3f6be6['add'](_0x34cade['previous']),_0x34cade['previous']['next']===_0x34cade&&(_0x34cade['previous']['next']=null),_0x34cade['previous']=null),!_0x2edbfa['has'](_0x34cade)&&_0x34cade['next']&&(_0x3f6be6['add'](_0x34cade['next']),_0x34cade['next']['previous']===_0x34cade&&(_0x34cade['next']['previous']=null),_0x34cade['next']=null);}function _0x26c3d4(_0x59c786,_0x1cd3e7,_0x465ee1){for(let _0x5a1f08=_0x465ee1;_0x5a1f08<_0x1cd3e7['length'];_0x5a1f08++){const _0x1a4a22=_0x36294d(_0x59c786,_0x1cd3e7[_0x5a1f08]);_0x1a4a22&&(_0x1a4a22[0x0]['next']=_0x1a4a22[0x1],_0x1a4a22[0x1]['previous']=_0x1a4a22[0x0],_0x2edbfa['add'](_0x1a4a22[0x0]),_0x190a6e['add'](_0x1a4a22[0x1]));}}function _0x36294d(_0x5c065b,_0x1f5585){if(_0x5c065b['author']['id']!==_0x1f5585['author']['id'])return null;const _0x2991eb=_0x295e83['get'](_0x5c065b)(_0x5c065b,_0x1f5585,_0x49330e['get'](_0x5c065b),_0x49330e['get'](_0x1f5585));if(!_0x2991eb)return null;return _0x295e83['get'](_0x1f5585)(_0x5c065b,_0x1f5585,_0x49330e['get'](_0x5c065b),_0x49330e['get'](_0x1f5585))?_0x2991eb[0x1]['commentThread']&&_0x2991eb[0x1]['commentThread']['length']?null:_0x2991eb:null;}_0x3f6be6['size']&&this['_refreshSuggestionsChain'](_0x3f6be6);}['_refreshAttributeSuggestionsChain'](_0xcc305a){if(0x0==_0xcc305a['length'])return;const _0x199058=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1be3ca=>'attribute'==_0x1be3ca['type']&&_0x1be3ca['_isDataLoaded']),_0x318ef4=[],_0x2f0a05=new Map();for(const _0x55acb7 of _0x199058){const _0x182c5a=_0x16f00d(_0x55acb7['attributes']);_0x2f0a05['has'](_0x182c5a)||(_0x2f0a05['set'](_0x182c5a,_0x318ef4['length']),_0x318ef4['push']([]));const _0x42fb53=_0x2f0a05['get'](_0x182c5a);_0x318ef4[_0x42fb53]['push'](_0x55acb7);}!(function(){_0x318ef4['sort']((_0x450ce1,_0x56e519)=>{const _0x3d2dbc=_0x450ce1[0x0]['createdAt'],_0x5cfca8=_0x56e519[0x0]['createdAt'];return _0x3d2dbc==_0x5cfca8?_0x450ce1[0x0]['attributes']['groupId']<_0x56e519[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d2dbc<_0x5cfca8?-0x1:0x1;});for(const _0x2ee4e6 of _0x318ef4)_0x2ee4e6['sort']((_0x201bf8,_0x437aae)=>_0x201bf8['id']<_0x437aae['id']?-0x1:0x1);}());for(let _0x249308=0x0;_0x249308<_0x318ef4['length'];_0x249308++){if(0x0==_0x318ef4[_0x249308]['length'])continue;const _0x5c56ab=[];for(let _0x3ac3d9=_0x249308+0x1;_0x3ac3d9<_0x318ef4['length'];_0x3ac3d9++)0x0!=_0x318ef4[_0x3ac3d9]['length']&&_0x104092(_0x318ef4[_0x249308],_0x318ef4[_0x3ac3d9])&&_0x5c56ab['push'](_0x3ac3d9);for(const _0x5206ee of _0x5c56ab)_0x318ef4[_0x249308]=_0x318ef4[_0x249308]['concat'](_0x318ef4[_0x5206ee]),_0x318ef4[_0x5206ee]=[];}for(const _0x3c92fe of _0x318ef4)for(let _0x21463d=0x0;_0x21463d<_0x3c92fe['length'];_0x21463d++)_0x3c92fe[_0x21463d]['next']=_0x3c92fe[_0x21463d+0x1]||null;for(const _0x22ae59 of _0x318ef4)for(let _0x2dd03a=0x0;_0x2dd03a<_0x22ae59['length'];_0x2dd03a++)_0x22ae59[_0x2dd03a]['previous']=_0x22ae59[_0x2dd03a-0x1]||null;function _0x104092(_0x34036d,_0x1aacb3){if(_0x34036d[0x0]['attributes']['groupId']!==_0x1aacb3[0x0]['attributes']['groupId']&&_0x34036d[0x0]['author']!==_0x1aacb3[0x0]['author'])return!0x1;if(!function(_0x198ed8,_0x4578b4){if(!_0x198ed8['hasComments']&&!_0x4578b4['hasComments'])return!0x0;if(_0x198ed8['hasComments']&&_0x4578b4['hasComments'])return!0x1;if(_0x198ed8['hasComments']&&_0x4578b4['createdAt']<_0x198ed8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4578b4['hasComments']&&_0x198ed8['createdAt']<_0x4578b4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x34036d[0x0],_0x1aacb3[0x0]))return!0x1;const _0x3669fb=xt(_0x34036d[0x0]['attributes'],'groupId'),_0x39a006=xt(_0x1aacb3[0x0]['attributes'],'groupId');if(!_0x5678e2(_0x3669fb,_0x39a006))return!0x1;return!!_0x34036d['every'](_0x302cc7=>_0x1aacb3['some'](_0x16d2d2=>_0x302cc7['getFirstRange']()['isEqual'](_0x16d2d2['getFirstRange']())))&&_0x1aacb3['every'](_0x58e55e=>_0x34036d['some'](_0x305808=>_0x58e55e['getFirstRange']()['isEqual'](_0x305808['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x33c43f){const _0x2289af=Array['from'](_0x33c43f),_0x9b62d1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4177a0=_0x9b62d1['filter'](_0x197a4f=>!_0x33c43f['has'](_0x197a4f)),_0x4017a9=new Map(_0x2289af['map'](_0x9739ed=>[_0x9739ed,this['_suggestionFactory']['getSuggestionCallback'](_0x9739ed['type'],_0x9739ed['subType'],'join')])),_0x19fe21=new Map(_0x9b62d1['map'](_0x39153e=>[_0x39153e,_0x39153e['getRanges']()]));for(let _0x2e0cfa=0x0;_0x2e0cfa<_0x2289af['length'];_0x2e0cfa++){if(_0x517062(this,_0x2289af[_0x2e0cfa],_0x2289af,_0x2e0cfa+0x1))return!0x0;}for(let _0x19bcf7=0x0;_0x19bcf7<_0x2289af['length'];_0x19bcf7++){if(_0x517062(this,_0x2289af[_0x19bcf7],_0x4177a0,0x0))return!0x0;}return!0x1;function _0x517062(_0x3f6aab,_0x11ae42,_0x2b5615,_0x261096){for(let _0x376582=_0x261096;_0x376582<_0x2b5615['length'];_0x376582++){const _0x567033=_0x2b5615[_0x376582];if(_0x567033['type']!==_0x11ae42['type']||_0x567033['author']['id']!==_0x11ae42['author']['id']||_0x567033['subType']!==_0x11ae42['subType'])continue;if(!Lt(_0x11ae42,_0x567033,['groupId']))continue;if('attribute'==_0x11ae42['type']&&_0x11ae42['data']['oldValue']!=_0x567033['data']['oldValue'])continue;if('attribute'==_0x11ae42['type']&&_0x3f6aab['_isBlockAttribute'](_0x11ae42['data']['key']))continue;if('formatBlock'==_0x11ae42['type']){const _0x575571=_0x3f6aab['editor']['model'],_0x569514=_0x11ae42['getContainedElement']();if(_0x569514&&(_0x575571['schema']['isObject'](_0x569514)||_0x575571['schema']['isLimit'](_0x569514)))continue;}const _0x221d51=_0x4017a9['get'](_0x11ae42),_0x1fcee8=_0x19fe21['get'](_0x11ae42),_0x274265=_0x19fe21['get'](_0x567033),_0x53b0b9=_0x11ae42['commentThread']&&_0x11ae42['commentThread']['length'],_0x1f07de=_0x567033['commentThread']&&_0x567033['commentThread']['length'];if(!_0x53b0b9&&_0x221d51(_0x274265,_0x1fcee8))return _0x3f6aab['_joinSuggestions'](_0x567033,_0x11ae42),_0x19fe21['delete'](_0x11ae42),!0x0;if(!_0x1f07de&&_0x221d51(_0x1fcee8,_0x274265))return _0x3f6aab['_joinSuggestions'](_0x11ae42,_0x567033),_0x19fe21['delete'](_0x567033),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2702db,_0x3065a9){if(_0x2702db['isMultiRange']){for(const _0x37dd40 of _0x3065a9['getRanges']())_0x2702db['addRange'](_0x37dd40);}else{const _0xbfdf17=_0x3065a9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2702db,this['_model']['createRange'](_0x2702db['getFirstRange']()['start'],_0xbfdf17));}_0x3065a9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x583b3e,_0x1e3652){const _0x541f92=_0x583b3e['startsWith']('format')||_0x583b3e['startsWith']('attribute')?'FORMATTING':_0x583b3e['toUpperCase']();return o(this['editor']['locale'],_0x1e3652+'_'+_0x541f92+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x29e02c=this['editor'];if(!_0x29e02c['ui'])return;const {ariaLiveAnnouncer:_0xa0cca7}=_0x29e02c['ui'];_0x270514(this['_model'],({left:_0x473c98,entered:_0xa8f0e7})=>{for(const _0x91b12c of _0x473c98){const {group:_0xedbe74,type:_0x175ac3}=this['_splitMarkerName'](_0x91b12c['name']);if('suggestion'===_0xedbe74){_0xa0cca7['announce'](this['_getMarkerAnnouncementText'](_0x175ac3,'LEAVE'));break;}}for(const _0x1b8dce of _0xa8f0e7){const {group:_0x5f17de,type:_0x59f79c}=this['_splitMarkerName'](_0x1b8dce['name']);if('suggestion'===_0x5f17de){_0xa0cca7['announce'](this['_getMarkerAnnouncementText'](_0x59f79c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x52bfad){if(this['_recordAttributeSuggestions'])return!0x1;const _0x57d72a=this['editor'],_0x585d48=_0x57d72a['model']['document']['differ']['getChanges']();if(0x0==_0x585d48['length'])return!0x1;const _0x236ec3=[],_0x2a8a0f=_0x585d48['filter'](_0xeed0b7=>'attribute'==_0xeed0b7['type']),_0x2765bb=_0x585d48['filter'](_0x1fbdbb=>'insert'==_0x1fbdbb['type']&&'$text'!=_0x1fbdbb['name']),_0x2f48e9=_0x585d48['filter'](_0x57ddba=>'remove'==_0x57ddba['type']&&'$text'!=_0x57ddba['name']);for(const _0x8710f7 of _0x2a8a0f)_0x236ec3['push']({'key':_0x8710f7['attributeKey'],'newValue':_0x8710f7['attributeNewValue'],'oldValue':_0x8710f7['attributeOldValue'],'range':Gt(_0x8710f7['range'],_0x57d72a['model'])});for(const _0x3a275d of _0x2765bb){const _0xf36601=_0x2f48e9['find'](_0x7337fe=>_0x7337fe['position']['isEqual'](_0x3a275d['position']));_0xf36601&&_0x236ec3['push']({'key':m,'newValue':_0x3a275d['name'],'oldValue':_0xf36601['name'],'range':_0x57d72a['model']['createRangeOn'](_0x3a275d['position']['nodeAfter'])});}return 0x0!=_0x236ec3['length']&&this['_reduceExistingSuggestions'](_0x52bfad,_0x236ec3);}['_processAttributeSuggestions'](_0x360dd0){let _0x3b1a9a=!0x1;const _0x3c6d41=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a9d47=>_0x2a9d47['data']['newRange']&&_0x2a9d47['name']['startsWith']('suggestion:attribute:'));for(const _0xf1fab7 of _0x3c6d41){const {subType:_0x18fd0b,id:_0x2b6338}=this['_splitMarkerName'](_0xf1fab7['name']),_0x4ce105=_0x18fd0b['split']('|')[0x0];for(const _0x2680c7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2680c7['id']!=_0x2b6338&&'attribute'==_0x2680c7['type']&&_0x2680c7['data']&&_0x2680c7['data']['key']==_0x4ce105&&_0x2680c7['getFirstRange']()['isIntersecting'](_0xf1fab7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2680c7,_0xf1fab7['data']['newRange'],_0x360dd0),_0x3b1a9a=!0x0);}return _0x3b1a9a;}['_recordAttributeChanges'](_0x1218d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1218d();}['_isRegisteredAttribute'](_0x4d5fa8){const _0x38484f=this['_isBlockAttribute'](_0x4d5fa8),_0x5dcc72=this['_inlineAttributeKeys']['has'](_0x4d5fa8);return _0x38484f||_0x5dcc72;}['_reduceExistingSuggestions'](_0x1ba93c,_0x5ded51){if(0x0==_0x5ded51['length'])return!0x1;let _0x546d9d=!0x1;for(const _0x56dab3 of _0x5ded51){const _0x1c81ca=this['_findSuggestions'](_0x56dab3['range'],'attribute')['filter'](_0x51b58a=>!_0x51b58a['meta']['isNextTo'])['map'](_0x3c561b=>_0x3c561b['suggestion']),_0x4a15d5=_0x16f00d({'newValue':_0x56dab3['newValue']});_0x1c81ca['filter'](_0x1b0d1c=>{const [_0x98e794,_0x4e237f]=_0x1b0d1c['subType']['split']('|');return _0x98e794==_0x56dab3['key']&&_0x4e237f!=_0x4a15d5;})['forEach'](_0x467ec7=>{this['_reduceSuggestionAttributeRange'](_0x467ec7,_0x56dab3['range'],_0x1ba93c),_0x546d9d=!0x0;});}return _0x546d9d;}['_reduceSuggestionAttributeRange'](_0x51cab1,_0x2bee6c,_0x3196c5){const _0x5cce6d=_0x51cab1['getFirstRange']()['getDifference'](_0x2bee6c);0x0!==_0x5cce6d['length']?0x1!==_0x5cce6d['length']?this['_breakSuggestionMarker'](_0x51cab1,_0x2bee6c['start'],_0x2bee6c['end']):this['_setSuggestionRange'](_0x51cab1,_0x5cce6d[0x0]):_0x3196c5['removeMarker'](_0x51cab1['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x137a64){this['_editor']=_0x137a64,this['_model']=_0x137a64['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x411ad4,_0x1a975c,_0x1a4679,_0x189551,_0x45d2ef,_0x33075d){return new u(this['_model'],{'type':_0x411ad4,'subType':_0x1a975c,'id':_0x1a4679,'author':_0x189551,'creator':_0x189551,'attributes':_0x45d2ef,'onAttributesChange':_0x33075d,'onAccept':(..._0x3f3b43)=>this['getSuggestionCallback'](_0x411ad4,_0x1a975c,'accept')(..._0x3f3b43),'onDiscard':(..._0x13e333)=>this['getSuggestionCallback'](_0x411ad4,_0x1a975c,'discard')(..._0x13e333)});}['registerCustomCallback'](_0x3da41a,_0x4440d7,_0x21326b,_0x126ed7){const _0x6dc190=_0x3da41a+':'+_0x4440d7+':'+_0x21326b;this['_customCallbacks']['set'](_0x6dc190,_0x126ed7);}['getSuggestionCallback'](_0x1c2e3a,_0x5bbaa7,_0xfa41bf){const _0x46389c=_0x1c2e3a+':'+_0x5bbaa7+':'+_0xfa41bf;return this['_customCallbacks']['get'](_0x46389c)||this['_defaultCallbacks']['get'](_0x1c2e3a+':'+_0xfa41bf);}['_registerDefaultCallbacks'](){const _0x52f10e=()=>!0x1,_0x1c532d=_0x28314d=>{_0x28314d['sort']((_0x5c562c,_0x20db25)=>_0x5c562c['start']['isBefore'](_0x20db25['start'])?0x1:-0x1),this['_model']['change'](_0x32fb7d=>{for(const _0x178e50 of _0x28314d){let _0x3f0e8f;_0x3f0e8f=_0x178e50['end']['isAtEnd']&&_0x178e50['end']['parent']==_0x178e50['start']['nodeAfter']?_0x32fb7d['createSelection'](_0x178e50['start']['nodeAfter'],'on'):_0x32fb7d['createSelection'](_0x178e50),this['_model']['deleteContent'](_0x3f0e8f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24672c=(_0x2eb2a8,_0x36001b)=>{_0x36001b&&this['_model']['change'](_0x5a10ef=>{const {commandName:_0x5c9e38,commandParams:_0x55b63c=[]}=_0x36001b,_0x34c53b=_0x2eb2a8['map'](_0xc1d163=>(Et(_0xc1d163)&&(_0xc1d163=this['_model']['createRange'](_0xc1d163['end'])),_0xc1d163))['filter'](_0x105d0e=>'$graveyard'!==_0x105d0e['root']['rootName']);if(_0x34c53b['length']<0x1)return;const _0x2a9e46=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b9a47=>_0x30fc72['fromRange'](_0x3b9a47));_0x5a10ef['setSelection'](_0x34c53b);for(const _0x145e46 of this['_editor']['commands']['commands']())_0x145e46['refresh']();_0x55b63c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c9e38,..._0x55b63c);const _0x23efe6=_0x2a9e46['filter'](_0x48a169=>'$graveyard'!=_0x48a169['root']['rootName']);_0x23efe6['length']>0x0&&_0x5a10ef['setSelection'](_0x23efe6);for(const _0x41ee5c of _0x2a9e46)_0x41ee5c['detach']();});},_0x10f93b=(_0x350e9d,_0x55a958)=>0x1==_0x350e9d['length']&&0x1==_0x55a958['length']&&_0x350e9d[0x0]['end']['isEqual'](_0x55a958[0x0]['start']),_0x195500=(_0x520d8c,_0x2c9814,_0x2e46d2,_0x25ae4f)=>Pt(_0x520d8c,_0x2c9814,_0x2e46d2,_0x25ae4f,this['_model'])?[_0x520d8c,_0x2c9814]:Pt(_0x2c9814,_0x520d8c,_0x25ae4f,_0x2e46d2,this['_model'])?[_0x2c9814,_0x520d8c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52f10e),this['_defaultCallbacks']['set']('insertion:discard',_0x1c532d),this['_defaultCallbacks']['set']('insertion:join',_0x10f93b),this['_defaultCallbacks']['set']('insertion:chain',_0x195500),this['_defaultCallbacks']['set']('deletion:accept',_0x1c532d),this['_defaultCallbacks']['set']('deletion:discard',_0x52f10e),this['_defaultCallbacks']['set']('deletion:join',_0x10f93b),this['_defaultCallbacks']['set']('deletion:chain',_0x195500),this['_defaultCallbacks']['set']('formatInline:accept',_0x24672c),this['_defaultCallbacks']['set']('formatInline:discard',_0x52f10e),this['_defaultCallbacks']['set']('formatInline:join',_0x10f93b),this['_defaultCallbacks']['set']('formatInline:chain',_0x52f10e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x24672c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52f10e),this['_defaultCallbacks']['set']('formatBlock:join',_0x10f93b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52f10e),this['_defaultCallbacks']['set']('attribute:accept',_0x52f10e),this['_defaultCallbacks']['set']('attribute:discard',(_0x27c413,_0x5c5038)=>{if(!_0x5c5038)return;const _0x22d828=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x31241f=>{if(_0x5c5038['key']==m)for(const _0x170f2a of _0x27c413){const _0x22c18c=_0x170f2a['start']['nodeAfter'],_0x246521=_0x5c5038['oldValue'];_0x31241f['rename'](_0x22c18c,_0x246521);}else{if(_0x22d828['_isBlockAttribute'](_0x5c5038['key'])){for(const _0x54b4f2 of _0x27c413)void 0x0!==_0x5c5038['oldValue']?_0x31241f['setAttribute'](_0x5c5038['key'],_0x5c5038['oldValue'],_0x54b4f2['start']['nodeAfter']):_0x31241f['removeAttribute'](_0x5c5038['key'],_0x54b4f2['start']['nodeAfter']);}else{for(const _0x59b615 of _0x27c413)_0x5c5038['oldValue']?_0x31241f['setAttribute'](_0x5c5038['key'],_0x5c5038['oldValue'],_0x59b615):_0x31241f['removeAttribute'](_0x5c5038['key'],_0x59b615);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x10f93b);}}function Tt(_0xc6e178,_0x400ae9,_0x390f93){for(const _0x3380b4 of _0x400ae9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3380b4['root']==_0x3380b4)return!0x1;if(!_0x390f93['containsItem'](_0x3380b4))return!0x1;if(_0xc6e178['isObject'](_0x3380b4)||_0xc6e178['isLimit'](_0x3380b4))return!0x0;}return!0x1;}function Et(_0x5364fe){return _0x5364fe['end']['parent']==_0x5364fe['start']['nodeAfter']&&_0x5364fe['end']['isAtStart'];}function Vt(_0x4629dd,_0x507b69,_0x536e17,_0x2e6fcc){const _0x43163d=_0x32c81d=>!_0x32c81d['item']['is']('$textProxy')&&!_0x2e6fcc['isObject'](_0x32c81d['item']),_0x1730df=_0x4629dd['start']['getLastMatchingPosition'](_0x43163d),_0xdd493e=_0x4629dd['end']['getLastMatchingPosition'](_0x43163d,{'direction':'backward'});return(!_0x4629dd['start']['isEqual'](_0x1730df)||!_0x4629dd['end']['isEqual'](_0xdd493e))&&(_0x1730df['isBefore'](_0xdd493e)?_0x536e17['updateMarker'](_0x507b69,{'range':_0x536e17['createRange'](_0x1730df,_0xdd493e)}):_0x536e17['removeMarker'](_0x507b69),!0x0);}function Ut(_0x14178b){return _0x16f00d(_0x14178b);}function Ot(_0x250c45){const _0x5e8f5b=_0x250c45['start']['nodeAfter'];return _0x5e8f5b&&_0x5e8f5b['is']('element');}function Gt(_0x548250,_0x38144e){return null==_0x548250['end']['nodeBefore']&&_0x548250['end']['parent']==_0x548250['start']['nodeAfter']?Ft(_0x548250['start']['nodeAfter'],_0x38144e):_0x548250;}function Ft(_0x1746af,_0x25356d){const _0x84a24a=_0x25356d['schema']['isObject'](_0x1746af)||_0x25356d['schema']['isSelectable'](_0x1746af);return _0x25356d['createRange'](_0x25356d['createPositionAt'](_0x1746af,'before'),_0x84a24a?_0x25356d['createPositionAfter'](_0x1746af):_0x25356d['createPositionAt'](_0x1746af,'end'));}function Pt(_0x1e58b2,_0x48dd6f,_0x3c31f8,_0x443621,_0x3e451a){if(!Lt(_0x1e58b2,_0x48dd6f))return!0x1;if(_0x3c31f8['end']['isEqual'](_0x443621['start']))return!0x0;if(_0x1e58b2['type']!=_0x48dd6f['type'])return!0x1;if(!_0x3c31f8['end']['isTouching'](_0x443621['start']))return!0x1;const _0x29a937=_0x3e451a['createRange'](_0x3c31f8['end'],_0x443621['start'])['getWalker']();for(const _0x40c0cc of _0x29a937)if(['elementStart','elementEnd']['includes'](_0x40c0cc['type'])&&_0x3e451a['schema']['isLimit'](_0x40c0cc['item']))return!0x1;return!0x0;}function Lt(_0x5927a1,_0x9ae859,_0x1c32bb=[]){return!(!_0x5927a1['_isDataLoaded']||!_0x9ae859['_isDataLoaded'])&&_0x5678e2(xt(_0x5927a1['attributes'],_0x1c32bb),xt(_0x9ae859['attributes'],_0x1c32bb));}function Ht(_0x2d3818,_0x309382){const _0x1b7172=qt(_0x2d3818['attributes']),_0x2fdb06=qt(_0x309382);if(!_0x2d3818['_isDataLoaded'])return!0x1;for(const _0x310e5f of Object['keys'](_0x2fdb06))if(!_0x5678e2(_0x1b7172[_0x310e5f],_0x2fdb06[_0x310e5f]))return!0x1;return!0x0;}function qt(_0x2a5b7e){const _0x28843b=Object['assign']({},_0x2a5b7e);return delete _0x28843b['skipNestingCheck'],delete _0x28843b['tablePasteChainId'],_0x28843b;}class ne extends/* #__PURE__ -- @preserve */
25
+ _0x5f5866(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x57c64d,_0x4a1e83,_0x1c4bce,_0x26b37c){super(),this['model']=_0x4a1e83,this['view']=_0x1c4bce,this['commentThreadController']=_0x26b37c,this['_editor']=_0x57c64d,this['_acceptCommand']=_0x57c64d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x57c64d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x34236c,_0x32848f)=>_0x34236c||_0x32848f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x52c92e=>_0x52c92e&&this['_editor']['model']['canEditAt'](_0x4a1e83['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x19b769=>_0x19b769&&this['_editor']['model']['canEditAt'](_0x4a1e83['getRanges']())),this['_pendingAction']=null,_0x1c4bce['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1c4bce,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1c4bce,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1c4bce,'change:isDirty',()=>{_0x1c4bce['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 _0x14017f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x14017f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x597b77{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x8bdbb3,_0x3717b4,_0x426002,_0x169f6a){super(_0x8bdbb3),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3717b4['authoredAt']),this['bind']('authoredAt')['to'](_0x3717b4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3717b4,this['_localUser']=_0x426002,this['_config']=_0x169f6a,_0x169f6a['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:_0x3e7597}=this['_config'];this['commentsListView']=new _0x3e7597(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',_0x4ffc58=>_0x4ffc58+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f61e7,_0x8d189)=>_0x4f61e7||!!_0x8d189);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x513a07}=this['_config'],_0x54285c=new _0x513a07(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x21bfb0=_0x54285c['commentInputView'];return _0x54285c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x21bfb0,'value',(_0x6e23da,_0x1c9562,_0x458259)=>!!_0x458259||_0x6e23da&&!_0x1c9562),_0x21bfb0['on']('submit',(_0x259daa,_0x271ed1)=>{this['fire']('addComment',_0x271ed1),_0x21bfb0['editor']['setData']('');}),_0x21bfb0['on']('cancel',()=>this['focus']()),_0x21bfb0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x54285c;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x21cf29,_0x3edf88,_0xc73d28,_0x5c58cc){super(_0x21cf29,_0x3edf88,_0xc73d28,_0x5c58cc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2aaf59=>_0x2aaf59&&_0x2aaf59[0x0]?_0x2aaf59[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x17e42c,_0x3aef02)=>{let _0x23c89b='';for(const _0x47fbf1 of _0x17e42c)_0x23c89b+='<p>'+ds(_0x47fbf1['content'],_0x47fbf1['color'])+'</p>';return _0x3aef02?_0x23c89b:_0x153237(_0x23c89b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x21cf29,'Accept\x20suggestion'),_0x5369ba['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x21cf29,'Discard\x20suggestion'),_0x5369ba['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xebcb09(_0x21cf29,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1993cc=this['bindTemplate'],_0x958516=[{'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':_0x1993cc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1993cc['to']('authoredAt',_0x56f933=>this['_config']['formatDateTime'](_0x56f933))}]}]},{'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']&&_0x958516['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4809e1={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1993cc['if']('isActive','ck-suggestion-wrapper--active'),_0x1993cc['to']('type',_0x2aed64=>'ck-suggestion-'+_0x2aed64),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':_0x958516}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4809e1['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)),_0x4809e1;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x37b9f7,_0x76074c,_0x481b9)=>{this['_descriptionElement']['innerHTML']=_0x481b9;});}['_createButton'](_0x2a2b99,_0x3fafa4,_0x505cfb,_0x3d9f78,_0x4e0c01){const _0x407eb1=new _0x2909a3(this['locale']);return _0x407eb1['set']({'label':_0x2a2b99,'icon':_0x3fafa4,'tooltip':!0x0,'tooltipPosition':_0x4e0c01}),_0x407eb1['extendTemplate']({'attributes':{'class':_0x505cfb}}),_0x407eb1['on']('execute',()=>{this['fire'](_0x3d9f78,this['_model']['id']);}),_0x407eb1;}['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(_0x1fff86,_0x1dec1b){let _0x55bdb2='';return _0x55bdb2+=_0x1fff86['split']('*')['map']((_0x1f7b17,_0x1e55fc)=>_0x1e55fc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x1f7b17)+'</span>':us(_0x1f7b17))['join'](''),_0x1dec1b&&(_0x55bdb2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1dec1b['value']+'\x22\x20title=\x22'+_0x1dec1b['title']+'\x22></span>'),_0x55bdb2;}function us(_0x58b9ed){const _0x17ff94=document['createElement']('span');return _0x17ff94['innerText']=_0x58b9ed,_0x17ff94['innerHTML'];}var ae='<!--\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 _0x1ec07f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x485a72,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1a4c2d){super(_0x1a4c2d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x424621=this['editor']['config'];_0x424621['define']('trackChanges.SuggestionThreadView',ie),_0x424621['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x424621['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x44c7be,_0x3edb4d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d78aa,_0x3cf6d1]of this['_handleControllerBuffer']){const _0x508983=this['_suggestionToController']['has'](_0x1d78aa);_0x508983||_0x3cf6d1?_0x508983&&_0x3cf6d1&&this['_destroyController'](_0x1d78aa):this['_initializeController'](_0x1d78aa);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x44c7be,_0x3edb4d);}['init'](){const _0x2a6f88=this['editor'],_0x8da8ff=_0x2a6f88['plugins']['get']('TrackChangesEditing'),_0x59aba2=_0x2a6f88['plugins']['get']('Annotations'),_0x23885a=_0x2a6f88['plugins']['get']('EditorAnnotations'),_0x500d8f=_0x2a6f88['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x23885a['addSourceCollector'](()=>{const _0x4c0e1f=[];for(const [_0x2a2f6b,_0x5b7211]of Array['from'](this['_suggestionToController'])){const _0x489a36=_0x2a2f6b['getAllAdjacentSuggestions'](),_0x2439c4=[];for(const _0x3bbfed of _0x489a36){if(!_0x3bbfed['isInContent'])continue;if(_0x3bbfed['isMultiRange']){_0x2439c4['push'](..._0x3bbfed['getRanges']());continue;}const _0x2a6ba7=_0x3bbfed['getFirstRange']();if(_0x2439c4['length']>0x0){const _0x5c310d=_0x2439c4[0x0]['getJoined'](_0x2a6ba7);if(_0x5c310d){_0x2439c4[0x0]=_0x5c310d;continue;}}_0x2439c4['push'](_0x2a6ba7);}_0x4c0e1f['push']([_0x5b7211['view'],_0x2439c4]);}return _0x4c0e1f;}),this['listenTo'](_0x8da8ff,'suggestionLoaded',(_0x5cfe92,_0x1447ad)=>{this['listenTo'](_0x1447ad,'change:previous',(_0x4af126,_0xd95b67,_0x4d07d7,_0x77a663)=>{_0x1447ad['isInContent']&&(null==_0x4d07d7?(this['_updateController'](_0x77a663['head']),this['_handleSuggestionControllerDelayed'](_0x1447ad,!0x1)):(this['_updateController'](_0x4d07d7['head']),null==_0x77a663&&this['_handleSuggestionControllerDelayed'](_0x1447ad,!0x0)));}),null!==_0x1447ad['previous']?this['_updateController'](_0x1447ad['head']):this['_handleSuggestionControllerDelayed'](_0x1447ad,!0x1);}),this['listenTo'](_0x8da8ff,'suggestionUnloaded',(_0x283248,_0x1b3cb0,_0x5d2479)=>{this['stopListening'](_0x1b3cb0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1b3cb0),this['_suggestionToController']['has'](_0x1b3cb0)&&this['_destroyController'](_0x1b3cb0),_0x5d2479&&this['_updateController'](_0x5d2479['head']);}),this['listenTo'](_0x8da8ff,'suggestionChanged',(_0x1bf185,_0x3d0c5c)=>{this['_updateController'](_0x3d0c5c);}),this['listenTo'](_0x59aba2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x500d8f,'addComment',(_0x41c312,{threadId:_0x2313db,isFromAdapter:_0x31dbf2})=>{if(_0x31dbf2||!_0x8da8ff['hasSuggestion'](_0x2313db))return;const _0x42e936=_0x8da8ff['getSuggestion'](_0x2313db);this['_suggestionToController']['get'](_0x42e936)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x226519=this['editor']['plugins']['get']('Annotations'),_0x327e50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x236fe8=Array['from'](_0x226519['activeAnnotations'],_0x4ffad4=>_0x4ffad4['innerView'])['filter'](_0x4b836e=>this['_viewToController']['has'](_0x4b836e)),_0x55e817=[];for(const _0x5583f2 of _0x236fe8){const _0xa72239=this['_viewToController']['get'](_0x5583f2)['model']['getAllAdjacentSuggestions']();_0x55e817['push'](..._0xa72239['reduce']((_0x37d293,_0x2a91da)=>[..._0x37d293,..._0x2a91da['getMarkerNames']()],[]));}_0x327e50['activeMarkers']=_0x55e817;}['_addUIComponentsToFactory'](){const _0x5e26bc=this['editor'],_0x5e8d5c=_0x5e26bc['locale'],_0x571dfa=o(_0x5e8d5c,'Track\x20changes'),_0x4ebd56=new Wt([{'type':'switchbutton','model':new _0x98a43d({'withText':!0x0,'isToggleable':!0x0,'label':_0x571dfa,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x98a43d({'withText':!0x0,'label':o(_0x5e8d5c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x98a43d({'withText':!0x0,'label':o(_0x5e8d5c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x98a43d({'withText':!0x0,'label':o(_0x5e8d5c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x98a43d({'withText':!0x0,'label':o(_0x5e8d5c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1fa0b0 of _0x4ebd56)if(re(_0x1fa0b0)){const _0x539f0c=_0x5e26bc['commands']['get'](_0x1fa0b0['model']['commandName']);_0x1fa0b0['model']['bind']('isOn','isEnabled')['to'](_0x539f0c,'value','isEnabled');}_0x5e26bc['ui']['componentFactory']['add']('trackChanges',_0x2f2e9e=>this['_createToolbarButton'](_0x2f2e9e,_0x4ebd56,_0x571dfa)),_0x5e26bc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4adb00=>this['_createMenuBarMenu'](_0x4adb00,_0x4ebd56,_0x571dfa));}['_createToolbarButton'](_0x5e4b90,_0x23358b,_0x48dd2d){const _0x179bf4=Jt(_0x5e4b90,te),_0x365615=this['editor']['commands']['get']('trackChanges');_0x179bf4['buttonView']['set']({'tooltip':_0x48dd2d,'label':_0x48dd2d,'icon':ae}),_0x179bf4['buttonView']['bind']('isOn')['to'](_0x365615,'value'),_0x179bf4['buttonView']['on']('execute',()=>{_0x365615['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x179bf4,_0x23358b,{'role':'menu'});const _0x5d474a=[];for(const _0x3431b8 of _0x23358b)re(_0x3431b8)&&_0x5d474a['push'](this['editor']['commands']['get'](_0x3431b8['model']['commandName']));const _0x2469dc=_0x179bf4['buttonView'];return _0x2469dc['actionView']['unbind']('isEnabled'),_0x2469dc['arrowView']['unbind']('isEnabled'),_0x2469dc['actionView']['bind']('isEnabled')['to'](_0x365615,'isEnabled'),_0x2469dc['arrowView']['bind']('isEnabled')['toMany'](_0x5d474a,'isEnabled',(..._0xacddc7)=>_0xacddc7['some'](_0x10cdd9=>_0x10cdd9)),_0x179bf4['on']('execute',_0x25fe52=>{this['editor']['execute'](_0x25fe52['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x179bf4;}['_createMenuBarMenu'](_0x572a46,_0x25d512,_0x528d96){const _0x5900df=new Qt(_0x572a46),_0x1a8807=this['editor']['commands']['get']('trackChanges');_0x5900df['buttonView']['set']({'label':_0x528d96,'icon':ae});const _0x4dce27=new Xt(_0x572a46);for(const _0x115df3 of _0x25d512){if('separator'==_0x115df3['type']){_0x4dce27['items']['add'](new Kt(_0x572a46));continue;}const _0x276f54=new Yt(_0x572a46,_0x5900df),_0x2a9019=new Zt(_0x572a46),_0x5ca261=_0x115df3['model'];_0x2a9019['bind'](...Object['keys'](_0x5ca261))['to'](_0x5ca261),_0x2a9019['delegate']('execute')['to'](_0x5900df),_0x2a9019['on']('execute',()=>{this['editor']['execute'](_0x5ca261['commandName']),this['editor']['editing']['view']['focus']();}),_0x276f54['children']['add'](_0x2a9019),_0x4dce27['items']['add'](_0x276f54);}return _0x5900df['bind']('isEnabled')['to'](_0x1a8807,'isEnabled'),_0x5900df['panelView']['children']['add'](_0x4dce27),_0x5900df;}['_initializeController'](_0x3a57a0){const _0x2c734f=this['editor'],_0x56e861=_0x2c734f['config'],_0x29b5fc=_0x2c734f['plugins']['get']('Annotations'),_0x43db83=_0x2c734f['plugins']['get']('CommentsRepository'),_0x481152=_0x2c734f['plugins']['get']('EditorAnnotations'),_0x2992c0=_0x2c734f['plugins']['get'](_0x485a72)['me'],_0x48be98=_0x56e861['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x485063,CommentThreadInputView:_0x43b129}=_0x2c734f['plugins']['get']('CommentsUI');let _0x45f035,_0x2f5722;this['_annotationViews']['has'](_0x3a57a0['id'])?(_0x2f5722=this['_annotationViews']['get'](_0x3a57a0['id']),_0x45f035=_0x2f5722['mainView']):(_0x45f035=new _0x48be98(_0x2c734f['locale'],_0x3a57a0,_0x2992c0,{'disableComments':this['_disableComments'],'editorConfig':_0x56e861['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x56e861['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x56e861['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x56e861['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x231b59(_0x56e861['get']('locale')),'CommentView':_0x56e861['get']('comments')['CommentView'],'CommentsListView':_0x485063,'CommentThreadInputView':_0x43b129}),_0x45f035['acceptButton']['on']('execute',()=>{_0x2c734f['editing']['view']['focus']();}),_0x45f035['discardButton']['on']('execute',()=>{_0x2c734f['editing']['view']['focus']();}),_0x2f5722=_0x29b5fc['createAnnotationView'](this['editor']['locale'],_0x45f035),_0x2f5722['bind']('isDirty')['to'](_0x45f035,'isDirty'),_0x2f5722['bind']('length')['to'](_0x45f035),_0x2f5722['bind']('type')['to'](_0x45f035,'type',_0x21b2f4=>'suggestion-'+_0x21b2f4),this['_annotationViews']['set'](_0x3a57a0['id'],_0x2f5722));const _0x327f3f=_0x43db83['createCommentThreadController'](_0x3a57a0['commentThread'],_0x45f035),_0x10324b=new ne(_0x2c734f,_0x3a57a0,_0x45f035,_0x327f3f),_0x5e19e6=_0x3a57a0['getAllAdjacentSuggestions']()['filter'](_0xbee0ef=>_0xbee0ef['isInContent']);_0x45f035['descriptionParts']=_0x2c734f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5e19e6),this['_suggestionToController']['set'](_0x3a57a0,_0x10324b),this['_viewToController']['set'](_0x45f035,_0x10324b);const _0x2642cc=_0x29b5fc['createAnnotation']({'view':_0x2f5722,'target':()=>{const _0x56d227=[],_0x51919b=_0x3a57a0['getAllAdjacentSuggestions']()['filter'](_0x1d3320=>_0x1d3320['isInContent']);for(const _0x18b147 of _0x51919b)_0x56d227['push'](..._0x18b147['getMarkers']());return _0xff7661(_0x2c734f['editing'],_0x56d227);},'type':()=>'suggestion-'+_0x10324b['view']['type']});_0x43db83['_bindAnnotationToEditors'](_0x45f035,_0x2642cc),_0x29b5fc['add'](_0x2642cc),_0x481152['registerAnnotation'](_0x2642cc);}['_destroyController'](_0xc3d26){const _0x1b9921=this['editor']['plugins']['get']('CommentsRepository'),_0x209607=this['editor']['plugins']['get']('Annotations'),_0x33606f=this['_suggestionToController']['get'](_0xc3d26),_0x2a3608=_0x33606f['view'],_0x470281=_0x209607['getByInnerView'](_0x2a3608);_0x1b9921['_unbindEditors'](_0x2a3608),_0x470281&&_0x209607['remove'](_0x470281),this['_suggestionToController']['delete'](_0xc3d26),this['_viewToController']['delete'](_0x2a3608),_0x33606f['destroy']();}['_updateController'](_0x28d762){if(!_0x28d762['isInContent']||!this['_suggestionToController']['has'](_0x28d762))return;const _0x22ecef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8429c8=this['_suggestionToController']['get'](_0x28d762),_0x33a30e=_0x28d762['getAllAdjacentSuggestions']();_0x8429c8['view']['descriptionParts']=_0x22ecef['descriptionFactory']['getDescriptions'](_0x33a30e);}['destroy'](){for(const _0x1eda76 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1eda76);for(const _0x238a53 of this['_annotationViews']['values']())_0x238a53['mainView']['destroy']();super['destroy']();}}function re(_0x427ba8){return'model'in _0x427ba8;}class k extends _0x1ec07f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3cfa9b){this['editor']['plugins']['get'](p)['adapter']=_0x3cfa9b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3b5faf){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3b5faf);}['getSuggestions']({skipNotAttached:_0x5d8d90=!0x1,toJSON:_0x2feedf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5d8d90,'toJSON':_0x2feedf});}['getSuggestion'](_0x47ad35){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x47ad35);}}const T=['Pagination'];class P extends _0x1ec07f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4ce870=this['editor'];if(_0x4ce870['config']['define']('trackChangesData.editorCreator',_0x4826a7=>{const _0x2e2d2f=_0x4ce870['model']['document']['getRootNames']()['reduce']((_0x9bd249,_0x1b1e62)=>(_0x9bd249[_0x1b1e62]='',_0x9bd249),{});return _0x4ce870['constructor']['create'](_0x2e2d2f,_0x4826a7);}),'function'!=typeof _0x4ce870['config']['get']('trackChangesData')['editorCreator'])throw new _0x5c47f2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xb74c87){return N(this['editor'],!0x0,_0xb74c87);}['getDataWithDiscardedSuggestions'](_0x128741){return N(this['editor'],!0x1,_0x128741);}}class D extends _0x1ec07f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3d246a){super(_0x3d246a),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(_0x2fb3ef){return void 0x0!==_0x2fb3ef['getRootsAttributes'];}async function N(_0x32d84e,_0x120ff6,_0x1e634b){const _0xbb4868=_0x1344ad(_0x32d84e,T);_0xbb4868['plugins']['push'](p,D),_0xbb4868['rootsAttributes']=v(_0x32d84e)?_0x32d84e['getRootsAttributes']():void 0x0;const _0x3bdf46=document['createDocumentFragment'](),_0x1fab4b=_0x32d84e['config']['get']('trackChangesData')['editorCreator'],_0x168f72=await _0x1fab4b(_0xbb4868,()=>function(_0xd39b41){const _0x503deb=document['createElement']('div');return _0xd39b41['appendChild'](_0x503deb),_0x503deb;}(_0x3bdf46));!function(_0x4ce7b6,_0x53f1f7){const _0x1c8425=_0x4ce7b6['model']['document']['getRootNames']()['reduce']((_0xf58bea,_0x3cebfe)=>(_0xf58bea[_0x3cebfe]=_0x4ce7b6['data']['get']({'rootName':_0x3cebfe}),_0xf58bea),{}),_0x1f20ab=_0x4ce7b6['plugins']['get']('Users')['users']['map'](_0x3e008f=>({'id':_0x3e008f['id'],'name':_0x3e008f['name']})),_0x516a54=_0x4ce7b6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52b99b=_0x4ce7b6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x51e450=_0x53f1f7['plugins']['get']('Users'),_0x60906=_0x53f1f7['plugins']['get']('TrackChangesEditing'),_0x270d96=_0x53f1f7['plugins']['get']('CommentsRepository');for(const _0x35a091 of _0x1f20ab)_0x51e450['getUser'](_0x35a091['id'])||_0x51e450['addUser'](_0x35a091);_0x51e450['me']||_0x51e450['useAnonymousUser']();for(const _0x4a0b65 of _0x52b99b)_0x270d96['addCommentThread'](_0x4a0b65);for(const _0x398d1a of _0x516a54)_0x60906['addSuggestionData'](_0x398d1a);_0x53f1f7['data']['set'](_0x1c8425);}(_0x32d84e,_0x168f72),_0x168f72['execute'](_0x120ff6?'acceptAllSuggestions':'discardAllSuggestions');const _0x143854=v(_0x168f72)?_0x168f72['getFullData'](_0x1e634b):_0x168f72['data']['get'](_0x1e634b);return await _0x168f72['destroy'](),_0x143854;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};